@bitrix24/b24ui-nuxt 0.6.2 → 0.6.3
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 +1 -1
- package/.nuxt/b24ui/input-menu.ts +1 -1
- package/.nuxt/b24ui/popover.ts +1 -1
- package/.nuxt/b24ui/select-menu.ts +4 -1
- package/.nuxt/b24ui/select.ts +1 -1
- package/.nuxt/b24ui/tooltip.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/utils/link.js +1 -0
- package/dist/shared/{b24ui-nuxt.wBs9vEU5.mjs → b24ui-nuxt.jU270f-Q.mjs} +13 -5
- package/dist/unplugin.mjs +14 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ const result = typeof template === 'function' ? (template as Function)({
|
|
|
24
24
|
|
|
25
25
|
const theme = {
|
|
26
26
|
"slots": {
|
|
27
|
-
"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 motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe: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",
|
|
27
|
+
"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 motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-dropdown-menu-content-transform-origin) divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1 pointer-events-auto",
|
|
28
28
|
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
29
29
|
"group": "p-1 isolate",
|
|
30
30
|
"label": "w-full flex items-center font-semibold text-base-900 dark:text-base-200",
|
|
@@ -65,7 +65,7 @@ const theme = {
|
|
|
65
65
|
"trailingIcon": "shrink-0 text-base-400",
|
|
66
66
|
"tag": "pointer-events-none select-none absolute z-10 -top-1.5 right-3 h-sm px-1.5 flex flex-col justify-center items-center font-b24-primary font-bold text-6xs leading-none uppercase rounded-full",
|
|
67
67
|
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
68
|
-
"content": "w-(--reka-
|
|
68
|
+
"content": "w-(--reka-combobox-trigger-width) min-w-fit bg-white dark:bg-base-dark shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-combobox-content-transform-origin) pointer-events-auto",
|
|
69
69
|
"viewport": "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
|
70
70
|
"group": "p-1 isolate",
|
|
71
71
|
"empty": "py-2 text-center text-sm text-base-500 dark:text-base-600",
|
package/.nuxt/b24ui/popover.ts
CHANGED
|
@@ -6,7 +6,7 @@ const result = typeof template === 'function' ? (template as Function)({
|
|
|
6
6
|
|
|
7
7
|
const theme = {
|
|
8
8
|
"slots": {
|
|
9
|
-
"content": "bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] focus:outline-none pointer-events-auto",
|
|
9
|
+
"content": "bg-white dark:bg-base-dark shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800 motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-popover-content-transform-origin) focus:outline-none pointer-events-auto",
|
|
10
10
|
"arrow": "fill-white dark:fill-base-dark stroke-base-300 dark:stroke-base-800"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -67,7 +67,10 @@ const theme = {
|
|
|
67
67
|
"value": "truncate pointer-events-none",
|
|
68
68
|
"placeholder": "truncate text-base-400 dark:text-base-300",
|
|
69
69
|
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
70
|
-
"content":
|
|
70
|
+
"content": [
|
|
71
|
+
"w-(--reka-select-trigger-width) min-w-fit bg-white dark:bg-base-dark shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto",
|
|
72
|
+
"origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"
|
|
73
|
+
],
|
|
71
74
|
"scrollUpDownButton": "flex items-center justify-center h-[25px] cursor-default backdrop-blur text-base-800 bg-white dark:text-base-100 dark:bg-base-dark",
|
|
72
75
|
"scrollUpDownButtonIcon": "",
|
|
73
76
|
"viewport": "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
package/.nuxt/b24ui/select.ts
CHANGED
|
@@ -67,7 +67,7 @@ const theme = {
|
|
|
67
67
|
"value": "truncate pointer-events-none",
|
|
68
68
|
"placeholder": "truncate text-base-400 dark:text-base-300",
|
|
69
69
|
"arrow": "fill-base-master/10 dark:fill-base-100/20",
|
|
70
|
-
"content": "w-(--reka-
|
|
70
|
+
"content": "w-(--reka-select-trigger-width) min-w-fit bg-white dark:bg-base-dark shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800 overflow-hidden data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] origin-(--reka-select-content-transform-origin) pointer-events-auto",
|
|
71
71
|
"scrollUpDownButton": "flex items-center justify-center h-[25px] cursor-default backdrop-blur text-base-800 bg-white dark:text-base-100 dark:bg-base-dark",
|
|
72
72
|
"scrollUpDownButtonIcon": "",
|
|
73
73
|
"viewport": "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
package/.nuxt/b24ui/tooltip.ts
CHANGED
|
@@ -6,7 +6,7 @@ const result = typeof template === 'function' ? (template as Function)({
|
|
|
6
6
|
|
|
7
7
|
const theme = {
|
|
8
8
|
"slots": {
|
|
9
|
-
"content": "flex items-center gap-1 shadow-sm rounded-2xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] min-h-6 px-2 py-1 text-xs bg-base-dark text-white dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20 pointer-events-auto",
|
|
9
|
+
"content": "flex items-center gap-1 shadow-sm rounded-2xs select-none data-[state=delayed-open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in] min-h-6 px-2 py-1 text-xs bg-base-dark text-white dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20 origin-(--reka-tooltip-content-transform-origin) pointer-events-auto",
|
|
10
10
|
"arrow": "fill-base-dark dark:fill-base-100/20",
|
|
11
11
|
"text": "text-pretty max-w-[200px]",
|
|
12
12
|
"kbds": "hidden lg:inline-flex items-center shrink-0 gap-0.5 before:content-[''] before:me-0.5",
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.jU270f-Q.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
7
7
|
const name = "@bitrix24/b24ui-nuxt";
|
|
8
|
-
const version = "0.6.
|
|
8
|
+
const version = "0.6.3";
|
|
9
9
|
|
|
10
10
|
const module = defineNuxtModule({
|
|
11
11
|
meta: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
2
|
import { kebabCase } from 'scule';
|
|
3
3
|
import { addTypeTemplate, addTemplate } from '@nuxt/kit';
|
|
4
|
-
import { defuFn
|
|
4
|
+
import { defuFn } from 'defu';
|
|
5
5
|
|
|
6
6
|
const getDefaultUiConfig = () => ({});
|
|
7
7
|
const defaultOptions = {
|
|
@@ -1822,6 +1822,7 @@ const dropdownMenu = {
|
|
|
1822
1822
|
"shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
1823
1823
|
"overflow-y-auto",
|
|
1824
1824
|
"motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
1825
|
+
"origin-(--reka-dropdown-menu-content-transform-origin)",
|
|
1825
1826
|
"divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
|
1826
1827
|
"pointer-events-auto"
|
|
1827
1828
|
].join(" "),
|
|
@@ -2785,13 +2786,15 @@ const inputMenu = () => {
|
|
|
2785
2786
|
trailing: "group absolute inset-y-0 end-0 flex items-center disabled:cursor-not-allowed disabled:opacity-75",
|
|
2786
2787
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
2787
2788
|
content: [
|
|
2788
|
-
"w-(--reka-
|
|
2789
|
+
"w-(--reka-combobox-trigger-width)",
|
|
2789
2790
|
// 'max-h-60',
|
|
2791
|
+
"min-w-fit",
|
|
2790
2792
|
// 'h-(--reka-popper-available-height)',
|
|
2791
2793
|
"bg-white dark:bg-base-dark",
|
|
2792
2794
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
2793
2795
|
"overflow-hidden",
|
|
2794
2796
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
2797
|
+
"origin-(--reka-combobox-content-transform-origin)",
|
|
2795
2798
|
"pointer-events-auto"
|
|
2796
2799
|
].join(" "),
|
|
2797
2800
|
viewport: "divide-y divide-base-master/10 dark:divide-base-100/20 scroll-py-1",
|
|
@@ -4615,6 +4618,7 @@ const popover = {
|
|
|
4615
4618
|
"bg-white dark:bg-base-dark",
|
|
4616
4619
|
"shadow-lg rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
4617
4620
|
"motion-safe:data-[state=open]:animate-[scale-in_100ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
4621
|
+
"origin-(--reka-popover-content-transform-origin)",
|
|
4618
4622
|
"focus:outline-none pointer-events-auto"
|
|
4619
4623
|
].join(" "),
|
|
4620
4624
|
arrow: "fill-white dark:fill-base-dark stroke-base-300 dark:stroke-base-800"
|
|
@@ -5407,13 +5411,15 @@ const select = () => {
|
|
|
5407
5411
|
placeholder: "truncate text-base-400 dark:text-base-300",
|
|
5408
5412
|
arrow: "fill-base-master/10 dark:fill-base-100/20",
|
|
5409
5413
|
content: [
|
|
5410
|
-
"w-(--reka-
|
|
5414
|
+
"w-(--reka-select-trigger-width)",
|
|
5411
5415
|
// 'max-h-60',
|
|
5416
|
+
"min-w-fit",
|
|
5412
5417
|
// 'h-(--reka-popper-available-height)',
|
|
5413
5418
|
"bg-white dark:bg-base-dark",
|
|
5414
5419
|
"shadow-md rounded-2xs ring ring-base-300 dark:ring-base-800",
|
|
5415
5420
|
"overflow-hidden",
|
|
5416
5421
|
"data-[state=open]:animate-[scale-in_100ms_ease-out] data-[state=closed]:animate-[scale-out_100ms_ease-in]",
|
|
5422
|
+
"origin-(--reka-select-content-transform-origin)",
|
|
5417
5423
|
"pointer-events-auto"
|
|
5418
5424
|
].join(" "),
|
|
5419
5425
|
scrollUpDownButton: [
|
|
@@ -5470,10 +5476,11 @@ const select = () => {
|
|
|
5470
5476
|
};
|
|
5471
5477
|
|
|
5472
5478
|
const selectMenu = () => {
|
|
5473
|
-
return
|
|
5479
|
+
return defuFn({
|
|
5474
5480
|
slots: {
|
|
5475
5481
|
input: "border-b border-base-300 dark:dark:border-base-800",
|
|
5476
|
-
focusScope: "flex flex-col min-h-0"
|
|
5482
|
+
focusScope: "flex flex-col min-h-0",
|
|
5483
|
+
content: (content) => [content, "origin-(--reka-combobox-content-transform-origin) w-(--reka-combobox-trigger-width)"]
|
|
5477
5484
|
},
|
|
5478
5485
|
variants: {
|
|
5479
5486
|
addNew: {
|
|
@@ -6739,6 +6746,7 @@ const tooltip = {
|
|
|
6739
6746
|
"min-h-6 px-2 py-1 text-xs",
|
|
6740
6747
|
"bg-base-dark text-white",
|
|
6741
6748
|
"dark:bg-base-dark dark:text-base-150 dark:ring dark:ring-base-100/20",
|
|
6749
|
+
"origin-(--reka-tooltip-content-transform-origin)",
|
|
6742
6750
|
"pointer-events-auto"
|
|
6743
6751
|
].join(" "),
|
|
6744
6752
|
arrow: "fill-base-dark dark:fill-base-100/20",
|
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.jU270f-Q.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -98,6 +98,19 @@ function AppConfigPlugin(options, appConfig) {
|
|
|
98
98
|
return `
|
|
99
99
|
export default ${JSON.stringify(appConfig)}
|
|
100
100
|
`;
|
|
101
|
+
},
|
|
102
|
+
vite: {
|
|
103
|
+
config() {
|
|
104
|
+
return {
|
|
105
|
+
test: {
|
|
106
|
+
server: {
|
|
107
|
+
deps: {
|
|
108
|
+
inline: ["@bitrix24/b24ui"]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
101
114
|
}
|
|
102
115
|
};
|
|
103
116
|
}
|
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED