@ogcio/design-system-react 1.28.0 → 1.30.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.
- package/README.md +11 -33
- package/dist/alert/variants.d.ts +78 -2
- package/dist/assets/logos/LogoBlack.d.ts +3 -0
- package/dist/assets/logos/LogoBlack.js +322 -0
- package/dist/assets/logos/LogoGoldGreen.d.ts +3 -0
- package/dist/assets/logos/LogoGoldGreen.js +322 -0
- package/dist/assets/logos/LogoGoldWhite.d.ts +3 -0
- package/dist/assets/logos/LogoGoldWhite.js +82 -0
- package/dist/assets/logos/LogoHarpBlack.d.ts +3 -0
- package/dist/assets/logos/{harp/harp-white.js → LogoHarpBlack.js} +24 -21
- package/dist/assets/logos/LogoHarpWhite.d.ts +3 -0
- package/dist/assets/logos/LogoHarpWhite.js +60 -0
- package/dist/assets/logos/LogoWhite.d.ts +3 -0
- package/dist/assets/logos/LogoWhite.js +322 -0
- package/dist/assets/logos/index.d.ts +6 -0
- package/dist/assets/logos/index.js +14 -0
- package/dist/atoms/DsButton.d.ts +194 -0
- package/dist/atoms/DsButton.js +329 -0
- package/dist/atoms/icons/Close.d.ts +3 -0
- package/dist/atoms/icons/Close.js +22 -0
- package/dist/atoms/icons/KeyboardArrowDown.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowDown.js +22 -0
- package/dist/atoms/icons/KeyboardArrowUp.d.ts +3 -0
- package/dist/atoms/icons/KeyboardArrowUp.js +22 -0
- package/dist/atoms/icons/Visibility.d.ts +3 -0
- package/dist/atoms/icons/Visibility.js +22 -0
- package/dist/atoms/icons/VisibilityOff.d.ts +3 -0
- package/dist/atoms/icons/VisibilityOff.js +22 -0
- package/dist/atoms/icons/index.d.ts +6 -0
- package/dist/atoms/icons/index.js +12 -0
- package/dist/atoms/icons/types.d.ts +10 -0
- package/dist/atoms/icons/types.js +1 -0
- package/dist/atoms/index.d.ts +2 -0
- package/dist/atoms/index.js +14 -0
- package/dist/autocomplete/autocomplete.js +131 -115
- package/dist/combo-box/dropdown-item.js +39 -40
- package/dist/data-table/data-table-footer.js +57 -51
- package/dist/data-table/data-table-header.d.ts +7 -7
- package/dist/data-table/data-table-header.js +97 -110
- package/dist/data-table/data-table-selected-rows.d.ts +1 -0
- package/dist/data-table/data-table-selected-rows.js +15 -19
- package/dist/footer/footer.js +9 -9
- package/dist/forms/form-field/form-field.d.ts +2 -2
- package/dist/forms/form-field/form-field.js +40 -30
- package/dist/forms/form-field/types.d.ts +10 -3
- package/dist/header/components/header-slot.js +33 -32
- package/dist/header/header-legacy.js +41 -41
- package/dist/header/variants.d.ts +220 -20
- package/dist/heading/heading.d.ts +70 -2
- package/dist/hooks/use-breakpoint.js +15 -12
- package/dist/icon/icon.d.ts +10 -0
- package/dist/icon/icon.js +64 -52
- package/dist/icon/icons.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +174 -171
- package/dist/input-password/input-password.js +13 -12
- package/dist/input-text/input-text.js +18 -16
- package/dist/label/label.d.ts +43 -0
- package/dist/label/label.js +7 -6
- package/dist/modal/modal.js +8 -7
- package/dist/spinner/spinner.d.ts +30 -2
- package/dist/styles.css +12 -2
- package/dist/table/table.d.ts +22 -2
- package/dist/tabs/tab-item.d.ts +2 -2
- package/dist/text-input/text-input.d.ts +1 -1
- package/dist/textarea/textarea.js +27 -28
- package/dist/toast/ds-toast.d.ts +78 -2
- package/dist/utils/placeholder.d.ts +2 -0
- package/dist/utils/placeholder.js +24 -0
- package/fonts.css +10 -0
- package/package.json +21 -8
- package/dist/assets/logos/gov-of-ireland/harp-black.d.ts +0 -2
- package/dist/assets/logos/gov-of-ireland/harp-black.js +0 -322
- package/dist/assets/logos/gov-of-ireland/harp-gold-text-green.d.ts +0 -2
- package/dist/assets/logos/gov-of-ireland/harp-gold-text-green.js +0 -322
- package/dist/assets/logos/gov-of-ireland/harp-white.d.ts +0 -2
- package/dist/assets/logos/gov-of-ireland/harp-white.js +0 -322
- package/dist/assets/logos/harp/harp-black.d.ts +0 -2
- package/dist/assets/logos/harp/harp-black.js +0 -63
- package/dist/assets/logos/harp/harp-white.d.ts +0 -2
|
@@ -3,7 +3,17 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
3
3
|
default: string;
|
|
4
4
|
light: string;
|
|
5
5
|
};
|
|
6
|
-
}, undefined, "gi-header", TVConfig<
|
|
6
|
+
}, undefined, "gi-header", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
7
|
+
appearance: {
|
|
8
|
+
default: string;
|
|
9
|
+
light: string;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
appearance: {
|
|
13
|
+
default: string;
|
|
14
|
+
light: string;
|
|
15
|
+
};
|
|
16
|
+
}>, {
|
|
7
17
|
appearance: {
|
|
8
18
|
default: string;
|
|
9
19
|
light: string;
|
|
@@ -13,13 +23,33 @@ export declare const headerVariants: import('tailwind-variants').TVReturnType<{
|
|
|
13
23
|
default: string;
|
|
14
24
|
light: string;
|
|
15
25
|
};
|
|
16
|
-
}, undefined, "gi-header", TVConfig<
|
|
26
|
+
}, undefined, "gi-header", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
27
|
+
appearance: {
|
|
28
|
+
default: string;
|
|
29
|
+
light: string;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
appearance: {
|
|
33
|
+
default: string;
|
|
34
|
+
light: string;
|
|
35
|
+
};
|
|
36
|
+
}>, unknown, unknown, undefined>>;
|
|
17
37
|
export declare const headerMenuVariants: import('tailwind-variants').TVReturnType<{
|
|
18
38
|
appearance: {
|
|
19
39
|
default: string;
|
|
20
40
|
light: string;
|
|
21
41
|
};
|
|
22
|
-
}, undefined, "gi-header-menu", TVConfig<
|
|
42
|
+
}, undefined, "gi-header-menu", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
43
|
+
appearance: {
|
|
44
|
+
default: string;
|
|
45
|
+
light: string;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
appearance: {
|
|
49
|
+
default: string;
|
|
50
|
+
light: string;
|
|
51
|
+
};
|
|
52
|
+
}>, {
|
|
23
53
|
appearance: {
|
|
24
54
|
default: string;
|
|
25
55
|
light: string;
|
|
@@ -29,13 +59,33 @@ export declare const headerMenuVariants: import('tailwind-variants').TVReturnTyp
|
|
|
29
59
|
default: string;
|
|
30
60
|
light: string;
|
|
31
61
|
};
|
|
32
|
-
}, undefined, "gi-header-menu", TVConfig<
|
|
62
|
+
}, undefined, "gi-header-menu", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
63
|
+
appearance: {
|
|
64
|
+
default: string;
|
|
65
|
+
light: string;
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
appearance: {
|
|
69
|
+
default: string;
|
|
70
|
+
light: string;
|
|
71
|
+
};
|
|
72
|
+
}>, unknown, unknown, undefined>>;
|
|
33
73
|
export declare const headerToolItemVariants: import('tailwind-variants').TVReturnType<{
|
|
34
74
|
appearance: {
|
|
35
75
|
default: string;
|
|
36
76
|
light: string;
|
|
37
77
|
};
|
|
38
|
-
}, undefined, "gi-header-tool-item", TVConfig<
|
|
78
|
+
}, undefined, "gi-header-tool-item", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
79
|
+
appearance: {
|
|
80
|
+
default: string;
|
|
81
|
+
light: string;
|
|
82
|
+
};
|
|
83
|
+
}, {
|
|
84
|
+
appearance: {
|
|
85
|
+
default: string;
|
|
86
|
+
light: string;
|
|
87
|
+
};
|
|
88
|
+
}>, {
|
|
39
89
|
appearance: {
|
|
40
90
|
default: string;
|
|
41
91
|
light: string;
|
|
@@ -45,13 +95,33 @@ export declare const headerToolItemVariants: import('tailwind-variants').TVRetur
|
|
|
45
95
|
default: string;
|
|
46
96
|
light: string;
|
|
47
97
|
};
|
|
48
|
-
}, undefined, "gi-header-tool-item", TVConfig<
|
|
98
|
+
}, undefined, "gi-header-tool-item", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
99
|
+
appearance: {
|
|
100
|
+
default: string;
|
|
101
|
+
light: string;
|
|
102
|
+
};
|
|
103
|
+
}, {
|
|
104
|
+
appearance: {
|
|
105
|
+
default: string;
|
|
106
|
+
light: string;
|
|
107
|
+
};
|
|
108
|
+
}>, unknown, unknown, undefined>>;
|
|
49
109
|
export declare const headerSecondaryLinksVariants: import('tailwind-variants').TVReturnType<{
|
|
50
110
|
appearance: {
|
|
51
111
|
default: string;
|
|
52
112
|
light: string;
|
|
53
113
|
};
|
|
54
|
-
}, undefined, "gi-header-secondary-bar gi-order-1", TVConfig<
|
|
114
|
+
}, undefined, "gi-header-secondary-bar gi-order-1", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
115
|
+
appearance: {
|
|
116
|
+
default: string;
|
|
117
|
+
light: string;
|
|
118
|
+
};
|
|
119
|
+
}, {
|
|
120
|
+
appearance: {
|
|
121
|
+
default: string;
|
|
122
|
+
light: string;
|
|
123
|
+
};
|
|
124
|
+
}>, {
|
|
55
125
|
appearance: {
|
|
56
126
|
default: string;
|
|
57
127
|
light: string;
|
|
@@ -61,13 +131,33 @@ export declare const headerSecondaryLinksVariants: import('tailwind-variants').T
|
|
|
61
131
|
default: string;
|
|
62
132
|
light: string;
|
|
63
133
|
};
|
|
64
|
-
}, undefined, "gi-header-secondary-bar gi-order-1", TVConfig<
|
|
134
|
+
}, undefined, "gi-header-secondary-bar gi-order-1", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
135
|
+
appearance: {
|
|
136
|
+
default: string;
|
|
137
|
+
light: string;
|
|
138
|
+
};
|
|
139
|
+
}, {
|
|
140
|
+
appearance: {
|
|
141
|
+
default: string;
|
|
142
|
+
light: string;
|
|
143
|
+
};
|
|
144
|
+
}>, unknown, unknown, undefined>>;
|
|
65
145
|
export declare const headerSecondaryLinkItemVariants: import('tailwind-variants').TVReturnType<{
|
|
66
146
|
appearance: {
|
|
67
147
|
default: string;
|
|
68
148
|
light: string;
|
|
69
149
|
};
|
|
70
|
-
}, undefined, "gi-header-secondary-item", TVConfig<
|
|
150
|
+
}, undefined, "gi-header-secondary-item", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
151
|
+
appearance: {
|
|
152
|
+
default: string;
|
|
153
|
+
light: string;
|
|
154
|
+
};
|
|
155
|
+
}, {
|
|
156
|
+
appearance: {
|
|
157
|
+
default: string;
|
|
158
|
+
light: string;
|
|
159
|
+
};
|
|
160
|
+
}>, {
|
|
71
161
|
appearance: {
|
|
72
162
|
default: string;
|
|
73
163
|
light: string;
|
|
@@ -77,13 +167,33 @@ export declare const headerSecondaryLinkItemVariants: import('tailwind-variants'
|
|
|
77
167
|
default: string;
|
|
78
168
|
light: string;
|
|
79
169
|
};
|
|
80
|
-
}, undefined, "gi-header-secondary-item", TVConfig<
|
|
170
|
+
}, undefined, "gi-header-secondary-item", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
171
|
+
appearance: {
|
|
172
|
+
default: string;
|
|
173
|
+
light: string;
|
|
174
|
+
};
|
|
175
|
+
}, {
|
|
176
|
+
appearance: {
|
|
177
|
+
default: string;
|
|
178
|
+
light: string;
|
|
179
|
+
};
|
|
180
|
+
}>, unknown, unknown, undefined>>;
|
|
81
181
|
export declare const headerSecondaryLinkSlotItemVariants: import('tailwind-variants').TVReturnType<{
|
|
82
182
|
appearance: {
|
|
83
183
|
default: string;
|
|
84
184
|
light: string;
|
|
85
185
|
};
|
|
86
|
-
}, undefined, "gi-header-secondary-item-slot", TVConfig<
|
|
186
|
+
}, undefined, "gi-header-secondary-item-slot", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
187
|
+
appearance: {
|
|
188
|
+
default: string;
|
|
189
|
+
light: string;
|
|
190
|
+
};
|
|
191
|
+
}, {
|
|
192
|
+
appearance: {
|
|
193
|
+
default: string;
|
|
194
|
+
light: string;
|
|
195
|
+
};
|
|
196
|
+
}>, {
|
|
87
197
|
appearance: {
|
|
88
198
|
default: string;
|
|
89
199
|
light: string;
|
|
@@ -93,13 +203,33 @@ export declare const headerSecondaryLinkSlotItemVariants: import('tailwind-varia
|
|
|
93
203
|
default: string;
|
|
94
204
|
light: string;
|
|
95
205
|
};
|
|
96
|
-
}, undefined, "gi-header-secondary-item-slot", TVConfig<
|
|
206
|
+
}, undefined, "gi-header-secondary-item-slot", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
207
|
+
appearance: {
|
|
208
|
+
default: string;
|
|
209
|
+
light: string;
|
|
210
|
+
};
|
|
211
|
+
}, {
|
|
212
|
+
appearance: {
|
|
213
|
+
default: string;
|
|
214
|
+
light: string;
|
|
215
|
+
};
|
|
216
|
+
}>, unknown, unknown, undefined>>;
|
|
97
217
|
export declare const headerTitleVariants: import('tailwind-variants').TVReturnType<{
|
|
98
218
|
appearance: {
|
|
99
219
|
default: string;
|
|
100
220
|
light: string;
|
|
101
221
|
};
|
|
102
|
-
}, undefined, "gi-header-title", TVConfig<
|
|
222
|
+
}, undefined, "gi-header-title", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
223
|
+
appearance: {
|
|
224
|
+
default: string;
|
|
225
|
+
light: string;
|
|
226
|
+
};
|
|
227
|
+
}, {
|
|
228
|
+
appearance: {
|
|
229
|
+
default: string;
|
|
230
|
+
light: string;
|
|
231
|
+
};
|
|
232
|
+
}>, {
|
|
103
233
|
appearance: {
|
|
104
234
|
default: string;
|
|
105
235
|
light: string;
|
|
@@ -109,13 +239,33 @@ export declare const headerTitleVariants: import('tailwind-variants').TVReturnTy
|
|
|
109
239
|
default: string;
|
|
110
240
|
light: string;
|
|
111
241
|
};
|
|
112
|
-
}, undefined, "gi-header-title", TVConfig<
|
|
242
|
+
}, undefined, "gi-header-title", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
243
|
+
appearance: {
|
|
244
|
+
default: string;
|
|
245
|
+
light: string;
|
|
246
|
+
};
|
|
247
|
+
}, {
|
|
248
|
+
appearance: {
|
|
249
|
+
default: string;
|
|
250
|
+
light: string;
|
|
251
|
+
};
|
|
252
|
+
}>, unknown, unknown, undefined>>;
|
|
113
253
|
export declare const headerDividerVariants: import('tailwind-variants').TVReturnType<{
|
|
114
254
|
appearance: {
|
|
115
255
|
default: string;
|
|
116
256
|
light: string;
|
|
117
257
|
};
|
|
118
|
-
}, undefined, "gi-header-divider", TVConfig<
|
|
258
|
+
}, undefined, "gi-header-divider", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
259
|
+
appearance: {
|
|
260
|
+
default: string;
|
|
261
|
+
light: string;
|
|
262
|
+
};
|
|
263
|
+
}, {
|
|
264
|
+
appearance: {
|
|
265
|
+
default: string;
|
|
266
|
+
light: string;
|
|
267
|
+
};
|
|
268
|
+
}>, {
|
|
119
269
|
appearance: {
|
|
120
270
|
default: string;
|
|
121
271
|
light: string;
|
|
@@ -125,13 +275,33 @@ export declare const headerDividerVariants: import('tailwind-variants').TVReturn
|
|
|
125
275
|
default: string;
|
|
126
276
|
light: string;
|
|
127
277
|
};
|
|
128
|
-
}, undefined, "gi-header-divider", TVConfig<
|
|
278
|
+
}, undefined, "gi-header-divider", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
279
|
+
appearance: {
|
|
280
|
+
default: string;
|
|
281
|
+
light: string;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
appearance: {
|
|
285
|
+
default: string;
|
|
286
|
+
light: string;
|
|
287
|
+
};
|
|
288
|
+
}>, unknown, unknown, undefined>>;
|
|
129
289
|
export declare const headerSlotContainerVariants: import('tailwind-variants').TVReturnType<{
|
|
130
290
|
appearance: {
|
|
131
291
|
default: string;
|
|
132
292
|
light: string;
|
|
133
293
|
};
|
|
134
|
-
}, undefined, "gi-header-slot-container", TVConfig<
|
|
294
|
+
}, undefined, "gi-header-slot-container", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
295
|
+
appearance: {
|
|
296
|
+
default: string;
|
|
297
|
+
light: string;
|
|
298
|
+
};
|
|
299
|
+
}, {
|
|
300
|
+
appearance: {
|
|
301
|
+
default: string;
|
|
302
|
+
light: string;
|
|
303
|
+
};
|
|
304
|
+
}>, {
|
|
135
305
|
appearance: {
|
|
136
306
|
default: string;
|
|
137
307
|
light: string;
|
|
@@ -141,13 +311,33 @@ export declare const headerSlotContainerVariants: import('tailwind-variants').TV
|
|
|
141
311
|
default: string;
|
|
142
312
|
light: string;
|
|
143
313
|
};
|
|
144
|
-
}, undefined, "gi-header-slot-container", TVConfig<
|
|
314
|
+
}, undefined, "gi-header-slot-container", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
315
|
+
appearance: {
|
|
316
|
+
default: string;
|
|
317
|
+
light: string;
|
|
318
|
+
};
|
|
319
|
+
}, {
|
|
320
|
+
appearance: {
|
|
321
|
+
default: string;
|
|
322
|
+
light: string;
|
|
323
|
+
};
|
|
324
|
+
}>, unknown, unknown, undefined>>;
|
|
145
325
|
export declare const headerLogoVariants: import('tailwind-variants').TVReturnType<{
|
|
146
326
|
appearance: {
|
|
147
327
|
default: string;
|
|
148
328
|
light: string;
|
|
149
329
|
};
|
|
150
|
-
}, undefined, "gi-header-logo", TVConfig<
|
|
330
|
+
}, undefined, "gi-header-logo", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
331
|
+
appearance: {
|
|
332
|
+
default: string;
|
|
333
|
+
light: string;
|
|
334
|
+
};
|
|
335
|
+
}, {
|
|
336
|
+
appearance: {
|
|
337
|
+
default: string;
|
|
338
|
+
light: string;
|
|
339
|
+
};
|
|
340
|
+
}>, {
|
|
151
341
|
appearance: {
|
|
152
342
|
default: string;
|
|
153
343
|
light: string;
|
|
@@ -157,4 +347,14 @@ export declare const headerLogoVariants: import('tailwind-variants').TVReturnTyp
|
|
|
157
347
|
default: string;
|
|
158
348
|
light: string;
|
|
159
349
|
};
|
|
160
|
-
}, undefined, "gi-header-logo", TVConfig<
|
|
350
|
+
}, undefined, "gi-header-logo", import('tailwind-variants/dist/config.js').TVConfig<{
|
|
351
|
+
appearance: {
|
|
352
|
+
default: string;
|
|
353
|
+
light: string;
|
|
354
|
+
};
|
|
355
|
+
}, {
|
|
356
|
+
appearance: {
|
|
357
|
+
default: string;
|
|
358
|
+
light: string;
|
|
359
|
+
};
|
|
360
|
+
}>, unknown, unknown, undefined>>;
|
|
@@ -35,7 +35,41 @@ export declare const headingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
35
35
|
}, {
|
|
36
36
|
text: string;
|
|
37
37
|
base: string;
|
|
38
|
-
}, undefined, TVConfig<
|
|
38
|
+
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
39
|
+
size: {
|
|
40
|
+
xl: string;
|
|
41
|
+
lg: string;
|
|
42
|
+
md: string;
|
|
43
|
+
sm: string;
|
|
44
|
+
xs: string;
|
|
45
|
+
'2xs': string;
|
|
46
|
+
};
|
|
47
|
+
as: {
|
|
48
|
+
h1: string;
|
|
49
|
+
h2: string;
|
|
50
|
+
h3: string;
|
|
51
|
+
h4: string;
|
|
52
|
+
h5: string;
|
|
53
|
+
h6: string;
|
|
54
|
+
};
|
|
55
|
+
}, {
|
|
56
|
+
size: {
|
|
57
|
+
xl: string;
|
|
58
|
+
lg: string;
|
|
59
|
+
md: string;
|
|
60
|
+
sm: string;
|
|
61
|
+
xs: string;
|
|
62
|
+
'2xs': string;
|
|
63
|
+
};
|
|
64
|
+
as: {
|
|
65
|
+
h1: string;
|
|
66
|
+
h2: string;
|
|
67
|
+
h3: string;
|
|
68
|
+
h4: string;
|
|
69
|
+
h5: string;
|
|
70
|
+
h6: string;
|
|
71
|
+
};
|
|
72
|
+
}>, {
|
|
39
73
|
size: {
|
|
40
74
|
xl: string;
|
|
41
75
|
lg: string;
|
|
@@ -75,7 +109,41 @@ export declare const headingVariants: import('tailwind-variants').TVReturnType<{
|
|
|
75
109
|
}, {
|
|
76
110
|
text: string;
|
|
77
111
|
base: string;
|
|
78
|
-
}, undefined, TVConfig<
|
|
112
|
+
}, undefined, import('tailwind-variants/dist/config.js').TVConfig<{
|
|
113
|
+
size: {
|
|
114
|
+
xl: string;
|
|
115
|
+
lg: string;
|
|
116
|
+
md: string;
|
|
117
|
+
sm: string;
|
|
118
|
+
xs: string;
|
|
119
|
+
'2xs': string;
|
|
120
|
+
};
|
|
121
|
+
as: {
|
|
122
|
+
h1: string;
|
|
123
|
+
h2: string;
|
|
124
|
+
h3: string;
|
|
125
|
+
h4: string;
|
|
126
|
+
h5: string;
|
|
127
|
+
h6: string;
|
|
128
|
+
};
|
|
129
|
+
}, {
|
|
130
|
+
size: {
|
|
131
|
+
xl: string;
|
|
132
|
+
lg: string;
|
|
133
|
+
md: string;
|
|
134
|
+
sm: string;
|
|
135
|
+
xs: string;
|
|
136
|
+
'2xs': string;
|
|
137
|
+
};
|
|
138
|
+
as: {
|
|
139
|
+
h1: string;
|
|
140
|
+
h2: string;
|
|
141
|
+
h3: string;
|
|
142
|
+
h4: string;
|
|
143
|
+
h5: string;
|
|
144
|
+
h6: string;
|
|
145
|
+
};
|
|
146
|
+
}>, unknown, unknown, undefined>>;
|
|
79
147
|
export type HeadingProps = VariantProps<typeof headingVariants> & {
|
|
80
148
|
caption?: string;
|
|
81
149
|
} & React.HTMLAttributes<HTMLHeadingElement>;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState as i, useEffect as
|
|
3
|
-
const
|
|
2
|
+
import { useState as i, useEffect as s } from "react";
|
|
3
|
+
const t = {
|
|
4
4
|
ExtraSmall: "xs",
|
|
5
5
|
Small: "sm",
|
|
6
6
|
Medium: "md",
|
|
7
7
|
Large: "lg",
|
|
8
8
|
ExtraLarge: "xl"
|
|
9
|
-
}, u = (e) => e < 480 ?
|
|
10
|
-
const [e,
|
|
11
|
-
return
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
|
|
9
|
+
}, u = (e) => e < 480 ? t.ExtraSmall : e < 640 ? t.Small : e < 768 ? t.Medium : e < 1024 ? t.Large : t.ExtraLarge, c = () => {
|
|
10
|
+
const [e, l] = i(null), [a, o] = i(null);
|
|
11
|
+
return s(() => {
|
|
12
|
+
const n = () => {
|
|
13
|
+
const r = Math.min(
|
|
14
|
+
globalThis.document.documentElement.clientWidth,
|
|
15
|
+
globalThis.window.innerWidth
|
|
16
|
+
);
|
|
17
|
+
o(r), l(u(r));
|
|
15
18
|
};
|
|
16
|
-
return
|
|
17
|
-
globalThis.window.removeEventListener("resize",
|
|
19
|
+
return n(), globalThis.window.addEventListener("resize", n), () => {
|
|
20
|
+
globalThis.window.removeEventListener("resize", n);
|
|
18
21
|
};
|
|
19
|
-
}, []), { breakpoint: e, width:
|
|
22
|
+
}, []), { breakpoint: e, width: a };
|
|
20
23
|
};
|
|
21
24
|
export {
|
|
22
|
-
|
|
25
|
+
t as Breakpoint,
|
|
23
26
|
c as useBreakpoint
|
|
24
27
|
};
|
package/dist/icon/icon.d.ts
CHANGED
|
@@ -12,6 +12,11 @@ export type IconProps = {
|
|
|
12
12
|
inline?: boolean;
|
|
13
13
|
className?: string;
|
|
14
14
|
onClick?: MouseEventHandler<HTMLSpanElement>;
|
|
15
|
+
/**
|
|
16
|
+
* Use font icon instead of svg
|
|
17
|
+
* Used as a fallback for consistency during Mitosis migration.
|
|
18
|
+
*/
|
|
19
|
+
useFontIcon?: boolean;
|
|
15
20
|
} & Omit<ComponentPropsWithoutRef<'span'>, 'children'>;
|
|
16
21
|
export declare const Icon: import('react').ForwardRefExoticComponent<{
|
|
17
22
|
icon: IconId;
|
|
@@ -23,5 +28,10 @@ export declare const Icon: import('react').ForwardRefExoticComponent<{
|
|
|
23
28
|
inline?: boolean;
|
|
24
29
|
className?: string;
|
|
25
30
|
onClick?: MouseEventHandler<HTMLSpanElement>;
|
|
31
|
+
/**
|
|
32
|
+
* Use font icon instead of svg
|
|
33
|
+
* Used as a fallback for consistency during Mitosis migration.
|
|
34
|
+
*/
|
|
35
|
+
useFontIcon?: boolean;
|
|
26
36
|
} & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "children"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
27
37
|
export default Icon;
|
package/dist/icon/icon.js
CHANGED
|
@@ -1,86 +1,98 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as u } from "react";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
4
|
+
import x from "../atoms/icons/KeyboardArrowDown.js";
|
|
5
|
+
import h from "../atoms/icons/KeyboardArrowUp.js";
|
|
6
|
+
import w from "../atoms/icons/Close.js";
|
|
7
|
+
import I from "../atoms/icons/Visibility.js";
|
|
8
|
+
import S from "../atoms/icons/VisibilityOff.js";
|
|
9
|
+
import { cn as l } from "../cn.js";
|
|
10
|
+
import v from "./svgs/bluesky.js";
|
|
11
|
+
import A from "./svgs/facebook.js";
|
|
12
|
+
import R from "./svgs/instagram.js";
|
|
13
|
+
import z from "./svgs/linkedin.js";
|
|
14
|
+
import T from "./svgs/placeholder.js";
|
|
15
|
+
import V from "./svgs/threads.js";
|
|
16
|
+
import D from "./svgs/tiktok.js";
|
|
17
|
+
import E from "./svgs/x.js";
|
|
18
|
+
import F from "./svgs/youtube.js";
|
|
14
19
|
const d = {
|
|
15
20
|
sm: "16px",
|
|
16
21
|
md: "24px",
|
|
17
22
|
lg: "32px",
|
|
18
23
|
xl: "48px"
|
|
19
|
-
},
|
|
20
|
-
social_bluesky: { Component:
|
|
21
|
-
social_facebook: { Component:
|
|
24
|
+
}, G = {
|
|
25
|
+
social_bluesky: { Component: v, disabledClass: "gi-stroke-gray-700" },
|
|
26
|
+
social_facebook: { Component: A, disabledClass: "gi-stroke-gray-700" },
|
|
22
27
|
social_instagram: {
|
|
23
|
-
Component:
|
|
28
|
+
Component: R,
|
|
24
29
|
disabledClass: "gi-stroke-gray-700"
|
|
25
30
|
},
|
|
26
|
-
social_linkedin: { Component:
|
|
27
|
-
social_threads: { Component:
|
|
28
|
-
social_tiktok: { Component:
|
|
29
|
-
social_x: { Component:
|
|
30
|
-
social_youtube: { Component:
|
|
31
|
-
placeholder: { Component:
|
|
32
|
-
|
|
31
|
+
social_linkedin: { Component: z, disabledClass: "gi-stroke-gray-700" },
|
|
32
|
+
social_threads: { Component: V, disabledClass: "gi-stroke-gray-700" },
|
|
33
|
+
social_tiktok: { Component: D, disabledClass: "gi-stroke-gray-700" },
|
|
34
|
+
social_x: { Component: E, disabledClass: "gi-stroke-gray-700" },
|
|
35
|
+
social_youtube: { Component: F, disabledClass: "gi-stroke-gray-700" },
|
|
36
|
+
placeholder: { Component: T },
|
|
37
|
+
keyboard_arrow_down: { Component: x },
|
|
38
|
+
keyboard_arrow_up: { Component: h },
|
|
39
|
+
close: { Component: w },
|
|
40
|
+
visibility: { Component: I },
|
|
41
|
+
visibility_off: { Component: S }
|
|
42
|
+
}, W = u(
|
|
33
43
|
({
|
|
34
|
-
icon:
|
|
44
|
+
icon: r,
|
|
35
45
|
size: g = "md",
|
|
36
|
-
filled:
|
|
37
|
-
disabled:
|
|
38
|
-
ariaHidden:
|
|
39
|
-
ariaLabel:
|
|
46
|
+
filled: p,
|
|
47
|
+
disabled: s,
|
|
48
|
+
ariaHidden: c,
|
|
49
|
+
ariaLabel: e,
|
|
40
50
|
inline: o,
|
|
41
|
-
className:
|
|
42
|
-
onClick:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
51
|
+
className: a,
|
|
52
|
+
onClick: f,
|
|
53
|
+
useFontIcon: C,
|
|
54
|
+
...i
|
|
55
|
+
}, b) => {
|
|
56
|
+
const t = d[g] ?? d.md, n = G[String(r)];
|
|
57
|
+
if (n && !C) {
|
|
58
|
+
const { Component: k, disabledClass: y } = n, _ = l(
|
|
48
59
|
{ "gi-block": !o, "gi-inline-block": o },
|
|
49
|
-
|
|
50
|
-
|
|
60
|
+
"gi-shrink-0",
|
|
61
|
+
s && (y || "gi-fill-gray-700"),
|
|
62
|
+
a
|
|
51
63
|
);
|
|
52
|
-
return /* @__PURE__ */
|
|
64
|
+
return /* @__PURE__ */ m(k, { size: t, className: _ });
|
|
53
65
|
}
|
|
54
|
-
return /* @__PURE__ */
|
|
66
|
+
return /* @__PURE__ */ m(
|
|
55
67
|
"span",
|
|
56
68
|
{
|
|
57
|
-
"aria-hidden":
|
|
58
|
-
"aria-label":
|
|
69
|
+
"aria-hidden": c,
|
|
70
|
+
"aria-label": e,
|
|
59
71
|
"data-testid": "govie-icon",
|
|
60
|
-
...
|
|
61
|
-
ref:
|
|
62
|
-
onClick:
|
|
63
|
-
role:
|
|
64
|
-
className:
|
|
72
|
+
...i,
|
|
73
|
+
ref: b,
|
|
74
|
+
onClick: f,
|
|
75
|
+
role: e ? "img" : "presentation",
|
|
76
|
+
className: l(
|
|
65
77
|
{
|
|
66
78
|
"gi-block": !o,
|
|
67
79
|
"gi-inline-block": o,
|
|
68
|
-
"gi-text-gray-700":
|
|
80
|
+
"gi-text-gray-700": s
|
|
69
81
|
},
|
|
70
82
|
"material-symbols-outlined",
|
|
71
|
-
|
|
83
|
+
a
|
|
72
84
|
),
|
|
73
85
|
style: {
|
|
74
86
|
fontSize: t,
|
|
75
|
-
fontVariationSettings: `'FILL' ${
|
|
76
|
-
...
|
|
87
|
+
fontVariationSettings: `'FILL' ${p ? 1 : 0}, 'wght' 400, 'GRAD' 0, 'opsz' ${t}`,
|
|
88
|
+
...i == null ? void 0 : i.style
|
|
77
89
|
},
|
|
78
|
-
children:
|
|
90
|
+
children: r
|
|
79
91
|
}
|
|
80
92
|
);
|
|
81
93
|
}
|
|
82
94
|
);
|
|
83
95
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
W as Icon,
|
|
97
|
+
W as default
|
|
86
98
|
};
|
package/dist/icon/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const iconIds: readonly ["accessibility_new", "add_circle", "apps", "arrow_back", "arrow_downward", "arrow_drop_down", "arrow_drop_up", "arrow_forward", "arrow_left_alt", "arrow_outward", "arrow_right_alt", "arrow_upward", "attach_file", "block", "call", "cancel", "candlestick_chart", "chat_bubble", "check", "check_circle", "chevron_left", "chevron_right", "child_care", "close", "content_copy", "credit_card", "delete", "directions_car", "do_not_disturb_on", "download", "edit", "error", "event", "filter_list", "health_and_safety", "home", "info", "keyboard_arrow_down", "keyboard_arrow_up", "link", "location_on", "login", "logout", "mail", "menu", "mic", "more_horiz", "more_vert", "open_in_new", "person", "person_cancel", "person_check", "refresh", "search", "send", "settings", "sort", "space_dashboard", "sync", "swap_vert", "thumb_down", "thumb_up", "unfold_more", "upload", "visibility", "visibility_off", "warning", "work", "social_bluesky", "social_facebook", "social_instagram", "social_linkedin", "social_threads", "social_tiktok", "social_x", "social_youtube", "placeholder", "first_page", "last_page"];
|
|
2
|
-
export declare const Icons: ("accessibility_new" | "add_circle" | "apps" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_left_alt" | "arrow_outward" | "arrow_right_alt" | "arrow_upward" | "attach_file" | "block" | "call" | "cancel" | "candlestick_chart" | "chat_bubble" | "check" | "check_circle" | "chevron_left" | "chevron_right" | "child_care" | "
|
|
2
|
+
export declare const Icons: ("search" | "link" | "sort" | "menu" | "keyboard_arrow_down" | "keyboard_arrow_up" | "close" | "visibility" | "accessibility_new" | "add_circle" | "apps" | "arrow_back" | "arrow_downward" | "arrow_drop_down" | "arrow_drop_up" | "arrow_forward" | "arrow_left_alt" | "arrow_outward" | "arrow_right_alt" | "arrow_upward" | "attach_file" | "block" | "call" | "cancel" | "candlestick_chart" | "chat_bubble" | "check" | "check_circle" | "chevron_left" | "chevron_right" | "child_care" | "content_copy" | "credit_card" | "delete" | "directions_car" | "do_not_disturb_on" | "download" | "edit" | "error" | "event" | "filter_list" | "health_and_safety" | "home" | "info" | "location_on" | "login" | "logout" | "mail" | "mic" | "more_horiz" | "more_vert" | "open_in_new" | "person" | "person_cancel" | "person_check" | "refresh" | "send" | "settings" | "space_dashboard" | "sync" | "swap_vert" | "thumb_down" | "thumb_up" | "unfold_more" | "upload" | "visibility_off" | "warning" | "work" | "social_bluesky" | "social_facebook" | "social_instagram" | "social_linkedin" | "social_threads" | "social_tiktok" | "social_x" | "social_youtube" | "placeholder" | "first_page" | "last_page")[];
|
package/dist/index.d.ts
CHANGED