@qasa/qds-ui 0.1.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 (217) hide show
  1. package/README.md +17 -0
  2. package/dist/cjs/index.js +2 -0
  3. package/dist/cjs/index.js.map +1 -0
  4. package/dist/cjs/types/components/_internal/form-parts.d.ts +13 -0
  5. package/dist/cjs/types/components/_internal/index.d.ts +1 -0
  6. package/dist/cjs/types/components/avatar/avatar.d.ts +30 -0
  7. package/dist/cjs/types/components/avatar/index.d.ts +1 -0
  8. package/dist/cjs/types/components/button/button-styles.d.ts +755 -0
  9. package/dist/cjs/types/components/button/button.d.ts +41 -0
  10. package/dist/cjs/types/components/button/index.d.ts +1 -0
  11. package/dist/cjs/types/components/divider/divider.d.ts +14 -0
  12. package/dist/cjs/types/components/divider/index.d.ts +1 -0
  13. package/dist/cjs/types/components/heading/heading.d.ts +403 -0
  14. package/dist/cjs/types/components/heading/index.d.ts +1 -0
  15. package/dist/cjs/types/components/icon/create-icon.d.ts +409 -0
  16. package/dist/cjs/types/components/icon/icons/arrow-down.d.ts +2 -0
  17. package/dist/cjs/types/components/icon/icons/arrow-left.d.ts +2 -0
  18. package/dist/cjs/types/components/icon/icons/arrow-right.d.ts +2 -0
  19. package/dist/cjs/types/components/icon/icons/arrow-up.d.ts +2 -0
  20. package/dist/cjs/types/components/icon/icons/bell-slash.d.ts +2 -0
  21. package/dist/cjs/types/components/icon/icons/bell.d.ts +2 -0
  22. package/dist/cjs/types/components/icon/icons/calendar.d.ts +2 -0
  23. package/dist/cjs/types/components/icon/icons/check.d.ts +2 -0
  24. package/dist/cjs/types/components/icon/icons/chevron-down.d.ts +2 -0
  25. package/dist/cjs/types/components/icon/icons/chevron-left.d.ts +2 -0
  26. package/dist/cjs/types/components/icon/icons/chevron-right.d.ts +2 -0
  27. package/dist/cjs/types/components/icon/icons/chevron-up.d.ts +2 -0
  28. package/dist/cjs/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
  29. package/dist/cjs/types/components/icon/icons/ellipsis.d.ts +2 -0
  30. package/dist/cjs/types/components/icon/icons/heart-filled.d.ts +2 -0
  31. package/dist/cjs/types/components/icon/icons/heart.d.ts +2 -0
  32. package/dist/cjs/types/components/icon/icons/image.d.ts +2 -0
  33. package/dist/cjs/types/components/icon/icons/index.d.ts +27 -0
  34. package/dist/cjs/types/components/icon/icons/location-dot.d.ts +2 -0
  35. package/dist/cjs/types/components/icon/icons/map.d.ts +2 -0
  36. package/dist/cjs/types/components/icon/icons/plus.d.ts +2 -0
  37. package/dist/cjs/types/components/icon/icons/search.d.ts +2 -0
  38. package/dist/cjs/types/components/icon/icons/settings.d.ts +2 -0
  39. package/dist/cjs/types/components/icon/icons/star-filled.d.ts +2 -0
  40. package/dist/cjs/types/components/icon/icons/star.d.ts +2 -0
  41. package/dist/cjs/types/components/icon/icons/trash.d.ts +2 -0
  42. package/dist/cjs/types/components/icon/icons/user.d.ts +2 -0
  43. package/dist/cjs/types/components/icon/icons/xmark.d.ts +2 -0
  44. package/dist/cjs/types/components/icon/index.d.ts +2 -0
  45. package/dist/cjs/types/components/icon-button/icon-button-styles.d.ts +735 -0
  46. package/dist/cjs/types/components/icon-button/icon-button.d.ts +31 -0
  47. package/dist/cjs/types/components/icon-button/index.d.ts +1 -0
  48. package/dist/cjs/types/components/image/image.d.ts +16 -0
  49. package/dist/cjs/types/components/image/index.d.ts +1 -0
  50. package/dist/cjs/types/components/index.d.ts +17 -0
  51. package/dist/cjs/types/components/label/index.d.ts +1 -0
  52. package/dist/cjs/types/components/label/label.d.ts +358 -0
  53. package/dist/cjs/types/components/link/index.d.ts +1 -0
  54. package/dist/cjs/types/components/link/link.d.ts +15 -0
  55. package/dist/cjs/types/components/loading-dots/index.d.ts +1 -0
  56. package/dist/cjs/types/components/loading-dots/loading-dots.d.ts +348 -0
  57. package/dist/cjs/types/components/paragraph/index.d.ts +1 -0
  58. package/dist/cjs/types/components/paragraph/paragraph.d.ts +402 -0
  59. package/dist/cjs/types/components/primitives/index.d.ts +3 -0
  60. package/dist/cjs/types/components/primitives/input-base/index.d.ts +1 -0
  61. package/dist/cjs/types/components/primitives/input-base/input-base.d.ts +21 -0
  62. package/dist/cjs/types/components/primitives/select-base/index.d.ts +1 -0
  63. package/dist/cjs/types/components/primitives/select-base/select-base.d.ts +30 -0
  64. package/dist/cjs/types/components/primitives/textarea-base/index.d.ts +1 -0
  65. package/dist/cjs/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
  66. package/dist/cjs/types/components/select/index.d.ts +1 -0
  67. package/dist/cjs/types/components/select/select-option.d.ts +10 -0
  68. package/dist/cjs/types/components/select/select.d.ts +25 -0
  69. package/dist/cjs/types/components/spacer/index.d.ts +1 -0
  70. package/dist/cjs/types/components/spacer/spacer.d.ts +11 -0
  71. package/dist/cjs/types/components/stack/index.d.ts +1 -0
  72. package/dist/cjs/types/components/stack/stack.d.ts +17 -0
  73. package/dist/cjs/types/components/stack/stack.types.d.ts +4 -0
  74. package/dist/cjs/types/components/stack/stack.utils.d.ts +6 -0
  75. package/dist/cjs/types/components/text-field/index.d.ts +1 -0
  76. package/dist/cjs/types/components/text-field/text-field.d.ts +22 -0
  77. package/dist/cjs/types/components/textarea/index.d.ts +1 -0
  78. package/dist/cjs/types/components/textarea/textarea.d.ts +22 -0
  79. package/dist/cjs/types/hooks/index.d.ts +6 -0
  80. package/dist/cjs/types/hooks/use-breakpoint-value.d.ts +16 -0
  81. package/dist/cjs/types/hooks/use-breakpoint.d.ts +17 -0
  82. package/dist/cjs/types/hooks/use-form-field.d.ts +49 -0
  83. package/dist/cjs/types/hooks/use-image.d.ts +10 -0
  84. package/dist/cjs/types/hooks/use-safe-layout-effect.d.ts +9 -0
  85. package/dist/cjs/types/hooks/use-stable-id.d.ts +4 -0
  86. package/dist/cjs/types/index.d.ts +6 -0
  87. package/dist/cjs/types/qds-provider.d.ts +8 -0
  88. package/dist/cjs/types/styles/common-styles.d.ts +369 -0
  89. package/dist/cjs/types/styles/css-reset.d.ts +5 -0
  90. package/dist/cjs/types/styles/css-utils.d.ts +19 -0
  91. package/dist/cjs/types/styles/global-styles.d.ts +5 -0
  92. package/dist/cjs/types/styles/index.d.ts +3 -0
  93. package/dist/cjs/types/theme/foundations/breakpoints.d.ts +8 -0
  94. package/dist/cjs/types/theme/foundations/colors.d.ts +107 -0
  95. package/dist/cjs/types/theme/foundations/index.d.ts +335 -0
  96. package/dist/cjs/types/theme/foundations/radius.d.ts +9 -0
  97. package/dist/cjs/types/theme/foundations/shadows.d.ts +7 -0
  98. package/dist/cjs/types/theme/foundations/sizes.d.ts +32 -0
  99. package/dist/cjs/types/theme/foundations/spacing.d.ts +14 -0
  100. package/dist/cjs/types/theme/foundations/typography.d.ts +131 -0
  101. package/dist/cjs/types/theme/foundations/z-index.d.ts +15 -0
  102. package/dist/cjs/types/theme/index.d.ts +2 -0
  103. package/dist/cjs/types/theme/theme-tools.d.ts +345 -0
  104. package/dist/cjs/types/theme/theme.d.ts +331 -0
  105. package/dist/cjs/types/types.d.ts +5 -0
  106. package/dist/cjs/types/utils/object.d.ts +1 -0
  107. package/dist/cjs/types/utils/polymorphic.d.ts +41 -0
  108. package/dist/cjs/types/utils/test-utils.d.ts +14 -0
  109. package/dist/esm/index.js +2 -0
  110. package/dist/esm/index.js.map +1 -0
  111. package/dist/esm/types/components/_internal/form-parts.d.ts +13 -0
  112. package/dist/esm/types/components/_internal/index.d.ts +1 -0
  113. package/dist/esm/types/components/avatar/avatar.d.ts +30 -0
  114. package/dist/esm/types/components/avatar/index.d.ts +1 -0
  115. package/dist/esm/types/components/button/button-styles.d.ts +755 -0
  116. package/dist/esm/types/components/button/button.d.ts +41 -0
  117. package/dist/esm/types/components/button/index.d.ts +1 -0
  118. package/dist/esm/types/components/divider/divider.d.ts +14 -0
  119. package/dist/esm/types/components/divider/index.d.ts +1 -0
  120. package/dist/esm/types/components/heading/heading.d.ts +403 -0
  121. package/dist/esm/types/components/heading/index.d.ts +1 -0
  122. package/dist/esm/types/components/icon/create-icon.d.ts +409 -0
  123. package/dist/esm/types/components/icon/icons/arrow-down.d.ts +2 -0
  124. package/dist/esm/types/components/icon/icons/arrow-left.d.ts +2 -0
  125. package/dist/esm/types/components/icon/icons/arrow-right.d.ts +2 -0
  126. package/dist/esm/types/components/icon/icons/arrow-up.d.ts +2 -0
  127. package/dist/esm/types/components/icon/icons/bell-slash.d.ts +2 -0
  128. package/dist/esm/types/components/icon/icons/bell.d.ts +2 -0
  129. package/dist/esm/types/components/icon/icons/calendar.d.ts +2 -0
  130. package/dist/esm/types/components/icon/icons/check.d.ts +2 -0
  131. package/dist/esm/types/components/icon/icons/chevron-down.d.ts +2 -0
  132. package/dist/esm/types/components/icon/icons/chevron-left.d.ts +2 -0
  133. package/dist/esm/types/components/icon/icons/chevron-right.d.ts +2 -0
  134. package/dist/esm/types/components/icon/icons/chevron-up.d.ts +2 -0
  135. package/dist/esm/types/components/icon/icons/ellipsis-vertical.d.ts +2 -0
  136. package/dist/esm/types/components/icon/icons/ellipsis.d.ts +2 -0
  137. package/dist/esm/types/components/icon/icons/heart-filled.d.ts +2 -0
  138. package/dist/esm/types/components/icon/icons/heart.d.ts +2 -0
  139. package/dist/esm/types/components/icon/icons/image.d.ts +2 -0
  140. package/dist/esm/types/components/icon/icons/index.d.ts +27 -0
  141. package/dist/esm/types/components/icon/icons/location-dot.d.ts +2 -0
  142. package/dist/esm/types/components/icon/icons/map.d.ts +2 -0
  143. package/dist/esm/types/components/icon/icons/plus.d.ts +2 -0
  144. package/dist/esm/types/components/icon/icons/search.d.ts +2 -0
  145. package/dist/esm/types/components/icon/icons/settings.d.ts +2 -0
  146. package/dist/esm/types/components/icon/icons/star-filled.d.ts +2 -0
  147. package/dist/esm/types/components/icon/icons/star.d.ts +2 -0
  148. package/dist/esm/types/components/icon/icons/trash.d.ts +2 -0
  149. package/dist/esm/types/components/icon/icons/user.d.ts +2 -0
  150. package/dist/esm/types/components/icon/icons/xmark.d.ts +2 -0
  151. package/dist/esm/types/components/icon/index.d.ts +2 -0
  152. package/dist/esm/types/components/icon-button/icon-button-styles.d.ts +735 -0
  153. package/dist/esm/types/components/icon-button/icon-button.d.ts +31 -0
  154. package/dist/esm/types/components/icon-button/index.d.ts +1 -0
  155. package/dist/esm/types/components/image/image.d.ts +16 -0
  156. package/dist/esm/types/components/image/index.d.ts +1 -0
  157. package/dist/esm/types/components/index.d.ts +17 -0
  158. package/dist/esm/types/components/label/index.d.ts +1 -0
  159. package/dist/esm/types/components/label/label.d.ts +358 -0
  160. package/dist/esm/types/components/link/index.d.ts +1 -0
  161. package/dist/esm/types/components/link/link.d.ts +15 -0
  162. package/dist/esm/types/components/loading-dots/index.d.ts +1 -0
  163. package/dist/esm/types/components/loading-dots/loading-dots.d.ts +348 -0
  164. package/dist/esm/types/components/paragraph/index.d.ts +1 -0
  165. package/dist/esm/types/components/paragraph/paragraph.d.ts +402 -0
  166. package/dist/esm/types/components/primitives/index.d.ts +3 -0
  167. package/dist/esm/types/components/primitives/input-base/index.d.ts +1 -0
  168. package/dist/esm/types/components/primitives/input-base/input-base.d.ts +21 -0
  169. package/dist/esm/types/components/primitives/select-base/index.d.ts +1 -0
  170. package/dist/esm/types/components/primitives/select-base/select-base.d.ts +30 -0
  171. package/dist/esm/types/components/primitives/textarea-base/index.d.ts +1 -0
  172. package/dist/esm/types/components/primitives/textarea-base/textarea-base.d.ts +36 -0
  173. package/dist/esm/types/components/select/index.d.ts +1 -0
  174. package/dist/esm/types/components/select/select-option.d.ts +10 -0
  175. package/dist/esm/types/components/select/select.d.ts +25 -0
  176. package/dist/esm/types/components/spacer/index.d.ts +1 -0
  177. package/dist/esm/types/components/spacer/spacer.d.ts +11 -0
  178. package/dist/esm/types/components/stack/index.d.ts +1 -0
  179. package/dist/esm/types/components/stack/stack.d.ts +17 -0
  180. package/dist/esm/types/components/stack/stack.types.d.ts +4 -0
  181. package/dist/esm/types/components/stack/stack.utils.d.ts +6 -0
  182. package/dist/esm/types/components/text-field/index.d.ts +1 -0
  183. package/dist/esm/types/components/text-field/text-field.d.ts +22 -0
  184. package/dist/esm/types/components/textarea/index.d.ts +1 -0
  185. package/dist/esm/types/components/textarea/textarea.d.ts +22 -0
  186. package/dist/esm/types/hooks/index.d.ts +6 -0
  187. package/dist/esm/types/hooks/use-breakpoint-value.d.ts +16 -0
  188. package/dist/esm/types/hooks/use-breakpoint.d.ts +17 -0
  189. package/dist/esm/types/hooks/use-form-field.d.ts +49 -0
  190. package/dist/esm/types/hooks/use-image.d.ts +10 -0
  191. package/dist/esm/types/hooks/use-safe-layout-effect.d.ts +9 -0
  192. package/dist/esm/types/hooks/use-stable-id.d.ts +4 -0
  193. package/dist/esm/types/index.d.ts +6 -0
  194. package/dist/esm/types/qds-provider.d.ts +8 -0
  195. package/dist/esm/types/styles/common-styles.d.ts +369 -0
  196. package/dist/esm/types/styles/css-reset.d.ts +5 -0
  197. package/dist/esm/types/styles/css-utils.d.ts +19 -0
  198. package/dist/esm/types/styles/global-styles.d.ts +5 -0
  199. package/dist/esm/types/styles/index.d.ts +3 -0
  200. package/dist/esm/types/theme/foundations/breakpoints.d.ts +8 -0
  201. package/dist/esm/types/theme/foundations/colors.d.ts +107 -0
  202. package/dist/esm/types/theme/foundations/index.d.ts +335 -0
  203. package/dist/esm/types/theme/foundations/radius.d.ts +9 -0
  204. package/dist/esm/types/theme/foundations/shadows.d.ts +7 -0
  205. package/dist/esm/types/theme/foundations/sizes.d.ts +32 -0
  206. package/dist/esm/types/theme/foundations/spacing.d.ts +14 -0
  207. package/dist/esm/types/theme/foundations/typography.d.ts +131 -0
  208. package/dist/esm/types/theme/foundations/z-index.d.ts +15 -0
  209. package/dist/esm/types/theme/index.d.ts +2 -0
  210. package/dist/esm/types/theme/theme-tools.d.ts +345 -0
  211. package/dist/esm/types/theme/theme.d.ts +331 -0
  212. package/dist/esm/types/types.d.ts +5 -0
  213. package/dist/esm/types/utils/object.d.ts +1 -0
  214. package/dist/esm/types/utils/polymorphic.d.ts +41 -0
  215. package/dist/esm/types/utils/test-utils.d.ts +14 -0
  216. package/dist/index.d.ts +4978 -0
  217. package/package.json +103 -0
@@ -0,0 +1,402 @@
1
+ import type { VariantProps } from '../../styles';
2
+ import type { Theme } from '../../theme';
3
+ import type * as Polymorphic from '../../utils/polymorphic';
4
+ declare const getSizeStyles: (theme: {
5
+ mediaQueries: {
6
+ readonly smUp: "@media(min-width: 480px)";
7
+ readonly mdUp: "@media(min-width: 768px)";
8
+ readonly lgUp: "@media(min-width: 1024px)";
9
+ readonly xlUp: "@media(min-width: 1280px)";
10
+ readonly '2xlUp': "@media(min-width: 1536px)";
11
+ };
12
+ spacing: {
13
+ '0x': string;
14
+ '1x': string;
15
+ '2x': string;
16
+ '3x': string;
17
+ '4x': string;
18
+ '5x': string;
19
+ '6x': string;
20
+ '8x': string;
21
+ '12x': string;
22
+ '16x': string;
23
+ '20x': string;
24
+ '24x': string;
25
+ };
26
+ breakpoints: {
27
+ readonly base: 0;
28
+ readonly sm: 480;
29
+ readonly md: 768;
30
+ readonly lg: 1024;
31
+ readonly xl: 1280;
32
+ readonly '2xl': 1536;
33
+ };
34
+ zIndices: {
35
+ hide: number;
36
+ auto: string;
37
+ base: number;
38
+ docked: number;
39
+ dropdown: number;
40
+ sticky: number;
41
+ banner: number;
42
+ overlay: number;
43
+ modal: number;
44
+ popover: number;
45
+ skipLink: number;
46
+ toast: number;
47
+ tooltip: number;
48
+ };
49
+ colors: {
50
+ core: {
51
+ black: string;
52
+ white: string;
53
+ gray90: string;
54
+ gray80: string;
55
+ gray70: string;
56
+ gray60: string;
57
+ gray50: string;
58
+ gray40: string;
59
+ gray30: string;
60
+ gray20: string;
61
+ gray10: string;
62
+ brand90: string;
63
+ brand80: string;
64
+ brand70: string;
65
+ brand60: string;
66
+ brand50: string;
67
+ brand40: string;
68
+ brand30: string;
69
+ brand20: string;
70
+ brand10: string;
71
+ red10: string;
72
+ red20: string;
73
+ red30: string;
74
+ red40: string;
75
+ red50: string;
76
+ red60: string;
77
+ red70: string;
78
+ red80: string;
79
+ red90: string;
80
+ green90: string;
81
+ green80: string;
82
+ green70: string;
83
+ green60: string;
84
+ green50: string;
85
+ green40: string;
86
+ green30: string;
87
+ green20: string;
88
+ green10: string;
89
+ blue90: string;
90
+ blue80: string;
91
+ blue70: string;
92
+ blue60: string;
93
+ blue50: string;
94
+ blue40: string;
95
+ blue30: string;
96
+ blue20: string;
97
+ blue10: string;
98
+ yellow90: string;
99
+ yellow80: string;
100
+ yellow70: string;
101
+ yellow60: string;
102
+ yellow50: string;
103
+ yellow40: string;
104
+ yellow30: string;
105
+ yellow20: string;
106
+ yellow10: string;
107
+ blackAlpha20: string;
108
+ };
109
+ /**
110
+ * Truncates the text after a specific number of lines
111
+ */
112
+ bg: {
113
+ default: string;
114
+ brandPrimary: string;
115
+ brandPrimaryHover: string;
116
+ brandPrimaryActive: string;
117
+ brandSecondary: string;
118
+ brandSecondaryHover: string;
119
+ brandSecondaryActive: string;
120
+ negative: string;
121
+ warning: string;
122
+ positive: string;
123
+ inset: string;
124
+ backdrop: string;
125
+ };
126
+ text: {
127
+ strong: string;
128
+ default: string;
129
+ subtle: string;
130
+ disabled: string;
131
+ negative: string;
132
+ warning: string;
133
+ positive: string;
134
+ onColor: string;
135
+ };
136
+ icon: {
137
+ default: string;
138
+ strong: string;
139
+ subtle: string;
140
+ disabled: string;
141
+ negative: string;
142
+ warning: string;
143
+ success: string;
144
+ onColor: string;
145
+ };
146
+ border: {
147
+ default: string;
148
+ defaultHover: string;
149
+ defaultSelected: string;
150
+ strong: string;
151
+ subtle: string;
152
+ negative: string;
153
+ warning: string;
154
+ success: string;
155
+ };
156
+ };
157
+ sizes: {
158
+ 112: string;
159
+ 128: string;
160
+ 144: string;
161
+ 160: string;
162
+ 176: string;
163
+ 192: string;
164
+ 224: string;
165
+ 256: string;
166
+ 288: string;
167
+ 320: string;
168
+ 384: string;
169
+ 448: string;
170
+ 512: string;
171
+ 576: string;
172
+ 672: string;
173
+ 768: string;
174
+ 896: string;
175
+ 1024: string;
176
+ '0x': string;
177
+ '1x': string;
178
+ '2x': string;
179
+ '3x': string;
180
+ '4x': string;
181
+ '5x': string;
182
+ '6x': string;
183
+ '8x': string;
184
+ '12x': string;
185
+ '16x': string;
186
+ '20x': string;
187
+ '24x': string;
188
+ };
189
+ radii: {
190
+ none: string;
191
+ xs: string;
192
+ sm: string;
193
+ md: string;
194
+ lg: string;
195
+ xl: string;
196
+ full: string;
197
+ };
198
+ shadows: {
199
+ none: string;
200
+ sm: string;
201
+ md: string;
202
+ lg: string;
203
+ xl: string;
204
+ };
205
+ typography: {
206
+ display: {
207
+ lg: {
208
+ fontFamily: string;
209
+ fontWeight: string;
210
+ fontSize: string;
211
+ lineHeight: string;
212
+ letterSpacing: string;
213
+ };
214
+ md: {
215
+ fontFamily: string;
216
+ fontWeight: string;
217
+ fontSize: string;
218
+ lineHeight: string;
219
+ letterSpacing: string;
220
+ };
221
+ };
222
+ title: {
223
+ lg: {
224
+ fontFamily: string;
225
+ fontWeight: string;
226
+ fontSize: string;
227
+ lineHeight: string;
228
+ letterSpacing: string;
229
+ };
230
+ md: {
231
+ fontFamily: string;
232
+ fontWeight: string;
233
+ fontSize: string;
234
+ lineHeight: string;
235
+ letterSpacing: string;
236
+ };
237
+ sm: {
238
+ fontFamily: string;
239
+ fontWeight: string;
240
+ fontSize: string;
241
+ lineHeight: string;
242
+ letterSpacing: string;
243
+ };
244
+ xs: {
245
+ fontFamily: string;
246
+ fontWeight: string;
247
+ fontSize: string;
248
+ lineHeight: string;
249
+ letterSpacing: string; /**
250
+ * Alignment of the paragraph
251
+ * @default 'left'
252
+ */
253
+ };
254
+ '2xs': {
255
+ fontFamily: string;
256
+ fontWeight: string;
257
+ fontSize: string;
258
+ lineHeight: string;
259
+ letterSpacing: string;
260
+ };
261
+ '3xs': {
262
+ fontFamily: string;
263
+ fontWeight: string;
264
+ fontSize: string;
265
+ lineHeight: string;
266
+ letterSpacing: string;
267
+ };
268
+ };
269
+ body: {
270
+ xl: {
271
+ fontFamily: string;
272
+ fontWeight: string;
273
+ fontSize: string;
274
+ lineHeight: string;
275
+ letterSpacing: string;
276
+ };
277
+ lg: {
278
+ fontFamily: string;
279
+ fontWeight: string;
280
+ fontSize: string;
281
+ lineHeight: string;
282
+ letterSpacing: string;
283
+ };
284
+ md: {
285
+ fontFamily: string;
286
+ fontWeight: string;
287
+ fontSize: string;
288
+ lineHeight: string;
289
+ letterSpacing: string;
290
+ };
291
+ sm: {
292
+ fontFamily: string;
293
+ fontWeight: string;
294
+ fontSize: string;
295
+ lineHeight: string;
296
+ letterSpacing: string;
297
+ };
298
+ xs: {
299
+ fontFamily: string;
300
+ fontWeight: string;
301
+ fontSize: string;
302
+ lineHeight: string;
303
+ letterSpacing: string;
304
+ };
305
+ };
306
+ label: {
307
+ md: {
308
+ fontFamily: string;
309
+ fontWeight: string;
310
+ fontSize: string;
311
+ lineHeight: string;
312
+ letterSpacing: string;
313
+ };
314
+ sm: {
315
+ fontFamily: string;
316
+ fontWeight: string;
317
+ fontSize: string;
318
+ lineHeight: string;
319
+ letterSpacing: string;
320
+ };
321
+ };
322
+ caption: {
323
+ md: {
324
+ fontFamily: string;
325
+ fontWeight: string;
326
+ fontSize: string;
327
+ lineHeight: string;
328
+ letterSpacing: string;
329
+ };
330
+ sm: {
331
+ fontFamily: string;
332
+ fontWeight: string;
333
+ fontSize: string;
334
+ lineHeight: string;
335
+ letterSpacing: string;
336
+ };
337
+ };
338
+ };
339
+ }) => {
340
+ xs: {
341
+ fontFamily: string;
342
+ fontWeight: string;
343
+ fontSize: string;
344
+ lineHeight: string;
345
+ letterSpacing: string;
346
+ };
347
+ sm: {
348
+ fontFamily: string;
349
+ fontWeight: string;
350
+ fontSize: string;
351
+ lineHeight: string;
352
+ letterSpacing: string;
353
+ };
354
+ md: {
355
+ fontFamily: string;
356
+ fontWeight: string;
357
+ fontSize: string;
358
+ lineHeight: string;
359
+ letterSpacing: string;
360
+ };
361
+ lg: {
362
+ fontFamily: string;
363
+ fontWeight: string;
364
+ fontSize: string;
365
+ lineHeight: string;
366
+ letterSpacing: string;
367
+ };
368
+ xl: {
369
+ fontFamily: string;
370
+ fontWeight: string;
371
+ fontSize: string;
372
+ lineHeight: string;
373
+ letterSpacing: string;
374
+ };
375
+ };
376
+ declare type ParagraphSize = VariantProps<typeof getSizeStyles>;
377
+ declare type ParagraphColor = keyof Theme['colors']['text'];
378
+ interface ParagraphOptions {
379
+ /**
380
+ * Sets the visual size of the text
381
+ * @default 'md'
382
+ */
383
+ size?: ParagraphSize;
384
+ /**
385
+ * Sets the color of the text
386
+ * @default 'normal'
387
+ */
388
+ color?: ParagraphColor;
389
+ /**
390
+ * Truncates the text after a specific number of lines
391
+ */
392
+ numberOfLines?: number;
393
+ /**
394
+ * Alignment of the paragraph
395
+ * @default 'left'
396
+ */
397
+ textAlign?: 'left' | 'center' | 'right';
398
+ }
399
+ declare type ParagraphComponent = Polymorphic.ForwardRefComponent<'p', ParagraphOptions>;
400
+ export declare type ParagraphProps = Polymorphic.PropsOf<ParagraphComponent>;
401
+ export declare const Paragraph: ParagraphComponent;
402
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './input-base';
2
+ export * from './select-base';
3
+ export * from './textarea-base';
@@ -0,0 +1 @@
1
+ export * from './input-base';
@@ -0,0 +1,21 @@
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
+ declare 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 {};
@@ -0,0 +1 @@
1
+ export * from './select-base';
@@ -0,0 +1,30 @@
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
+ declare 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 {};
@@ -0,0 +1 @@
1
+ export * from './textarea-base';
@@ -0,0 +1,36 @@
1
+ /// <reference types="react" />
2
+ import type { HTMLQdsProps } from '../../../types';
3
+ declare type ResizeProp = 'none' | 'both' | 'horizontal' | 'vertical';
4
+ declare 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
+ declare 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 {};
@@ -0,0 +1 @@
1
+ export * from './select';
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import type { HTMLQdsProps } from '../../types';
3
+ interface SelectOptionOptions {
4
+ isDisabled?: boolean;
5
+ }
6
+ declare type OmittedProps = 'disabled' | 'label';
7
+ export interface SelectOptionProps extends Omit<HTMLQdsProps<'option'>, OmittedProps>, SelectOptionOptions {
8
+ }
9
+ export declare const SelectOption: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
10
+ export {};
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import type { HTMLQdsProps } from '../../types';
3
+ import type { SelectBaseOptions } from '../primitives/select-base';
4
+ import type { SelectOptionProps } from './select-option';
5
+ interface SelectOptions extends SelectBaseOptions {
6
+ /**
7
+ * The label for the select field
8
+ */
9
+ label: string;
10
+ /**
11
+ * The error message to display if `isInvalid` is `true`
12
+ */
13
+ errorMessage?: string;
14
+ /**
15
+ * Text that provides additional guidance to the user
16
+ */
17
+ helperText?: string;
18
+ }
19
+ declare type OmittedProps = 'readOnly' | 'size';
20
+ export interface SelectProps extends Omit<HTMLQdsProps<'select'>, OmittedProps>, SelectOptions {
21
+ }
22
+ export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>> & {
23
+ Option: import("react").ForwardRefExoticComponent<SelectOptionProps & import("react").RefAttributes<HTMLOptionElement>>;
24
+ };
25
+ export type { SelectOptionProps };
@@ -0,0 +1 @@
1
+ export * from './spacer';
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { Theme } from '../../theme';
3
+ import type { HTMLQdsProps } from '../../types';
4
+ interface SpacerOptions {
5
+ axis?: 'x' | 'y';
6
+ size: keyof Theme['spacing'];
7
+ }
8
+ export interface SpacerProps extends HTMLQdsProps<'span'>, SpacerOptions {
9
+ }
10
+ export declare const Spacer: import("react").ForwardRefExoticComponent<SpacerProps & import("react").RefAttributes<HTMLSpanElement>>;
11
+ export {};
@@ -0,0 +1 @@
1
+ export * from './stack';
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { Theme } from '../../theme';
3
+ import type * as Polymorphic from '../../utils/polymorphic';
4
+ import type { AlignItems, FlexDirection, JustifyContent, FlexWrap } from './stack.types';
5
+ declare type GapProp = keyof Theme['spacing'];
6
+ interface StackOptions {
7
+ direction?: FlexDirection;
8
+ justifyContent?: JustifyContent;
9
+ alignItems?: AlignItems;
10
+ wrap?: FlexWrap;
11
+ gap?: GapProp;
12
+ divider?: ReactNode;
13
+ }
14
+ declare type StackComponent = Polymorphic.ForwardRefComponent<'div', StackOptions>;
15
+ export declare type StackProps = Polymorphic.PropsOf<StackComponent>;
16
+ export declare const Stack: StackComponent;
17
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare type AlignItems = 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
2
+ export declare type JustifyContent = 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly';
3
+ export declare type FlexDirection = 'row' | 'row-reverse' | 'column' | 'column-reverse';
4
+ export declare type FlexWrap = 'wrap' | 'nowrap' | 'wrap-reverse';
@@ -0,0 +1,6 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ /**
3
+ * Gets only the valid children of a component,
4
+ * and ignores any nullish or falsy child.
5
+ */
6
+ export declare function getValidChildren(children: ReactNode): ReactElement<any, string | import("react").JSXElementConstructor<any>>[];
@@ -0,0 +1 @@
1
+ export * from './text-field';
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import type { HTMLQdsProps } from '../../types';
3
+ import type { InputBaseOptions } from '../primitives/input-base';
4
+ interface TextFieldOptions extends InputBaseOptions {
5
+ /**
6
+ * The label for the input
7
+ */
8
+ label: string;
9
+ /**
10
+ * The error message to display if `isInvalid` is `true`
11
+ */
12
+ errorMessage?: string;
13
+ /**
14
+ * Text that provides additional guidance to the user
15
+ */
16
+ helperText?: string;
17
+ }
18
+ declare type OmittedProps = 'children' | 'readOnly' | 'size';
19
+ export interface TextFieldProps extends Omit<HTMLQdsProps<'input'>, OmittedProps>, TextFieldOptions {
20
+ }
21
+ export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
22
+ export {};
@@ -0,0 +1 @@
1
+ export * from './textarea';
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import type { HTMLQdsProps } from '../../types';
3
+ import type { TextareaBaseOptions } from '../primitives/textarea-base';
4
+ interface TextareaOptions extends TextareaBaseOptions {
5
+ /**
6
+ * The label for the textarea field
7
+ */
8
+ label: string;
9
+ /**
10
+ * The error message to display if `isInvalid` is `true`
11
+ */
12
+ errorMessage?: string;
13
+ /**
14
+ * Text that provides additional guidance to the user
15
+ */
16
+ helperText?: string;
17
+ }
18
+ declare type OmittedProps = 'children' | 'readOnly' | 'size';
19
+ export interface TextareaProps extends Omit<HTMLQdsProps<'textarea'>, OmittedProps>, TextareaOptions {
20
+ }
21
+ export declare const Textarea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
22
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './use-breakpoint';
2
+ export * from './use-breakpoint-value';
3
+ export * from './use-image';
4
+ export * from './use-form-field';
5
+ export * from './use-stable-id';
6
+ export * from './use-safe-layout-effect';
@@ -0,0 +1,16 @@
1
+ import type { Theme } from '../theme';
2
+ import type { PartialRecord } from '../types';
3
+ import type { UseBreakpointOptions } from './use-breakpoint';
4
+ declare type Breakpoints = Theme['breakpoints'];
5
+ declare type BreakpointsConfig<T> = PartialRecord<keyof Breakpoints, T> & {
6
+ base: T;
7
+ };
8
+ export declare type UseBreakpointValueProps<T> = BreakpointsConfig<T>;
9
+ /**
10
+ * Hook for getting a value based on the current breakpoint.
11
+ *
12
+ * @example
13
+ * const width = useBreakpointValue({ base: '150px', md: '250px' })
14
+ */
15
+ export declare function useBreakpointValue<T>(values: UseBreakpointValueProps<T>, options?: UseBreakpointOptions): T;
16
+ export {};