@byyuurin/ui 0.0.10 → 0.1.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 +170 -58
- package/dist/module.d.mts +4 -13
- package/dist/module.json +4 -4
- package/dist/module.mjs +54 -20
- package/dist/runtime/components/Accordion.vue +48 -72
- package/dist/runtime/components/Accordion.vue.d.ts +74 -0
- package/dist/runtime/components/Alert.vue +65 -83
- package/dist/runtime/components/Alert.vue.d.ts +71 -0
- package/dist/runtime/components/App.vue +28 -42
- package/dist/runtime/components/App.vue.d.ts +26 -0
- package/dist/runtime/components/Avatar.vue +82 -58
- package/dist/runtime/components/Avatar.vue.d.ts +39 -0
- package/dist/runtime/components/AvatarGroup.vue +43 -70
- package/dist/runtime/components/AvatarGroup.vue.d.ts +30 -0
- package/dist/runtime/components/Badge.vue +70 -64
- package/dist/runtime/components/Badge.vue.d.ts +45 -0
- package/dist/runtime/components/Breadcrumb.vue +56 -76
- package/dist/runtime/components/Breadcrumb.vue.d.ts +79 -0
- package/dist/runtime/components/Button.vue +150 -78
- package/dist/runtime/components/Button.vue.d.ts +45 -0
- package/dist/runtime/components/Calendar.vue +99 -125
- package/dist/runtime/components/Calendar.vue.d.ts +102 -0
- package/dist/runtime/components/Card.vue +33 -46
- package/dist/runtime/components/Card.vue.d.ts +34 -0
- package/dist/runtime/components/Carousel.vue +164 -237
- package/dist/runtime/components/Carousel.vue.d.ts +125 -0
- package/dist/runtime/components/Checkbox.vue +86 -88
- package/dist/runtime/components/Checkbox.vue.d.ts +63 -0
- package/dist/runtime/components/Chip.vue +44 -58
- package/dist/runtime/components/Chip.vue.d.ts +48 -0
- package/dist/runtime/components/Collapsible.vue +29 -33
- package/dist/runtime/components/Collapsible.vue.d.ts +34 -0
- package/dist/runtime/components/Drawer.vue +110 -150
- package/dist/runtime/components/Drawer.vue.d.ts +103 -0
- package/dist/runtime/components/DropdownMenu.vue +49 -120
- package/dist/runtime/components/DropdownMenu.vue.d.ts +140 -0
- package/dist/runtime/components/DropdownMenuContent.vue +177 -143
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +51 -0
- package/dist/runtime/components/FieldGroup.vue +33 -0
- package/dist/runtime/components/FieldGroup.vue.d.ts +33 -0
- package/dist/runtime/components/Form.vue +245 -275
- package/dist/runtime/components/Form.vue.d.ts +103 -0
- package/dist/runtime/components/FormField.vue +108 -0
- package/dist/runtime/components/FormField.vue.d.ts +63 -0
- package/dist/runtime/components/Icon.vue +20 -0
- package/dist/runtime/components/Icon.vue.d.ts +9 -0
- package/dist/runtime/components/Input.vue +125 -156
- package/dist/runtime/components/Input.vue.d.ts +76 -0
- package/dist/runtime/components/InputNumber.vue +103 -130
- package/dist/runtime/components/InputNumber.vue.d.ts +191 -0
- package/dist/runtime/components/Kbd.vue +24 -39
- package/dist/runtime/components/Kbd.vue.d.ts +34 -0
- package/dist/runtime/components/Link.vue +105 -337
- package/dist/runtime/components/Link.vue.d.ts +95 -0
- package/dist/runtime/components/LinkBase.vue +31 -71
- package/dist/runtime/components/LinkBase.vue.d.ts +33 -0
- package/dist/runtime/components/Modal.vue +82 -103
- package/dist/runtime/components/Modal.vue.d.ts +96 -0
- package/dist/runtime/components/NavigationMenu.vue +336 -0
- package/dist/runtime/components/NavigationMenu.vue.d.ts +181 -0
- package/dist/runtime/components/OverlayProvider.vue +12 -16
- package/dist/runtime/components/OverlayProvider.vue.d.ts +3 -0
- package/dist/runtime/components/Pagination.vue +65 -139
- package/dist/runtime/components/Pagination.vue.d.ts +116 -0
- package/dist/runtime/components/PinInput.vue +78 -73
- package/dist/runtime/components/PinInput.vue.d.ts +54 -0
- package/dist/runtime/components/Popover.vue +60 -75
- package/dist/runtime/components/Popover.vue.d.ts +70 -0
- package/dist/runtime/components/Progress.vue +79 -126
- package/dist/runtime/components/Progress.vue.d.ts +63 -0
- package/dist/runtime/components/RadioGroup.vue +109 -140
- package/dist/runtime/components/RadioGroup.vue.d.ts +96 -0
- package/dist/runtime/components/ScrollArea.vue +50 -48
- package/dist/runtime/components/ScrollArea.vue.d.ts +21 -0
- package/dist/runtime/components/Select.vue +221 -221
- package/dist/runtime/components/Select.vue.d.ts +260 -0
- package/dist/runtime/components/Separator.vue +55 -47
- package/dist/runtime/components/Separator.vue.d.ts +48 -0
- package/dist/runtime/components/Skeleton.vue +25 -22
- package/dist/runtime/components/Skeleton.vue.d.ts +19 -0
- package/dist/runtime/components/Slider.vue +73 -77
- package/dist/runtime/components/Slider.vue.d.ts +52 -0
- package/dist/runtime/components/Switch.vue +66 -77
- package/dist/runtime/components/Switch.vue.d.ts +58 -0
- package/dist/runtime/components/Table.vue +357 -215
- package/dist/runtime/components/Table.vue.d.ts +234 -0
- package/dist/runtime/components/Tabs.vue +90 -88
- package/dist/runtime/components/Tabs.vue.d.ts +97 -0
- package/dist/runtime/components/Textarea.vue +147 -146
- package/dist/runtime/components/Textarea.vue.d.ts +76 -0
- package/dist/runtime/components/Toast.vue +108 -90
- package/dist/runtime/components/Toast.vue.d.ts +152 -0
- package/dist/runtime/components/ToastProvider.vue +82 -109
- package/dist/runtime/components/ToastProvider.vue.d.ts +51 -0
- package/dist/runtime/components/Tooltip.vue +54 -53
- package/dist/runtime/components/Tooltip.vue.d.ts +53 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +16 -0
- package/dist/runtime/composables/defineShortcuts.js +129 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +8 -3
- package/dist/runtime/composables/useAvatarGroup.js +10 -3
- package/dist/runtime/composables/useComponentIcons.d.ts +9 -6
- package/dist/runtime/composables/useComponentIcons.js +4 -4
- package/dist/runtime/composables/useFieldGroup.d.ts +8 -0
- package/dist/runtime/composables/useFieldGroup.js +14 -0
- package/dist/runtime/composables/useFormField.d.ts +62 -0
- package/dist/runtime/composables/useFormField.js +99 -0
- package/dist/runtime/composables/useKbd.d.ts +3 -2
- package/dist/runtime/composables/useKbd.js +3 -2
- package/dist/runtime/composables/useLocale.d.ts +68 -5
- package/dist/runtime/composables/useLocale.js +11 -11
- package/dist/runtime/composables/useOverlay.d.ts +51 -15
- package/dist/runtime/composables/useOverlay.js +44 -30
- package/dist/runtime/composables/usePortal.d.ts +6 -0
- package/dist/runtime/composables/usePortal.js +17 -0
- package/dist/runtime/composables/useToast.d.ts +12 -5
- package/dist/runtime/composables/useToast.js +12 -7
- package/dist/runtime/locale/en.d.ts +30 -1
- package/dist/runtime/locale/en.js +2 -1
- package/dist/runtime/locale/index.d.ts +2 -2
- package/dist/runtime/locale/index.js +1 -1
- package/dist/runtime/locale/zh_tw.d.ts +31 -0
- package/dist/runtime/locale/{zh-tw.js → zh_tw.js} +2 -1
- package/dist/runtime/plugins/colors.d.ts +2 -0
- package/dist/runtime/plugins/colors.js +50 -0
- package/dist/runtime/types/app.config.d.ts +6 -0
- package/dist/runtime/types/form.d.ts +58 -17
- package/dist/runtime/types/form.js +11 -0
- package/dist/runtime/types/index.d.ts +51 -8
- package/dist/runtime/types/index.js +45 -2
- package/dist/runtime/types/input.d.ts +8 -0
- package/dist/runtime/types/locale.d.ts +5 -0
- package/dist/runtime/types/style.d.ts +33 -0
- package/dist/runtime/types/style.js +0 -0
- package/dist/runtime/types/unocss.d.ts +4 -0
- package/dist/runtime/types/utils.d.ts +38 -37
- package/dist/runtime/utils/form.d.ts +5 -1
- package/dist/runtime/utils/form.js +49 -0
- package/dist/runtime/utils/index.d.ts +10 -13
- package/dist/runtime/utils/index.js +41 -48
- package/dist/runtime/utils/link.d.ts +5 -6
- package/dist/runtime/utils/link.js +16 -2
- package/dist/runtime/utils/locale.d.ts +5 -0
- package/dist/runtime/utils/locale.js +10 -0
- package/dist/runtime/utils/style.d.ts +94 -0
- package/dist/runtime/utils/style.js +37 -0
- package/dist/runtime/vue/components/Icon.vue +15 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +7 -0
- package/dist/runtime/vue/components/Link.vue +163 -0
- package/dist/runtime/vue/components/Link.vue.d.ts +95 -0
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +4 -0
- package/dist/runtime/vue/plugins/color-mode.d.ts +4 -0
- package/dist/runtime/vue/plugins/color-mode.js +6 -0
- package/dist/runtime/vue/plugins/head.d.ts +4 -0
- package/dist/runtime/vue/plugins/head.js +9 -0
- package/dist/runtime/vue/stubs.d.ts +16 -1
- package/dist/runtime/vue/stubs.js +32 -1
- package/dist/setup.d.mts +13 -0
- package/dist/setup.mjs +12 -0
- package/dist/shared/ui.CzIlLITK.mjs +51 -0
- package/dist/shared/ui.DSyJHSTk.mjs +3787 -0
- package/dist/shared/ui.DpbffTXs.d.mts +84 -0
- package/dist/shared/ui.IulR-OYx.d.mts +64 -0
- package/dist/types.d.mts +3 -1
- package/dist/unocss.d.mts +12 -52
- package/dist/unocss.mjs +144 -253
- package/dist/unplugin.d.mts +13 -26
- package/dist/unplugin.mjs +193 -18
- package/dist/vite.d.mts +10 -1
- package/dist/vite.mjs +12 -3
- package/package.json +156 -87
- package/vue-plugin.d.ts +5 -0
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -13
- package/dist/module.mjs.map +0 -1
- package/dist/runtime/app/injections.d.ts +0 -9307
- package/dist/runtime/app/injections.js +0 -61
- package/dist/runtime/components/ButtonGroup.vue +0 -46
- package/dist/runtime/components/FormItem.vue +0 -129
- package/dist/runtime/composables/useButtonGroup.d.ts +0 -5
- package/dist/runtime/composables/useButtonGroup.js +0 -9
- package/dist/runtime/composables/useFormItem.d.ts +0 -27
- package/dist/runtime/composables/useFormItem.js +0 -64
- package/dist/runtime/composables/useTheme.d.ts +0 -9
- package/dist/runtime/composables/useTheme.js +0 -23
- package/dist/runtime/index.d.ts +0 -44
- package/dist/runtime/index.js +0 -44
- package/dist/runtime/locale/zh-tw.d.ts +0 -2
- package/dist/runtime/theme/accordion.d.ts +0 -56
- package/dist/runtime/theme/accordion.js +0 -28
- package/dist/runtime/theme/alert.d.ts +0 -125
- package/dist/runtime/theme/alert.js +0 -47
- package/dist/runtime/theme/app.d.ts +0 -19
- package/dist/runtime/theme/app.js +0 -19
- package/dist/runtime/theme/avatar-group.d.ts +0 -52
- package/dist/runtime/theme/avatar-group.js +0 -32
- package/dist/runtime/theme/avatar.d.ts +0 -56
- package/dist/runtime/theme/avatar.js +0 -34
- package/dist/runtime/theme/badge.d.ts +0 -82
- package/dist/runtime/theme/badge.js +0 -92
- package/dist/runtime/theme/breadcrumb.d.ts +0 -67
- package/dist/runtime/theme/breadcrumb.js +0 -44
- package/dist/runtime/theme/button-group.d.ts +0 -66
- package/dist/runtime/theme/button-group.js +0 -42
- package/dist/runtime/theme/button.d.ts +0 -190
- package/dist/runtime/theme/button.js +0 -164
- package/dist/runtime/theme/calendar.d.ts +0 -56
- package/dist/runtime/theme/calendar.js +0 -69
- package/dist/runtime/theme/card.d.ts +0 -62
- package/dist/runtime/theme/card.js +0 -37
- package/dist/runtime/theme/carousel.d.ts +0 -113
- package/dist/runtime/theme/carousel.js +0 -43
- package/dist/runtime/theme/checkbox.d.ts +0 -88
- package/dist/runtime/theme/checkbox.js +0 -54
- package/dist/runtime/theme/chip.d.ts +0 -67
- package/dist/runtime/theme/chip.js +0 -66
- package/dist/runtime/theme/collapsible.d.ts +0 -38
- package/dist/runtime/theme/collapsible.js +0 -10
- package/dist/runtime/theme/drawer.d.ts +0 -148
- package/dist/runtime/theme/drawer.js +0 -113
- package/dist/runtime/theme/dropdown-menu.d.ts +0 -71
- package/dist/runtime/theme/dropdown-menu.js +0 -83
- package/dist/runtime/theme/form-item.d.ts +0 -76
- package/dist/runtime/theme/form-item.js +0 -34
- package/dist/runtime/theme/form.d.ts +0 -8
- package/dist/runtime/theme/form.js +0 -7
- package/dist/runtime/theme/index.d.ts +0 -41
- package/dist/runtime/theme/index.js +0 -41
- package/dist/runtime/theme/input-number.d.ts +0 -121
- package/dist/runtime/theme/input-number.js +0 -95
- package/dist/runtime/theme/input.d.ts +0 -178
- package/dist/runtime/theme/input.js +0 -151
- package/dist/runtime/theme/kbd.d.ts +0 -39
- package/dist/runtime/theme/kbd.js +0 -26
- package/dist/runtime/theme/link.d.ts +0 -44
- package/dist/runtime/theme/link.js +0 -26
- package/dist/runtime/theme/modal.d.ts +0 -48
- package/dist/runtime/theme/modal.js +0 -55
- package/dist/runtime/theme/pagination.d.ts +0 -80
- package/dist/runtime/theme/pagination.js +0 -17
- package/dist/runtime/theme/pinInput.d.ts +0 -100
- package/dist/runtime/theme/pinInput.js +0 -111
- package/dist/runtime/theme/popover.d.ts +0 -38
- package/dist/runtime/theme/popover.js +0 -13
- package/dist/runtime/theme/progress.d.ts +0 -186
- package/dist/runtime/theme/progress.js +0 -95
- package/dist/runtime/theme/radio-group.d.ts +0 -110
- package/dist/runtime/theme/radio-group.js +0 -61
- package/dist/runtime/theme/scroll-area.d.ts +0 -73
- package/dist/runtime/theme/scroll-area.js +0 -33
- package/dist/runtime/theme/select.d.ts +0 -192
- package/dist/runtime/theme/select.js +0 -173
- package/dist/runtime/theme/separator.d.ts +0 -80
- package/dist/runtime/theme/separator.js +0 -53
- package/dist/runtime/theme/skeleton.d.ts +0 -8
- package/dist/runtime/theme/skeleton.js +0 -7
- package/dist/runtime/theme/slider.d.ts +0 -76
- package/dist/runtime/theme/slider.js +0 -52
- package/dist/runtime/theme/switch.d.ts +0 -122
- package/dist/runtime/theme/switch.js +0 -78
- package/dist/runtime/theme/table.d.ts +0 -92
- package/dist/runtime/theme/table.js +0 -36
- package/dist/runtime/theme/tabs.d.ts +0 -135
- package/dist/runtime/theme/tabs.js +0 -146
- package/dist/runtime/theme/textarea.d.ts +0 -96
- package/dist/runtime/theme/textarea.js +0 -116
- package/dist/runtime/theme/toast-provider.d.ts +0 -122
- package/dist/runtime/theme/toast-provider.js +0 -97
- package/dist/runtime/theme/toast.d.ts +0 -89
- package/dist/runtime/theme/toast.js +0 -35
- package/dist/runtime/theme/tooltip.d.ts +0 -44
- package/dist/runtime/theme/tooltip.js +0 -11
- package/dist/runtime/types/components.d.ts +0 -42
- package/dist/runtime/utils/extend-theme.d.ts +0 -9
- package/dist/runtime/utils/extend-theme.js +0 -27
- package/dist/runtime/utils/styler.d.ts +0 -4
- package/dist/runtime/utils/styler.js +0 -10
- package/dist/runtime/utils/translator.d.ts +0 -18
- package/dist/runtime/utils/translator.js +0 -8
- package/dist/shared/ui.3e7fad19.mjs +0 -5
- package/dist/shared/ui.3e7fad19.mjs.map +0 -1
- package/dist/types.d.ts +0 -1
- package/dist/unocss.d.ts +0 -52
- package/dist/unocss.mjs.map +0 -1
- package/dist/unplugin.d.ts +0 -26
- package/dist/unplugin.mjs.map +0 -1
- package/dist/vite.d.ts +0 -9
- package/dist/vite.mjs.map +0 -1
- /package/dist/runtime/types/{components.js → input.js} +0 -0
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
/* @unocss-include */
|
|
4
|
-
{
|
|
5
|
-
slots: {
|
|
6
|
-
overlay: "fixed z-1 inset-0 bg-black/40",
|
|
7
|
-
content: "fixed z-1 bg-ui-base ring ring-ui-base/5 flex focus:outline-none",
|
|
8
|
-
container: "w-full flex flex-col overflow-hidden overflow-y-auto",
|
|
9
|
-
header: "flex flex-wrap items-center gap-1 px-4 py-5 pb-0 sm:px-6",
|
|
10
|
-
body: "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
11
|
-
footer: "flex items-center gap-1.5 p-4 pt-0 sm:px-6",
|
|
12
|
-
title: "flex-grow color-ui-base text-xl font-semibold",
|
|
13
|
-
description: "w-full color-ui-base/80",
|
|
14
|
-
close: "ms-auto"
|
|
15
|
-
},
|
|
16
|
-
variants: {
|
|
17
|
-
direction: {
|
|
18
|
-
top: {
|
|
19
|
-
content: "top-0 mb-24 flex-col-reverse rounded-b-ui-box"
|
|
20
|
-
},
|
|
21
|
-
bottom: {
|
|
22
|
-
content: "bottom-0 mt-24 flex-col rounded-t-ui-box"
|
|
23
|
-
},
|
|
24
|
-
left: {
|
|
25
|
-
content: "left-0 flex-row-reverse rounded-r-ui-box"
|
|
26
|
-
},
|
|
27
|
-
right: {
|
|
28
|
-
content: "right-0 flex-row rounded-l-ui-box"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
transition: {
|
|
32
|
-
true: {
|
|
33
|
-
overlay: "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
inset: {
|
|
37
|
-
true: {
|
|
38
|
-
content: "rounded-ui-box after:hidden"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
compoundVariants: [
|
|
43
|
-
{
|
|
44
|
-
direction: ["top", "bottom"],
|
|
45
|
-
class: {
|
|
46
|
-
content: "inset-x-0 h-auto max-h-[96%]"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
direction: ["left", "right"],
|
|
51
|
-
class: {
|
|
52
|
-
content: "inset-y-0 w-auto max-w-[calc(100%-2rem)]"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
direction: ["top"],
|
|
57
|
-
inset: true,
|
|
58
|
-
class: {
|
|
59
|
-
content: "inset-x-4 top-4"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
direction: ["top"],
|
|
64
|
-
transition: true,
|
|
65
|
-
class: {
|
|
66
|
-
content: "data-[state=open]:animate-[slide-in-from-top_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-top_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
direction: ["bottom"],
|
|
71
|
-
inset: true,
|
|
72
|
-
class: {
|
|
73
|
-
content: "inset-x-4 bottom-4"
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
direction: ["bottom"],
|
|
78
|
-
transition: true,
|
|
79
|
-
class: {
|
|
80
|
-
content: "data-[state=open]:animate-[slide-in-from-bottom_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-bottom_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
direction: ["left"],
|
|
85
|
-
inset: true,
|
|
86
|
-
class: {
|
|
87
|
-
content: "inset-y-4 left-4"
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
direction: ["left"],
|
|
92
|
-
transition: true,
|
|
93
|
-
class: {
|
|
94
|
-
content: "data-[state=open]:animate-[slide-in-from-left_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-left_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
direction: ["right"],
|
|
99
|
-
inset: true,
|
|
100
|
-
class: {
|
|
101
|
-
content: "inset-y-4 right-4"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
direction: ["right"],
|
|
106
|
-
transition: true,
|
|
107
|
-
class: {
|
|
108
|
-
content: "data-[state=open]:animate-[slide-in-from-right_500ms_cubic-bezier(0.32,0.72,0,1)] data-[state=closed]:animate-[slide-out-to-right_500ms_cubic-bezier(0.32,0.72,0,1)]"
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
);
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
base: undefined;
|
|
3
|
-
slots: {
|
|
4
|
-
content: string[];
|
|
5
|
-
arrow: string;
|
|
6
|
-
group: string;
|
|
7
|
-
label: string;
|
|
8
|
-
separator: string;
|
|
9
|
-
item: string[];
|
|
10
|
-
itemLeadingIcon: string;
|
|
11
|
-
itemLeadingAvatar: string;
|
|
12
|
-
itemTrailing: string;
|
|
13
|
-
itemTrailingIcon: string;
|
|
14
|
-
itemTrailingKbds: string;
|
|
15
|
-
itemLabel: string;
|
|
16
|
-
itemLabelExternalIcon: string;
|
|
17
|
-
};
|
|
18
|
-
variants: {
|
|
19
|
-
size: {
|
|
20
|
-
xs: {
|
|
21
|
-
content: string;
|
|
22
|
-
};
|
|
23
|
-
sm: {
|
|
24
|
-
content: string;
|
|
25
|
-
};
|
|
26
|
-
md: {
|
|
27
|
-
content: string;
|
|
28
|
-
};
|
|
29
|
-
lg: {
|
|
30
|
-
content: string;
|
|
31
|
-
};
|
|
32
|
-
xl: {
|
|
33
|
-
content: string;
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
active: {
|
|
37
|
-
true: {
|
|
38
|
-
item: string;
|
|
39
|
-
itemLeadingIcon: string;
|
|
40
|
-
};
|
|
41
|
-
false: {
|
|
42
|
-
item: string;
|
|
43
|
-
itemLeadingIcon: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
loading: {
|
|
47
|
-
true: {
|
|
48
|
-
itemLeadingIcon: string;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
compoundVariants: ({
|
|
53
|
-
size: ("xs" | "sm" | "md")[];
|
|
54
|
-
class: {
|
|
55
|
-
label: string;
|
|
56
|
-
item: string;
|
|
57
|
-
itemTrailingKbds: string;
|
|
58
|
-
};
|
|
59
|
-
} | {
|
|
60
|
-
size: ("lg" | "xl")[];
|
|
61
|
-
class: {
|
|
62
|
-
label: string;
|
|
63
|
-
item: string;
|
|
64
|
-
itemTrailingKbds: string;
|
|
65
|
-
};
|
|
66
|
-
})[];
|
|
67
|
-
defaultVariants: {
|
|
68
|
-
size: "md";
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
export default _default;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
/* @unocss-include */
|
|
4
|
-
{
|
|
5
|
-
slots: {
|
|
6
|
-
content: [
|
|
7
|
-
"bg-ui-base shadow-lg rounded-ui-base ring ring-ui-base/10 divide-y divide-ui-base/10 overflow-y-auto scroll-py-1",
|
|
8
|
-
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]"
|
|
9
|
-
],
|
|
10
|
-
arrow: "-mt-px fill-ui-cx stroke-ui-base/10",
|
|
11
|
-
group: "p-1 isolate",
|
|
12
|
-
label: "w-full flex items-center font-semibold color-ui-base",
|
|
13
|
-
separator: "-mx-1 my-1 h-px bg-ui-cb/10",
|
|
14
|
-
item: [
|
|
15
|
-
"group relative w-full flex items-center select-none outline-none",
|
|
16
|
-
"before:content-empty before:absolute before:z-[-1] before:inset-px before:rounded-ui-base",
|
|
17
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50"
|
|
18
|
-
],
|
|
19
|
-
itemLeadingIcon: "shrink-0",
|
|
20
|
-
itemLeadingAvatar: "shrink-0",
|
|
21
|
-
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
22
|
-
itemTrailingIcon: "shrink-0",
|
|
23
|
-
itemTrailingKbds: "hidden lg:inline-flex items-center shrink-0",
|
|
24
|
-
itemLabel: "truncate",
|
|
25
|
-
itemLabelExternalIcon: "inline-block size-3 align-top color-ui-base/50"
|
|
26
|
-
},
|
|
27
|
-
variants: {
|
|
28
|
-
size: {
|
|
29
|
-
xs: {
|
|
30
|
-
content: "text-xs"
|
|
31
|
-
},
|
|
32
|
-
sm: {
|
|
33
|
-
content: "text-sm"
|
|
34
|
-
},
|
|
35
|
-
md: {
|
|
36
|
-
content: "text-base"
|
|
37
|
-
},
|
|
38
|
-
lg: {
|
|
39
|
-
content: "text-lg"
|
|
40
|
-
},
|
|
41
|
-
xl: {
|
|
42
|
-
content: "text-xl"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
active: {
|
|
46
|
-
true: {
|
|
47
|
-
item: "color-ui-base before:bg-ui-cb/10",
|
|
48
|
-
itemLeadingIcon: "color-ui-base/80"
|
|
49
|
-
},
|
|
50
|
-
false: {
|
|
51
|
-
item: "color-ui-base/80 data-[highlighted]:color-ui-base data-[state=open]:color-ui-base data-[highlighted]:before:bg-ui-cb/5 data-[state=open]:before:bg-ui-cb/5 transition-colors before:transition-colors",
|
|
52
|
-
itemLeadingIcon: "color-ui-base/50 group-data-[highlighted]:color-ui-base/80 group-data-[state=open]:color-ui-base/80 transition-colors"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
loading: {
|
|
56
|
-
true: {
|
|
57
|
-
itemLeadingIcon: "animate-spin"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
compoundVariants: [
|
|
62
|
-
{
|
|
63
|
-
size: ["xs", "sm", "md"],
|
|
64
|
-
class: {
|
|
65
|
-
label: "p-0.25em gap-0.25em",
|
|
66
|
-
item: "p-0.25em gap-0.25em",
|
|
67
|
-
itemTrailingKbds: "gap-0.125em"
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
size: ["lg", "xl"],
|
|
72
|
-
class: {
|
|
73
|
-
label: "p-0.5em gap-0.5em",
|
|
74
|
-
item: "p-0.5em gap-0.5em",
|
|
75
|
-
itemTrailingKbds: "gap-0.25em"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
defaultVariants: {
|
|
80
|
-
size: "md"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
);
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
base: undefined;
|
|
3
|
-
slots: {
|
|
4
|
-
root: string;
|
|
5
|
-
wrapper: string;
|
|
6
|
-
labelWrapper: string;
|
|
7
|
-
label: string;
|
|
8
|
-
container: string;
|
|
9
|
-
description: string;
|
|
10
|
-
error: string;
|
|
11
|
-
hint: string;
|
|
12
|
-
help: string;
|
|
13
|
-
};
|
|
14
|
-
variants: {
|
|
15
|
-
size: {
|
|
16
|
-
xs: {
|
|
17
|
-
root: string;
|
|
18
|
-
};
|
|
19
|
-
sm: {
|
|
20
|
-
root: string;
|
|
21
|
-
};
|
|
22
|
-
md: {
|
|
23
|
-
root: string;
|
|
24
|
-
};
|
|
25
|
-
lg: {
|
|
26
|
-
root: string;
|
|
27
|
-
};
|
|
28
|
-
xl: {
|
|
29
|
-
root: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
required: {
|
|
33
|
-
true: {
|
|
34
|
-
label: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{
|
|
39
|
-
size: {
|
|
40
|
-
xs: {
|
|
41
|
-
root: string;
|
|
42
|
-
};
|
|
43
|
-
sm: {
|
|
44
|
-
root: string;
|
|
45
|
-
};
|
|
46
|
-
md: {
|
|
47
|
-
root: string;
|
|
48
|
-
};
|
|
49
|
-
lg: {
|
|
50
|
-
root: string;
|
|
51
|
-
};
|
|
52
|
-
xl: {
|
|
53
|
-
root: string;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
required: {
|
|
57
|
-
true: {
|
|
58
|
-
label: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
root: string;
|
|
63
|
-
wrapper: string;
|
|
64
|
-
labelWrapper: string;
|
|
65
|
-
label: string;
|
|
66
|
-
container: string;
|
|
67
|
-
description: string;
|
|
68
|
-
error: string;
|
|
69
|
-
hint: string;
|
|
70
|
-
help: string;
|
|
71
|
-
}, undefined>;
|
|
72
|
-
defaultVariants: {
|
|
73
|
-
size: "md";
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
export default _default;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
export default ct(
|
|
3
|
-
/* @unocss-include */
|
|
4
|
-
{
|
|
5
|
-
slots: {
|
|
6
|
-
root: "",
|
|
7
|
-
wrapper: "",
|
|
8
|
-
labelWrapper: "flex content-center items-center justify-between",
|
|
9
|
-
label: "block font-medium color-ui-base/80",
|
|
10
|
-
container: "mt-0.25em relative",
|
|
11
|
-
description: "color-ui-base/60",
|
|
12
|
-
error: "mt-0.25em color-ui-fill",
|
|
13
|
-
hint: "color-ui-base/60",
|
|
14
|
-
help: "mt-0.25em color-ui-base/60"
|
|
15
|
-
},
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
xs: { root: "text-xs" },
|
|
19
|
-
sm: { root: "text-sm" },
|
|
20
|
-
md: { root: "text-base" },
|
|
21
|
-
lg: { root: "text-lg" },
|
|
22
|
-
xl: { root: "text-xl" }
|
|
23
|
-
},
|
|
24
|
-
required: {
|
|
25
|
-
true: {
|
|
26
|
-
label: `after:content-['*'] after:ms-0.5 after:color-ui-fill`
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
defaultVariants: {
|
|
31
|
-
size: "md"
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
base: string;
|
|
3
|
-
slots: undefined;
|
|
4
|
-
variants: {};
|
|
5
|
-
compoundVariants: import("@byyuurin/ui-kit").CVCompoundVariants<{}, undefined, "">;
|
|
6
|
-
defaultVariants: import("@byyuurin/ui-kit").CVDefaultVariants<{}, undefined>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { default as accordion } from './accordion.js';
|
|
2
|
-
export { default as alert } from './alert.js';
|
|
3
|
-
export { default as app } from './app.js';
|
|
4
|
-
export { default as avatar } from './avatar.js';
|
|
5
|
-
export { default as avatarGroup } from './avatar-group.js';
|
|
6
|
-
export { default as badge } from './badge.js';
|
|
7
|
-
export { default as breadcrumb } from './breadcrumb.js';
|
|
8
|
-
export { default as button } from './button.js';
|
|
9
|
-
export { default as buttonGroup } from './button-group.js';
|
|
10
|
-
export { default as calendar } from './calendar.js';
|
|
11
|
-
export { default as card } from './card.js';
|
|
12
|
-
export { default as carousel } from './carousel.js';
|
|
13
|
-
export { default as checkbox } from './checkbox.js';
|
|
14
|
-
export { default as chip } from './chip.js';
|
|
15
|
-
export { default as collapsible } from './collapsible.js';
|
|
16
|
-
export { default as drawer } from './drawer.js';
|
|
17
|
-
export { default as dropdownMenu } from './dropdown-menu.js';
|
|
18
|
-
export { default as form } from './form.js';
|
|
19
|
-
export { default as formItem } from './form-item.js';
|
|
20
|
-
export { default as input } from './input.js';
|
|
21
|
-
export { default as inputNumber } from './input-number.js';
|
|
22
|
-
export { default as kbd } from './kbd.js';
|
|
23
|
-
export { default as link } from './link.js';
|
|
24
|
-
export { default as modal } from './modal.js';
|
|
25
|
-
export { default as pagination } from './pagination.js';
|
|
26
|
-
export { default as pinInput } from './pinInput.js';
|
|
27
|
-
export { default as popover } from './popover.js';
|
|
28
|
-
export { default as progress } from './progress.js';
|
|
29
|
-
export { default as radioGroup } from './radio-group.js';
|
|
30
|
-
export { default as scrollArea } from './scroll-area.js';
|
|
31
|
-
export { default as select } from './select.js';
|
|
32
|
-
export { default as separator } from './separator.js';
|
|
33
|
-
export { default as skeleton } from './skeleton.js';
|
|
34
|
-
export { default as slider } from './slider.js';
|
|
35
|
-
export { default as switch } from './switch.js';
|
|
36
|
-
export { default as table } from './table.js';
|
|
37
|
-
export { default as tabs } from './tabs.js';
|
|
38
|
-
export { default as textarea } from './textarea.js';
|
|
39
|
-
export { default as toast } from './toast.js';
|
|
40
|
-
export { default as toastProvider } from './toast-provider.js';
|
|
41
|
-
export { default as tooltip } from './tooltip.js';
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export { default as accordion } from "./accordion.js";
|
|
2
|
-
export { default as alert } from "./alert.js";
|
|
3
|
-
export { default as app } from "./app.js";
|
|
4
|
-
export { default as avatar } from "./avatar.js";
|
|
5
|
-
export { default as avatarGroup } from "./avatar-group.js";
|
|
6
|
-
export { default as badge } from "./badge.js";
|
|
7
|
-
export { default as breadcrumb } from "./breadcrumb.js";
|
|
8
|
-
export { default as button } from "./button.js";
|
|
9
|
-
export { default as buttonGroup } from "./button-group.js";
|
|
10
|
-
export { default as calendar } from "./calendar.js";
|
|
11
|
-
export { default as card } from "./card.js";
|
|
12
|
-
export { default as carousel } from "./carousel.js";
|
|
13
|
-
export { default as checkbox } from "./checkbox.js";
|
|
14
|
-
export { default as chip } from "./chip.js";
|
|
15
|
-
export { default as collapsible } from "./collapsible.js";
|
|
16
|
-
export { default as drawer } from "./drawer.js";
|
|
17
|
-
export { default as dropdownMenu } from "./dropdown-menu.js";
|
|
18
|
-
export { default as form } from "./form.js";
|
|
19
|
-
export { default as formItem } from "./form-item.js";
|
|
20
|
-
export { default as input } from "./input.js";
|
|
21
|
-
export { default as inputNumber } from "./input-number.js";
|
|
22
|
-
export { default as kbd } from "./kbd.js";
|
|
23
|
-
export { default as link } from "./link.js";
|
|
24
|
-
export { default as modal } from "./modal.js";
|
|
25
|
-
export { default as pagination } from "./pagination.js";
|
|
26
|
-
export { default as pinInput } from "./pinInput.js";
|
|
27
|
-
export { default as popover } from "./popover.js";
|
|
28
|
-
export { default as progress } from "./progress.js";
|
|
29
|
-
export { default as radioGroup } from "./radio-group.js";
|
|
30
|
-
export { default as scrollArea } from "./scroll-area.js";
|
|
31
|
-
export { default as select } from "./select.js";
|
|
32
|
-
export { default as separator } from "./separator.js";
|
|
33
|
-
export { default as skeleton } from "./skeleton.js";
|
|
34
|
-
export { default as slider } from "./slider.js";
|
|
35
|
-
export { default as switch } from "./switch.js";
|
|
36
|
-
export { default as table } from "./table.js";
|
|
37
|
-
export { default as tabs } from "./tabs.js";
|
|
38
|
-
export { default as textarea } from "./textarea.js";
|
|
39
|
-
export { default as toast } from "./toast.js";
|
|
40
|
-
export { default as toastProvider } from "./toast-provider.js";
|
|
41
|
-
export { default as tooltip } from "./tooltip.js";
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
base: undefined;
|
|
3
|
-
slots: {
|
|
4
|
-
base: string;
|
|
5
|
-
input: string[];
|
|
6
|
-
increment: string;
|
|
7
|
-
decrement: string;
|
|
8
|
-
};
|
|
9
|
-
variants: {
|
|
10
|
-
size: {
|
|
11
|
-
xs: {
|
|
12
|
-
base: string;
|
|
13
|
-
};
|
|
14
|
-
sm: {
|
|
15
|
-
base: string;
|
|
16
|
-
};
|
|
17
|
-
md: {
|
|
18
|
-
base: string;
|
|
19
|
-
};
|
|
20
|
-
lg: {
|
|
21
|
-
base: string;
|
|
22
|
-
};
|
|
23
|
-
xl: {
|
|
24
|
-
base: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
variant: {
|
|
28
|
-
outline: {
|
|
29
|
-
base: string[];
|
|
30
|
-
};
|
|
31
|
-
soft: {
|
|
32
|
-
base: string[];
|
|
33
|
-
};
|
|
34
|
-
'soft-outline': {
|
|
35
|
-
base: string[];
|
|
36
|
-
};
|
|
37
|
-
ghost: {
|
|
38
|
-
base: string[];
|
|
39
|
-
};
|
|
40
|
-
none: {
|
|
41
|
-
base: string;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
disabled: {
|
|
45
|
-
true: {
|
|
46
|
-
increment: string;
|
|
47
|
-
decrement: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
orientation: {
|
|
51
|
-
horizontal: {
|
|
52
|
-
input: string;
|
|
53
|
-
increment: string;
|
|
54
|
-
decrement: string;
|
|
55
|
-
};
|
|
56
|
-
vertical: {
|
|
57
|
-
increment: string;
|
|
58
|
-
decrement: string;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
underline: {
|
|
62
|
-
true: "";
|
|
63
|
-
};
|
|
64
|
-
highlight: {
|
|
65
|
-
true: {
|
|
66
|
-
base: string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
compoundVariants: ({
|
|
71
|
-
variant: ("soft" | "ghost" | "none")[];
|
|
72
|
-
highlight: false;
|
|
73
|
-
underline: true;
|
|
74
|
-
class: {
|
|
75
|
-
base: string[];
|
|
76
|
-
input?: undefined;
|
|
77
|
-
};
|
|
78
|
-
size?: undefined;
|
|
79
|
-
} | {
|
|
80
|
-
size: ("xs" | "sm" | "md")[];
|
|
81
|
-
class: {
|
|
82
|
-
base: string;
|
|
83
|
-
input: string;
|
|
84
|
-
};
|
|
85
|
-
variant?: undefined;
|
|
86
|
-
highlight?: undefined;
|
|
87
|
-
underline?: undefined;
|
|
88
|
-
} | {
|
|
89
|
-
size: ("lg" | "xl")[];
|
|
90
|
-
class: {
|
|
91
|
-
base: string;
|
|
92
|
-
input: string;
|
|
93
|
-
};
|
|
94
|
-
variant?: undefined;
|
|
95
|
-
highlight?: undefined;
|
|
96
|
-
underline?: undefined;
|
|
97
|
-
} | {
|
|
98
|
-
variant: ("soft" | "soft-outline" | "ghost" | "none")[];
|
|
99
|
-
highlight: true;
|
|
100
|
-
class: {
|
|
101
|
-
base: string;
|
|
102
|
-
input?: undefined;
|
|
103
|
-
};
|
|
104
|
-
underline?: undefined;
|
|
105
|
-
size?: undefined;
|
|
106
|
-
} | {
|
|
107
|
-
variant: "outline"[];
|
|
108
|
-
highlight: true;
|
|
109
|
-
class: {
|
|
110
|
-
base: string;
|
|
111
|
-
input?: undefined;
|
|
112
|
-
};
|
|
113
|
-
underline?: undefined;
|
|
114
|
-
size?: undefined;
|
|
115
|
-
})[];
|
|
116
|
-
defaultVariants: {
|
|
117
|
-
size: "md";
|
|
118
|
-
variant: "outline";
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
export default _default;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ct } from "@byyuurin/ui-kit";
|
|
2
|
-
import inputTheme from "./input.js";
|
|
3
|
-
export default ct(
|
|
4
|
-
/* @unocss-include */
|
|
5
|
-
{
|
|
6
|
-
slots: {
|
|
7
|
-
base: "relative inline-flex items-center rounded-ui-base transition-colors aria-disabled:opacity-50",
|
|
8
|
-
input: [
|
|
9
|
-
"w-full color-inherit bg-transparent border-0 placeholder:color-ui-base/50",
|
|
10
|
-
"focus:outline-none",
|
|
11
|
-
"disabled:cursor-not-allowed"
|
|
12
|
-
],
|
|
13
|
-
increment: "absolute flex items-center ui-base",
|
|
14
|
-
decrement: "absolute flex items-center ui-base"
|
|
15
|
-
},
|
|
16
|
-
variants: {
|
|
17
|
-
size: {
|
|
18
|
-
...inputTheme.variants.size
|
|
19
|
-
},
|
|
20
|
-
variant: {
|
|
21
|
-
...inputTheme.variants.variant
|
|
22
|
-
},
|
|
23
|
-
disabled: {
|
|
24
|
-
true: {
|
|
25
|
-
increment: "opacity-50 cursor-not-allowed",
|
|
26
|
-
decrement: "opacity-50 cursor-not-allowed"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
orientation: {
|
|
30
|
-
horizontal: {
|
|
31
|
-
input: "text-center",
|
|
32
|
-
increment: "inset-y-0 end-0 pe-0.5",
|
|
33
|
-
decrement: "inset-y-0 start-0 ps-0.5"
|
|
34
|
-
},
|
|
35
|
-
vertical: {
|
|
36
|
-
increment: "top-0 end-0 pe-0.5 [&>button]:py-0 scale-80",
|
|
37
|
-
decrement: "bottom-0 end-0 pe-0.5 [&>button]:py-0 scale-80"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
underline: {
|
|
41
|
-
true: ""
|
|
42
|
-
},
|
|
43
|
-
highlight: {
|
|
44
|
-
true: {
|
|
45
|
-
base: "ring ring-inset ring-ui-fill"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
compoundVariants: [
|
|
50
|
-
{
|
|
51
|
-
variant: ["soft", "ghost", "none"],
|
|
52
|
-
highlight: false,
|
|
53
|
-
underline: true,
|
|
54
|
-
class: {
|
|
55
|
-
base: [
|
|
56
|
-
"relative after:content-empty after:absolute after:inset-x-0 after:bottom-0 after:h-1px after:bg-soft-ui-cb/40",
|
|
57
|
-
"focus-within:after:h-2px focus-within:after:bg-soft-ui-fill/60"
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
size: ["xs", "sm", "md"],
|
|
63
|
-
class: {
|
|
64
|
-
base: "p-1.5",
|
|
65
|
-
input: "px-1"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
size: ["lg", "xl"],
|
|
70
|
-
class: {
|
|
71
|
-
base: "p-2.5",
|
|
72
|
-
input: "px-1.5"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
variant: ["soft", "soft-outline", "ghost", "none"],
|
|
77
|
-
highlight: true,
|
|
78
|
-
class: {
|
|
79
|
-
base: "ring ring-inset ring-ui-fill/80"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
variant: ["outline"],
|
|
84
|
-
highlight: true,
|
|
85
|
-
class: {
|
|
86
|
-
base: "ring-2 ring-ui-fill/80 focus-within:ring-ui-fill/80"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
defaultVariants: {
|
|
91
|
-
size: "md",
|
|
92
|
-
variant: "outline"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
);
|