@bitrix24/b24ui-nuxt 0.3.3 → 0.3.5

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.
Files changed (36) hide show
  1. package/.nuxt/b24ui/container.ts +1 -1
  2. package/.nuxt/b24ui/index.ts +1 -0
  3. package/.nuxt/b24ui/slideover.ts +101 -0
  4. package/.nuxt/b24ui/toaster.ts +1 -1
  5. package/dist/meta.cjs +696 -233
  6. package/dist/meta.d.cts +696 -233
  7. package/dist/meta.d.mts +696 -233
  8. package/dist/meta.d.ts +696 -233
  9. package/dist/meta.mjs +696 -233
  10. package/dist/module.cjs +1 -2
  11. package/dist/module.json +1 -1
  12. package/dist/module.mjs +1 -2
  13. package/dist/runtime/components/App.vue +3 -4
  14. package/dist/runtime/components/Modal.vue +4 -2
  15. package/dist/runtime/components/OverlayProvider.vue +29 -0
  16. package/dist/runtime/components/Slideover.vue +193 -0
  17. package/dist/runtime/composables/useOverlay.d.ts +30 -0
  18. package/dist/runtime/composables/useOverlay.js +71 -0
  19. package/dist/runtime/types/index.d.ts +1 -0
  20. package/dist/runtime/types/index.js +1 -0
  21. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  22. package/dist/runtime/vue/composables/useAppConfig.js +2 -0
  23. package/dist/runtime/vue/stubs.d.ts +10 -0
  24. package/dist/runtime/vue/stubs.js +22 -0
  25. package/dist/shared/{b24ui-nuxt.BTln9cW-.mjs → b24ui-nuxt.CeQRWQD-.mjs} +121 -2
  26. package/dist/shared/{b24ui-nuxt.ngV6AJEg.cjs → b24ui-nuxt.M7bz91Io.cjs} +121 -2
  27. package/dist/unplugin.cjs +3 -3
  28. package/dist/unplugin.mjs +3 -3
  29. package/dist/vite.cjs +1 -1
  30. package/dist/vite.mjs +1 -1
  31. package/package.json +1 -1
  32. package/dist/runtime/components/ModalProvider.vue +0 -12
  33. package/dist/runtime/composables/useModal.d.ts +0 -17
  34. package/dist/runtime/composables/useModal.js +0 -46
  35. package/dist/runtime/plugins/modal.d.ts +0 -2
  36. package/dist/runtime/plugins/modal.js +0 -10
@@ -1,3 +1,3 @@
1
1
  export default {
2
- "base": "max-w-[80rem] mx-auto px-4 sm:px-6 lg:px-8"
2
+ "base": "max-w-[80rem] mx-auto px-5"
3
3
  }
@@ -25,6 +25,7 @@ export { default as select } from './select'
25
25
  export { default as selectMenu } from './select-menu'
26
26
  export { default as separator } from './separator'
27
27
  export { default as skeleton } from './skeleton'
28
+ export { default as slideover } from './slideover'
28
29
  export { default as switch } from './switch'
29
30
  export { default as tabs } from './tabs'
30
31
  export { default as textarea } from './textarea'
@@ -0,0 +1,101 @@
1
+ const side = [
2
+ "top",
3
+ "right",
4
+ "bottom",
5
+ "left"
6
+ ] as const
7
+
8
+ export default {
9
+ "slots": {
10
+ "overlay": "fixed inset-0 bg-base-950/20 dark:bg-base-950/30",
11
+ "content": "fixed bg-base-50 dark:bg-base-950 sm:shadow-lg flex flex-col focus:outline-none",
12
+ "header": "mt-4 px-5 flex items-center gap-1.5",
13
+ "wrapper": "min-h-2xl",
14
+ "body": "mx-0 mt-2 flex-1 overflow-y-auto",
15
+ "footer": "bg-white dark:bg-base-950 flex items-center justify-center gap-3 py-4 border-t border-t-1 border-t-base-900/10 dark:border-t-white/20 shadow-top-md p-2 pr-(--scrollbar-width)",
16
+ "title": "font-b24-system font-light text-4.5xl leading-none text-base-900 dark:text-base-150",
17
+ "description": "mt-2 mb-1 text-base-500 dark:text-base-400 text-sm",
18
+ "close": "absolute"
19
+ },
20
+ "variants": {
21
+ "side": {
22
+ "top": {
23
+ "content": "inset-x-0 top-0 max-h-full"
24
+ },
25
+ "right": {
26
+ "content": "right-0 inset-y-0 w-full max-w-[28rem]"
27
+ },
28
+ "bottom": {
29
+ "content": "inset-x-0 bottom-0 max-h-full"
30
+ },
31
+ "left": {
32
+ "content": "left-0 inset-y-0 w-full max-w-[28rem]"
33
+ }
34
+ },
35
+ "transition": {
36
+ "true": {
37
+ "overlay": "data-[state=open]:animate-[fade-in_200ms_ease-out] data-[state=closed]:animate-[fade-out_200ms_ease-in]"
38
+ }
39
+ },
40
+ "scrollbarThin": {
41
+ "true": {
42
+ "body": "scrollbar-thin"
43
+ }
44
+ }
45
+ },
46
+ "compoundVariants": [
47
+ {
48
+ "side": "right" as typeof side[number],
49
+ "class": {
50
+ "close": "pl-1.5 pr-2.5 top-3 -translate-x-full left-0 rounded-l-full"
51
+ }
52
+ },
53
+ {
54
+ "side": "left" as typeof side[number],
55
+ "class": {
56
+ "close": "pr-1.5 pl-2.5 top-3 translate-x-full right-0 rounded-r-full"
57
+ }
58
+ },
59
+ {
60
+ "side": [
61
+ "top" as typeof side[number],
62
+ "bottom" as typeof side[number]
63
+ ],
64
+ "class": {
65
+ "close": "top-4 end-4"
66
+ }
67
+ },
68
+ {
69
+ "transition": true,
70
+ "side": "top" as typeof side[number],
71
+ "class": {
72
+ "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]"
73
+ }
74
+ },
75
+ {
76
+ "transition": true,
77
+ "side": "right" as typeof side[number],
78
+ "class": {
79
+ "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]"
80
+ }
81
+ },
82
+ {
83
+ "transition": true,
84
+ "side": "bottom" as typeof side[number],
85
+ "class": {
86
+ "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]"
87
+ }
88
+ },
89
+ {
90
+ "transition": true,
91
+ "side": "left" as typeof side[number],
92
+ "class": {
93
+ "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]"
94
+ }
95
+ }
96
+ ],
97
+ "defaultVariants": {
98
+ "side": "right" as typeof side[number],
99
+ "scrollbarThin": true
100
+ }
101
+ }
@@ -16,7 +16,7 @@ const swipeDirection = [
16
16
 
17
17
  export default {
18
18
  "slots": {
19
- "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none",
19
+ "viewport": "fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none mr-(--scrollbar-width)",
20
20
  "base": "pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:invisible data-[state=closed]:animate-[toast-closed_200ms_ease-in-out] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_ease-in-out] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out"
21
21
  },
22
22
  "variants": {