@meistrari/tela-build 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/app.config.ts +73 -0
- package/components/tela/animated/animated-calculating-number.vue +16 -0
- package/components/tela/animated/animated-number.mdx +248 -0
- package/components/tela/animated/animated-number.stories.ts +52 -0
- package/components/tela/animated/animated-number.vue +23 -0
- package/components/tela/animated/animated-text.vue +124 -0
- package/components/tela/animated/animated-value.vue +68 -0
- package/components/tela/avatar/avatar.mdx +117 -0
- package/components/tela/avatar/avatar.stories.ts +62 -0
- package/components/tela/avatar/avatar.vue +71 -0
- package/components/tela/avatar/group/avatar-group.stories.ts +78 -0
- package/components/tela/avatar/group/avatar-group.vue +46 -0
- package/components/tela/badge/badge.mdx +154 -0
- package/components/tela/badge/badge.stories.ts +82 -0
- package/components/tela/badge/badge.vue +41 -0
- package/components/tela/button/button.mdx +155 -0
- package/components/tela/button/button.stories.ts +202 -0
- package/components/tela/button/button.vue +107 -0
- package/components/tela/card.vue +30 -0
- package/components/tela/chart/chart-bar.vue +58 -0
- package/components/tela/chat/chat.mdx +268 -0
- package/components/tela/chat/chat.stories.ts +253 -0
- package/components/tela/chat/command/index.vue +41 -0
- package/components/tela/chat/command/mention/index.vue +138 -0
- package/components/tela/chat/index.vue +112 -0
- package/components/tela/chat/pure-text-input/chat-text-input.vue +190 -0
- package/components/tela/chat/text-input/chat-text-input.stories.ts +128 -0
- package/components/tela/chat/text-input/index.vue +217 -0
- package/components/tela/chat/text-message/chat-text-message.stories.ts +138 -0
- package/components/tela/chat/text-message/index.vue +355 -0
- package/components/tela/chat/types.ts +19 -0
- package/components/tela/checkbox/checkbox-card.vue +30 -0
- package/components/tela/checkbox/checkbox.mdx +164 -0
- package/components/tela/checkbox/checkbox.stories.ts +104 -0
- package/components/tela/checkbox/checkbox.vue +43 -0
- package/components/tela/collapsible/Collapsible.vue +15 -0
- package/components/tela/collapsible/CollapsibleContent.vue +59 -0
- package/components/tela/collapsible/CollapsibleTrigger.vue +12 -0
- package/components/tela/collapsible/collapsible.mdx +157 -0
- package/components/tela/collapsible-section/collapsible-section.mdx +180 -0
- package/components/tela/collapsible-section/collapsible-section.stories.ts +53 -0
- package/components/tela/collapsible-section/collapsible-section.vue +51 -0
- package/components/tela/collapsible-section-with-actions.vue +98 -0
- package/components/tela/combobox/combobox-anchor.vue +24 -0
- package/components/tela/combobox/combobox-empty.vue +19 -0
- package/components/tela/combobox/combobox-group.vue +24 -0
- package/components/tela/combobox/combobox-indicator.vue +22 -0
- package/components/tela/combobox/combobox-input.vue +31 -0
- package/components/tela/combobox/combobox-item.vue +28 -0
- package/components/tela/combobox/combobox-label.vue +24 -0
- package/components/tela/combobox/combobox-list.vue +90 -0
- package/components/tela/combobox/combobox-module-selector.vue +366 -0
- package/components/tela/combobox/combobox-root.vue +15 -0
- package/components/tela/combobox/combobox-trigger.vue +12 -0
- package/components/tela/combobox/combobox.mdx +285 -0
- package/components/tela/combobox/combobox.stories.ts +232 -0
- package/components/tela/combobox/combobox.vue +497 -0
- package/components/tela/command/command-dialog.vue +22 -0
- package/components/tela/command/command-empty.vue +25 -0
- package/components/tela/command/command-group.vue +46 -0
- package/components/tela/command/command-input.vue +38 -0
- package/components/tela/command/command-item.vue +78 -0
- package/components/tela/command/command-list.vue +78 -0
- package/components/tela/command/command-separator.vue +23 -0
- package/components/tela/command/command-shortcut.vue +13 -0
- package/components/tela/command/command.vue +88 -0
- package/components/tela/command/dialog-base.vue +15 -0
- package/components/tela/command/dialog-content.vue +50 -0
- package/components/tela/command/utils.ts +15 -0
- package/components/tela/complex-table/complex-table-cell.stories.ts +145 -0
- package/components/tela/complex-table/complex-table-cell.vue +45 -0
- package/components/tela/complex-table/complex-table-header-cell.stories.ts +103 -0
- package/components/tela/complex-table/complex-table-header-cell.vue +48 -0
- package/components/tela/complex-table/complex-table-header.stories.ts +89 -0
- package/components/tela/complex-table/complex-table-header.vue +70 -0
- package/components/tela/complex-table/complex-table-row.vue +199 -0
- package/components/tela/complex-table/complex-table-virtualized.vue +326 -0
- package/components/tela/complex-table/complex-table.stories.ts +358 -0
- package/components/tela/complex-table/complex-table.vue +237 -0
- package/components/tela/complex-table/composables/table-common.ts +93 -0
- package/components/tela/complex-table/composables/table-selection.ts +87 -0
- package/components/tela/complex-table/composables/virtual-scroll.ts +252 -0
- package/components/tela/complex-table/styles/table-shared.css +170 -0
- package/components/tela/complex-table/types.ts +63 -0
- package/components/tela/complex-table/utils.ts +35 -0
- package/components/tela/confirm-button/confirm-button.vue +137 -0
- package/components/tela/confirmation-modal/confirmation-modal.vue +72 -0
- package/components/tela/copy-button.vue +86 -0
- package/components/tela/date-range-picker.vue +221 -0
- package/components/tela/dialog/dialog.mdx +170 -0
- package/components/tela/dialog/dialog.vue +182 -0
- package/components/tela/disabled-area.vue +16 -0
- package/components/tela/disclaimer/disclaimer.mdx +238 -0
- package/components/tela/disclaimer/disclaimer.stories.ts +196 -0
- package/components/tela/disclaimer/disclaimer.vue +125 -0
- package/components/tela/dropdown-menu/DropdownMenu.vue +121 -0
- package/components/tela/dropdown-menu/DropdownMenuCheckboxItem.vue +40 -0
- package/components/tela/dropdown-menu/DropdownMenuContent.vue +75 -0
- package/components/tela/dropdown-menu/DropdownMenuGroup.vue +12 -0
- package/components/tela/dropdown-menu/DropdownMenuItem.vue +137 -0
- package/components/tela/dropdown-menu/DropdownMenuLabel.vue +26 -0
- package/components/tela/dropdown-menu/DropdownMenuRadioGroup.vue +18 -0
- package/components/tela/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/components/tela/dropdown-menu/DropdownMenuRoot.vue +15 -0
- package/components/tela/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/components/tela/dropdown-menu/DropdownMenuShortcut.vue +14 -0
- package/components/tela/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/components/tela/dropdown-menu/DropdownMenuSubContent.vue +30 -0
- package/components/tela/dropdown-menu/DropdownMenuSubTrigger.vue +35 -0
- package/components/tela/dropdown-menu/DropdownMenuTrigger.vue +14 -0
- package/components/tela/dropdown-menu/dropdown-menu.mdx +265 -0
- package/components/tela/dropdown-menu/dropdown-menu.stories.ts +156 -0
- package/components/tela/expandable-input.vue +96 -0
- package/components/tela/file-drop.vue +37 -0
- package/components/tela/file-upload/file-upload.mdx +189 -0
- package/components/tela/file-upload/file-upload.stories.ts +48 -0
- package/components/tela/file-upload/file-upload.vue +205 -0
- package/components/tela/filters/checkbox-filter.stories.ts +218 -0
- package/components/tela/filters/checkbox-filter.vue +165 -0
- package/components/tela/filters/date-filter.stories.ts +258 -0
- package/components/tela/filters/date-filter.vue +200 -0
- package/components/tela/filters/user-filter.stories.ts +344 -0
- package/components/tela/filters/user-filter.vue +271 -0
- package/components/tela/hover-card/hover-card.mdx +221 -0
- package/components/tela/hover-card/hover-card.stories.ts +87 -0
- package/components/tela/hover-card/hover-card.vue +61 -0
- package/components/tela/icon/custom.vue +319 -0
- package/components/tela/icon/spinner.vue +12 -0
- package/components/tela/icon-button/icon-button.vue +114 -0
- package/components/tela/icon.vue +37 -0
- package/components/tela/initials.vue +28 -0
- package/components/tela/inline-input.vue +77 -0
- package/components/tela/input/input.mdx +182 -0
- package/components/tela/input/input.stories.ts +153 -0
- package/components/tela/input/tela-input.vue +240 -0
- package/components/tela/kbd/kbd-return.vue +6 -0
- package/components/tela/kbd/kbd.mdx +238 -0
- package/components/tela/kbd/kbd.vue +18 -0
- package/components/tela/label/label.mdx +121 -0
- package/components/tela/label/label.stories.ts +37 -0
- package/components/tela/label/label.vue +25 -0
- package/components/tela/link-decoration/link-decoration.vue +19 -0
- package/components/tela/live-label.vue +32 -0
- package/components/tela/long-press-button.vue +98 -0
- package/components/tela/menubar/menubar-content.vue +77 -0
- package/components/tela/menubar/menubar-item.vue +32 -0
- package/components/tela/menubar/menubar-label.vue +14 -0
- package/components/tela/menubar/menubar-menu.vue +12 -0
- package/components/tela/menubar/menubar-root.vue +30 -0
- package/components/tela/menubar/menubar-separator.vue +17 -0
- package/components/tela/menubar/menubar-shortcut.vue +14 -0
- package/components/tela/menubar/menubar-sub-content.vue +36 -0
- package/components/tela/menubar/menubar-sub-trigger.vue +28 -0
- package/components/tela/menubar/menubar-sub.vue +20 -0
- package/components/tela/menubar/menubar-trigger.vue +27 -0
- package/components/tela/menubar/menubar.vue +298 -0
- package/components/tela/modal/modal.mdx +145 -0
- package/components/tela/modal/modal.vue +242 -0
- package/components/tela/multiple-select/multiple-select.mdx +274 -0
- package/components/tela/multiple-select/multiple-select.stories.ts +325 -0
- package/components/tela/multiple-select/multiple-select.vue +666 -0
- package/components/tela/pane.vue +110 -0
- package/components/tela/popover/popover-content.vue +48 -0
- package/components/tela/popover/popover-trigger.vue +12 -0
- package/components/tela/popover/popover.mdx +239 -0
- package/components/tela/popover/popover.stories.ts +150 -0
- package/components/tela/popover/popover.vue +15 -0
- package/components/tela/popover-list/popover-list-nested.vue +104 -0
- package/components/tela/popover-list/popover-list.stories.ts +330 -0
- package/components/tela/popover-list/popover-list.vue +191 -0
- package/components/tela/radio-button.vue +66 -0
- package/components/tela/radio-group/radio-group-item.vue +40 -0
- package/components/tela/radio-group/radio-group-root.vue +26 -0
- package/components/tela/radio-group/radio-group.mdx +78 -0
- package/components/tela/radio-group/radio-group.stories.ts +106 -0
- package/components/tela/radio-group/radio-group.vue +23 -0
- package/components/tela/range-calendar.stories.ts +110 -0
- package/components/tela/range-calendar.vue +109 -0
- package/components/tela/scroll-area/scroll-area.mdx +183 -0
- package/components/tela/scroll-area/scroll-area.vue +30 -0
- package/components/tela/scroll-area/scroll-bar.vue +31 -0
- package/components/tela/segment-toggle.stories.ts +114 -0
- package/components/tela/segment-toggle.vue +66 -0
- package/components/tela/select-menu/select-menu-content.vue +106 -0
- package/components/tela/select-menu/select-menu-down-button.vue +20 -0
- package/components/tela/select-menu/select-menu-group.vue +16 -0
- package/components/tela/select-menu/select-menu-item.vue +40 -0
- package/components/tela/select-menu/select-menu-root.vue +15 -0
- package/components/tela/select-menu/select-menu-trigger.vue +34 -0
- package/components/tela/select-menu/select-menu-up-button.vue +20 -0
- package/components/tela/select-menu/select-menu-value.vue +12 -0
- package/components/tela/select-menu/select-menu.mdx +221 -0
- package/components/tela/select-menu/select-menu.stories.ts +91 -0
- package/components/tela/select-menu/select-menu.vue +165 -0
- package/components/tela/selector/selector.vue +47 -0
- package/components/tela/sheet/sheet-close.vue +12 -0
- package/components/tela/sheet/sheet-content.vue +57 -0
- package/components/tela/sheet/sheet-description.vue +23 -0
- package/components/tela/sheet/sheet-footer.vue +18 -0
- package/components/tela/sheet/sheet-header.vue +15 -0
- package/components/tela/sheet/sheet-root.vue +18 -0
- package/components/tela/sheet/sheet-title.vue +23 -0
- package/components/tela/sheet/sheet-trigger.vue +12 -0
- package/components/tela/sheet/sheet.client.vue +150 -0
- package/components/tela/sheet/sheet.mdx +176 -0
- package/components/tela/sheet/sheet.stories.ts +201 -0
- package/components/tela/sheet/variants.ts +22 -0
- package/components/tela/side-sheet/side-sheet.mdx +131 -0
- package/components/tela/side-sheet/side-sheet.stories.ts +134 -0
- package/components/tela/side-sheet/side-sheet.vue +106 -0
- package/components/tela/skeleton/skeleton.mdx +165 -0
- package/components/tela/skeleton/skeleton.stories.ts +35 -0
- package/components/tela/skeleton/skeleton.vue +45 -0
- package/components/tela/skeleton-icon.vue +24 -0
- package/components/tela/span.vue +24 -0
- package/components/tela/star-button.vue +70 -0
- package/components/tela/status/status-lean.vue +30 -0
- package/components/tela/status/status.mdx +187 -0
- package/components/tela/status/status.stories.ts +160 -0
- package/components/tela/status/status.vue +420 -0
- package/components/tela/status-bar/status-bar.mdx +178 -0
- package/components/tela/status-bar/status-bar.stories.ts +64 -0
- package/components/tela/status-bar/status-bar.vue +56 -0
- package/components/tela/status-bar/types.ts +5 -0
- package/components/tela/switch/switch.mdx +118 -0
- package/components/tela/switch/switch.stories.ts +80 -0
- package/components/tela/switch/switch.vue +56 -0
- package/components/tela/table/table-body.vue +13 -0
- package/components/tela/table/table-caption.vue +13 -0
- package/components/tela/table/table-cell.vue +20 -0
- package/components/tela/table/table-empty.vue +37 -0
- package/components/tela/table/table-footer.vue +13 -0
- package/components/tela/table/table-head.vue +13 -0
- package/components/tela/table/table-header.vue +13 -0
- package/components/tela/table/table-row.vue +13 -0
- package/components/tela/table/table.mdx +230 -0
- package/components/tela/table/table.stories.ts +384 -0
- package/components/tela/table/table.vue +15 -0
- package/components/tela/tabs/tabs-content.vue +20 -0
- package/components/tela/tabs/tabs-indicator.vue +22 -0
- package/components/tela/tabs/tabs-list.vue +23 -0
- package/components/tela/tabs/tabs-root.vue +15 -0
- package/components/tela/tabs/tabs-trigger.vue +27 -0
- package/components/tela/tabs/tabs.mdx +138 -0
- package/components/tela/tabs/tabs.stories.ts +72 -0
- package/components/tela/tabs/tabs.vue +61 -0
- package/components/tela/tags/tags-select.mdx +318 -0
- package/components/tela/tags/tags-select.stories.ts +47 -0
- package/components/tela/tags/tags-select.vue +637 -0
- package/components/tela/tags/tags.mdx +151 -0
- package/components/tela/tags/tags.stories.ts +118 -0
- package/components/tela/tags/tags.vue +112 -0
- package/components/tela/textarea/textarea.mdx +102 -0
- package/components/tela/textarea/textarea.stories.ts +50 -0
- package/components/tela/textarea/textarea.vue +34 -0
- package/components/tela/toggle-group.vue +91 -0
- package/components/tela/tooltip/tooltip-content.vue +45 -0
- package/components/tela/tooltip/tooltip-provider.vue +12 -0
- package/components/tela/tooltip/tooltip-root.vue +15 -0
- package/components/tela/tooltip/tooltip-trigger.vue +12 -0
- package/components/tela/tooltip/tooltip.mdx +196 -0
- package/components/tela/tooltip/tooltip.stories.ts +200 -0
- package/components/tela/tooltip/tooltip.vue +91 -0
- package/components/tela/tooltip-group/tooltip-group-trigger.vue +92 -0
- package/components/tela/tooltip-group/tooltip-group.mdx +236 -0
- package/components/tela/tooltip-group/tooltip-group.stories.ts +465 -0
- package/components/tela/tooltip-group/tooltip-group.vue +35 -0
- package/components/tela/transparent-input.vue +151 -0
- package/components/tela/variable-icon.vue +28 -0
- package/components/tela/variable-input.vue +77 -0
- package/components/tela/wide-button/wide-button.vue +40 -0
- package/components.json +18 -0
- package/composables/status-toast.ts +67 -0
- package/css/reset.css +386 -0
- package/css/text.css +22 -0
- package/lib/doc-generator.ts +903 -0
- package/lib/extractors/volar-extract.ts +186 -0
- package/lib/type-resolver.ts +402 -0
- package/lib/utils.ts +6 -0
- package/modules/tela-build-docs/index.ts +139 -0
- package/nuxt.config.ts +80 -0
- package/package.json +84 -0
- package/plugins/test-id.ts +7 -0
- package/tsconfig.json +7 -0
- package/types/custom-icon.ts +1 -0
- package/types/index.ts +2 -0
- package/types/status.ts +1 -0
- package/unocss.config.ts +89 -0
- package/utils/component-utils.ts +30 -0
- package/utils/design-tokens.ts +431 -0
- package/utils/fold.ts +8 -0
- package/utils/select-menu.ts +10 -0
- package/utils/status.ts +1 -0
- package/utils/without-keys.ts +34 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TelaCustomIconName } from '~/types'
|
|
3
|
+
|
|
4
|
+
const props = withDefaults(defineProps<{
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
name: TelaCustomIconName;
|
|
8
|
+
}>(), {
|
|
9
|
+
size: '12px',
|
|
10
|
+
color: 'neutral-400',
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const colorValue = computed(() => {
|
|
14
|
+
const [colorName, shade] = props.color.split('-')
|
|
15
|
+
const colors = DT.colors as Record<string, any>
|
|
16
|
+
|
|
17
|
+
if (colorName && shade && colors[colorName] && typeof colors[colorName] === 'object') {
|
|
18
|
+
const colorPalette = colors[colorName] as Record<string, string>
|
|
19
|
+
|
|
20
|
+
if (colorPalette[shade]) {
|
|
21
|
+
return colorPalette[shade]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (DT.colors.neutral as Record<string, string>)?.['400']
|
|
26
|
+
})
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<template>
|
|
30
|
+
<svg :width="size" :height="size" viewBox="0 0 12 12" fill="none" :style="{ color: colorValue }" xmlns="http://www.w3.org/2000/svg">
|
|
31
|
+
<template v-if="name === 'circle'">
|
|
32
|
+
<Motion
|
|
33
|
+
as="path"
|
|
34
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
35
|
+
fill="currentColor"
|
|
36
|
+
tabindex="-1"
|
|
37
|
+
:animate="{ opacity: [0.3, 1, 0.3] }"
|
|
38
|
+
:transition="{ duration: 2.2, ease: 'easeOut', repeat: Infinity }"
|
|
39
|
+
/>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<template v-if="name === 'pause'">
|
|
43
|
+
<path
|
|
44
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
45
|
+
fill="currentColor"
|
|
46
|
+
/>
|
|
47
|
+
<rect x="4" y="4" width="1.25" height="4" rx="0.625" fill="currentColor" />
|
|
48
|
+
<rect x="6.75" y="4" width="1.25" height="4" rx="0.625" fill="currentColor" />
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<template v-if="name === 'queued'">
|
|
52
|
+
<Motion
|
|
53
|
+
as="path"
|
|
54
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
55
|
+
fill="currentColor"
|
|
56
|
+
tabindex="-1"
|
|
57
|
+
:animate="{ opacity: [0.2, 1] }"
|
|
58
|
+
:transition="{ duration: 0.8, ease: [0.4, 0, 0.2, 1] }"
|
|
59
|
+
/>
|
|
60
|
+
<Motion
|
|
61
|
+
as="rect"
|
|
62
|
+
x="3.5"
|
|
63
|
+
y="6.5"
|
|
64
|
+
width="5"
|
|
65
|
+
height="2"
|
|
66
|
+
rx="0.75"
|
|
67
|
+
fill="currentColor"
|
|
68
|
+
tabindex="-1"
|
|
69
|
+
:animate="{ opacity: [0.2, 1] }"
|
|
70
|
+
:transition="{ duration: 0.8, ease: 'easeOut', delay: 0.17, repeat: Infinity, repeatDelay: 1 }"
|
|
71
|
+
/>
|
|
72
|
+
<Motion
|
|
73
|
+
as="rect"
|
|
74
|
+
x="4"
|
|
75
|
+
y="4.5"
|
|
76
|
+
width="4"
|
|
77
|
+
height="1.5"
|
|
78
|
+
rx="0.75"
|
|
79
|
+
fill="currentColor"
|
|
80
|
+
tabindex="-1"
|
|
81
|
+
:animate="{ opacity: [0.2, 1] }"
|
|
82
|
+
:transition="{ duration: 0.8, ease: 'easeOut', delay: 0.12, repeat: Infinity, repeatDelay: 1 }"
|
|
83
|
+
/>
|
|
84
|
+
<Motion
|
|
85
|
+
as="rect"
|
|
86
|
+
x="4.5"
|
|
87
|
+
y="3"
|
|
88
|
+
width="3"
|
|
89
|
+
height="1"
|
|
90
|
+
rx="0.5"
|
|
91
|
+
fill="currentColor"
|
|
92
|
+
tabindex="-1"
|
|
93
|
+
:animate="{ opacity: [0.2, 1] }"
|
|
94
|
+
:transition="{ duration: 0.8, ease: 'easeOut', delay: 0.07, repeat: Infinity, repeatDelay: 1 }"
|
|
95
|
+
/>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<template v-if="name === 'close'">
|
|
99
|
+
<path
|
|
100
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
101
|
+
fill="currentColor"
|
|
102
|
+
/>
|
|
103
|
+
<path
|
|
104
|
+
d="M7.24177 3.87868C7.48584 3.6346 7.88157 3.6346 8.12565 3.87868C8.36973 4.12276 8.36973 4.51848 8.12565 4.76256L4.76689 8.12132C4.52282 8.3654 4.12709 8.3654 3.88301 8.12132C3.63893 7.87724 3.63893 7.48151 3.88301 7.23744L7.24177 3.87868Z"
|
|
105
|
+
fill="currentColor"
|
|
106
|
+
/>
|
|
107
|
+
<path
|
|
108
|
+
d="M3.88301 4.76256C3.63893 4.51848 3.63893 4.12275 3.88301 3.87868C4.12709 3.6346 4.52282 3.6346 4.76689 3.87868L8.12565 7.23743C8.36973 7.48151 8.36973 7.87724 8.12565 8.12132C7.88157 8.36539 7.48584 8.36539 7.24177 8.12132L3.88301 4.76256Z"
|
|
109
|
+
fill="currentColor"
|
|
110
|
+
/>
|
|
111
|
+
</template>
|
|
112
|
+
|
|
113
|
+
<template v-if="name === 'circle-notch'">
|
|
114
|
+
<Motion
|
|
115
|
+
as="path"
|
|
116
|
+
d="M11.4 6C11.7314 6 12.0031 5.73069 11.97 5.40098C11.858 4.28448 11.4345 3.21734 10.7422 2.32414C9.92681 1.27227 8.78487 0.521339 7.49603 0.189501C6.20719 -0.142337 4.84459 -0.0362459 3.62264 0.491083C2.40069 1.01841 1.38875 1.93705 0.746034 3.10244C0.103318 4.26784 -0.133688 5.61385 0.0723077 6.92869C0.278303 8.24353 0.915607 9.45256 1.88394 10.3656C2.85228 11.2786 4.09668 11.8437 5.42136 11.972C6.5462 12.081 7.67471 11.8698 8.67877 11.3688C8.97528 11.2209 9.05806 10.8474 8.88125 10.5671C8.70444 10.2868 8.3351 10.2068 8.03498 10.3473C7.25926 10.7104 6.39684 10.8609 5.53709 10.7776C4.47735 10.6749 3.48182 10.2228 2.70715 9.49244C1.93249 8.76205 1.42264 7.79482 1.25785 6.74295C1.09305 5.69108 1.28265 4.61427 1.79683 3.68195C2.311 2.74964 3.12055 2.01473 4.09811 1.59287C5.07567 1.171 6.16575 1.08613 7.19682 1.3516C8.2279 1.61707 9.14145 2.21782 9.79373 3.05932C10.3229 3.74201 10.6558 4.55173 10.7626 5.40155C10.8039 5.73033 11.0686 6 11.4 6Z"
|
|
117
|
+
fill="currentColor"
|
|
118
|
+
tabindex="-1"
|
|
119
|
+
:animate="{ rotate: [0, 360] }"
|
|
120
|
+
:transition="{ duration: 0.7, ease: 'easeOut', repeat: Infinity }"
|
|
121
|
+
/>
|
|
122
|
+
</template>
|
|
123
|
+
|
|
124
|
+
<template v-if="name === 'circle-minus'">
|
|
125
|
+
<Motion
|
|
126
|
+
as="path"
|
|
127
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
128
|
+
fill="currentColor"
|
|
129
|
+
tabindex="-1"
|
|
130
|
+
:animate="{ opacity: [0.5, 1, 0.5] }"
|
|
131
|
+
:transition="{ duration: 2.2, ease: 'easeOut', repeat: Infinity }"
|
|
132
|
+
/>
|
|
133
|
+
<Motion
|
|
134
|
+
as="rect"
|
|
135
|
+
x="3.5"
|
|
136
|
+
y="5"
|
|
137
|
+
width="5"
|
|
138
|
+
height="2"
|
|
139
|
+
rx="0.75"
|
|
140
|
+
fill="currentColor"
|
|
141
|
+
tabindex="-1"
|
|
142
|
+
:animate="{ opacity: [0.4, 1, 0.4] }"
|
|
143
|
+
:transition="{ duration: 2.2, ease: 'easeOut', repeat: Infinity }"
|
|
144
|
+
/>
|
|
145
|
+
</template>
|
|
146
|
+
|
|
147
|
+
<template v-if="name === 'check'">
|
|
148
|
+
<Motion as="g" :animate="{ opacity: [0.4, 1] }" :transition="{ duration: 0.3, ease: [0.645, 0.045, 0.355, 1] }" tabindex="-1">
|
|
149
|
+
<path
|
|
150
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
151
|
+
fill="currentColor"
|
|
152
|
+
/>
|
|
153
|
+
<Motion
|
|
154
|
+
as="path"
|
|
155
|
+
d="M3.5 6 L5.5 8 L8.5 4"
|
|
156
|
+
stroke="currentColor"
|
|
157
|
+
fill="none"
|
|
158
|
+
stroke-width="1.3"
|
|
159
|
+
stroke-linecap="round"
|
|
160
|
+
stroke-linejoin="round"
|
|
161
|
+
tabindex="-1"
|
|
162
|
+
:animate="{ pathLength: [0, 1] }"
|
|
163
|
+
:style="{ rotate: 4, scale: 0.85 }"
|
|
164
|
+
:transition="{ duration: 0.3, ease: [0.645, 0.045, 0.355, 1] }"
|
|
165
|
+
/>
|
|
166
|
+
</Motion>
|
|
167
|
+
</template>
|
|
168
|
+
|
|
169
|
+
<template v-if="name === 'stop'">
|
|
170
|
+
<path
|
|
171
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
172
|
+
fill="currentColor"
|
|
173
|
+
/>
|
|
174
|
+
<rect
|
|
175
|
+
x="4" y="4" width="4" height="4" rx="0.75"
|
|
176
|
+
fill="currentColor"
|
|
177
|
+
/>
|
|
178
|
+
</template>
|
|
179
|
+
|
|
180
|
+
<template v-if="name === 'circle-dashed'">
|
|
181
|
+
<g clip-path="url(#clip0_5125_73)">
|
|
182
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="#A3A3A3" />
|
|
183
|
+
<rect x="5.25" width="1.5" height="12" fill="currentColor" />
|
|
184
|
+
<rect x="12" y="5.25" width="1.5" height="12" transform="rotate(90 12 5.25)" fill="currentColor" />
|
|
185
|
+
<rect x="10.7729" y="9.71228" width="1.5" height="12" transform="rotate(135 10.7729 9.71228)" fill="currentColor" />
|
|
186
|
+
<rect x="2.28772" y="10.7729" width="1.5" height="12" transform="rotate(-135 2.28772 10.7729)" fill="currentColor" />
|
|
187
|
+
</g>
|
|
188
|
+
<defs>
|
|
189
|
+
<clipPath id="clip0_5125_73">
|
|
190
|
+
<rect width="12" height="12" fill="white" />
|
|
191
|
+
</clipPath>
|
|
192
|
+
</defs>
|
|
193
|
+
|
|
194
|
+
</template>
|
|
195
|
+
|
|
196
|
+
<template v-if="name === 'warning'">
|
|
197
|
+
<Motion
|
|
198
|
+
as="g"
|
|
199
|
+
tabindex="-1"
|
|
200
|
+
:animate="{ opacity: [0.5, 1, 0.5] }"
|
|
201
|
+
:transition="{ duration: 1.4, ease: 'easeOut', repeat: Infinity }"
|
|
202
|
+
>
|
|
203
|
+
<Motion
|
|
204
|
+
as="path"
|
|
205
|
+
d="M11.4 6C11.7314 6 12.0031 5.73069 11.97 5.40098C11.858 4.28448 11.4345 3.21734 10.7422 2.32414C9.92681 1.27227 8.78487 0.521339 7.49603 0.189501C6.20719 -0.142337 4.84459 -0.0362459 3.62264 0.491083C2.40069 1.01841 1.38875 1.93705 0.746034 3.10244C0.103318 4.26784 -0.133688 5.61385 0.0723077 6.92869C0.278303 8.24353 0.915607 9.45256 1.88394 10.3656C2.85228 11.2786 4.09668 11.8437 5.42136 11.972C6.5462 12.081 7.67471 11.8698 8.67877 11.3688C8.97528 11.2209 9.05806 10.8474 8.88125 10.5671C8.70444 10.2868 8.3351 10.2068 8.03498 10.3473C7.25926 10.7104 6.39684 10.8609 5.53709 10.7776C4.47735 10.6749 3.48182 10.2228 2.70715 9.49244C1.93249 8.76205 1.42264 7.79482 1.25785 6.74295C1.09305 5.69108 1.28265 4.61427 1.79683 3.68195C2.311 2.74964 3.12055 2.01473 4.09811 1.59287C5.07567 1.171 6.16575 1.08613 7.19682 1.3516C8.2279 1.61707 9.14145 2.21782 9.79373 3.05932C10.3229 3.74201 10.6558 4.55173 10.7626 5.40155C10.8039 5.73033 11.0686 6 11.4 6Z"
|
|
206
|
+
fill="currentColor"
|
|
207
|
+
tabindex="-1"
|
|
208
|
+
:animate="{ rotate: [0, 360] }"
|
|
209
|
+
:transition="{ duration: 0.7, ease: 'easeOut', repeat: Infinity, repeatDelay: 0.1 }"
|
|
210
|
+
/>
|
|
211
|
+
<Motion
|
|
212
|
+
as="rect"
|
|
213
|
+
x="5.25"
|
|
214
|
+
y="3"
|
|
215
|
+
width="1.5"
|
|
216
|
+
height="3.5"
|
|
217
|
+
rx="0.75"
|
|
218
|
+
fill="currentColor"
|
|
219
|
+
tabindex="-1"
|
|
220
|
+
:animate="{ scaleY: [1, 0.6, 1.1, 1] }"
|
|
221
|
+
:style="{ transformBox: 'fill-box' }"
|
|
222
|
+
:transition="{ duration: 0.7, ease: 'easeOut', repeat: Infinity, repeatDelay: 1 }"
|
|
223
|
+
/>
|
|
224
|
+
<circle
|
|
225
|
+
cx="6"
|
|
226
|
+
cy="7.995"
|
|
227
|
+
r="0.875"
|
|
228
|
+
fill="currentColor"
|
|
229
|
+
/>
|
|
230
|
+
</Motion>
|
|
231
|
+
</template>
|
|
232
|
+
|
|
233
|
+
<template v-if="name === 'check-dashed'">
|
|
234
|
+
<Motion as="g" clip-path="url(#clip0_5125_104)" tabindex="-1" :animate="{ opacity: [0.4, 1] }" :transition="{ duration: 0.3, ease: [0.645, 0.045, 0.355, 1] }">
|
|
235
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="currentColor" />
|
|
236
|
+
<rect x="5.25" width="1.5" height="12" fill="#F0FDF6" />
|
|
237
|
+
<rect x="12" y="5.25" width="1.5" height="12" transform="rotate(90 12 5.25)" fill="#F0FDF6" />
|
|
238
|
+
<rect x="10.773" y="9.71228" width="1.5" height="12" transform="rotate(135 10.773 9.71228)" fill="#F0FDF6" />
|
|
239
|
+
<rect x="2.28769" y="10.7729" width="1.5" height="12" transform="rotate(-135 2.28769 10.7729)" fill="#F0FDF6" />
|
|
240
|
+
<Motion
|
|
241
|
+
as="path"
|
|
242
|
+
d="M3.5 6 L5.5 8 L8.5 4"
|
|
243
|
+
stroke="currentColor"
|
|
244
|
+
fill="none"
|
|
245
|
+
stroke-width="1.3"
|
|
246
|
+
stroke-linecap="round"
|
|
247
|
+
stroke-linejoin="round"
|
|
248
|
+
tabindex="-1"
|
|
249
|
+
:animate="{ pathLength: [0, 1] }"
|
|
250
|
+
:style="{ rotate: 4, scale: 0.85 }"
|
|
251
|
+
:transition="{ duration: 0.3, ease: [0.645, 0.045, 0.355, 1] }"
|
|
252
|
+
/>
|
|
253
|
+
</Motion>
|
|
254
|
+
<defs>
|
|
255
|
+
<clipPath id="clip0_5125_104">
|
|
256
|
+
<rect width="12" height="12" fill="white" />
|
|
257
|
+
</clipPath>
|
|
258
|
+
</defs>
|
|
259
|
+
</template>
|
|
260
|
+
|
|
261
|
+
<template v-if="name === 'semi-circle'">
|
|
262
|
+
<path
|
|
263
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
264
|
+
fill="currentColor"
|
|
265
|
+
/>
|
|
266
|
+
<g clip-path="url(#clip0_5125_237)">
|
|
267
|
+
<path d="M2 2H10L6 6L2 10V2Z" fill="currentColor" />
|
|
268
|
+
</g>
|
|
269
|
+
<defs>
|
|
270
|
+
<clipPath id="clip0_5125_237">
|
|
271
|
+
<rect x="2.5" y="2.5" width="7" height="7" rx="3.5" fill="white" />
|
|
272
|
+
</clipPath>
|
|
273
|
+
</defs>
|
|
274
|
+
</template>
|
|
275
|
+
|
|
276
|
+
<template v-if="name === 'arrow-down'">
|
|
277
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="#A3A3A3" />
|
|
278
|
+
<Motion
|
|
279
|
+
as="path"
|
|
280
|
+
d="M6 4V8M6 8L7.75 6.53682M6 8L4.25 6.53682"
|
|
281
|
+
stroke="currentColor"
|
|
282
|
+
stroke-width="1.2"
|
|
283
|
+
stroke-linecap="round"
|
|
284
|
+
stroke-linejoin="round"
|
|
285
|
+
tabindex="-1"
|
|
286
|
+
:animate="{ y: [-8, 0] }"
|
|
287
|
+
:transition="{ duration: 0.35, ease: 'circInOut' }"
|
|
288
|
+
/>
|
|
289
|
+
</template>
|
|
290
|
+
|
|
291
|
+
<template v-if="name === 'reported'">
|
|
292
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="currentColor" />
|
|
293
|
+
<mask id="path-2-inside-1_5169_42" fill="white">
|
|
294
|
+
<path d="M3.44391 6.3418H4.64391V7.87043C4.64391 8.1739 4.39789 8.41992 4.09441 8.41992H3.9934C3.68993 8.41992 3.44391 8.1739 3.44391 7.87043V6.3418Z" />
|
|
295
|
+
</mask>
|
|
296
|
+
<path d="M3.44391 6.3418H4.64391V7.87043C4.64391 8.1739 4.39789 8.41992 4.09441 8.41992H3.9934C3.68993 8.41992 3.44391 8.1739 3.44391 7.87043V6.3418Z" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" mask="url(#path-2-inside-1_5169_42)" />
|
|
297
|
+
<path d="M7.23486 3.96387C7.50053 3.83483 7.81006 4.02887 7.81006 4.32422V7.67578C7.81006 7.97118 7.50051 8.16523 7.23486 8.03613L3.7876 6.3584C3.48753 6.21238 3.48745 5.7845 3.7876 5.63867L7.23486 3.96387Z" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" />
|
|
298
|
+
</template>
|
|
299
|
+
|
|
300
|
+
<template v-if="name === 'circle-warning'">
|
|
301
|
+
<path
|
|
302
|
+
d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z"
|
|
303
|
+
fill="currentColor"
|
|
304
|
+
/>
|
|
305
|
+
<rect x="5.25" y="3.06494" width="1.5" height="3.5" rx="0.75" fill="currentColor" />
|
|
306
|
+
<circle cx="6" cy="8.06006" r="0.875" fill="currentColor" />
|
|
307
|
+
</template>
|
|
308
|
+
|
|
309
|
+
<template v-if="name === 'slice'">
|
|
310
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="currentColor" />
|
|
311
|
+
<path d="M6 9.5C6.45963 9.5 6.91475 9.40947 7.33939 9.23358C7.76403 9.05769 8.14987 8.79988 8.47487 8.47487C8.79988 8.14987 9.05769 7.76403 9.23358 7.33939C9.40947 6.91475 9.5 6.45963 9.5 6C9.5 5.54037 9.40947 5.08525 9.23358 4.66061C9.05769 4.23597 8.79988 3.85013 8.47487 3.52513C8.14987 3.20012 7.76403 2.94231 7.33939 2.76642C6.91475 2.59053 6.45963 2.5 6 2.5L6 6L6 9.5Z" fill="currentColor" />
|
|
312
|
+
</template>
|
|
313
|
+
|
|
314
|
+
<template v-if="name === 'half-slice'">
|
|
315
|
+
<path d="M12 6C12 9.31371 9.31371 12 6 12C2.68629 12 0 9.31371 0 6C0 2.68629 2.68629 0 6 0C9.31371 0 12 2.68629 12 6ZM1.2 6C1.2 8.65097 3.34903 10.8 6 10.8C8.65097 10.8 10.8 8.65097 10.8 6C10.8 3.34903 8.65097 1.2 6 1.2C3.34903 1.2 1.2 3.34903 1.2 6Z" fill="currentColor" />
|
|
316
|
+
<path d="M9.5 6C9.5 5.54037 9.40947 5.08525 9.23358 4.66061C9.05769 4.23597 8.79988 3.85013 8.47487 3.52513C8.14987 3.20012 7.76403 2.94231 7.33939 2.76642C6.91475 2.59053 6.45963 2.5 6 2.5L6 6H9.5Z" fill="currentColor" />
|
|
317
|
+
</template>
|
|
318
|
+
</svg>
|
|
319
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<g clip-path="url(#clip0_1051_360)">
|
|
4
|
+
<path d="M11.4 6C11.7314 6 12.0031 5.73069 11.97 5.40098C11.8722 4.42594 11.5366 3.48642 10.9888 2.66658C10.3295 1.67988 9.39246 0.910849 8.2961 0.456723C7.19974 0.002597 5.99334 -0.116223 4.82946 0.115288C3.66557 0.3468 2.59647 0.918244 1.75736 1.75736C0.918244 2.59647 0.3468 3.66557 0.115288 4.82946C-0.116223 5.99334 0.00259702 7.19974 0.456723 8.2961C0.910849 9.39246 1.67988 10.3295 2.66658 10.9888C3.48642 11.5366 4.42594 11.8722 5.40098 11.97C5.73069 12.0031 6 11.7314 6 11.4C6 11.0686 5.73033 10.8039 5.40155 10.7626C4.66426 10.6699 3.95565 10.4069 3.33326 9.99105C2.54391 9.46362 1.92868 8.71397 1.56538 7.83688C1.20208 6.95979 1.10702 5.99468 1.29223 5.06357C1.47744 4.13246 1.9346 3.27718 2.60589 2.60589C3.27718 1.9346 4.13246 1.47744 5.06357 1.29223C5.99468 1.10702 6.95979 1.20208 7.83688 1.56538C8.71397 1.92868 9.46362 2.54391 9.99105 3.33326C10.4069 3.95565 10.6699 4.66426 10.7626 5.40155C10.8039 5.73033 11.0686 6 11.4 6Z" fill="#71757B" />
|
|
5
|
+
</g>
|
|
6
|
+
<defs>
|
|
7
|
+
<clipPath id="clip0_1051_360">
|
|
8
|
+
<rect width="12" height="12" fill="white" />
|
|
9
|
+
</clipPath>
|
|
10
|
+
</defs>
|
|
11
|
+
</svg>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { NuxtLink } from '#components'
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
color?: 'primary' | 'secondary'
|
|
6
|
+
icon: string
|
|
7
|
+
size?: '3xs' | '2xs' | 'xs' | 'sm' | 'md'
|
|
8
|
+
outline?: boolean
|
|
9
|
+
disabled?: boolean
|
|
10
|
+
loading?: boolean
|
|
11
|
+
active?: boolean
|
|
12
|
+
iconClass?: string
|
|
13
|
+
buttonClass?: string
|
|
14
|
+
to?: string
|
|
15
|
+
target?: '_blank' | null;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
19
|
+
color: 'primary',
|
|
20
|
+
size: 'sm',
|
|
21
|
+
outline: false,
|
|
22
|
+
disabled: false,
|
|
23
|
+
loading: false,
|
|
24
|
+
active: false,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const emit = defineEmits<{
|
|
28
|
+
longpress: []
|
|
29
|
+
}>()
|
|
30
|
+
|
|
31
|
+
const style = computed(() => {
|
|
32
|
+
const base = 'cursor-pointer flex items-center justify-center rounded-lg p-0.5em transition ease'
|
|
33
|
+
const size = ({
|
|
34
|
+
'3xs': 'text-6px p-1',
|
|
35
|
+
'2xs': 'text-8px p-4px', // 16px
|
|
36
|
+
'xs': 'text-12px p-6px', // 24px
|
|
37
|
+
'sm': 'text-16px p-0.4em', // 32px
|
|
38
|
+
'md': 'text-20px p-0.4em', // 44px
|
|
39
|
+
} as Record<typeof props.size, string>)[props.size]
|
|
40
|
+
|
|
41
|
+
const color = ({
|
|
42
|
+
primary: 'bg-#01292F !text-white hover:bg-#153A40 b-#011D21 hover:b-#123137',
|
|
43
|
+
secondary: 'bg-transparent text-gray-950 hover:bg-gray-100 hover:text-gray-950 active:text-gray-800 disabled:bg-gray-100 disabled:!text-gray-300',
|
|
44
|
+
} as Record<typeof props.color, string>)[props.color]
|
|
45
|
+
|
|
46
|
+
const disabled = props.disabled && 'cursor-not-allowed !bg-#ECF0F2 !text-#617275 !b-0'
|
|
47
|
+
|
|
48
|
+
const outline = props.outline && ({
|
|
49
|
+
primary: 'b-0.7px !b-#011D21',
|
|
50
|
+
secondary: 'b-0.7px !b-gray-200',
|
|
51
|
+
} as Record<typeof props.color, string>)[props.color]
|
|
52
|
+
|
|
53
|
+
const active = props.active && '!bg-gray-100'
|
|
54
|
+
|
|
55
|
+
return [
|
|
56
|
+
base,
|
|
57
|
+
size,
|
|
58
|
+
color,
|
|
59
|
+
disabled,
|
|
60
|
+
outline,
|
|
61
|
+
active,
|
|
62
|
+
'group',
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
const iconSize = computed(() => {
|
|
67
|
+
return ({
|
|
68
|
+
'2xs': 'xs',
|
|
69
|
+
'xs': 'sm',
|
|
70
|
+
'sm': 'md',
|
|
71
|
+
'md': 'lg',
|
|
72
|
+
} as Record<typeof props.size, 'xs' | 'sm' | 'md' | 'lg'>)[props.size]
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
const buttonRef = ref<HTMLElement | null>(null)
|
|
76
|
+
const tag = computed(() => props.to ? NuxtLink : 'button')
|
|
77
|
+
|
|
78
|
+
onLongPress(
|
|
79
|
+
buttonRef,
|
|
80
|
+
() => {
|
|
81
|
+
if (props.disabled)
|
|
82
|
+
return
|
|
83
|
+
|
|
84
|
+
emit('longpress')
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
modifiers: {
|
|
88
|
+
prevent: true,
|
|
89
|
+
},
|
|
90
|
+
delay: 700,
|
|
91
|
+
},
|
|
92
|
+
)
|
|
93
|
+
</script>
|
|
94
|
+
|
|
95
|
+
<template>
|
|
96
|
+
<component
|
|
97
|
+
:is="tag"
|
|
98
|
+
ref="buttonRef"
|
|
99
|
+
:to="to"
|
|
100
|
+
:target="target"
|
|
101
|
+
:class="cn(style, buttonClass)"
|
|
102
|
+
:disabled="!to && disabled"
|
|
103
|
+
data-allow-mismatch
|
|
104
|
+
>
|
|
105
|
+
<TelaIcon
|
|
106
|
+
:name="loading ? 'i-ph-circle-notch' : icon"
|
|
107
|
+
:size="iconSize"
|
|
108
|
+
:class="[
|
|
109
|
+
loading && 'animate-spin',
|
|
110
|
+
iconClass,
|
|
111
|
+
]"
|
|
112
|
+
/>
|
|
113
|
+
</component>
|
|
114
|
+
</template>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps<{
|
|
3
|
+
name: string
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | string
|
|
5
|
+
backgroundClass?: string
|
|
6
|
+
}>()
|
|
7
|
+
|
|
8
|
+
const iconSize = computed(() => {
|
|
9
|
+
if (props.size && props.size.endsWith('px')) {
|
|
10
|
+
return props.size
|
|
11
|
+
}
|
|
12
|
+
switch (props.size) {
|
|
13
|
+
case 'xs':
|
|
14
|
+
return '8px'
|
|
15
|
+
case 'sm':
|
|
16
|
+
return '12px'
|
|
17
|
+
case '17px':
|
|
18
|
+
return '17px'
|
|
19
|
+
case '20px':
|
|
20
|
+
return '20px'
|
|
21
|
+
case 'lg':
|
|
22
|
+
return '24px'
|
|
23
|
+
case 'xl':
|
|
24
|
+
return '32px'
|
|
25
|
+
case 'md':
|
|
26
|
+
default:
|
|
27
|
+
return '16px'
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<div v-if="backgroundClass" :class="cn('flex items-center justify-center', backgroundClass)">
|
|
34
|
+
<div :class="[name]" :style="{ 'width': iconSize, 'height': iconSize, 'mask-size': 'cover' }" />
|
|
35
|
+
</div>
|
|
36
|
+
<div v-else :class="[name]" :style="{ 'width': iconSize, 'height': iconSize, 'mask-size': 'cover' }" />
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps<{
|
|
3
|
+
word: string
|
|
4
|
+
size?: '2xs' | 'xs' | 'sm' | 'md'
|
|
5
|
+
}>()
|
|
6
|
+
|
|
7
|
+
const initialLetter = computed(() => props.word ? props.word.charAt(0).toUpperCase() : '')
|
|
8
|
+
|
|
9
|
+
const sizeStyles = computed(() => {
|
|
10
|
+
switch (props.size) {
|
|
11
|
+
case '2xs':
|
|
12
|
+
return 'w-16px h-16px text-11px'
|
|
13
|
+
case 'xs':
|
|
14
|
+
return 'w-24px h-24px text-12px'
|
|
15
|
+
case 'sm':
|
|
16
|
+
return 'w-32px h-32px text-16px'
|
|
17
|
+
case 'md':
|
|
18
|
+
default:
|
|
19
|
+
return 'w-40px h-40px text-18px'
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<template>
|
|
25
|
+
<div :class="sizeStyles" rounded-6px bg-neutral-950 flex="~" items-center justify-center>
|
|
26
|
+
<TelaAnimatedValue :value="initialLetter" text="white" leading-18px font-580 text-center />
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineOptions({
|
|
3
|
+
inheritAttrs: false,
|
|
4
|
+
})
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
error?: string | false
|
|
8
|
+
minWidth?: number
|
|
9
|
+
}>()
|
|
10
|
+
|
|
11
|
+
const content = defineModel<string>()
|
|
12
|
+
const inputRef = ref<HTMLInputElement | null>(null)
|
|
13
|
+
const measureRef = ref<HTMLSpanElement | null>(null)
|
|
14
|
+
const inputWidth = ref('20px')
|
|
15
|
+
|
|
16
|
+
async function updateWidth() {
|
|
17
|
+
const MAX_ATTEMPTS = 10
|
|
18
|
+
const RETRY_DELAY = 100 // milliseconds
|
|
19
|
+
let attempts = 0
|
|
20
|
+
|
|
21
|
+
while (attempts < MAX_ATTEMPTS) {
|
|
22
|
+
await nextTick()
|
|
23
|
+
if (measureRef.value) {
|
|
24
|
+
const textWidth = measureRef.value.offsetWidth
|
|
25
|
+
if (textWidth > 0) {
|
|
26
|
+
inputWidth.value = `${Math.min(Math.max(textWidth + 22, props.minWidth ?? 20), 300)}px`
|
|
27
|
+
return
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
attempts++
|
|
31
|
+
await new Promise(resolve => setTimeout(resolve, RETRY_DELAY))
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Fallback in case textWidth remains 0 after maximum attempts
|
|
35
|
+
inputWidth.value = `${props.minWidth ?? 20}px`
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
onMounted(updateWidth)
|
|
39
|
+
watch(content, updateWidth, { immediate: true })
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<div flex relative>
|
|
44
|
+
<input
|
|
45
|
+
ref="inputRef"
|
|
46
|
+
v-model="content"
|
|
47
|
+
v-bind="$attrs"
|
|
48
|
+
py-4px px-10px
|
|
49
|
+
text-gray-800
|
|
50
|
+
rounded-6px
|
|
51
|
+
:style="{ width: inputWidth }"
|
|
52
|
+
b=".5px transparent"
|
|
53
|
+
hover="bg-gray-50 b-.5px b-gray-100"
|
|
54
|
+
transition ease
|
|
55
|
+
placeholder:text-gray-300 placeholder:font-medium
|
|
56
|
+
focus:b-gray-200
|
|
57
|
+
:class="[
|
|
58
|
+
error && 'bg-red-100 text-red-900',
|
|
59
|
+
]"
|
|
60
|
+
min-w-20px
|
|
61
|
+
max-w-300px
|
|
62
|
+
w-auto
|
|
63
|
+
inline-block
|
|
64
|
+
>
|
|
65
|
+
<span
|
|
66
|
+
ref="measureRef"
|
|
67
|
+
absolute
|
|
68
|
+
invisible
|
|
69
|
+
whitespace-pre
|
|
70
|
+
v-bind="$attrs"
|
|
71
|
+
>{{ content || inputRef?.placeholder || '' }}</span>
|
|
72
|
+
<div v-if="error" absolute font-medium text-red-900 text-8px bottom--12px flex items-center gap-3px whitespace-nowrap>
|
|
73
|
+
<div i-ph-info />
|
|
74
|
+
<span>{{ error }}</span>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|