@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/accordion.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
3
|
"root": "w-full",
|
|
4
|
-
"item": "border-b border-
|
|
4
|
+
"item": "border-b border-(--ui-border) last:border-b-0",
|
|
5
5
|
"header": "flex",
|
|
6
|
-
"trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3.5 focus-visible:outline-
|
|
6
|
+
"trigger": "group flex-1 flex items-center gap-1.5 font-medium text-sm py-3.5 focus-visible:outline-(--ui-primary) min-w-0",
|
|
7
7
|
"content": "data-[state=open]:animate-[accordion-down_200ms_ease-out] data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
8
8
|
"body": "text-sm pb-3.5",
|
|
9
9
|
"leadingIcon": "shrink-0 size-5",
|
package/.nuxt/ui/alert.ts
CHANGED
|
@@ -1,14 +1,36 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const variant = [
|
|
12
|
+
"solid",
|
|
13
|
+
"outline",
|
|
14
|
+
"soft",
|
|
15
|
+
"subtle"
|
|
16
|
+
] as const
|
|
17
|
+
|
|
18
|
+
const orientation = [
|
|
19
|
+
"horizontal",
|
|
20
|
+
"vertical"
|
|
21
|
+
] as const
|
|
22
|
+
|
|
1
23
|
export default {
|
|
2
24
|
"slots": {
|
|
3
25
|
"root": "relative overflow-hidden w-full rounded-[calc(var(--ui-radius)*2)] p-4 flex gap-2.5",
|
|
4
|
-
"wrapper": "min-w-0 flex-1 flex flex-col
|
|
26
|
+
"wrapper": "min-w-0 flex-1 flex flex-col",
|
|
5
27
|
"title": "text-sm font-medium",
|
|
6
28
|
"description": "text-sm opacity-90",
|
|
7
29
|
"icon": "shrink-0 size-5",
|
|
8
30
|
"avatar": "shrink-0",
|
|
9
31
|
"avatarSize": "2xl",
|
|
10
|
-
"actions": "flex gap-1.5 shrink-0",
|
|
11
|
-
"close": "p-0
|
|
32
|
+
"actions": "flex flex-wrap gap-1.5 shrink-0",
|
|
33
|
+
"close": "p-0"
|
|
12
34
|
},
|
|
13
35
|
"variants": {
|
|
14
36
|
"color": {
|
|
@@ -26,217 +48,222 @@ export default {
|
|
|
26
48
|
"soft": "",
|
|
27
49
|
"subtle": ""
|
|
28
50
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"root": "items-start",
|
|
32
|
-
"actions": "items-start mt-1"
|
|
33
|
-
},
|
|
34
|
-
"false": {
|
|
51
|
+
"orientation": {
|
|
52
|
+
"horizontal": {
|
|
35
53
|
"root": "items-center",
|
|
36
54
|
"actions": "items-center"
|
|
55
|
+
},
|
|
56
|
+
"vertical": {
|
|
57
|
+
"root": "items-start",
|
|
58
|
+
"actions": "items-start mt-2.5"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"title": {
|
|
62
|
+
"true": {
|
|
63
|
+
"description": "mt-1"
|
|
37
64
|
}
|
|
38
65
|
}
|
|
39
66
|
},
|
|
40
67
|
"compoundVariants": [
|
|
41
68
|
{
|
|
42
|
-
"color": "primary" as
|
|
43
|
-
"variant": "solid" as
|
|
69
|
+
"color": "primary" as typeof color[number],
|
|
70
|
+
"variant": "solid" as typeof variant[number],
|
|
44
71
|
"class": {
|
|
45
|
-
"root": "bg-
|
|
72
|
+
"root": "bg-(--ui-primary) text-(--ui-bg)"
|
|
46
73
|
}
|
|
47
74
|
},
|
|
48
75
|
{
|
|
49
|
-
"color": "secondary" as
|
|
50
|
-
"variant": "solid" as
|
|
76
|
+
"color": "secondary" as typeof color[number],
|
|
77
|
+
"variant": "solid" as typeof variant[number],
|
|
51
78
|
"class": {
|
|
52
|
-
"root": "bg-
|
|
79
|
+
"root": "bg-(--ui-secondary) text-(--ui-bg)"
|
|
53
80
|
}
|
|
54
81
|
},
|
|
55
82
|
{
|
|
56
|
-
"color": "success" as
|
|
57
|
-
"variant": "solid" as
|
|
83
|
+
"color": "success" as typeof color[number],
|
|
84
|
+
"variant": "solid" as typeof variant[number],
|
|
58
85
|
"class": {
|
|
59
|
-
"root": "bg-
|
|
86
|
+
"root": "bg-(--ui-success) text-(--ui-bg)"
|
|
60
87
|
}
|
|
61
88
|
},
|
|
62
89
|
{
|
|
63
|
-
"color": "info" as
|
|
64
|
-
"variant": "solid" as
|
|
90
|
+
"color": "info" as typeof color[number],
|
|
91
|
+
"variant": "solid" as typeof variant[number],
|
|
65
92
|
"class": {
|
|
66
|
-
"root": "bg-
|
|
93
|
+
"root": "bg-(--ui-info) text-(--ui-bg)"
|
|
67
94
|
}
|
|
68
95
|
},
|
|
69
96
|
{
|
|
70
|
-
"color": "warning" as
|
|
71
|
-
"variant": "solid" as
|
|
97
|
+
"color": "warning" as typeof color[number],
|
|
98
|
+
"variant": "solid" as typeof variant[number],
|
|
72
99
|
"class": {
|
|
73
|
-
"root": "bg-
|
|
100
|
+
"root": "bg-(--ui-warning) text-(--ui-bg)"
|
|
74
101
|
}
|
|
75
102
|
},
|
|
76
103
|
{
|
|
77
|
-
"color": "error" as
|
|
78
|
-
"variant": "solid" as
|
|
104
|
+
"color": "error" as typeof color[number],
|
|
105
|
+
"variant": "solid" as typeof variant[number],
|
|
79
106
|
"class": {
|
|
80
|
-
"root": "bg-
|
|
107
|
+
"root": "bg-(--ui-error) text-(--ui-bg)"
|
|
81
108
|
}
|
|
82
109
|
},
|
|
83
110
|
{
|
|
84
|
-
"color": "primary" as
|
|
85
|
-
"variant": "outline" as
|
|
111
|
+
"color": "primary" as typeof color[number],
|
|
112
|
+
"variant": "outline" as typeof variant[number],
|
|
86
113
|
"class": {
|
|
87
|
-
"root": "text-
|
|
114
|
+
"root": "text-(--ui-primary) ring ring-inset ring-(--ui-primary)/25"
|
|
88
115
|
}
|
|
89
116
|
},
|
|
90
117
|
{
|
|
91
|
-
"color": "secondary" as
|
|
92
|
-
"variant": "outline" as
|
|
118
|
+
"color": "secondary" as typeof color[number],
|
|
119
|
+
"variant": "outline" as typeof variant[number],
|
|
93
120
|
"class": {
|
|
94
|
-
"root": "text-
|
|
121
|
+
"root": "text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/25"
|
|
95
122
|
}
|
|
96
123
|
},
|
|
97
124
|
{
|
|
98
|
-
"color": "success" as
|
|
99
|
-
"variant": "outline" as
|
|
125
|
+
"color": "success" as typeof color[number],
|
|
126
|
+
"variant": "outline" as typeof variant[number],
|
|
100
127
|
"class": {
|
|
101
|
-
"root": "text-
|
|
128
|
+
"root": "text-(--ui-success) ring ring-inset ring-(--ui-success)/25"
|
|
102
129
|
}
|
|
103
130
|
},
|
|
104
131
|
{
|
|
105
|
-
"color": "info" as
|
|
106
|
-
"variant": "outline" as
|
|
132
|
+
"color": "info" as typeof color[number],
|
|
133
|
+
"variant": "outline" as typeof variant[number],
|
|
107
134
|
"class": {
|
|
108
|
-
"root": "text-
|
|
135
|
+
"root": "text-(--ui-info) ring ring-inset ring-(--ui-info)/25"
|
|
109
136
|
}
|
|
110
137
|
},
|
|
111
138
|
{
|
|
112
|
-
"color": "warning" as
|
|
113
|
-
"variant": "outline" as
|
|
139
|
+
"color": "warning" as typeof color[number],
|
|
140
|
+
"variant": "outline" as typeof variant[number],
|
|
114
141
|
"class": {
|
|
115
|
-
"root": "text-
|
|
142
|
+
"root": "text-(--ui-warning) ring ring-inset ring-(--ui-warning)/25"
|
|
116
143
|
}
|
|
117
144
|
},
|
|
118
145
|
{
|
|
119
|
-
"color": "error" as
|
|
120
|
-
"variant": "outline" as
|
|
146
|
+
"color": "error" as typeof color[number],
|
|
147
|
+
"variant": "outline" as typeof variant[number],
|
|
121
148
|
"class": {
|
|
122
|
-
"root": "text-
|
|
149
|
+
"root": "text-(--ui-error) ring ring-inset ring-(--ui-error)/25"
|
|
123
150
|
}
|
|
124
151
|
},
|
|
125
152
|
{
|
|
126
|
-
"color": "primary" as
|
|
127
|
-
"variant": "soft" as
|
|
153
|
+
"color": "primary" as typeof color[number],
|
|
154
|
+
"variant": "soft" as typeof variant[number],
|
|
128
155
|
"class": {
|
|
129
|
-
"root": "bg-
|
|
156
|
+
"root": "bg-(--ui-primary)/10 text-(--ui-primary)"
|
|
130
157
|
}
|
|
131
158
|
},
|
|
132
159
|
{
|
|
133
|
-
"color": "secondary" as
|
|
134
|
-
"variant": "soft" as
|
|
160
|
+
"color": "secondary" as typeof color[number],
|
|
161
|
+
"variant": "soft" as typeof variant[number],
|
|
135
162
|
"class": {
|
|
136
|
-
"root": "bg-
|
|
163
|
+
"root": "bg-(--ui-secondary)/10 text-(--ui-secondary)"
|
|
137
164
|
}
|
|
138
165
|
},
|
|
139
166
|
{
|
|
140
|
-
"color": "success" as
|
|
141
|
-
"variant": "soft" as
|
|
167
|
+
"color": "success" as typeof color[number],
|
|
168
|
+
"variant": "soft" as typeof variant[number],
|
|
142
169
|
"class": {
|
|
143
|
-
"root": "bg-
|
|
170
|
+
"root": "bg-(--ui-success)/10 text-(--ui-success)"
|
|
144
171
|
}
|
|
145
172
|
},
|
|
146
173
|
{
|
|
147
|
-
"color": "info" as
|
|
148
|
-
"variant": "soft" as
|
|
174
|
+
"color": "info" as typeof color[number],
|
|
175
|
+
"variant": "soft" as typeof variant[number],
|
|
149
176
|
"class": {
|
|
150
|
-
"root": "bg-
|
|
177
|
+
"root": "bg-(--ui-info)/10 text-(--ui-info)"
|
|
151
178
|
}
|
|
152
179
|
},
|
|
153
180
|
{
|
|
154
|
-
"color": "warning" as
|
|
155
|
-
"variant": "soft" as
|
|
181
|
+
"color": "warning" as typeof color[number],
|
|
182
|
+
"variant": "soft" as typeof variant[number],
|
|
156
183
|
"class": {
|
|
157
|
-
"root": "bg-
|
|
184
|
+
"root": "bg-(--ui-warning)/10 text-(--ui-warning)"
|
|
158
185
|
}
|
|
159
186
|
},
|
|
160
187
|
{
|
|
161
|
-
"color": "error" as
|
|
162
|
-
"variant": "soft" as
|
|
188
|
+
"color": "error" as typeof color[number],
|
|
189
|
+
"variant": "soft" as typeof variant[number],
|
|
163
190
|
"class": {
|
|
164
|
-
"root": "bg-
|
|
191
|
+
"root": "bg-(--ui-error)/10 text-(--ui-error)"
|
|
165
192
|
}
|
|
166
193
|
},
|
|
167
194
|
{
|
|
168
|
-
"color": "primary" as
|
|
169
|
-
"variant": "subtle" as
|
|
195
|
+
"color": "primary" as typeof color[number],
|
|
196
|
+
"variant": "subtle" as typeof variant[number],
|
|
170
197
|
"class": {
|
|
171
|
-
"root": "bg-
|
|
198
|
+
"root": "bg-(--ui-primary)/10 text-(--ui-primary) ring ring-inset ring-(--ui-primary)/25"
|
|
172
199
|
}
|
|
173
200
|
},
|
|
174
201
|
{
|
|
175
|
-
"color": "secondary" as
|
|
176
|
-
"variant": "subtle" as
|
|
202
|
+
"color": "secondary" as typeof color[number],
|
|
203
|
+
"variant": "subtle" as typeof variant[number],
|
|
177
204
|
"class": {
|
|
178
|
-
"root": "bg-
|
|
205
|
+
"root": "bg-(--ui-secondary)/10 text-(--ui-secondary) ring ring-inset ring-(--ui-secondary)/25"
|
|
179
206
|
}
|
|
180
207
|
},
|
|
181
208
|
{
|
|
182
|
-
"color": "success" as
|
|
183
|
-
"variant": "subtle" as
|
|
209
|
+
"color": "success" as typeof color[number],
|
|
210
|
+
"variant": "subtle" as typeof variant[number],
|
|
184
211
|
"class": {
|
|
185
|
-
"root": "bg-
|
|
212
|
+
"root": "bg-(--ui-success)/10 text-(--ui-success) ring ring-inset ring-(--ui-success)/25"
|
|
186
213
|
}
|
|
187
214
|
},
|
|
188
215
|
{
|
|
189
|
-
"color": "info" as
|
|
190
|
-
"variant": "subtle" as
|
|
216
|
+
"color": "info" as typeof color[number],
|
|
217
|
+
"variant": "subtle" as typeof variant[number],
|
|
191
218
|
"class": {
|
|
192
|
-
"root": "bg-
|
|
219
|
+
"root": "bg-(--ui-info)/10 text-(--ui-info) ring ring-inset ring-(--ui-info)/25"
|
|
193
220
|
}
|
|
194
221
|
},
|
|
195
222
|
{
|
|
196
|
-
"color": "warning" as
|
|
197
|
-
"variant": "subtle" as
|
|
223
|
+
"color": "warning" as typeof color[number],
|
|
224
|
+
"variant": "subtle" as typeof variant[number],
|
|
198
225
|
"class": {
|
|
199
|
-
"root": "bg-
|
|
226
|
+
"root": "bg-(--ui-warning)/10 text-(--ui-warning) ring ring-inset ring-(--ui-warning)/25"
|
|
200
227
|
}
|
|
201
228
|
},
|
|
202
229
|
{
|
|
203
|
-
"color": "error" as
|
|
204
|
-
"variant": "subtle" as
|
|
230
|
+
"color": "error" as typeof color[number],
|
|
231
|
+
"variant": "subtle" as typeof variant[number],
|
|
205
232
|
"class": {
|
|
206
|
-
"root": "bg-
|
|
233
|
+
"root": "bg-(--ui-error)/10 text-(--ui-error) ring ring-inset ring-(--ui-error)/25"
|
|
207
234
|
}
|
|
208
235
|
},
|
|
209
236
|
{
|
|
210
|
-
"color": "neutral" as
|
|
211
|
-
"variant": "solid" as
|
|
237
|
+
"color": "neutral" as typeof color[number],
|
|
238
|
+
"variant": "solid" as typeof variant[number],
|
|
212
239
|
"class": {
|
|
213
|
-
"root": "text-
|
|
240
|
+
"root": "text-(--ui-bg) bg-(--ui-bg-inverted)"
|
|
214
241
|
}
|
|
215
242
|
},
|
|
216
243
|
{
|
|
217
|
-
"color": "neutral" as
|
|
218
|
-
"variant": "outline" as
|
|
244
|
+
"color": "neutral" as typeof color[number],
|
|
245
|
+
"variant": "outline" as typeof variant[number],
|
|
219
246
|
"class": {
|
|
220
|
-
"root": "text-
|
|
247
|
+
"root": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border)"
|
|
221
248
|
}
|
|
222
249
|
},
|
|
223
250
|
{
|
|
224
|
-
"color": "neutral" as
|
|
225
|
-
"variant": "soft" as
|
|
251
|
+
"color": "neutral" as typeof color[number],
|
|
252
|
+
"variant": "soft" as typeof variant[number],
|
|
226
253
|
"class": {
|
|
227
|
-
"root": "text-
|
|
254
|
+
"root": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50"
|
|
228
255
|
}
|
|
229
256
|
},
|
|
230
257
|
{
|
|
231
|
-
"color": "neutral" as
|
|
232
|
-
"variant": "subtle" as
|
|
258
|
+
"color": "neutral" as typeof color[number],
|
|
259
|
+
"variant": "subtle" as typeof variant[number],
|
|
233
260
|
"class": {
|
|
234
|
-
"root": "text-
|
|
261
|
+
"root": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated)/50 ring ring-inset ring-(--ui-border-accented)"
|
|
235
262
|
}
|
|
236
263
|
}
|
|
237
264
|
],
|
|
238
265
|
"defaultVariants": {
|
|
239
|
-
"color": "primary" as
|
|
240
|
-
"variant": "solid" as
|
|
266
|
+
"color": "primary" as typeof color[number],
|
|
267
|
+
"variant": "solid" as typeof variant[number]
|
|
241
268
|
}
|
|
242
269
|
}
|
package/.nuxt/ui/avatar-group.ts
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"3xs",
|
|
3
|
+
"2xs",
|
|
4
|
+
"xs",
|
|
5
|
+
"sm",
|
|
6
|
+
"md",
|
|
7
|
+
"lg",
|
|
8
|
+
"xl",
|
|
9
|
+
"2xl",
|
|
10
|
+
"3xl"
|
|
11
|
+
] as const
|
|
12
|
+
|
|
1
13
|
export default {
|
|
2
14
|
"slots": {
|
|
3
15
|
"root": "inline-flex flex-row-reverse justify-end",
|
|
4
|
-
"base": "relative rounded-full ring-
|
|
16
|
+
"base": "relative rounded-full ring-(--ui-bg) first:me-0"
|
|
5
17
|
},
|
|
6
18
|
"variants": {
|
|
7
19
|
"size": {
|
|
@@ -35,6 +47,6 @@ export default {
|
|
|
35
47
|
}
|
|
36
48
|
},
|
|
37
49
|
"defaultVariants": {
|
|
38
|
-
"size": "md" as
|
|
50
|
+
"size": "md" as typeof size[number]
|
|
39
51
|
}
|
|
40
52
|
}
|
package/.nuxt/ui/avatar.ts
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"3xs",
|
|
3
|
+
"2xs",
|
|
4
|
+
"xs",
|
|
5
|
+
"sm",
|
|
6
|
+
"md",
|
|
7
|
+
"lg",
|
|
8
|
+
"xl",
|
|
9
|
+
"2xl",
|
|
10
|
+
"3xl"
|
|
11
|
+
] as const
|
|
12
|
+
|
|
1
13
|
export default {
|
|
2
14
|
"slots": {
|
|
3
|
-
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-
|
|
15
|
+
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-(--ui-bg-elevated)",
|
|
4
16
|
"image": "h-full w-full rounded-[inherit] object-cover",
|
|
5
|
-
"fallback": "font-medium leading-none text-
|
|
6
|
-
"icon": "text-
|
|
17
|
+
"fallback": "font-medium leading-none text-(--ui-text-muted) truncate",
|
|
18
|
+
"icon": "text-(--ui-text-muted) shrink-0"
|
|
7
19
|
},
|
|
8
20
|
"variants": {
|
|
9
21
|
"size": {
|
|
@@ -37,6 +49,6 @@ export default {
|
|
|
37
49
|
}
|
|
38
50
|
},
|
|
39
51
|
"defaultVariants": {
|
|
40
|
-
"size": "md" as
|
|
52
|
+
"size": "md" as typeof size[number]
|
|
41
53
|
}
|
|
42
54
|
}
|