@eslamdevui/ui 3.2.0-beta.1 → 3.2.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/alert.ts +5 -0
- package/.nuxt/ui/badge.ts +5 -0
- package/.nuxt/ui/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +5 -0
- package/.nuxt/ui/carousel.ts +5 -0
- package/.nuxt/ui/content/content-navigation.ts +339 -0
- package/.nuxt/ui/content/content-search-button.ts +6 -0
- package/.nuxt/ui/content/content-search.ts +6 -0
- package/.nuxt/ui/content/content-surround.ts +39 -0
- package/.nuxt/ui/content/content-toc.ts +150 -0
- package/.nuxt/ui/content/index.ts +5 -0
- package/.nuxt/ui/content-surround.ts +5 -0
- package/.nuxt/ui/content-toc.ts +6 -6
- package/.nuxt/ui/dashboard-navbar.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar.ts +10 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/index.ts +48 -1
- package/.nuxt/ui/input-menu.ts +9 -0
- package/.nuxt/ui/input-number.ts +5 -0
- package/.nuxt/ui/input-tags.ts +9 -0
- package/.nuxt/ui/input.ts +9 -0
- package/.nuxt/ui/prose/a.ts +6 -0
- package/.nuxt/ui/prose/accordion-item.ts +3 -0
- package/.nuxt/ui/prose/accordion.ts +6 -0
- package/.nuxt/ui/prose/badge.ts +3 -0
- package/.nuxt/ui/prose/blockquote.ts +3 -0
- package/.nuxt/ui/prose/callout.ts +129 -0
- package/.nuxt/ui/prose/card-group.ts +3 -0
- package/.nuxt/ui/prose/card.ts +119 -0
- package/.nuxt/ui/prose/code-collapse.ts +19 -0
- package/.nuxt/ui/prose/code-group.ts +13 -0
- package/.nuxt/ui/prose/code-icon.ts +66 -0
- package/.nuxt/ui/prose/code-preview.ts +14 -0
- package/.nuxt/ui/prose/code-tree.ts +28 -0
- package/.nuxt/ui/prose/code.ts +27 -0
- package/.nuxt/ui/prose/collapsible.ts +12 -0
- package/.nuxt/ui/prose/em.ts +3 -0
- package/.nuxt/ui/prose/field-group.ts +3 -0
- package/.nuxt/ui/prose/field.ts +11 -0
- package/.nuxt/ui/prose/h1.ts +6 -0
- package/.nuxt/ui/prose/h2.ts +14 -0
- package/.nuxt/ui/prose/h3.ts +14 -0
- package/.nuxt/ui/prose/h4.ts +6 -0
- package/.nuxt/ui/prose/hr.ts +3 -0
- package/.nuxt/ui/prose/icon.ts +3 -0
- package/.nuxt/ui/prose/img.ts +3 -0
- package/.nuxt/ui/prose/index.ts +41 -0
- package/.nuxt/ui/prose/kbd.ts +3 -0
- package/.nuxt/ui/prose/li.ts +3 -0
- package/.nuxt/ui/prose/ol.ts +3 -0
- package/.nuxt/ui/prose/p.ts +3 -0
- package/.nuxt/ui/prose/pre.ts +17 -0
- package/.nuxt/ui/prose/steps.ts +19 -0
- package/.nuxt/ui/prose/strong.ts +3 -0
- package/.nuxt/ui/prose/table.ts +6 -0
- package/.nuxt/ui/prose/tabs-item.ts +3 -0
- package/.nuxt/ui/prose/tabs.ts +5 -0
- package/.nuxt/ui/prose/tbody.ts +3 -0
- package/.nuxt/ui/prose/td.ts +3 -0
- package/.nuxt/ui/prose/th.ts +3 -0
- package/.nuxt/ui/prose/thead.ts +3 -0
- package/.nuxt/ui/prose/tr.ts +3 -0
- package/.nuxt/ui/prose/ul.ts +3 -0
- package/.nuxt/ui/select-menu.ts +9 -0
- package/.nuxt/ui/select.ts +9 -0
- package/.nuxt/ui/textarea.ts +9 -0
- package/.nuxt/ui/toast.ts +5 -0
- package/LICENSE.md +9 -9
- package/README.md +147 -147
- package/cli/commands/make/component.mjs +95 -95
- package/cli/commands/make/index.mjs +14 -14
- package/cli/commands/make/locale.mjs +64 -64
- package/cli/index.mjs +15 -15
- package/cli/package.json +13 -13
- package/cli/templates.mjs +236 -228
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +18 -13
- package/dist/runtime/components/Accordion.vue +36 -36
- package/dist/runtime/components/Alert.vue +46 -46
- package/dist/runtime/components/App.vue +10 -10
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/Badge.vue +16 -16
- package/dist/runtime/components/Breadcrumb.vue +32 -32
- package/dist/runtime/components/Button.vue +28 -28
- package/dist/runtime/components/ButtonGroup.vue +3 -3
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Card.vue +13 -13
- package/dist/runtime/components/Carousel.vue +58 -58
- package/dist/runtime/components/ChatMessage.vue +35 -35
- package/dist/runtime/components/ChatMessages.vue +71 -71
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -2
- package/dist/runtime/components/ChatPrompt.vue +30 -31
- package/dist/runtime/components/ChatPrompt.vue.d.ts +4 -4
- package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
- package/dist/runtime/components/Checkbox.vue +33 -33
- package/dist/runtime/components/CheckboxGroup.vue +32 -32
- package/dist/runtime/components/Chip.vue +11 -11
- package/dist/runtime/components/Collapsible.vue +9 -9
- package/dist/runtime/components/ColorPicker.vue +30 -30
- package/dist/runtime/components/CommandPalette.vue +117 -117
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +22 -22
- package/dist/runtime/components/ContextMenuContent.vue +105 -105
- package/dist/runtime/components/DashboardGroup.vue +3 -3
- package/dist/runtime/components/DashboardNavbar.vue +41 -41
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue +29 -29
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +24 -25
- package/dist/runtime/components/DashboardSearch.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSearchButton.vue +63 -41
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +7 -1
- package/dist/runtime/components/DashboardSidebar.vue +77 -77
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +14 -17
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +4 -6
- package/dist/runtime/components/Drawer.vue +55 -55
- package/dist/runtime/components/DropdownMenu.vue +24 -24
- package/dist/runtime/components/DropdownMenuContent.vue +107 -107
- package/dist/runtime/components/Error.vue +57 -0
- package/dist/runtime/components/Error.vue.d.ts +52 -0
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/Form.vue.d.ts +1 -1
- package/dist/runtime/components/FormField.vue +37 -37
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +34 -34
- package/dist/runtime/components/InputMenu.vue +163 -163
- package/dist/runtime/components/InputNumber.vue +49 -49
- package/dist/runtime/components/InputTags.vue +55 -55
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.vue +14 -14
- package/dist/runtime/components/LinkBase.vue +8 -8
- package/dist/runtime/components/Modal.vue +69 -69
- package/dist/runtime/components/NavigationMenu.vue +166 -166
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/PinInput.vue +20 -20
- package/dist/runtime/components/Popover.vue +17 -17
- package/dist/runtime/components/Progress.vue +19 -19
- package/dist/runtime/components/RadioGroup.vue +43 -43
- package/dist/runtime/components/Select.vue +96 -96
- package/dist/runtime/components/SelectMenu.vue +130 -130
- package/dist/runtime/components/Separator.vue +15 -15
- package/dist/runtime/components/Skeleton.vue +10 -10
- package/dist/runtime/components/Slideover.vue +76 -76
- package/dist/runtime/components/Slider.vue +27 -27
- package/dist/runtime/components/Stepper.vue +51 -51
- package/dist/runtime/components/Switch.vue +33 -33
- package/dist/runtime/components/Table.vue +77 -77
- package/dist/runtime/components/Tabs.vue +37 -37
- package/dist/runtime/components/Textarea.vue +33 -33
- package/dist/runtime/components/Timeline.vue +38 -38
- package/dist/runtime/components/Toast.vue +69 -69
- package/dist/runtime/components/Toaster.vue +28 -28
- package/dist/runtime/components/Tooltip.vue +19 -19
- package/dist/runtime/components/Tree.vue +60 -60
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +3 -3
- package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue +175 -0
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +53 -0
- package/dist/runtime/components/content/ContentSearch.vue +184 -0
- package/dist/runtime/components/content/ContentSearch.vue.d.ts +111 -0
- package/dist/runtime/components/content/ContentSearchButton.vue +95 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +12 -0
- package/dist/runtime/components/content/ContentSurround.vue +61 -0
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +59 -0
- package/dist/runtime/components/content/ContentToc.vue +146 -0
- package/dist/runtime/components/content/ContentToc.vue.d.ts +88 -0
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue +24 -0
- package/dist/runtime/components/prose/A.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Accordion.vue +43 -0
- package/dist/runtime/components/prose/Accordion.vue.d.ts +16 -0
- package/dist/runtime/components/prose/AccordionItem.vue +25 -0
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Badge.vue +21 -0
- package/dist/runtime/components/prose/Badge.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Blockquote.vue +21 -0
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Callout.vue +60 -0
- package/dist/runtime/components/prose/Callout.vue.d.ts +26 -0
- package/dist/runtime/components/prose/Card.vue +83 -0
- package/dist/runtime/components/prose/Card.vue.d.ts +30 -0
- package/dist/runtime/components/prose/CardGroup.vue +21 -0
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Code.vue +23 -0
- package/dist/runtime/components/prose/Code.vue.d.ts +22 -0
- package/dist/runtime/components/prose/CodeCollapse.vue +44 -0
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +46 -0
- package/dist/runtime/components/prose/CodeGroup.vue +70 -0
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +37 -0
- package/dist/runtime/components/prose/CodeIcon.vue +28 -0
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +24 -0
- package/dist/runtime/components/prose/CodePreview.vue +28 -0
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +19 -0
- package/dist/runtime/components/prose/CodeTree.vue +160 -0
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +30 -0
- package/dist/runtime/components/prose/Collapsible.vue +41 -0
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +38 -0
- package/dist/runtime/components/prose/Em.vue +19 -0
- package/dist/runtime/components/prose/Em.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Field.vue +48 -0
- package/dist/runtime/components/prose/Field.vue.d.ts +39 -0
- package/dist/runtime/components/prose/FieldGroup.vue +23 -0
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +18 -0
- package/dist/runtime/components/prose/H1.vue +28 -0
- package/dist/runtime/components/prose/H1.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H2.vue +32 -0
- package/dist/runtime/components/prose/H2.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H3.vue +32 -0
- package/dist/runtime/components/prose/H3.vue.d.ts +19 -0
- package/dist/runtime/components/prose/H4.vue +28 -0
- package/dist/runtime/components/prose/H4.vue.d.ts +19 -0
- package/dist/runtime/components/prose/Hr.vue +18 -0
- package/dist/runtime/components/prose/Hr.vue.d.ts +5 -0
- package/dist/runtime/components/prose/Icon.vue +19 -0
- package/dist/runtime/components/prose/Icon.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Img.vue +40 -0
- package/dist/runtime/components/prose/Img.vue.d.ts +9 -0
- package/dist/runtime/components/prose/Kbd.vue +19 -0
- package/dist/runtime/components/prose/Kbd.vue.d.ts +6 -0
- package/dist/runtime/components/prose/Li.vue +21 -0
- package/dist/runtime/components/prose/Li.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ol.vue +21 -0
- package/dist/runtime/components/prose/Ol.vue.d.ts +13 -0
- package/dist/runtime/components/prose/P.vue +21 -0
- package/dist/runtime/components/prose/P.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Pre.vue +63 -0
- package/dist/runtime/components/prose/Pre.vue.d.ts +25 -0
- package/dist/runtime/components/prose/Script.vue +12 -0
- package/dist/runtime/components/prose/Script.vue.d.ts +12 -0
- package/dist/runtime/components/prose/Steps.vue +22 -0
- package/dist/runtime/components/prose/Steps.vue.d.ts +22 -0
- package/dist/runtime/components/prose/Strong.vue +21 -0
- package/dist/runtime/components/prose/Strong.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Table.vue +24 -0
- package/dist/runtime/components/prose/Table.vue.d.ts +18 -0
- package/dist/runtime/components/prose/Tabs.vue +78 -0
- package/dist/runtime/components/prose/Tabs.vue.d.ts +36 -0
- package/dist/runtime/components/prose/TabsItem.vue +25 -0
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +15 -0
- package/dist/runtime/components/prose/Tbody.vue +21 -0
- package/dist/runtime/components/prose/Tbody.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Td.vue +21 -0
- package/dist/runtime/components/prose/Td.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Th.vue +21 -0
- package/dist/runtime/components/prose/Th.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Thead.vue +21 -0
- package/dist/runtime/components/prose/Thead.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Tr.vue +21 -0
- package/dist/runtime/components/prose/Tr.vue.d.ts +13 -0
- package/dist/runtime/components/prose/Ul.vue +21 -0
- package/dist/runtime/components/prose/Ul.vue.d.ts +13 -0
- package/dist/runtime/components/prose/callout/Caution.vue +11 -0
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Note.vue +11 -0
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Tip.vue +11 -0
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +14 -0
- package/dist/runtime/components/prose/callout/Warning.vue +11 -0
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +14 -0
- package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
- package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
- package/dist/runtime/composables/useFormField.d.ts +2 -2
- package/dist/runtime/composables/usePortal.d.ts +1 -1
- package/dist/runtime/composables/useResizable.d.ts +1 -1
- package/dist/runtime/inertia/components/Link.vue +12 -12
- package/dist/runtime/inertia/components/LinkBase.vue +15 -15
- package/dist/runtime/types/app.config.d.ts +6 -6
- package/dist/runtime/types/content.d.ts +4 -1
- package/dist/runtime/types/content.js +4 -0
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/prose.d.ts +42 -1
- package/dist/runtime/types/prose.js +42 -0
- package/dist/runtime/types/tv.d.ts +2 -2
- package/dist/runtime/utils/index.d.ts +1 -1
- package/dist/runtime/utils/index.js +13 -4
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +31 -31
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
- package/dist/shared/{ui.BcVNrqyb.mjs → ui.DQZ75GCP.mjs} +183 -180
- package/dist/unplugin.mjs +9 -9
- package/dist/vite.mjs +1 -1
- package/package.json +8 -9
- package/vue-plugin.d.ts +5 -5
package/.nuxt/ui/alert.ts
CHANGED
package/.nuxt/ui/badge.ts
CHANGED
package/.nuxt/ui/button-group.ts
CHANGED
package/.nuxt/ui/button.ts
CHANGED
package/.nuxt/ui/carousel.ts
CHANGED
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const highlightColor = [
|
|
12
|
+
"primary",
|
|
13
|
+
"secondary",
|
|
14
|
+
"success",
|
|
15
|
+
"info",
|
|
16
|
+
"warning",
|
|
17
|
+
"error"
|
|
18
|
+
] as const
|
|
19
|
+
|
|
20
|
+
const variant = [
|
|
21
|
+
"pill",
|
|
22
|
+
"link"
|
|
23
|
+
] as const
|
|
24
|
+
|
|
25
|
+
export default {
|
|
26
|
+
"slots": {
|
|
27
|
+
"root": "",
|
|
28
|
+
"content": "data-[state=open]:animate-[accordion-down_200ms_ease-out] data-[state=closed]:animate-[accordion-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
29
|
+
"list": "isolate -mx-2.5 -mt-1.5",
|
|
30
|
+
"item": "",
|
|
31
|
+
"listWithChildren": "ms-5 border-s border-default",
|
|
32
|
+
"itemWithChildren": "flex flex-col data-[state=open]:mb-1.5",
|
|
33
|
+
"trigger": "font-semibold",
|
|
34
|
+
"link": "group relative w-full px-2.5 py-1.5 before:inset-y-px before:inset-x-0 flex items-center gap-1.5 text-sm before:absolute before:z-[-1] before:rounded-md focus:outline-none focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-2",
|
|
35
|
+
"linkLeadingIcon": "shrink-0 size-5",
|
|
36
|
+
"linkTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
37
|
+
"linkTrailingBadge": "shrink-0",
|
|
38
|
+
"linkTrailingBadgeSize": "sm",
|
|
39
|
+
"linkTrailingIcon": "size-5 transform transition-transform duration-200 shrink-0 group-data-[state=open]:rotate-180",
|
|
40
|
+
"linkTitle": "truncate",
|
|
41
|
+
"linkTitleExternalIcon": "size-3 align-top text-dimmed"
|
|
42
|
+
},
|
|
43
|
+
"variants": {
|
|
44
|
+
"color": {
|
|
45
|
+
"primary": {
|
|
46
|
+
"trigger": "focus-visible:ring-primary",
|
|
47
|
+
"link": "focus-visible:before:ring-primary"
|
|
48
|
+
},
|
|
49
|
+
"secondary": {
|
|
50
|
+
"trigger": "focus-visible:ring-secondary",
|
|
51
|
+
"link": "focus-visible:before:ring-secondary"
|
|
52
|
+
},
|
|
53
|
+
"success": {
|
|
54
|
+
"trigger": "focus-visible:ring-success",
|
|
55
|
+
"link": "focus-visible:before:ring-success"
|
|
56
|
+
},
|
|
57
|
+
"info": {
|
|
58
|
+
"trigger": "focus-visible:ring-info",
|
|
59
|
+
"link": "focus-visible:before:ring-info"
|
|
60
|
+
},
|
|
61
|
+
"warning": {
|
|
62
|
+
"trigger": "focus-visible:ring-warning",
|
|
63
|
+
"link": "focus-visible:before:ring-warning"
|
|
64
|
+
},
|
|
65
|
+
"error": {
|
|
66
|
+
"trigger": "focus-visible:ring-error",
|
|
67
|
+
"link": "focus-visible:before:ring-error"
|
|
68
|
+
},
|
|
69
|
+
"neutral": {
|
|
70
|
+
"trigger": "focus-visible:ring-inverted",
|
|
71
|
+
"link": "focus-visible:before:ring-inverted"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"highlightColor": {
|
|
75
|
+
"primary": "",
|
|
76
|
+
"secondary": "",
|
|
77
|
+
"success": "",
|
|
78
|
+
"info": "",
|
|
79
|
+
"warning": "",
|
|
80
|
+
"error": ""
|
|
81
|
+
},
|
|
82
|
+
"variant": {
|
|
83
|
+
"pill": "",
|
|
84
|
+
"link": ""
|
|
85
|
+
},
|
|
86
|
+
"active": {
|
|
87
|
+
"true": {
|
|
88
|
+
"link": "font-medium"
|
|
89
|
+
},
|
|
90
|
+
"false": {
|
|
91
|
+
"link": "text-muted",
|
|
92
|
+
"linkLeadingIcon": "text-dimmed"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"disabled": {
|
|
96
|
+
"true": {
|
|
97
|
+
"link": "cursor-not-allowed opacity-75"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"highlight": {
|
|
101
|
+
"true": {}
|
|
102
|
+
},
|
|
103
|
+
"level": {
|
|
104
|
+
"true": {
|
|
105
|
+
"item": "ps-1.5 -ms-px",
|
|
106
|
+
"itemWithChildren": "ps-1.5 -ms-px"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"compoundVariants": [
|
|
111
|
+
{
|
|
112
|
+
"highlight": true,
|
|
113
|
+
"level": true,
|
|
114
|
+
"class": {
|
|
115
|
+
"link": [
|
|
116
|
+
"after:absolute after:-left-1.5 after:inset-y-0.5 after:block after:w-px after:rounded-full",
|
|
117
|
+
"after:transition-colors"
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"disabled": false,
|
|
123
|
+
"active": false,
|
|
124
|
+
"variant": "pill" as typeof variant[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"link": [
|
|
127
|
+
"hover:text-highlighted data-[state=open]:text-highlighted",
|
|
128
|
+
"transition-colors",
|
|
129
|
+
"hover:before:bg-elevated/50"
|
|
130
|
+
],
|
|
131
|
+
"linkLeadingIcon": [
|
|
132
|
+
"group-hover:text-default group-data-[state=open]:text-default",
|
|
133
|
+
"transition-colors"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"disabled": false,
|
|
139
|
+
"active": false,
|
|
140
|
+
"variant": "link" as typeof variant[number],
|
|
141
|
+
"class": {
|
|
142
|
+
"link": [
|
|
143
|
+
"hover:text-highlighted data-[state=open]:text-highlighted",
|
|
144
|
+
"transition-colors"
|
|
145
|
+
],
|
|
146
|
+
"linkLeadingIcon": [
|
|
147
|
+
"group-hover:text-default group-data-[state=open]:text-default",
|
|
148
|
+
"transition-colors"
|
|
149
|
+
]
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"color": "primary" as typeof color[number],
|
|
154
|
+
"variant": "pill" as typeof variant[number],
|
|
155
|
+
"active": true,
|
|
156
|
+
"class": {
|
|
157
|
+
"link": "text-primary",
|
|
158
|
+
"linkLeadingIcon": "text-primary group-data-[state=open]:text-primary"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"color": "primary" as typeof color[number],
|
|
163
|
+
"variant": "link" as typeof variant[number],
|
|
164
|
+
"active": true,
|
|
165
|
+
"class": {
|
|
166
|
+
"link": "text-primary",
|
|
167
|
+
"linkLeadingIcon": "text-primary group-data-[state=open]:text-primary"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
172
|
+
"highlight": true,
|
|
173
|
+
"level": true,
|
|
174
|
+
"active": true,
|
|
175
|
+
"class": {
|
|
176
|
+
"link": "after:bg-primary"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"color": "secondary" as typeof color[number],
|
|
181
|
+
"variant": "pill" as typeof variant[number],
|
|
182
|
+
"active": true,
|
|
183
|
+
"class": {
|
|
184
|
+
"link": "text-secondary",
|
|
185
|
+
"linkLeadingIcon": "text-secondary group-data-[state=open]:text-secondary"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"color": "secondary" as typeof color[number],
|
|
190
|
+
"variant": "link" as typeof variant[number],
|
|
191
|
+
"active": true,
|
|
192
|
+
"class": {
|
|
193
|
+
"link": "text-secondary",
|
|
194
|
+
"linkLeadingIcon": "text-secondary group-data-[state=open]:text-secondary"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"highlightColor": "secondary" as typeof highlightColor[number],
|
|
199
|
+
"highlight": true,
|
|
200
|
+
"level": true,
|
|
201
|
+
"active": true,
|
|
202
|
+
"class": {
|
|
203
|
+
"link": "after:bg-secondary"
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"color": "success" as typeof color[number],
|
|
208
|
+
"variant": "pill" as typeof variant[number],
|
|
209
|
+
"active": true,
|
|
210
|
+
"class": {
|
|
211
|
+
"link": "text-success",
|
|
212
|
+
"linkLeadingIcon": "text-success group-data-[state=open]:text-success"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"color": "success" as typeof color[number],
|
|
217
|
+
"variant": "link" as typeof variant[number],
|
|
218
|
+
"active": true,
|
|
219
|
+
"class": {
|
|
220
|
+
"link": "text-success",
|
|
221
|
+
"linkLeadingIcon": "text-success group-data-[state=open]:text-success"
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"highlightColor": "success" as typeof highlightColor[number],
|
|
226
|
+
"highlight": true,
|
|
227
|
+
"level": true,
|
|
228
|
+
"active": true,
|
|
229
|
+
"class": {
|
|
230
|
+
"link": "after:bg-success"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"color": "info" as typeof color[number],
|
|
235
|
+
"variant": "pill" as typeof variant[number],
|
|
236
|
+
"active": true,
|
|
237
|
+
"class": {
|
|
238
|
+
"link": "text-info",
|
|
239
|
+
"linkLeadingIcon": "text-info group-data-[state=open]:text-info"
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"color": "info" as typeof color[number],
|
|
244
|
+
"variant": "link" as typeof variant[number],
|
|
245
|
+
"active": true,
|
|
246
|
+
"class": {
|
|
247
|
+
"link": "text-info",
|
|
248
|
+
"linkLeadingIcon": "text-info group-data-[state=open]:text-info"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"highlightColor": "info" as typeof highlightColor[number],
|
|
253
|
+
"highlight": true,
|
|
254
|
+
"level": true,
|
|
255
|
+
"active": true,
|
|
256
|
+
"class": {
|
|
257
|
+
"link": "after:bg-info"
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"color": "warning" as typeof color[number],
|
|
262
|
+
"variant": "pill" as typeof variant[number],
|
|
263
|
+
"active": true,
|
|
264
|
+
"class": {
|
|
265
|
+
"link": "text-warning",
|
|
266
|
+
"linkLeadingIcon": "text-warning group-data-[state=open]:text-warning"
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"color": "warning" as typeof color[number],
|
|
271
|
+
"variant": "link" as typeof variant[number],
|
|
272
|
+
"active": true,
|
|
273
|
+
"class": {
|
|
274
|
+
"link": "text-warning",
|
|
275
|
+
"linkLeadingIcon": "text-warning group-data-[state=open]:text-warning"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"highlightColor": "warning" as typeof highlightColor[number],
|
|
280
|
+
"highlight": true,
|
|
281
|
+
"level": true,
|
|
282
|
+
"active": true,
|
|
283
|
+
"class": {
|
|
284
|
+
"link": "after:bg-warning"
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"color": "error" as typeof color[number],
|
|
289
|
+
"variant": "pill" as typeof variant[number],
|
|
290
|
+
"active": true,
|
|
291
|
+
"class": {
|
|
292
|
+
"link": "text-error",
|
|
293
|
+
"linkLeadingIcon": "text-error group-data-[state=open]:text-error"
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"color": "error" as typeof color[number],
|
|
298
|
+
"variant": "link" as typeof variant[number],
|
|
299
|
+
"active": true,
|
|
300
|
+
"class": {
|
|
301
|
+
"link": "text-error",
|
|
302
|
+
"linkLeadingIcon": "text-error group-data-[state=open]:text-error"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"highlightColor": "error" as typeof highlightColor[number],
|
|
307
|
+
"highlight": true,
|
|
308
|
+
"level": true,
|
|
309
|
+
"active": true,
|
|
310
|
+
"class": {
|
|
311
|
+
"link": "after:bg-error"
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"variant": "pill" as typeof variant[number],
|
|
316
|
+
"active": true,
|
|
317
|
+
"highlight": false,
|
|
318
|
+
"class": {
|
|
319
|
+
"link": "before:bg-elevated"
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"variant": "pill" as typeof variant[number],
|
|
324
|
+
"active": true,
|
|
325
|
+
"highlight": true,
|
|
326
|
+
"class": {
|
|
327
|
+
"link": [
|
|
328
|
+
"hover:before:bg-elevated/50",
|
|
329
|
+
"before:transition-colors"
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"defaultVariants": {
|
|
335
|
+
"color": "primary" as typeof color[number],
|
|
336
|
+
"highlightColor": "primary" as typeof highlightColor[number],
|
|
337
|
+
"variant": "pill" as typeof variant[number]
|
|
338
|
+
}
|
|
339
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const direction = [
|
|
2
|
+
"left",
|
|
3
|
+
"right"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
"slots": {
|
|
8
|
+
"root": "grid grid-cols-1 sm:grid-cols-2 gap-8",
|
|
9
|
+
"link": [
|
|
10
|
+
"group block px-6 py-8 rounded-lg border border-default hover:bg-elevated/50 focus-visible:outline-primary",
|
|
11
|
+
"transition-colors"
|
|
12
|
+
],
|
|
13
|
+
"linkLeading": [
|
|
14
|
+
"inline-flex items-center rounded-full p-1.5 bg-elevated group-hover:bg-primary/10 ring ring-accented mb-4 group-hover:ring-primary/50",
|
|
15
|
+
"transition"
|
|
16
|
+
],
|
|
17
|
+
"linkLeadingIcon": [
|
|
18
|
+
"size-5 shrink-0 text-highlighted group-hover:text-primary",
|
|
19
|
+
"transition-[color,translate]"
|
|
20
|
+
],
|
|
21
|
+
"linkTitle": "font-medium text-[15px] text-highlighted mb-1 truncate",
|
|
22
|
+
"linkDescription": "text-sm text-muted line-clamp-2"
|
|
23
|
+
},
|
|
24
|
+
"variants": {
|
|
25
|
+
"direction": {
|
|
26
|
+
"left": {
|
|
27
|
+
"linkLeadingIcon": [
|
|
28
|
+
"group-active:-translate-x-0.5"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"right": {
|
|
32
|
+
"link": "text-right",
|
|
33
|
+
"linkLeadingIcon": [
|
|
34
|
+
"group-active:translate-x-0.5"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const highlightColor = [
|
|
12
|
+
"primary",
|
|
13
|
+
"secondary",
|
|
14
|
+
"success",
|
|
15
|
+
"info",
|
|
16
|
+
"warning",
|
|
17
|
+
"error",
|
|
18
|
+
"neutral"
|
|
19
|
+
] as const
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
"slots": {
|
|
23
|
+
"root": "sticky top-(--ui-header-height) z-10 bg-default/75 lg:bg-[initial] backdrop-blur -mx-4 px-4 sm:px-6 sm:-mx-6 overflow-y-auto max-h-[calc(100vh-var(--ui-header-height))]",
|
|
24
|
+
"container": "pt-4 sm:pt-6 pb-2.5 sm:pb-4.5 lg:py-8 border-b border-dashed border-default lg:border-0 flex flex-col",
|
|
25
|
+
"top": "",
|
|
26
|
+
"bottom": "mt-6 hidden lg:flex lg:flex-col gap-6",
|
|
27
|
+
"trigger": "group text-sm font-semibold flex-1 flex items-center gap-1.5 py-1.5 -mt-1.5 focus-visible:outline-primary",
|
|
28
|
+
"title": "truncate",
|
|
29
|
+
"trailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
30
|
+
"trailingIcon": "size-5 transform transition-transform duration-200 shrink-0 group-data-[state=open]:rotate-180 lg:hidden",
|
|
31
|
+
"content": "data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden focus:outline-none",
|
|
32
|
+
"list": "min-w-0",
|
|
33
|
+
"listWithChildren": "ms-3",
|
|
34
|
+
"item": "min-w-0",
|
|
35
|
+
"itemWithChildren": "",
|
|
36
|
+
"link": "group relative text-sm flex items-center focus-visible:outline-primary py-1",
|
|
37
|
+
"linkText": "truncate",
|
|
38
|
+
"indicator": "absolute ms-2.5 transition-[translate,height] duration-200 h-(--indicator-size) translate-y-(--indicator-position) w-px rounded-full"
|
|
39
|
+
},
|
|
40
|
+
"variants": {
|
|
41
|
+
"color": {
|
|
42
|
+
"primary": "",
|
|
43
|
+
"secondary": "",
|
|
44
|
+
"success": "",
|
|
45
|
+
"info": "",
|
|
46
|
+
"warning": "",
|
|
47
|
+
"error": "",
|
|
48
|
+
"neutral": ""
|
|
49
|
+
},
|
|
50
|
+
"highlightColor": {
|
|
51
|
+
"primary": {
|
|
52
|
+
"indicator": "bg-primary"
|
|
53
|
+
},
|
|
54
|
+
"secondary": {
|
|
55
|
+
"indicator": "bg-secondary"
|
|
56
|
+
},
|
|
57
|
+
"success": {
|
|
58
|
+
"indicator": "bg-success"
|
|
59
|
+
},
|
|
60
|
+
"info": {
|
|
61
|
+
"indicator": "bg-info"
|
|
62
|
+
},
|
|
63
|
+
"warning": {
|
|
64
|
+
"indicator": "bg-warning"
|
|
65
|
+
},
|
|
66
|
+
"error": {
|
|
67
|
+
"indicator": "bg-error"
|
|
68
|
+
},
|
|
69
|
+
"neutral": {
|
|
70
|
+
"indicator": "bg-inverted"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"active": {
|
|
74
|
+
"false": {
|
|
75
|
+
"link": [
|
|
76
|
+
"text-muted hover:text-default",
|
|
77
|
+
"transition-colors"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"highlight": {
|
|
82
|
+
"true": {
|
|
83
|
+
"list": "ms-2.5 ps-4 border-s border-default",
|
|
84
|
+
"item": "-ms-px"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"compoundVariants": [
|
|
89
|
+
{
|
|
90
|
+
"color": "primary" as typeof color[number],
|
|
91
|
+
"active": true,
|
|
92
|
+
"class": {
|
|
93
|
+
"link": "text-primary",
|
|
94
|
+
"linkText": "text-primary"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"color": "secondary" as typeof color[number],
|
|
99
|
+
"active": true,
|
|
100
|
+
"class": {
|
|
101
|
+
"link": "text-secondary",
|
|
102
|
+
"linkText": "text-secondary"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"color": "success" as typeof color[number],
|
|
107
|
+
"active": true,
|
|
108
|
+
"class": {
|
|
109
|
+
"link": "text-success",
|
|
110
|
+
"linkText": "text-success"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"color": "info" as typeof color[number],
|
|
115
|
+
"active": true,
|
|
116
|
+
"class": {
|
|
117
|
+
"link": "text-info",
|
|
118
|
+
"linkText": "text-info"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"color": "warning" as typeof color[number],
|
|
123
|
+
"active": true,
|
|
124
|
+
"class": {
|
|
125
|
+
"link": "text-warning",
|
|
126
|
+
"linkText": "text-warning"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"color": "error" as typeof color[number],
|
|
131
|
+
"active": true,
|
|
132
|
+
"class": {
|
|
133
|
+
"link": "text-error",
|
|
134
|
+
"linkText": "text-error"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"color": "neutral" as typeof color[number],
|
|
139
|
+
"active": true,
|
|
140
|
+
"class": {
|
|
141
|
+
"link": "text-highlighted",
|
|
142
|
+
"linkLeadingIcon": "text-highlighted"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"defaultVariants": {
|
|
147
|
+
"color": "primary" as typeof color[number],
|
|
148
|
+
"highlightColor": "primary" as typeof highlightColor[number]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as contentNavigation } from './content-navigation'
|
|
2
|
+
export { default as contentSearch } from './content-search'
|
|
3
|
+
export { default as contentSearchButton } from './content-search-button'
|
|
4
|
+
export { default as contentSurround } from './content-surround'
|
|
5
|
+
export { default as contentToc } from './content-toc'
|
package/.nuxt/ui/content-toc.ts
CHANGED
|
@@ -91,7 +91,7 @@ export default {
|
|
|
91
91
|
"active": true,
|
|
92
92
|
"class": {
|
|
93
93
|
"link": "text-primary",
|
|
94
|
-
"
|
|
94
|
+
"linkText": "text-primary"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
"active": true,
|
|
100
100
|
"class": {
|
|
101
101
|
"link": "text-secondary",
|
|
102
|
-
"
|
|
102
|
+
"linkText": "text-secondary"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
{
|
|
@@ -107,7 +107,7 @@ export default {
|
|
|
107
107
|
"active": true,
|
|
108
108
|
"class": {
|
|
109
109
|
"link": "text-success",
|
|
110
|
-
"
|
|
110
|
+
"linkText": "text-success"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
{
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
115
115
|
"active": true,
|
|
116
116
|
"class": {
|
|
117
117
|
"link": "text-info",
|
|
118
|
-
"
|
|
118
|
+
"linkText": "text-info"
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
{
|
|
@@ -123,7 +123,7 @@ export default {
|
|
|
123
123
|
"active": true,
|
|
124
124
|
"class": {
|
|
125
125
|
"link": "text-warning",
|
|
126
|
-
"
|
|
126
|
+
"linkText": "text-warning"
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -131,7 +131,7 @@ export default {
|
|
|
131
131
|
"active": true,
|
|
132
132
|
"class": {
|
|
133
133
|
"link": "text-error",
|
|
134
|
-
"
|
|
134
|
+
"linkText": "text-error"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
{
|