@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
package/.nuxt/ui/select-menu.ts
CHANGED
|
@@ -1,29 +1,65 @@
|
|
|
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
|
"base": [
|
|
4
39
|
"relative group rounded-[calc(var(--ui-radius)*1.5)] inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
5
40
|
"transition-colors"
|
|
6
41
|
],
|
|
7
|
-
"leading": "absolute inset-y-0 start-0 flex items-center"
|
|
8
|
-
"leadingIcon": "shrink-0 text-
|
|
42
|
+
"leading": "absolute inset-y-0 start-0 flex items-center",
|
|
43
|
+
"leadingIcon": "shrink-0 text-(--ui-text-dimmed)",
|
|
9
44
|
"leadingAvatar": "shrink-0",
|
|
10
45
|
"leadingAvatarSize": "",
|
|
11
|
-
"trailing": "absolute inset-y-0 end-0 flex items-center"
|
|
12
|
-
"trailingIcon": "shrink-0 text-
|
|
13
|
-
"value": "truncate",
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
46
|
+
"trailing": "absolute inset-y-0 end-0 flex items-center",
|
|
47
|
+
"trailingIcon": "shrink-0 text-(--ui-text-dimmed)",
|
|
48
|
+
"value": "truncate pointer-events-none",
|
|
49
|
+
"placeholder": "truncate text-(--ui-text-dimmed)",
|
|
50
|
+
"arrow": "fill-(--ui-border)",
|
|
51
|
+
"content": "max-h-60 w-(--reka-popper-anchor-width) bg-(--ui-bg) shadow-lg rounded-[calc(var(--ui-radius)*1.5)] ring ring-(--ui-border) overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] pointer-events-auto",
|
|
52
|
+
"viewport": "divide-y divide-(--ui-border) scroll-py-1",
|
|
17
53
|
"group": "p-1 isolate",
|
|
18
|
-
"empty": "py-2 text-center text-sm text-
|
|
19
|
-
"label": "font-semibold text-
|
|
20
|
-
"separator": "-mx-1 my-1 h-px bg-
|
|
54
|
+
"empty": "py-2 text-center text-sm text-(--ui-text-muted)",
|
|
55
|
+
"label": "font-semibold text-(--ui-text-highlighted)",
|
|
56
|
+
"separator": "-mx-1 my-1 h-px bg-(--ui-border)",
|
|
21
57
|
"item": [
|
|
22
|
-
"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 text-
|
|
58
|
+
"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 text-(--ui-text) data-highlighted:text-(--ui-text-highlighted) data-highlighted:before:bg-(--ui-bg-elevated)/50",
|
|
23
59
|
"transition-colors before:transition-colors"
|
|
24
60
|
],
|
|
25
61
|
"itemLeadingIcon": [
|
|
26
|
-
"shrink-0 text-
|
|
62
|
+
"shrink-0 text-(--ui-text-dimmed) group-data-highlighted:text-(--ui-text)",
|
|
27
63
|
"transition-colors"
|
|
28
64
|
],
|
|
29
65
|
"itemLeadingAvatar": "shrink-0",
|
|
@@ -33,8 +69,8 @@ export default {
|
|
|
33
69
|
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
34
70
|
"itemTrailingIcon": "shrink-0",
|
|
35
71
|
"itemLabel": "truncate",
|
|
36
|
-
"
|
|
37
|
-
"
|
|
72
|
+
"input": "border-b border-(--ui-border)",
|
|
73
|
+
"focusScope": "flex flex-col min-h-0"
|
|
38
74
|
},
|
|
39
75
|
"variants": {
|
|
40
76
|
"buttonGroup": {
|
|
@@ -44,8 +80,8 @@ export default {
|
|
|
44
80
|
"size": {
|
|
45
81
|
"xs": {
|
|
46
82
|
"base": "px-2 py-1 text-xs gap-1",
|
|
47
|
-
"leading": "ps-2"
|
|
48
|
-
"trailing": "pe-2"
|
|
83
|
+
"leading": "ps-2",
|
|
84
|
+
"trailing": "pe-2",
|
|
49
85
|
"leadingIcon": "size-4",
|
|
50
86
|
"leadingAvatarSize": "3xs",
|
|
51
87
|
"trailingIcon": "size-4",
|
|
@@ -55,13 +91,12 @@ export default {
|
|
|
55
91
|
"itemLeadingAvatarSize": "3xs",
|
|
56
92
|
"itemLeadingChip": "size-4",
|
|
57
93
|
"itemLeadingChipSize": "sm",
|
|
58
|
-
"itemTrailingIcon": "size-4"
|
|
59
|
-
"input": "text-xs px-2 py-1"
|
|
94
|
+
"itemTrailingIcon": "size-4"
|
|
60
95
|
},
|
|
61
96
|
"sm": {
|
|
62
97
|
"base": "px-2.5 py-1.5 text-xs gap-1.5",
|
|
63
|
-
"leading": "ps-2.5"
|
|
64
|
-
"trailing": "pe-2.5"
|
|
98
|
+
"leading": "ps-2.5",
|
|
99
|
+
"trailing": "pe-2.5",
|
|
65
100
|
"leadingIcon": "size-4",
|
|
66
101
|
"leadingAvatarSize": "3xs",
|
|
67
102
|
"trailingIcon": "size-4",
|
|
@@ -71,13 +106,12 @@ export default {
|
|
|
71
106
|
"itemLeadingAvatarSize": "3xs",
|
|
72
107
|
"itemLeadingChip": "size-4",
|
|
73
108
|
"itemLeadingChipSize": "sm",
|
|
74
|
-
"itemTrailingIcon": "size-4"
|
|
75
|
-
"input": "text-xs px-2.5 py-1.5"
|
|
109
|
+
"itemTrailingIcon": "size-4"
|
|
76
110
|
},
|
|
77
111
|
"md": {
|
|
78
112
|
"base": "px-2.5 py-1.5 text-sm gap-1.5",
|
|
79
|
-
"leading": "ps-2.5"
|
|
80
|
-
"trailing": "pe-2.5"
|
|
113
|
+
"leading": "ps-2.5",
|
|
114
|
+
"trailing": "pe-2.5",
|
|
81
115
|
"leadingIcon": "size-5",
|
|
82
116
|
"leadingAvatarSize": "2xs",
|
|
83
117
|
"trailingIcon": "size-5",
|
|
@@ -87,13 +121,12 @@ export default {
|
|
|
87
121
|
"itemLeadingAvatarSize": "2xs",
|
|
88
122
|
"itemLeadingChip": "size-5",
|
|
89
123
|
"itemLeadingChipSize": "md",
|
|
90
|
-
"itemTrailingIcon": "size-5"
|
|
91
|
-
"input": "text-sm px-2.5 py-1.5"
|
|
124
|
+
"itemTrailingIcon": "size-5"
|
|
92
125
|
},
|
|
93
126
|
"lg": {
|
|
94
127
|
"base": "px-3 py-2 text-sm gap-2",
|
|
95
|
-
"leading": "ps-3"
|
|
96
|
-
"trailing": "pe-3"
|
|
128
|
+
"leading": "ps-3",
|
|
129
|
+
"trailing": "pe-3",
|
|
97
130
|
"leadingIcon": "size-5",
|
|
98
131
|
"leadingAvatarSize": "2xs",
|
|
99
132
|
"trailingIcon": "size-5",
|
|
@@ -103,13 +136,12 @@ export default {
|
|
|
103
136
|
"itemLeadingAvatarSize": "2xs",
|
|
104
137
|
"itemLeadingChip": "size-5",
|
|
105
138
|
"itemLeadingChipSize": "md",
|
|
106
|
-
"itemTrailingIcon": "size-5"
|
|
107
|
-
"input": "text-sm px-3 py-2"
|
|
139
|
+
"itemTrailingIcon": "size-5"
|
|
108
140
|
},
|
|
109
141
|
"xl": {
|
|
110
142
|
"base": "px-3 py-2 text-base gap-2",
|
|
111
|
-
"leading": "ps-3"
|
|
112
|
-
"trailing": "pe-3"
|
|
143
|
+
"leading": "ps-3",
|
|
144
|
+
"trailing": "pe-3",
|
|
113
145
|
"leadingIcon": "size-6",
|
|
114
146
|
"leadingAvatarSize": "xs",
|
|
115
147
|
"trailingIcon": "size-6",
|
|
@@ -119,16 +151,15 @@ export default {
|
|
|
119
151
|
"itemLeadingAvatarSize": "xs",
|
|
120
152
|
"itemLeadingChip": "size-6",
|
|
121
153
|
"itemLeadingChipSize": "lg",
|
|
122
|
-
"itemTrailingIcon": "size-6"
|
|
123
|
-
"input": "text-base px-3 py-2"
|
|
154
|
+
"itemTrailingIcon": "size-6"
|
|
124
155
|
}
|
|
125
156
|
},
|
|
126
157
|
"variant": {
|
|
127
|
-
"outline": "text-
|
|
128
|
-
"soft": "text-
|
|
129
|
-
"subtle": "text-
|
|
130
|
-
"ghost": "text-
|
|
131
|
-
"none": "text-
|
|
158
|
+
"outline": "text-(--ui-text-highlighted) bg-(--ui-bg) ring ring-inset ring-(--ui-border-accented)",
|
|
159
|
+
"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",
|
|
160
|
+
"subtle": "text-(--ui-text-highlighted) bg-(--ui-bg-elevated) ring ring-inset ring-(--ui-border-accented)",
|
|
161
|
+
"ghost": "text-(--ui-text-highlighted) bg-transparent hover:bg-(--ui-bg-elevated) focus:bg-(--ui-bg-elevated) disabled:bg-transparent dark:disabled:bg-transparent",
|
|
162
|
+
"none": "text-(--ui-text-highlighted) bg-transparent"
|
|
132
163
|
},
|
|
133
164
|
"color": {
|
|
134
165
|
"primary": "",
|
|
@@ -152,149 +183,149 @@ export default {
|
|
|
152
183
|
"true": ""
|
|
153
184
|
},
|
|
154
185
|
"type": {
|
|
155
|
-
"file": "file:me-1.5 file:font-medium file:text-
|
|
186
|
+
"file": "file:me-1.5 file:font-medium file:text-(--ui-text-muted) file:outline-none"
|
|
156
187
|
}
|
|
157
188
|
},
|
|
158
189
|
"compoundVariants": [
|
|
159
190
|
{
|
|
160
|
-
"color": "primary" as
|
|
191
|
+
"color": "primary" as typeof color[number],
|
|
161
192
|
"variant": [
|
|
162
|
-
"outline" as
|
|
163
|
-
"subtle" as
|
|
193
|
+
"outline" as typeof variant[number],
|
|
194
|
+
"subtle" as typeof variant[number]
|
|
164
195
|
],
|
|
165
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
196
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-primary)"
|
|
166
197
|
},
|
|
167
198
|
{
|
|
168
|
-
"color": "secondary" as
|
|
199
|
+
"color": "secondary" as typeof color[number],
|
|
169
200
|
"variant": [
|
|
170
|
-
"outline" as
|
|
171
|
-
"subtle" as
|
|
201
|
+
"outline" as typeof variant[number],
|
|
202
|
+
"subtle" as typeof variant[number]
|
|
172
203
|
],
|
|
173
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
204
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-secondary)"
|
|
174
205
|
},
|
|
175
206
|
{
|
|
176
|
-
"color": "success" as
|
|
207
|
+
"color": "success" as typeof color[number],
|
|
177
208
|
"variant": [
|
|
178
|
-
"outline" as
|
|
179
|
-
"subtle" as
|
|
209
|
+
"outline" as typeof variant[number],
|
|
210
|
+
"subtle" as typeof variant[number]
|
|
180
211
|
],
|
|
181
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
212
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-success)"
|
|
182
213
|
},
|
|
183
214
|
{
|
|
184
|
-
"color": "info" as
|
|
215
|
+
"color": "info" as typeof color[number],
|
|
185
216
|
"variant": [
|
|
186
|
-
"outline" as
|
|
187
|
-
"subtle" as
|
|
217
|
+
"outline" as typeof variant[number],
|
|
218
|
+
"subtle" as typeof variant[number]
|
|
188
219
|
],
|
|
189
|
-
"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-info)"
|
|
190
221
|
},
|
|
191
222
|
{
|
|
192
|
-
"color": "warning" as
|
|
223
|
+
"color": "warning" as typeof color[number],
|
|
193
224
|
"variant": [
|
|
194
|
-
"outline" as
|
|
195
|
-
"subtle" as
|
|
225
|
+
"outline" as typeof variant[number],
|
|
226
|
+
"subtle" as typeof variant[number]
|
|
196
227
|
],
|
|
197
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
228
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-warning)"
|
|
198
229
|
},
|
|
199
230
|
{
|
|
200
|
-
"color": "error" as
|
|
231
|
+
"color": "error" as typeof color[number],
|
|
201
232
|
"variant": [
|
|
202
|
-
"outline" as
|
|
203
|
-
"subtle" as
|
|
233
|
+
"outline" as typeof variant[number],
|
|
234
|
+
"subtle" as typeof variant[number]
|
|
204
235
|
],
|
|
205
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
236
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-error)"
|
|
206
237
|
},
|
|
207
238
|
{
|
|
208
|
-
"color": "primary" as
|
|
239
|
+
"color": "primary" as typeof color[number],
|
|
209
240
|
"highlight": true,
|
|
210
|
-
"class": "ring ring-inset ring-
|
|
241
|
+
"class": "ring ring-inset ring-(--ui-primary)"
|
|
211
242
|
},
|
|
212
243
|
{
|
|
213
|
-
"color": "secondary" as
|
|
244
|
+
"color": "secondary" as typeof color[number],
|
|
214
245
|
"highlight": true,
|
|
215
|
-
"class": "ring ring-inset ring-
|
|
246
|
+
"class": "ring ring-inset ring-(--ui-secondary)"
|
|
216
247
|
},
|
|
217
248
|
{
|
|
218
|
-
"color": "success" as
|
|
249
|
+
"color": "success" as typeof color[number],
|
|
219
250
|
"highlight": true,
|
|
220
|
-
"class": "ring ring-inset ring-
|
|
251
|
+
"class": "ring ring-inset ring-(--ui-success)"
|
|
221
252
|
},
|
|
222
253
|
{
|
|
223
|
-
"color": "info" as
|
|
254
|
+
"color": "info" as typeof color[number],
|
|
224
255
|
"highlight": true,
|
|
225
|
-
"class": "ring ring-inset ring-
|
|
256
|
+
"class": "ring ring-inset ring-(--ui-info)"
|
|
226
257
|
},
|
|
227
258
|
{
|
|
228
|
-
"color": "warning" as
|
|
259
|
+
"color": "warning" as typeof color[number],
|
|
229
260
|
"highlight": true,
|
|
230
|
-
"class": "ring ring-inset ring-
|
|
261
|
+
"class": "ring ring-inset ring-(--ui-warning)"
|
|
231
262
|
},
|
|
232
263
|
{
|
|
233
|
-
"color": "error" as
|
|
264
|
+
"color": "error" as typeof color[number],
|
|
234
265
|
"highlight": true,
|
|
235
|
-
"class": "ring ring-inset ring-
|
|
266
|
+
"class": "ring ring-inset ring-(--ui-error)"
|
|
236
267
|
},
|
|
237
268
|
{
|
|
238
|
-
"color": "neutral" as
|
|
269
|
+
"color": "neutral" as typeof color[number],
|
|
239
270
|
"variant": [
|
|
240
|
-
"outline" as
|
|
241
|
-
"subtle" as
|
|
271
|
+
"outline" as typeof variant[number],
|
|
272
|
+
"subtle" as typeof variant[number]
|
|
242
273
|
],
|
|
243
|
-
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-
|
|
274
|
+
"class": "focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-(--ui-border-inverted)"
|
|
244
275
|
},
|
|
245
276
|
{
|
|
246
|
-
"color": "neutral" as
|
|
277
|
+
"color": "neutral" as typeof color[number],
|
|
247
278
|
"highlight": true,
|
|
248
|
-
"class": "ring ring-inset ring-
|
|
279
|
+
"class": "ring ring-inset ring-(--ui-border-inverted)"
|
|
249
280
|
},
|
|
250
281
|
{
|
|
251
282
|
"leading": true,
|
|
252
|
-
"size": "xs" as
|
|
283
|
+
"size": "xs" as typeof size[number],
|
|
253
284
|
"class": "ps-7"
|
|
254
285
|
},
|
|
255
286
|
{
|
|
256
287
|
"leading": true,
|
|
257
|
-
"size": "sm" as
|
|
288
|
+
"size": "sm" as typeof size[number],
|
|
258
289
|
"class": "ps-8"
|
|
259
290
|
},
|
|
260
291
|
{
|
|
261
292
|
"leading": true,
|
|
262
|
-
"size": "md" as
|
|
293
|
+
"size": "md" as typeof size[number],
|
|
263
294
|
"class": "ps-9"
|
|
264
295
|
},
|
|
265
296
|
{
|
|
266
297
|
"leading": true,
|
|
267
|
-
"size": "lg" as
|
|
298
|
+
"size": "lg" as typeof size[number],
|
|
268
299
|
"class": "ps-10"
|
|
269
300
|
},
|
|
270
301
|
{
|
|
271
302
|
"leading": true,
|
|
272
|
-
"size": "xl" as
|
|
303
|
+
"size": "xl" as typeof size[number],
|
|
273
304
|
"class": "ps-11"
|
|
274
305
|
},
|
|
275
306
|
{
|
|
276
307
|
"trailing": true,
|
|
277
|
-
"size": "xs" as
|
|
308
|
+
"size": "xs" as typeof size[number],
|
|
278
309
|
"class": "pe-7"
|
|
279
310
|
},
|
|
280
311
|
{
|
|
281
312
|
"trailing": true,
|
|
282
|
-
"size": "sm" as
|
|
313
|
+
"size": "sm" as typeof size[number],
|
|
283
314
|
"class": "pe-8"
|
|
284
315
|
},
|
|
285
316
|
{
|
|
286
317
|
"trailing": true,
|
|
287
|
-
"size": "md" as
|
|
318
|
+
"size": "md" as typeof size[number],
|
|
288
319
|
"class": "pe-9"
|
|
289
320
|
},
|
|
290
321
|
{
|
|
291
322
|
"trailing": true,
|
|
292
|
-
"size": "lg" as
|
|
323
|
+
"size": "lg" as typeof size[number],
|
|
293
324
|
"class": "pe-10"
|
|
294
325
|
},
|
|
295
326
|
{
|
|
296
327
|
"trailing": true,
|
|
297
|
-
"size": "xl" as
|
|
328
|
+
"size": "xl" as typeof size[number],
|
|
298
329
|
"class": "pe-11"
|
|
299
330
|
},
|
|
300
331
|
{
|
|
@@ -314,8 +345,8 @@ export default {
|
|
|
314
345
|
}
|
|
315
346
|
],
|
|
316
347
|
"defaultVariants": {
|
|
317
|
-
"size": "md" as
|
|
318
|
-
"color": "primary" as
|
|
319
|
-
"variant": "outline" as
|
|
348
|
+
"size": "md" as typeof size[number],
|
|
349
|
+
"color": "primary" as typeof color[number],
|
|
350
|
+
"variant": "outline" as typeof variant[number]
|
|
320
351
|
}
|
|
321
352
|
}
|