@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,409 @@
1
+ /**
2
+ * This function is heavily inspired by the `createIcon` function from
3
+ * Chakra UI (https://chakra-ui.com/).
4
+ */
5
+ import type { SVGAttributes } from 'react';
6
+ import type { VariantProps } from '../../styles';
7
+ import type { Theme } from '../../theme';
8
+ declare const getSizeStyles: (theme: {
9
+ mediaQueries: {
10
+ readonly smUp: "@media(min-width: 480px)";
11
+ readonly mdUp: "@media(min-width: 768px)";
12
+ readonly lgUp: "@media(min-width: 1024px)";
13
+ readonly xlUp: "@media(min-width: 1280px)";
14
+ readonly '2xlUp': "@media(min-width: 1536px)";
15
+ };
16
+ spacing: {
17
+ '0x': string;
18
+ '1x': string;
19
+ '2x': string;
20
+ '3x': string;
21
+ '4x': string;
22
+ '5x': string;
23
+ '6x': string;
24
+ '8x': string;
25
+ '12x': string;
26
+ '16x': string;
27
+ '20x': string;
28
+ '24x': string;
29
+ };
30
+ breakpoints: {
31
+ readonly base: 0;
32
+ readonly sm: 480;
33
+ readonly md: 768;
34
+ readonly lg: 1024;
35
+ readonly xl: 1280;
36
+ readonly '2xl': 1536;
37
+ };
38
+ zIndices: {
39
+ hide: number;
40
+ auto: string;
41
+ base: number;
42
+ docked: number;
43
+ dropdown: number;
44
+ sticky: number;
45
+ banner: number;
46
+ overlay: number;
47
+ modal: number;
48
+ popover: number;
49
+ skipLink: number;
50
+ toast: number;
51
+ tooltip: number;
52
+ };
53
+ colors: {
54
+ core: {
55
+ black: string;
56
+ white: string;
57
+ gray90: string;
58
+ gray80: string;
59
+ gray70: string;
60
+ gray60: string;
61
+ gray50: string;
62
+ gray40: string;
63
+ gray30: string;
64
+ gray20: string;
65
+ gray10: string;
66
+ brand90: string;
67
+ brand80: string;
68
+ brand70: string;
69
+ brand60: string;
70
+ brand50: string;
71
+ brand40: string;
72
+ brand30: string;
73
+ brand20: string;
74
+ brand10: string;
75
+ red10: string;
76
+ red20: string;
77
+ red30: string;
78
+ red40: string;
79
+ red50: string;
80
+ red60: string;
81
+ red70: string;
82
+ red80: string;
83
+ red90: string;
84
+ green90: string;
85
+ green80: string;
86
+ green70: string;
87
+ green60: string;
88
+ green50: string;
89
+ green40: string;
90
+ green30: string;
91
+ green20: string;
92
+ green10: string;
93
+ blue90: string;
94
+ blue80: string;
95
+ blue70: string;
96
+ blue60: string;
97
+ blue50: string;
98
+ blue40: string;
99
+ blue30: string;
100
+ blue20: string;
101
+ blue10: string;
102
+ yellow90: string;
103
+ yellow80: string;
104
+ yellow70: string;
105
+ yellow60: string;
106
+ yellow50: string;
107
+ yellow40: string;
108
+ yellow30: string;
109
+ yellow20: string;
110
+ yellow10: string;
111
+ blackAlpha20: string;
112
+ };
113
+ bg: {
114
+ default: string;
115
+ brandPrimary: string;
116
+ brandPrimaryHover: string;
117
+ brandPrimaryActive: string;
118
+ brandSecondary: string;
119
+ brandSecondaryHover: string;
120
+ brandSecondaryActive: string;
121
+ negative: string;
122
+ warning: string;
123
+ positive: string;
124
+ inset: string;
125
+ backdrop: string;
126
+ };
127
+ text: {
128
+ strong: string;
129
+ default: string;
130
+ subtle: string;
131
+ disabled: string;
132
+ negative: string;
133
+ warning: string;
134
+ positive: string;
135
+ onColor: string;
136
+ };
137
+ icon: {
138
+ default: string;
139
+ strong: string;
140
+ subtle: string;
141
+ disabled: string;
142
+ negative: string;
143
+ warning: string;
144
+ success: string;
145
+ onColor: string;
146
+ };
147
+ border: {
148
+ default: string;
149
+ defaultHover: string;
150
+ defaultSelected: string;
151
+ strong: string;
152
+ subtle: string;
153
+ negative: string;
154
+ warning: string;
155
+ success: string;
156
+ };
157
+ };
158
+ sizes: {
159
+ 112: string;
160
+ 128: string;
161
+ 144: string;
162
+ 160: string;
163
+ 176: string;
164
+ 192: string;
165
+ 224: string;
166
+ 256: string;
167
+ 288: string;
168
+ 320: string;
169
+ 384: string;
170
+ 448: string;
171
+ 512: string;
172
+ 576: string;
173
+ 672: string;
174
+ 768: string;
175
+ 896: string;
176
+ 1024: string;
177
+ '0x': string;
178
+ '1x': string;
179
+ '2x': string;
180
+ '3x': string;
181
+ '4x': string;
182
+ '5x': string;
183
+ '6x': string;
184
+ '8x': string;
185
+ '12x': string;
186
+ '16x': string;
187
+ '20x': string;
188
+ '24x': string;
189
+ };
190
+ radii: {
191
+ none: string;
192
+ xs: string;
193
+ sm: string;
194
+ md: string;
195
+ lg: string;
196
+ xl: string;
197
+ full: string;
198
+ }; /**
199
+ * The size of the icon.
200
+ *
201
+ * @default 16
202
+ */
203
+ shadows: {
204
+ none: string;
205
+ sm: string;
206
+ md: string;
207
+ lg: string;
208
+ xl: string;
209
+ };
210
+ typography: {
211
+ display: {
212
+ lg: {
213
+ fontFamily: string;
214
+ fontWeight: string;
215
+ fontSize: string;
216
+ lineHeight: string;
217
+ letterSpacing: string;
218
+ };
219
+ md: {
220
+ fontFamily: string;
221
+ fontWeight: string;
222
+ fontSize: string;
223
+ lineHeight: string;
224
+ letterSpacing: string;
225
+ };
226
+ };
227
+ title: {
228
+ lg: {
229
+ fontFamily: string;
230
+ fontWeight: string;
231
+ fontSize: string;
232
+ lineHeight: string;
233
+ letterSpacing: string;
234
+ };
235
+ md: {
236
+ fontFamily: string;
237
+ fontWeight: string;
238
+ fontSize: string;
239
+ lineHeight: string;
240
+ letterSpacing: string;
241
+ };
242
+ sm: {
243
+ fontFamily: string;
244
+ fontWeight: string;
245
+ fontSize: string;
246
+ lineHeight: string;
247
+ letterSpacing: string;
248
+ };
249
+ xs: {
250
+ fontFamily: string;
251
+ fontWeight: string;
252
+ fontSize: string;
253
+ lineHeight: string; /**
254
+ * If the `svg` has a single path, simply copy the path's `d` attribute
255
+ */
256
+ letterSpacing: string;
257
+ };
258
+ '2xs': {
259
+ fontFamily: string;
260
+ fontWeight: string;
261
+ fontSize: string;
262
+ lineHeight: string;
263
+ letterSpacing: string;
264
+ };
265
+ '3xs': {
266
+ fontFamily: string;
267
+ fontWeight: string;
268
+ fontSize: string;
269
+ lineHeight: string;
270
+ letterSpacing: string;
271
+ };
272
+ };
273
+ body: {
274
+ xl: {
275
+ fontFamily: string;
276
+ fontWeight: string;
277
+ fontSize: string;
278
+ lineHeight: string;
279
+ letterSpacing: string;
280
+ };
281
+ lg: {
282
+ fontFamily: string;
283
+ fontWeight: string;
284
+ fontSize: string;
285
+ lineHeight: string;
286
+ letterSpacing: string;
287
+ };
288
+ md: {
289
+ fontFamily: string;
290
+ fontWeight: string;
291
+ fontSize: string;
292
+ lineHeight: string;
293
+ letterSpacing: string;
294
+ };
295
+ sm: {
296
+ fontFamily: string;
297
+ fontWeight: string;
298
+ fontSize: string;
299
+ lineHeight: string;
300
+ letterSpacing: string;
301
+ };
302
+ xs: {
303
+ fontFamily: string;
304
+ fontWeight: string;
305
+ fontSize: string;
306
+ lineHeight: string;
307
+ letterSpacing: string;
308
+ };
309
+ };
310
+ label: {
311
+ md: {
312
+ fontFamily: string;
313
+ fontWeight: string;
314
+ fontSize: string;
315
+ lineHeight: string;
316
+ letterSpacing: string;
317
+ };
318
+ sm: {
319
+ fontFamily: string;
320
+ fontWeight: string;
321
+ fontSize: string;
322
+ lineHeight: string;
323
+ letterSpacing: string;
324
+ };
325
+ };
326
+ caption: {
327
+ md: {
328
+ fontFamily: string;
329
+ fontWeight: string;
330
+ fontSize: string;
331
+ lineHeight: string;
332
+ letterSpacing: string;
333
+ };
334
+ sm: {
335
+ fontFamily: string;
336
+ fontWeight: string;
337
+ fontSize: string;
338
+ lineHeight: string;
339
+ letterSpacing: string;
340
+ };
341
+ };
342
+ };
343
+ }) => {
344
+ 32: {
345
+ fontSize: string;
346
+ };
347
+ 24: {
348
+ fontSize: string;
349
+ };
350
+ 20: {
351
+ fontSize: string;
352
+ };
353
+ 16: {
354
+ fontSize: string;
355
+ };
356
+ 12: {
357
+ fontSize: string;
358
+ };
359
+ };
360
+ declare type IconSize = VariantProps<typeof getSizeStyles>;
361
+ declare type IconColor = keyof Theme['colors']['icon'] | 'inherit';
362
+ interface IconOptions {
363
+ /**
364
+ * The size of the icon.
365
+ *
366
+ * @default 16
367
+ */
368
+ size?: IconSize;
369
+ /**
370
+ * The color of the icon.
371
+ */
372
+ color?: IconColor;
373
+ }
374
+ declare type OmittedProps = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
375
+ export interface IconProps extends Omit<SVGAttributes<SVGElement>, OmittedProps>, IconOptions {
376
+ }
377
+ export interface CreateIconOptions {
378
+ /**
379
+ * The `svg`'s `viewBox` attribute
380
+ */
381
+ viewBox: string;
382
+ /**
383
+ * If the `svg` has a single path, simply copy the path's `d` attribute
384
+ */
385
+ d?: string;
386
+ /**
387
+ * The `svg` path or group element
388
+ *
389
+ * @example
390
+ * ```jsx
391
+ * createIcon({
392
+ * viewBox: '0 0 512 512',
393
+ * path: [
394
+ * <circle cx="50" cy="50" r="50" />,
395
+ * <path d="M10 10" />,
396
+ * ],
397
+ * displayName: 'ExampleIcon',
398
+ * })
399
+ * ```
400
+ */
401
+ path?: React.ReactElement | React.ReactElement[];
402
+ /**
403
+ * The display name of the icon. Useful for debugging
404
+ * and internal use.
405
+ */
406
+ displayName?: string;
407
+ }
408
+ export declare const createIcon: (options: CreateIconOptions) => import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
409
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ArrowDownIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ArrowLeftIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ArrowRightIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ArrowUpIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const BellSlashIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const BellIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CalendarIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const CheckIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ChevronDownIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ChevronLeftIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ChevronRightIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ChevronUpIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EllipsisVerticalIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const EllipsisIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const HeartFilledIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const HeartIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const ImageIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,27 @@
1
+ export { ArrowDownIcon } from './arrow-down';
2
+ export { ArrowLeftIcon } from './arrow-left';
3
+ export { ArrowRightIcon } from './arrow-right';
4
+ export { ArrowUpIcon } from './arrow-up';
5
+ export { BellSlashIcon } from './bell-slash';
6
+ export { BellIcon } from './bell';
7
+ export { CalendarIcon } from './calendar';
8
+ export { CheckIcon } from './check';
9
+ export { ChevronDownIcon } from './chevron-down';
10
+ export { ChevronLeftIcon } from './chevron-left';
11
+ export { ChevronRightIcon } from './chevron-right';
12
+ export { ChevronUpIcon } from './chevron-up';
13
+ export { EllipsisVerticalIcon } from './ellipsis-vertical';
14
+ export { EllipsisIcon } from './ellipsis';
15
+ export { HeartFilledIcon } from './heart-filled';
16
+ export { HeartIcon } from './heart';
17
+ export { ImageIcon } from './image';
18
+ export { LocationDotIcon } from './location-dot';
19
+ export { MapIcon } from './map';
20
+ export { PlusIcon } from './plus';
21
+ export { SearchIcon } from './search';
22
+ export { SettingsIcon } from './settings';
23
+ export { StarFilledIcon } from './star-filled';
24
+ export { StarIcon } from './star';
25
+ export { TrashIcon } from './trash';
26
+ export { UserIcon } from './user';
27
+ export { XmarkIcon } from './xmark';
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const LocationDotIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const MapIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const PlusIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const SearchIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const SettingsIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StarFilledIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const StarIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const TrashIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const UserIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const XmarkIcon: import("react").ForwardRefExoticComponent<import("../create-icon").IconProps & import("react").RefAttributes<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ export * from './create-icon';
2
+ export * from './icons';