@bitrix24/b24ui-nuxt 0.2.8 → 0.2.9
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/avatar.ts +1 -1
- package/.nuxt/b24ui/modal.ts +3 -2
- package/.nuxt/b24ui/prose/table-wrapper.ts +46 -0
- package/README.md +1 -1
- package/dist/meta.cjs +12375 -15587
- package/dist/meta.d.cts +12375 -15587
- package/dist/meta.d.mts +12375 -15587
- package/dist/meta.d.ts +12375 -15587
- package/dist/meta.mjs +12375 -15587
- package/dist/module.cjs +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Alert.vue +2 -2
- package/dist/runtime/components/Avatar.vue +21 -34
- package/dist/runtime/components/Form.vue +6 -4
- package/dist/runtime/components/Modal.vue +20 -15
- package/dist/runtime/components/Toast.vue +2 -2
- package/dist/runtime/components/Toaster.vue +2 -1
- package/dist/runtime/components/Tooltip.vue +1 -1
- package/dist/runtime/components/prose/TableWrapper.vue +67 -0
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- 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/shared/{b24ui-nuxt.BJy-SIWG.mjs → b24ui-nuxt.0h2uYsyZ.mjs} +91 -5
- package/dist/shared/{b24ui-nuxt.DBz6Z5xw.cjs → b24ui-nuxt.DcPkWX-m.cjs} +91 -5
- package/dist/unplugin.cjs +13 -1
- package/dist/unplugin.mjs +13 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +12 -12
package/.nuxt/b24ui/avatar.ts
CHANGED
|
@@ -13,7 +13,7 @@ const size = [
|
|
|
13
13
|
export default {
|
|
14
14
|
"slots": {
|
|
15
15
|
"root": "inline-flex items-center justify-center shrink-0 select-none overflow-hidden rounded-full align-middle bg-base-100 dark:bg-base-900",
|
|
16
|
-
"image": "h-full w-full rounded-[inherit] object-cover
|
|
16
|
+
"image": "h-full w-full rounded-[inherit] object-cover",
|
|
17
17
|
"fallback": "font-medium text-base-500 dark:text-base-600 truncate",
|
|
18
18
|
"icon": "text-base-500 shrink-0 dark:text-base-600"
|
|
19
19
|
},
|
package/.nuxt/b24ui/modal.ts
CHANGED
|
@@ -2,7 +2,8 @@ export default {
|
|
|
2
2
|
"slots": {
|
|
3
3
|
"overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
|
|
4
4
|
"content": "py-md2 px-5 fixed bg-white dark:bg-base-950 flex flex-col focus:outline-none",
|
|
5
|
-
"header": "pe-5 pt-0",
|
|
5
|
+
"header": "flex items-center gap-1.5 pe-5 pt-0 min-h-lg2",
|
|
6
|
+
"wrapper": "",
|
|
6
7
|
"body": "flex-1 overflow-y-auto my-2.5 text-md leading-normal",
|
|
7
8
|
"footer": "flex items-center justify-center gap-3 mt-2.5 pt-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20",
|
|
8
9
|
"title": "font-bold text-md leading-normal text-base-900 dark:text-base-150",
|
|
@@ -21,7 +22,7 @@ export default {
|
|
|
21
22
|
"content": "inset-0"
|
|
22
23
|
},
|
|
23
24
|
"false": {
|
|
24
|
-
"content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(
|
|
25
|
+
"content": "top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[calc(100vw-2rem)] max-w-[32rem] max-h-[calc(100dvh-2rem)] sm:max-h-[calc(100dvh-4rem)] rounded-md shadow-lg ring ring-base-300 dark:ring-base-800"
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const size = [
|
|
2
|
+
"xs",
|
|
3
|
+
"sm",
|
|
4
|
+
"md",
|
|
5
|
+
"lg"
|
|
6
|
+
] as const
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
"slots": {
|
|
10
|
+
"base": "font-b24-primary [&>table]:text-md [&>table]:relative [&>table]:w-full [&>table]:text-left [&>table]:rtl:text-right [&>table]:text-base-900 dark:[&>table]:text-base-200 [&>table>thead>tr>td]:align-middle [&>table>thead>tr>th]:align-middle [&>table>tbody>tr>td]:align-middle [&>table>tbody>tr>th]:align-middle [&>table>tfoot>tr>td]:align-middle [&>table>tfoot>tr>th]:align-middle [&>table>thead>tr>td]:whitespace-nowrap [&>table>thead>tr>td]:text-md [&>table>thead>tr>td]:font-normal [&>table>thead>tr>th]:whitespace-nowrap [&>table>thead>tr>th]:text-md [&>table>thead>tr>th]:font-normal [&>table>tbody>tr>th]:whitespace-nowrap [&>table>tbody>tr>th]:text-md [&>table>tbody>tr>th]:font-normal [&>table>tfoot>tr>td]:whitespace-nowrap [&>table>tfoot>tr>td]:text-md [&>table>tfoot>tr>td]:font-normal [&>table>tfoot>tr>th]:whitespace-nowrap [&>table>tfoot>tr>th]:text-md [&>table>tfoot>tr>th]:font-normal [&>table>thead>tr]:border-base-300 dark:[&>table>thead>tr]:border-base-800 [&>table>tbody>tr]:border-base-master/10 dark:[&>table>tbody>tr]:border-base-100/20 [&>table>tfoot]:border-base-300 dark:[&>table>tfoot]:border-base-800 [&>table>thead>tr]:border-b [&>table>tbody>tr:not(:last-child)]:border-b [&>table>tfoot]:border-t"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"size": {
|
|
14
|
+
"xs": "[&>table>thead>tr>td]:text-xs [&>table>thead>tr>td]:px-2 [&>table>thead>tr>td]:py-1 [&>table>thead>tr>th]:text-xs [&>table>thead>tr>th]:px-2 [&>table>thead>tr>th]:py-1 [&>table>tbody>tr>td]:text-xs [&>table>tbody>tr>td]:px-2 [&>table>tbody>tr>td]:py-1 [&>table>tbody>tr>th]:text-xs [&>table>tbody>tr>th]:px-2 [&>table>tbody>tr>th]:py-1 [&>table>tfoot>tr>td]:text-xs [&>table>tfoot>tr>td]:px-2 [&>table>tfoot>tr>td]:py-1 [&>table>tfoot>tr>th]:text-xs [&>table>tfoot>tr>th]:px-2 [&>table>tfoot>tr>th]:py-1",
|
|
15
|
+
"sm": "[&>table>thead>tr>td]:text-sm [&>table>thead>tr>td]:px-3 [&>table>thead>tr>td]:py-2 [&>table>thead>tr>th]:text-sm [&>table>thead>tr>th]:px-3 [&>table>thead>tr>th]:py-2 [&>table>tbody>tr>td]:text-sm [&>table>tbody>tr>td]:px-3 [&>table>tbody>tr>td]:py-2 [&>table>tbody>tr>th]:text-sm [&>table>tbody>tr>th]:px-3 [&>table>tbody>tr>th]:py-2 [&>table>tfoot>tr>td]:text-sm [&>table>tfoot>tr>td]:px-3 [&>table>tfoot>tr>td]:py-2 [&>table>tfoot>tr>th]:text-sm [&>table>tfoot>tr>th]:px-3 [&>table>tfoot>tr>th]:py-2",
|
|
16
|
+
"md": "[&>table>thead>tr>td]:text-md [&>table>thead>tr>td]:px-4 [&>table>thead>tr>td]:py-3.5 [&>table>thead>tr>th]:text-md [&>table>thead>tr>th]:px-4 [&>table>thead>tr>th]:py-3.5 [&>table>tbody>tr>td]:text-md [&>table>tbody>tr>td]:px-4 [&>table>tbody>tr>td]:py-3.5 [&>table>tbody>tr>th]:text-md [&>table>tbody>tr>th]:px-4 [&>table>tbody>tr>th]:py-3.5 [&>table>tfoot>tr>td]:text-md [&>table>tfoot>tr>td]:px-4 [&>table>tfoot>tr>td]:py-3.5 [&>table>tfoot>tr>th]:text-md [&>table>tfoot>tr>th]:px-4 [&>table>tfoot>tr>th]:py-3.5",
|
|
17
|
+
"lg": "[&>table>thead>tr>td]:text-lg [&>table>thead>tr>td]:px-5 [&>table>thead>tr>td]:py-4 [&>table>thead>tr>th]:text-lg [&>table>thead>tr>th]:px-5 [&>table>thead>tr>th]:py-4 [&>table>tbody>tr>td]:text-lg [&>table>tbody>tr>td]:px-5 [&>table>tbody>tr>td]:py-4 [&>table>tbody>tr>th]:text-lg [&>table>tbody>tr>th]:px-5 [&>table>tbody>tr>th]:py-4 [&>table>tfoot>tr>td]:text-lg [&>table>tfoot>tr>td]:px-5 [&>table>tfoot>tr>td]:py-4 [&>table>tfoot>tr>th]:text-lg [&>table>tfoot>tr>th]:px-5 [&>table>tfoot>tr>th]:py-4"
|
|
18
|
+
},
|
|
19
|
+
"rounded": {
|
|
20
|
+
"true": "rounded-md",
|
|
21
|
+
"false": "rounded"
|
|
22
|
+
},
|
|
23
|
+
"zebra": {
|
|
24
|
+
"true": "[&>table>tbody>tr]:even:bg-base-30 [&>table>tbody>tr]:even:[&>td]:bg-base-30 [&>table>tbody>tr]:even:[&>th]:bg-base-30 dark:[&>table>tbody>tr]:even:bg-base-dark dark:[&>table>tbody>tr]:even:[&>td]:bg-base-dark dark:[&>table>tbody>tr]:even:[&>th]:bg-base-dark"
|
|
25
|
+
},
|
|
26
|
+
"pinRows": {
|
|
27
|
+
"true": "[&>table>thead>tr]:sticky [&>table>thead>tr]:top-0 [&>table>thead>tr]:z-1 [&>table>thead>tr]:bg-white dark:[&>table>thead>tr]:bg-base-dark [&>table>thead>tr]:shadow-bottom-sm [&>table>tfoot>tr]:sticky [&>table>tfoot>tr]:bottom-0 [&>table>tfoot>tr]:z-1 [&>table>tfoot>tr]:bg-white dark:[&>table>tfoot>tr]:bg-base-dark [&>table>tfoot>tr]:shadow-top-sm"
|
|
28
|
+
},
|
|
29
|
+
"pinCols": {
|
|
30
|
+
"true": "[&>table>thead>tr>th]:sticky [&>table>thead>tr>th]:right-0 [&>table>thead>tr>th]:left-0 [&>table>thead>tr>th]:bg-base-20 dark:[&>table>thead>tr>th]:bg-base-dark [&>table>tbody>tr>th]:sticky [&>table>tbody>tr>th]:right-0 [&>table>tbody>tr>th]:left-0 [&>table>tbody>tr>th]:bg-base-20 dark:[&>table>tbody>tr>th]:bg-base-dark [&>table>tfoot>tr>th]:sticky [&>table>tfoot>tr>th]:right-0 [&>table>tfoot>tr>th]:left-0 [&>table>tfoot>tr>th]:bg-base-20 dark:[&>table>tfoot>tr>th]:bg-base-dark"
|
|
31
|
+
},
|
|
32
|
+
"rowHover": {
|
|
33
|
+
"true": "[&>table>tbody>tr]:hover:bg-base-40 [&>table>tbody>tr]:hover:[&>td]:bg-base-40 [&>table>tbody>tr]:hover:[&>th]:bg-base-40 dark:[&>table>tbody>tr]:hover:bg-base-900 dark:[&>table>tbody>tr]:hover:[&>td]:bg-base-900 dark:[&>table>tbody>tr]:hover:[&>th]:bg-base-900"
|
|
34
|
+
},
|
|
35
|
+
"bordered": {
|
|
36
|
+
"true": "border border-base-master/10 dark:border-base-800"
|
|
37
|
+
},
|
|
38
|
+
"scrollbarThin": {
|
|
39
|
+
"true": "scrollbar-thin"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"defaultVariants": {
|
|
43
|
+
"size": "md" as typeof size[number],
|
|
44
|
+
"scrollbarThin": true
|
|
45
|
+
}
|
|
46
|
+
}
|
package/README.md
CHANGED
|
@@ -96,6 +96,6 @@ Learn more in the [installation guide](https://bitrix24.github.io/b24ui/guide/in
|
|
|
96
96
|
- [nuxt/nuxt](https://github.com/nuxt/nuxt)
|
|
97
97
|
- [nuxt/ui](https://github.com/nuxt/ui)
|
|
98
98
|
- [nuxt-modules/color-mode](https://github.com/nuxt-modules/color-mode)
|
|
99
|
-
- [unovue/
|
|
99
|
+
- [unovue/reka-ui](https://github.com/unovue/reka-ui)
|
|
100
100
|
- [tailwindlabs/tailwindcss](https://github.com/tailwindlabs/tailwindcss)
|
|
101
101
|
- [vueuse/vueuse](https://github.com/vueuse/vueuse)
|