Skip to content

Commit

Permalink
YSHOP2-1289: Added new icons for RichText editor (#243)
Browse files Browse the repository at this point in the history
Co-authored-by: Ghita Nekt <[email protected]>
  • Loading branch information
GhitaNektt and Ghita Nekt committed Jan 24, 2024
1 parent 5fe1881 commit d485239
Show file tree
Hide file tree
Showing 15 changed files with 92 additions and 36 deletions.
2 changes: 1 addition & 1 deletion packages/icons/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"prefix": "youcan",
"name": "YouCan Icons",
"total": 101,
"total": 114,
"version": "1.0.0",
"author": {
"name": "YouCan",
Expand Down
5 changes: 5 additions & 0 deletions packages/icons/source/cell-style.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/icons/source/cell.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/column.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/corners-in.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/image-legend.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/image-position.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/open-link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/row.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/icons/source/table-footer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/icons/source/table-header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/table-style.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/text-alt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions packages/icons/source/vertical-align.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 16 additions & 35 deletions packages/vue3/src/_dev/App.vue
Original file line number Diff line number Diff line change
@@ -1,44 +1,25 @@
<script setup lang="ts">
import 'uno.css';
import '../assets/main.css';
import { PrimaryButton, ToastContainer, toast } from '~/components';
import type { ToastOptions } from '~/components/ToastContainer/types';
const toasts: ToastOptions[] = [
{
title: 'Info',
description: 'Click here to learn more about the exciting enhancements we\'ve made.',
type: 'info',
},
{
title: 'Success',
description: 'Your profile information has been successfully updated.',
type: 'success',
},
{
title: 'Warning',
description: 'Please check your internet connection.',
type: 'warning',
},
{
title: 'Error',
description: 'Unable to save data, check again later.',
type: 'error',
},
];
const handleClick = () => {
const toastOptions: ToastOptions = toasts[Math.floor(Math.random() * toasts.length)];
toast.show(toastOptions);
};
</script>

<template>
<ToastContainer :limit="3" />
<div className="container">
<PrimaryButton @click="handleClick">
Show Toast
</PrimaryButton>
<div class="container">
<i class="i-youcan:table-header" />
<i class="i-youcan:table-footer" />
<i class="i-youcan:table" />
<i class="i-youcan:row" />
<i class="i-youcan:column" />
<i class="i-youcan:table-style" />
<i class="i-youcan:cell" />
<i class="i-youcan:cell-style" />
<i class="i-youcan:image-legend" />
<i class="i-youcan:text-alt" />
<i class="i-youcan:open-link" />
<i class="i-youcan:corners-in" />
<i class="i-youcan:image-position" />
<i class="i-youcan:vertical-align" />
<i class="i-youcan:table-style" />
</div>
</template>

Expand Down

0 comments on commit d485239

Please sign in to comment.