@bitrix24/b24ui-nuxt 0.5.11 → 0.6.0

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 (199) hide show
  1. package/.nuxt/b24ui/input-menu.ts +2 -2
  2. package/.nuxt/b24ui/select-menu.ts +4 -4
  3. package/.nuxt/b24ui/select.ts +2 -2
  4. package/dist/meta.d.mts +5208 -5061
  5. package/dist/meta.mjs +5208 -5061
  6. package/dist/module.json +3 -3
  7. package/dist/module.mjs +2 -2
  8. package/dist/runtime/components/Advice.vue +27 -54
  9. package/dist/runtime/components/Advice.vue.d.ts +170 -0
  10. package/dist/runtime/components/Alert.vue +35 -96
  11. package/dist/runtime/components/Alert.vue.d.ts +464 -0
  12. package/dist/runtime/components/App.vue +24 -34
  13. package/dist/runtime/components/App.vue.d.ts +23 -0
  14. package/dist/runtime/components/Avatar.vue +43 -81
  15. package/dist/runtime/components/Avatar.vue.d.ts +281 -0
  16. package/dist/runtime/components/AvatarGroup.vue +40 -76
  17. package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
  18. package/dist/runtime/components/Badge.vue +40 -83
  19. package/dist/runtime/components/Badge.vue.d.ts +517 -0
  20. package/dist/runtime/components/Button.vue +96 -155
  21. package/dist/runtime/components/Button.vue.d.ts +640 -0
  22. package/dist/runtime/components/ButtonGroup.vue +19 -51
  23. package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
  24. package/dist/runtime/components/Calendar.vue +73 -152
  25. package/dist/runtime/components/Calendar.vue.d.ts +437 -0
  26. package/dist/runtime/components/Checkbox.vue +42 -73
  27. package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
  28. package/dist/runtime/components/Chip.vue +26 -74
  29. package/dist/runtime/components/Chip.vue.d.ts +271 -0
  30. package/dist/runtime/components/Collapsible.vue +22 -41
  31. package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
  32. package/dist/runtime/components/Container.vue +13 -27
  33. package/dist/runtime/components/Container.vue.d.ts +27 -0
  34. package/dist/runtime/components/Countdown.vue +153 -378
  35. package/dist/runtime/components/Countdown.vue.d.ts +356 -0
  36. package/dist/runtime/components/DescriptionList.vue +78 -149
  37. package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
  38. package/dist/runtime/components/DropdownMenu.vue +38 -139
  39. package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
  40. package/dist/runtime/components/DropdownMenuContent.vue +68 -80
  41. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
  42. package/dist/runtime/components/Form.vue +130 -217
  43. package/dist/runtime/components/Form.vue.d.ts +55 -0
  44. package/dist/runtime/components/FormField.vue +36 -80
  45. package/dist/runtime/components/FormField.vue.d.ts +282 -0
  46. package/dist/runtime/components/Input.vue +79 -179
  47. package/dist/runtime/components/Input.vue.d.ts +755 -0
  48. package/dist/runtime/components/InputMenu.vue +185 -381
  49. package/dist/runtime/components/InputMenu.vue.d.ts +1523 -0
  50. package/dist/runtime/components/InputNumber.vue +77 -175
  51. package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
  52. package/dist/runtime/components/Kbd.vue +18 -45
  53. package/dist/runtime/components/Kbd.vue.d.ts +109 -0
  54. package/dist/runtime/components/Link.vue +92 -173
  55. package/dist/runtime/components/Link.vue.d.ts +129 -0
  56. package/dist/runtime/components/LinkBase.vue +33 -42
  57. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  58. package/dist/runtime/components/Modal.vue +48 -127
  59. package/dist/runtime/components/Modal.vue.d.ts +327 -0
  60. package/dist/runtime/components/ModalDialogClose.vue +5 -8
  61. package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
  62. package/dist/runtime/components/Navbar.vue +15 -33
  63. package/dist/runtime/components/Navbar.vue.d.ts +101 -0
  64. package/dist/runtime/components/NavbarDivider.vue +15 -33
  65. package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
  66. package/dist/runtime/components/NavbarSection.vue +15 -33
  67. package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
  68. package/dist/runtime/components/NavbarSpacer.vue +15 -33
  69. package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
  70. package/dist/runtime/components/NavigationMenu.vue +74 -208
  71. package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
  72. package/dist/runtime/components/OverlayProvider.vue +14 -18
  73. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  74. package/dist/runtime/components/Popover.vue +40 -81
  75. package/dist/runtime/components/Popover.vue.d.ts +147 -0
  76. package/dist/runtime/components/Progress.vue +70 -136
  77. package/dist/runtime/components/Progress.vue.d.ts +592 -0
  78. package/dist/runtime/components/RadioGroup.vue +59 -134
  79. package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
  80. package/dist/runtime/components/Range.vue +46 -85
  81. package/dist/runtime/components/Range.vue.d.ts +417 -0
  82. package/dist/runtime/components/Select.vue +110 -260
  83. package/dist/runtime/components/Select.vue.d.ts +1201 -0
  84. package/dist/runtime/components/SelectMenu.vue +161 -347
  85. package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
  86. package/dist/runtime/components/Separator.vue +28 -71
  87. package/dist/runtime/components/Separator.vue.d.ts +400 -0
  88. package/dist/runtime/components/Sidebar.vue +15 -33
  89. package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
  90. package/dist/runtime/components/SidebarBody.vue +17 -38
  91. package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
  92. package/dist/runtime/components/SidebarFooter.vue +15 -33
  93. package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
  94. package/dist/runtime/components/SidebarHeader.vue +15 -33
  95. package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
  96. package/dist/runtime/components/SidebarHeading.vue +15 -33
  97. package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
  98. package/dist/runtime/components/SidebarLayout.vue +34 -70
  99. package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
  100. package/dist/runtime/components/SidebarSection.vue +15 -33
  101. package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
  102. package/dist/runtime/components/SidebarSpacer.vue +15 -33
  103. package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
  104. package/dist/runtime/components/Skeleton.vue +12 -22
  105. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  106. package/dist/runtime/components/Slideover.vue +50 -131
  107. package/dist/runtime/components/Slideover.vue.d.ts +360 -0
  108. package/dist/runtime/components/StackedLayout.vue +34 -73
  109. package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
  110. package/dist/runtime/components/Switch.vue +46 -95
  111. package/dist/runtime/components/Switch.vue.d.ts +587 -0
  112. package/dist/runtime/components/Tabs.vue +37 -105
  113. package/dist/runtime/components/Tabs.vue.d.ts +453 -0
  114. package/dist/runtime/components/Textarea.vue +92 -201
  115. package/dist/runtime/components/Textarea.vue.d.ts +601 -0
  116. package/dist/runtime/components/Toast.vue +47 -105
  117. package/dist/runtime/components/Toast.vue.d.ts +438 -0
  118. package/dist/runtime/components/Toaster.vue +70 -115
  119. package/dist/runtime/components/Toaster.vue.d.ts +219 -0
  120. package/dist/runtime/components/Tooltip.vue +36 -64
  121. package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
  122. package/dist/runtime/components/content/TableWrapper.vue +24 -70
  123. package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
  124. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  125. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  126. package/dist/runtime/composables/useComponentIcons.d.ts +3 -3
  127. package/dist/runtime/composables/useFormField.d.ts +2 -2
  128. package/dist/runtime/composables/useOverlay.d.ts +14 -7
  129. package/dist/runtime/composables/useOverlay.js +14 -6
  130. package/dist/runtime/prose/A.vue +12 -23
  131. package/dist/runtime/prose/A.vue.d.ts +84 -0
  132. package/dist/runtime/prose/Blockquote.vue +12 -23
  133. package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
  134. package/dist/runtime/prose/Code.vue +14 -31
  135. package/dist/runtime/prose/Code.vue.d.ts +97 -0
  136. package/dist/runtime/prose/Em.vue +12 -23
  137. package/dist/runtime/prose/Em.vue.d.ts +84 -0
  138. package/dist/runtime/prose/H1.vue +12 -23
  139. package/dist/runtime/prose/H1.vue.d.ts +97 -0
  140. package/dist/runtime/prose/H2.vue +12 -23
  141. package/dist/runtime/prose/H2.vue.d.ts +123 -0
  142. package/dist/runtime/prose/H3.vue +12 -23
  143. package/dist/runtime/prose/H3.vue.d.ts +123 -0
  144. package/dist/runtime/prose/H4.vue +12 -23
  145. package/dist/runtime/prose/H4.vue.d.ts +123 -0
  146. package/dist/runtime/prose/H5.vue +12 -23
  147. package/dist/runtime/prose/H5.vue.d.ts +123 -0
  148. package/dist/runtime/prose/H6.vue +12 -23
  149. package/dist/runtime/prose/H6.vue.d.ts +123 -0
  150. package/dist/runtime/prose/Hr.vue +12 -19
  151. package/dist/runtime/prose/Hr.vue.d.ts +74 -0
  152. package/dist/runtime/prose/Img.vue +12 -23
  153. package/dist/runtime/prose/Img.vue.d.ts +77 -0
  154. package/dist/runtime/prose/Li.vue +12 -23
  155. package/dist/runtime/prose/Li.vue.d.ts +84 -0
  156. package/dist/runtime/prose/Ol.vue +12 -23
  157. package/dist/runtime/prose/Ol.vue.d.ts +84 -0
  158. package/dist/runtime/prose/P.vue +12 -23
  159. package/dist/runtime/prose/P.vue.d.ts +84 -0
  160. package/dist/runtime/prose/Pre.vue +16 -33
  161. package/dist/runtime/prose/Pre.vue.d.ts +117 -0
  162. package/dist/runtime/prose/Strong.vue +12 -23
  163. package/dist/runtime/prose/Strong.vue.d.ts +84 -0
  164. package/dist/runtime/prose/Table.vue +19 -54
  165. package/dist/runtime/prose/Table.vue.d.ts +144 -0
  166. package/dist/runtime/prose/Tbody.vue +12 -23
  167. package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
  168. package/dist/runtime/prose/Td.vue +12 -23
  169. package/dist/runtime/prose/Td.vue.d.ts +84 -0
  170. package/dist/runtime/prose/Th.vue +12 -23
  171. package/dist/runtime/prose/Th.vue.d.ts +84 -0
  172. package/dist/runtime/prose/Thead.vue +12 -23
  173. package/dist/runtime/prose/Thead.vue.d.ts +84 -0
  174. package/dist/runtime/prose/Tr.vue +12 -23
  175. package/dist/runtime/prose/Tr.vue.d.ts +84 -0
  176. package/dist/runtime/prose/Ul.vue +12 -23
  177. package/dist/runtime/prose/Ul.vue.d.ts +84 -0
  178. package/dist/runtime/utils/link.d.ts +3 -3
  179. package/dist/runtime/vue/components/Link.vue +115 -202
  180. package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
  181. package/dist/shared/{b24ui-nuxt.CS9Lf0os.mjs → b24ui-nuxt.BA6Y2FnC.mjs} +6 -6
  182. package/dist/types.d.mts +3 -5
  183. package/dist/unplugin.mjs +1 -1
  184. package/dist/vite.mjs +1 -1
  185. package/package.json +14 -22
  186. package/dist/meta.cjs +0 -72112
  187. package/dist/meta.d.cts +0 -72110
  188. package/dist/meta.d.ts +0 -72110
  189. package/dist/module.cjs +0 -63
  190. package/dist/module.d.cts +0 -15
  191. package/dist/module.d.ts +0 -15
  192. package/dist/shared/b24ui-nuxt.DrKwIWoc.cjs +0 -7721
  193. package/dist/types.d.ts +0 -7
  194. package/dist/unplugin.cjs +0 -236
  195. package/dist/unplugin.d.cts +0 -33
  196. package/dist/unplugin.d.ts +0 -33
  197. package/dist/vite.cjs +0 -21
  198. package/dist/vite.d.cts +0 -14
  199. package/dist/vite.d.ts +0 -14
@@ -1,103 +1,64 @@
1
- <script lang="ts">
2
- import type { VariantProps } from 'tailwind-variants'
3
- import type { SliderRootProps } from 'reka-ui'
4
- import type { AppConfig } from '@nuxt/schema'
5
- import _appConfig from '#build/app.config'
6
- import theme from '#build/b24ui/range'
7
- import { tv } from '../utils/tv'
8
-
9
- const appConfigRange = _appConfig as AppConfig & { b24ui: { range: Partial<typeof theme> } }
10
-
11
- const range = tv({ extend: tv(theme), ...(appConfigRange.b24ui?.range || {}) })
12
-
13
- type RangeVariants = VariantProps<typeof range>
14
-
15
- export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' | 'inverted' | 'min' | 'max' | 'step' | 'minStepsBetweenThumbs'> {
16
- /**
17
- * The element or component this component should render as.
18
- * @defaultValue 'div'
19
- */
20
- as?: any
21
- /**
22
- * @defaultValue 'md'
23
- */
24
- size?: RangeVariants['size']
25
- /**
26
- * @defaultValue 'primary'
27
- */
28
- color?: RangeVariants['color']
29
- /**
30
- * The orientation of the Range.
31
- * @defaultValue 'horizontal'
32
- */
33
- orientation?: SliderRootProps['orientation']
34
- /**
35
- * The value of the Range when initially rendered. Use when you do not need to control the state of the Range
36
- */
37
- defaultValue?: number | number[]
38
- class?: any
39
- b24ui?: Partial<typeof range.slots>
40
- }
41
-
42
- export interface RangeEmits {
43
- (e: 'update:modelValue', payload: number | number[]): void
44
- (e: 'change', payload: Event): void
45
- }
1
+ <script>
2
+ import _appConfig from "#build/app.config";
3
+ import theme from "#build/b24ui/range";
4
+ import { tv } from "../utils/tv";
5
+ const appConfigRange = _appConfig;
6
+ const range = tv({ extend: tv(theme), ...appConfigRange.b24ui?.range || {} });
46
7
  </script>
47
8
 
48
- <script setup lang="ts">
49
- import { computed } from 'vue'
50
- import { SliderRoot, SliderRange, SliderTrack, SliderThumb, useForwardPropsEmits } from 'reka-ui'
51
- import { reactivePick } from '@vueuse/core'
52
- import { useFormField } from '../composables/useFormField'
53
-
54
- const props = withDefaults(defineProps<RangeProps>(), {
55
- min: 0,
56
- max: 100,
57
- step: 1,
58
- orientation: 'horizontal'
59
- })
60
- const emits = defineEmits<RangeEmits>()
61
-
62
- const modelValue = defineModel<number | number[]>()
63
-
64
- const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'orientation', 'min', 'max', 'step', 'minStepsBetweenThumbs', 'inverted'), emits)
65
-
66
- const { id, emitFormChange, emitFormInput, size, color, name, disabled, ariaAttrs } = useFormField<RangeProps>(props)
67
-
9
+ <script setup>
10
+ import { computed } from "vue";
11
+ import { SliderRoot, SliderRange, SliderTrack, SliderThumb, useForwardPropsEmits } from "reka-ui";
12
+ import { reactivePick } from "@vueuse/core";
13
+ import { useFormField } from "../composables/useFormField";
14
+ const props = defineProps({
15
+ as: { type: null, required: false },
16
+ size: { type: null, required: false },
17
+ color: { type: null, required: false },
18
+ orientation: { type: null, required: false, default: "horizontal" },
19
+ defaultValue: { type: [Number, Array], required: false },
20
+ class: { type: null, required: false },
21
+ b24ui: { type: Object, required: false },
22
+ name: { type: String, required: false },
23
+ disabled: { type: Boolean, required: false },
24
+ inverted: { type: Boolean, required: false },
25
+ min: { type: Number, required: false, default: 0 },
26
+ max: { type: Number, required: false, default: 100 },
27
+ step: { type: Number, required: false, default: 1 },
28
+ minStepsBetweenThumbs: { type: Number, required: false }
29
+ });
30
+ const emits = defineEmits(["update:modelValue", "change"]);
31
+ const modelValue = defineModel({ type: [Number, Array] });
32
+ const rootProps = useForwardPropsEmits(reactivePick(props, "as", "orientation", "min", "max", "step", "minStepsBetweenThumbs", "inverted"), emits);
33
+ const { id, emitFormChange, emitFormInput, size, color, name, disabled, ariaAttrs } = useFormField(props);
68
34
  const defaultRangeValue = computed(() => {
69
- if (typeof props.defaultValue === 'number') {
70
- return [props.defaultValue]
35
+ if (typeof props.defaultValue === "number") {
36
+ return [props.defaultValue];
71
37
  }
72
- return props.defaultValue
73
- })
74
-
38
+ return props.defaultValue;
39
+ });
75
40
  const rangeValue = computed({
76
41
  get() {
77
- if (typeof modelValue.value === 'number') {
78
- return [modelValue.value]
42
+ if (typeof modelValue.value === "number") {
43
+ return [modelValue.value];
79
44
  }
80
- return modelValue.value ?? defaultRangeValue.value
45
+ return modelValue.value ?? defaultRangeValue.value;
81
46
  },
82
47
  set(value) {
83
- modelValue.value = value?.length !== 1 ? value : value[0]
48
+ modelValue.value = value?.length !== 1 ? value : value[0];
84
49
  }
85
- })
86
-
87
- const thumbsCount = computed(() => rangeValue.value?.length ?? 1)
88
-
50
+ });
51
+ const thumbsCount = computed(() => rangeValue.value?.length ?? 1);
89
52
  const b24ui = computed(() => range({
90
53
  disabled: disabled.value,
91
54
  size: size.value,
92
55
  color: color.value,
93
56
  orientation: props.orientation
94
- }))
95
-
96
- function onChange(value: any) {
97
- // @ts-expect-error - 'target' does not exist in type 'EventInit'
98
- const event = new Event('change', { target: { value } })
99
- emits('change', event)
100
- emitFormChange()
57
+ }));
58
+ function onChange(value) {
59
+ const event = new Event("change", { target: { value } });
60
+ emits("change", event);
61
+ emitFormChange();
101
62
  }
102
63
  </script>
103
64
 
@@ -0,0 +1,417 @@
1
+ import type { VariantProps } from 'tailwind-variants';
2
+ import type { SliderRootProps } from 'reka-ui';
3
+ declare const range: import("tailwind-variants").TVReturnType<{
4
+ color: {
5
+ default: {
6
+ range: string;
7
+ thumb: string;
8
+ };
9
+ danger: {
10
+ range: string;
11
+ thumb: string;
12
+ };
13
+ success: {
14
+ range: string;
15
+ thumb: string;
16
+ };
17
+ warning: {
18
+ range: string;
19
+ thumb: string;
20
+ };
21
+ primary: {
22
+ range: string;
23
+ thumb: string;
24
+ };
25
+ secondary: {
26
+ range: string;
27
+ thumb: string;
28
+ };
29
+ collab: {
30
+ range: string;
31
+ thumb: string;
32
+ };
33
+ ai: {
34
+ range: string;
35
+ thumb: string;
36
+ };
37
+ };
38
+ size: {
39
+ xs: {
40
+ thumb: string;
41
+ };
42
+ sm: {
43
+ thumb: string;
44
+ };
45
+ md: {
46
+ thumb: string;
47
+ };
48
+ lg: {
49
+ thumb: string;
50
+ };
51
+ };
52
+ orientation: {
53
+ horizontal: {
54
+ root: string;
55
+ range: string;
56
+ };
57
+ vertical: {
58
+ root: string;
59
+ range: string;
60
+ };
61
+ };
62
+ disabled: {
63
+ true: {
64
+ root: string;
65
+ };
66
+ };
67
+ }, {
68
+ root: string;
69
+ track: string;
70
+ range: string;
71
+ thumb: string;
72
+ }, undefined, {
73
+ color: {
74
+ default: {
75
+ range: string;
76
+ thumb: string;
77
+ };
78
+ danger: {
79
+ range: string;
80
+ thumb: string;
81
+ };
82
+ success: {
83
+ range: string;
84
+ thumb: string;
85
+ };
86
+ warning: {
87
+ range: string;
88
+ thumb: string;
89
+ };
90
+ primary: {
91
+ range: string;
92
+ thumb: string;
93
+ };
94
+ secondary: {
95
+ range: string;
96
+ thumb: string;
97
+ };
98
+ collab: {
99
+ range: string;
100
+ thumb: string;
101
+ };
102
+ ai: {
103
+ range: string;
104
+ thumb: string;
105
+ };
106
+ };
107
+ size: {
108
+ xs: {
109
+ thumb: string;
110
+ };
111
+ sm: {
112
+ thumb: string;
113
+ };
114
+ md: {
115
+ thumb: string;
116
+ };
117
+ lg: {
118
+ thumb: string;
119
+ };
120
+ };
121
+ orientation: {
122
+ horizontal: {
123
+ root: string;
124
+ range: string;
125
+ };
126
+ vertical: {
127
+ root: string;
128
+ range: string;
129
+ };
130
+ };
131
+ disabled: {
132
+ true: {
133
+ root: string;
134
+ };
135
+ };
136
+ }, {
137
+ root: string;
138
+ track: string;
139
+ range: string;
140
+ thumb: string;
141
+ }, import("tailwind-variants").TVReturnType<{
142
+ color: {
143
+ default: {
144
+ range: string;
145
+ thumb: string;
146
+ };
147
+ danger: {
148
+ range: string;
149
+ thumb: string;
150
+ };
151
+ success: {
152
+ range: string;
153
+ thumb: string;
154
+ };
155
+ warning: {
156
+ range: string;
157
+ thumb: string;
158
+ };
159
+ primary: {
160
+ range: string;
161
+ thumb: string;
162
+ };
163
+ secondary: {
164
+ range: string;
165
+ thumb: string;
166
+ };
167
+ collab: {
168
+ range: string;
169
+ thumb: string;
170
+ };
171
+ ai: {
172
+ range: string;
173
+ thumb: string;
174
+ };
175
+ };
176
+ size: {
177
+ xs: {
178
+ thumb: string;
179
+ };
180
+ sm: {
181
+ thumb: string;
182
+ };
183
+ md: {
184
+ thumb: string;
185
+ };
186
+ lg: {
187
+ thumb: string;
188
+ };
189
+ };
190
+ orientation: {
191
+ horizontal: {
192
+ root: string;
193
+ range: string;
194
+ };
195
+ vertical: {
196
+ root: string;
197
+ range: string;
198
+ };
199
+ };
200
+ disabled: {
201
+ true: {
202
+ root: string;
203
+ };
204
+ };
205
+ }, {
206
+ root: string;
207
+ track: string;
208
+ range: string;
209
+ thumb: string;
210
+ }, undefined, {
211
+ color: {
212
+ default: {
213
+ range: string;
214
+ thumb: string;
215
+ };
216
+ danger: {
217
+ range: string;
218
+ thumb: string;
219
+ };
220
+ success: {
221
+ range: string;
222
+ thumb: string;
223
+ };
224
+ warning: {
225
+ range: string;
226
+ thumb: string;
227
+ };
228
+ primary: {
229
+ range: string;
230
+ thumb: string;
231
+ };
232
+ secondary: {
233
+ range: string;
234
+ thumb: string;
235
+ };
236
+ collab: {
237
+ range: string;
238
+ thumb: string;
239
+ };
240
+ ai: {
241
+ range: string;
242
+ thumb: string;
243
+ };
244
+ };
245
+ size: {
246
+ xs: {
247
+ thumb: string;
248
+ };
249
+ sm: {
250
+ thumb: string;
251
+ };
252
+ md: {
253
+ thumb: string;
254
+ };
255
+ lg: {
256
+ thumb: string;
257
+ };
258
+ };
259
+ orientation: {
260
+ horizontal: {
261
+ root: string;
262
+ range: string;
263
+ };
264
+ vertical: {
265
+ root: string;
266
+ range: string;
267
+ };
268
+ };
269
+ disabled: {
270
+ true: {
271
+ root: string;
272
+ };
273
+ };
274
+ }, {
275
+ root: string;
276
+ track: string;
277
+ range: string;
278
+ thumb: string;
279
+ }, import("tailwind-variants").TVReturnType<{
280
+ color: {
281
+ default: {
282
+ range: string;
283
+ thumb: string;
284
+ };
285
+ danger: {
286
+ range: string;
287
+ thumb: string;
288
+ };
289
+ success: {
290
+ range: string;
291
+ thumb: string;
292
+ };
293
+ warning: {
294
+ range: string;
295
+ thumb: string;
296
+ };
297
+ primary: {
298
+ range: string;
299
+ thumb: string;
300
+ };
301
+ secondary: {
302
+ range: string;
303
+ thumb: string;
304
+ };
305
+ collab: {
306
+ range: string;
307
+ thumb: string;
308
+ };
309
+ ai: {
310
+ range: string;
311
+ thumb: string;
312
+ };
313
+ };
314
+ size: {
315
+ xs: {
316
+ thumb: string;
317
+ };
318
+ sm: {
319
+ thumb: string;
320
+ };
321
+ md: {
322
+ thumb: string;
323
+ };
324
+ lg: {
325
+ thumb: string;
326
+ };
327
+ };
328
+ orientation: {
329
+ horizontal: {
330
+ root: string;
331
+ range: string;
332
+ };
333
+ vertical: {
334
+ root: string;
335
+ range: string;
336
+ };
337
+ };
338
+ disabled: {
339
+ true: {
340
+ root: string;
341
+ };
342
+ };
343
+ }, {
344
+ root: string;
345
+ track: string;
346
+ range: string;
347
+ thumb: string;
348
+ }, undefined, unknown, unknown, undefined>>>;
349
+ type RangeVariants = VariantProps<typeof range>;
350
+ export interface RangeProps extends Pick<SliderRootProps, 'name' | 'disabled' | 'inverted' | 'min' | 'max' | 'step' | 'minStepsBetweenThumbs'> {
351
+ /**
352
+ * The element or component this component should render as.
353
+ * @defaultValue 'div'
354
+ */
355
+ as?: any;
356
+ /**
357
+ * @defaultValue 'md'
358
+ */
359
+ size?: RangeVariants['size'];
360
+ /**
361
+ * @defaultValue 'primary'
362
+ */
363
+ color?: RangeVariants['color'];
364
+ /**
365
+ * The orientation of the Range.
366
+ * @defaultValue 'horizontal'
367
+ */
368
+ orientation?: SliderRootProps['orientation'];
369
+ /**
370
+ * The value of the Range when initially rendered. Use when you do not need to control the state of the Range
371
+ */
372
+ defaultValue?: number | number[];
373
+ class?: any;
374
+ b24ui?: Partial<typeof range.slots>;
375
+ }
376
+ export interface RangeEmits {
377
+ (e: 'update:modelValue', payload: number | number[]): void;
378
+ (e: 'change', payload: Event): void;
379
+ }
380
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
381
+ modelValue?: number | number[];
382
+ } & RangeProps>, {
383
+ min: number;
384
+ max: number;
385
+ step: number;
386
+ orientation: string;
387
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
388
+ modelValue?: number | number[];
389
+ } & RangeProps>, {
390
+ min: number;
391
+ max: number;
392
+ step: number;
393
+ orientation: string;
394
+ }>>> & Readonly<{}>, {
395
+ orientation: "horizontal" | "vertical";
396
+ step: number;
397
+ max: number;
398
+ min: number;
399
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
400
+ export default _default;
401
+ type __VLS_WithDefaults<P, D> = {
402
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
403
+ default: D[K];
404
+ }> : P[K];
405
+ };
406
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
407
+ type __VLS_TypePropsToOption<T> = {
408
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
409
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
410
+ } : {
411
+ type: import('vue').PropType<T[K]>;
412
+ required: true;
413
+ };
414
+ };
415
+ type __VLS_PrettifyLocal<T> = {
416
+ [K in keyof T]: T[K];
417
+ } & {};