@nuxt/ui 3.0.0-alpha.8 → 3.0.0-beta.1
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/.nuxt/ui/accordion.ts +2 -2
- package/.nuxt/ui/alert.ts +122 -95
- package/.nuxt/ui/avatar-group.ts +14 -2
- package/.nuxt/ui/avatar.ts +16 -4
- package/.nuxt/ui/badge.ts +139 -93
- package/.nuxt/ui/breadcrumb.ts +5 -5
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +167 -136
- package/.nuxt/ui/calendar.ts +103 -0
- package/.nuxt/ui/card.ts +27 -1
- package/.nuxt/ui/carousel.ts +9 -7
- package/.nuxt/ui/checkbox.ts +45 -27
- package/.nuxt/ui/chip.ts +44 -15
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +28 -18
- package/.nuxt/ui/container.ts +1 -1
- package/.nuxt/ui/context-menu.ts +64 -46
- package/.nuxt/ui/drawer.ts +83 -15
- package/.nuxt/ui/dropdown-menu.ts +65 -47
- package/.nuxt/ui/form-field.ts +15 -7
- package/.nuxt/ui/index.ts +7 -1
- package/.nuxt/ui/input-menu.ts +150 -116
- package/.nuxt/ui/input-number.ts +235 -0
- package/.nuxt/ui/input.ts +111 -76
- package/.nuxt/ui/kbd.ts +18 -6
- package/.nuxt/ui/link.ts +3 -3
- package/.nuxt/ui/modal.ts +8 -7
- package/.nuxt/ui/navigation-menu.ts +244 -131
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +2 -2
- package/.nuxt/ui/progress.ts +111 -72
- package/.nuxt/ui/radio-group.ts +45 -22
- package/.nuxt/ui/select-menu.ts +127 -96
- package/.nuxt/ui/select.ts +120 -84
- package/.nuxt/ui/separator.ts +60 -31
- package/.nuxt/ui/skeleton.ts +1 -1
- package/.nuxt/ui/slideover.ts +17 -9
- package/.nuxt/ui/slider.ts +61 -38
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +40 -22
- package/.nuxt/ui/table.ts +49 -31
- package/.nuxt/ui/tabs.ts +101 -73
- package/.nuxt/ui/textarea.ts +111 -76
- package/.nuxt/ui/toast.ts +53 -33
- package/.nuxt/ui/toaster.ts +31 -15
- package/.nuxt/ui/tooltip.ts +2 -2
- package/.nuxt/ui/tree.ts +154 -0
- package/.nuxt/ui.css +92 -0
- package/README.md +69 -18
- package/cli/commands/{init.mjs → make/component.mjs} +16 -4
- package/cli/commands/make/index.mjs +14 -0
- package/cli/commands/make/locale.mjs +64 -0
- package/cli/index.mjs +2 -2
- package/cli/package.json +2 -2
- package/cli/templates.mjs +62 -12
- package/cli/utils.mjs +14 -0
- package/dist/module.cjs +9 -170
- package/dist/module.d.cts +5 -15
- package/dist/module.d.mts +5 -15
- package/dist/module.d.ts +5 -15
- package/dist/module.json +2 -2
- package/dist/module.mjs +12 -167
- package/dist/runtime/components/Accordion.vue +8 -39
- package/dist/runtime/components/Alert.vue +25 -21
- package/dist/runtime/components/App.vue +15 -15
- package/dist/runtime/components/Avatar.vue +33 -21
- package/dist/runtime/components/AvatarGroup.vue +5 -7
- package/dist/runtime/components/Badge.vue +10 -8
- package/dist/runtime/components/Breadcrumb.vue +13 -34
- package/dist/runtime/components/Button.vue +5 -8
- package/dist/runtime/components/ButtonGroup.vue +5 -7
- package/dist/runtime/components/Calendar.vue +194 -0
- package/dist/runtime/components/Card.vue +10 -9
- package/dist/runtime/components/Carousel.vue +26 -17
- package/dist/runtime/components/Checkbox.vue +32 -38
- package/dist/runtime/components/Chip.vue +6 -8
- package/dist/runtime/components/Collapsible.vue +10 -11
- package/dist/runtime/components/ColorPicker.vue +297 -0
- package/dist/runtime/components/CommandPalette.vue +114 -98
- package/dist/runtime/components/Container.vue +4 -7
- package/dist/runtime/components/ContextMenu.vue +16 -69
- package/dist/runtime/components/ContextMenuContent.vue +14 -10
- package/dist/runtime/components/Drawer.vue +23 -12
- package/dist/runtime/components/DropdownMenu.vue +18 -59
- package/dist/runtime/components/DropdownMenuContent.vue +14 -10
- package/dist/runtime/components/Form.vue +78 -49
- package/dist/runtime/components/FormField.vue +28 -15
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -7
- package/dist/runtime/components/InputMenu.vue +133 -66
- package/dist/runtime/components/InputNumber.vue +197 -0
- package/dist/runtime/components/Kbd.vue +5 -6
- package/dist/runtime/components/Link.vue +24 -13
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +56 -34
- package/dist/runtime/components/NavigationMenu.vue +129 -112
- package/dist/runtime/components/OverlayProvider.vue +28 -0
- package/dist/runtime/components/Pagination.vue +18 -14
- package/dist/runtime/components/PinInput.vue +95 -0
- package/dist/runtime/components/Popover.vue +28 -14
- package/dist/runtime/components/Progress.vue +28 -12
- package/dist/runtime/components/RadioGroup.vue +9 -12
- package/dist/runtime/components/Select.vue +61 -35
- package/dist/runtime/components/SelectMenu.vue +201 -130
- package/dist/runtime/components/Separator.vue +6 -5
- package/dist/runtime/components/Skeleton.vue +4 -7
- package/dist/runtime/components/Slideover.vue +56 -33
- package/dist/runtime/components/Slider.vue +8 -7
- package/dist/runtime/components/Stepper.vue +170 -0
- package/dist/runtime/components/Switch.vue +19 -23
- package/dist/runtime/components/Table.vue +157 -32
- package/dist/runtime/components/Tabs.vue +12 -31
- package/dist/runtime/components/Textarea.vue +18 -9
- package/dist/runtime/components/Toast.vue +39 -25
- package/dist/runtime/components/Toaster.vue +31 -24
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/components/Tree.vue +196 -0
- package/dist/runtime/composables/defineLocale.d.ts +9 -0
- package/dist/runtime/composables/defineLocale.js +4 -0
- package/dist/runtime/composables/defineShortcuts.d.ts +1 -1
- package/dist/runtime/composables/defineShortcuts.js +2 -2
- package/dist/runtime/composables/useFormField.d.ts +11 -4
- package/dist/runtime/composables/useFormField.js +19 -9
- package/dist/runtime/composables/useLocale.d.ts +4 -0
- package/dist/runtime/composables/useLocale.js +10 -0
- package/dist/runtime/composables/useOverlay.d.ts +30 -0
- package/dist/runtime/composables/useOverlay.js +70 -0
- package/dist/runtime/composables/useToast.d.ts +4 -3
- package/dist/runtime/composables/useToast.js +20 -6
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/keyframes.css +1 -1
- package/dist/runtime/locale/ar.d.ts +2 -0
- package/dist/runtime/locale/ar.js +55 -0
- package/dist/runtime/locale/az.d.ts +2 -0
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.d.ts +2 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/cs.d.ts +2 -0
- package/dist/runtime/locale/cs.js +54 -0
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.d.ts +2 -0
- package/dist/runtime/locale/de.js +54 -0
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.d.ts +2 -0
- package/dist/runtime/locale/en.js +54 -0
- package/dist/runtime/locale/es.d.ts +2 -0
- package/dist/runtime/locale/es.js +54 -0
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.d.ts +2 -0
- package/dist/runtime/locale/fa_ir.js +55 -0
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.d.ts +2 -0
- package/dist/runtime/locale/fr.js +54 -0
- package/dist/runtime/locale/he.d.ts +2 -0
- package/dist/runtime/locale/he.js +53 -0
- package/dist/runtime/locale/hi.d.ts +2 -0
- package/dist/runtime/locale/hi.js +54 -0
- package/dist/runtime/locale/hu.d.ts +2 -0
- package/dist/runtime/locale/hu.js +54 -0
- package/dist/runtime/locale/id.d.ts +2 -0
- package/dist/runtime/locale/id.js +54 -0
- package/dist/runtime/locale/index.d.ts +34 -0
- package/dist/runtime/locale/index.js +34 -0
- package/dist/runtime/locale/it.d.ts +2 -0
- package/dist/runtime/locale/it.js +54 -0
- package/dist/runtime/locale/ja.d.ts +2 -0
- package/dist/runtime/locale/ja.js +54 -0
- package/dist/runtime/locale/km.d.ts +2 -0
- package/dist/runtime/locale/km.js +54 -0
- package/dist/runtime/locale/ko.d.ts +2 -0
- package/dist/runtime/locale/ko.js +54 -0
- package/dist/runtime/locale/nb_no.d.ts +2 -0
- package/dist/runtime/locale/nb_no.js +54 -0
- package/dist/runtime/locale/nl.d.ts +2 -0
- package/dist/runtime/locale/nl.js +54 -0
- package/dist/runtime/locale/pl.d.ts +2 -0
- package/dist/runtime/locale/pl.js +54 -0
- package/dist/runtime/locale/pt.d.ts +2 -0
- package/dist/runtime/locale/pt.js +54 -0
- package/dist/runtime/locale/pt_br.d.ts +2 -0
- package/dist/runtime/locale/pt_br.js +54 -0
- package/dist/runtime/locale/ru.d.ts +2 -0
- package/dist/runtime/locale/ru.js +54 -0
- package/dist/runtime/locale/sk.d.ts +2 -0
- package/dist/runtime/locale/sk.js +54 -0
- package/dist/runtime/locale/sv.d.ts +2 -0
- package/dist/runtime/locale/sv.js +54 -0
- package/dist/runtime/locale/th.d.ts +2 -0
- package/dist/runtime/locale/th.js +54 -0
- package/dist/runtime/locale/tr.d.ts +2 -0
- package/dist/runtime/locale/tr.js +54 -0
- package/dist/runtime/locale/uk.d.ts +2 -0
- package/dist/runtime/locale/uk.js +54 -0
- package/dist/runtime/locale/vi.d.ts +2 -0
- package/dist/runtime/locale/vi.js +54 -0
- package/dist/runtime/locale/zh_cn.d.ts +2 -0
- package/dist/runtime/locale/zh_cn.js +54 -0
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/zh_tw.js +54 -0
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +29 -15
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/index.d.ts +8 -0
- package/dist/runtime/types/index.js +8 -0
- package/dist/runtime/types/locale.d.ts +56 -0
- package/dist/runtime/types/locale.js +0 -0
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +5 -9
- package/dist/runtime/utils/form.js +113 -50
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +15 -2
- package/dist/runtime/utils/link.d.ts +1 -1
- package/dist/runtime/utils/locale.d.ts +15 -0
- package/dist/runtime/utils/locale.js +25 -0
- package/dist/runtime/utils/tv.d.ts +1 -0
- package/dist/runtime/utils/tv.js +4 -0
- package/dist/runtime/vue/components/Icon.vue +2 -2
- package/dist/runtime/vue/components/Link.vue +87 -23
- package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
- package/dist/runtime/vue/composables/useAppConfig.js +2 -0
- package/dist/runtime/vue/plugins/head.d.ts +1 -1
- package/dist/runtime/vue/plugins/head.js +3 -3
- package/dist/runtime/vue/stubs.d.ts +19 -0
- package/dist/runtime/vue/stubs.js +37 -0
- package/dist/shared/{ui.BufKhDiD.mjs → ui.DSPu6Y8j.mjs} +1071 -409
- package/dist/shared/{ui.BU7wzH0D.cjs → ui.DfK2RX6G.cjs} +1074 -409
- package/dist/unplugin.cjs +62 -26
- package/dist/unplugin.d.cts +17 -3
- package/dist/unplugin.d.mts +17 -3
- package/dist/unplugin.d.ts +17 -3
- package/dist/unplugin.mjs +61 -25
- package/dist/vite.cjs +3 -2
- package/dist/vite.d.cts +2 -0
- package/dist/vite.d.mts +2 -0
- package/dist/vite.d.ts +2 -0
- package/dist/vite.mjs +3 -2
- package/package.json +110 -67
- package/dist/chunks/component-meta.cjs +0 -73264
- package/dist/chunks/component-meta.mjs +0 -73262
- package/dist/client/devtools/200.html +0 -1
- package/dist/client/devtools/404.html +0 -1
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKK58UfivUw4aw-SK92LTmKP0.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Wp2ywxg089UriCZaSExd86J3t9jz86MvyyKy58UfivUw-9uYm8d48E4.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K6z9mXg-VNw7NHvqnp.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0-EkYdMs3MAX.woff2 +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-7DW3w-R7n06NbhGy.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDG3w-leGNfkTmsj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat-JDW3w-ciElMF03ku.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JCm3w-sB722Uoa0f.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8JDW3w-PBDI1JDjwV.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat8gCm3w-0q1hqVn09O.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9XCm3w-ByvzuLy2fa.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat9uCm3w-5TKCIs6EEw.woff +0 -0
- package/dist/client/devtools/_fonts/rP2rp2ywxg089UriCZaSExd86J3t9jz86Mvy4qCRAL19DksVat_XDW3w-r2swRDGfn2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAC5thTQ-ldB60l5U8r.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpthTQ-wbFKGFDrgo.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAIpxhTQ-LLUBv5jskj.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwARZthTQ-F71RdTRbNg.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwA_JxhTQ-6nh65gZkc0.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAfJthTQ-aMoWEJLmTt.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAkJxhTQ-WMBvmLOgKm.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAop1hTQ-utGC2hnWq2.woff +0 -0
- package/dist/client/devtools/_fonts/rP2tp2ywxg089UriI5-g4vlH9VoD8CmcqZG40F9JadbnoEwAopxhTQ-YpyTieVa5B.woff +0 -0
- package/dist/client/devtools/_nuxt/Bj9hdafK.js +0 -1
- package/dist/client/devtools/_nuxt/DM3_wAgz.js +0 -62
- package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
- package/dist/client/devtools/_nuxt/builds/meta/e6b425f7-b919-4014-915b-0ea07c316790.json +0 -1
- package/dist/client/devtools/_nuxt/entry.DaJP-ZMB.css +0 -24
- package/dist/client/devtools/_nuxt/error-404.B0Nmv3fV.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.C8fgTxVz.css +0 -1
- package/dist/client/devtools/_nuxt/hKiujHsR.js +0 -1
- package/dist/client/devtools/favicon.svg +0 -1
- package/dist/client/devtools/index.html +0 -1
- package/dist/devtools/runtime/DevtoolsRenderer.vue +0 -53
- package/dist/devtools/runtime/examples/AvatarGroupExample.vue +0 -7
- package/dist/devtools/runtime/examples/ButtonGroupExample.vue +0 -8
- package/dist/devtools/runtime/examples/CardExample.vue +0 -13
- package/dist/devtools/runtime/examples/CarouselExample.vue +0 -13
- package/dist/devtools/runtime/examples/ChipExample.vue +0 -5
- package/dist/devtools/runtime/examples/CollapsibleExample.vue +0 -8
- package/dist/devtools/runtime/examples/CommandPaletteExample.vue +0 -29
- package/dist/devtools/runtime/examples/ContainerExample.vue +0 -5
- package/dist/devtools/runtime/examples/ContextMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/DrawerExample.vue +0 -8
- package/dist/devtools/runtime/examples/DropdownMenuExample.vue +0 -5
- package/dist/devtools/runtime/examples/FormExample.vue +0 -30
- package/dist/devtools/runtime/examples/FormFieldExample.vue +0 -5
- package/dist/devtools/runtime/examples/LinkExample.vue +0 -5
- package/dist/devtools/runtime/examples/ModalExample.vue +0 -8
- package/dist/devtools/runtime/examples/PopoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/SkeletonExample.vue +0 -3
- package/dist/devtools/runtime/examples/SlideoverExample.vue +0 -8
- package/dist/devtools/runtime/examples/ToasterExample.vue +0 -11
- package/dist/devtools/runtime/examples/TooltipExample.vue +0 -5
- package/dist/runtime/components/ModalProvider.vue +0 -12
- package/dist/runtime/components/SlideoverProvider.vue +0 -12
- package/dist/runtime/composables/extendDevtoolsMeta.d.ts +0 -7
- package/dist/runtime/composables/extendDevtoolsMeta.js +0 -2
- package/dist/runtime/composables/useModal.d.ts +0 -17
- package/dist/runtime/composables/useModal.js +0 -46
- package/dist/runtime/composables/useSlideover.d.ts +0 -17
- package/dist/runtime/composables/useSlideover.js +0 -46
- package/dist/runtime/plugins/modal.d.ts +0 -2
- package/dist/runtime/plugins/modal.js +0 -10
- package/dist/runtime/plugins/slideover.d.ts +0 -2
- package/dist/runtime/plugins/slideover.js +0 -10
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"xs",
|
|
13
|
+
"sm",
|
|
14
|
+
"md",
|
|
15
|
+
"lg",
|
|
16
|
+
"xl"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
const variant = [
|
|
20
|
+
"outline",
|
|
21
|
+
"soft",
|
|
22
|
+
"subtle",
|
|
23
|
+
"ghost",
|
|
24
|
+
"none"
|
|
25
|
+
] as const
|
|
26
|
+
|
|
27
|
+
const orientation = [
|
|
28
|
+
"horizontal",
|
|
29
|
+
"vertical"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
export default {
|
|
33
|
+
"slots": {
|
|
34
|
+
"root": "relative inline-flex items-center",
|
|
35
|
+
"base": [
|
|
36
|
+
"w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-(--ui-text-dimmed) focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
37
|
+
"transition-colors"
|
|
38
|
+
],
|
|
39
|
+
"increment": "absolute flex items-center",
|
|
40
|
+
"decrement": "absolute flex items-center"
|
|
41
|
+
},
|
|
42
|
+
"variants": {
|
|
43
|
+
"color": {
|
|
44
|
+
"primary": "",
|
|
45
|
+
"secondary": "",
|
|
46
|
+
"success": "",
|
|
47
|
+
"info": "",
|
|
48
|
+
"warning": "",
|
|
49
|
+
"error": "",
|
|
50
|
+
"neutral": ""
|
|
51
|
+
},
|
|
52
|
+
"size": {
|
|
53
|
+
"xs": "px-2 py-1 text-xs gap-1",
|
|
54
|
+
"sm": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
55
|
+
"md": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
56
|
+
"lg": "px-3 py-2 text-sm gap-2",
|
|
57
|
+
"xl": "px-3 py-2 text-base gap-2"
|
|
58
|
+
},
|
|
59
|
+
"variant": {
|
|
60
|
+
"outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
|
|
61
|
+
"soft": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg-elevated)/50",
|
|
62
|
+
"subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
|
|
63
|
+
"ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
|
|
64
|
+
"none": "text-(--ui-text-highlighted) bg-transparent"
|
|
65
|
+
},
|
|
66
|
+
"disabled": {
|
|
67
|
+
"true": {
|
|
68
|
+
"increment": "opacity-75 cursor-not-allowed",
|
|
69
|
+
"decrement": "opacity-75 cursor-not-allowed"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"orientation": {
|
|
73
|
+
"horizontal": {
|
|
74
|
+
"base": "text-center",
|
|
75
|
+
"increment": "inset-y-0 end-0 pe-1",
|
|
76
|
+
"decrement": "inset-y-0 start-0 ps-1"
|
|
77
|
+
},
|
|
78
|
+
"vertical": {
|
|
79
|
+
"increment": "top-0 end-0 pe-1 [&>button]:py-0 scale-80",
|
|
80
|
+
"decrement": "bottom-0 end-0 pe-1 [&>button]:py-0 scale-80"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"highlight": {
|
|
84
|
+
"true": ""
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"compoundVariants": [
|
|
88
|
+
{
|
|
89
|
+
"color": "primary" as typeof color[number],
|
|
90
|
+
"variant": [
|
|
91
|
+
"outline" as typeof variant[number],
|
|
92
|
+
"subtle" as typeof variant[number]
|
|
93
|
+
],
|
|
94
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"color": "secondary" as typeof color[number],
|
|
98
|
+
"variant": [
|
|
99
|
+
"outline" as typeof variant[number],
|
|
100
|
+
"subtle" as typeof variant[number]
|
|
101
|
+
],
|
|
102
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"color": "success" as typeof color[number],
|
|
106
|
+
"variant": [
|
|
107
|
+
"outline" as typeof variant[number],
|
|
108
|
+
"subtle" as typeof variant[number]
|
|
109
|
+
],
|
|
110
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"color": "info" as typeof color[number],
|
|
114
|
+
"variant": [
|
|
115
|
+
"outline" as typeof variant[number],
|
|
116
|
+
"subtle" as typeof variant[number]
|
|
117
|
+
],
|
|
118
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"color": "warning" as typeof color[number],
|
|
122
|
+
"variant": [
|
|
123
|
+
"outline" as typeof variant[number],
|
|
124
|
+
"subtle" as typeof variant[number]
|
|
125
|
+
],
|
|
126
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"color": "error" as typeof color[number],
|
|
130
|
+
"variant": [
|
|
131
|
+
"outline" as typeof variant[number],
|
|
132
|
+
"subtle" as typeof variant[number]
|
|
133
|
+
],
|
|
134
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"color": "primary" as typeof color[number],
|
|
138
|
+
"highlight": true,
|
|
139
|
+
"class": "ring ring-inset ring-(--ui-primary)"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"color": "secondary" as typeof color[number],
|
|
143
|
+
"highlight": true,
|
|
144
|
+
"class": "ring ring-inset ring-(--ui-secondary)"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"color": "success" as typeof color[number],
|
|
148
|
+
"highlight": true,
|
|
149
|
+
"class": "ring ring-inset ring-(--ui-success)"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"color": "info" as typeof color[number],
|
|
153
|
+
"highlight": true,
|
|
154
|
+
"class": "ring ring-inset ring-(--ui-info)"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"color": "warning" as typeof color[number],
|
|
158
|
+
"highlight": true,
|
|
159
|
+
"class": "ring ring-inset ring-(--ui-warning)"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"color": "error" as typeof color[number],
|
|
163
|
+
"highlight": true,
|
|
164
|
+
"class": "ring ring-inset ring-(--ui-error)"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"color": "neutral" as typeof color[number],
|
|
168
|
+
"variant": [
|
|
169
|
+
"outline" as typeof variant[number],
|
|
170
|
+
"subtle" as typeof variant[number]
|
|
171
|
+
],
|
|
172
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"color": "neutral" as typeof color[number],
|
|
176
|
+
"highlight": true,
|
|
177
|
+
"class": "ring ring-inset ring-(--ui-border-inverted)"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
181
|
+
"size": "xs" as typeof size[number],
|
|
182
|
+
"class": "px-7"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
186
|
+
"size": "sm" as typeof size[number],
|
|
187
|
+
"class": "px-8"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
191
|
+
"size": "md" as typeof size[number],
|
|
192
|
+
"class": "px-9"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
196
|
+
"size": "lg" as typeof size[number],
|
|
197
|
+
"class": "px-10"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
201
|
+
"size": "xl" as typeof size[number],
|
|
202
|
+
"class": "px-11"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
206
|
+
"size": "xs" as typeof size[number],
|
|
207
|
+
"class": "pe-7"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
211
|
+
"size": "sm" as typeof size[number],
|
|
212
|
+
"class": "pe-8"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
216
|
+
"size": "md" as typeof size[number],
|
|
217
|
+
"class": "pe-9"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
221
|
+
"size": "lg" as typeof size[number],
|
|
222
|
+
"class": "pe-10"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
226
|
+
"size": "xl" as typeof size[number],
|
|
227
|
+
"class": "pe-11"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"defaultVariants": {
|
|
231
|
+
"size": "md" as typeof size[number],
|
|
232
|
+
"color": "primary" as typeof color[number],
|
|
233
|
+
"variant": "outline" as typeof variant[number]
|
|
234
|
+
}
|
|
235
|
+
}
|
package/.nuxt/ui/input.ts
CHANGED
|
@@ -1,16 +1,51 @@
|
|
|
1
|
+
const buttonGroup = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const size = [
|
|
7
|
+
"xs",
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg",
|
|
11
|
+
"xl"
|
|
12
|
+
] as const
|
|
13
|
+
|
|
14
|
+
const variant = [
|
|
15
|
+
"outline",
|
|
16
|
+
"soft",
|
|
17
|
+
"subtle",
|
|
18
|
+
"ghost",
|
|
19
|
+
"none"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const color = [
|
|
23
|
+
"primary",
|
|
24
|
+
"secondary",
|
|
25
|
+
"success",
|
|
26
|
+
"info",
|
|
27
|
+
"warning",
|
|
28
|
+
"error",
|
|
29
|
+
"neutral"
|
|
30
|
+
] as const
|
|
31
|
+
|
|
32
|
+
const type = [
|
|
33
|
+
"file"
|
|
34
|
+
] as const
|
|
35
|
+
|
|
1
36
|
export default {
|
|
2
37
|
"slots": {
|
|
3
38
|
"root": "relative inline-flex items-center",
|
|
4
39
|
"base": [
|
|
5
|
-
"w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-
|
|
40
|
+
"w-full rounded-[calc(var(--ui-radius)*1.5)] border-0 placeholder:text-(--ui-text-dimmed) focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
6
41
|
"transition-colors"
|
|
7
42
|
],
|
|
8
|
-
"leading": "absolute inset-y-0 start-0 flex items-center"
|
|
9
|
-
"leadingIcon": "shrink-0 text-
|
|
43
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
44
|
+
"leadingIcon": "shrink-0 text-(--ui-text-dimmed)",
|
|
10
45
|
"leadingAvatar": "shrink-0",
|
|
11
46
|
"leadingAvatarSize": "",
|
|
12
|
-
"trailing": "absolute inset-y-0 end-0 flex items-center"
|
|
13
|
-
"trailingIcon": "shrink-0 text-
|
|
47
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
48
|
+
"trailingIcon": "shrink-0 text-(--ui-text-dimmed)"
|
|
14
49
|
},
|
|
15
50
|
"variants": {
|
|
16
51
|
"buttonGroup": {
|
|
@@ -26,51 +61,51 @@ export default {
|
|
|
26
61
|
"size": {
|
|
27
62
|
"xs": {
|
|
28
63
|
"base": "px-2 py-1 text-xs gap-1",
|
|
29
|
-
"leading": "ps-2"
|
|
30
|
-
"trailing": "pe-2"
|
|
64
|
+
"leading": "ps-2",
|
|
65
|
+
"trailing": "pe-2",
|
|
31
66
|
"leadingIcon": "size-4",
|
|
32
67
|
"leadingAvatarSize": "3xs",
|
|
33
68
|
"trailingIcon": "size-4"
|
|
34
69
|
},
|
|
35
70
|
"sm": {
|
|
36
71
|
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
37
|
-
"leading": "ps-2.5"
|
|
38
|
-
"trailing": "pe-2.5"
|
|
72
|
+
"leading": "ps-2.5",
|
|
73
|
+
"trailing": "pe-2.5",
|
|
39
74
|
"leadingIcon": "size-4",
|
|
40
75
|
"leadingAvatarSize": "3xs",
|
|
41
76
|
"trailingIcon": "size-4"
|
|
42
77
|
},
|
|
43
78
|
"md": {
|
|
44
79
|
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
45
|
-
"leading": "ps-2.5"
|
|
46
|
-
"trailing": "pe-2.5"
|
|
80
|
+
"leading": "ps-2.5",
|
|
81
|
+
"trailing": "pe-2.5",
|
|
47
82
|
"leadingIcon": "size-5",
|
|
48
83
|
"leadingAvatarSize": "2xs",
|
|
49
84
|
"trailingIcon": "size-5"
|
|
50
85
|
},
|
|
51
86
|
"lg": {
|
|
52
87
|
"base": "px-3 py-2 text-sm gap-2",
|
|
53
|
-
"leading": "ps-3"
|
|
54
|
-
"trailing": "pe-3"
|
|
88
|
+
"leading": "ps-3",
|
|
89
|
+
"trailing": "pe-3",
|
|
55
90
|
"leadingIcon": "size-5",
|
|
56
91
|
"leadingAvatarSize": "2xs",
|
|
57
92
|
"trailingIcon": "size-5"
|
|
58
93
|
},
|
|
59
94
|
"xl": {
|
|
60
95
|
"base": "px-3 py-2 text-base gap-2",
|
|
61
|
-
"leading": "ps-3"
|
|
62
|
-
"trailing": "pe-3"
|
|
96
|
+
"leading": "ps-3",
|
|
97
|
+
"trailing": "pe-3",
|
|
63
98
|
"leadingIcon": "size-6",
|
|
64
99
|
"leadingAvatarSize": "xs",
|
|
65
100
|
"trailingIcon": "size-6"
|
|
66
101
|
}
|
|
67
102
|
},
|
|
68
103
|
"variant": {
|
|
69
|
-
"outline": "text-
|
|
70
|
-
"soft": "text-
|
|
71
|
-
"subtle": "text-
|
|
72
|
-
"ghost": "text-
|
|
73
|
-
"none": "text-
|
|
104
|
+
"outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
|
|
105
|
+
"soft": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-(--ui-bg-elevated)/50",
|
|
106
|
+
"subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
|
|
107
|
+
"ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
|
|
108
|
+
"none": "text-(--ui-text-highlighted) bg-transparent"
|
|
74
109
|
},
|
|
75
110
|
"color": {
|
|
76
111
|
"primary": "",
|
|
@@ -94,149 +129,149 @@ export default {
|
|
|
94
129
|
"true": ""
|
|
95
130
|
},
|
|
96
131
|
"type": {
|
|
97
|
-
"file": "file:me-1.5 file:font-medium file:text-
|
|
132
|
+
"file": "file:me-1.5 file:font-medium file:text-(--ui-text-muted) file:outline-none"
|
|
98
133
|
}
|
|
99
134
|
},
|
|
100
135
|
"compoundVariants": [
|
|
101
136
|
{
|
|
102
|
-
"color": "primary" as
|
|
137
|
+
"color": "primary" as typeof color[number],
|
|
103
138
|
"variant": [
|
|
104
|
-
"outline" as
|
|
105
|
-
"subtle" as
|
|
139
|
+
"outline" as typeof variant[number],
|
|
140
|
+
"subtle" as typeof variant[number]
|
|
106
141
|
],
|
|
107
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
142
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
|
|
108
143
|
},
|
|
109
144
|
{
|
|
110
|
-
"color": "secondary" as
|
|
145
|
+
"color": "secondary" as typeof color[number],
|
|
111
146
|
"variant": [
|
|
112
|
-
"outline" as
|
|
113
|
-
"subtle" as
|
|
147
|
+
"outline" as typeof variant[number],
|
|
148
|
+
"subtle" as typeof variant[number]
|
|
114
149
|
],
|
|
115
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
150
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
|
|
116
151
|
},
|
|
117
152
|
{
|
|
118
|
-
"color": "success" as
|
|
153
|
+
"color": "success" as typeof color[number],
|
|
119
154
|
"variant": [
|
|
120
|
-
"outline" as
|
|
121
|
-
"subtle" as
|
|
155
|
+
"outline" as typeof variant[number],
|
|
156
|
+
"subtle" as typeof variant[number]
|
|
122
157
|
],
|
|
123
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
158
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
|
|
124
159
|
},
|
|
125
160
|
{
|
|
126
|
-
"color": "info" as
|
|
161
|
+
"color": "info" as typeof color[number],
|
|
127
162
|
"variant": [
|
|
128
|
-
"outline" as
|
|
129
|
-
"subtle" as
|
|
163
|
+
"outline" as typeof variant[number],
|
|
164
|
+
"subtle" as typeof variant[number]
|
|
130
165
|
],
|
|
131
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
166
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-info)"
|
|
132
167
|
},
|
|
133
168
|
{
|
|
134
|
-
"color": "warning" as
|
|
169
|
+
"color": "warning" as typeof color[number],
|
|
135
170
|
"variant": [
|
|
136
|
-
"outline" as
|
|
137
|
-
"subtle" as
|
|
171
|
+
"outline" as typeof variant[number],
|
|
172
|
+
"subtle" as typeof variant[number]
|
|
138
173
|
],
|
|
139
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
174
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
|
|
140
175
|
},
|
|
141
176
|
{
|
|
142
|
-
"color": "error" as
|
|
177
|
+
"color": "error" as typeof color[number],
|
|
143
178
|
"variant": [
|
|
144
|
-
"outline" as
|
|
145
|
-
"subtle" as
|
|
179
|
+
"outline" as typeof variant[number],
|
|
180
|
+
"subtle" as typeof variant[number]
|
|
146
181
|
],
|
|
147
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
182
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
|
|
148
183
|
},
|
|
149
184
|
{
|
|
150
|
-
"color": "primary" as
|
|
185
|
+
"color": "primary" as typeof color[number],
|
|
151
186
|
"highlight": true,
|
|
152
|
-
"class": "ring ring-inset ring-
|
|
187
|
+
"class": "ring ring-inset ring-(--ui-primary)"
|
|
153
188
|
},
|
|
154
189
|
{
|
|
155
|
-
"color": "secondary" as
|
|
190
|
+
"color": "secondary" as typeof color[number],
|
|
156
191
|
"highlight": true,
|
|
157
|
-
"class": "ring ring-inset ring-
|
|
192
|
+
"class": "ring ring-inset ring-(--ui-secondary)"
|
|
158
193
|
},
|
|
159
194
|
{
|
|
160
|
-
"color": "success" as
|
|
195
|
+
"color": "success" as typeof color[number],
|
|
161
196
|
"highlight": true,
|
|
162
|
-
"class": "ring ring-inset ring-
|
|
197
|
+
"class": "ring ring-inset ring-(--ui-success)"
|
|
163
198
|
},
|
|
164
199
|
{
|
|
165
|
-
"color": "info" as
|
|
200
|
+
"color": "info" as typeof color[number],
|
|
166
201
|
"highlight": true,
|
|
167
|
-
"class": "ring ring-inset ring-
|
|
202
|
+
"class": "ring ring-inset ring-(--ui-info)"
|
|
168
203
|
},
|
|
169
204
|
{
|
|
170
|
-
"color": "warning" as
|
|
205
|
+
"color": "warning" as typeof color[number],
|
|
171
206
|
"highlight": true,
|
|
172
|
-
"class": "ring ring-inset ring-
|
|
207
|
+
"class": "ring ring-inset ring-(--ui-warning)"
|
|
173
208
|
},
|
|
174
209
|
{
|
|
175
|
-
"color": "error" as
|
|
210
|
+
"color": "error" as typeof color[number],
|
|
176
211
|
"highlight": true,
|
|
177
|
-
"class": "ring ring-inset ring-
|
|
212
|
+
"class": "ring ring-inset ring-(--ui-error)"
|
|
178
213
|
},
|
|
179
214
|
{
|
|
180
|
-
"color": "neutral" as
|
|
215
|
+
"color": "neutral" as typeof color[number],
|
|
181
216
|
"variant": [
|
|
182
|
-
"outline" as
|
|
183
|
-
"subtle" as
|
|
217
|
+
"outline" as typeof variant[number],
|
|
218
|
+
"subtle" as typeof variant[number]
|
|
184
219
|
],
|
|
185
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
220
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
|
|
186
221
|
},
|
|
187
222
|
{
|
|
188
|
-
"color": "neutral" as
|
|
223
|
+
"color": "neutral" as typeof color[number],
|
|
189
224
|
"highlight": true,
|
|
190
|
-
"class": "ring ring-inset ring-
|
|
225
|
+
"class": "ring ring-inset ring-(--ui-border-inverted)"
|
|
191
226
|
},
|
|
192
227
|
{
|
|
193
228
|
"leading": true,
|
|
194
|
-
"size": "xs" as
|
|
229
|
+
"size": "xs" as typeof size[number],
|
|
195
230
|
"class": "ps-7"
|
|
196
231
|
},
|
|
197
232
|
{
|
|
198
233
|
"leading": true,
|
|
199
|
-
"size": "sm" as
|
|
234
|
+
"size": "sm" as typeof size[number],
|
|
200
235
|
"class": "ps-8"
|
|
201
236
|
},
|
|
202
237
|
{
|
|
203
238
|
"leading": true,
|
|
204
|
-
"size": "md" as
|
|
239
|
+
"size": "md" as typeof size[number],
|
|
205
240
|
"class": "ps-9"
|
|
206
241
|
},
|
|
207
242
|
{
|
|
208
243
|
"leading": true,
|
|
209
|
-
"size": "lg" as
|
|
244
|
+
"size": "lg" as typeof size[number],
|
|
210
245
|
"class": "ps-10"
|
|
211
246
|
},
|
|
212
247
|
{
|
|
213
248
|
"leading": true,
|
|
214
|
-
"size": "xl" as
|
|
249
|
+
"size": "xl" as typeof size[number],
|
|
215
250
|
"class": "ps-11"
|
|
216
251
|
},
|
|
217
252
|
{
|
|
218
253
|
"trailing": true,
|
|
219
|
-
"size": "xs" as
|
|
254
|
+
"size": "xs" as typeof size[number],
|
|
220
255
|
"class": "pe-7"
|
|
221
256
|
},
|
|
222
257
|
{
|
|
223
258
|
"trailing": true,
|
|
224
|
-
"size": "sm" as
|
|
259
|
+
"size": "sm" as typeof size[number],
|
|
225
260
|
"class": "pe-8"
|
|
226
261
|
},
|
|
227
262
|
{
|
|
228
263
|
"trailing": true,
|
|
229
|
-
"size": "md" as
|
|
264
|
+
"size": "md" as typeof size[number],
|
|
230
265
|
"class": "pe-9"
|
|
231
266
|
},
|
|
232
267
|
{
|
|
233
268
|
"trailing": true,
|
|
234
|
-
"size": "lg" as
|
|
269
|
+
"size": "lg" as typeof size[number],
|
|
235
270
|
"class": "pe-10"
|
|
236
271
|
},
|
|
237
272
|
{
|
|
238
273
|
"trailing": true,
|
|
239
|
-
"size": "xl" as
|
|
274
|
+
"size": "xl" as typeof size[number],
|
|
240
275
|
"class": "pe-11"
|
|
241
276
|
},
|
|
242
277
|
{
|
|
@@ -256,8 +291,8 @@ export default {
|
|
|
256
291
|
}
|
|
257
292
|
],
|
|
258
293
|
"defaultVariants": {
|
|
259
|
-
"size": "md" as
|
|
260
|
-
"color": "primary" as
|
|
261
|
-
"variant": "outline" as
|
|
294
|
+
"size": "md" as typeof size[number],
|
|
295
|
+
"color": "primary" as typeof color[number],
|
|
296
|
+
"variant": "outline" as typeof variant[number]
|
|
262
297
|
}
|
|
263
298
|
}
|
package/.nuxt/ui/kbd.ts
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
const variant = [
|
|
2
|
+
"solid",
|
|
3
|
+
"outline",
|
|
4
|
+
"subtle"
|
|
5
|
+
] as const
|
|
6
|
+
|
|
7
|
+
const size = [
|
|
8
|
+
"sm",
|
|
9
|
+
"md",
|
|
10
|
+
"lg"
|
|
11
|
+
] as const
|
|
12
|
+
|
|
1
13
|
export default {
|
|
2
|
-
"base": "inline-flex items-center justify-center px-1 rounded-
|
|
14
|
+
"base": "inline-flex items-center justify-center px-1 rounded-(--ui-radius) font-medium font-sans",
|
|
3
15
|
"variants": {
|
|
4
16
|
"variant": {
|
|
5
|
-
"solid": "bg-
|
|
6
|
-
"outline": "bg-
|
|
7
|
-
"subtle": "bg-
|
|
17
|
+
"solid": "bg-(--ui-bg-inverted) text-(--ui-bg)",
|
|
18
|
+
"outline": "bg-(--ui-bg) text-(--ui-text-highlighted) ring ring-inset ring-(--ui-border-accented)",
|
|
19
|
+
"subtle": "bg-(--ui-bg-elevated) text-(--ui-text) ring ring-inset ring-(--ui-border-accented)"
|
|
8
20
|
},
|
|
9
21
|
"size": {
|
|
10
22
|
"sm": "h-4 min-w-[16px] text-[10px]",
|
|
@@ -13,7 +25,7 @@ export default {
|
|
|
13
25
|
}
|
|
14
26
|
},
|
|
15
27
|
"defaultVariants": {
|
|
16
|
-
"variant": "outline" as
|
|
17
|
-
"size": "md" as
|
|
28
|
+
"variant": "outline" as typeof variant[number],
|
|
29
|
+
"size": "md" as typeof size[number]
|
|
18
30
|
}
|
|
19
31
|
}
|
package/.nuxt/ui/link.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"base": "focus-visible:outline-
|
|
2
|
+
"base": "focus-visible:outline-(--ui-primary)",
|
|
3
3
|
"variants": {
|
|
4
4
|
"active": {
|
|
5
|
-
"true": "text-
|
|
5
|
+
"true": "text-(--ui-primary)",
|
|
6
6
|
"false": [
|
|
7
|
-
"text-
|
|
7
|
+
"text-(--ui-text-muted) hover:text-(--ui-text)",
|
|
8
8
|
"transition-colors"
|
|
9
9
|
]
|
|
10
10
|
},
|
package/.nuxt/ui/modal.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"overlay": "fixed inset-0 bg-
|
|
4
|
-
"content": "fixed
|
|
5
|
-
"header": "
|
|
6
|
-
"
|
|
3
|
+
"overlay": "fixed inset-0 bg-(--ui-bg-elevated)/75",
|
|
4
|
+
"content": "fixed bg-(--ui-bg) divide-y divide-(--ui-border) flex flex-col focus:outline-none",
|
|
5
|
+
"header": "flex items-center gap-1.5 p-4 sm:px-6 min-h-16",
|
|
6
|
+
"wrapper": "",
|
|
7
|
+
"body": "flex-1 overflow-y-auto p-4 sm:p-6",
|
|
7
8
|
"footer": "flex items-center gap-1.5 p-4 sm:px-6",
|
|
8
|
-
"title": "text-
|
|
9
|
-
"description": "mt-1 text-
|
|
9
|
+
"title": "text-(--ui-text-highlighted) font-semibold",
|
|
10
|
+
"description": "mt-1 text-(--ui-text-muted) text-sm",
|
|
10
11
|
"close": "absolute top-4 end-4"
|
|
11
12
|
},
|
|
12
13
|
"variants": {
|
|
@@ -21,7 +22,7 @@ export default {
|
|
|
21
22
|
"content": "inset-0"
|
|
22
23
|
},
|
|
23
24
|
"false": {
|
|
24
|
-
"content": "top-
|
|
25
|
+
"content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-lg max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-[calc(var(--ui-radius)*2)] shadow-lg ring ring-(--ui-border)"
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|