@falcondev-oss/nuxt-layers-base 0.1.0
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/app.config.mjs +317 -0
- package/.nuxt/components.d.ts +332 -0
- package/.nuxt/imports.d.ts +61 -0
- package/.nuxt/manifest/meta/24fb5e89-93fb-44cb-bbff-2a13f165c1e8.json +1 -0
- package/.nuxt/nuxt-icon-client-bundle.mjs +1 -0
- package/.nuxt/nuxt-icon-server-bundle.mjs +14 -0
- package/.nuxt/nuxt.d.ts +24 -0
- package/.nuxt/nuxt.node.d.ts +14 -0
- package/.nuxt/nuxt.shared.d.ts +5 -0
- package/.nuxt/schema/nuxt.schema.d.ts +210 -0
- package/.nuxt/schema/nuxt.schema.json +263 -0
- package/.nuxt/tsconfig.app.json +217 -0
- package/.nuxt/tsconfig.json +219 -0
- package/.nuxt/tsconfig.node.json +114 -0
- package/.nuxt/tsconfig.server.json +140 -0
- package/.nuxt/tsconfig.shared.json +139 -0
- package/.nuxt/types/app.config.d.ts +331 -0
- package/.nuxt/types/build.d.ts +24 -0
- package/.nuxt/types/builder-env.d.ts +1 -0
- package/.nuxt/types/components.d.ts +337 -0
- package/.nuxt/types/imports.d.ts +906 -0
- package/.nuxt/types/layouts.d.ts +7 -0
- package/.nuxt/types/middleware.d.ts +7 -0
- package/.nuxt/types/modules.d.ts +159 -0
- package/.nuxt/types/nitro-config.d.ts +14 -0
- package/.nuxt/types/nitro-imports.d.ts +141 -0
- package/.nuxt/types/nitro-middleware.d.ts +11 -0
- package/.nuxt/types/nitro-nuxt.d.ts +61 -0
- package/.nuxt/types/nitro-routes.d.ts +17 -0
- package/.nuxt/types/nitro.d.ts +3 -0
- package/.nuxt/types/plugins.d.ts +35 -0
- package/.nuxt/types/runtime-config.d.ts +36 -0
- package/.nuxt/types/ui.d.ts +36 -0
- package/.nuxt/types/vue-shim.d.ts +0 -0
- package/.nuxt/ui/accordion.ts +20 -0
- package/.nuxt/ui/alert.ts +264 -0
- package/.nuxt/ui/auth-form.ts +20 -0
- package/.nuxt/ui/avatar-group.ts +52 -0
- package/.nuxt/ui/avatar.ts +54 -0
- package/.nuxt/ui/badge.ts +263 -0
- package/.nuxt/ui/banner.ts +108 -0
- package/.nuxt/ui/blog-post.ts +143 -0
- package/.nuxt/ui/blog-posts.ts +9 -0
- package/.nuxt/ui/breadcrumb.ts +45 -0
- package/.nuxt/ui/button.ts +378 -0
- package/.nuxt/ui/calendar.ts +315 -0
- package/.nuxt/ui/card.ts +34 -0
- package/.nuxt/ui/carousel.ts +38 -0
- package/.nuxt/ui/changelog-version.ts +45 -0
- package/.nuxt/ui/changelog-versions.ts +8 -0
- package/.nuxt/ui/chat-message.ts +136 -0
- package/.nuxt/ui/chat-messages.ts +14 -0
- package/.nuxt/ui/chat-palette.ts +8 -0
- package/.nuxt/ui/chat-prompt-submit.ts +5 -0
- package/.nuxt/ui/chat-prompt.ts +35 -0
- package/.nuxt/ui/checkbox-group.ts +207 -0
- package/.nuxt/ui/checkbox.ts +237 -0
- package/.nuxt/ui/chip.ts +96 -0
- package/.nuxt/ui/collapsible.ts +6 -0
- package/.nuxt/ui/color-picker.ts +47 -0
- package/.nuxt/ui/command-palette.ts +62 -0
- package/.nuxt/ui/container.ts +3 -0
- package/.nuxt/ui/context-menu.ts +219 -0
- package/.nuxt/ui/dashboard-group.ts +3 -0
- package/.nuxt/ui/dashboard-navbar.ts +21 -0
- package/.nuxt/ui/dashboard-panel.ts +17 -0
- package/.nuxt/ui/dashboard-resize-handle.ts +3 -0
- package/.nuxt/ui/dashboard-search-button.ts +15 -0
- package/.nuxt/ui/dashboard-search.ts +13 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +9 -0
- package/.nuxt/ui/dashboard-sidebar.ts +37 -0
- package/.nuxt/ui/dashboard-toolbar.ts +7 -0
- package/.nuxt/ui/drawer.ts +149 -0
- package/.nuxt/ui/dropdown-menu.ts +220 -0
- package/.nuxt/ui/editor-drag-handle.ts +6 -0
- package/.nuxt/ui/editor-emoji-menu.ts +35 -0
- package/.nuxt/ui/editor-mention-menu.ts +35 -0
- package/.nuxt/ui/editor-suggestion-menu.ts +35 -0
- package/.nuxt/ui/editor-toolbar.ts +21 -0
- package/.nuxt/ui/editor.ts +35 -0
- package/.nuxt/ui/empty.ts +83 -0
- package/.nuxt/ui/error.ts +9 -0
- package/.nuxt/ui/field-group.ts +16 -0
- package/.nuxt/ui/file-upload.ts +290 -0
- package/.nuxt/ui/footer-columns.ts +28 -0
- package/.nuxt/ui/footer.ts +11 -0
- package/.nuxt/ui/form-field.ts +62 -0
- package/.nuxt/ui/form.ts +3 -0
- package/.nuxt/ui/header.ts +25 -0
- package/.nuxt/ui/index.ts +109 -0
- package/.nuxt/ui/input-date.ts +337 -0
- package/.nuxt/ui/input-menu.ts +460 -0
- package/.nuxt/ui/input-number.ts +256 -0
- package/.nuxt/ui/input-tags.ts +310 -0
- package/.nuxt/ui/input-time.ts +336 -0
- package/.nuxt/ui/input.ts +289 -0
- package/.nuxt/ui/kbd.ts +195 -0
- package/.nuxt/ui/link.ts +22 -0
- package/.nuxt/ui/main.ts +3 -0
- package/.nuxt/ui/marquee.ts +66 -0
- package/.nuxt/ui/modal.ts +60 -0
- package/.nuxt/ui/navigation-menu.ts +512 -0
- package/.nuxt/ui/page-anchors.ts +30 -0
- package/.nuxt/ui/page-aside.ts +10 -0
- package/.nuxt/ui/page-body.ts +3 -0
- package/.nuxt/ui/page-card.ts +274 -0
- package/.nuxt/ui/page-columns.ts +3 -0
- package/.nuxt/ui/page-cta.ts +70 -0
- package/.nuxt/ui/page-feature.ts +34 -0
- package/.nuxt/ui/page-grid.ts +3 -0
- package/.nuxt/ui/page-header.ts +18 -0
- package/.nuxt/ui/page-hero.ts +44 -0
- package/.nuxt/ui/page-links.ts +25 -0
- package/.nuxt/ui/page-list.ts +8 -0
- package/.nuxt/ui/page-logos.ts +15 -0
- package/.nuxt/ui/page-section.ts +84 -0
- package/.nuxt/ui/page.ts +32 -0
- package/.nuxt/ui/pagination.ts +13 -0
- package/.nuxt/ui/pin-input.ts +171 -0
- package/.nuxt/ui/popover.ts +6 -0
- package/.nuxt/ui/pricing-plan.ts +101 -0
- package/.nuxt/ui/pricing-plans.ts +22 -0
- package/.nuxt/ui/pricing-table.ts +51 -0
- package/.nuxt/ui/progress.ts +297 -0
- package/.nuxt/ui/radio-group.ts +352 -0
- package/.nuxt/ui/scroll-area.ts +21 -0
- package/.nuxt/ui/select-menu.ts +361 -0
- package/.nuxt/ui/select.ts +348 -0
- package/.nuxt/ui/separator.ts +172 -0
- package/.nuxt/ui/skeleton.ts +3 -0
- package/.nuxt/ui/slideover.ts +132 -0
- package/.nuxt/ui/slider.ts +171 -0
- package/.nuxt/ui/stepper.ts +202 -0
- package/.nuxt/ui/switch.ts +132 -0
- package/.nuxt/ui/table.ts +162 -0
- package/.nuxt/ui/tabs.ts +258 -0
- package/.nuxt/ui/textarea.ts +294 -0
- package/.nuxt/ui/timeline.ts +321 -0
- package/.nuxt/ui/toast.ts +74 -0
- package/.nuxt/ui/toaster.ts +91 -0
- package/.nuxt/ui/tooltip.ts +9 -0
- package/.nuxt/ui/tree.ts +168 -0
- package/.nuxt/ui/user.ts +101 -0
- package/.nuxt/ui-image-component.ts +1 -0
- package/.nuxt/ui.css +154 -0
- package/app/app.config.ts +7 -0
- package/app/app.vue +3 -0
- package/app/assets/css/base.css +28 -0
- package/app/components/Var.vue +13 -0
- package/app/components/layout/LayoutDashboard.vue +102 -0
- package/app/components/overlay/modal/ModalActions.vue +25 -0
- package/app/components/overlay/modal/ModalConfirm.vue +25 -0
- package/app/components/overlay/modal/ModalRadioGroup.vue +37 -0
- package/app/components/u/UActions.vue +23 -0
- package/app/components/u/UCustomApp.vue +20 -0
- package/app/components/u/UField.vue +55 -0
- package/app/components/u/UImageWithFallback.vue +35 -0
- package/app/components/u/UInputDatePicker.vue +40 -0
- package/app/components/u/UInputDurationMinutes.vue +88 -0
- package/app/components/u/UTableCard.vue +16 -0
- package/app/composables/useConfirm.ts +16 -0
- package/app/composables/usePreventPageLeave.ts +31 -0
- package/app/composables/useRouteParamString.ts +22 -0
- package/app/composables/useTableColumns.tsx +68 -0
- package/app/composables/useToast.ts +40 -0
- package/app/composables/useTrpc.ts +3 -0
- package/app/error.vue +15 -0
- package/app/pages/index.vue +3 -0
- package/app/utils/form-field-translators.ts +41 -0
- package/app/utils/plugins.ts +95 -0
- package/app/utils/reactivity.ts +17 -0
- package/nuxt.config.ts +85 -0
- package/package.json +46 -0
- package/pnpm-workspace.yaml +5 -0
- package/tsconfig.json +17 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
const orientation = [
|
|
2
|
+
"horizontal",
|
|
3
|
+
"vertical"
|
|
4
|
+
] as const
|
|
5
|
+
|
|
6
|
+
const color = [
|
|
7
|
+
"primary",
|
|
8
|
+
"secondary",
|
|
9
|
+
"success",
|
|
10
|
+
"info",
|
|
11
|
+
"warning",
|
|
12
|
+
"error",
|
|
13
|
+
"neutral"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const variant = [
|
|
17
|
+
"list",
|
|
18
|
+
"card",
|
|
19
|
+
"table"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const size = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative",
|
|
33
|
+
"fieldset": "flex gap-x-2",
|
|
34
|
+
"legend": "mb-1 block font-medium text-default",
|
|
35
|
+
"item": ""
|
|
36
|
+
},
|
|
37
|
+
"variants": {
|
|
38
|
+
"orientation": {
|
|
39
|
+
"horizontal": {
|
|
40
|
+
"fieldset": "flex-row"
|
|
41
|
+
},
|
|
42
|
+
"vertical": {
|
|
43
|
+
"fieldset": "flex-col"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"color": {
|
|
47
|
+
"primary": {},
|
|
48
|
+
"secondary": {},
|
|
49
|
+
"success": {},
|
|
50
|
+
"info": {},
|
|
51
|
+
"warning": {},
|
|
52
|
+
"error": {},
|
|
53
|
+
"neutral": {}
|
|
54
|
+
},
|
|
55
|
+
"variant": {
|
|
56
|
+
"list": {},
|
|
57
|
+
"card": {},
|
|
58
|
+
"table": {
|
|
59
|
+
"item": "border border-muted"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"size": {
|
|
63
|
+
"xs": {
|
|
64
|
+
"fieldset": "gap-y-0.5",
|
|
65
|
+
"legend": "text-xs"
|
|
66
|
+
},
|
|
67
|
+
"sm": {
|
|
68
|
+
"fieldset": "gap-y-0.5",
|
|
69
|
+
"legend": "text-xs"
|
|
70
|
+
},
|
|
71
|
+
"md": {
|
|
72
|
+
"fieldset": "gap-y-1",
|
|
73
|
+
"legend": "text-sm"
|
|
74
|
+
},
|
|
75
|
+
"lg": {
|
|
76
|
+
"fieldset": "gap-y-1",
|
|
77
|
+
"legend": "text-sm"
|
|
78
|
+
},
|
|
79
|
+
"xl": {
|
|
80
|
+
"fieldset": "gap-y-1.5",
|
|
81
|
+
"legend": "text-base"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"required": {
|
|
85
|
+
"true": {
|
|
86
|
+
"legend": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"disabled": {
|
|
90
|
+
"true": {}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"compoundVariants": [
|
|
94
|
+
{
|
|
95
|
+
"size": "xs" as typeof size[number],
|
|
96
|
+
"variant": "table" as typeof variant[number],
|
|
97
|
+
"class": {
|
|
98
|
+
"item": "p-2.5"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"size": "sm" as typeof size[number],
|
|
103
|
+
"variant": "table" as typeof variant[number],
|
|
104
|
+
"class": {
|
|
105
|
+
"item": "p-3"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"size": "md" as typeof size[number],
|
|
110
|
+
"variant": "table" as typeof variant[number],
|
|
111
|
+
"class": {
|
|
112
|
+
"item": "p-3.5"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"size": "lg" as typeof size[number],
|
|
117
|
+
"variant": "table" as typeof variant[number],
|
|
118
|
+
"class": {
|
|
119
|
+
"item": "p-4"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"size": "xl" as typeof size[number],
|
|
124
|
+
"variant": "table" as typeof variant[number],
|
|
125
|
+
"class": {
|
|
126
|
+
"item": "p-4.5"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"orientation": "horizontal" as typeof orientation[number],
|
|
131
|
+
"variant": "table" as typeof variant[number],
|
|
132
|
+
"class": {
|
|
133
|
+
"item": "first-of-type:rounded-s-lg last-of-type:rounded-e-lg",
|
|
134
|
+
"fieldset": "gap-0 -space-x-px"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"orientation": "vertical" as typeof orientation[number],
|
|
139
|
+
"variant": "table" as typeof variant[number],
|
|
140
|
+
"class": {
|
|
141
|
+
"item": "first-of-type:rounded-t-lg last-of-type:rounded-b-lg",
|
|
142
|
+
"fieldset": "gap-0 -space-y-px"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"color": "primary" as typeof color[number],
|
|
147
|
+
"variant": "table" as typeof variant[number],
|
|
148
|
+
"class": {
|
|
149
|
+
"item": "has-data-[state=checked]:bg-primary/10 has-data-[state=checked]:border-primary/50 has-data-[state=checked]:z-[1]"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"color": "secondary" as typeof color[number],
|
|
154
|
+
"variant": "table" as typeof variant[number],
|
|
155
|
+
"class": {
|
|
156
|
+
"item": "has-data-[state=checked]:bg-secondary/10 has-data-[state=checked]:border-secondary/50 has-data-[state=checked]:z-[1]"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"color": "success" as typeof color[number],
|
|
161
|
+
"variant": "table" as typeof variant[number],
|
|
162
|
+
"class": {
|
|
163
|
+
"item": "has-data-[state=checked]:bg-success/10 has-data-[state=checked]:border-success/50 has-data-[state=checked]:z-[1]"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"color": "info" as typeof color[number],
|
|
168
|
+
"variant": "table" as typeof variant[number],
|
|
169
|
+
"class": {
|
|
170
|
+
"item": "has-data-[state=checked]:bg-info/10 has-data-[state=checked]:border-info/50 has-data-[state=checked]:z-[1]"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"color": "warning" as typeof color[number],
|
|
175
|
+
"variant": "table" as typeof variant[number],
|
|
176
|
+
"class": {
|
|
177
|
+
"item": "has-data-[state=checked]:bg-warning/10 has-data-[state=checked]:border-warning/50 has-data-[state=checked]:z-[1]"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"color": "error" as typeof color[number],
|
|
182
|
+
"variant": "table" as typeof variant[number],
|
|
183
|
+
"class": {
|
|
184
|
+
"item": "has-data-[state=checked]:bg-error/10 has-data-[state=checked]:border-error/50 has-data-[state=checked]:z-[1]"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"color": "neutral" as typeof color[number],
|
|
189
|
+
"variant": "table" as typeof variant[number],
|
|
190
|
+
"class": {
|
|
191
|
+
"item": "has-data-[state=checked]:bg-elevated has-data-[state=checked]:border-inverted/50 has-data-[state=checked]:z-[1]"
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"variant": "table" as typeof variant[number],
|
|
196
|
+
"disabled": true,
|
|
197
|
+
"class": {
|
|
198
|
+
"item": "cursor-not-allowed"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"defaultVariants": {
|
|
203
|
+
"size": "md" as typeof size[number],
|
|
204
|
+
"variant": "list" as typeof variant[number],
|
|
205
|
+
"color": "primary" as typeof color[number]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,237 @@
|
|
|
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
|
+
"list",
|
|
13
|
+
"card"
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
const indicator = [
|
|
17
|
+
"start",
|
|
18
|
+
"end",
|
|
19
|
+
"hidden"
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
const size = [
|
|
23
|
+
"xs",
|
|
24
|
+
"sm",
|
|
25
|
+
"md",
|
|
26
|
+
"lg",
|
|
27
|
+
"xl"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative flex items-start",
|
|
33
|
+
"container": "flex items-center",
|
|
34
|
+
"base": "rounded-sm ring ring-inset ring-accented overflow-hidden focus-visible:outline-2 focus-visible:outline-offset-2",
|
|
35
|
+
"indicator": "flex items-center justify-center size-full text-inverted" as typeof indicator[number],
|
|
36
|
+
"icon": "shrink-0 size-full",
|
|
37
|
+
"wrapper": "w-full",
|
|
38
|
+
"label": "block font-medium text-default",
|
|
39
|
+
"description": "text-muted"
|
|
40
|
+
},
|
|
41
|
+
"variants": {
|
|
42
|
+
"color": {
|
|
43
|
+
"primary": {
|
|
44
|
+
"base": "focus-visible:outline-primary",
|
|
45
|
+
"indicator": "bg-primary" as typeof indicator[number]
|
|
46
|
+
},
|
|
47
|
+
"secondary": {
|
|
48
|
+
"base": "focus-visible:outline-secondary",
|
|
49
|
+
"indicator": "bg-secondary" as typeof indicator[number]
|
|
50
|
+
},
|
|
51
|
+
"success": {
|
|
52
|
+
"base": "focus-visible:outline-success",
|
|
53
|
+
"indicator": "bg-success" as typeof indicator[number]
|
|
54
|
+
},
|
|
55
|
+
"info": {
|
|
56
|
+
"base": "focus-visible:outline-info",
|
|
57
|
+
"indicator": "bg-info" as typeof indicator[number]
|
|
58
|
+
},
|
|
59
|
+
"warning": {
|
|
60
|
+
"base": "focus-visible:outline-warning",
|
|
61
|
+
"indicator": "bg-warning" as typeof indicator[number]
|
|
62
|
+
},
|
|
63
|
+
"error": {
|
|
64
|
+
"base": "focus-visible:outline-error",
|
|
65
|
+
"indicator": "bg-error" as typeof indicator[number]
|
|
66
|
+
},
|
|
67
|
+
"neutral": {
|
|
68
|
+
"base": "focus-visible:outline-inverted",
|
|
69
|
+
"indicator": "bg-inverted" as typeof indicator[number]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"variant": {
|
|
73
|
+
"list": {
|
|
74
|
+
"root": ""
|
|
75
|
+
},
|
|
76
|
+
"card": {
|
|
77
|
+
"root": "border border-muted rounded-lg"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"indicator": {
|
|
81
|
+
"start": {
|
|
82
|
+
"root": "flex-row",
|
|
83
|
+
"wrapper": "ms-2"
|
|
84
|
+
},
|
|
85
|
+
"end": {
|
|
86
|
+
"root": "flex-row-reverse",
|
|
87
|
+
"wrapper": "me-2"
|
|
88
|
+
},
|
|
89
|
+
"hidden": {
|
|
90
|
+
"base": "sr-only",
|
|
91
|
+
"wrapper": "text-center"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"size": {
|
|
95
|
+
"xs": {
|
|
96
|
+
"base": "size-3",
|
|
97
|
+
"container": "h-4",
|
|
98
|
+
"wrapper": "text-xs"
|
|
99
|
+
},
|
|
100
|
+
"sm": {
|
|
101
|
+
"base": "size-3.5",
|
|
102
|
+
"container": "h-4",
|
|
103
|
+
"wrapper": "text-xs"
|
|
104
|
+
},
|
|
105
|
+
"md": {
|
|
106
|
+
"base": "size-4",
|
|
107
|
+
"container": "h-5",
|
|
108
|
+
"wrapper": "text-sm"
|
|
109
|
+
},
|
|
110
|
+
"lg": {
|
|
111
|
+
"base": "size-4.5",
|
|
112
|
+
"container": "h-5",
|
|
113
|
+
"wrapper": "text-sm"
|
|
114
|
+
},
|
|
115
|
+
"xl": {
|
|
116
|
+
"base": "size-5",
|
|
117
|
+
"container": "h-6",
|
|
118
|
+
"wrapper": "text-base"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": {
|
|
122
|
+
"true": {
|
|
123
|
+
"label": "after:content-['*'] after:ms-0.5 after:text-error"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"disabled": {
|
|
127
|
+
"true": {
|
|
128
|
+
"root": "opacity-75",
|
|
129
|
+
"base": "cursor-not-allowed",
|
|
130
|
+
"label": "cursor-not-allowed",
|
|
131
|
+
"description": "cursor-not-allowed"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"checked": {
|
|
135
|
+
"true": ""
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"compoundVariants": [
|
|
139
|
+
{
|
|
140
|
+
"size": "xs" as typeof size[number],
|
|
141
|
+
"variant": "card" as typeof variant[number],
|
|
142
|
+
"class": {
|
|
143
|
+
"root": "p-2.5"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"size": "sm" as typeof size[number],
|
|
148
|
+
"variant": "card" as typeof variant[number],
|
|
149
|
+
"class": {
|
|
150
|
+
"root": "p-3"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"size": "md" as typeof size[number],
|
|
155
|
+
"variant": "card" as typeof variant[number],
|
|
156
|
+
"class": {
|
|
157
|
+
"root": "p-3.5"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"size": "lg" as typeof size[number],
|
|
162
|
+
"variant": "card" as typeof variant[number],
|
|
163
|
+
"class": {
|
|
164
|
+
"root": "p-4"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"size": "xl" as typeof size[number],
|
|
169
|
+
"variant": "card" as typeof variant[number],
|
|
170
|
+
"class": {
|
|
171
|
+
"root": "p-4.5"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"color": "primary" as typeof color[number],
|
|
176
|
+
"variant": "card" as typeof variant[number],
|
|
177
|
+
"class": {
|
|
178
|
+
"root": "has-data-[state=checked]:border-primary"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"color": "secondary" as typeof color[number],
|
|
183
|
+
"variant": "card" as typeof variant[number],
|
|
184
|
+
"class": {
|
|
185
|
+
"root": "has-data-[state=checked]:border-secondary"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"color": "success" as typeof color[number],
|
|
190
|
+
"variant": "card" as typeof variant[number],
|
|
191
|
+
"class": {
|
|
192
|
+
"root": "has-data-[state=checked]:border-success"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"color": "info" as typeof color[number],
|
|
197
|
+
"variant": "card" as typeof variant[number],
|
|
198
|
+
"class": {
|
|
199
|
+
"root": "has-data-[state=checked]:border-info"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"color": "warning" as typeof color[number],
|
|
204
|
+
"variant": "card" as typeof variant[number],
|
|
205
|
+
"class": {
|
|
206
|
+
"root": "has-data-[state=checked]:border-warning"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"color": "error" as typeof color[number],
|
|
211
|
+
"variant": "card" as typeof variant[number],
|
|
212
|
+
"class": {
|
|
213
|
+
"root": "has-data-[state=checked]:border-error"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"color": "neutral" as typeof color[number],
|
|
218
|
+
"variant": "card" as typeof variant[number],
|
|
219
|
+
"class": {
|
|
220
|
+
"root": "has-data-[state=checked]:border-inverted"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"variant": "card" as typeof variant[number],
|
|
225
|
+
"disabled": true,
|
|
226
|
+
"class": {
|
|
227
|
+
"root": "cursor-not-allowed"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"defaultVariants": {
|
|
232
|
+
"size": "md" as typeof size[number],
|
|
233
|
+
"color": "primary" as typeof color[number],
|
|
234
|
+
"variant": "list" as typeof variant[number],
|
|
235
|
+
"indicator": "start" as typeof indicator[number]
|
|
236
|
+
}
|
|
237
|
+
}
|
package/.nuxt/ui/chip.ts
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"primary",
|
|
3
|
+
"secondary",
|
|
4
|
+
"success",
|
|
5
|
+
"info",
|
|
6
|
+
"warning",
|
|
7
|
+
"error",
|
|
8
|
+
"neutral"
|
|
9
|
+
] as const
|
|
10
|
+
|
|
11
|
+
const size = [
|
|
12
|
+
"3xs",
|
|
13
|
+
"2xs",
|
|
14
|
+
"xs",
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg",
|
|
18
|
+
"xl",
|
|
19
|
+
"2xl",
|
|
20
|
+
"3xl"
|
|
21
|
+
] as const
|
|
22
|
+
|
|
23
|
+
const position = [
|
|
24
|
+
"top-right",
|
|
25
|
+
"bottom-right",
|
|
26
|
+
"top-left",
|
|
27
|
+
"bottom-left"
|
|
28
|
+
] as const
|
|
29
|
+
|
|
30
|
+
export default {
|
|
31
|
+
"slots": {
|
|
32
|
+
"root": "relative inline-flex items-center justify-center shrink-0",
|
|
33
|
+
"base": "rounded-full ring ring-bg flex items-center justify-center text-inverted font-medium whitespace-nowrap"
|
|
34
|
+
},
|
|
35
|
+
"variants": {
|
|
36
|
+
"color": {
|
|
37
|
+
"primary": "bg-primary",
|
|
38
|
+
"secondary": "bg-secondary",
|
|
39
|
+
"success": "bg-success",
|
|
40
|
+
"info": "bg-info",
|
|
41
|
+
"warning": "bg-warning",
|
|
42
|
+
"error": "bg-error",
|
|
43
|
+
"neutral": "bg-inverted"
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"3xs": "h-[4px] min-w-[4px] text-[4px]",
|
|
47
|
+
"2xs": "h-[5px] min-w-[5px] text-[5px]",
|
|
48
|
+
"xs": "h-[6px] min-w-[6px] text-[6px]",
|
|
49
|
+
"sm": "h-[7px] min-w-[7px] text-[7px]",
|
|
50
|
+
"md": "h-[8px] min-w-[8px] text-[8px]",
|
|
51
|
+
"lg": "h-[9px] min-w-[9px] text-[9px]",
|
|
52
|
+
"xl": "h-[10px] min-w-[10px] text-[10px]",
|
|
53
|
+
"2xl": "h-[11px] min-w-[11px] text-[11px]",
|
|
54
|
+
"3xl": "h-[12px] min-w-[12px] text-[12px]"
|
|
55
|
+
},
|
|
56
|
+
"position": {
|
|
57
|
+
"top-right": "top-0 right-0",
|
|
58
|
+
"bottom-right": "bottom-0 right-0",
|
|
59
|
+
"top-left": "top-0 left-0",
|
|
60
|
+
"bottom-left": "bottom-0 left-0"
|
|
61
|
+
},
|
|
62
|
+
"inset": {
|
|
63
|
+
"false": ""
|
|
64
|
+
},
|
|
65
|
+
"standalone": {
|
|
66
|
+
"false": "absolute"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"compoundVariants": [
|
|
70
|
+
{
|
|
71
|
+
"position": "top-right" as typeof position[number],
|
|
72
|
+
"inset": false,
|
|
73
|
+
"class": "-translate-y-1/2 translate-x-1/2 transform"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"position": "bottom-right" as typeof position[number],
|
|
77
|
+
"inset": false,
|
|
78
|
+
"class": "translate-y-1/2 translate-x-1/2 transform"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"position": "top-left" as typeof position[number],
|
|
82
|
+
"inset": false,
|
|
83
|
+
"class": "-translate-y-1/2 -translate-x-1/2 transform"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"position": "bottom-left" as typeof position[number],
|
|
87
|
+
"inset": false,
|
|
88
|
+
"class": "translate-y-1/2 -translate-x-1/2 transform"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"defaultVariants": {
|
|
92
|
+
"size": "md" as typeof size[number],
|
|
93
|
+
"color": "primary" as typeof color[number],
|
|
94
|
+
"position": "top-right" as typeof position[number]
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg",
|
|
6
|
+
"xl"
|
|
7
|
+
] as const
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
"slots": {
|
|
11
|
+
"root": "data-[disabled]:opacity-75",
|
|
12
|
+
"picker": "flex gap-4",
|
|
13
|
+
"selector": "rounded-md touch-none",
|
|
14
|
+
"selectorBackground": "w-full h-full relative rounded-md",
|
|
15
|
+
"selectorThumb": "-translate-y-1/2 -translate-x-1/2 absolute size-4 ring-2 ring-white rounded-full cursor-pointer data-[disabled]:cursor-not-allowed",
|
|
16
|
+
"track": "w-[8px] relative rounded-md touch-none",
|
|
17
|
+
"trackThumb": "absolute transform -translate-y-1/2 -translate-x-[4px] rtl:translate-x-[4px] size-4 rounded-full ring-2 ring-white cursor-pointer data-[disabled]:cursor-not-allowed"
|
|
18
|
+
},
|
|
19
|
+
"variants": {
|
|
20
|
+
"size": {
|
|
21
|
+
"xs": {
|
|
22
|
+
"selector": "w-38 h-38",
|
|
23
|
+
"track": "h-38"
|
|
24
|
+
},
|
|
25
|
+
"sm": {
|
|
26
|
+
"selector": "w-40 h-40",
|
|
27
|
+
"track": "h-40"
|
|
28
|
+
},
|
|
29
|
+
"md": {
|
|
30
|
+
"selector": "w-42 h-42",
|
|
31
|
+
"track": "h-42"
|
|
32
|
+
},
|
|
33
|
+
"lg": {
|
|
34
|
+
"selector": "w-44 h-44",
|
|
35
|
+
"track": "h-44"
|
|
36
|
+
},
|
|
37
|
+
"xl": {
|
|
38
|
+
"selector": "w-46 h-46",
|
|
39
|
+
"track": "h-46"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"compoundVariants": [],
|
|
44
|
+
"defaultVariants": {
|
|
45
|
+
"size": "md" as typeof size[number]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"root": "flex flex-col min-h-0 min-w-0 divide-y divide-default",
|
|
4
|
+
"input": "[&>input]:h-12",
|
|
5
|
+
"close": "",
|
|
6
|
+
"back": "p-0",
|
|
7
|
+
"content": "relative overflow-hidden flex flex-col",
|
|
8
|
+
"footer": "p-1",
|
|
9
|
+
"viewport": "relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none",
|
|
10
|
+
"group": "p-1 isolate",
|
|
11
|
+
"empty": "py-6 text-center text-sm text-muted",
|
|
12
|
+
"label": "p-1.5 text-xs font-semibold text-highlighted",
|
|
13
|
+
"item": "group relative w-full flex items-start gap-1.5 p-1.5 text-sm select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
14
|
+
"itemLeadingIcon": "shrink-0 size-5",
|
|
15
|
+
"itemLeadingAvatar": "shrink-0",
|
|
16
|
+
"itemLeadingAvatarSize": "2xs",
|
|
17
|
+
"itemLeadingChip": "shrink-0 size-5",
|
|
18
|
+
"itemLeadingChipSize": "md",
|
|
19
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
20
|
+
"itemTrailingIcon": "shrink-0 size-5",
|
|
21
|
+
"itemTrailingHighlightedIcon": "shrink-0 size-5 text-dimmed hidden group-data-highlighted:inline-flex",
|
|
22
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5",
|
|
23
|
+
"itemTrailingKbdsSize": "md",
|
|
24
|
+
"itemWrapper": "flex-1 flex flex-col text-start min-w-0",
|
|
25
|
+
"itemLabel": "truncate space-x-1 text-dimmed",
|
|
26
|
+
"itemDescription": "truncate text-muted",
|
|
27
|
+
"itemLabelBase": "text-highlighted [&>mark]:text-inverted [&>mark]:bg-primary",
|
|
28
|
+
"itemLabelPrefix": "text-default",
|
|
29
|
+
"itemLabelSuffix": "text-dimmed [&>mark]:text-inverted [&>mark]:bg-primary"
|
|
30
|
+
},
|
|
31
|
+
"variants": {
|
|
32
|
+
"virtualize": {
|
|
33
|
+
"true": {
|
|
34
|
+
"viewport": "p-1 isolate"
|
|
35
|
+
},
|
|
36
|
+
"false": {
|
|
37
|
+
"viewport": "divide-y divide-default"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"active": {
|
|
41
|
+
"true": {
|
|
42
|
+
"item": "text-highlighted before:bg-elevated",
|
|
43
|
+
"itemLeadingIcon": "text-default"
|
|
44
|
+
},
|
|
45
|
+
"false": {
|
|
46
|
+
"item": [
|
|
47
|
+
"text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50",
|
|
48
|
+
"transition-colors before:transition-colors"
|
|
49
|
+
],
|
|
50
|
+
"itemLeadingIcon": [
|
|
51
|
+
"text-dimmed group-data-highlighted:not-group-data-disabled:text-default",
|
|
52
|
+
"transition-colors"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"loading": {
|
|
57
|
+
"true": {
|
|
58
|
+
"itemLeadingIcon": "animate-spin"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|