sv5ui 1.1.3 → 1.3.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 (187) hide show
  1. package/README.md +6 -0
  2. package/dist/Alert/Alert.svelte +33 -22
  3. package/dist/Alert/Alert.svelte.d.ts +1 -1
  4. package/dist/Alert/alert.types.d.ts +4 -0
  5. package/dist/Avatar/Avatar.svelte +72 -46
  6. package/dist/Avatar/avatar.types.d.ts +36 -3
  7. package/dist/Avatar/avatar.variants.d.ts +138 -0
  8. package/dist/Avatar/avatar.variants.js +23 -12
  9. package/dist/Avatar/index.d.ts +1 -1
  10. package/dist/AvatarGroup/AvatarGroup.svelte +11 -6
  11. package/dist/AvatarGroup/AvatarGroup.svelte.d.ts +1 -1
  12. package/dist/AvatarGroup/avatar-group.types.d.ts +18 -3
  13. package/dist/AvatarGroup/avatar-group.variants.d.ts +85 -0
  14. package/dist/AvatarGroup/avatar-group.variants.js +19 -29
  15. package/dist/Badge/Badge.svelte +4 -3
  16. package/dist/Badge/Badge.svelte.d.ts +1 -1
  17. package/dist/Badge/badge.types.d.ts +9 -0
  18. package/dist/Breadcrumb/Breadcrumb.svelte +20 -7
  19. package/dist/Breadcrumb/Breadcrumb.svelte.d.ts +1 -1
  20. package/dist/Breadcrumb/breadcrumb.types.d.ts +5 -1
  21. package/dist/Breadcrumb/breadcrumb.variants.d.ts +15 -5
  22. package/dist/Breadcrumb/breadcrumb.variants.js +7 -3
  23. package/dist/Button/Button.svelte +71 -16
  24. package/dist/Button/Button.svelte.d.ts +0 -1
  25. package/dist/Button/button.types.d.ts +61 -2
  26. package/dist/Calendar/Calendar.svelte +4 -0
  27. package/dist/Calendar/Calendar.svelte.d.ts +1 -1
  28. package/dist/Calendar/calendar.types.d.ts +4 -0
  29. package/dist/Card/Card.svelte +5 -4
  30. package/dist/Card/Card.svelte.d.ts +1 -1
  31. package/dist/Card/card.types.d.ts +5 -1
  32. package/dist/Checkbox/Checkbox.svelte +37 -11
  33. package/dist/Checkbox/Checkbox.svelte.d.ts +1 -1
  34. package/dist/Checkbox/checkbox.types.d.ts +16 -1
  35. package/dist/Checkbox/checkbox.variants.d.ts +90 -0
  36. package/dist/Checkbox/checkbox.variants.js +73 -4
  37. package/dist/CheckboxGroup/CheckboxGroup.svelte +215 -0
  38. package/dist/CheckboxGroup/CheckboxGroup.svelte.d.ts +5 -0
  39. package/dist/CheckboxGroup/checkbox-group.types.d.ts +130 -0
  40. package/dist/CheckboxGroup/checkbox-group.types.js +1 -0
  41. package/dist/CheckboxGroup/checkbox-group.variants.d.ts +553 -0
  42. package/dist/CheckboxGroup/checkbox-group.variants.js +231 -0
  43. package/dist/CheckboxGroup/index.d.ts +2 -0
  44. package/dist/CheckboxGroup/index.js +1 -0
  45. package/dist/Chip/Chip.svelte +3 -2
  46. package/dist/Chip/Chip.svelte.d.ts +1 -1
  47. package/dist/Chip/chip.types.d.ts +5 -1
  48. package/dist/Chip/chip.variants.d.ts +135 -45
  49. package/dist/Chip/chip.variants.js +9 -9
  50. package/dist/ContextMenu/ContextMenu.svelte +87 -77
  51. package/dist/ContextMenu/ContextMenu.svelte.d.ts +1 -1
  52. package/dist/ContextMenu/context-menu.types.d.ts +9 -3
  53. package/dist/ContextMenu/context-menu.types.js +1 -1
  54. package/dist/ContextMenu/context-menu.variants.d.ts +74 -160
  55. package/dist/ContextMenu/context-menu.variants.js +63 -95
  56. package/dist/DropdownMenu/DropdownMenu.svelte +37 -43
  57. package/dist/DropdownMenu/DropdownMenu.svelte.d.ts +1 -1
  58. package/dist/DropdownMenu/dropdown-menu.types.d.ts +9 -3
  59. package/dist/DropdownMenu/dropdown-menu.types.js +1 -1
  60. package/dist/DropdownMenu/dropdown-menu.variants.d.ts +79 -230
  61. package/dist/DropdownMenu/dropdown-menu.variants.js +68 -111
  62. package/dist/DropdownMenu/index.d.ts +1 -1
  63. package/dist/Empty/Empty.svelte +68 -33
  64. package/dist/Empty/Empty.svelte.d.ts +1 -1
  65. package/dist/Empty/empty.types.d.ts +26 -9
  66. package/dist/Empty/empty.variants.d.ts +150 -130
  67. package/dist/Empty/empty.variants.js +33 -324
  68. package/dist/FieldGroup/FieldGroup.svelte +11 -6
  69. package/dist/FieldGroup/FieldGroup.svelte.d.ts +1 -1
  70. package/dist/FieldGroup/field-group.types.d.ts +4 -0
  71. package/dist/FileUpload/FileUpload.svelte +561 -0
  72. package/dist/FileUpload/FileUpload.svelte.d.ts +8 -0
  73. package/dist/FileUpload/file-upload.types.d.ts +164 -0
  74. package/dist/FileUpload/file-upload.types.js +1 -0
  75. package/dist/FileUpload/file-upload.variants.d.ts +397 -0
  76. package/dist/FileUpload/file-upload.variants.js +224 -0
  77. package/dist/FileUpload/index.d.ts +2 -0
  78. package/dist/FileUpload/index.js +1 -0
  79. package/dist/FormField/FormField.svelte +17 -18
  80. package/dist/FormField/FormField.svelte.d.ts +1 -1
  81. package/dist/FormField/form-field.types.d.ts +4 -0
  82. package/dist/Icon/Icon.svelte +13 -7
  83. package/dist/Icon/icon.types.d.ts +18 -9
  84. package/dist/Input/Input.svelte +30 -29
  85. package/dist/Kbd/Kbd.svelte +13 -3
  86. package/dist/Kbd/Kbd.svelte.d.ts +1 -1
  87. package/dist/Kbd/index.d.ts +1 -1
  88. package/dist/Kbd/kbd.types.d.ts +15 -1
  89. package/dist/Kbd/kbd.variants.d.ts +92 -30
  90. package/dist/Kbd/kbd.variants.js +55 -35
  91. package/dist/Kbd/useKbd.svelte.d.ts +2 -2
  92. package/dist/Kbd/useKbd.svelte.js +34 -41
  93. package/dist/Link/Link.svelte +69 -24
  94. package/dist/Link/Link.svelte.d.ts +1 -1
  95. package/dist/Link/link.types.d.ts +26 -8
  96. package/dist/Link/link.variants.d.ts +35 -60
  97. package/dist/Link/link.variants.js +8 -110
  98. package/dist/Modal/Modal.svelte +9 -1
  99. package/dist/Modal/modal.types.d.ts +5 -0
  100. package/dist/Modal/modal.variants.d.ts +5 -0
  101. package/dist/Modal/modal.variants.js +1 -0
  102. package/dist/Pagination/Pagination.svelte +143 -94
  103. package/dist/Pagination/Pagination.svelte.d.ts +1 -1
  104. package/dist/Pagination/index.d.ts +1 -1
  105. package/dist/Pagination/pagination.types.d.ts +21 -2
  106. package/dist/Pagination/pagination.variants.d.ts +21 -387
  107. package/dist/Pagination/pagination.variants.js +63 -59
  108. package/dist/PinInput/PinInput.svelte +150 -0
  109. package/dist/PinInput/PinInput.svelte.d.ts +6 -0
  110. package/dist/PinInput/index.d.ts +2 -0
  111. package/dist/PinInput/index.js +1 -0
  112. package/dist/PinInput/pin-input.types.d.ts +99 -0
  113. package/dist/PinInput/pin-input.types.js +1 -0
  114. package/dist/PinInput/pin-input.variants.d.ts +303 -0
  115. package/dist/PinInput/pin-input.variants.js +196 -0
  116. package/dist/Popover/Popover.svelte +9 -12
  117. package/dist/Popover/Popover.svelte.d.ts +1 -1
  118. package/dist/Popover/popover.types.d.ts +4 -0
  119. package/dist/Popover/popover.variants.d.ts +5 -75
  120. package/dist/Popover/popover.variants.js +6 -16
  121. package/dist/Progress/Progress.svelte +58 -30
  122. package/dist/Progress/progress.types.d.ts +9 -1
  123. package/dist/Progress/progress.variants.d.ts +55 -25
  124. package/dist/Progress/progress.variants.js +34 -28
  125. package/dist/RadioGroup/RadioGroup.svelte +105 -61
  126. package/dist/RadioGroup/RadioGroup.svelte.d.ts +1 -1
  127. package/dist/RadioGroup/radio-group.types.d.ts +16 -1
  128. package/dist/RadioGroup/radio-group.variants.d.ts +90 -0
  129. package/dist/RadioGroup/radio-group.variants.js +73 -4
  130. package/dist/Select/Select.svelte +9 -6
  131. package/dist/Select/Select.svelte.d.ts +1 -1
  132. package/dist/Select/select.types.d.ts +4 -0
  133. package/dist/SelectMenu/SelectMenu.svelte +436 -0
  134. package/dist/SelectMenu/SelectMenu.svelte.d.ts +5 -0
  135. package/dist/SelectMenu/index.d.ts +2 -0
  136. package/dist/SelectMenu/index.js +1 -0
  137. package/dist/SelectMenu/select-menu.types.d.ts +262 -0
  138. package/dist/SelectMenu/select-menu.types.js +1 -0
  139. package/dist/SelectMenu/select-menu.variants.d.ts +759 -0
  140. package/dist/SelectMenu/select-menu.variants.js +33 -0
  141. package/dist/Separator/Separator.svelte +1 -2
  142. package/dist/Separator/separator.variants.d.ts +1 -5
  143. package/dist/Separator/separator.variants.js +2 -2
  144. package/dist/Skeleton/Skeleton.svelte +18 -2
  145. package/dist/Skeleton/Skeleton.svelte.d.ts +1 -1
  146. package/dist/Skeleton/skeleton.types.d.ts +10 -1
  147. package/dist/Slideover/Slideover.svelte +9 -1
  148. package/dist/Slideover/slideover.types.d.ts +5 -0
  149. package/dist/Slideover/slideover.variants.d.ts +20 -5
  150. package/dist/Slideover/slideover.variants.js +4 -29
  151. package/dist/Slider/Slider.svelte +135 -0
  152. package/dist/Slider/Slider.svelte.d.ts +6 -0
  153. package/dist/Slider/index.d.ts +2 -0
  154. package/dist/Slider/index.js +1 -0
  155. package/dist/Slider/slider.types.d.ts +55 -0
  156. package/dist/Slider/slider.types.js +1 -0
  157. package/dist/Slider/slider.variants.d.ts +383 -0
  158. package/dist/Slider/slider.variants.js +102 -0
  159. package/dist/Switch/Switch.svelte +32 -31
  160. package/dist/Switch/Switch.svelte.d.ts +1 -1
  161. package/dist/Switch/switch.types.d.ts +6 -1
  162. package/dist/Switch/switch.variants.js +6 -6
  163. package/dist/Tabs/Tabs.svelte +6 -9
  164. package/dist/Tabs/Tabs.svelte.d.ts +1 -1
  165. package/dist/Tabs/tabs.types.d.ts +4 -0
  166. package/dist/Tabs/tabs.variants.js +2 -0
  167. package/dist/Textarea/Textarea.svelte +26 -25
  168. package/dist/ThemeModeButton/theme-mode-button.types.d.ts +7 -2
  169. package/dist/Timeline/Timeline.svelte +62 -19
  170. package/dist/Timeline/Timeline.svelte.d.ts +1 -1
  171. package/dist/Timeline/index.d.ts +1 -1
  172. package/dist/Timeline/timeline.types.d.ts +8 -0
  173. package/dist/Tooltip/Tooltip.svelte +12 -10
  174. package/dist/Tooltip/Tooltip.svelte.d.ts +1 -1
  175. package/dist/Tooltip/tooltip.types.d.ts +8 -4
  176. package/dist/Tooltip/tooltip.variants.d.ts +10 -75
  177. package/dist/Tooltip/tooltip.variants.js +8 -17
  178. package/dist/User/User.svelte +13 -9
  179. package/dist/User/User.svelte.d.ts +1 -1
  180. package/dist/User/user.types.d.ts +4 -0
  181. package/dist/User/user.variants.d.ts +60 -0
  182. package/dist/User/user.variants.js +13 -1
  183. package/dist/config.d.ts +8 -0
  184. package/dist/config.js +9 -1
  185. package/dist/index.d.ts +5 -0
  186. package/dist/index.js +5 -0
  187. package/package.json +2 -2
@@ -0,0 +1,231 @@
1
+ import { tv } from 'tailwind-variants';
2
+ export const checkboxGroupVariants = tv({
3
+ slots: {
4
+ root: '',
5
+ fieldset: 'flex m-0 p-0 border-0 min-w-0',
6
+ legend: 'w-full font-medium text-on-surface mb-1',
7
+ item: 'flex items-start',
8
+ container: 'flex items-center',
9
+ wrapper: '',
10
+ base: [
11
+ 'inline-flex items-center justify-center shrink-0 rounded-md border',
12
+ 'focus-visible:outline-2 focus-visible:outline-offset-2',
13
+ 'transition-colors duration-200',
14
+ 'border-outline-variant',
15
+ 'data-[state=unchecked]:bg-transparent'
16
+ ],
17
+ indicator: 'flex items-center justify-center',
18
+ icon: 'shrink-0 text-surface',
19
+ label: 'block font-medium text-on-surface',
20
+ description: 'text-on-surface-variant'
21
+ },
22
+ variants: {
23
+ color: {
24
+ primary: '',
25
+ secondary: '',
26
+ tertiary: '',
27
+ success: '',
28
+ warning: '',
29
+ error: '',
30
+ info: '',
31
+ surface: ''
32
+ },
33
+ size: {
34
+ xs: {
35
+ fieldset: 'gap-2',
36
+ legend: 'text-xs',
37
+ base: 'size-3.5 rounded',
38
+ container: 'h-4',
39
+ icon: 'size-2.5',
40
+ wrapper: 'text-xs'
41
+ },
42
+ sm: {
43
+ fieldset: 'gap-2.5',
44
+ legend: 'text-xs',
45
+ base: 'size-4 rounded',
46
+ container: 'h-4',
47
+ icon: 'size-3',
48
+ wrapper: 'text-xs'
49
+ },
50
+ md: {
51
+ fieldset: 'gap-3',
52
+ legend: 'text-sm',
53
+ base: 'size-4.5 rounded-md',
54
+ container: 'h-5',
55
+ icon: 'size-3.5',
56
+ wrapper: 'text-sm'
57
+ },
58
+ lg: {
59
+ fieldset: 'gap-3.5',
60
+ legend: 'text-sm',
61
+ base: 'size-5 rounded-md',
62
+ container: 'h-5',
63
+ icon: 'size-4',
64
+ wrapper: 'text-sm'
65
+ },
66
+ xl: {
67
+ fieldset: 'gap-4',
68
+ legend: 'text-base',
69
+ base: 'size-5.5 rounded-md',
70
+ container: 'h-6',
71
+ icon: 'size-4.5',
72
+ wrapper: 'text-base'
73
+ }
74
+ },
75
+ orientation: {
76
+ horizontal: {
77
+ fieldset: 'flex-row flex-wrap items-start'
78
+ },
79
+ vertical: {
80
+ fieldset: 'flex-col'
81
+ }
82
+ },
83
+ variant: {
84
+ list: '',
85
+ card: {
86
+ item: 'border border-outline-variant rounded-lg cursor-pointer select-none'
87
+ }
88
+ },
89
+ indicator: {
90
+ start: {
91
+ wrapper: 'ms-2'
92
+ },
93
+ end: {
94
+ item: 'flex-row-reverse',
95
+ wrapper: 'me-2'
96
+ },
97
+ hidden: {
98
+ container: 'sr-only'
99
+ }
100
+ },
101
+ loading: {
102
+ true: {
103
+ icon: 'animate-spin'
104
+ }
105
+ },
106
+ required: {
107
+ true: {
108
+ legend: "after:content-['*'] after:ms-0.5 after:text-error"
109
+ }
110
+ },
111
+ disabled: {
112
+ true: {
113
+ root: 'opacity-75',
114
+ base: 'cursor-not-allowed',
115
+ label: 'cursor-not-allowed',
116
+ description: 'cursor-not-allowed'
117
+ }
118
+ }
119
+ },
120
+ compoundVariants: [
121
+ // ========== COLOR (checked bg + border + focus ring) ==========
122
+ {
123
+ color: 'primary',
124
+ class: {
125
+ base: 'data-[state=checked]:bg-primary data-[state=checked]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:border-primary focus-visible:outline-primary'
126
+ }
127
+ },
128
+ {
129
+ color: 'secondary',
130
+ class: {
131
+ base: 'data-[state=checked]:bg-secondary data-[state=checked]:border-secondary data-[state=indeterminate]:bg-secondary data-[state=indeterminate]:border-secondary focus-visible:outline-secondary'
132
+ }
133
+ },
134
+ {
135
+ color: 'tertiary',
136
+ class: {
137
+ base: 'data-[state=checked]:bg-tertiary data-[state=checked]:border-tertiary data-[state=indeterminate]:bg-tertiary data-[state=indeterminate]:border-tertiary focus-visible:outline-tertiary'
138
+ }
139
+ },
140
+ {
141
+ color: 'success',
142
+ class: {
143
+ base: 'data-[state=checked]:bg-success data-[state=checked]:border-success data-[state=indeterminate]:bg-success data-[state=indeterminate]:border-success focus-visible:outline-success'
144
+ }
145
+ },
146
+ {
147
+ color: 'warning',
148
+ class: {
149
+ base: 'data-[state=checked]:bg-warning data-[state=checked]:border-warning data-[state=indeterminate]:bg-warning data-[state=indeterminate]:border-warning focus-visible:outline-warning'
150
+ }
151
+ },
152
+ {
153
+ color: 'error',
154
+ class: {
155
+ base: 'data-[state=checked]:bg-error data-[state=checked]:border-error data-[state=indeterminate]:bg-error data-[state=indeterminate]:border-error focus-visible:outline-error'
156
+ }
157
+ },
158
+ {
159
+ color: 'info',
160
+ class: {
161
+ base: 'data-[state=checked]:bg-info data-[state=checked]:border-info data-[state=indeterminate]:bg-info data-[state=indeterminate]:border-info focus-visible:outline-info'
162
+ }
163
+ },
164
+ {
165
+ color: 'surface',
166
+ class: {
167
+ base: 'data-[state=checked]:bg-on-surface data-[state=checked]:border-on-surface data-[state=indeterminate]:bg-on-surface data-[state=indeterminate]:border-on-surface focus-visible:outline-outline'
168
+ }
169
+ },
170
+ // ========== CARD × SIZE (padding) ==========
171
+ { variant: 'card', size: 'xs', class: { item: 'p-2' } },
172
+ { variant: 'card', size: 'sm', class: { item: 'p-2.5' } },
173
+ { variant: 'card', size: 'md', class: { item: 'p-3' } },
174
+ { variant: 'card', size: 'lg', class: { item: 'p-3.5' } },
175
+ { variant: 'card', size: 'xl', class: { item: 'p-4' } },
176
+ // ========== CARD × COLOR (checked border) ==========
177
+ {
178
+ variant: 'card',
179
+ color: 'primary',
180
+ class: { item: 'has-[[data-state=checked]]:border-primary' }
181
+ },
182
+ {
183
+ variant: 'card',
184
+ color: 'secondary',
185
+ class: { item: 'has-[[data-state=checked]]:border-secondary' }
186
+ },
187
+ {
188
+ variant: 'card',
189
+ color: 'tertiary',
190
+ class: { item: 'has-[[data-state=checked]]:border-tertiary' }
191
+ },
192
+ {
193
+ variant: 'card',
194
+ color: 'success',
195
+ class: { item: 'has-[[data-state=checked]]:border-success' }
196
+ },
197
+ {
198
+ variant: 'card',
199
+ color: 'warning',
200
+ class: { item: 'has-[[data-state=checked]]:border-warning' }
201
+ },
202
+ {
203
+ variant: 'card',
204
+ color: 'error',
205
+ class: { item: 'has-[[data-state=checked]]:border-error' }
206
+ },
207
+ {
208
+ variant: 'card',
209
+ color: 'info',
210
+ class: { item: 'has-[[data-state=checked]]:border-info' }
211
+ },
212
+ {
213
+ variant: 'card',
214
+ color: 'surface',
215
+ class: { item: 'has-[[data-state=checked]]:border-on-surface' }
216
+ },
217
+ // ========== CARD × DISABLED ==========
218
+ { variant: 'card', disabled: true, class: { item: 'cursor-not-allowed' } }
219
+ ],
220
+ defaultVariants: {
221
+ color: 'primary',
222
+ size: 'md',
223
+ variant: 'list',
224
+ indicator: 'start',
225
+ orientation: 'vertical'
226
+ }
227
+ });
228
+ export const checkboxGroupDefaults = {
229
+ defaultVariants: checkboxGroupVariants.defaultVariants,
230
+ slots: {}
231
+ };
@@ -0,0 +1,2 @@
1
+ export { default as CheckboxGroup } from './CheckboxGroup.svelte';
2
+ export type { CheckboxGroupProps, CheckboxGroupItem } from './checkbox-group.types.js';
@@ -0,0 +1 @@
1
+ export { default as CheckboxGroup } from './CheckboxGroup.svelte';
@@ -11,6 +11,7 @@
11
11
  const config = getComponentConfig('chip', chipDefaults)
12
12
 
13
13
  let {
14
+ ref = $bindable(null),
14
15
  as = 'div',
15
16
  ui,
16
17
  text,
@@ -19,7 +20,7 @@
19
20
  position = config.defaultVariants.position,
20
21
  inset = false,
21
22
  standalone = false,
22
- show = true,
23
+ show = $bindable(true),
23
24
  class: className,
24
25
  children,
25
26
  content,
@@ -35,7 +36,7 @@
35
36
  })
36
37
  </script>
37
38
 
38
- <svelte:element this={as} class={classes.root} {...restProps}>
39
+ <svelte:element this={as} bind:this={ref} class={classes.root} {...restProps}>
39
40
  {@render children?.()}
40
41
 
41
42
  {#if show}
@@ -1,5 +1,5 @@
1
1
  import type { ChipProps } from './chip.types.js';
2
2
  export type Props = ChipProps;
3
- declare const Chip: import("svelte").Component<ChipProps, {}, "">;
3
+ declare const Chip: import("svelte").Component<ChipProps, {}, "show" | "ref">;
4
4
  type Chip = ReturnType<typeof Chip>;
5
5
  export default Chip;
@@ -3,6 +3,10 @@ import type { ClassNameValue } from 'tailwind-merge';
3
3
  import type { HTMLAttributes } from 'svelte/elements';
4
4
  import type { ChipVariantProps, ChipSlots } from './chip.variants.js';
5
5
  export type ChipProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
6
+ /**
7
+ * Bind to the root DOM element.
8
+ */
9
+ ref?: HTMLElement | null;
6
10
  /**
7
11
  * The HTML element to render as.
8
12
  * @default 'div'
@@ -42,7 +46,7 @@ export type ChipProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
42
46
  */
43
47
  standalone?: boolean;
44
48
  /**
45
- * Controls the visibility of the chip.
49
+ * Controls the visibility of the chip. Supports `bind:show`.
46
50
  * @default true
47
51
  */
48
52
  show?: boolean;
@@ -27,15 +27,33 @@ export declare const chipVariants: import("tailwind-variants").TVReturnType<{
27
27
  };
28
28
  };
29
29
  size: {
30
- '3xs': string;
31
- '2xs': string;
32
- xs: string;
33
- sm: string;
34
- md: string;
35
- lg: string;
36
- xl: string;
37
- '2xl': string;
38
- '3xl': string;
30
+ '3xs': {
31
+ base: string;
32
+ };
33
+ '2xs': {
34
+ base: string;
35
+ };
36
+ xs: {
37
+ base: string;
38
+ };
39
+ sm: {
40
+ base: string;
41
+ };
42
+ md: {
43
+ base: string;
44
+ };
45
+ lg: {
46
+ base: string;
47
+ };
48
+ xl: {
49
+ base: string;
50
+ };
51
+ '2xl': {
52
+ base: string;
53
+ };
54
+ '3xl': {
55
+ base: string;
56
+ };
39
57
  };
40
58
  position: {
41
59
  'top-right': {
@@ -91,15 +109,33 @@ export declare const chipVariants: import("tailwind-variants").TVReturnType<{
91
109
  };
92
110
  };
93
111
  size: {
94
- '3xs': string;
95
- '2xs': string;
96
- xs: string;
97
- sm: string;
98
- md: string;
99
- lg: string;
100
- xl: string;
101
- '2xl': string;
102
- '3xl': string;
112
+ '3xs': {
113
+ base: string;
114
+ };
115
+ '2xs': {
116
+ base: string;
117
+ };
118
+ xs: {
119
+ base: string;
120
+ };
121
+ sm: {
122
+ base: string;
123
+ };
124
+ md: {
125
+ base: string;
126
+ };
127
+ lg: {
128
+ base: string;
129
+ };
130
+ xl: {
131
+ base: string;
132
+ };
133
+ '2xl': {
134
+ base: string;
135
+ };
136
+ '3xl': {
137
+ base: string;
138
+ };
103
139
  };
104
140
  position: {
105
141
  'top-right': {
@@ -155,15 +191,33 @@ export declare const chipVariants: import("tailwind-variants").TVReturnType<{
155
191
  };
156
192
  };
157
193
  size: {
158
- '3xs': string;
159
- '2xs': string;
160
- xs: string;
161
- sm: string;
162
- md: string;
163
- lg: string;
164
- xl: string;
165
- '2xl': string;
166
- '3xl': string;
194
+ '3xs': {
195
+ base: string;
196
+ };
197
+ '2xs': {
198
+ base: string;
199
+ };
200
+ xs: {
201
+ base: string;
202
+ };
203
+ sm: {
204
+ base: string;
205
+ };
206
+ md: {
207
+ base: string;
208
+ };
209
+ lg: {
210
+ base: string;
211
+ };
212
+ xl: {
213
+ base: string;
214
+ };
215
+ '2xl': {
216
+ base: string;
217
+ };
218
+ '3xl': {
219
+ base: string;
220
+ };
167
221
  };
168
222
  position: {
169
223
  'top-right': {
@@ -223,15 +277,33 @@ export declare const chipDefaults: {
223
277
  };
224
278
  };
225
279
  size: {
226
- '3xs': string;
227
- '2xs': string;
228
- xs: string;
229
- sm: string;
230
- md: string;
231
- lg: string;
232
- xl: string;
233
- '2xl': string;
234
- '3xl': string;
280
+ '3xs': {
281
+ base: string;
282
+ };
283
+ '2xs': {
284
+ base: string;
285
+ };
286
+ xs: {
287
+ base: string;
288
+ };
289
+ sm: {
290
+ base: string;
291
+ };
292
+ md: {
293
+ base: string;
294
+ };
295
+ lg: {
296
+ base: string;
297
+ };
298
+ xl: {
299
+ base: string;
300
+ };
301
+ '2xl': {
302
+ base: string;
303
+ };
304
+ '3xl': {
305
+ base: string;
306
+ };
235
307
  };
236
308
  position: {
237
309
  'top-right': {
@@ -287,15 +359,33 @@ export declare const chipDefaults: {
287
359
  };
288
360
  };
289
361
  size: {
290
- '3xs': string;
291
- '2xs': string;
292
- xs: string;
293
- sm: string;
294
- md: string;
295
- lg: string;
296
- xl: string;
297
- '2xl': string;
298
- '3xl': string;
362
+ '3xs': {
363
+ base: string;
364
+ };
365
+ '2xs': {
366
+ base: string;
367
+ };
368
+ xs: {
369
+ base: string;
370
+ };
371
+ sm: {
372
+ base: string;
373
+ };
374
+ md: {
375
+ base: string;
376
+ };
377
+ lg: {
378
+ base: string;
379
+ };
380
+ xl: {
381
+ base: string;
382
+ };
383
+ '2xl': {
384
+ base: string;
385
+ };
386
+ '3xl': {
387
+ base: string;
388
+ };
299
389
  };
300
390
  position: {
301
391
  'top-right': {
@@ -16,15 +16,15 @@ export const chipVariants = tv({
16
16
  surface: { base: 'bg-inverse-surface text-inverse-on-surface' }
17
17
  },
18
18
  size: {
19
- '3xs': 'h-[4px] min-w-[4px] text-[4px]',
20
- '2xs': 'h-[5px] min-w-[5px] text-[5px]',
21
- xs: 'h-[6px] min-w-[6px] text-[6px]',
22
- sm: 'h-[7px] min-w-[7px] text-[7px]',
23
- md: 'h-[8px] min-w-[8px] text-[8px]',
24
- lg: 'h-[9px] min-w-[9px] text-[9px]',
25
- xl: 'h-[10px] min-w-[10px] text-[10px]',
26
- '2xl': 'h-[11px] min-w-[11px] text-[11px]',
27
- '3xl': 'h-[12px] min-w-[12px] text-[12px]'
19
+ '3xs': { base: 'h-[4px] min-w-[4px] text-[4px]' },
20
+ '2xs': { base: 'h-[5px] min-w-[5px] text-[5px]' },
21
+ xs: { base: 'h-[6px] min-w-[6px] text-[6px]' },
22
+ sm: { base: 'h-[7px] min-w-[7px] text-[7px]' },
23
+ md: { base: 'h-[8px] min-w-[8px] text-[8px]' },
24
+ lg: { base: 'h-[9px] min-w-[9px] text-[9px]' },
25
+ xl: { base: 'h-[10px] min-w-[10px] text-[10px]' },
26
+ '2xl': { base: 'h-[11px] min-w-[11px] text-[11px]' },
27
+ '3xl': { base: 'h-[12px] min-w-[12px] text-[12px]' }
28
28
  },
29
29
  position: {
30
30
  'top-right': { base: 'top-0 right-0' },