@bitrix24/b24ui-nuxt 0.5.9 → 0.5.10

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 (196) hide show
  1. package/.nuxt/b24ui/navigation-menu.ts +0 -2
  2. package/.nuxt/b24ui/popover.ts +1 -1
  3. package/dist/meta.d.mts +4789 -4897
  4. package/dist/meta.mjs +4789 -4897
  5. package/dist/module.json +5 -5
  6. package/dist/module.mjs +11 -7
  7. package/dist/runtime/components/Advice.vue +47 -54
  8. package/dist/runtime/components/Advice.vue.d.ts +170 -0
  9. package/dist/runtime/components/Alert.vue +71 -96
  10. package/dist/runtime/components/Alert.vue.d.ts +464 -0
  11. package/dist/runtime/components/App.vue +37 -34
  12. package/dist/runtime/components/App.vue.d.ts +23 -0
  13. package/dist/runtime/components/Avatar.vue +69 -81
  14. package/dist/runtime/components/Avatar.vue.d.ts +281 -0
  15. package/dist/runtime/components/AvatarGroup.vue +53 -76
  16. package/dist/runtime/components/AvatarGroup.vue.d.ts +204 -0
  17. package/dist/runtime/components/Badge.vue +83 -83
  18. package/dist/runtime/components/Badge.vue.d.ts +517 -0
  19. package/dist/runtime/components/Button.vue +219 -149
  20. package/dist/runtime/components/Button.vue.d.ts +640 -0
  21. package/dist/runtime/components/ButtonGroup.vue +35 -51
  22. package/dist/runtime/components/ButtonGroup.vue.d.ts +116 -0
  23. package/dist/runtime/components/Calendar.vue +186 -152
  24. package/dist/runtime/components/Calendar.vue.d.ts +437 -0
  25. package/dist/runtime/components/Checkbox.vue +84 -73
  26. package/dist/runtime/components/Checkbox.vue.d.ts +354 -0
  27. package/dist/runtime/components/Chip.vue +59 -74
  28. package/dist/runtime/components/Chip.vue.d.ts +271 -0
  29. package/dist/runtime/components/Collapsible.vue +44 -41
  30. package/dist/runtime/components/Collapsible.vue.d.ts +118 -0
  31. package/dist/runtime/components/Container.vue +18 -27
  32. package/dist/runtime/components/Container.vue.d.ts +27 -0
  33. package/dist/runtime/components/Countdown.vue +198 -378
  34. package/dist/runtime/components/Countdown.vue.d.ts +356 -0
  35. package/dist/runtime/components/DescriptionList.vue +102 -149
  36. package/dist/runtime/components/DescriptionList.vue.d.ts +379 -0
  37. package/dist/runtime/components/DropdownMenu.vue +83 -139
  38. package/dist/runtime/components/DropdownMenu.vue.d.ts +533 -0
  39. package/dist/runtime/components/DropdownMenuContent.vue +137 -81
  40. package/dist/runtime/components/DropdownMenuContent.vue.d.ts +228 -0
  41. package/dist/runtime/components/Form.vue +162 -216
  42. package/dist/runtime/components/Form.vue.d.ts +55 -0
  43. package/dist/runtime/components/FormField.vue +76 -80
  44. package/dist/runtime/components/FormField.vue.d.ts +282 -0
  45. package/dist/runtime/components/Input.vue +160 -179
  46. package/dist/runtime/components/Input.vue.d.ts +755 -0
  47. package/dist/runtime/components/InputMenu.vue +300 -381
  48. package/dist/runtime/components/InputMenu.vue.d.ts +1504 -0
  49. package/dist/runtime/components/InputNumber.vue +178 -175
  50. package/dist/runtime/components/InputNumber.vue.d.ts +658 -0
  51. package/dist/runtime/components/Kbd.vue +33 -45
  52. package/dist/runtime/components/Kbd.vue.d.ts +109 -0
  53. package/dist/runtime/components/Link.vue +179 -173
  54. package/dist/runtime/components/Link.vue.d.ts +129 -0
  55. package/dist/runtime/components/LinkBase.vue +64 -42
  56. package/dist/runtime/components/LinkBase.vue.d.ts +48 -0
  57. package/dist/runtime/components/Modal.vue +105 -127
  58. package/dist/runtime/components/Modal.vue.d.ts +327 -0
  59. package/dist/runtime/components/ModalDialogClose.vue +4 -8
  60. package/dist/runtime/components/ModalDialogClose.vue.d.ts +10 -0
  61. package/dist/runtime/components/Navbar.vue +24 -33
  62. package/dist/runtime/components/Navbar.vue.d.ts +101 -0
  63. package/dist/runtime/components/NavbarDivider.vue +24 -33
  64. package/dist/runtime/components/NavbarDivider.vue.d.ts +101 -0
  65. package/dist/runtime/components/NavbarSection.vue +24 -33
  66. package/dist/runtime/components/NavbarSection.vue.d.ts +101 -0
  67. package/dist/runtime/components/NavbarSpacer.vue +24 -33
  68. package/dist/runtime/components/NavbarSpacer.vue.d.ts +101 -0
  69. package/dist/runtime/components/NavigationMenu.vue +152 -216
  70. package/dist/runtime/components/NavigationMenu.vue.d.ts +824 -0
  71. package/dist/runtime/components/OverlayProvider.vue +13 -17
  72. package/dist/runtime/components/OverlayProvider.vue.d.ts +2 -0
  73. package/dist/runtime/components/Popover.vue +81 -81
  74. package/dist/runtime/components/Popover.vue.d.ts +147 -0
  75. package/dist/runtime/components/Progress.vue +109 -136
  76. package/dist/runtime/components/Progress.vue.d.ts +592 -0
  77. package/dist/runtime/components/RadioGroup.vue +120 -134
  78. package/dist/runtime/components/RadioGroup.vue.d.ts +723 -0
  79. package/dist/runtime/components/Range.vue +94 -85
  80. package/dist/runtime/components/Range.vue.d.ts +417 -0
  81. package/dist/runtime/components/Select.vue +212 -260
  82. package/dist/runtime/components/Select.vue.d.ts +1200 -0
  83. package/dist/runtime/components/SelectMenu.vue +272 -366
  84. package/dist/runtime/components/SelectMenu.vue.d.ts +1298 -0
  85. package/dist/runtime/components/Separator.vue +61 -71
  86. package/dist/runtime/components/Separator.vue.d.ts +400 -0
  87. package/dist/runtime/components/Sidebar.vue +24 -33
  88. package/dist/runtime/components/Sidebar.vue.d.ts +101 -0
  89. package/dist/runtime/components/SidebarBody.vue +30 -38
  90. package/dist/runtime/components/SidebarBody.vue.d.ts +90 -0
  91. package/dist/runtime/components/SidebarFooter.vue +24 -33
  92. package/dist/runtime/components/SidebarFooter.vue.d.ts +101 -0
  93. package/dist/runtime/components/SidebarHeader.vue +24 -33
  94. package/dist/runtime/components/SidebarHeader.vue.d.ts +101 -0
  95. package/dist/runtime/components/SidebarHeading.vue +24 -33
  96. package/dist/runtime/components/SidebarHeading.vue.d.ts +101 -0
  97. package/dist/runtime/components/SidebarLayout.vue +40 -70
  98. package/dist/runtime/components/SidebarLayout.vue.d.ts +222 -0
  99. package/dist/runtime/components/SidebarSection.vue +24 -33
  100. package/dist/runtime/components/SidebarSection.vue.d.ts +101 -0
  101. package/dist/runtime/components/SidebarSpacer.vue +24 -33
  102. package/dist/runtime/components/SidebarSpacer.vue.d.ts +101 -0
  103. package/dist/runtime/components/Skeleton.vue +17 -22
  104. package/dist/runtime/components/Skeleton.vue.d.ts +26 -0
  105. package/dist/runtime/components/Slideover.vue +108 -131
  106. package/dist/runtime/components/Slideover.vue.d.ts +360 -0
  107. package/dist/runtime/components/StackedLayout.vue +40 -73
  108. package/dist/runtime/components/StackedLayout.vue.d.ts +192 -0
  109. package/dist/runtime/components/Switch.vue +100 -95
  110. package/dist/runtime/components/Switch.vue.d.ts +587 -0
  111. package/dist/runtime/components/Tabs.vue +83 -105
  112. package/dist/runtime/components/Tabs.vue.d.ts +453 -0
  113. package/dist/runtime/components/Textarea.vue +177 -201
  114. package/dist/runtime/components/Textarea.vue.d.ts +601 -0
  115. package/dist/runtime/components/Toast.vue +94 -105
  116. package/dist/runtime/components/Toast.vue.d.ts +438 -0
  117. package/dist/runtime/components/Toaster.vue +94 -111
  118. package/dist/runtime/components/Toaster.vue.d.ts +219 -0
  119. package/dist/runtime/components/Tooltip.vue +78 -64
  120. package/dist/runtime/components/Tooltip.vue.d.ts +186 -0
  121. package/dist/runtime/components/content/TableWrapper.vue +58 -70
  122. package/dist/runtime/components/content/TableWrapper.vue.d.ts +237 -0
  123. package/dist/runtime/composables/useAvatarGroup.d.ts +1 -1
  124. package/dist/runtime/composables/useButtonGroup.d.ts +2 -2
  125. package/dist/runtime/composables/useComponentIcons.d.ts +1 -1
  126. package/dist/runtime/composables/useFormField.d.ts +1 -1
  127. package/dist/runtime/prose/A.vue +18 -23
  128. package/dist/runtime/prose/A.vue.d.ts +84 -0
  129. package/dist/runtime/prose/Blockquote.vue +18 -23
  130. package/dist/runtime/prose/Blockquote.vue.d.ts +84 -0
  131. package/dist/runtime/prose/Code.vue +23 -31
  132. package/dist/runtime/prose/Code.vue.d.ts +97 -0
  133. package/dist/runtime/prose/Em.vue +18 -23
  134. package/dist/runtime/prose/Em.vue.d.ts +84 -0
  135. package/dist/runtime/prose/H1.vue +18 -23
  136. package/dist/runtime/prose/H1.vue.d.ts +97 -0
  137. package/dist/runtime/prose/H2.vue +18 -23
  138. package/dist/runtime/prose/H2.vue.d.ts +123 -0
  139. package/dist/runtime/prose/H3.vue +18 -23
  140. package/dist/runtime/prose/H3.vue.d.ts +123 -0
  141. package/dist/runtime/prose/H4.vue +18 -23
  142. package/dist/runtime/prose/H4.vue.d.ts +123 -0
  143. package/dist/runtime/prose/H5.vue +18 -23
  144. package/dist/runtime/prose/H5.vue.d.ts +123 -0
  145. package/dist/runtime/prose/H6.vue +18 -23
  146. package/dist/runtime/prose/H6.vue.d.ts +123 -0
  147. package/dist/runtime/prose/Hr.vue +18 -19
  148. package/dist/runtime/prose/Hr.vue.d.ts +74 -0
  149. package/dist/runtime/prose/Img.vue +18 -23
  150. package/dist/runtime/prose/Img.vue.d.ts +77 -0
  151. package/dist/runtime/prose/Li.vue +18 -23
  152. package/dist/runtime/prose/Li.vue.d.ts +84 -0
  153. package/dist/runtime/prose/Ol.vue +18 -23
  154. package/dist/runtime/prose/Ol.vue.d.ts +84 -0
  155. package/dist/runtime/prose/P.vue +18 -23
  156. package/dist/runtime/prose/P.vue.d.ts +84 -0
  157. package/dist/runtime/prose/Pre.vue +28 -33
  158. package/dist/runtime/prose/Pre.vue.d.ts +117 -0
  159. package/dist/runtime/prose/Strong.vue +18 -23
  160. package/dist/runtime/prose/Strong.vue.d.ts +84 -0
  161. package/dist/runtime/prose/Table.vue +44 -54
  162. package/dist/runtime/prose/Table.vue.d.ts +144 -0
  163. package/dist/runtime/prose/Tbody.vue +18 -23
  164. package/dist/runtime/prose/Tbody.vue.d.ts +84 -0
  165. package/dist/runtime/prose/Td.vue +18 -23
  166. package/dist/runtime/prose/Td.vue.d.ts +84 -0
  167. package/dist/runtime/prose/Th.vue +18 -23
  168. package/dist/runtime/prose/Th.vue.d.ts +84 -0
  169. package/dist/runtime/prose/Thead.vue +18 -23
  170. package/dist/runtime/prose/Thead.vue.d.ts +84 -0
  171. package/dist/runtime/prose/Tr.vue +18 -23
  172. package/dist/runtime/prose/Tr.vue.d.ts +84 -0
  173. package/dist/runtime/prose/Ul.vue +18 -23
  174. package/dist/runtime/prose/Ul.vue.d.ts +84 -0
  175. package/dist/runtime/vue/components/Link.vue +201 -202
  176. package/dist/runtime/vue/components/Link.vue.d.ts +129 -0
  177. package/dist/runtime/vue/stubs.d.ts +3 -3
  178. package/dist/shared/{b24ui-nuxt.C1lGF53R.mjs → b24ui-nuxt.CS9Lf0os.mjs} +4 -3
  179. package/dist/types.d.mts +3 -5
  180. package/dist/unplugin.mjs +1 -1
  181. package/dist/vite.mjs +1 -1
  182. package/package.json +59 -32
  183. package/dist/meta.cjs +0 -72220
  184. package/dist/meta.d.cts +0 -72218
  185. package/dist/meta.d.ts +0 -72218
  186. package/dist/module.cjs +0 -59
  187. package/dist/module.d.cts +0 -15
  188. package/dist/module.d.ts +0 -15
  189. package/dist/shared/b24ui-nuxt.BVg3rkkG.cjs +0 -7720
  190. package/dist/types.d.ts +0 -7
  191. package/dist/unplugin.cjs +0 -236
  192. package/dist/unplugin.d.cts +0 -33
  193. package/dist/unplugin.d.ts +0 -33
  194. package/dist/vite.cjs +0 -21
  195. package/dist/vite.d.cts +0 -14
  196. package/dist/vite.d.ts +0 -14
@@ -1,103 +1,112 @@
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 { useForwardPropsEmits } from "reka-ui";
12
+ import { reactivePick } from "@vueuse/core";
13
+ import { useFormField } from "../composables/useFormField";
14
+ const props = defineProps({
15
+ as: {
16
+ type: null,
17
+ required: false
18
+ },
19
+ size: {
20
+ type: null,
21
+ required: false
22
+ },
23
+ color: {
24
+ type: null,
25
+ required: false
26
+ },
27
+ orientation: {
28
+ type: null,
29
+ required: false,
30
+ default: "horizontal"
31
+ },
32
+ defaultValue: {
33
+ type: [Number, Array],
34
+ required: false
35
+ },
36
+ class: {
37
+ type: null,
38
+ required: false
39
+ },
40
+ b24ui: {
41
+ type: Object,
42
+ required: false
43
+ },
44
+ name: {
45
+ type: String,
46
+ required: false
47
+ },
48
+ disabled: {
49
+ type: Boolean,
50
+ required: false
51
+ },
52
+ inverted: {
53
+ type: Boolean,
54
+ required: false
55
+ },
56
+ min: {
57
+ type: Number,
58
+ required: false,
59
+ default: 0
60
+ },
61
+ max: {
62
+ type: Number,
63
+ required: false,
64
+ default: 100
65
+ },
66
+ step: {
67
+ type: Number,
68
+ required: false,
69
+ default: 1
70
+ },
71
+ minStepsBetweenThumbs: {
72
+ type: Number,
73
+ required: false
74
+ }
75
+ });
76
+ const emits = defineEmits(["update:modelValue", "change"]);
77
+ const modelValue = defineModel({
78
+ "type": [Number, Array]
79
+ });
80
+ const rootProps = useForwardPropsEmits(reactivePick(props, "as", "orientation", "min", "max", "step", "minStepsBetweenThumbs", "inverted"), emits);
81
+ const { id, emitFormChange, emitFormInput, size, color, name, disabled, ariaAttrs } = useFormField(props);
68
82
  const defaultRangeValue = computed(() => {
69
- if (typeof props.defaultValue === 'number') {
70
- return [props.defaultValue]
83
+ if (typeof props.defaultValue === "number") {
84
+ return [props.defaultValue];
71
85
  }
72
- return props.defaultValue
73
- })
74
-
86
+ return props.defaultValue;
87
+ });
75
88
  const rangeValue = computed({
76
89
  get() {
77
- if (typeof modelValue.value === 'number') {
78
- return [modelValue.value]
90
+ if (typeof modelValue.value === "number") {
91
+ return [modelValue.value];
79
92
  }
80
- return modelValue.value ?? defaultRangeValue.value
93
+ return modelValue.value ?? defaultRangeValue.value;
81
94
  },
82
95
  set(value) {
83
- modelValue.value = value?.length !== 1 ? value : value[0]
96
+ modelValue.value = value?.length !== 1 ? value : value[0];
84
97
  }
85
- })
86
-
87
- const thumbsCount = computed(() => rangeValue.value?.length ?? 1)
88
-
98
+ });
99
+ const thumbsCount = computed(() => rangeValue.value?.length ?? 1);
89
100
  const b24ui = computed(() => range({
90
101
  disabled: disabled.value,
91
102
  size: size.value,
92
103
  color: color.value,
93
104
  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()
105
+ }));
106
+ function onChange(value) {
107
+ const event = new Event("change", { target: { value } });
108
+ emits("change", event);
109
+ emitFormChange();
101
110
  }
102
111
  </script>
103
112
 
@@ -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
+ } & {};