@nuxt/ui 3.0.0-alpha.9 → 3.0.0-beta.2
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 +7 -5
- 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 +5 -1
- package/.nuxt/ui/input-menu.ts +150 -116
- package/.nuxt/ui/input-number.ts +102 -71
- 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 +77 -51
- 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 +122 -86
- 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 +48 -31
- package/.nuxt/ui/tabs.ts +100 -72
- 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 +19 -8
- package/cli/commands/make/component.mjs +12 -0
- package/cli/package.json +2 -2
- package/cli/templates.mjs +27 -22
- package/dist/module.cjs +9 -171
- 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 -168
- package/dist/runtime/components/Accordion.vue +8 -39
- package/dist/runtime/components/Alert.vue +22 -21
- package/dist/runtime/components/App.vue +9 -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 +5 -31
- 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 +15 -10
- 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 +111 -97
- package/dist/runtime/components/Container.vue +4 -7
- package/dist/runtime/components/ContextMenu.vue +16 -69
- package/dist/runtime/components/ContextMenuContent.vue +12 -10
- package/dist/runtime/components/Drawer.vue +23 -12
- package/dist/runtime/components/DropdownMenu.vue +18 -59
- package/dist/runtime/components/DropdownMenuContent.vue +12 -10
- package/dist/runtime/components/Form.vue +65 -34
- package/dist/runtime/components/FormField.vue +22 -13
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +15 -7
- package/dist/runtime/components/InputMenu.vue +95 -104
- package/dist/runtime/components/InputNumber.vue +14 -9
- package/dist/runtime/components/Kbd.vue +5 -6
- package/dist/runtime/components/Link.vue +5 -8
- package/dist/runtime/components/LinkBase.vue +1 -1
- package/dist/runtime/components/Modal.vue +51 -38
- package/dist/runtime/components/NavigationMenu.vue +129 -114
- package/dist/runtime/components/OverlayProvider.vue +29 -0
- package/dist/runtime/components/Pagination.vue +6 -9
- package/dist/runtime/components/PinInput.vue +10 -11
- package/dist/runtime/components/Popover.vue +16 -18
- package/dist/runtime/components/Progress.vue +28 -12
- package/dist/runtime/components/RadioGroup.vue +9 -12
- package/dist/runtime/components/Select.vue +60 -34
- package/dist/runtime/components/SelectMenu.vue +160 -165
- package/dist/runtime/components/Separator.vue +6 -5
- package/dist/runtime/components/Skeleton.vue +4 -7
- package/dist/runtime/components/Slideover.vue +51 -37
- 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 +146 -31
- package/dist/runtime/components/Tabs.vue +12 -31
- package/dist/runtime/components/Textarea.vue +17 -8
- package/dist/runtime/components/Toast.vue +36 -25
- package/dist/runtime/components/Toaster.vue +10 -11
- package/dist/runtime/components/Tooltip.vue +9 -12
- package/dist/runtime/components/Tree.vue +196 -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 +7 -3
- package/dist/runtime/composables/useFormField.js +18 -8
- package/dist/runtime/composables/useLocale.js +1 -1
- package/dist/runtime/composables/useOverlay.d.ts +30 -0
- package/dist/runtime/composables/useOverlay.js +71 -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.js +9 -1
- package/dist/runtime/locale/az.js +54 -0
- package/dist/runtime/locale/bn.js +54 -0
- package/dist/runtime/locale/cs.js +9 -1
- package/dist/runtime/locale/da.d.ts +2 -0
- package/dist/runtime/locale/da.js +54 -0
- package/dist/runtime/locale/de.js +11 -3
- package/dist/runtime/locale/el.d.ts +2 -0
- package/dist/runtime/locale/el.js +54 -0
- package/dist/runtime/locale/en.js +9 -1
- package/dist/runtime/locale/es.js +9 -1
- package/dist/runtime/locale/et.d.ts +2 -0
- package/dist/runtime/locale/et.js +54 -0
- package/dist/runtime/locale/fa_ir.js +9 -1
- package/dist/runtime/locale/fi.d.ts +2 -0
- package/dist/runtime/locale/fi.js +54 -0
- package/dist/runtime/locale/fr.js +9 -1
- 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 +25 -3
- package/dist/runtime/locale/index.js +25 -3
- package/dist/runtime/locale/it.js +9 -1
- 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.js +9 -1
- 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.js +9 -1
- 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_hans.js → zh_cn.js} +10 -2
- package/dist/runtime/locale/zh_tw.d.ts +2 -0
- package/dist/runtime/locale/{zh_hant.js → zh_tw.js} +16 -8
- package/dist/runtime/plugins/colors.js +8 -5
- package/dist/runtime/types/form.d.ts +24 -15
- package/dist/runtime/types/form.js +2 -2
- package/dist/runtime/types/index.d.ts +5 -0
- package/dist/runtime/types/index.js +5 -0
- package/dist/runtime/types/locale.d.ts +8 -0
- package/dist/runtime/types/utils.d.ts +7 -3
- package/dist/runtime/utils/form.d.ts +4 -4
- package/dist/runtime/utils/form.js +6 -8
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +15 -2
- 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.d52SSCwA.mjs → ui.DSPu6Y8j.mjs} +905 -401
- package/dist/shared/{ui.BPnAe4QS.cjs → ui.DfK2RX6G.cjs} +908 -401
- package/dist/unplugin.cjs +62 -26
- package/dist/unplugin.d.cts +13 -1
- package/dist/unplugin.d.mts +13 -1
- package/dist/unplugin.d.ts +13 -1
- 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 +103 -67
- package/dist/chunks/component-meta.cjs +0 -77249
- package/dist/chunks/component-meta.mjs +0 -77247
- 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/BDC8ywlR.js +0 -1
- package/dist/client/devtools/_nuxt/BT004Uxp.js +0 -53
- package/dist/client/devtools/_nuxt/C1H2Soz3.js +0 -1
- package/dist/client/devtools/_nuxt/builds/latest.json +0 -1
- package/dist/client/devtools/_nuxt/builds/meta/f98c13ea-d751-4b37-8ce3-94e99708745f.json +0 -1
- package/dist/client/devtools/_nuxt/entry.Bx6WJjrx.css +0 -1
- package/dist/client/devtools/_nuxt/error-404.Cq4qshcf.css +0 -1
- package/dist/client/devtools/_nuxt/error-500.ax1aM34m.css +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
- /package/dist/runtime/locale/{zh_hans.d.ts → az.d.ts} +0 -0
- /package/dist/runtime/locale/{zh_hant.d.ts → bn.d.ts} +0 -0
package/.nuxt/ui/drawer.ts
CHANGED
|
@@ -1,55 +1,123 @@
|
|
|
1
|
+
const direction = [
|
|
2
|
+
"top",
|
|
3
|
+
"right",
|
|
4
|
+
"bottom",
|
|
5
|
+
"left"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
1
8
|
export default {
|
|
2
9
|
"slots": {
|
|
3
|
-
"overlay": "fixed inset-0 bg-
|
|
4
|
-
"content": "fixed bg-
|
|
5
|
-
"handle": "shrink-0 rounded-full bg-
|
|
10
|
+
"overlay": "fixed inset-0 bg-(--ui-bg-elevated)/75",
|
|
11
|
+
"content": "fixed bg-(--ui-bg) ring ring-(--ui-border) flex focus:outline-none",
|
|
12
|
+
"handle": "shrink-0 rounded-full bg-(--ui-bg-accented)",
|
|
6
13
|
"container": "w-full flex flex-col gap-4 p-4 overflow-y-auto",
|
|
7
14
|
"header": "",
|
|
8
|
-
"title": "text-
|
|
9
|
-
"description": "mt-1 text-
|
|
15
|
+
"title": "text-(--ui-text-highlighted) font-semibold",
|
|
16
|
+
"description": "mt-1 text-(--ui-text-muted) text-sm",
|
|
10
17
|
"body": "flex-1",
|
|
11
18
|
"footer": "flex flex-col gap-1.5"
|
|
12
19
|
},
|
|
13
20
|
"variants": {
|
|
14
21
|
"direction": {
|
|
15
22
|
"top": {
|
|
16
|
-
"content": "
|
|
23
|
+
"content": "mb-24 flex-col-reverse",
|
|
17
24
|
"handle": "mb-4"
|
|
18
25
|
},
|
|
19
26
|
"right": {
|
|
20
|
-
"content": "
|
|
27
|
+
"content": "flex-row",
|
|
21
28
|
"handle": "ml-4"
|
|
22
29
|
},
|
|
23
30
|
"bottom": {
|
|
24
|
-
"content": "
|
|
31
|
+
"content": "mt-24 flex-col",
|
|
25
32
|
"handle": "mt-4"
|
|
26
33
|
},
|
|
27
34
|
"left": {
|
|
28
|
-
"content": "
|
|
35
|
+
"content": "flex-row-reverse",
|
|
29
36
|
"handle": "mr-4"
|
|
30
37
|
}
|
|
38
|
+
},
|
|
39
|
+
"inset": {
|
|
40
|
+
"true": {
|
|
41
|
+
"content": "rounded-[calc(var(--ui-radius)*2)] after:hidden"
|
|
42
|
+
}
|
|
31
43
|
}
|
|
32
44
|
},
|
|
33
45
|
"compoundVariants": [
|
|
34
46
|
{
|
|
35
47
|
"direction": [
|
|
36
|
-
"top" as
|
|
37
|
-
"bottom" as
|
|
48
|
+
"top" as typeof direction[number],
|
|
49
|
+
"bottom" as typeof direction[number]
|
|
38
50
|
],
|
|
39
51
|
"class": {
|
|
40
|
-
"content": "
|
|
52
|
+
"content": "h-auto max-h-[96%]",
|
|
41
53
|
"handle": "w-12 h-1.5 mx-auto"
|
|
42
54
|
}
|
|
43
55
|
},
|
|
44
56
|
{
|
|
45
57
|
"direction": [
|
|
46
|
-
"right" as
|
|
47
|
-
"left" as
|
|
58
|
+
"right" as typeof direction[number],
|
|
59
|
+
"left" as typeof direction[number]
|
|
48
60
|
],
|
|
49
61
|
"class": {
|
|
50
|
-
"content": "
|
|
62
|
+
"content": "w-auto max-w-[calc(100%-2rem)]",
|
|
51
63
|
"handle": "h-12 w-1.5 mt-auto mb-auto"
|
|
52
64
|
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"direction": "top" as typeof direction[number],
|
|
68
|
+
"inset": true,
|
|
69
|
+
"class": {
|
|
70
|
+
"content": "inset-x-4 top-4"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"direction": "top" as typeof direction[number],
|
|
75
|
+
"inset": false,
|
|
76
|
+
"class": {
|
|
77
|
+
"content": "inset-x-0 top-0 rounded-b-[calc(var(--ui-radius)*2)]"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"direction": "bottom" as typeof direction[number],
|
|
82
|
+
"inset": true,
|
|
83
|
+
"class": {
|
|
84
|
+
"content": "inset-x-4 bottom-4"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"direction": "bottom" as typeof direction[number],
|
|
89
|
+
"inset": false,
|
|
90
|
+
"class": {
|
|
91
|
+
"content": "inset-x-0 bottom-0 rounded-t-[calc(var(--ui-radius)*2)]"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"direction": "left" as typeof direction[number],
|
|
96
|
+
"inset": true,
|
|
97
|
+
"class": {
|
|
98
|
+
"content": "inset-y-4 left-4"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"direction": "left" as typeof direction[number],
|
|
103
|
+
"inset": false,
|
|
104
|
+
"class": {
|
|
105
|
+
"content": "inset-y-0 left-0 rounded-r-[calc(var(--ui-radius)*2)]"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"direction": "right" as typeof direction[number],
|
|
110
|
+
"inset": true,
|
|
111
|
+
"class": {
|
|
112
|
+
"content": "inset-y-4 right-4"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"direction": "right" as typeof direction[number],
|
|
117
|
+
"inset": false,
|
|
118
|
+
"class": {
|
|
119
|
+
"content": "inset-y-0 right-0 rounded-l-[calc(var(--ui-radius)*2)]"
|
|
120
|
+
}
|
|
53
121
|
}
|
|
54
122
|
]
|
|
55
123
|
}
|
|
@@ -1,20 +1,38 @@
|
|
|
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
|
+
|
|
1
19
|
export default {
|
|
2
20
|
"slots": {
|
|
3
|
-
"content": "min-w-32 bg-
|
|
4
|
-
"arrow": "fill-
|
|
21
|
+
"content": "min-w-32 bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) divide-y divide-(--ui-border) overflow-y-auto scroll-py-1 data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
22
|
+
"arrow": "fill-(--ui-border)",
|
|
5
23
|
"group": "p-1 isolate",
|
|
6
|
-
"label": "w-full flex items-center font-semibold text-
|
|
7
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
24
|
+
"label": "w-full flex items-center font-semibold text-(--ui-text-highlighted)",
|
|
25
|
+
"separator": "-mx-1 my-1 h-px bg-(--ui-border)",
|
|
8
26
|
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-[calc(var(--ui-radius)*1.5)] data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
9
27
|
"itemLeadingIcon": "shrink-0",
|
|
10
28
|
"itemLeadingAvatar": "shrink-0",
|
|
11
29
|
"itemLeadingAvatarSize": "",
|
|
12
|
-
"itemTrailing": "ms-auto inline-flex",
|
|
30
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
13
31
|
"itemTrailingIcon": "shrink-0",
|
|
14
32
|
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
15
33
|
"itemTrailingKbdsSize": "",
|
|
16
34
|
"itemLabel": "truncate",
|
|
17
|
-
"itemLabelExternalIcon": "inline-block size-3 align-top text-
|
|
35
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-(--ui-text-dimmed)"
|
|
18
36
|
},
|
|
19
37
|
"variants": {
|
|
20
38
|
"color": {
|
|
@@ -28,16 +46,16 @@ export default {
|
|
|
28
46
|
},
|
|
29
47
|
"active": {
|
|
30
48
|
"true": {
|
|
31
|
-
"item": "text-
|
|
32
|
-
"itemLeadingIcon": "text-
|
|
49
|
+
"item": "text-(--ui-text-highlighted) before:bg-(--ui-bg-elevated)",
|
|
50
|
+
"itemLeadingIcon": "text-(--ui-text)"
|
|
33
51
|
},
|
|
34
52
|
"false": {
|
|
35
53
|
"item": [
|
|
36
|
-
"text-
|
|
54
|
+
"text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-[state=open]:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50 data-[state=open]:before:bg-(--ui-bg-elevated)/50",
|
|
37
55
|
"transition-colors before:transition-colors"
|
|
38
56
|
],
|
|
39
57
|
"itemLeadingIcon": [
|
|
40
|
-
"text-
|
|
58
|
+
"text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text) group-data-[state=open]:text-(--ui-text)",
|
|
41
59
|
"transition-colors"
|
|
42
60
|
]
|
|
43
61
|
}
|
|
@@ -97,103 +115,103 @@ export default {
|
|
|
97
115
|
},
|
|
98
116
|
"compoundVariants": [
|
|
99
117
|
{
|
|
100
|
-
"color": "primary" as
|
|
118
|
+
"color": "primary" as typeof color[number],
|
|
101
119
|
"active": false,
|
|
102
120
|
"class": {
|
|
103
|
-
"item": "text-
|
|
104
|
-
"itemLeadingIcon": "text-
|
|
121
|
+
"item": "text-(--ui-primary) data-highlighted:text-(--ui-primary) data-highlighted:before:bg-(--ui-primary)/10 data-[state=open]:before:bg-(--ui-primary)/10",
|
|
122
|
+
"itemLeadingIcon": "text-(--ui-primary)/75 group-data-highlighted:text-(--ui-primary) group-data-[state=open]:text-(--ui-primary)"
|
|
105
123
|
}
|
|
106
124
|
},
|
|
107
125
|
{
|
|
108
|
-
"color": "secondary" as
|
|
126
|
+
"color": "secondary" as typeof color[number],
|
|
109
127
|
"active": false,
|
|
110
128
|
"class": {
|
|
111
|
-
"item": "text-
|
|
112
|
-
"itemLeadingIcon": "text-
|
|
129
|
+
"item": "text-(--ui-secondary) data-highlighted:text-(--ui-secondary) data-highlighted:before:bg-(--ui-secondary)/10 data-[state=open]:before:bg-(--ui-secondary)/10",
|
|
130
|
+
"itemLeadingIcon": "text-(--ui-secondary)/75 group-data-highlighted:text-(--ui-secondary) group-data-[state=open]:text-(--ui-secondary)"
|
|
113
131
|
}
|
|
114
132
|
},
|
|
115
133
|
{
|
|
116
|
-
"color": "success" as
|
|
134
|
+
"color": "success" as typeof color[number],
|
|
117
135
|
"active": false,
|
|
118
136
|
"class": {
|
|
119
|
-
"item": "text-
|
|
120
|
-
"itemLeadingIcon": "text-
|
|
137
|
+
"item": "text-(--ui-success) data-highlighted:text-(--ui-success) data-highlighted:before:bg-(--ui-success)/10 data-[state=open]:before:bg-(--ui-success)/10",
|
|
138
|
+
"itemLeadingIcon": "text-(--ui-success)/75 group-data-highlighted:text-(--ui-success) group-data-[state=open]:text-(--ui-success)"
|
|
121
139
|
}
|
|
122
140
|
},
|
|
123
141
|
{
|
|
124
|
-
"color": "info" as
|
|
142
|
+
"color": "info" as typeof color[number],
|
|
125
143
|
"active": false,
|
|
126
144
|
"class": {
|
|
127
|
-
"item": "text-
|
|
128
|
-
"itemLeadingIcon": "text-
|
|
145
|
+
"item": "text-(--ui-info) data-highlighted:text-(--ui-info) data-highlighted:before:bg-(--ui-info)/10 data-[state=open]:before:bg-(--ui-info)/10",
|
|
146
|
+
"itemLeadingIcon": "text-(--ui-info)/75 group-data-highlighted:text-(--ui-info) group-data-[state=open]:text-(--ui-info)"
|
|
129
147
|
}
|
|
130
148
|
},
|
|
131
149
|
{
|
|
132
|
-
"color": "warning" as
|
|
150
|
+
"color": "warning" as typeof color[number],
|
|
133
151
|
"active": false,
|
|
134
152
|
"class": {
|
|
135
|
-
"item": "text-
|
|
136
|
-
"itemLeadingIcon": "text-
|
|
153
|
+
"item": "text-(--ui-warning) data-highlighted:text-(--ui-warning) data-highlighted:before:bg-(--ui-warning)/10 data-[state=open]:before:bg-(--ui-warning)/10",
|
|
154
|
+
"itemLeadingIcon": "text-(--ui-warning)/75 group-data-highlighted:text-(--ui-warning) group-data-[state=open]:text-(--ui-warning)"
|
|
137
155
|
}
|
|
138
156
|
},
|
|
139
157
|
{
|
|
140
|
-
"color": "error" as
|
|
158
|
+
"color": "error" as typeof color[number],
|
|
141
159
|
"active": false,
|
|
142
160
|
"class": {
|
|
143
|
-
"item": "text-
|
|
144
|
-
"itemLeadingIcon": "text-
|
|
161
|
+
"item": "text-(--ui-error) data-highlighted:text-(--ui-error) data-highlighted:before:bg-(--ui-error)/10 data-[state=open]:before:bg-(--ui-error)/10",
|
|
162
|
+
"itemLeadingIcon": "text-(--ui-error)/75 group-data-highlighted:text-(--ui-error) group-data-[state=open]:text-(--ui-error)"
|
|
145
163
|
}
|
|
146
164
|
},
|
|
147
165
|
{
|
|
148
|
-
"color": "primary" as
|
|
166
|
+
"color": "primary" as typeof color[number],
|
|
149
167
|
"active": true,
|
|
150
168
|
"class": {
|
|
151
|
-
"item": "text-
|
|
152
|
-
"itemLeadingIcon": "text-
|
|
169
|
+
"item": "text-(--ui-primary) before:bg-(--ui-primary)/10",
|
|
170
|
+
"itemLeadingIcon": "text-(--ui-primary)"
|
|
153
171
|
}
|
|
154
172
|
},
|
|
155
173
|
{
|
|
156
|
-
"color": "secondary" as
|
|
174
|
+
"color": "secondary" as typeof color[number],
|
|
157
175
|
"active": true,
|
|
158
176
|
"class": {
|
|
159
|
-
"item": "text-
|
|
160
|
-
"itemLeadingIcon": "text-
|
|
177
|
+
"item": "text-(--ui-secondary) before:bg-(--ui-secondary)/10",
|
|
178
|
+
"itemLeadingIcon": "text-(--ui-secondary)"
|
|
161
179
|
}
|
|
162
180
|
},
|
|
163
181
|
{
|
|
164
|
-
"color": "success" as
|
|
182
|
+
"color": "success" as typeof color[number],
|
|
165
183
|
"active": true,
|
|
166
184
|
"class": {
|
|
167
|
-
"item": "text-
|
|
168
|
-
"itemLeadingIcon": "text-
|
|
185
|
+
"item": "text-(--ui-success) before:bg-(--ui-success)/10",
|
|
186
|
+
"itemLeadingIcon": "text-(--ui-success)"
|
|
169
187
|
}
|
|
170
188
|
},
|
|
171
189
|
{
|
|
172
|
-
"color": "info" as
|
|
190
|
+
"color": "info" as typeof color[number],
|
|
173
191
|
"active": true,
|
|
174
192
|
"class": {
|
|
175
|
-
"item": "text-
|
|
176
|
-
"itemLeadingIcon": "text-
|
|
193
|
+
"item": "text-(--ui-info) before:bg-(--ui-info)/10",
|
|
194
|
+
"itemLeadingIcon": "text-(--ui-info)"
|
|
177
195
|
}
|
|
178
196
|
},
|
|
179
197
|
{
|
|
180
|
-
"color": "warning" as
|
|
198
|
+
"color": "warning" as typeof color[number],
|
|
181
199
|
"active": true,
|
|
182
200
|
"class": {
|
|
183
|
-
"item": "text-
|
|
184
|
-
"itemLeadingIcon": "text-
|
|
201
|
+
"item": "text-(--ui-warning) before:bg-(--ui-warning)/10",
|
|
202
|
+
"itemLeadingIcon": "text-(--ui-warning)"
|
|
185
203
|
}
|
|
186
204
|
},
|
|
187
205
|
{
|
|
188
|
-
"color": "error" as
|
|
206
|
+
"color": "error" as typeof color[number],
|
|
189
207
|
"active": true,
|
|
190
208
|
"class": {
|
|
191
|
-
"item": "text-
|
|
192
|
-
"itemLeadingIcon": "text-
|
|
209
|
+
"item": "text-(--ui-error) before:bg-(--ui-error)/10",
|
|
210
|
+
"itemLeadingIcon": "text-(--ui-error)"
|
|
193
211
|
}
|
|
194
212
|
}
|
|
195
213
|
],
|
|
196
214
|
"defaultVariants": {
|
|
197
|
-
"size": "md" as
|
|
215
|
+
"size": "md" as typeof size[number]
|
|
198
216
|
}
|
|
199
217
|
}
|
package/.nuxt/ui/form-field.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
1
9
|
export default {
|
|
2
10
|
"slots": {
|
|
3
11
|
"root": "",
|
|
4
12
|
"wrapper": "",
|
|
5
13
|
"labelWrapper": "flex content-center items-center justify-between",
|
|
6
|
-
"label": "block font-medium text-
|
|
14
|
+
"label": "block font-medium text-(--ui-text)",
|
|
7
15
|
"container": "mt-1 relative",
|
|
8
|
-
"description": "text-
|
|
9
|
-
"error": "mt-2 text-
|
|
10
|
-
"hint": "text-
|
|
11
|
-
"help": "mt-2 text-
|
|
16
|
+
"description": "text-(--ui-text-muted)",
|
|
17
|
+
"error": "mt-2 text-(--ui-error)",
|
|
18
|
+
"hint": "text-(--ui-text-muted)",
|
|
19
|
+
"help": "mt-2 text-(--ui-text-muted)"
|
|
12
20
|
},
|
|
13
21
|
"variants": {
|
|
14
22
|
"size": {
|
|
@@ -30,11 +38,11 @@ export default {
|
|
|
30
38
|
},
|
|
31
39
|
"required": {
|
|
32
40
|
"true": {
|
|
33
|
-
"label": "after:content-['*'] after:ms-0.5 after:text-
|
|
41
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-(--ui-error)"
|
|
34
42
|
}
|
|
35
43
|
}
|
|
36
44
|
},
|
|
37
45
|
"defaultVariants": {
|
|
38
|
-
"size": "md" as
|
|
46
|
+
"size": "md" as typeof size[number]
|
|
39
47
|
}
|
|
40
48
|
}
|
package/.nuxt/ui/index.ts
CHANGED
|
@@ -6,11 +6,13 @@ export { default as badge } from './badge'
|
|
|
6
6
|
export { default as breadcrumb } from './breadcrumb'
|
|
7
7
|
export { default as button } from './button'
|
|
8
8
|
export { default as buttonGroup } from './button-group'
|
|
9
|
+
export { default as calendar } from './calendar'
|
|
9
10
|
export { default as card } from './card'
|
|
10
11
|
export { default as carousel } from './carousel'
|
|
11
12
|
export { default as checkbox } from './checkbox'
|
|
12
13
|
export { default as chip } from './chip'
|
|
13
14
|
export { default as collapsible } from './collapsible'
|
|
15
|
+
export { default as colorPicker } from './color-picker'
|
|
14
16
|
export { default as commandPalette } from './command-palette'
|
|
15
17
|
export { default as container } from './container'
|
|
16
18
|
export { default as contextMenu } from './context-menu'
|
|
@@ -36,10 +38,12 @@ export { default as separator } from './separator'
|
|
|
36
38
|
export { default as skeleton } from './skeleton'
|
|
37
39
|
export { default as slideover } from './slideover'
|
|
38
40
|
export { default as slider } from './slider'
|
|
41
|
+
export { default as stepper } from './stepper'
|
|
39
42
|
export { default as switch } from './switch'
|
|
40
43
|
export { default as table } from './table'
|
|
41
44
|
export { default as tabs } from './tabs'
|
|
42
45
|
export { default as textarea } from './textarea'
|
|
43
46
|
export { default as toast } from './toast'
|
|
44
47
|
export { default as toaster } from './toaster'
|
|
45
|
-
export { default as tooltip } from './tooltip'
|
|
48
|
+
export { default as tooltip } from './tooltip'
|
|
49
|
+
export { default as tree } from './tree'
|