@qasa/qds-ui 0.8.1 → 0.9.0-next.1
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.
- package/dist/cjs/index.js +9242 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/icon/create-icon.d.ts +5 -447
- package/dist/cjs/types/components/icon/create-lucide-icon.d.ts +4 -0
- package/dist/cjs/types/components/icon/icon.types.d.ts +20 -0
- package/dist/cjs/types/components/icon/icons.d.ts +39 -0
- package/dist/cjs/types/components/icon/index.d.ts +2 -0
- package/dist/esm/index.js +9242 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/icon/create-icon.d.ts +5 -447
- package/dist/esm/types/components/icon/create-lucide-icon.d.ts +4 -0
- package/dist/esm/types/components/icon/icon.types.d.ts +20 -0
- package/dist/esm/types/components/icon/icons.d.ts +39 -0
- package/dist/esm/types/components/icon/index.d.ts +2 -0
- package/dist/index.d.ts +30 -466
- package/package.json +2 -1
- package/dist/cjs/types/components/icon/icons/arrow-down.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/arrow-left.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/arrow-right.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/arrow-up.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/bell-slash.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/bell.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/calendar.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/check.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/chevron-down.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/chevron-left.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/chevron-right.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/chevron-up.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/ellipsis-vertical.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/ellipsis.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/heart-filled.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/heart.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/image.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/index.d.ts +0 -28
- package/dist/cjs/types/components/icon/icons/location-dot.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/map.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/minus.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/plus.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/search.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/settings.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/star-filled.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/star.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/trash.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/user.d.ts +0 -2
- package/dist/cjs/types/components/icon/icons/xmark.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/arrow-down.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/arrow-left.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/arrow-right.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/arrow-up.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/bell-slash.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/bell.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/calendar.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/check.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/chevron-down.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/chevron-left.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/chevron-right.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/chevron-up.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/ellipsis-vertical.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/ellipsis.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/heart-filled.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/heart.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/image.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/index.d.ts +0 -28
- package/dist/esm/types/components/icon/icons/location-dot.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/map.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/minus.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/plus.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/search.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/settings.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/star-filled.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/star.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/trash.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/user.d.ts +0 -2
- package/dist/esm/types/components/icon/icons/xmark.d.ts +0 -2
|
@@ -2,452 +2,8 @@
|
|
|
2
2
|
* This function is heavily inspired by the `createIcon` function from
|
|
3
3
|
* Chakra UI (https://chakra-ui.com/).
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import type {
|
|
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
|
-
/**
|
|
55
|
-
* The `svg`'s `viewBox` attribute
|
|
56
|
-
*/
|
|
57
|
-
core: {
|
|
58
|
-
black: string;
|
|
59
|
-
white: string;
|
|
60
|
-
gray90: string;
|
|
61
|
-
gray80: string;
|
|
62
|
-
gray70: string;
|
|
63
|
-
gray60: string;
|
|
64
|
-
gray50: string;
|
|
65
|
-
gray40: string;
|
|
66
|
-
gray30: string;
|
|
67
|
-
gray20: string;
|
|
68
|
-
gray10: string;
|
|
69
|
-
uiPink: string;
|
|
70
|
-
uiPinkDark: string;
|
|
71
|
-
uiPinkLight: string;
|
|
72
|
-
brown: string;
|
|
73
|
-
brownDark: string;
|
|
74
|
-
brownLight: string;
|
|
75
|
-
offWhite: string;
|
|
76
|
-
offWhiteDark: string;
|
|
77
|
-
offWhiteLight: string;
|
|
78
|
-
softPink: string;
|
|
79
|
-
warmYellow: string;
|
|
80
|
-
softYellow: string;
|
|
81
|
-
red10: string;
|
|
82
|
-
red20: string;
|
|
83
|
-
red30: string;
|
|
84
|
-
red40: string;
|
|
85
|
-
red50: string;
|
|
86
|
-
red60: string;
|
|
87
|
-
red70: string;
|
|
88
|
-
red80: string;
|
|
89
|
-
red90: string;
|
|
90
|
-
green90: string;
|
|
91
|
-
green80: string;
|
|
92
|
-
green70: string; /**
|
|
93
|
-
* The size of the icon.
|
|
94
|
-
*
|
|
95
|
-
* @default 16
|
|
96
|
-
*/
|
|
97
|
-
green60: string;
|
|
98
|
-
green50: string;
|
|
99
|
-
green40: string;
|
|
100
|
-
green30: string;
|
|
101
|
-
green20: string;
|
|
102
|
-
green10: string;
|
|
103
|
-
blue90: string;
|
|
104
|
-
blue80: string;
|
|
105
|
-
blue70: string;
|
|
106
|
-
blue60: string;
|
|
107
|
-
blue50: string;
|
|
108
|
-
blue40: string;
|
|
109
|
-
blue30: string;
|
|
110
|
-
blue20: string;
|
|
111
|
-
blue10: string;
|
|
112
|
-
yellow90: string;
|
|
113
|
-
yellow80: string;
|
|
114
|
-
yellow70: string;
|
|
115
|
-
yellow60: string;
|
|
116
|
-
yellow50: string;
|
|
117
|
-
yellow40: string;
|
|
118
|
-
yellow30: string;
|
|
119
|
-
yellow20: string;
|
|
120
|
-
yellow10: string;
|
|
121
|
-
blackAlpha20: string;
|
|
122
|
-
};
|
|
123
|
-
bg: {
|
|
124
|
-
default: string;
|
|
125
|
-
brandPrimary: string;
|
|
126
|
-
brandPrimaryHover: string;
|
|
127
|
-
brandPrimaryActive: string;
|
|
128
|
-
brandSecondary: string;
|
|
129
|
-
brandSecondaryHover: string;
|
|
130
|
-
brandSecondaryActive: string;
|
|
131
|
-
brandTertiary: string;
|
|
132
|
-
brandTertiaryHover: string;
|
|
133
|
-
brandTertiaryActive: string;
|
|
134
|
-
negative: string;
|
|
135
|
-
warning: string;
|
|
136
|
-
positive: string;
|
|
137
|
-
inset: string;
|
|
138
|
-
backdrop: string;
|
|
139
|
-
};
|
|
140
|
-
text: {
|
|
141
|
-
strong: string;
|
|
142
|
-
default: string;
|
|
143
|
-
subtle: string;
|
|
144
|
-
disabled: string;
|
|
145
|
-
negative: string;
|
|
146
|
-
warning: string;
|
|
147
|
-
positive: string;
|
|
148
|
-
onBrandPrimary: string;
|
|
149
|
-
onBrandSecondary: string;
|
|
150
|
-
onBrandTertiary: string;
|
|
151
|
-
};
|
|
152
|
-
icon: {
|
|
153
|
-
default: string;
|
|
154
|
-
strong: string;
|
|
155
|
-
subtle: string;
|
|
156
|
-
disabled: string;
|
|
157
|
-
negative: string;
|
|
158
|
-
warning: string;
|
|
159
|
-
success: string;
|
|
160
|
-
onBrandPrimary: string;
|
|
161
|
-
onBrandSecondary: string;
|
|
162
|
-
onBrandTertiary: string;
|
|
163
|
-
};
|
|
164
|
-
border: {
|
|
165
|
-
default: string;
|
|
166
|
-
defaultHover: string;
|
|
167
|
-
defaultSelected: string;
|
|
168
|
-
strong: string;
|
|
169
|
-
subtle: string;
|
|
170
|
-
negative: string;
|
|
171
|
-
warning: string;
|
|
172
|
-
success: string;
|
|
173
|
-
};
|
|
174
|
-
};
|
|
175
|
-
sizes: {
|
|
176
|
-
112: string;
|
|
177
|
-
128: string;
|
|
178
|
-
144: string;
|
|
179
|
-
160: string;
|
|
180
|
-
176: string;
|
|
181
|
-
192: string;
|
|
182
|
-
224: string;
|
|
183
|
-
256: string;
|
|
184
|
-
288: string;
|
|
185
|
-
320: string;
|
|
186
|
-
384: string;
|
|
187
|
-
448: string;
|
|
188
|
-
512: string;
|
|
189
|
-
576: string;
|
|
190
|
-
672: string;
|
|
191
|
-
768: string;
|
|
192
|
-
896: string;
|
|
193
|
-
1024: string;
|
|
194
|
-
'0x': string;
|
|
195
|
-
'1x': string;
|
|
196
|
-
'2x': string;
|
|
197
|
-
'3x': string;
|
|
198
|
-
'4x': string;
|
|
199
|
-
'5x': string;
|
|
200
|
-
'6x': string;
|
|
201
|
-
'8x': string;
|
|
202
|
-
'12x': string;
|
|
203
|
-
'16x': string;
|
|
204
|
-
'20x': string;
|
|
205
|
-
'24x': string;
|
|
206
|
-
};
|
|
207
|
-
radii: {
|
|
208
|
-
none: string;
|
|
209
|
-
'2xs': string;
|
|
210
|
-
xs: string;
|
|
211
|
-
sm: string;
|
|
212
|
-
md: string;
|
|
213
|
-
lg: string;
|
|
214
|
-
xl: string;
|
|
215
|
-
full: string;
|
|
216
|
-
}; /**
|
|
217
|
-
* The size of the icon.
|
|
218
|
-
*
|
|
219
|
-
* @default 16
|
|
220
|
-
*/
|
|
221
|
-
shadows: {
|
|
222
|
-
none: string;
|
|
223
|
-
sm: string;
|
|
224
|
-
md: string;
|
|
225
|
-
lg: string;
|
|
226
|
-
xl: string;
|
|
227
|
-
};
|
|
228
|
-
typography: {
|
|
229
|
-
display: {
|
|
230
|
-
'3xl': {
|
|
231
|
-
fontFamily: string;
|
|
232
|
-
fontWeight: string;
|
|
233
|
-
fontSize: string;
|
|
234
|
-
lineHeight: string;
|
|
235
|
-
letterSpacing: string;
|
|
236
|
-
fontFeatureSettings: string;
|
|
237
|
-
};
|
|
238
|
-
'2xl': {
|
|
239
|
-
fontFamily: string;
|
|
240
|
-
fontWeight: string;
|
|
241
|
-
fontSize: string;
|
|
242
|
-
lineHeight: string;
|
|
243
|
-
letterSpacing: string;
|
|
244
|
-
fontFeatureSettings: string;
|
|
245
|
-
};
|
|
246
|
-
xl: {
|
|
247
|
-
fontFamily: string;
|
|
248
|
-
fontWeight: string;
|
|
249
|
-
fontSize: string;
|
|
250
|
-
lineHeight: string;
|
|
251
|
-
letterSpacing: string;
|
|
252
|
-
fontFeatureSettings: string;
|
|
253
|
-
};
|
|
254
|
-
lg: {
|
|
255
|
-
fontFamily: string;
|
|
256
|
-
fontWeight: string;
|
|
257
|
-
fontSize: string;
|
|
258
|
-
lineHeight: string;
|
|
259
|
-
letterSpacing: string;
|
|
260
|
-
fontFeatureSettings: string;
|
|
261
|
-
};
|
|
262
|
-
md: {
|
|
263
|
-
fontFamily: string;
|
|
264
|
-
fontWeight: string;
|
|
265
|
-
fontSize: string;
|
|
266
|
-
lineHeight: string;
|
|
267
|
-
letterSpacing: string;
|
|
268
|
-
fontFeatureSettings: string;
|
|
269
|
-
};
|
|
270
|
-
sm: {
|
|
271
|
-
fontFamily: string;
|
|
272
|
-
fontWeight: string;
|
|
273
|
-
fontSize: string;
|
|
274
|
-
lineHeight: string;
|
|
275
|
-
letterSpacing: string;
|
|
276
|
-
fontFeatureSettings: string;
|
|
277
|
-
};
|
|
278
|
-
xs: {
|
|
279
|
-
fontFamily: string;
|
|
280
|
-
fontWeight: string;
|
|
281
|
-
fontSize: string;
|
|
282
|
-
lineHeight: string;
|
|
283
|
-
letterSpacing: string;
|
|
284
|
-
fontFeatureSettings: string;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
title: {
|
|
288
|
-
lg: {
|
|
289
|
-
fontFamily: string;
|
|
290
|
-
fontWeight: string;
|
|
291
|
-
fontSize: string;
|
|
292
|
-
lineHeight: string;
|
|
293
|
-
letterSpacing: string;
|
|
294
|
-
};
|
|
295
|
-
md: {
|
|
296
|
-
fontFamily: string;
|
|
297
|
-
fontWeight: string;
|
|
298
|
-
fontSize: string;
|
|
299
|
-
lineHeight: string;
|
|
300
|
-
letterSpacing: string;
|
|
301
|
-
};
|
|
302
|
-
sm: {
|
|
303
|
-
fontFamily: string;
|
|
304
|
-
fontWeight: string;
|
|
305
|
-
fontSize: string;
|
|
306
|
-
lineHeight: string;
|
|
307
|
-
letterSpacing: string;
|
|
308
|
-
};
|
|
309
|
-
xs: {
|
|
310
|
-
fontFamily: string;
|
|
311
|
-
fontWeight: string;
|
|
312
|
-
fontSize: string;
|
|
313
|
-
lineHeight: string;
|
|
314
|
-
letterSpacing: string;
|
|
315
|
-
};
|
|
316
|
-
'2xs': {
|
|
317
|
-
fontFamily: string;
|
|
318
|
-
fontWeight: string;
|
|
319
|
-
fontSize: string;
|
|
320
|
-
lineHeight: string;
|
|
321
|
-
letterSpacing: string;
|
|
322
|
-
};
|
|
323
|
-
'3xs': {
|
|
324
|
-
fontFamily: string;
|
|
325
|
-
fontWeight: string;
|
|
326
|
-
fontSize: string;
|
|
327
|
-
lineHeight: string;
|
|
328
|
-
letterSpacing: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
body: {
|
|
332
|
-
xl: {
|
|
333
|
-
fontFamily: string;
|
|
334
|
-
fontWeight: string;
|
|
335
|
-
fontSize: string;
|
|
336
|
-
lineHeight: string;
|
|
337
|
-
letterSpacing: string;
|
|
338
|
-
};
|
|
339
|
-
lg: {
|
|
340
|
-
fontFamily: string;
|
|
341
|
-
fontWeight: string;
|
|
342
|
-
fontSize: string;
|
|
343
|
-
lineHeight: string;
|
|
344
|
-
letterSpacing: string;
|
|
345
|
-
};
|
|
346
|
-
md: {
|
|
347
|
-
fontFamily: string;
|
|
348
|
-
fontWeight: string;
|
|
349
|
-
fontSize: string;
|
|
350
|
-
lineHeight: string;
|
|
351
|
-
letterSpacing: string;
|
|
352
|
-
};
|
|
353
|
-
sm: {
|
|
354
|
-
fontFamily: string;
|
|
355
|
-
fontWeight: string;
|
|
356
|
-
fontSize: string;
|
|
357
|
-
lineHeight: string;
|
|
358
|
-
letterSpacing: string;
|
|
359
|
-
};
|
|
360
|
-
xs: {
|
|
361
|
-
fontFamily: string;
|
|
362
|
-
fontWeight: string;
|
|
363
|
-
fontSize: string;
|
|
364
|
-
lineHeight: string;
|
|
365
|
-
letterSpacing: string;
|
|
366
|
-
};
|
|
367
|
-
};
|
|
368
|
-
label: {
|
|
369
|
-
md: {
|
|
370
|
-
fontFamily: string;
|
|
371
|
-
fontWeight: string;
|
|
372
|
-
fontSize: string;
|
|
373
|
-
lineHeight: string;
|
|
374
|
-
letterSpacing: string;
|
|
375
|
-
};
|
|
376
|
-
sm: {
|
|
377
|
-
fontFamily: string;
|
|
378
|
-
fontWeight: string;
|
|
379
|
-
fontSize: string;
|
|
380
|
-
lineHeight: string;
|
|
381
|
-
letterSpacing: string;
|
|
382
|
-
};
|
|
383
|
-
};
|
|
384
|
-
button: {
|
|
385
|
-
md: {
|
|
386
|
-
fontFamily: string;
|
|
387
|
-
fontWeight: string;
|
|
388
|
-
fontSize: string;
|
|
389
|
-
lineHeight: string;
|
|
390
|
-
letterSpacing: string;
|
|
391
|
-
};
|
|
392
|
-
sm: {
|
|
393
|
-
fontFamily: string;
|
|
394
|
-
fontWeight: string;
|
|
395
|
-
fontSize: string;
|
|
396
|
-
lineHeight: string;
|
|
397
|
-
letterSpacing: string;
|
|
398
|
-
};
|
|
399
|
-
};
|
|
400
|
-
caption: {
|
|
401
|
-
md: {
|
|
402
|
-
fontFamily: string;
|
|
403
|
-
fontWeight: string;
|
|
404
|
-
fontSize: string;
|
|
405
|
-
lineHeight: string;
|
|
406
|
-
letterSpacing: string;
|
|
407
|
-
};
|
|
408
|
-
sm: {
|
|
409
|
-
fontFamily: string;
|
|
410
|
-
fontWeight: string;
|
|
411
|
-
fontSize: string;
|
|
412
|
-
lineHeight: string;
|
|
413
|
-
letterSpacing: string;
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
}) => {
|
|
418
|
-
32: {
|
|
419
|
-
fontSize: string;
|
|
420
|
-
};
|
|
421
|
-
24: {
|
|
422
|
-
fontSize: string;
|
|
423
|
-
};
|
|
424
|
-
20: {
|
|
425
|
-
fontSize: string;
|
|
426
|
-
};
|
|
427
|
-
16: {
|
|
428
|
-
fontSize: string;
|
|
429
|
-
};
|
|
430
|
-
12: {
|
|
431
|
-
fontSize: string;
|
|
432
|
-
};
|
|
433
|
-
};
|
|
434
|
-
declare type IconSize = VariantProps<typeof getSizeStyles>;
|
|
435
|
-
declare type IconColor = keyof Theme['colors']['icon'] | 'inherit';
|
|
436
|
-
interface IconOptions {
|
|
437
|
-
/**
|
|
438
|
-
* The size of the icon.
|
|
439
|
-
*
|
|
440
|
-
* @default 16
|
|
441
|
-
*/
|
|
442
|
-
size?: IconSize;
|
|
443
|
-
/**
|
|
444
|
-
* The color of the icon.
|
|
445
|
-
*/
|
|
446
|
-
color?: IconColor;
|
|
447
|
-
}
|
|
448
|
-
declare type OmittedProps = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
|
|
449
|
-
export interface IconProps extends Omit<SVGAttributes<SVGElement>, OmittedProps>, IconOptions {
|
|
450
|
-
}
|
|
5
|
+
/// <reference types="react" />
|
|
6
|
+
import type { IconProps } from './icon.types';
|
|
451
7
|
export interface CreateIconOptions {
|
|
452
8
|
/**
|
|
453
9
|
* The `svg`'s `viewBox` attribute
|
|
@@ -479,5 +35,7 @@ export interface CreateIconOptions {
|
|
|
479
35
|
*/
|
|
480
36
|
displayName?: string;
|
|
481
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Helper function to create an icon component.
|
|
40
|
+
*/
|
|
482
41
|
export declare const createIcon: (options: CreateIconOptions) => import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
483
|
-
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { LucideIcon } from 'lucide-react';
|
|
3
|
+
import type { IconProps } from './icon.types';
|
|
4
|
+
export declare const createLucideIcon: (Icon: LucideIcon) => import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Theme } from '@emotion/react';
|
|
2
|
+
import type { SVGAttributes } from 'react';
|
|
3
|
+
declare type IconSize = 12 | 16 | 20 | 24 | 32;
|
|
4
|
+
declare type IconColor = keyof Theme['colors']['icon'] | 'currentColor';
|
|
5
|
+
export interface IconOptions {
|
|
6
|
+
/**
|
|
7
|
+
* The size of the icon.
|
|
8
|
+
*
|
|
9
|
+
* @default 16
|
|
10
|
+
*/
|
|
11
|
+
size?: IconSize;
|
|
12
|
+
/**
|
|
13
|
+
* The color of the icon.
|
|
14
|
+
*/
|
|
15
|
+
color?: IconColor;
|
|
16
|
+
}
|
|
17
|
+
declare type OmittedProps = 'color' | 'onClick' | 'width' | 'height' | 'fontSize';
|
|
18
|
+
export interface IconProps extends Omit<SVGAttributes<SVGElement>, OmittedProps>, IconOptions {
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const AlertCircleIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
3
|
+
export declare const AlertTriangleIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
4
|
+
export declare const ArrowDownIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
5
|
+
export declare const ArrowLeftIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
6
|
+
export declare const ArrowRightIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
7
|
+
export declare const ArrowUpIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
8
|
+
export declare const BellOffIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
9
|
+
export declare const BellIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
10
|
+
export declare const CalendarIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
11
|
+
export declare const CameraIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
12
|
+
export declare const CheckIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
13
|
+
export declare const ChevronDownIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
14
|
+
export declare const ChevronLeftIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
15
|
+
export declare const ChevronRightIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export declare const ChevronUpIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
17
|
+
export declare const GlobeIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
18
|
+
export declare const HeartFilledIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
19
|
+
export declare const HeartIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
20
|
+
export declare const HelpCircleIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
21
|
+
export declare const HomeIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
22
|
+
export declare const ImageIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
23
|
+
export declare const ListFilterIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
24
|
+
export declare const LogOutIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
25
|
+
export declare const MapPinIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
26
|
+
export declare const MapIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
27
|
+
export declare const MessageCircleIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
28
|
+
export declare const MinusIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
29
|
+
export declare const MoreHorizontalIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
30
|
+
export declare const MoreVerticalIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
31
|
+
export declare const PlusIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
32
|
+
export declare const SearchIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
33
|
+
export declare const SettingsIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
34
|
+
export declare const ShareIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
35
|
+
export declare const StarFilledIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
36
|
+
export declare const StarIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
37
|
+
export declare const TrashIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
38
|
+
export declare const UserIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|
|
39
|
+
export declare const XIcon: import("react").ForwardRefExoticComponent<import("./icon.types").IconProps & import("react").RefAttributes<SVGSVGElement>>;
|