@qasa/qds-ui 0.12.0 → 0.13.0-next.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 (229) hide show
  1. package/dist/index.d.mts +5416 -0
  2. package/dist/index.d.ts +1 -2
  3. package/dist/index.js +819 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +703 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +14 -14
  8. package/dist/cjs/index.js +0 -9236
  9. package/dist/cjs/index.js.map +0 -1
  10. package/dist/cjs/types/components/_internal/form-parts.d.ts +0 -10
  11. package/dist/cjs/types/components/_internal/index.d.ts +0 -1
  12. package/dist/cjs/types/components/avatar/avatar.d.ts +0 -33
  13. package/dist/cjs/types/components/avatar/index.d.ts +0 -1
  14. package/dist/cjs/types/components/button/button-icon.d.ts +0 -10
  15. package/dist/cjs/types/components/button/button-styles.d.ts +0 -909
  16. package/dist/cjs/types/components/button/button-types.d.ts +0 -44
  17. package/dist/cjs/types/components/button/button.d.ts +0 -6
  18. package/dist/cjs/types/components/button/index.d.ts +0 -1
  19. package/dist/cjs/types/components/checkbox/checkbox.d.ts +0 -78
  20. package/dist/cjs/types/components/checkbox/index.d.ts +0 -1
  21. package/dist/cjs/types/components/display-text/display-text.d.ts +0 -30
  22. package/dist/cjs/types/components/display-text/index.d.ts +0 -1
  23. package/dist/cjs/types/components/divider/divider.d.ts +0 -14
  24. package/dist/cjs/types/components/divider/index.d.ts +0 -1
  25. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  26. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  27. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  28. package/dist/cjs/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  29. package/dist/cjs/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  30. package/dist/cjs/types/components/dropdown-menu/index.d.ts +0 -1
  31. package/dist/cjs/types/components/heading/heading.d.ts +0 -32
  32. package/dist/cjs/types/components/heading/index.d.ts +0 -1
  33. package/dist/cjs/types/components/hint-box/hint-box.d.ts +0 -10
  34. package/dist/cjs/types/components/hint-box/index.d.ts +0 -1
  35. package/dist/cjs/types/components/icon/create-icon.d.ts +0 -41
  36. package/dist/cjs/types/components/icon/create-lucide-icon.d.ts +0 -4
  37. package/dist/cjs/types/components/icon/icon.types.d.ts +0 -22
  38. package/dist/cjs/types/components/icon/icons.d.ts +0 -48
  39. package/dist/cjs/types/components/icon/index.d.ts +0 -4
  40. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +0 -882
  41. package/dist/cjs/types/components/icon-button/icon-button.d.ts +0 -32
  42. package/dist/cjs/types/components/icon-button/index.d.ts +0 -1
  43. package/dist/cjs/types/components/index.d.ts +0 -23
  44. package/dist/cjs/types/components/label/index.d.ts +0 -1
  45. package/dist/cjs/types/components/label/label.d.ts +0 -445
  46. package/dist/cjs/types/components/link/index.d.ts +0 -1
  47. package/dist/cjs/types/components/link/link.d.ts +0 -15
  48. package/dist/cjs/types/components/loading-dots/index.d.ts +0 -1
  49. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +0 -425
  50. package/dist/cjs/types/components/paragraph/index.d.ts +0 -1
  51. package/dist/cjs/types/components/paragraph/paragraph.d.ts +0 -476
  52. package/dist/cjs/types/components/primitives/index.d.ts +0 -3
  53. package/dist/cjs/types/components/primitives/input-base/index.d.ts +0 -1
  54. package/dist/cjs/types/components/primitives/input-base/input-base.d.ts +0 -21
  55. package/dist/cjs/types/components/primitives/select-base/index.d.ts +0 -1
  56. package/dist/cjs/types/components/primitives/select-base/select-base.d.ts +0 -30
  57. package/dist/cjs/types/components/primitives/textarea-base/index.d.ts +0 -1
  58. package/dist/cjs/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  59. package/dist/cjs/types/components/radio-group/index.d.ts +0 -1
  60. package/dist/cjs/types/components/radio-group/radio-card.d.ts +0 -26
  61. package/dist/cjs/types/components/radio-group/radio-group-context.d.ts +0 -16
  62. package/dist/cjs/types/components/radio-group/radio-group-label.d.ts +0 -4
  63. package/dist/cjs/types/components/radio-group/radio-group.d.ts +0 -50
  64. package/dist/cjs/types/components/radio-group/radio-indicator.d.ts +0 -10
  65. package/dist/cjs/types/components/select/index.d.ts +0 -1
  66. package/dist/cjs/types/components/select/select-option.d.ts +0 -10
  67. package/dist/cjs/types/components/select/select.d.ts +0 -25
  68. package/dist/cjs/types/components/spacer/index.d.ts +0 -1
  69. package/dist/cjs/types/components/spacer/spacer.d.ts +0 -12
  70. package/dist/cjs/types/components/stack/index.d.ts +0 -1
  71. package/dist/cjs/types/components/stack/stack.d.ts +0 -44
  72. package/dist/cjs/types/components/stack/stack.types.d.ts +0 -4
  73. package/dist/cjs/types/components/stack/stack.utils.d.ts +0 -6
  74. package/dist/cjs/types/components/switch/index.d.ts +0 -1
  75. package/dist/cjs/types/components/switch/switch.d.ts +0 -35
  76. package/dist/cjs/types/components/text-field/index.d.ts +0 -1
  77. package/dist/cjs/types/components/text-field/text-field.d.ts +0 -32
  78. package/dist/cjs/types/components/textarea/index.d.ts +0 -1
  79. package/dist/cjs/types/components/textarea/textarea.d.ts +0 -27
  80. package/dist/cjs/types/components/toast/index.d.ts +0 -1
  81. package/dist/cjs/types/components/toast/toast-provider.d.ts +0 -4
  82. package/dist/cjs/types/components/toast/toast-store.d.ts +0 -44
  83. package/dist/cjs/types/components/toast/toast-styles.d.ts +0 -417
  84. package/dist/cjs/types/components/toast/toast.d.ts +0 -12
  85. package/dist/cjs/types/hooks/index.d.ts +0 -5
  86. package/dist/cjs/types/hooks/use-breakpoint-value.d.ts +0 -16
  87. package/dist/cjs/types/hooks/use-breakpoint.d.ts +0 -15
  88. package/dist/cjs/types/hooks/use-form-field.d.ts +0 -49
  89. package/dist/cjs/types/hooks/use-responsive-prop.d.ts +0 -16
  90. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +0 -9
  91. package/dist/cjs/types/hooks/use-stable-id.d.ts +0 -4
  92. package/dist/cjs/types/i18n/locale-context.d.ts +0 -12
  93. package/dist/cjs/types/i18n/locales.d.ts +0 -8
  94. package/dist/cjs/types/i18n/use-translation.d.ts +0 -6
  95. package/dist/cjs/types/index.d.ts +0 -6
  96. package/dist/cjs/types/qds-provider.d.ts +0 -12
  97. package/dist/cjs/types/styles/common-styles.d.ts +0 -451
  98. package/dist/cjs/types/styles/css-reset.d.ts +0 -4
  99. package/dist/cjs/types/styles/css-utils.d.ts +0 -19
  100. package/dist/cjs/types/styles/global-styles.d.ts +0 -4
  101. package/dist/cjs/types/styles/index.d.ts +0 -3
  102. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +0 -8
  103. package/dist/cjs/types/theme/foundations/colors.d.ts +0 -117
  104. package/dist/cjs/types/theme/foundations/index.d.ts +0 -411
  105. package/dist/cjs/types/theme/foundations/radius.d.ts +0 -20
  106. package/dist/cjs/types/theme/foundations/shadows.d.ts +0 -7
  107. package/dist/cjs/types/theme/foundations/sizes.d.ts +0 -34
  108. package/dist/cjs/types/theme/foundations/spacing.d.ts +0 -30
  109. package/dist/cjs/types/theme/foundations/typography.d.ts +0 -189
  110. package/dist/cjs/types/theme/foundations/z-index.d.ts +0 -28
  111. package/dist/cjs/types/theme/index.d.ts +0 -2
  112. package/dist/cjs/types/theme/theme-tools.d.ts +0 -421
  113. package/dist/cjs/types/theme/theme.d.ts +0 -407
  114. package/dist/cjs/types/types.d.ts +0 -5
  115. package/dist/cjs/types/utils/html-attributes.d.ts +0 -4
  116. package/dist/cjs/types/utils/merge-refs.d.ts +0 -5
  117. package/dist/cjs/types/utils/object.d.ts +0 -1
  118. package/dist/cjs/types/utils/polymorphic.d.ts +0 -41
  119. package/dist/esm/index.js +0 -9236
  120. package/dist/esm/index.js.map +0 -1
  121. package/dist/esm/types/components/_internal/form-parts.d.ts +0 -10
  122. package/dist/esm/types/components/_internal/index.d.ts +0 -1
  123. package/dist/esm/types/components/avatar/avatar.d.ts +0 -33
  124. package/dist/esm/types/components/avatar/index.d.ts +0 -1
  125. package/dist/esm/types/components/button/button-icon.d.ts +0 -10
  126. package/dist/esm/types/components/button/button-styles.d.ts +0 -909
  127. package/dist/esm/types/components/button/button-types.d.ts +0 -44
  128. package/dist/esm/types/components/button/button.d.ts +0 -6
  129. package/dist/esm/types/components/button/index.d.ts +0 -1
  130. package/dist/esm/types/components/checkbox/checkbox.d.ts +0 -78
  131. package/dist/esm/types/components/checkbox/index.d.ts +0 -1
  132. package/dist/esm/types/components/display-text/display-text.d.ts +0 -30
  133. package/dist/esm/types/components/display-text/index.d.ts +0 -1
  134. package/dist/esm/types/components/divider/divider.d.ts +0 -14
  135. package/dist/esm/types/components/divider/index.d.ts +0 -1
  136. package/dist/esm/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  137. package/dist/esm/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  138. package/dist/esm/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  139. package/dist/esm/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  140. package/dist/esm/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  141. package/dist/esm/types/components/dropdown-menu/index.d.ts +0 -1
  142. package/dist/esm/types/components/heading/heading.d.ts +0 -32
  143. package/dist/esm/types/components/heading/index.d.ts +0 -1
  144. package/dist/esm/types/components/hint-box/hint-box.d.ts +0 -10
  145. package/dist/esm/types/components/hint-box/index.d.ts +0 -1
  146. package/dist/esm/types/components/icon/create-icon.d.ts +0 -41
  147. package/dist/esm/types/components/icon/create-lucide-icon.d.ts +0 -4
  148. package/dist/esm/types/components/icon/icon.types.d.ts +0 -22
  149. package/dist/esm/types/components/icon/icons.d.ts +0 -48
  150. package/dist/esm/types/components/icon/index.d.ts +0 -4
  151. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +0 -882
  152. package/dist/esm/types/components/icon-button/icon-button.d.ts +0 -32
  153. package/dist/esm/types/components/icon-button/index.d.ts +0 -1
  154. package/dist/esm/types/components/index.d.ts +0 -23
  155. package/dist/esm/types/components/label/index.d.ts +0 -1
  156. package/dist/esm/types/components/label/label.d.ts +0 -445
  157. package/dist/esm/types/components/link/index.d.ts +0 -1
  158. package/dist/esm/types/components/link/link.d.ts +0 -15
  159. package/dist/esm/types/components/loading-dots/index.d.ts +0 -1
  160. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +0 -425
  161. package/dist/esm/types/components/paragraph/index.d.ts +0 -1
  162. package/dist/esm/types/components/paragraph/paragraph.d.ts +0 -476
  163. package/dist/esm/types/components/primitives/index.d.ts +0 -3
  164. package/dist/esm/types/components/primitives/input-base/index.d.ts +0 -1
  165. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +0 -21
  166. package/dist/esm/types/components/primitives/select-base/index.d.ts +0 -1
  167. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +0 -30
  168. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +0 -1
  169. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  170. package/dist/esm/types/components/radio-group/index.d.ts +0 -1
  171. package/dist/esm/types/components/radio-group/radio-card.d.ts +0 -26
  172. package/dist/esm/types/components/radio-group/radio-group-context.d.ts +0 -16
  173. package/dist/esm/types/components/radio-group/radio-group-label.d.ts +0 -4
  174. package/dist/esm/types/components/radio-group/radio-group.d.ts +0 -50
  175. package/dist/esm/types/components/radio-group/radio-indicator.d.ts +0 -10
  176. package/dist/esm/types/components/select/index.d.ts +0 -1
  177. package/dist/esm/types/components/select/select-option.d.ts +0 -10
  178. package/dist/esm/types/components/select/select.d.ts +0 -25
  179. package/dist/esm/types/components/spacer/index.d.ts +0 -1
  180. package/dist/esm/types/components/spacer/spacer.d.ts +0 -12
  181. package/dist/esm/types/components/stack/index.d.ts +0 -1
  182. package/dist/esm/types/components/stack/stack.d.ts +0 -44
  183. package/dist/esm/types/components/stack/stack.types.d.ts +0 -4
  184. package/dist/esm/types/components/stack/stack.utils.d.ts +0 -6
  185. package/dist/esm/types/components/switch/index.d.ts +0 -1
  186. package/dist/esm/types/components/switch/switch.d.ts +0 -35
  187. package/dist/esm/types/components/text-field/index.d.ts +0 -1
  188. package/dist/esm/types/components/text-field/text-field.d.ts +0 -32
  189. package/dist/esm/types/components/textarea/index.d.ts +0 -1
  190. package/dist/esm/types/components/textarea/textarea.d.ts +0 -27
  191. package/dist/esm/types/components/toast/index.d.ts +0 -1
  192. package/dist/esm/types/components/toast/toast-provider.d.ts +0 -4
  193. package/dist/esm/types/components/toast/toast-store.d.ts +0 -44
  194. package/dist/esm/types/components/toast/toast-styles.d.ts +0 -417
  195. package/dist/esm/types/components/toast/toast.d.ts +0 -12
  196. package/dist/esm/types/hooks/index.d.ts +0 -5
  197. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +0 -16
  198. package/dist/esm/types/hooks/use-breakpoint.d.ts +0 -15
  199. package/dist/esm/types/hooks/use-form-field.d.ts +0 -49
  200. package/dist/esm/types/hooks/use-responsive-prop.d.ts +0 -16
  201. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +0 -9
  202. package/dist/esm/types/hooks/use-stable-id.d.ts +0 -4
  203. package/dist/esm/types/i18n/locale-context.d.ts +0 -12
  204. package/dist/esm/types/i18n/locales.d.ts +0 -8
  205. package/dist/esm/types/i18n/use-translation.d.ts +0 -6
  206. package/dist/esm/types/index.d.ts +0 -6
  207. package/dist/esm/types/qds-provider.d.ts +0 -12
  208. package/dist/esm/types/styles/common-styles.d.ts +0 -451
  209. package/dist/esm/types/styles/css-reset.d.ts +0 -4
  210. package/dist/esm/types/styles/css-utils.d.ts +0 -19
  211. package/dist/esm/types/styles/global-styles.d.ts +0 -4
  212. package/dist/esm/types/styles/index.d.ts +0 -3
  213. package/dist/esm/types/theme/foundations/breakpoints.d.ts +0 -8
  214. package/dist/esm/types/theme/foundations/colors.d.ts +0 -117
  215. package/dist/esm/types/theme/foundations/index.d.ts +0 -411
  216. package/dist/esm/types/theme/foundations/radius.d.ts +0 -20
  217. package/dist/esm/types/theme/foundations/shadows.d.ts +0 -7
  218. package/dist/esm/types/theme/foundations/sizes.d.ts +0 -34
  219. package/dist/esm/types/theme/foundations/spacing.d.ts +0 -30
  220. package/dist/esm/types/theme/foundations/typography.d.ts +0 -189
  221. package/dist/esm/types/theme/foundations/z-index.d.ts +0 -28
  222. package/dist/esm/types/theme/index.d.ts +0 -2
  223. package/dist/esm/types/theme/theme-tools.d.ts +0 -421
  224. package/dist/esm/types/theme/theme.d.ts +0 -407
  225. package/dist/esm/types/types.d.ts +0 -5
  226. package/dist/esm/types/utils/html-attributes.d.ts +0 -4
  227. package/dist/esm/types/utils/merge-refs.d.ts +0 -5
  228. package/dist/esm/types/utils/object.d.ts +0 -1
  229. package/dist/esm/types/utils/polymorphic.d.ts +0 -41
@@ -1,476 +0,0 @@
1
- import type { VariantProps } from '../../styles';
2
- import type { Theme } from '../../theme';
3
- import type * as Polymorphic from '../../utils/polymorphic';
4
- import { type ResponsiveProp } from '../../hooks/use-responsive-prop';
5
- declare const getSizeStyles: (theme: {
6
- mediaQueries: {
7
- readonly smUp: "@media(min-width: 480px)";
8
- readonly mdUp: "@media(min-width: 768px)";
9
- readonly lgUp: "@media(min-width: 1024px)";
10
- readonly xlUp: "@media(min-width: 1280px)";
11
- readonly '2xlUp': "@media(min-width: 1536px)";
12
- };
13
- spacing: {
14
- '0x': string;
15
- '1x': string;
16
- '2x': string;
17
- '3x': string;
18
- '4x': string;
19
- '5x': string;
20
- '6x': string;
21
- '8x': string;
22
- '10x': string;
23
- '12x': string;
24
- '14x': string;
25
- '16x': string;
26
- '20x': string;
27
- '24x': string;
28
- };
29
- breakpoints: {
30
- readonly base: 0;
31
- readonly sm: 480;
32
- readonly md: 768;
33
- readonly lg: 1024;
34
- readonly xl: 1280;
35
- readonly '2xl': 1536;
36
- };
37
- zIndices: {
38
- hide: number;
39
- auto: string;
40
- base: number;
41
- docked: number;
42
- dropdown: number;
43
- sticky: number;
44
- banner: number;
45
- overlay: number;
46
- modal: number;
47
- popover: number;
48
- skipLink: number;
49
- toast: number;
50
- tooltip: number;
51
- };
52
- colors: {
53
- core: {
54
- black: string;
55
- white: string;
56
- gray90: string;
57
- gray80: string;
58
- gray70: string;
59
- gray60: string;
60
- gray50: string;
61
- gray40: string;
62
- gray30: string;
63
- gray20: string;
64
- gray10: string;
65
- pink: string;
66
- uiPink: string;
67
- uiPinkDark: string;
68
- uiPinkLight: string;
69
- brown: string;
70
- brownDark: string;
71
- brownLight: string;
72
- offWhite: string;
73
- offWhiteDark: string;
74
- offWhiteLight: string;
75
- softPink: string;
76
- warmYellow: string;
77
- softYellow: string;
78
- red90: string;
79
- red80: string;
80
- red70: string;
81
- red60: string;
82
- red50: string;
83
- red40: string;
84
- red30: string;
85
- red20: string;
86
- red10: string;
87
- green90: string;
88
- green80: string;
89
- green70: string;
90
- green60: string;
91
- green50: string;
92
- green40: string;
93
- green30: string;
94
- green20: string;
95
- green10: string;
96
- blue90: string;
97
- blue80: string;
98
- blue70: string;
99
- blue60: string;
100
- blue50: string;
101
- blue40: string;
102
- blue30: string;
103
- blue20: string;
104
- blue10: string;
105
- yellow90: string;
106
- yellow80: string;
107
- yellow70: string;
108
- yellow60: string;
109
- yellow50: string;
110
- yellow40: string;
111
- yellow30: string;
112
- yellow20: string;
113
- yellow10: string;
114
- blackAlpha5: string;
115
- blackAlpha20: string;
116
- };
117
- bg: {
118
- default: string;
119
- brandPrimary: string;
120
- brandPrimaryHover: string;
121
- brandPrimaryActive: string;
122
- brandSecondary: string;
123
- brandSecondaryHover: string;
124
- brandSecondaryActive: string;
125
- brandTertiary: string;
126
- brandTertiaryHover: string;
127
- brandTertiaryActive: string;
128
- negative: string;
129
- warning: string;
130
- positive: string;
131
- inset: string;
132
- backdrop: string;
133
- };
134
- text: {
135
- strong: string;
136
- default: string;
137
- subtle: string;
138
- disabled: string;
139
- negative: string;
140
- warning: string;
141
- positive: string;
142
- onBrandPrimary: string;
143
- onBrandSecondary: string;
144
- onBrandTertiary: string;
145
- };
146
- icon: {
147
- default: string;
148
- strong: string;
149
- subtle: string;
150
- disabled: string;
151
- negative: string;
152
- warning: string;
153
- positive: string;
154
- onBrandPrimary: string;
155
- onBrandSecondary: string;
156
- onBrandTertiary: string;
157
- };
158
- border: {
159
- default: string;
160
- defaultHover: string;
161
- defaultSelected: string;
162
- strong: string;
163
- subtle: string;
164
- negative: string;
165
- warning: string;
166
- positive: string;
167
- };
168
- };
169
- sizes: {
170
- 112: string;
171
- 128: string;
172
- 144: string;
173
- 160: string;
174
- 176: string;
175
- 192: string;
176
- 224: string;
177
- 256: string;
178
- 288: string;
179
- 320: string;
180
- 384: string;
181
- 448: string;
182
- 512: string;
183
- 576: string;
184
- 672: string;
185
- 768: string;
186
- 896: string;
187
- 1024: string;
188
- '0x': string;
189
- '1x': string;
190
- '2x': string;
191
- '3x': string;
192
- '4x': string;
193
- '5x': string;
194
- '6x': string;
195
- '8x': string;
196
- '10x': string;
197
- '12x': string;
198
- '14x': string;
199
- '16x': string;
200
- '20x': string;
201
- '24x': string;
202
- };
203
- radii: {
204
- none: string;
205
- '2xs': string;
206
- xs: string;
207
- sm: string;
208
- md: string;
209
- lg: string;
210
- xl: string;
211
- '2xl': string;
212
- full: string;
213
- };
214
- shadows: {
215
- none: string;
216
- sm: string;
217
- md: string;
218
- lg: string;
219
- xl: string;
220
- };
221
- typography: {
222
- display: {
223
- '3xl': {
224
- fontFamily: string;
225
- fontWeight: string;
226
- fontSize: string;
227
- lineHeight: string;
228
- letterSpacing: string;
229
- fontFeatureSettings: string;
230
- };
231
- '2xl': {
232
- fontFamily: string;
233
- fontWeight: string;
234
- fontSize: string;
235
- lineHeight: string;
236
- letterSpacing: string;
237
- fontFeatureSettings: string;
238
- };
239
- xl: {
240
- fontFamily: string;
241
- fontWeight: string;
242
- fontSize: string;
243
- lineHeight: string;
244
- letterSpacing: string;
245
- fontFeatureSettings: string;
246
- };
247
- lg: {
248
- fontFamily: string;
249
- fontWeight: string;
250
- fontSize: string;
251
- lineHeight: string;
252
- letterSpacing: string;
253
- fontFeatureSettings: string;
254
- };
255
- md: {
256
- fontFamily: string;
257
- fontWeight: string;
258
- fontSize: string; /**
259
- * Sets the visual size of the text
260
- * @default 'md'
261
- */
262
- lineHeight: string;
263
- letterSpacing: string;
264
- fontFeatureSettings: string;
265
- };
266
- sm: {
267
- fontFamily: string;
268
- fontWeight: string;
269
- fontSize: string;
270
- lineHeight: string;
271
- letterSpacing: string;
272
- fontFeatureSettings: string;
273
- };
274
- xs: {
275
- fontFamily: string;
276
- fontWeight: string;
277
- fontSize: string;
278
- lineHeight: string;
279
- letterSpacing: string;
280
- fontFeatureSettings: string;
281
- };
282
- };
283
- title: {
284
- lg: {
285
- fontFamily: string;
286
- fontWeight: string;
287
- fontSize: string;
288
- lineHeight: string;
289
- letterSpacing: string;
290
- };
291
- md: {
292
- fontFamily: string;
293
- fontWeight: string;
294
- fontSize: string;
295
- lineHeight: string;
296
- letterSpacing: string;
297
- };
298
- sm: {
299
- fontFamily: string;
300
- fontWeight: string;
301
- fontSize: string;
302
- lineHeight: string;
303
- letterSpacing: string;
304
- };
305
- xs: {
306
- fontFamily: string;
307
- fontWeight: string;
308
- fontSize: string;
309
- lineHeight: string;
310
- letterSpacing: string;
311
- };
312
- '2xs': {
313
- fontFamily: string;
314
- fontWeight: string;
315
- fontSize: string;
316
- lineHeight: string;
317
- letterSpacing: string;
318
- };
319
- '3xs': {
320
- fontFamily: string;
321
- fontWeight: string;
322
- fontSize: string;
323
- lineHeight: string;
324
- letterSpacing: string;
325
- };
326
- };
327
- body: {
328
- xl: {
329
- fontFamily: string;
330
- fontWeight: string;
331
- fontSize: string;
332
- lineHeight: string;
333
- letterSpacing: string;
334
- };
335
- lg: {
336
- fontFamily: string;
337
- fontWeight: string;
338
- fontSize: string;
339
- lineHeight: string;
340
- letterSpacing: string;
341
- };
342
- md: {
343
- fontFamily: string;
344
- fontWeight: string;
345
- fontSize: string;
346
- lineHeight: string;
347
- letterSpacing: string;
348
- };
349
- sm: {
350
- fontFamily: string;
351
- fontWeight: string;
352
- fontSize: string;
353
- lineHeight: string;
354
- letterSpacing: string;
355
- };
356
- xs: {
357
- fontFamily: string;
358
- fontWeight: string;
359
- fontSize: string;
360
- lineHeight: string;
361
- letterSpacing: string;
362
- };
363
- };
364
- label: {
365
- md: {
366
- fontFamily: string;
367
- fontWeight: string;
368
- fontSize: string;
369
- lineHeight: string;
370
- letterSpacing: string;
371
- };
372
- sm: {
373
- fontFamily: string;
374
- fontWeight: string;
375
- fontSize: string;
376
- lineHeight: string;
377
- letterSpacing: string;
378
- };
379
- };
380
- button: {
381
- md: {
382
- fontFamily: string;
383
- fontWeight: string;
384
- fontSize: string;
385
- lineHeight: string;
386
- letterSpacing: string;
387
- };
388
- sm: {
389
- fontFamily: string;
390
- fontWeight: string;
391
- fontSize: string;
392
- lineHeight: string;
393
- letterSpacing: string;
394
- };
395
- };
396
- caption: {
397
- md: {
398
- fontFamily: string;
399
- fontWeight: string;
400
- fontSize: string;
401
- lineHeight: string;
402
- letterSpacing: string;
403
- };
404
- sm: {
405
- fontFamily: string;
406
- fontWeight: string;
407
- fontSize: string;
408
- lineHeight: string;
409
- letterSpacing: string;
410
- };
411
- };
412
- };
413
- }) => {
414
- xs: {
415
- fontFamily: string;
416
- fontWeight: string;
417
- fontSize: string;
418
- lineHeight: string;
419
- letterSpacing: string;
420
- };
421
- sm: {
422
- fontFamily: string;
423
- fontWeight: string;
424
- fontSize: string;
425
- lineHeight: string;
426
- letterSpacing: string;
427
- };
428
- md: {
429
- fontFamily: string;
430
- fontWeight: string;
431
- fontSize: string;
432
- lineHeight: string;
433
- letterSpacing: string;
434
- };
435
- lg: {
436
- fontFamily: string;
437
- fontWeight: string;
438
- fontSize: string;
439
- lineHeight: string;
440
- letterSpacing: string;
441
- };
442
- xl: {
443
- fontFamily: string;
444
- fontWeight: string;
445
- fontSize: string;
446
- lineHeight: string;
447
- letterSpacing: string;
448
- };
449
- };
450
- type ParagraphSize = VariantProps<typeof getSizeStyles>;
451
- type ParagraphColor = keyof Theme['colors']['text'];
452
- interface ParagraphOptions {
453
- /**
454
- * Sets the visual size of the text
455
- * @default 'md'
456
- */
457
- size?: ResponsiveProp<ParagraphSize>;
458
- /**
459
- * Sets the color of the text
460
- * @default 'normal'
461
- */
462
- color?: ParagraphColor;
463
- /**
464
- * Truncates the text after a specific number of lines
465
- */
466
- numberOfLines?: number;
467
- /**
468
- * Alignment of the paragraph
469
- * @default 'left'
470
- */
471
- textAlign?: 'left' | 'center' | 'right';
472
- }
473
- type ParagraphComponent = Polymorphic.ForwardRefComponent<'p', ParagraphOptions>;
474
- export type ParagraphProps = Polymorphic.PropsOf<ParagraphComponent>;
475
- export declare const Paragraph: ParagraphComponent;
476
- export {};
@@ -1,3 +0,0 @@
1
- export * from './input-base';
2
- export * from './select-base';
3
- export * from './textarea-base';
@@ -1 +0,0 @@
1
- export * from './input-base';
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../../types';
3
- export interface InputBaseOptions {
4
- /**
5
- * If `true`, the input will be invalid
6
- */
7
- isInvalid?: boolean;
8
- /**
9
- * If `true`, the input will be disabled
10
- */
11
- isDisabled?: boolean;
12
- /**
13
- * If `true` the input will be required
14
- */
15
- isRequired?: boolean;
16
- }
17
- type OmittedProps = 'children' | 'readOnly' | 'size' | 'disabled' | 'required';
18
- export interface InputBaseProps extends Omit<HTMLQdsProps<'input'>, OmittedProps>, InputBaseOptions {
19
- }
20
- export declare const InputBase: import("react").ForwardRefExoticComponent<InputBaseProps & import("react").RefAttributes<HTMLInputElement>>;
21
- export {};
@@ -1 +0,0 @@
1
- export * from './select-base';
@@ -1,30 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../../types';
3
- export interface SelectBaseOptions {
4
- /**
5
- * The placeholder for the select. We render an `<option/>` element that has
6
- * empty value.
7
- *
8
- * ```jsx
9
- * <option value="">{placeholder}</option>
10
- * ```
11
- */
12
- placeholder?: string;
13
- /**
14
- * If `true`, the select will be invalid
15
- */
16
- isInvalid?: boolean;
17
- /**
18
- * If `true`, the select will be disabled
19
- */
20
- isDisabled?: boolean;
21
- /**
22
- * If `true` the select will be required
23
- */
24
- isRequired?: boolean;
25
- }
26
- type OmittedProps = 'readOnly' | 'size' | 'multiple' | 'disabled' | 'required';
27
- interface SelectBaseProps extends Omit<HTMLQdsProps<'select'>, OmittedProps>, SelectBaseOptions {
28
- }
29
- export declare const SelectBase: import("react").ForwardRefExoticComponent<SelectBaseProps & import("react").RefAttributes<HTMLSelectElement>>;
30
- export {};
@@ -1 +0,0 @@
1
- export * from './textarea-base';
@@ -1,36 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../../types';
3
- type ResizeProp = 'none' | 'both' | 'horizontal' | 'vertical';
4
- type MinRowsProp = number;
5
- export interface TextareaBaseOptions {
6
- /**
7
- * If `true`, the textarea will be invalid
8
- */
9
- isInvalid?: boolean;
10
- /**
11
- * If `true`, the textarea will be disabled
12
- */
13
- isDisabled?: boolean;
14
- /**
15
- * If `true` the textarea will be required
16
- */
17
- isRequired?: boolean;
18
- /**
19
- * The resize behavior of the textarea
20
- *
21
- * @default 'vertical'
22
- */
23
- resize?: ResizeProp;
24
- /**
25
- * The minimum number of rows to display without requiring scrolling or resizing.
26
- * To disabled resizing use the `resize` prop.
27
- *
28
- * @default 3
29
- */
30
- minRows?: MinRowsProp;
31
- }
32
- type OmittedProps = 'children' | 'readOnly' | 'size' | 'disabled' | 'required' | 'rows' | 'cols';
33
- export interface TextareaBaseProps extends Omit<HTMLQdsProps<'textarea'>, OmittedProps>, TextareaBaseOptions {
34
- }
35
- export declare const TextareaBase: import("react").ForwardRefExoticComponent<TextareaBaseProps & import("react").RefAttributes<HTMLTextAreaElement>>;
36
- export {};
@@ -1 +0,0 @@
1
- export * from './radio-group';
@@ -1,26 +0,0 @@
1
- /// <reference types="react" />
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- interface RadioCardOptions {
4
- /**
5
- * The label for the radio card
6
- */
7
- label: string;
8
- /**
9
- * Text that provides additional guidance to the user
10
- */
11
- helperText?: string;
12
- /**
13
- * If `true` the user must check the radio item before the owning form can be submitted.
14
- * @default false
15
- */
16
- isRequired?: boolean;
17
- /**
18
- * If `true` it prevents the user from interacting with the radio item.
19
- * @default false
20
- */
21
- isDisabled?: boolean;
22
- }
23
- export interface RadioCardProps extends Omit<RadioGroupPrimitive.RadioGroupItemProps, 'asChild' | keyof RadioCardOptions>, RadioCardOptions {
24
- }
25
- export declare const RadioCard: import("react").ForwardRefExoticComponent<RadioCardProps & import("react").RefAttributes<HTMLButtonElement>>;
26
- export {};
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- interface RadioGroupContextValue {
3
- labelRefCallback: (node: HTMLElement | null) => void;
4
- isDisabled: boolean | undefined;
5
- errorMessageId?: string;
6
- }
7
- interface RadioGroupProviderProps {
8
- value: RadioGroupContextValue;
9
- children: React.ReactNode;
10
- }
11
- export declare function RadioGroupProvider({ value, children }: RadioGroupProviderProps): import("react/jsx-runtime").JSX.Element;
12
- interface UseRadioGroupContextProps {
13
- consumerName: string;
14
- }
15
- export declare const useRadioGroupContext: ({ consumerName }: UseRadioGroupContextProps) => RadioGroupContextValue;
16
- export {};
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { HTMLQdsProps } from '../../types';
3
- export type RadioGroupLabelProps = HTMLQdsProps<'span'>;
4
- export declare const RadioGroupLabel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,50 +0,0 @@
1
- /// <reference types="react" />
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- import type { RadioCardProps } from './radio-card';
4
- import type { RadioGroupLabelProps } from './radio-group-label';
5
- interface RadioGroupOptions {
6
- /**
7
- * The value of the radio item that should be checked when initially rendered.
8
- * Use when you do not need to control the state of the radio items.
9
- */
10
- defaultValue?: string;
11
- /**
12
- * The controlled value of the radio item to check.
13
- * Should be used in conjunction with `onValueChange`.
14
- */
15
- value?: string;
16
- /**
17
- * Event handler called when the value changes.
18
- */
19
- onValueChange?: (value: string) => void;
20
- /**
21
- * The name of the group. Submitted with its owning form as part of a name/value pair.
22
- */
23
- name?: string;
24
- /**
25
- * If `true` all child radio items will be disabled.
26
- * @default false
27
- */
28
- isDisabled?: boolean;
29
- /**
30
- * If `true` the user must check a radio item before the owning form can be submitted.
31
- * @default false
32
- */
33
- isRequired?: boolean;
34
- /**
35
- * If `true` the radio group will be invalid.
36
- * @default false
37
- */
38
- isInvalid?: boolean;
39
- /**
40
- * The error message to display if `isInvalid` is `true`
41
- */
42
- errorMessage?: string;
43
- }
44
- export interface RadioGroupProps extends Omit<RadioGroupPrimitive.RadioGroupProps, 'asChild' | keyof RadioGroupOptions>, RadioGroupOptions {
45
- }
46
- export declare const RadioGroup: import("react").ForwardRefExoticComponent<RadioGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
47
- Card: import("react").ForwardRefExoticComponent<RadioCardProps & import("react").RefAttributes<HTMLButtonElement>>;
48
- Label: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
49
- };
50
- export type { RadioGroupLabelProps, RadioCardProps };
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
3
- type RadioIndicatorProps = Omit<RadioGroupPrimitive.RadioGroupIndicatorProps, 'asChild' | 'forceMount'>;
4
- /**
5
- * Styled Radix `RadioIndicator` component.
6
- * @see Docs https://www.radix-ui.com/primitives/docs/components/radio-group#indicator
7
- * @internal Not to be used outside the library.
8
- */
9
- export declare const RadioIndicator: import("react").ForwardRefExoticComponent<RadioIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
10
- export {};
@@ -1 +0,0 @@
1
- export * from './select';