@bitrix24/b24ui-nuxt 0.1.7 → 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 +1 -0
- package/.nuxt/b24ui/input-menu.ts +591 -0
- package/.nuxt/b24ui/input.ts +5 -5
- package/.nuxt/b24ui/select-menu.ts +6 -6
- package/.nuxt/b24ui/select.ts +6 -6
- package/.nuxt/b24ui/toast.ts +18 -8
- package/README.md +8 -8
- package/dist/meta.cjs +5409 -331
- package/dist/meta.d.cts +5409 -331
- package/dist/meta.d.mts +5409 -331
- package/dist/meta.d.ts +5409 -331
- package/dist/meta.mjs +5409 -331
- 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/InputMenu.vue +507 -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/useComponentIcons.d.ts +2 -2
- package/dist/runtime/composables/useToast.d.ts +5 -4
- package/dist/runtime/composables/useToast.js +2 -2
- package/dist/runtime/types/index.d.ts +1 -0
- package/dist/runtime/types/index.js +1 -0
- package/dist/runtime/types/utils.d.ts +5 -0
- package/dist/shared/{b24ui-nuxt.vQRZieQw.mjs → b24ui-nuxt.CrjojW8t.mjs} +292 -31
- package/dist/shared/{b24ui-nuxt.ZUYaG6CJ.cjs → b24ui-nuxt.D5cXbZSx.cjs} +292 -31
- 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 +18 -1
|
@@ -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",
|
|
@@ -2729,7 +2978,7 @@ const select = () => {
|
|
|
2729
2978
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
2730
2979
|
content: [
|
|
2731
2980
|
"w-[var(--reka-popper-anchor-width)]",
|
|
2732
|
-
|
|
2981
|
+
// 'max-h-60',
|
|
2733
2982
|
// 'h-[var(--reka-popper-available-height)]',
|
|
2734
2983
|
"bg-white dark:bg-base-dark",
|
|
2735
2984
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
@@ -3717,7 +3966,7 @@ const toast = {
|
|
|
3717
3966
|
"text-sm font-normal",
|
|
3718
3967
|
"text-white dark:text-base-150"
|
|
3719
3968
|
].join(" "),
|
|
3720
|
-
wrapper: "w-0 flex-1 flex flex-col
|
|
3969
|
+
wrapper: "w-0 flex-1 flex flex-col",
|
|
3721
3970
|
title: "font-medium",
|
|
3722
3971
|
description: "",
|
|
3723
3972
|
icon: "shrink-0 size-6",
|
|
@@ -3725,7 +3974,7 @@ const toast = {
|
|
|
3725
3974
|
avatarSize: "xl",
|
|
3726
3975
|
actions: "flex gap-1.5 shrink-0",
|
|
3727
3976
|
progress: "absolute inset-x-0 bottom-0 h-1 z-[-1]",
|
|
3728
|
-
close: "p-0
|
|
3977
|
+
close: "p-0 text-base-350 dark:text-base-350 hover:text-base-400 dark:hover:text-base-400"
|
|
3729
3978
|
},
|
|
3730
3979
|
variants: {
|
|
3731
3980
|
color: {
|
|
@@ -3770,14 +4019,19 @@ const toast = {
|
|
|
3770
4019
|
progress: "bg-ai-500 dark:bg-ai-500"
|
|
3771
4020
|
}
|
|
3772
4021
|
},
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
root: "items-start",
|
|
3776
|
-
actions: "items-start mt-1"
|
|
3777
|
-
},
|
|
3778
|
-
false: {
|
|
4022
|
+
orientation: {
|
|
4023
|
+
horizontal: {
|
|
3779
4024
|
root: "items-center",
|
|
3780
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"
|
|
3781
4035
|
}
|
|
3782
4036
|
}
|
|
3783
4037
|
},
|
|
@@ -3896,6 +4150,7 @@ const theme = {
|
|
|
3896
4150
|
form: form,
|
|
3897
4151
|
formField: formField,
|
|
3898
4152
|
input: input,
|
|
4153
|
+
inputMenu: inputMenu,
|
|
3899
4154
|
kbd: kbd,
|
|
3900
4155
|
link: link,
|
|
3901
4156
|
progress: progress,
|
|
@@ -3920,13 +4175,14 @@ const themeProse = {
|
|
|
3920
4175
|
const descriptionList = {
|
|
3921
4176
|
slots: {
|
|
3922
4177
|
root: "w-full shrink-0",
|
|
3923
|
-
// ????
|
|
3924
4178
|
legend: "font-semibold text-black dark:text-base-150",
|
|
3925
4179
|
text: "text-base-500 dark:text-base-400",
|
|
3926
4180
|
container: "grid grid-cols-1 sm:grid-cols-[min(50%,theme(spacing.80))_auto]",
|
|
3927
4181
|
labelWrapper: [
|
|
3928
|
-
"col-start-1 border-t
|
|
3929
|
-
"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"
|
|
3930
4186
|
].join(" "),
|
|
3931
4187
|
icon: "shrink-0 size-6 text-base-500 dark:text-base-400",
|
|
3932
4188
|
avatar: "shrink-0",
|
|
@@ -3962,14 +4218,19 @@ const descriptionList = {
|
|
|
3962
4218
|
footer: "mt-4 p-4"
|
|
3963
4219
|
}
|
|
3964
4220
|
},
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
descriptionWrapper: "",
|
|
3968
|
-
actions: "items-start mt-2.5"
|
|
3969
|
-
},
|
|
3970
|
-
false: {
|
|
4221
|
+
orientation: {
|
|
4222
|
+
horizontal: {
|
|
3971
4223
|
descriptionWrapper: "w-full flex flex-row items-center justify-between gap-4",
|
|
3972
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"
|
|
3973
4234
|
}
|
|
3974
4235
|
}
|
|
3975
4236
|
},
|
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"
|
|
@@ -138,6 +138,23 @@
|
|
|
138
138
|
"unplugin": "^2.1.2",
|
|
139
139
|
"vite": "^6.0.7"
|
|
140
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
|
+
],
|
|
141
158
|
"scripts": {
|
|
142
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/",
|
|
143
160
|
"dev:prepare_short": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && vite build playground-vue",
|