@qasa/qds-ui 0.11.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 (231) hide show
  1. package/dist/index.d.mts +5416 -0
  2. package/dist/index.d.ts +14 -12
  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 +16 -15
  8. package/dist/cjs/index.js +0 -9237
  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 -32
  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 -907
  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 -47
  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 -880
  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 -444
  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 -424
  50. package/dist/cjs/types/components/paragraph/index.d.ts +0 -1
  51. package/dist/cjs/types/components/paragraph/paragraph.d.ts +0 -475
  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 -416
  84. package/dist/cjs/types/components/toast/toast.d.ts +0 -12
  85. package/dist/cjs/types/hooks/index.d.ts +0 -6
  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-image.d.ts +0 -10
  90. package/dist/cjs/types/hooks/use-responsive-prop.d.ts +0 -16
  91. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +0 -9
  92. package/dist/cjs/types/hooks/use-stable-id.d.ts +0 -4
  93. package/dist/cjs/types/i18n/locale-context.d.ts +0 -12
  94. package/dist/cjs/types/i18n/locales.d.ts +0 -8
  95. package/dist/cjs/types/i18n/use-translation.d.ts +0 -6
  96. package/dist/cjs/types/index.d.ts +0 -6
  97. package/dist/cjs/types/qds-provider.d.ts +0 -12
  98. package/dist/cjs/types/styles/common-styles.d.ts +0 -450
  99. package/dist/cjs/types/styles/css-reset.d.ts +0 -4
  100. package/dist/cjs/types/styles/css-utils.d.ts +0 -19
  101. package/dist/cjs/types/styles/global-styles.d.ts +0 -4
  102. package/dist/cjs/types/styles/index.d.ts +0 -3
  103. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +0 -8
  104. package/dist/cjs/types/theme/foundations/colors.d.ts +0 -116
  105. package/dist/cjs/types/theme/foundations/index.d.ts +0 -410
  106. package/dist/cjs/types/theme/foundations/radius.d.ts +0 -20
  107. package/dist/cjs/types/theme/foundations/shadows.d.ts +0 -7
  108. package/dist/cjs/types/theme/foundations/sizes.d.ts +0 -34
  109. package/dist/cjs/types/theme/foundations/spacing.d.ts +0 -30
  110. package/dist/cjs/types/theme/foundations/typography.d.ts +0 -189
  111. package/dist/cjs/types/theme/foundations/z-index.d.ts +0 -28
  112. package/dist/cjs/types/theme/index.d.ts +0 -2
  113. package/dist/cjs/types/theme/theme-tools.d.ts +0 -420
  114. package/dist/cjs/types/theme/theme.d.ts +0 -406
  115. package/dist/cjs/types/types.d.ts +0 -5
  116. package/dist/cjs/types/utils/html-attributes.d.ts +0 -4
  117. package/dist/cjs/types/utils/merge-refs.d.ts +0 -5
  118. package/dist/cjs/types/utils/object.d.ts +0 -1
  119. package/dist/cjs/types/utils/polymorphic.d.ts +0 -41
  120. package/dist/esm/index.js +0 -9237
  121. package/dist/esm/index.js.map +0 -1
  122. package/dist/esm/types/components/_internal/form-parts.d.ts +0 -10
  123. package/dist/esm/types/components/_internal/index.d.ts +0 -1
  124. package/dist/esm/types/components/avatar/avatar.d.ts +0 -32
  125. package/dist/esm/types/components/avatar/index.d.ts +0 -1
  126. package/dist/esm/types/components/button/button-icon.d.ts +0 -10
  127. package/dist/esm/types/components/button/button-styles.d.ts +0 -907
  128. package/dist/esm/types/components/button/button-types.d.ts +0 -44
  129. package/dist/esm/types/components/button/button.d.ts +0 -6
  130. package/dist/esm/types/components/button/index.d.ts +0 -1
  131. package/dist/esm/types/components/checkbox/checkbox.d.ts +0 -78
  132. package/dist/esm/types/components/checkbox/index.d.ts +0 -1
  133. package/dist/esm/types/components/display-text/display-text.d.ts +0 -30
  134. package/dist/esm/types/components/display-text/index.d.ts +0 -1
  135. package/dist/esm/types/components/divider/divider.d.ts +0 -14
  136. package/dist/esm/types/components/divider/index.d.ts +0 -1
  137. package/dist/esm/types/components/dropdown-menu/dropdown-menu-content.d.ts +0 -67
  138. package/dist/esm/types/components/dropdown-menu/dropdown-menu-divider.d.ts +0 -4
  139. package/dist/esm/types/components/dropdown-menu/dropdown-menu-item.d.ts +0 -28
  140. package/dist/esm/types/components/dropdown-menu/dropdown-menu-trigger.d.ts +0 -5
  141. package/dist/esm/types/components/dropdown-menu/dropdown-menu.d.ts +0 -29
  142. package/dist/esm/types/components/dropdown-menu/index.d.ts +0 -1
  143. package/dist/esm/types/components/heading/heading.d.ts +0 -32
  144. package/dist/esm/types/components/heading/index.d.ts +0 -1
  145. package/dist/esm/types/components/hint-box/hint-box.d.ts +0 -10
  146. package/dist/esm/types/components/hint-box/index.d.ts +0 -1
  147. package/dist/esm/types/components/icon/create-icon.d.ts +0 -41
  148. package/dist/esm/types/components/icon/create-lucide-icon.d.ts +0 -4
  149. package/dist/esm/types/components/icon/icon.types.d.ts +0 -22
  150. package/dist/esm/types/components/icon/icons.d.ts +0 -47
  151. package/dist/esm/types/components/icon/index.d.ts +0 -4
  152. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +0 -880
  153. package/dist/esm/types/components/icon-button/icon-button.d.ts +0 -32
  154. package/dist/esm/types/components/icon-button/index.d.ts +0 -1
  155. package/dist/esm/types/components/index.d.ts +0 -23
  156. package/dist/esm/types/components/label/index.d.ts +0 -1
  157. package/dist/esm/types/components/label/label.d.ts +0 -444
  158. package/dist/esm/types/components/link/index.d.ts +0 -1
  159. package/dist/esm/types/components/link/link.d.ts +0 -15
  160. package/dist/esm/types/components/loading-dots/index.d.ts +0 -1
  161. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +0 -424
  162. package/dist/esm/types/components/paragraph/index.d.ts +0 -1
  163. package/dist/esm/types/components/paragraph/paragraph.d.ts +0 -475
  164. package/dist/esm/types/components/primitives/index.d.ts +0 -3
  165. package/dist/esm/types/components/primitives/input-base/index.d.ts +0 -1
  166. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +0 -21
  167. package/dist/esm/types/components/primitives/select-base/index.d.ts +0 -1
  168. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +0 -30
  169. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +0 -1
  170. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +0 -36
  171. package/dist/esm/types/components/radio-group/index.d.ts +0 -1
  172. package/dist/esm/types/components/radio-group/radio-card.d.ts +0 -26
  173. package/dist/esm/types/components/radio-group/radio-group-context.d.ts +0 -16
  174. package/dist/esm/types/components/radio-group/radio-group-label.d.ts +0 -4
  175. package/dist/esm/types/components/radio-group/radio-group.d.ts +0 -50
  176. package/dist/esm/types/components/radio-group/radio-indicator.d.ts +0 -10
  177. package/dist/esm/types/components/select/index.d.ts +0 -1
  178. package/dist/esm/types/components/select/select-option.d.ts +0 -10
  179. package/dist/esm/types/components/select/select.d.ts +0 -25
  180. package/dist/esm/types/components/spacer/index.d.ts +0 -1
  181. package/dist/esm/types/components/spacer/spacer.d.ts +0 -12
  182. package/dist/esm/types/components/stack/index.d.ts +0 -1
  183. package/dist/esm/types/components/stack/stack.d.ts +0 -44
  184. package/dist/esm/types/components/stack/stack.types.d.ts +0 -4
  185. package/dist/esm/types/components/stack/stack.utils.d.ts +0 -6
  186. package/dist/esm/types/components/switch/index.d.ts +0 -1
  187. package/dist/esm/types/components/switch/switch.d.ts +0 -35
  188. package/dist/esm/types/components/text-field/index.d.ts +0 -1
  189. package/dist/esm/types/components/text-field/text-field.d.ts +0 -32
  190. package/dist/esm/types/components/textarea/index.d.ts +0 -1
  191. package/dist/esm/types/components/textarea/textarea.d.ts +0 -27
  192. package/dist/esm/types/components/toast/index.d.ts +0 -1
  193. package/dist/esm/types/components/toast/toast-provider.d.ts +0 -4
  194. package/dist/esm/types/components/toast/toast-store.d.ts +0 -44
  195. package/dist/esm/types/components/toast/toast-styles.d.ts +0 -416
  196. package/dist/esm/types/components/toast/toast.d.ts +0 -12
  197. package/dist/esm/types/hooks/index.d.ts +0 -6
  198. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +0 -16
  199. package/dist/esm/types/hooks/use-breakpoint.d.ts +0 -15
  200. package/dist/esm/types/hooks/use-form-field.d.ts +0 -49
  201. package/dist/esm/types/hooks/use-image.d.ts +0 -10
  202. package/dist/esm/types/hooks/use-responsive-prop.d.ts +0 -16
  203. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +0 -9
  204. package/dist/esm/types/hooks/use-stable-id.d.ts +0 -4
  205. package/dist/esm/types/i18n/locale-context.d.ts +0 -12
  206. package/dist/esm/types/i18n/locales.d.ts +0 -8
  207. package/dist/esm/types/i18n/use-translation.d.ts +0 -6
  208. package/dist/esm/types/index.d.ts +0 -6
  209. package/dist/esm/types/qds-provider.d.ts +0 -12
  210. package/dist/esm/types/styles/common-styles.d.ts +0 -450
  211. package/dist/esm/types/styles/css-reset.d.ts +0 -4
  212. package/dist/esm/types/styles/css-utils.d.ts +0 -19
  213. package/dist/esm/types/styles/global-styles.d.ts +0 -4
  214. package/dist/esm/types/styles/index.d.ts +0 -3
  215. package/dist/esm/types/theme/foundations/breakpoints.d.ts +0 -8
  216. package/dist/esm/types/theme/foundations/colors.d.ts +0 -116
  217. package/dist/esm/types/theme/foundations/index.d.ts +0 -410
  218. package/dist/esm/types/theme/foundations/radius.d.ts +0 -20
  219. package/dist/esm/types/theme/foundations/shadows.d.ts +0 -7
  220. package/dist/esm/types/theme/foundations/sizes.d.ts +0 -34
  221. package/dist/esm/types/theme/foundations/spacing.d.ts +0 -30
  222. package/dist/esm/types/theme/foundations/typography.d.ts +0 -189
  223. package/dist/esm/types/theme/foundations/z-index.d.ts +0 -28
  224. package/dist/esm/types/theme/index.d.ts +0 -2
  225. package/dist/esm/types/theme/theme-tools.d.ts +0 -420
  226. package/dist/esm/types/theme/theme.d.ts +0 -406
  227. package/dist/esm/types/types.d.ts +0 -5
  228. package/dist/esm/types/utils/html-attributes.d.ts +0 -4
  229. package/dist/esm/types/utils/merge-refs.d.ts +0 -5
  230. package/dist/esm/types/utils/object.d.ts +0 -1
  231. package/dist/esm/types/utils/polymorphic.d.ts +0 -41
@@ -1,475 +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
- blackAlpha20: string;
115
- };
116
- bg: {
117
- default: string;
118
- brandPrimary: string;
119
- brandPrimaryHover: string;
120
- brandPrimaryActive: string;
121
- brandSecondary: string;
122
- brandSecondaryHover: string;
123
- brandSecondaryActive: string;
124
- brandTertiary: string;
125
- brandTertiaryHover: string;
126
- brandTertiaryActive: string;
127
- negative: string;
128
- warning: string;
129
- positive: string;
130
- inset: string;
131
- backdrop: string;
132
- };
133
- text: {
134
- strong: string;
135
- default: string;
136
- subtle: string;
137
- disabled: string;
138
- negative: string;
139
- warning: string;
140
- positive: string;
141
- onBrandPrimary: string;
142
- onBrandSecondary: string;
143
- onBrandTertiary: string;
144
- };
145
- icon: {
146
- default: string;
147
- strong: string;
148
- subtle: string;
149
- disabled: string;
150
- negative: string;
151
- warning: string;
152
- positive: string;
153
- onBrandPrimary: string;
154
- onBrandSecondary: string;
155
- onBrandTertiary: string;
156
- };
157
- border: {
158
- default: string;
159
- defaultHover: string;
160
- defaultSelected: string;
161
- strong: string;
162
- subtle: string;
163
- negative: string;
164
- warning: string;
165
- positive: string;
166
- };
167
- };
168
- sizes: {
169
- 112: string;
170
- 128: string;
171
- 144: string;
172
- 160: string;
173
- 176: string;
174
- 192: string;
175
- 224: string;
176
- 256: string;
177
- 288: string;
178
- 320: string;
179
- 384: string;
180
- 448: string;
181
- 512: string;
182
- 576: string;
183
- 672: string;
184
- 768: string;
185
- 896: string;
186
- 1024: string;
187
- '0x': string;
188
- '1x': string;
189
- '2x': string;
190
- '3x': string;
191
- '4x': string;
192
- '5x': string;
193
- '6x': string;
194
- '8x': string;
195
- '10x': string;
196
- '12x': string;
197
- '14x': string;
198
- '16x': string;
199
- '20x': string;
200
- '24x': string;
201
- };
202
- radii: {
203
- none: string;
204
- '2xs': string;
205
- xs: string;
206
- sm: string;
207
- md: string;
208
- lg: string;
209
- xl: string;
210
- '2xl': string;
211
- full: string;
212
- };
213
- shadows: {
214
- none: string;
215
- sm: string;
216
- md: string;
217
- lg: string;
218
- xl: string;
219
- };
220
- typography: {
221
- display: {
222
- '3xl': {
223
- fontFamily: string;
224
- fontWeight: string;
225
- fontSize: string;
226
- lineHeight: string;
227
- letterSpacing: string;
228
- fontFeatureSettings: string;
229
- };
230
- '2xl': {
231
- fontFamily: string;
232
- fontWeight: string;
233
- fontSize: string;
234
- lineHeight: string;
235
- letterSpacing: string;
236
- fontFeatureSettings: string;
237
- };
238
- xl: {
239
- fontFamily: string;
240
- fontWeight: string;
241
- fontSize: string;
242
- lineHeight: string;
243
- letterSpacing: string;
244
- fontFeatureSettings: string;
245
- };
246
- lg: {
247
- fontFamily: string;
248
- fontWeight: string;
249
- fontSize: string;
250
- lineHeight: string;
251
- letterSpacing: string;
252
- fontFeatureSettings: string;
253
- };
254
- md: {
255
- fontFamily: string;
256
- fontWeight: string;
257
- fontSize: string; /**
258
- * Sets the visual size of the text
259
- * @default 'md'
260
- */
261
- lineHeight: string;
262
- letterSpacing: string;
263
- fontFeatureSettings: string;
264
- };
265
- sm: {
266
- fontFamily: string;
267
- fontWeight: string;
268
- fontSize: string;
269
- lineHeight: string;
270
- letterSpacing: string;
271
- fontFeatureSettings: string;
272
- };
273
- xs: {
274
- fontFamily: string;
275
- fontWeight: string;
276
- fontSize: string;
277
- lineHeight: string;
278
- letterSpacing: string;
279
- fontFeatureSettings: string;
280
- };
281
- };
282
- title: {
283
- lg: {
284
- fontFamily: string;
285
- fontWeight: string;
286
- fontSize: string;
287
- lineHeight: string;
288
- letterSpacing: string;
289
- };
290
- md: {
291
- fontFamily: string;
292
- fontWeight: string;
293
- fontSize: string;
294
- lineHeight: string;
295
- letterSpacing: string;
296
- };
297
- sm: {
298
- fontFamily: string;
299
- fontWeight: string;
300
- fontSize: string;
301
- lineHeight: string;
302
- letterSpacing: string;
303
- };
304
- xs: {
305
- fontFamily: string;
306
- fontWeight: string;
307
- fontSize: string;
308
- lineHeight: string;
309
- letterSpacing: string;
310
- };
311
- '2xs': {
312
- fontFamily: string;
313
- fontWeight: string;
314
- fontSize: string;
315
- lineHeight: string;
316
- letterSpacing: string;
317
- };
318
- '3xs': {
319
- fontFamily: string;
320
- fontWeight: string;
321
- fontSize: string;
322
- lineHeight: string;
323
- letterSpacing: string;
324
- };
325
- };
326
- body: {
327
- xl: {
328
- fontFamily: string;
329
- fontWeight: string;
330
- fontSize: string;
331
- lineHeight: string;
332
- letterSpacing: string;
333
- };
334
- lg: {
335
- fontFamily: string;
336
- fontWeight: string;
337
- fontSize: string;
338
- lineHeight: string;
339
- letterSpacing: string;
340
- };
341
- md: {
342
- fontFamily: string;
343
- fontWeight: string;
344
- fontSize: string;
345
- lineHeight: string;
346
- letterSpacing: string;
347
- };
348
- sm: {
349
- fontFamily: string;
350
- fontWeight: string;
351
- fontSize: string;
352
- lineHeight: string;
353
- letterSpacing: string;
354
- };
355
- xs: {
356
- fontFamily: string;
357
- fontWeight: string;
358
- fontSize: string;
359
- lineHeight: string;
360
- letterSpacing: string;
361
- };
362
- };
363
- label: {
364
- md: {
365
- fontFamily: string;
366
- fontWeight: string;
367
- fontSize: string;
368
- lineHeight: string;
369
- letterSpacing: string;
370
- };
371
- sm: {
372
- fontFamily: string;
373
- fontWeight: string;
374
- fontSize: string;
375
- lineHeight: string;
376
- letterSpacing: string;
377
- };
378
- };
379
- button: {
380
- md: {
381
- fontFamily: string;
382
- fontWeight: string;
383
- fontSize: string;
384
- lineHeight: string;
385
- letterSpacing: string;
386
- };
387
- sm: {
388
- fontFamily: string;
389
- fontWeight: string;
390
- fontSize: string;
391
- lineHeight: string;
392
- letterSpacing: string;
393
- };
394
- };
395
- caption: {
396
- md: {
397
- fontFamily: string;
398
- fontWeight: string;
399
- fontSize: string;
400
- lineHeight: string;
401
- letterSpacing: string;
402
- };
403
- sm: {
404
- fontFamily: string;
405
- fontWeight: string;
406
- fontSize: string;
407
- lineHeight: string;
408
- letterSpacing: string;
409
- };
410
- };
411
- };
412
- }) => {
413
- xs: {
414
- fontFamily: string;
415
- fontWeight: string;
416
- fontSize: string;
417
- lineHeight: string;
418
- letterSpacing: string;
419
- };
420
- sm: {
421
- fontFamily: string;
422
- fontWeight: string;
423
- fontSize: string;
424
- lineHeight: string;
425
- letterSpacing: string;
426
- };
427
- md: {
428
- fontFamily: string;
429
- fontWeight: string;
430
- fontSize: string;
431
- lineHeight: string;
432
- letterSpacing: string;
433
- };
434
- lg: {
435
- fontFamily: string;
436
- fontWeight: string;
437
- fontSize: string;
438
- lineHeight: string;
439
- letterSpacing: string;
440
- };
441
- xl: {
442
- fontFamily: string;
443
- fontWeight: string;
444
- fontSize: string;
445
- lineHeight: string;
446
- letterSpacing: string;
447
- };
448
- };
449
- type ParagraphSize = VariantProps<typeof getSizeStyles>;
450
- type ParagraphColor = keyof Theme['colors']['text'];
451
- interface ParagraphOptions {
452
- /**
453
- * Sets the visual size of the text
454
- * @default 'md'
455
- */
456
- size?: ResponsiveProp<ParagraphSize>;
457
- /**
458
- * Sets the color of the text
459
- * @default 'normal'
460
- */
461
- color?: ParagraphColor;
462
- /**
463
- * Truncates the text after a specific number of lines
464
- */
465
- numberOfLines?: number;
466
- /**
467
- * Alignment of the paragraph
468
- * @default 'left'
469
- */
470
- textAlign?: 'left' | 'center' | 'right';
471
- }
472
- type ParagraphComponent = Polymorphic.ForwardRefComponent<'p', ParagraphOptions>;
473
- export type ParagraphProps = Polymorphic.PropsOf<ParagraphComponent>;
474
- export declare const Paragraph: ParagraphComponent;
475
- 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';