@bitrix24/b24ui-nuxt 0.1.6 → 0.2.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/b24ui/alert.ts +18 -8
- package/.nuxt/b24ui/badge.ts +1 -1
- package/.nuxt/b24ui/content/description-list.ts +17 -7
- package/.nuxt/b24ui/index.ts +2 -0
- package/.nuxt/b24ui/input-menu.ts +591 -0
- package/.nuxt/b24ui/input.ts +5 -5
- package/.nuxt/b24ui/select-menu.ts +517 -0
- package/.nuxt/b24ui/select.ts +8 -8
- package/.nuxt/b24ui/toast.ts +18 -8
- package/README.md +8 -8
- package/dist/meta.cjs +13003 -3006
- package/dist/meta.d.cts +13003 -3006
- package/dist/meta.d.mts +13003 -3006
- package/dist/meta.d.ts +13003 -3006
- package/dist/meta.mjs +13003 -3006
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Alert.vue +13 -10
- package/dist/runtime/components/App.vue +2 -3
- package/dist/runtime/components/Button.vue +1 -3
- package/dist/runtime/components/InputMenu.vue +507 -0
- package/dist/runtime/components/SelectMenu.vue +465 -0
- package/dist/runtime/components/Toast.vue +26 -14
- package/dist/runtime/components/Toaster.vue +2 -2
- package/dist/runtime/components/content/DescriptionList.vue +9 -7
- package/dist/runtime/composables/useToast.d.ts +5 -4
- package/dist/runtime/composables/useToast.js +2 -2
- package/dist/runtime/types/index.d.ts +3 -0
- package/dist/runtime/types/index.js +3 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/shared/{b24ui-nuxt.n3bAiAAD.mjs → b24ui-nuxt.CrjojW8t.mjs} +332 -36
- package/dist/shared/{b24ui-nuxt.BAQG__ma.cjs → b24ui-nuxt.D5cXbZSx.cjs} +331 -35
- 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 +23 -2
|
@@ -69,14 +69,14 @@ const advice = {
|
|
|
69
69
|
const alert = {
|
|
70
70
|
slots: {
|
|
71
71
|
root: "relative overflow-hidden w-full rounded-3xs flex",
|
|
72
|
-
wrapper: "min-w-0 flex-1 flex flex-col
|
|
72
|
+
wrapper: "min-w-0 flex-1 flex flex-col font-b24-primary font-normal",
|
|
73
73
|
title: "font-bold",
|
|
74
74
|
description: "",
|
|
75
75
|
icon: "shrink-0 size-6",
|
|
76
76
|
avatar: "shrink-0",
|
|
77
77
|
avatarSize: "",
|
|
78
78
|
actions: "flex flex-wrap gap-1.5 shrink-0",
|
|
79
|
-
close: "p-0
|
|
79
|
+
close: "p-0"
|
|
80
80
|
},
|
|
81
81
|
variants: {
|
|
82
82
|
color: {
|
|
@@ -151,14 +151,19 @@ const alert = {
|
|
|
151
151
|
avatarSize: "xl"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
root: "items-start",
|
|
157
|
-
actions: "items-start mt-2"
|
|
158
|
-
},
|
|
159
|
-
false: {
|
|
154
|
+
orientation: {
|
|
155
|
+
horizontal: {
|
|
160
156
|
root: "items-center",
|
|
161
157
|
actions: "items-center"
|
|
158
|
+
},
|
|
159
|
+
vertical: {
|
|
160
|
+
root: "items-start",
|
|
161
|
+
actions: "items-start mt-2"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
title: {
|
|
165
|
+
true: {
|
|
166
|
+
description: "mt-1"
|
|
162
167
|
}
|
|
163
168
|
}
|
|
164
169
|
},
|
|
@@ -343,7 +348,7 @@ const badge = {
|
|
|
343
348
|
leadingIcon: "shrink-0",
|
|
344
349
|
leadingAvatar: "shrink-0",
|
|
345
350
|
leadingAvatarSize: "",
|
|
346
|
-
trailingIcon: "shrink-0 cursor-pointer
|
|
351
|
+
trailingIcon: "shrink-0 cursor-pointer hover:rounded-full hover:bg-current/20 dark:hover:bg-current/35"
|
|
347
352
|
},
|
|
348
353
|
variants: {
|
|
349
354
|
...buttonGroupVariant,
|
|
@@ -1638,6 +1643,7 @@ const input = {
|
|
|
1638
1643
|
slots: {
|
|
1639
1644
|
root: "relative inline-flex items-center w-full",
|
|
1640
1645
|
base: [
|
|
1646
|
+
"px-3",
|
|
1641
1647
|
"w-full py-0 border-0 focus:outline-none",
|
|
1642
1648
|
"disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500",
|
|
1643
1649
|
"dark:disabled:bg-base-900/37 dark:disabled:text-base-800",
|
|
@@ -1667,7 +1673,7 @@ const input = {
|
|
|
1667
1673
|
...buttonGroupVariantWithRoot,
|
|
1668
1674
|
size: {
|
|
1669
1675
|
xs: {
|
|
1670
|
-
base: "
|
|
1676
|
+
base: "h-xl2 gap-1",
|
|
1671
1677
|
// 26px
|
|
1672
1678
|
leading: "px-1",
|
|
1673
1679
|
trailing: "px-1",
|
|
@@ -1676,7 +1682,7 @@ const input = {
|
|
|
1676
1682
|
trailingIcon: "size-lg2"
|
|
1677
1683
|
},
|
|
1678
1684
|
sm: {
|
|
1679
|
-
base: "
|
|
1685
|
+
base: "h-8 gap-1.5",
|
|
1680
1686
|
// 32px
|
|
1681
1687
|
leading: "px-1.5",
|
|
1682
1688
|
trailing: "px-1.5",
|
|
@@ -1685,7 +1691,7 @@ const input = {
|
|
|
1685
1691
|
trailingIcon: "size-lg2"
|
|
1686
1692
|
},
|
|
1687
1693
|
md: {
|
|
1688
|
-
base: "
|
|
1694
|
+
base: "h-10 gap-1.5",
|
|
1689
1695
|
// 40px
|
|
1690
1696
|
leading: "px-2",
|
|
1691
1697
|
trailing: "px-2",
|
|
@@ -1694,7 +1700,7 @@ const input = {
|
|
|
1694
1700
|
trailingIcon: "size-[24px]"
|
|
1695
1701
|
},
|
|
1696
1702
|
lg: {
|
|
1697
|
-
base: "
|
|
1703
|
+
base: "h-12 gap-2",
|
|
1698
1704
|
// 48px
|
|
1699
1705
|
leading: "px-2",
|
|
1700
1706
|
trailing: "px-2",
|
|
@@ -2088,6 +2094,248 @@ const input = {
|
|
|
2088
2094
|
}
|
|
2089
2095
|
};
|
|
2090
2096
|
|
|
2097
|
+
const defSize$1 = {
|
|
2098
|
+
label: "h-9 ps-2 pe-3 text-sm gap-2",
|
|
2099
|
+
item: "h-9 ps-3 pe-3 text-sm gap-2",
|
|
2100
|
+
itemLeadingIcon: "size-5",
|
|
2101
|
+
itemLeadingAvatarSize: "2xs",
|
|
2102
|
+
itemLeadingChip: "size-3 not-group-data-reka-collection-item:ps-2.5",
|
|
2103
|
+
itemLeadingChipSize: "sm",
|
|
2104
|
+
itemTrailingIcon: "size-3",
|
|
2105
|
+
trailingIcon: "size-lg2"
|
|
2106
|
+
};
|
|
2107
|
+
const inputMenu = () => {
|
|
2108
|
+
return defu.defuFn({
|
|
2109
|
+
slots: {
|
|
2110
|
+
base: [
|
|
2111
|
+
"py-0 w-full border-0 focus:outline-none",
|
|
2112
|
+
"disabled:cursor-not-allowed disabled:bg-base-30/37 disabled:resize-none disabled:text-base-500",
|
|
2113
|
+
"dark:disabled:bg-base-900/37 dark:disabled:text-base-800",
|
|
2114
|
+
"appearance-none transition duration-300 ease-linear",
|
|
2115
|
+
"ring ring-inset ring-base-300",
|
|
2116
|
+
"dark:ring-base-800",
|
|
2117
|
+
"text-base-master bg-white placeholder:text-base-400 hover:text-base-900 focus:text-base-900 active:text-base-900",
|
|
2118
|
+
"dark:text-base-150 dark:bg-transparent dark:placeholder:text-base-300 dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350",
|
|
2119
|
+
"font-b24-primary font-regular text-md leading-none",
|
|
2120
|
+
"align-middle",
|
|
2121
|
+
// 'text-ellipsis whitespace-nowrap',
|
|
2122
|
+
"transition-colors"
|
|
2123
|
+
].join(" "),
|
|
2124
|
+
trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
2125
|
+
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
2126
|
+
content: [
|
|
2127
|
+
"w-[var(--reka-popper-anchor-width)]",
|
|
2128
|
+
// 'max-h-60',
|
|
2129
|
+
// 'h-[var(--reka-popper-available-height)]',
|
|
2130
|
+
"bg-white dark:bg-base-dark",
|
|
2131
|
+
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
2132
|
+
"overflow-hidden",
|
|
2133
|
+
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
2134
|
+
"pointer-events-auto"
|
|
2135
|
+
].join(" "),
|
|
2136
|
+
viewport: "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
|
2137
|
+
group: "p-1 isolate",
|
|
2138
|
+
empty: "py-2 text-center text-sm text-base-500 dark:text-base-600",
|
|
2139
|
+
label: [
|
|
2140
|
+
"flex items-center",
|
|
2141
|
+
"font-semibold text-base-900 dark:text-base-200"
|
|
2142
|
+
].join(" "),
|
|
2143
|
+
separator: "-mx-1 my-1 h-px bg-base-master/10 dark:bg-base-100/20",
|
|
2144
|
+
item: [
|
|
2145
|
+
"group relative w-full flex items-center select-none outline-none",
|
|
2146
|
+
"before:absolute before:z-[-1] before:inset-px before:rounded-2xs",
|
|
2147
|
+
"cursor-pointer",
|
|
2148
|
+
"data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
2149
|
+
"text-base-master dark:text-base-150",
|
|
2150
|
+
"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",
|
|
2151
|
+
"data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-base-100/50 dark:data-[state=checked]:before:bg-base-900",
|
|
2152
|
+
"transition-colors before:transition-colors"
|
|
2153
|
+
].join(" "),
|
|
2154
|
+
itemLeadingIcon: [
|
|
2155
|
+
"shrink-0 text-base-500 dark:text-base-700",
|
|
2156
|
+
"group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
|
|
2157
|
+
"group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150",
|
|
2158
|
+
"transition-colors"
|
|
2159
|
+
].join(" "),
|
|
2160
|
+
itemLeadingAvatar: "shrink-0",
|
|
2161
|
+
itemLeadingAvatarSize: "",
|
|
2162
|
+
itemLeadingChip: "shrink-0",
|
|
2163
|
+
itemLeadingChipSize: "",
|
|
2164
|
+
itemTrailing: "ms-auto inline-flex gap-1.5 items-center",
|
|
2165
|
+
itemTrailingIcon: "shrink-0",
|
|
2166
|
+
itemLabel: "truncate",
|
|
2167
|
+
tagsItem: [
|
|
2168
|
+
"px-2 rounded-2xs font-b24-secondary font-normal leading-normal",
|
|
2169
|
+
"inline-flex items-center gap-1",
|
|
2170
|
+
"ring ring-inset data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
2171
|
+
"text-blue-700 bg-blue-250 ring-blue-250",
|
|
2172
|
+
"dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300"
|
|
2173
|
+
// 'ring-base-200 bg-red-100 text-base-master',
|
|
2174
|
+
// 'dark:ring-base-800 dark:bg-base-900 dark:text-base-150'
|
|
2175
|
+
].join(" "),
|
|
2176
|
+
tagsItemText: "truncate",
|
|
2177
|
+
tagsItemDelete: [
|
|
2178
|
+
"cursor-pointer hover:rounded-full",
|
|
2179
|
+
"inline-flex items-center rounded-md disabled:pointer-events-none",
|
|
2180
|
+
"text-base-500 hover:text-base-master hover:bg-blue-300",
|
|
2181
|
+
"dark:text-base-500 dark:text-base-700 dark:hover:text-base-master dark:hover:bg-blue-400",
|
|
2182
|
+
"transition-colors"
|
|
2183
|
+
].join(" "),
|
|
2184
|
+
tagsItemDeleteIcon: "",
|
|
2185
|
+
tagsInput: ""
|
|
2186
|
+
},
|
|
2187
|
+
variants: {
|
|
2188
|
+
addNew: {
|
|
2189
|
+
true: {
|
|
2190
|
+
group: "p-0 isolate -m-px",
|
|
2191
|
+
item: [
|
|
2192
|
+
"before:rounded-none",
|
|
2193
|
+
"text-base-master dark:text-base-150 before:bg-blue-200 dark:before:bg-blue-800",
|
|
2194
|
+
"data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-blue-200 dark:data-highlighted:before:bg-blue-800",
|
|
2195
|
+
"data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-blue-200 dark:data-[state=checked]:before:bg-blue-800"
|
|
2196
|
+
].join(" "),
|
|
2197
|
+
itemLabel: "flex flex-row flex-nowrap items-center justify-start gap-2",
|
|
2198
|
+
itemLeadingIcon: [
|
|
2199
|
+
"size-5 rounded-full",
|
|
2200
|
+
"text-white dark:text-base-150 bg-blue-500 dark:bg-blue-600",
|
|
2201
|
+
"group-data-highlighted:text-white dark:group-data-highlighted:text-base-150 group-data-highlighted:bg-blue-500 dark:group-data-highlighted:bg-blue-600",
|
|
2202
|
+
"group-data-[state=checked]:text-white dark:group-data-[state=checked]:text-base-150 group-data-[state=checked]:bg-blue-500 dark:group-data-[state=checked]:bg-blue-600"
|
|
2203
|
+
].join(" ")
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
multiple: {
|
|
2207
|
+
true: {
|
|
2208
|
+
root: "flex-wrap",
|
|
2209
|
+
base: [
|
|
2210
|
+
"py-1.5 ps-1.5 pe-[39px]"
|
|
2211
|
+
].join(" "),
|
|
2212
|
+
tagsInput: [
|
|
2213
|
+
"w-2/5 border-0 bg-transparent ps-1.5 pe-3 py-0",
|
|
2214
|
+
"placeholder:text-base-400 dark:placeholder:text-base-300",
|
|
2215
|
+
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-75",
|
|
2216
|
+
"focus:ring-0 focus-visible:ring-0"
|
|
2217
|
+
].join(" ")
|
|
2218
|
+
},
|
|
2219
|
+
false: {
|
|
2220
|
+
base: [
|
|
2221
|
+
"px-3",
|
|
2222
|
+
"placeholder:text-base-400 dark:placeholder:text-base-300",
|
|
2223
|
+
"focus:outline-none disabled:cursor-not-allowed disabled:opacity-75"
|
|
2224
|
+
].join(" ")
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
size: {
|
|
2228
|
+
xs: defu.defuFn(
|
|
2229
|
+
defSize$1,
|
|
2230
|
+
{
|
|
2231
|
+
tagsItem: [
|
|
2232
|
+
"text-5xs",
|
|
2233
|
+
"h-[14px] gap-0.5"
|
|
2234
|
+
].join(" "),
|
|
2235
|
+
tagsItemDeleteIcon: "size-sm"
|
|
2236
|
+
}
|
|
2237
|
+
),
|
|
2238
|
+
sm: defu.defuFn(
|
|
2239
|
+
defSize$1,
|
|
2240
|
+
{
|
|
2241
|
+
tagsItem: [
|
|
2242
|
+
"text-5xs",
|
|
2243
|
+
"h-[14px] gap-0.5"
|
|
2244
|
+
].join(" "),
|
|
2245
|
+
tagsItemDeleteIcon: "size-3"
|
|
2246
|
+
}
|
|
2247
|
+
),
|
|
2248
|
+
md: defu.defuFn(
|
|
2249
|
+
defSize$1,
|
|
2250
|
+
{
|
|
2251
|
+
tagsItem: [
|
|
2252
|
+
"text-md",
|
|
2253
|
+
"h-[31px] gap-1"
|
|
2254
|
+
].join(" "),
|
|
2255
|
+
tagsItemDeleteIcon: "size-3.5"
|
|
2256
|
+
}
|
|
2257
|
+
),
|
|
2258
|
+
lg: defu.defuFn(
|
|
2259
|
+
defSize$1,
|
|
2260
|
+
{
|
|
2261
|
+
tagsItem: [
|
|
2262
|
+
"text-md",
|
|
2263
|
+
"h-[31px] gap-1"
|
|
2264
|
+
].join(" "),
|
|
2265
|
+
tagsItemDeleteIcon: "size-3.5"
|
|
2266
|
+
}
|
|
2267
|
+
)
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
compoundVariants: [
|
|
2271
|
+
// region Color ////
|
|
2272
|
+
{
|
|
2273
|
+
color: "default",
|
|
2274
|
+
multiple: true,
|
|
2275
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-base-900 dark:has-focus-visible:ring-base-700"
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
color: "danger",
|
|
2279
|
+
multiple: true,
|
|
2280
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-red-500 dark:has-focus-visible:ring-red-600"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
color: "success",
|
|
2284
|
+
multiple: true,
|
|
2285
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-green-500 dark:has-focus-visible:ring-green-600"
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
color: "warning",
|
|
2289
|
+
multiple: true,
|
|
2290
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-orange-500 dark:has-focus-visible:ring-orange-600"
|
|
2291
|
+
},
|
|
2292
|
+
{
|
|
2293
|
+
color: "primary",
|
|
2294
|
+
multiple: true,
|
|
2295
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-blue-500 dark:has-focus-visible:ring-blue-600"
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
color: "secondary",
|
|
2299
|
+
multiple: true,
|
|
2300
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-cyan-500 dark:has-focus-visible:ring-cyan-600"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
color: "collab",
|
|
2304
|
+
multiple: true,
|
|
2305
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-collab-500 dark:has-focus-visible:ring-collab-600"
|
|
2306
|
+
},
|
|
2307
|
+
{
|
|
2308
|
+
color: "ai",
|
|
2309
|
+
multiple: true,
|
|
2310
|
+
class: "has-focus-visible:ring-1 has-focus-visible:ring-ai-500 dark:has-focus-visible:ring-ai-600"
|
|
2311
|
+
},
|
|
2312
|
+
// endregion ////
|
|
2313
|
+
// region Size ////
|
|
2314
|
+
{
|
|
2315
|
+
size: "xs",
|
|
2316
|
+
multiple: true,
|
|
2317
|
+
class: "min-h-xl2 h-auto"
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
size: "sm",
|
|
2321
|
+
multiple: true,
|
|
2322
|
+
class: "min-h-8 h-auto"
|
|
2323
|
+
},
|
|
2324
|
+
{
|
|
2325
|
+
size: "md",
|
|
2326
|
+
multiple: true,
|
|
2327
|
+
class: "min-h-10 h-auto"
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
size: "lg",
|
|
2331
|
+
multiple: true,
|
|
2332
|
+
class: "min-h-12 h-auto"
|
|
2333
|
+
}
|
|
2334
|
+
// endregion ////
|
|
2335
|
+
]
|
|
2336
|
+
}, input);
|
|
2337
|
+
};
|
|
2338
|
+
|
|
2091
2339
|
const kbd = {
|
|
2092
2340
|
base: "inline-flex items-center justify-center px-1 rounded-2xs font-normal font-b24-system-mono",
|
|
2093
2341
|
variants: {
|
|
@@ -2709,6 +2957,7 @@ const select = () => {
|
|
|
2709
2957
|
slots: {
|
|
2710
2958
|
root: () => "relative inline-flex items-center w-full",
|
|
2711
2959
|
base: () => [
|
|
2960
|
+
"px-3",
|
|
2712
2961
|
"relative inline-flex items-center group",
|
|
2713
2962
|
"py-0 border-0 focus:outline-none",
|
|
2714
2963
|
"cursor-pointer disabled:cursor-not-allowed",
|
|
@@ -2720,7 +2969,7 @@ const select = () => {
|
|
|
2720
2969
|
"dark:ring-base-800",
|
|
2721
2970
|
"text-base-master bg-white hover:text-base-900 focus:text-base-900 active:text-base-900",
|
|
2722
2971
|
"dark:text-base-150 dark:bg-transparent dark:hover:text-base-350 dark:focus:text-base-350 dark:active:text-base-350",
|
|
2723
|
-
"font-b24-primary font-regular text-sm leading-
|
|
2972
|
+
"font-b24-primary font-regular text-sm leading-tight",
|
|
2724
2973
|
"align-middle",
|
|
2725
2974
|
"text-ellipsis whitespace-nowrap"
|
|
2726
2975
|
].join(" "),
|
|
@@ -2728,7 +2977,9 @@ const select = () => {
|
|
|
2728
2977
|
placeholder: "truncate text-base-400 dark:text-base-300",
|
|
2729
2978
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
2730
2979
|
content: [
|
|
2731
|
-
"
|
|
2980
|
+
"w-[var(--reka-popper-anchor-width)]",
|
|
2981
|
+
// 'max-h-60',
|
|
2982
|
+
// 'h-[var(--reka-popper-available-height)]',
|
|
2732
2983
|
"bg-white dark:bg-base-dark",
|
|
2733
2984
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
2734
2985
|
"overflow-hidden",
|
|
@@ -2754,11 +3005,15 @@ const select = () => {
|
|
|
2754
3005
|
"before:absolute before:z-[-1] before:inset-px before:rounded-2xs",
|
|
2755
3006
|
"cursor-pointer",
|
|
2756
3007
|
"data-disabled:cursor-not-allowed data-disabled:opacity-75",
|
|
2757
|
-
"text-base-master dark:text-base-150
|
|
3008
|
+
"text-base-master dark:text-base-150",
|
|
3009
|
+
"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",
|
|
3010
|
+
"data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-base-100/50 dark:data-[state=checked]:before:bg-base-900",
|
|
2758
3011
|
"transition-colors before:transition-colors"
|
|
2759
3012
|
].join(" "),
|
|
2760
3013
|
itemLeadingIcon: [
|
|
2761
|
-
"shrink-0 text-base-500 dark:text-base-700
|
|
3014
|
+
"shrink-0 text-base-500 dark:text-base-700",
|
|
3015
|
+
"group-data-highlighted:text-base-master dark:group-data-highlighted:text-base-150",
|
|
3016
|
+
"group-data-[state=checked]:text-base-master dark:group-data-[state=checked]:text-base-150",
|
|
2762
3017
|
"transition-colors"
|
|
2763
3018
|
].join(" "),
|
|
2764
3019
|
itemLeadingAvatar: "shrink-0",
|
|
@@ -2783,6 +3038,34 @@ const select = () => {
|
|
|
2783
3038
|
);
|
|
2784
3039
|
};
|
|
2785
3040
|
|
|
3041
|
+
const selectMenu = () => {
|
|
3042
|
+
return defu.defu({
|
|
3043
|
+
slots: {
|
|
3044
|
+
input: "border-b border-base-300 dark:dark:border-base-800"
|
|
3045
|
+
},
|
|
3046
|
+
variants: {
|
|
3047
|
+
addNew: {
|
|
3048
|
+
true: {
|
|
3049
|
+
group: "p-0 isolate -m-px",
|
|
3050
|
+
item: [
|
|
3051
|
+
"before:rounded-none",
|
|
3052
|
+
"text-base-master dark:text-base-150 before:bg-blue-200 dark:before:bg-blue-800",
|
|
3053
|
+
"data-highlighted:text-base-900 dark:data-highlighted:text-base-200 data-highlighted:before:bg-blue-200 dark:data-highlighted:before:bg-blue-800",
|
|
3054
|
+
"data-[state=checked]:text-base-900 dark:data-[state=checked]:text-base-200 data-[state=checked]:before:bg-blue-200 dark:data-[state=checked]:before:bg-blue-800"
|
|
3055
|
+
].join(" "),
|
|
3056
|
+
itemLabel: "flex flex-row flex-nowrap items-center justify-start gap-2",
|
|
3057
|
+
itemLeadingIcon: [
|
|
3058
|
+
"size-5 rounded-full",
|
|
3059
|
+
"text-white dark:text-base-150 bg-blue-500 dark:bg-blue-600",
|
|
3060
|
+
"group-data-highlighted:text-white dark:group-data-highlighted:text-base-150 group-data-highlighted:bg-blue-500 dark:group-data-highlighted:bg-blue-600",
|
|
3061
|
+
"group-data-[state=checked]:text-white dark:group-data-[state=checked]:text-base-150 group-data-[state=checked]:bg-blue-500 dark:group-data-[state=checked]:bg-blue-600"
|
|
3062
|
+
].join(" ")
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
}, select());
|
|
3067
|
+
};
|
|
3068
|
+
|
|
2786
3069
|
const separator = {
|
|
2787
3070
|
slots: {
|
|
2788
3071
|
root: "flex items-center align-center text-center",
|
|
@@ -3683,7 +3966,7 @@ const toast = {
|
|
|
3683
3966
|
"text-sm font-normal",
|
|
3684
3967
|
"text-white dark:text-base-150"
|
|
3685
3968
|
].join(" "),
|
|
3686
|
-
wrapper: "w-0 flex-1 flex flex-col
|
|
3969
|
+
wrapper: "w-0 flex-1 flex flex-col",
|
|
3687
3970
|
title: "font-medium",
|
|
3688
3971
|
description: "",
|
|
3689
3972
|
icon: "shrink-0 size-6",
|
|
@@ -3691,7 +3974,7 @@ const toast = {
|
|
|
3691
3974
|
avatarSize: "xl",
|
|
3692
3975
|
actions: "flex gap-1.5 shrink-0",
|
|
3693
3976
|
progress: "absolute inset-x-0 bottom-0 h-1 z-[-1]",
|
|
3694
|
-
close: "p-0
|
|
3977
|
+
close: "p-0 text-base-350 dark:text-base-350 hover:text-base-400 dark:hover:text-base-400"
|
|
3695
3978
|
},
|
|
3696
3979
|
variants: {
|
|
3697
3980
|
color: {
|
|
@@ -3736,14 +4019,19 @@ const toast = {
|
|
|
3736
4019
|
progress: "bg-ai-500 dark:bg-ai-500"
|
|
3737
4020
|
}
|
|
3738
4021
|
},
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
root: "items-start",
|
|
3742
|
-
actions: "items-start mt-1"
|
|
3743
|
-
},
|
|
3744
|
-
false: {
|
|
4022
|
+
orientation: {
|
|
4023
|
+
horizontal: {
|
|
3745
4024
|
root: "items-center",
|
|
3746
4025
|
actions: "items-center"
|
|
4026
|
+
},
|
|
4027
|
+
vertical: {
|
|
4028
|
+
root: "items-start",
|
|
4029
|
+
actions: "items-start mt-1"
|
|
4030
|
+
}
|
|
4031
|
+
},
|
|
4032
|
+
title: {
|
|
4033
|
+
true: {
|
|
4034
|
+
description: "mt-1"
|
|
3747
4035
|
}
|
|
3748
4036
|
}
|
|
3749
4037
|
},
|
|
@@ -3862,12 +4150,14 @@ const theme = {
|
|
|
3862
4150
|
form: form,
|
|
3863
4151
|
formField: formField,
|
|
3864
4152
|
input: input,
|
|
4153
|
+
inputMenu: inputMenu,
|
|
3865
4154
|
kbd: kbd,
|
|
3866
4155
|
link: link,
|
|
3867
4156
|
progress: progress,
|
|
3868
4157
|
radioGroup: radioGroup,
|
|
3869
4158
|
range: range,
|
|
3870
4159
|
select: select,
|
|
4160
|
+
selectMenu: selectMenu,
|
|
3871
4161
|
separator: separator,
|
|
3872
4162
|
skeleton: skeleton,
|
|
3873
4163
|
switch: _switch,
|
|
@@ -3885,13 +4175,14 @@ const themeProse = {
|
|
|
3885
4175
|
const descriptionList = {
|
|
3886
4176
|
slots: {
|
|
3887
4177
|
root: "w-full shrink-0",
|
|
3888
|
-
// ????
|
|
3889
4178
|
legend: "font-semibold text-black dark:text-base-150",
|
|
3890
4179
|
text: "text-base-500 dark:text-base-400",
|
|
3891
4180
|
container: "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
|
|
3892
4181
|
labelWrapper: [
|
|
3893
|
-
"col-start-1 border-t
|
|
3894
|
-
"flex flex-nowrap flex-row items-center justify-start gap-1.5"
|
|
4182
|
+
"col-start-1 border-t first:border-none sm:border-t",
|
|
4183
|
+
"flex flex-nowrap flex-row items-center justify-start gap-1.5",
|
|
4184
|
+
"border-base-950/5 text-base-500 sm:border-base-950/5",
|
|
4185
|
+
"dark:border-white/5 dark:text-base-400 sm:dark:border-white/5"
|
|
3895
4186
|
].join(" "),
|
|
3896
4187
|
icon: "shrink-0 size-6 text-base-500 dark:text-base-400",
|
|
3897
4188
|
avatar: "shrink-0",
|
|
@@ -3927,14 +4218,19 @@ const descriptionList = {
|
|
|
3927
4218
|
footer: "mt-4 p-4"
|
|
3928
4219
|
}
|
|
3929
4220
|
},
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
descriptionWrapper: "",
|
|
3933
|
-
actions: "items-start mt-2.5"
|
|
3934
|
-
},
|
|
3935
|
-
false: {
|
|
4221
|
+
orientation: {
|
|
4222
|
+
horizontal: {
|
|
3936
4223
|
descriptionWrapper: "w-full flex flex-row items-center justify-between gap-4",
|
|
3937
4224
|
actions: "items-center"
|
|
4225
|
+
},
|
|
4226
|
+
vertical: {
|
|
4227
|
+
descriptionWrapper: "",
|
|
4228
|
+
actions: "items-start mt-2.5"
|
|
4229
|
+
}
|
|
4230
|
+
},
|
|
4231
|
+
title: {
|
|
4232
|
+
true: {
|
|
4233
|
+
description: "mt-1"
|
|
3938
4234
|
}
|
|
3939
4235
|
}
|
|
3940
4236
|
},
|
|
@@ -4046,7 +4342,7 @@ function getTemplates(options) {
|
|
|
4046
4342
|
templates.push({
|
|
4047
4343
|
filename: "types/b24ui.d.ts",
|
|
4048
4344
|
getContents: () => replaceBrackets(`import * as b24ui from '#build/b24ui'
|
|
4049
|
-
import type { DeepPartial } from '
|
|
4345
|
+
import type { DeepPartial } from '@bitrix24/b24ui-nuxt'
|
|
4050
4346
|
import type { defaultConfig } from 'tailwind-variants'
|
|
4051
4347
|
|
|
4052
4348
|
type AppConfigUI = {
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
8
|
+
const templates = require('./shared/b24ui-nuxt.D5cXbZSx.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.CrjojW8t.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "0.1
|
|
4
|
+
"version": "0.2.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"types": "./vue-plugin.d.ts"
|
|
36
36
|
},
|
|
37
37
|
"./runtime/*": "./dist/runtime/*",
|
|
38
|
+
"./utils/*": {
|
|
39
|
+
"types": "./dist/runtime/utils/*.d.ts",
|
|
40
|
+
"import": "./dist/runtime/utils/*.js"
|
|
41
|
+
},
|
|
38
42
|
"./locale": {
|
|
39
43
|
"types": "./dist/runtime/locale/index.d.ts",
|
|
40
44
|
"import": "./dist/runtime/locale/index.js"
|
|
@@ -113,7 +117,7 @@
|
|
|
113
117
|
"superstruct": "^2.0.2",
|
|
114
118
|
"valibot": "^0.42.1",
|
|
115
119
|
"vitepress": "^1.5.0",
|
|
116
|
-
"vitest": "^3.0.
|
|
120
|
+
"vitest": "^3.0.5",
|
|
117
121
|
"vitest-environment-nuxt": "^1.0.1",
|
|
118
122
|
"vue-tsc": "^2.2.0",
|
|
119
123
|
"yup": "^1.6.1",
|
|
@@ -134,6 +138,23 @@
|
|
|
134
138
|
"unplugin": "^2.1.2",
|
|
135
139
|
"vite": "^6.0.7"
|
|
136
140
|
},
|
|
141
|
+
"keywords": [
|
|
142
|
+
"bitrix24-ui",
|
|
143
|
+
"bitrix24",
|
|
144
|
+
"nuxt",
|
|
145
|
+
"vue3",
|
|
146
|
+
"tailwindcss",
|
|
147
|
+
"component library",
|
|
148
|
+
"vue",
|
|
149
|
+
"vuejs",
|
|
150
|
+
"vue.js",
|
|
151
|
+
"typescript",
|
|
152
|
+
"vue-components",
|
|
153
|
+
"ui",
|
|
154
|
+
"tailwind",
|
|
155
|
+
"framework",
|
|
156
|
+
"ui-framework"
|
|
157
|
+
],
|
|
137
158
|
"scripts": {
|
|
138
159
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue && nuxt-component-meta playground --outputDir ../src/.component-meta/",
|
|
139
160
|
"dev:prepare_short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue",
|