@bitrix24/b24ui-nuxt 0.4.1 → 0.4.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/button.ts +8 -0
- package/.nuxt/b24ui/modal.ts +22 -4
- package/.nuxt/b24ui/prose/a.ts +5 -0
- package/.nuxt/b24ui/prose/blockquote.ts +5 -0
- package/.nuxt/b24ui/prose/code.ts +31 -0
- package/.nuxt/b24ui/prose/em.ts +5 -0
- package/.nuxt/b24ui/prose/h1.ts +6 -0
- package/.nuxt/b24ui/prose/{prose-h2.ts → h2.ts} +1 -1
- package/.nuxt/b24ui/prose/{prose-h3.ts → h3.ts} +1 -1
- package/.nuxt/b24ui/prose/h4.ts +16 -0
- package/.nuxt/b24ui/prose/h5.ts +16 -0
- package/.nuxt/b24ui/prose/h6.ts +16 -0
- package/.nuxt/b24ui/prose/hr.ts +5 -0
- package/.nuxt/b24ui/prose/ol.ts +5 -0
- package/.nuxt/b24ui/prose/pre.ts +6 -0
- package/.nuxt/b24ui/prose/strong.ts +5 -0
- package/.nuxt/b24ui/prose/ul.ts +5 -0
- package/.nuxt/b24ui/slideover.ts +25 -7
- package/dist/meta.cjs +1543 -220
- package/dist/meta.d.cts +1543 -220
- package/dist/meta.d.mts +1543 -220
- package/dist/meta.d.ts +1543 -220
- package/dist/meta.mjs +1543 -220
- package/dist/module.cjs +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Avatar.vue +2 -1
- package/dist/runtime/components/Button.vue +83 -45
- package/dist/runtime/components/Modal.vue +13 -2
- package/dist/runtime/components/RadioGroup.vue +3 -1
- package/dist/runtime/components/Slideover.vue +10 -2
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/runtime/prose/A.vue +32 -0
- package/dist/runtime/prose/Blockquote.vue +34 -0
- package/dist/runtime/prose/Code.vue +42 -0
- package/dist/runtime/prose/Em.vue +32 -0
- package/dist/runtime/prose/{ProseH1.vue → H1.vue} +1 -3
- package/dist/runtime/prose/{ProseH2.vue → H2.vue} +1 -3
- package/dist/runtime/prose/{ProseH3.vue → H3.vue} +1 -3
- package/dist/runtime/prose/H4.vue +34 -0
- package/dist/runtime/prose/H5.vue +34 -0
- package/dist/runtime/prose/H6.vue +34 -0
- package/dist/runtime/prose/Hr.vue +28 -0
- package/dist/runtime/prose/{ProseLi.vue → Li.vue} +1 -3
- package/dist/runtime/prose/{ProseOl.vue → Ol.vue} +1 -3
- package/dist/runtime/prose/{ProseP.vue → P.vue} +1 -3
- package/dist/runtime/prose/Pre.vue +44 -0
- package/dist/runtime/prose/Strong.vue +34 -0
- package/dist/runtime/prose/{ProseUl.vue → Ul.vue} +1 -3
- package/dist/runtime/types/index.d.ts +17 -7
- package/dist/runtime/types/index.js +17 -7
- package/dist/runtime/vue/components/Link.vue +2 -2
- package/dist/shared/{b24ui-nuxt.BGGwh89R.mjs → b24ui-nuxt.BRwBcdAH.mjs} +276 -40
- package/dist/shared/{b24ui-nuxt.CnMGpwQb.cjs → b24ui-nuxt.C1tIhR9w.cjs} +276 -40
- package/dist/unplugin.cjs +3 -3
- package/dist/unplugin.mjs +3 -3
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +7 -7
- package/.nuxt/b24ui/prose/prose-h1.ts +0 -6
- package/.nuxt/b24ui/prose/prose-ol.ts +0 -5
- package/.nuxt/b24ui/prose/prose-ul.ts +0 -5
- /package/.nuxt/b24ui/prose/{prose-li.ts → li.ts} +0 -0
- /package/.nuxt/b24ui/prose/{prose-p.ts → p.ts} +0 -0
package/.nuxt/b24ui/button.ts
CHANGED
|
@@ -132,6 +132,14 @@ export default {
|
|
|
132
132
|
"normalCase": {
|
|
133
133
|
"true": "font-semibold normal-case",
|
|
134
134
|
"false": "font-bold uppercase"
|
|
135
|
+
},
|
|
136
|
+
"active": {
|
|
137
|
+
"true": {
|
|
138
|
+
"base": ""
|
|
139
|
+
},
|
|
140
|
+
"false": {
|
|
141
|
+
"base": ""
|
|
142
|
+
}
|
|
135
143
|
}
|
|
136
144
|
},
|
|
137
145
|
"compoundVariants": [
|
package/.nuxt/b24ui/modal.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
const overlayBlur = [
|
|
2
|
+
"auto",
|
|
3
|
+
"on",
|
|
4
|
+
"off"
|
|
5
|
+
] as const
|
|
6
|
+
|
|
1
7
|
export default {
|
|
2
8
|
"slots": {
|
|
3
|
-
"overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30
|
|
9
|
+
"overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
4
10
|
"content": "py-md2 px-5 fixed bg-white dark:bg-base-950 flex flex-col focus:outline-none",
|
|
5
11
|
"header": "flex items-center gap-1.5 pe-5 pt-0",
|
|
6
12
|
"wrapper": "min-h-lg2",
|
|
@@ -11,10 +17,21 @@ export default {
|
|
|
11
17
|
"close": "absolute top-2 end-1.5 p-0.5"
|
|
12
18
|
},
|
|
13
19
|
"variants": {
|
|
20
|
+
"overlayBlur": {
|
|
21
|
+
"auto": {
|
|
22
|
+
"overlay": "motion-safe:backdrop-blur-sm"
|
|
23
|
+
},
|
|
24
|
+
"on": {
|
|
25
|
+
"overlay": "backdrop-blur-sm"
|
|
26
|
+
},
|
|
27
|
+
"off": {
|
|
28
|
+
"overlay": ""
|
|
29
|
+
}
|
|
30
|
+
},
|
|
14
31
|
"transition": {
|
|
15
32
|
"true": {
|
|
16
|
-
"overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
17
|
-
"content": "data-[state=open]:animate-[scale-in_200ms_ease-out] data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
33
|
+
"overlay": "motion-safe:data-[state=open]:animate-[fade-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[fade-out_200ms_ease-in]",
|
|
34
|
+
"content": "motion-safe:data-[state=open]:animate-[scale-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[scale-out_200ms_ease-in]"
|
|
18
35
|
}
|
|
19
36
|
},
|
|
20
37
|
"fullscreen": {
|
|
@@ -32,6 +49,7 @@ export default {
|
|
|
32
49
|
}
|
|
33
50
|
},
|
|
34
51
|
"defaultVariants": {
|
|
35
|
-
"scrollbarThin": true
|
|
52
|
+
"scrollbarThin": true,
|
|
53
|
+
"overlayBlur": "auto" as typeof overlayBlur[number]
|
|
36
54
|
}
|
|
37
55
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"base": "cursor-pointer text-blue-700 dark:text-blue-300 hover:underline underline-offset-2 focus-visible:outline-info-text transition-colors [&>code]:transition-colors [&>code]:ring-dashed hover:[&>code]:text-blue-700 hover:[&>code]:bg-blue-250 hover:[&>code]:ring-blue-250 dark:hover:[&>code]:text-blue-700 dark:hover:[&>code]:bg-blue-250 dark:hover:[&>code]:ring-blue-250"
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const color = [
|
|
2
|
+
"default",
|
|
3
|
+
"danger",
|
|
4
|
+
"success",
|
|
5
|
+
"warning",
|
|
6
|
+
"primary",
|
|
7
|
+
"secondary",
|
|
8
|
+
"collab",
|
|
9
|
+
"ai"
|
|
10
|
+
] as const
|
|
11
|
+
|
|
12
|
+
export default {
|
|
13
|
+
"slots": {
|
|
14
|
+
"base": "px-1.5 py-0.5 font-b24-system-mono font-medium text-sm leading-normal rounded-md inline-block"
|
|
15
|
+
},
|
|
16
|
+
"variants": {
|
|
17
|
+
"color": {
|
|
18
|
+
"default": "ring ring-inset text-base-800 bg-base-150 ring-base-300 dark:text-base-950 dark:bg-base-200 dark:ring-base-800",
|
|
19
|
+
"danger": "ring ring-inset text-red-800 bg-red-250 ring-red-250 dark:text-red-800 dark:bg-red-350 dark:ring-red-350",
|
|
20
|
+
"success": "ring ring-inset text-green-800 bg-green-300 ring-green-300 dark:text-green-800 dark:bg-green-330 dark:ring-green-330",
|
|
21
|
+
"warning": "ring ring-inset text-orange-800 bg-orange-300 ring-orange-300 dark:text-orange-800 dark:bg-orange-400 dark:ring-orange-400",
|
|
22
|
+
"primary": "ring ring-inset text-blue-700 bg-blue-250 ring-blue-250 dark:text-blue-700 dark:bg-blue-300 dark:ring-blue-300",
|
|
23
|
+
"secondary": "ring ring-inset text-white bg-cyan-350 ring-cyan-350 dark:text-cyan-100 dark:bg-cyan-400 dark:ring-cyan-400",
|
|
24
|
+
"collab": "ring ring-inset text-collab-800 bg-collab-300 ring-collab-300 dark:text-collab-800 dark:bg-collab-300 dark:ring-collab-300",
|
|
25
|
+
"ai": "ring ring-inset text-ai-500 bg-ai-150 ring-ai-150 dark:text-ai-600 dark:bg-ai-200 dark:ring-ai-200"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"defaultVariants": {
|
|
29
|
+
"color": "default" as typeof color[number]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"base": "relative mb-2
|
|
3
|
+
"base": "relative mb-2 [&>a>code]:text-xl/7 [&>a>code]:font-bold text-base-master dark:text-base-150 scroll-mt-[calc(48px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(48px+var(--b24ui-header-height))] [&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text hover:[&>a>code]:text-info-text [&>a>code]:border-dashed [&>a>code]:transition-colors text-h2",
|
|
4
4
|
"leading": [
|
|
5
5
|
"absolute -ms-8 top-1 p-1",
|
|
6
6
|
"rounded-md hidden lg:flex",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
"slots": {
|
|
3
|
-
"base": "relative mb-2
|
|
3
|
+
"base": "relative mb-2 [&>a>code]:text-lg/7 [&>a>code]:font-bold text-base-master dark:text-base-150 scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))] [&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text hover:[&>a>code]:text-info-text [&>a>code]:border-dashed [&>a>code]:transition-colors text-h3",
|
|
4
4
|
"leading": [
|
|
5
5
|
"absolute -ms-8 top-0.5 p-1",
|
|
6
6
|
"rounded-md hidden lg:flex",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"base": "relative mb-2 [&>a>code]:text-lg/7 [&>a>code]:font-bold text-base-master dark:text-base-150 scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))] [&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text hover:[&>a>code]:text-info-text [&>a>code]:border-dashed [&>a>code]:transition-colors text-h4",
|
|
4
|
+
"leading": [
|
|
5
|
+
"absolute -ms-8 top-0.5 p-1",
|
|
6
|
+
"rounded-md hidden lg:flex",
|
|
7
|
+
"opacity-0 group-hover:opacity-100 group-focus:opacity-100",
|
|
8
|
+
"bg-base-100 dark:bg-base-900",
|
|
9
|
+
"text-base-500 dark:text-base-600",
|
|
10
|
+
"hover:text-outline-info-text",
|
|
11
|
+
"transition"
|
|
12
|
+
],
|
|
13
|
+
"leadingIcon": "size-4 shrink-0",
|
|
14
|
+
"link": "group lg:ps-2 lg:-ms-2"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"base": "relative mb-2 [&>a>code]:text-lg/7 [&>a>code]:font-bold text-base-master dark:text-base-150 scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))] [&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text hover:[&>a>code]:text-info-text [&>a>code]:border-dashed [&>a>code]:transition-colors text-h5",
|
|
4
|
+
"leading": [
|
|
5
|
+
"absolute -ms-8 top-0.5 p-1",
|
|
6
|
+
"rounded-md hidden lg:flex",
|
|
7
|
+
"opacity-0 group-hover:opacity-100 group-focus:opacity-100",
|
|
8
|
+
"bg-base-100 dark:bg-base-900",
|
|
9
|
+
"text-base-500 dark:text-base-600",
|
|
10
|
+
"hover:text-outline-info-text",
|
|
11
|
+
"transition"
|
|
12
|
+
],
|
|
13
|
+
"leadingIcon": "size-4 shrink-0",
|
|
14
|
+
"link": "group lg:ps-2 lg:-ms-2"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
"slots": {
|
|
3
|
+
"base": "relative mb-2 [&>a>code]:text-lg/7 [&>a>code]:font-bold text-base-master dark:text-base-150 scroll-mt-[calc(32px+45px+var(--b24ui-header-height))] lg:scroll-mt-[calc(32px+var(--b24ui-header-height))] [&>a]:focus-visible:outline-info-text hover:[&>a>code]:border-info-text hover:[&>a>code]:text-info-text [&>a>code]:border-dashed [&>a>code]:transition-colors text-h6",
|
|
4
|
+
"leading": [
|
|
5
|
+
"absolute -ms-8 top-0.5 p-1",
|
|
6
|
+
"rounded-md hidden lg:flex",
|
|
7
|
+
"opacity-0 group-hover:opacity-100 group-focus:opacity-100",
|
|
8
|
+
"bg-base-100 dark:bg-base-900",
|
|
9
|
+
"text-base-500 dark:text-base-600",
|
|
10
|
+
"hover:text-outline-info-text",
|
|
11
|
+
"transition"
|
|
12
|
+
],
|
|
13
|
+
"leadingIcon": "size-4 shrink-0",
|
|
14
|
+
"link": "group lg:ps-2 lg:-ms-2"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/.nuxt/b24ui/slideover.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const overlayBlur = [
|
|
2
|
+
"auto",
|
|
3
|
+
"on",
|
|
4
|
+
"off"
|
|
5
|
+
] as const
|
|
6
|
+
|
|
1
7
|
const side = [
|
|
2
8
|
"top",
|
|
3
9
|
"right",
|
|
@@ -7,7 +13,7 @@ const side = [
|
|
|
7
13
|
|
|
8
14
|
export default {
|
|
9
15
|
"slots": {
|
|
10
|
-
"overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30
|
|
16
|
+
"overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
11
17
|
"content": "fixed bg-base-50 dark:bg-base-950 sm:shadow-lg flex flex-col focus:outline-none",
|
|
12
18
|
"header": "mt-4 px-5 flex items-center gap-1.5",
|
|
13
19
|
"wrapper": "min-h-2xl",
|
|
@@ -19,6 +25,17 @@ export default {
|
|
|
19
25
|
"safeList": "group-hover:rounded-full group-hover:border-1 group-hover:border-current"
|
|
20
26
|
},
|
|
21
27
|
"variants": {
|
|
28
|
+
"overlayBlur": {
|
|
29
|
+
"auto": {
|
|
30
|
+
"overlay": "motion-safe:backdrop-blur-sm"
|
|
31
|
+
},
|
|
32
|
+
"on": {
|
|
33
|
+
"overlay": "backdrop-blur-sm"
|
|
34
|
+
},
|
|
35
|
+
"off": {
|
|
36
|
+
"overlay": ""
|
|
37
|
+
}
|
|
38
|
+
},
|
|
22
39
|
"side": {
|
|
23
40
|
"top": {
|
|
24
41
|
"content": "inset-x-0 top-0 max-h-full"
|
|
@@ -35,7 +52,7 @@ export default {
|
|
|
35
52
|
},
|
|
36
53
|
"transition": {
|
|
37
54
|
"true": {
|
|
38
|
-
"overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
55
|
+
"overlay": "motion-safe:data-[state=open]:animate-[fade-in_200ms_ease-out] motion-safe:data-[state=closed]:animate-[fade-out_200ms_ease-in]"
|
|
39
56
|
}
|
|
40
57
|
},
|
|
41
58
|
"scrollbarThin": {
|
|
@@ -70,33 +87,34 @@ export default {
|
|
|
70
87
|
"transition": true,
|
|
71
88
|
"side": "top" as typeof side[number],
|
|
72
89
|
"class": {
|
|
73
|
-
"content": "data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
|
|
90
|
+
"content": "motion-safe:data-[state=open]:animate-[slide-in-from-top_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-top_200ms_ease-in-out]"
|
|
74
91
|
}
|
|
75
92
|
},
|
|
76
93
|
{
|
|
77
94
|
"transition": true,
|
|
78
95
|
"side": "right" as typeof side[number],
|
|
79
96
|
"class": {
|
|
80
|
-
"content": "data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
|
|
97
|
+
"content": "motion-safe:data-[state=open]:animate-[slide-in-from-right_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-right_200ms_ease-in-out]"
|
|
81
98
|
}
|
|
82
99
|
},
|
|
83
100
|
{
|
|
84
101
|
"transition": true,
|
|
85
102
|
"side": "bottom" as typeof side[number],
|
|
86
103
|
"class": {
|
|
87
|
-
"content": "data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
|
|
104
|
+
"content": "motion-safe:data-[state=open]:animate-[slide-in-from-bottom_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-bottom_200ms_ease-in-out]"
|
|
88
105
|
}
|
|
89
106
|
},
|
|
90
107
|
{
|
|
91
108
|
"transition": true,
|
|
92
109
|
"side": "left" as typeof side[number],
|
|
93
110
|
"class": {
|
|
94
|
-
"content": "data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
|
|
111
|
+
"content": "motion-safe:data-[state=open]:animate-[slide-in-from-left_200ms_ease-in-out] motion-safe:data-[state=closed]:animate-[slide-out-to-left_200ms_ease-in-out]"
|
|
95
112
|
}
|
|
96
113
|
}
|
|
97
114
|
],
|
|
98
115
|
"defaultVariants": {
|
|
99
116
|
"side": "right" as typeof side[number],
|
|
100
|
-
"scrollbarThin": true
|
|
117
|
+
"scrollbarThin": true,
|
|
118
|
+
"overlayBlur": "auto" as typeof overlayBlur[number]
|
|
101
119
|
}
|
|
102
120
|
}
|