@bitrix24/b24ui-nuxt 0.3.3 → 0.3.4

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 (35) 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/dist/meta.cjs +467 -4
  5. package/dist/meta.d.cts +467 -4
  6. package/dist/meta.d.mts +467 -4
  7. package/dist/meta.d.ts +467 -4
  8. package/dist/meta.mjs +467 -4
  9. package/dist/module.cjs +1 -2
  10. package/dist/module.json +1 -1
  11. package/dist/module.mjs +1 -2
  12. package/dist/runtime/components/App.vue +3 -4
  13. package/dist/runtime/components/Modal.vue +4 -2
  14. package/dist/runtime/components/OverlayProvider.vue +29 -0
  15. package/dist/runtime/components/Slideover.vue +193 -0
  16. package/dist/runtime/composables/useOverlay.d.ts +30 -0
  17. package/dist/runtime/composables/useOverlay.js +71 -0
  18. package/dist/runtime/types/index.d.ts +1 -0
  19. package/dist/runtime/types/index.js +1 -0
  20. package/dist/runtime/vue/composables/useAppConfig.d.ts +1 -0
  21. package/dist/runtime/vue/composables/useAppConfig.js +2 -0
  22. package/dist/runtime/vue/stubs.d.ts +10 -0
  23. package/dist/runtime/vue/stubs.js +22 -0
  24. package/dist/shared/{b24ui-nuxt.ngV6AJEg.cjs → b24ui-nuxt.BpFAFOHo.cjs} +120 -1
  25. package/dist/shared/{b24ui-nuxt.BTln9cW-.mjs → b24ui-nuxt.BqTJ-9uP.mjs} +120 -1
  26. package/dist/unplugin.cjs +3 -3
  27. package/dist/unplugin.mjs +3 -3
  28. package/dist/vite.cjs +1 -1
  29. package/dist/vite.mjs +1 -1
  30. package/package.json +1 -1
  31. package/dist/runtime/components/ModalProvider.vue +0 -12
  32. package/dist/runtime/composables/useModal.d.ts +0 -17
  33. package/dist/runtime/composables/useModal.js +0 -46
  34. package/dist/runtime/plugins/modal.d.ts +0 -2
  35. 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
+ }
package/dist/meta.cjs CHANGED
@@ -22312,13 +22312,13 @@ const B24UIMeta = {
22312
22312
  "exposed": []
22313
22313
  }
22314
22314
  },
22315
- "B24ModalProvider": {
22315
+ "B24OverlayProvider": {
22316
22316
  "mode": "all",
22317
22317
  "prefetch": false,
22318
22318
  "preload": false,
22319
- "pascalName": "B24ModalProvider",
22320
- "kebabName": "b24-modal-provider",
22321
- "chunkName": "components/b24-modal-provider",
22319
+ "pascalName": "B24OverlayProvider",
22320
+ "kebabName": "b24-overlay-provider",
22321
+ "chunkName": "components/b24-overlay-provider",
22322
22322
  "priority": 0,
22323
22323
  "_scanned": true,
22324
22324
  "meta": {
@@ -31842,6 +31842,469 @@ const B24UIMeta = {
31842
31842
  "exposed": []
31843
31843
  }
31844
31844
  },
31845
+ "B24Slideover": {
31846
+ "mode": "all",
31847
+ "prefetch": false,
31848
+ "preload": false,
31849
+ "pascalName": "B24Slideover",
31850
+ "kebabName": "b24-slideover",
31851
+ "chunkName": "components/b24-slideover",
31852
+ "priority": 0,
31853
+ "_scanned": true,
31854
+ "meta": {
31855
+ "type": 0,
31856
+ "props": [
31857
+ {
31858
+ "name": "title",
31859
+ "global": false,
31860
+ "description": "",
31861
+ "tags": [],
31862
+ "required": false,
31863
+ "type": "string | undefined",
31864
+ "schema": {
31865
+ "kind": "enum",
31866
+ "type": "string | undefined",
31867
+ "schema": {
31868
+ "0": "undefined",
31869
+ "1": "string"
31870
+ }
31871
+ }
31872
+ },
31873
+ {
31874
+ "name": "description",
31875
+ "global": false,
31876
+ "description": "",
31877
+ "tags": [],
31878
+ "required": false,
31879
+ "type": "string | undefined",
31880
+ "schema": {
31881
+ "kind": "enum",
31882
+ "type": "string | undefined",
31883
+ "schema": {
31884
+ "0": "undefined",
31885
+ "1": "string"
31886
+ }
31887
+ }
31888
+ },
31889
+ {
31890
+ "name": "content",
31891
+ "global": false,
31892
+ "description": "The content of the slideover.",
31893
+ "tags": [],
31894
+ "required": false,
31895
+ "type": "Omit<DialogContentProps, \"as\" | \"asChild\" | \"forceMount\"> | undefined",
31896
+ "schema": {
31897
+ "kind": "enum",
31898
+ "type": "Omit<DialogContentProps, \"as\" | \"asChild\" | \"forceMount\"> | undefined",
31899
+ "schema": {
31900
+ "0": "undefined",
31901
+ "1": "Omit<DialogContentProps, \"as\" | \"asChild\" | \"forceMount\">"
31902
+ }
31903
+ }
31904
+ },
31905
+ {
31906
+ "name": "overlay",
31907
+ "global": false,
31908
+ "description": "Render an overlay behind the slideover.",
31909
+ "tags": [
31910
+ {
31911
+ "name": "defaultValue",
31912
+ "text": "true"
31913
+ }
31914
+ ],
31915
+ "required": false,
31916
+ "type": "boolean | undefined",
31917
+ "schema": {
31918
+ "kind": "enum",
31919
+ "type": "boolean | undefined",
31920
+ "schema": {
31921
+ "0": "undefined",
31922
+ "1": "false",
31923
+ "2": "true"
31924
+ }
31925
+ },
31926
+ "default": "true"
31927
+ },
31928
+ {
31929
+ "name": "transition",
31930
+ "global": false,
31931
+ "description": "Animate the slideover when opening or closing.",
31932
+ "tags": [
31933
+ {
31934
+ "name": "defaultValue",
31935
+ "text": "true"
31936
+ }
31937
+ ],
31938
+ "required": false,
31939
+ "type": "boolean | undefined",
31940
+ "schema": {
31941
+ "kind": "enum",
31942
+ "type": "boolean | undefined",
31943
+ "schema": {
31944
+ "0": "undefined",
31945
+ "1": "false",
31946
+ "2": "true"
31947
+ }
31948
+ },
31949
+ "default": "true"
31950
+ },
31951
+ {
31952
+ "name": "side",
31953
+ "global": false,
31954
+ "description": "",
31955
+ "tags": [],
31956
+ "required": false,
31957
+ "type": "\"bottom\" | \"top\" | \"left\" | \"right\" | undefined",
31958
+ "schema": {
31959
+ "kind": "enum",
31960
+ "type": "\"bottom\" | \"top\" | \"left\" | \"right\" | undefined",
31961
+ "schema": {
31962
+ "0": "undefined",
31963
+ "1": "\"bottom\"",
31964
+ "2": "\"top\"",
31965
+ "3": "\"left\"",
31966
+ "4": "\"right\""
31967
+ }
31968
+ },
31969
+ "default": "\"right\""
31970
+ },
31971
+ {
31972
+ "name": "portal",
31973
+ "global": false,
31974
+ "description": "Render the slideover in a portal.",
31975
+ "tags": [
31976
+ {
31977
+ "name": "defaultValue",
31978
+ "text": "true"
31979
+ }
31980
+ ],
31981
+ "required": false,
31982
+ "type": "boolean | undefined",
31983
+ "schema": {
31984
+ "kind": "enum",
31985
+ "type": "boolean | undefined",
31986
+ "schema": {
31987
+ "0": "undefined",
31988
+ "1": "false",
31989
+ "2": "true"
31990
+ }
31991
+ },
31992
+ "default": "true"
31993
+ },
31994
+ {
31995
+ "name": "close",
31996
+ "global": false,
31997
+ "description": "Display a close button to dismiss the slideover.\n`{ color: 'primary' }`{lang=\"ts\"} for `left`, `right`\n`{ color: 'link' }`{lang=\"ts\"} for `top`, `bottom`",
31998
+ "tags": [
31999
+ {
32000
+ "name": "defaultValue",
32001
+ "text": "true"
32002
+ }
32003
+ ],
32004
+ "required": false,
32005
+ "type": "boolean | Partial<ButtonProps> | undefined",
32006
+ "schema": {
32007
+ "kind": "enum",
32008
+ "type": "boolean | Partial<ButtonProps> | undefined",
32009
+ "schema": {
32010
+ "0": "undefined",
32011
+ "1": "false",
32012
+ "2": "true",
32013
+ "3": "Partial<ButtonProps>"
32014
+ }
32015
+ },
32016
+ "default": "true"
32017
+ },
32018
+ {
32019
+ "name": "closeIcon",
32020
+ "global": false,
32021
+ "description": "The icon displayed in the close button.",
32022
+ "tags": [
32023
+ {
32024
+ "name": "defaultValue",
32025
+ "text": "icons.close"
32026
+ }
32027
+ ],
32028
+ "required": false,
32029
+ "type": "IconComponent | undefined",
32030
+ "schema": {
32031
+ "kind": "enum",
32032
+ "type": "IconComponent | undefined",
32033
+ "schema": {
32034
+ "0": "undefined",
32035
+ "1": {
32036
+ "kind": "event",
32037
+ "type": "(props: HTMLAttributes & VNodeProps & {}, ctx: Omit<{ attrs: Data; slots: Readonly<InternalSlots>; emit: (event: string, ...args: any[]) => void; expose: <Exposed extends Record<string, any> = Record<...>>(exposed?: Exposed | undefined) => void; }, \"expose\">): any",
32038
+ "schema": []
32039
+ }
32040
+ }
32041
+ }
32042
+ },
32043
+ {
32044
+ "name": "dismissible",
32045
+ "global": false,
32046
+ "description": "When `false`, the slideover will not close when clicking outside or pressing escape.",
32047
+ "tags": [
32048
+ {
32049
+ "name": "defaultValue",
32050
+ "text": "true"
32051
+ }
32052
+ ],
32053
+ "required": false,
32054
+ "type": "boolean | undefined",
32055
+ "schema": {
32056
+ "kind": "enum",
32057
+ "type": "boolean | undefined",
32058
+ "schema": {
32059
+ "0": "undefined",
32060
+ "1": "false",
32061
+ "2": "true"
32062
+ }
32063
+ },
32064
+ "default": "true"
32065
+ },
32066
+ {
32067
+ "name": "scrollbarThin",
32068
+ "global": false,
32069
+ "description": "",
32070
+ "tags": [],
32071
+ "required": false,
32072
+ "type": "boolean | undefined",
32073
+ "schema": {
32074
+ "kind": "enum",
32075
+ "type": "boolean | undefined",
32076
+ "schema": {
32077
+ "0": "undefined",
32078
+ "1": "false",
32079
+ "2": "true"
32080
+ }
32081
+ },
32082
+ "default": "true"
32083
+ },
32084
+ {
32085
+ "name": "b24ui",
32086
+ "global": false,
32087
+ "description": "",
32088
+ "tags": [],
32089
+ "required": false,
32090
+ "type": "Partial<{ overlay: string; content: string; header: string; wrapper: string; body: string; footer: string; title: string; description: string; close: string; }> | undefined",
32091
+ "schema": {
32092
+ "kind": "enum",
32093
+ "type": "Partial<{ overlay: string; content: string; header: string; wrapper: string; body: string; footer: string; title: string; description: string; close: string; }> | undefined",
32094
+ "schema": {
32095
+ "0": "undefined",
32096
+ "1": "Partial<{ overlay: string; content: string; header: string; wrapper: string; body: string; footer: string; title: string; description: string; close: string; }>"
32097
+ }
32098
+ }
32099
+ },
32100
+ {
32101
+ "name": "open",
32102
+ "global": false,
32103
+ "description": "The controlled open state of the dialog. Can be binded as `v-model:open`.",
32104
+ "tags": [],
32105
+ "required": false,
32106
+ "type": "boolean | undefined",
32107
+ "schema": {
32108
+ "kind": "enum",
32109
+ "type": "boolean | undefined",
32110
+ "schema": {
32111
+ "0": "undefined",
32112
+ "1": "false",
32113
+ "2": "true"
32114
+ }
32115
+ }
32116
+ },
32117
+ {
32118
+ "name": "defaultOpen",
32119
+ "global": false,
32120
+ "description": "The open state of the dialog when it is initially rendered. Use when you do not need to control its open state.",
32121
+ "tags": [],
32122
+ "required": false,
32123
+ "type": "boolean | undefined",
32124
+ "schema": {
32125
+ "kind": "enum",
32126
+ "type": "boolean | undefined",
32127
+ "schema": {
32128
+ "0": "undefined",
32129
+ "1": "false",
32130
+ "2": "true"
32131
+ }
32132
+ }
32133
+ },
32134
+ {
32135
+ "name": "modal",
32136
+ "global": false,
32137
+ "description": "The modality of the dialog When set to `true`, <br>\r\ninteraction with outside elements will be disabled and only dialog content will be visible to screen readers.",
32138
+ "tags": [],
32139
+ "required": false,
32140
+ "type": "boolean | undefined",
32141
+ "schema": {
32142
+ "kind": "enum",
32143
+ "type": "boolean | undefined",
32144
+ "schema": {
32145
+ "0": "undefined",
32146
+ "1": "false",
32147
+ "2": "true"
32148
+ }
32149
+ },
32150
+ "default": "true"
32151
+ }
32152
+ ],
32153
+ "slots": [
32154
+ {
32155
+ "name": "default",
32156
+ "type": "{ open: boolean; }",
32157
+ "description": "",
32158
+ "schema": {
32159
+ "kind": "object",
32160
+ "type": "{ open: boolean; }",
32161
+ "schema": {
32162
+ "open": {
32163
+ "name": "open",
32164
+ "global": false,
32165
+ "description": "",
32166
+ "tags": [],
32167
+ "required": true,
32168
+ "type": "boolean",
32169
+ "schema": {
32170
+ "kind": "enum",
32171
+ "type": "boolean",
32172
+ "schema": {
32173
+ "0": "false",
32174
+ "1": "true"
32175
+ }
32176
+ }
32177
+ }
32178
+ }
32179
+ }
32180
+ },
32181
+ {
32182
+ "name": "content",
32183
+ "type": "{} | undefined",
32184
+ "description": "",
32185
+ "schema": {
32186
+ "kind": "enum",
32187
+ "type": "{} | undefined",
32188
+ "schema": {
32189
+ "0": "undefined",
32190
+ "1": {
32191
+ "kind": "object",
32192
+ "type": "{}",
32193
+ "schema": {}
32194
+ }
32195
+ }
32196
+ }
32197
+ },
32198
+ {
32199
+ "name": "header",
32200
+ "type": "{} | undefined",
32201
+ "description": "",
32202
+ "schema": {
32203
+ "kind": "enum",
32204
+ "type": "{} | undefined",
32205
+ "schema": {
32206
+ "0": "undefined",
32207
+ "1": {
32208
+ "kind": "object",
32209
+ "type": "{}",
32210
+ "schema": {}
32211
+ }
32212
+ }
32213
+ }
32214
+ },
32215
+ {
32216
+ "name": "title",
32217
+ "type": "{} | undefined",
32218
+ "description": "",
32219
+ "schema": {
32220
+ "kind": "enum",
32221
+ "type": "{} | undefined",
32222
+ "schema": {
32223
+ "0": "undefined",
32224
+ "1": {
32225
+ "kind": "object",
32226
+ "type": "{}",
32227
+ "schema": {}
32228
+ }
32229
+ }
32230
+ }
32231
+ },
32232
+ {
32233
+ "name": "description",
32234
+ "type": "{} | undefined",
32235
+ "description": "",
32236
+ "schema": {
32237
+ "kind": "enum",
32238
+ "type": "{} | undefined",
32239
+ "schema": {
32240
+ "0": "undefined",
32241
+ "1": {
32242
+ "kind": "object",
32243
+ "type": "{}",
32244
+ "schema": {}
32245
+ }
32246
+ }
32247
+ }
32248
+ },
32249
+ {
32250
+ "name": "close",
32251
+ "type": "{ b24ui: any; }",
32252
+ "description": "",
32253
+ "schema": {
32254
+ "kind": "object",
32255
+ "type": "{ b24ui: any; }",
32256
+ "schema": {
32257
+ "b24ui": {
32258
+ "name": "b24ui",
32259
+ "global": false,
32260
+ "description": "",
32261
+ "tags": [],
32262
+ "required": true,
32263
+ "type": "any",
32264
+ "schema": "any"
32265
+ }
32266
+ }
32267
+ }
32268
+ },
32269
+ {
32270
+ "name": "body",
32271
+ "type": "{} | undefined",
32272
+ "description": "",
32273
+ "schema": {
32274
+ "kind": "enum",
32275
+ "type": "{} | undefined",
32276
+ "schema": {
32277
+ "0": "undefined",
32278
+ "1": {
32279
+ "kind": "object",
32280
+ "type": "{}",
32281
+ "schema": {}
32282
+ }
32283
+ }
32284
+ }
32285
+ },
32286
+ {
32287
+ "name": "footer",
32288
+ "type": "{} | undefined",
32289
+ "description": "",
32290
+ "schema": {
32291
+ "kind": "enum",
32292
+ "type": "{} | undefined",
32293
+ "schema": {
32294
+ "0": "undefined",
32295
+ "1": {
32296
+ "kind": "object",
32297
+ "type": "{}",
32298
+ "schema": {}
32299
+ }
32300
+ }
32301
+ }
32302
+ }
32303
+ ],
32304
+ "events": [],
32305
+ "exposed": []
32306
+ }
32307
+ },
31845
32308
  "B24Switch": {
31846
32309
  "mode": "all",
31847
32310
  "prefetch": false,