@bitrix24/b24ui-nuxt 0.2.1 → 0.2.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/b24ui/dropdown-menu.ts +235 -0
- package/.nuxt/b24ui/index.ts +1 -0
- package/.nuxt/b24ui.css +2 -0
- package/dist/meta.cjs +6800 -121
- package/dist/meta.d.cts +6800 -121
- package/dist/meta.d.mts +6800 -121
- package/dist/meta.d.ts +6800 -121
- package/dist/meta.mjs +6800 -121
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/DropdownMenu.vue +135 -0
- package/dist/runtime/components/DropdownMenuContent.vue +182 -0
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/vue/components/Link.vue +1 -0
- package/dist/shared/{b24ui-nuxt.CrjojW8t.mjs → b24ui-nuxt.CYvh5VlN.mjs} +361 -0
- package/dist/shared/{b24ui-nuxt.D5cXbZSx.cjs → b24ui-nuxt.DgnM0VWe.cjs} +361 -0
- package/dist/unplugin.cjs +1 -1
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"default",
|
|
3
|
+
"danger",
|
|
4
|
+
"success",
|
|
5
|
+
"warning",
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary",
|
|
8
|
+
"collab",
|
|
9
|
+
"ai"
|
|
10
|
+
] as const
|
|
11
|
+
|
|
12
|
+
const size = [
|
|
13
|
+
"xs",
|
|
14
|
+
"sm",
|
|
15
|
+
"md",
|
|
16
|
+
"lg"
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
export default {
|
|
20
|
+
"slots": {
|
|
21
|
+
"content": "min-w-32 bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-y-auto data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1 pointer-events-auto",
|
|
22
|
+
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
23
|
+
"group": "p-1 isolate",
|
|
24
|
+
"label": "w-full flex items-center font-semibold text-base-900 dark:text-base-200",
|
|
25
|
+
"separator": "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
|
|
26
|
+
"item": "group relative w-full flex items-center select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-2xs cursor-pointer data-disabled:cursor-not-allowed data-disabled:opacity-75 text-base-master dark:text-base-150 data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-base-100/50 dark:data-highlighted:before:bg-base-900 transition-colors before:transition-colors",
|
|
27
|
+
"itemLeadingIcon": "shrink-0 text-base-500 dark:text-base-700 group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150 group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150 transition-colors",
|
|
28
|
+
"itemLeadingAvatar": "shrink-0",
|
|
29
|
+
"itemLeadingAvatarSize": "",
|
|
30
|
+
"itemTrailing": "ms-auto inline-flex gap-1.5 items-center",
|
|
31
|
+
"itemTrailingIcon": "shrink-0",
|
|
32
|
+
"itemTrailingKbds": "hidden lg:inline-flex items-center shrink-0",
|
|
33
|
+
"itemTrailingKbdsSize": "",
|
|
34
|
+
"itemLabel": "truncate",
|
|
35
|
+
"itemLabelExternalIcon": "inline-block size-3 align-top text-base-500 dark:text-base-700"
|
|
36
|
+
},
|
|
37
|
+
"variants": {
|
|
38
|
+
"color": {
|
|
39
|
+
"default": "",
|
|
40
|
+
"danger": "",
|
|
41
|
+
"success": "",
|
|
42
|
+
"warning": "",
|
|
43
|
+
"primary": "",
|
|
44
|
+
"secondary": "",
|
|
45
|
+
"collab": "",
|
|
46
|
+
"ai": ""
|
|
47
|
+
},
|
|
48
|
+
"active": {
|
|
49
|
+
"false": {
|
|
50
|
+
"item": "text-base-master data-highlighted:text-base-900 data-highlighted:before:bg-base-100/50 data-[state=open]:text-base-900 data-[state=open]:before:bg-base-100/50 dark:text-base-150 dark:data-highlighted:text-base-200 dark:data-highlighted:before:bg-base-900 dark:data-[state=open]:text-base-200 dark:data-[state=open]:before:bg-base-900 transition-colors before:transition-colors",
|
|
51
|
+
"itemLeadingIcon": "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150 transition-colors"
|
|
52
|
+
},
|
|
53
|
+
"true": {
|
|
54
|
+
"item": "text-base-900 before:bg-base-100/50 dark:text-base-200 dark:before:bg-base-900",
|
|
55
|
+
"itemLeadingIcon": "text-base-master group-data-[state=open]:text-base-master dark:text-base-700"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"loading": {
|
|
59
|
+
"true": {
|
|
60
|
+
"itemLeadingIcon": "animate-spin"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"size": {
|
|
64
|
+
"xs": {
|
|
65
|
+
"label": "p-1 text-xs gap-1",
|
|
66
|
+
"item": "p-1 text-xs gap-1",
|
|
67
|
+
"itemLeadingIcon": "size-4",
|
|
68
|
+
"itemLeadingAvatarSize": "3xs",
|
|
69
|
+
"itemTrailingIcon": "size-4",
|
|
70
|
+
"itemTrailingKbds": "gap-0.5",
|
|
71
|
+
"itemTrailingKbdsSize": "sm"
|
|
72
|
+
},
|
|
73
|
+
"sm": {
|
|
74
|
+
"label": "p-1.5 text-xs gap-1.5",
|
|
75
|
+
"item": "p-1.5 text-xs gap-1.5",
|
|
76
|
+
"itemLeadingIcon": "size-4",
|
|
77
|
+
"itemLeadingAvatarSize": "3xs",
|
|
78
|
+
"itemTrailingIcon": "size-4",
|
|
79
|
+
"itemTrailingKbds": "gap-0.5",
|
|
80
|
+
"itemTrailingKbdsSize": "sm"
|
|
81
|
+
},
|
|
82
|
+
"md": {
|
|
83
|
+
"label": "h-9 ps-2 pe-3 text-sm gap-2",
|
|
84
|
+
"item": "h-9 ps-3 pe-3 text-sm gap-2",
|
|
85
|
+
"itemLeadingIcon": "size-5",
|
|
86
|
+
"itemLeadingAvatarSize": "2xs",
|
|
87
|
+
"itemTrailingIcon": "size-3",
|
|
88
|
+
"itemTrailingKbds": "gap-0.5",
|
|
89
|
+
"itemTrailingKbdsSize": "md"
|
|
90
|
+
},
|
|
91
|
+
"lg": {
|
|
92
|
+
"label": "p-2 text-sm gap-2",
|
|
93
|
+
"item": "p-2 text-sm gap-2",
|
|
94
|
+
"itemLeadingIcon": "size-5",
|
|
95
|
+
"itemLeadingAvatarSize": "2xs",
|
|
96
|
+
"itemTrailingIcon": "size-5",
|
|
97
|
+
"itemTrailingKbds": "gap-1",
|
|
98
|
+
"itemTrailingKbdsSize": "md"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"compoundVariants": [
|
|
103
|
+
{
|
|
104
|
+
"color": "default" as typeof color[number],
|
|
105
|
+
"active": false,
|
|
106
|
+
"class": {
|
|
107
|
+
"item": "text-base-master data-highlighted:text-base-900 data-highlighted:before:bg-base-100/50 data-[state=open]:text-base-900 data-[state=open]:before:bg-base-100/50 dark:text-base-150 dark:data-highlighted:text-base-200 dark:data-highlighted:before:bg-base-900 dark:data-[state=open]:text-base-200 dark:data-[state=open]:before:bg-base-900",
|
|
108
|
+
"itemLeadingIcon": "text-base-500 group-data-highlighted:text-base-master group-data-[state=open]:text-base-master dark:text-base-700 dark:group-data-highlighted:text-base-150 dark:group-data-[state=open]:text-base-150"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"color": "default" as typeof color[number],
|
|
113
|
+
"active": true,
|
|
114
|
+
"class": {
|
|
115
|
+
"item": "text-base-900 before:bg-base-100/50 dark:text-base-200 dark:before:bg-base-900",
|
|
116
|
+
"itemLeadingIcon": "text-base-master group-data-[state=open]:text-base-master dark:text-base-700"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"color": "danger" as typeof color[number],
|
|
121
|
+
"active": false,
|
|
122
|
+
"class": {
|
|
123
|
+
"item": "text-red-950 data-highlighted:text-red-900 data-highlighted:before:bg-red-100 data-[state=open]:text-red-900 data-[state=open]:before:bg-red-100 dark:text-red-150 dark:data-highlighted:text-red-200 dark:data-highlighted:before:bg-red-900 dark:data-[state=open]:text-red-200 dark:data-[state=open]:before:bg-red-900",
|
|
124
|
+
"itemLeadingIcon": "text-red-500 group-data-highlighted:text-red-950 group-data-[state=open]:text-red-950 dark:text-red-700 dark:group-data-highlighted:text-red-150 dark:group-data-[state=open]:text-red-150"
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"color": "danger" as typeof color[number],
|
|
129
|
+
"active": true,
|
|
130
|
+
"class": {
|
|
131
|
+
"item": "text-red-900 before:bg-red-100 dark:text-red-200 dark:before:bg-red-900",
|
|
132
|
+
"itemLeadingIcon": "text-red-950 group-data-[state=open]:text-red-950 dark:text-red-700"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"color": "success" as typeof color[number],
|
|
137
|
+
"active": false,
|
|
138
|
+
"class": {
|
|
139
|
+
"item": "text-green-950 data-highlighted:text-green-900 data-highlighted:before:bg-green-100 data-[state=open]:text-green-900 data-[state=open]:before:bg-green-100 dark:text-green-150 dark:data-highlighted:text-green-200 dark:data-highlighted:before:bg-green-900 dark:data-[state=open]:text-green-200 dark:data-[state=open]:before:bg-green-900",
|
|
140
|
+
"itemLeadingIcon": "text-green-500 group-data-highlighted:text-green-950 group-data-[state=open]:text-green-950 dark:text-green-700 dark:group-data-highlighted:text-green-150 dark:group-data-[state=open]:text-green-150"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"color": "success" as typeof color[number],
|
|
145
|
+
"active": true,
|
|
146
|
+
"class": {
|
|
147
|
+
"item": "text-green-900 before:bg-green-100 dark:text-green-200 dark:before:bg-green-900",
|
|
148
|
+
"itemLeadingIcon": "text-green-950 group-data-[state=open]:text-green-950 dark:text-green-700"
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"color": "warning" as typeof color[number],
|
|
153
|
+
"active": false,
|
|
154
|
+
"class": {
|
|
155
|
+
"item": "text-orange-950 data-highlighted:text-orange-900 data-highlighted:before:bg-orange-100 data-[state=open]:text-orange-900 data-[state=open]:before:bg-orange-100 dark:text-orange-150 dark:data-highlighted:text-orange-200 dark:data-highlighted:before:bg-orange-900 dark:data-[state=open]:text-orange-200 dark:data-[state=open]:before:bg-orange-900",
|
|
156
|
+
"itemLeadingIcon": "text-orange-500 group-data-highlighted:text-orange-950 group-data-[state=open]:text-orange-950 dark:text-orange-700 dark:group-data-highlighted:text-orange-150 dark:group-data-[state=open]:text-orange-150"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"color": "warning" as typeof color[number],
|
|
161
|
+
"active": true,
|
|
162
|
+
"class": {
|
|
163
|
+
"item": "text-orange-900 before:bg-orange-100 dark:text-orange-200 dark:before:bg-orange-900",
|
|
164
|
+
"itemLeadingIcon": "text-orange-950 group-data-[state=open]:text-orange-950 dark:text-orange-700"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"color": "primary" as typeof color[number],
|
|
169
|
+
"active": false,
|
|
170
|
+
"class": {
|
|
171
|
+
"item": "text-blue-950 data-highlighted:text-blue-900 data-highlighted:before:bg-blue-100 data-[state=open]:text-blue-900 data-[state=open]:before:bg-blue-100 dark:text-blue-150 dark:data-highlighted:text-blue-200 dark:data-highlighted:before:bg-blue-900 dark:data-[state=open]:text-blue-200 dark:data-[state=open]:before:bg-blue-900",
|
|
172
|
+
"itemLeadingIcon": "text-blue-500 group-data-highlighted:text-blue-950 group-data-[state=open]:text-blue-950 dark:text-blue-700 dark:group-data-highlighted:text-blue-150 dark:group-data-[state=open]:text-blue-150"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"color": "primary" as typeof color[number],
|
|
177
|
+
"active": true,
|
|
178
|
+
"class": {
|
|
179
|
+
"item": "text-blue-900 before:bg-blue-100 dark:text-blue-200 dark:before:bg-blue-900",
|
|
180
|
+
"itemLeadingIcon": "text-blue-950 group-data-[state=open]:text-blue-950 dark:text-blue-700"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"color": "secondary" as typeof color[number],
|
|
185
|
+
"active": false,
|
|
186
|
+
"class": {
|
|
187
|
+
"item": "text-cyan-950 data-highlighted:text-cyan-900 data-highlighted:before:bg-cyan-100/50 data-[state=open]:text-cyan-900 data-[state=open]:before:bg-cyan-100/50 dark:text-cyan-150 dark:data-highlighted:text-cyan-200 dark:data-highlighted:before:bg-cyan-900 dark:data-[state=open]:text-cyan-200 dark:data-[state=open]:before:bg-cyan-900",
|
|
188
|
+
"itemLeadingIcon": "text-cyan-500 group-data-highlighted:text-cyan-950 group-data-[state=open]:text-cyan-950 dark:text-cyan-700 dark:group-data-highlighted:text-cyan-150 dark:group-data-[state=open]:text-cyan-150"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"color": "secondary" as typeof color[number],
|
|
193
|
+
"active": true,
|
|
194
|
+
"class": {
|
|
195
|
+
"item": "text-cyan-900 before:bg-cyan-100/50 dark:text-cyan-200 dark:before:bg-cyan-900",
|
|
196
|
+
"itemLeadingIcon": "text-cyan-950 group-data-[state=open]:text-cyan-950 dark:text-cyan-700"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"color": "collab" as typeof color[number],
|
|
201
|
+
"active": false,
|
|
202
|
+
"class": {
|
|
203
|
+
"item": "text-collab-950 data-highlighted:text-collab-900 data-highlighted:before:bg-collab-100 data-[state=open]:text-collab-900 data-[state=open]:before:bg-collab-100 dark:text-collab-150 dark:data-highlighted:text-collab-200 dark:data-highlighted:before:bg-collab-900 dark:data-[state=open]:text-collab-200 dark:data-[state=open]:before:bg-collab-900",
|
|
204
|
+
"itemLeadingIcon": "text-collab-500 group-data-highlighted:text-collab-950 group-data-[state=open]:text-collab-950 dark:text-collab-700 dark:group-data-highlighted:text-collab-150 dark:group-data-[state=open]:text-collab-150"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"color": "collab" as typeof color[number],
|
|
209
|
+
"active": true,
|
|
210
|
+
"class": {
|
|
211
|
+
"item": "text-collab-900 before:bg-collab-100 dark:text-collab-200 dark:before:bg-collab-900",
|
|
212
|
+
"itemLeadingIcon": "text-collab-950 group-data-[state=open]:text-collab-950 dark:text-collab-700"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"color": "ai" as typeof color[number],
|
|
217
|
+
"active": false,
|
|
218
|
+
"class": {
|
|
219
|
+
"item": "text-ai-950 data-highlighted:text-ai-900 data-highlighted:before:bg-ai-100/50 data-[state=open]:text-ai-900 data-[state=open]:before:bg-ai-100/50 dark:text-ai-150 dark:data-highlighted:text-ai-200 dark:data-highlighted:before:bg-ai-900 dark:data-[state=open]:text-ai-200 dark:data-[state=open]:before:bg-ai-900",
|
|
220
|
+
"itemLeadingIcon": "text-ai-500 group-data-highlighted:text-ai-950 group-data-[state=open]:text-ai-950 dark:text-ai-700 dark:group-data-highlighted:text-ai-150 dark:group-data-[state=open]:text-ai-150"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"color": "ai" as typeof color[number],
|
|
225
|
+
"active": true,
|
|
226
|
+
"class": {
|
|
227
|
+
"item": "text-ai-900 before:bg-ai-100/50 dark:text-ai-200 dark:before:bg-ai-900",
|
|
228
|
+
"itemLeadingIcon": "text-ai-950 group-data-[state=open]:text-ai-950 dark:text-ai-700"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"defaultVariants": {
|
|
233
|
+
"size": "md" as typeof size[number]
|
|
234
|
+
}
|
|
235
|
+
}
|
package/.nuxt/b24ui/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ export { default as checkbox } from './checkbox'
|
|
|
9
9
|
export { default as chip } from './chip'
|
|
10
10
|
export { default as container } from './container'
|
|
11
11
|
export { default as countdown } from './countdown'
|
|
12
|
+
export { default as dropdownMenu } from './dropdown-menu'
|
|
12
13
|
export { default as form } from './form'
|
|
13
14
|
export { default as formField } from './form-field'
|
|
14
15
|
export { default as input } from './input'
|
package/.nuxt/b24ui.css
ADDED