@florid-kit/components 2.6.17 → 3.0.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/assets/icons/icons-occ.d.ts +315 -0
- package/assets/icons/icons.d.ts +12 -84
- package/assets/icons/svg-utils.d.ts +13 -0
- package/behaviors/performance-mixin.d.ts +0 -23
- package/behaviors/performance-reporter.d.ts +1 -0
- package/components/accordion-group.mjs +61 -0
- package/components/accordion.mjs +185 -0
- package/components/arch-image.mjs +135 -0
- package/components/badge.mjs +75 -0
- package/components/breadcrumb.mjs +83 -0
- package/components/breadcrumbs.mjs +35 -0
- package/components/button.d.ts +3 -0
- package/components/button.mjs +12 -0
- package/components/checkbox.mjs +188 -0
- package/components/chip.mjs +158 -0
- package/components/chipset.mjs +44 -0
- package/components/dots.mjs +60 -0
- package/components/dropdown-variant.d.ts +1 -0
- package/components/dropdown-variant.mjs +446 -0
- package/components/dropdown.d.ts +1 -0
- package/components/dropdown.mjs +303 -0
- package/components/feedback-message.mjs +136 -0
- package/components/filter-chip.mjs +215 -0
- package/components/footer-simplify.mjs +178 -0
- package/components/header-simplify.mjs +234 -0
- package/components/icon-button.d.ts +5 -0
- package/components/icon-button.mjs +340 -0
- package/components/input.mjs +298 -0
- package/components/link.mjs +172 -0
- package/components/mediumtile.mjs +307 -0
- package/components/minitile.mjs +234 -0
- package/components/option-tile-group.mjs +105 -0
- package/components/option-tile.mjs +413 -0
- package/components/popin.mjs +412 -0
- package/components/radio.mjs +165 -0
- package/components/rating.mjs +81 -0
- package/components/reassurance.mjs +163 -0
- package/components/search-input-dropdown.mjs +314 -0
- package/components/search-input.mjs +107 -0
- package/components/side-panel.mjs +1206 -0
- package/components/tab.mjs +140 -0
- package/components/tablist.mjs +44 -0
- package/components/tag.mjs +86 -0
- package/components/textarea.mjs +269 -0
- package/components/thumbnail-navigation.mjs +232 -0
- package/components/toast.mjs +191 -0
- package/components/tooltip.mjs +125 -0
- package/components/wishlist-button.mjs +132 -0
- package/css-C8WrrxT-.mjs +41 -0
- package/css.d.ts +1 -0
- package/directive-helpers-BHuwIghp.mjs +11 -0
- package/directive-oAbCiebi.mjs +27 -0
- package/element-internals-Dw7LndlH.mjs +19 -0
- package/icons-Pdn_6YtT.mjs +104 -0
- package/icons-occ.mjs +834 -0
- package/if-defined-j0wE2gL4.mjs +10 -0
- package/index.mjs +41 -9712
- package/live-C_TUoYRm.mjs +30 -0
- package/loader.d.ts +3 -0
- package/loader.mjs +78 -0
- package/logo-CEgaTL93.mjs +4 -0
- package/package.json +19 -1
- package/performance-mixin-D7YmSeqN.mjs +628 -0
- package/performance-reporter-B7ZOqnDk.mjs +89 -0
- package/property-S_Y9cb04.mjs +36 -0
- package/query-NJDNu0-P.mjs +25 -0
- package/state-DjMxXomO.mjs +12 -0
- package/svg-utils-CRDBD8ES.mjs +47 -0
- package/unsafe-svg-C3uTocNg.mjs +34 -0
- package/index.js +0 -5748
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
export declare const occIconRegistry: {
|
|
2
|
+
readonly "occ-address": {
|
|
3
|
+
readonly small: string;
|
|
4
|
+
readonly medium: string;
|
|
5
|
+
readonly large: string;
|
|
6
|
+
};
|
|
7
|
+
readonly "occ-autorep": {
|
|
8
|
+
readonly small: string;
|
|
9
|
+
readonly medium: string;
|
|
10
|
+
readonly large: string;
|
|
11
|
+
};
|
|
12
|
+
readonly "occ-back": {
|
|
13
|
+
readonly small: string;
|
|
14
|
+
readonly medium: string;
|
|
15
|
+
readonly large: string;
|
|
16
|
+
};
|
|
17
|
+
readonly "occ-bag-filled": {
|
|
18
|
+
readonly small: string;
|
|
19
|
+
readonly medium: string;
|
|
20
|
+
readonly large: string;
|
|
21
|
+
};
|
|
22
|
+
readonly "occ-bag-outlined": {
|
|
23
|
+
readonly small: string;
|
|
24
|
+
readonly medium: string;
|
|
25
|
+
readonly large: string;
|
|
26
|
+
};
|
|
27
|
+
readonly "occ-bag-strike": {
|
|
28
|
+
readonly small: string;
|
|
29
|
+
readonly medium: string;
|
|
30
|
+
readonly large: string;
|
|
31
|
+
};
|
|
32
|
+
readonly "occ-bottle": {
|
|
33
|
+
readonly small: string;
|
|
34
|
+
readonly medium: string;
|
|
35
|
+
readonly large: string;
|
|
36
|
+
};
|
|
37
|
+
readonly "occ-briefcase": {
|
|
38
|
+
readonly small: string;
|
|
39
|
+
readonly medium: string;
|
|
40
|
+
readonly large: string;
|
|
41
|
+
};
|
|
42
|
+
readonly "occ-burger": {
|
|
43
|
+
readonly small: string;
|
|
44
|
+
readonly medium: string;
|
|
45
|
+
readonly large: string;
|
|
46
|
+
};
|
|
47
|
+
readonly "occ-card": {
|
|
48
|
+
readonly small: string;
|
|
49
|
+
readonly medium: string;
|
|
50
|
+
readonly large: string;
|
|
51
|
+
};
|
|
52
|
+
readonly "occ-career": {
|
|
53
|
+
readonly small: string;
|
|
54
|
+
readonly medium: string;
|
|
55
|
+
readonly large: string;
|
|
56
|
+
};
|
|
57
|
+
readonly "occ-check-filled": {
|
|
58
|
+
readonly small: string;
|
|
59
|
+
readonly medium: string;
|
|
60
|
+
readonly large: string;
|
|
61
|
+
};
|
|
62
|
+
readonly "occ-check-outlined": {
|
|
63
|
+
readonly small: string;
|
|
64
|
+
readonly medium: string;
|
|
65
|
+
readonly large: string;
|
|
66
|
+
};
|
|
67
|
+
readonly "occ-chevron-bottom": {
|
|
68
|
+
readonly small: string;
|
|
69
|
+
readonly medium: string;
|
|
70
|
+
readonly large: string;
|
|
71
|
+
};
|
|
72
|
+
readonly "occ-chevron-double": {
|
|
73
|
+
readonly small: string;
|
|
74
|
+
readonly medium: string;
|
|
75
|
+
readonly large: string;
|
|
76
|
+
};
|
|
77
|
+
readonly "occ-chevron-left": {
|
|
78
|
+
readonly small: string;
|
|
79
|
+
readonly medium: string;
|
|
80
|
+
readonly large: string;
|
|
81
|
+
};
|
|
82
|
+
readonly "occ-chevron-right": {
|
|
83
|
+
readonly small: string;
|
|
84
|
+
readonly medium: string;
|
|
85
|
+
readonly large: string;
|
|
86
|
+
};
|
|
87
|
+
readonly "occ-chevron-top": {
|
|
88
|
+
readonly small: string;
|
|
89
|
+
readonly medium: string;
|
|
90
|
+
readonly large: string;
|
|
91
|
+
};
|
|
92
|
+
readonly "occ-close-filled": {
|
|
93
|
+
readonly small: string;
|
|
94
|
+
readonly medium: string;
|
|
95
|
+
readonly large: string;
|
|
96
|
+
};
|
|
97
|
+
readonly "occ-close-outlined": {
|
|
98
|
+
readonly small: string;
|
|
99
|
+
readonly medium: string;
|
|
100
|
+
readonly large: string;
|
|
101
|
+
};
|
|
102
|
+
readonly "occ-cream": {
|
|
103
|
+
readonly small: string;
|
|
104
|
+
readonly medium: string;
|
|
105
|
+
readonly large: string;
|
|
106
|
+
};
|
|
107
|
+
readonly "occ-cream-tube": {
|
|
108
|
+
readonly small: string;
|
|
109
|
+
readonly medium: string;
|
|
110
|
+
readonly large: string;
|
|
111
|
+
};
|
|
112
|
+
readonly "occ-eye-hide": {
|
|
113
|
+
readonly small: string;
|
|
114
|
+
readonly medium: string;
|
|
115
|
+
readonly large: string;
|
|
116
|
+
};
|
|
117
|
+
readonly "occ-eye-show": {
|
|
118
|
+
readonly small: string;
|
|
119
|
+
readonly medium: string;
|
|
120
|
+
readonly large: string;
|
|
121
|
+
};
|
|
122
|
+
readonly "occ-gear": {
|
|
123
|
+
readonly small: string;
|
|
124
|
+
readonly medium: string;
|
|
125
|
+
readonly large: string;
|
|
126
|
+
};
|
|
127
|
+
readonly "occ-gear-outline": {
|
|
128
|
+
readonly small: string;
|
|
129
|
+
readonly medium: string;
|
|
130
|
+
readonly large: string;
|
|
131
|
+
};
|
|
132
|
+
readonly "occ-geoloc": {
|
|
133
|
+
readonly small: string;
|
|
134
|
+
readonly medium: string;
|
|
135
|
+
readonly large: string;
|
|
136
|
+
};
|
|
137
|
+
readonly "occ-gift": {
|
|
138
|
+
readonly small: string;
|
|
139
|
+
readonly medium: string;
|
|
140
|
+
readonly large: string;
|
|
141
|
+
};
|
|
142
|
+
readonly "occ-group": {
|
|
143
|
+
readonly small: string;
|
|
144
|
+
readonly medium: string;
|
|
145
|
+
readonly large: string;
|
|
146
|
+
};
|
|
147
|
+
readonly "occ-hand-shake": {
|
|
148
|
+
readonly small: string;
|
|
149
|
+
readonly medium: string;
|
|
150
|
+
readonly large: string;
|
|
151
|
+
};
|
|
152
|
+
readonly "occ-info": {
|
|
153
|
+
readonly small: string;
|
|
154
|
+
readonly medium: string;
|
|
155
|
+
readonly large: string;
|
|
156
|
+
};
|
|
157
|
+
readonly "occ-location": {
|
|
158
|
+
readonly small: string;
|
|
159
|
+
readonly medium: string;
|
|
160
|
+
readonly large: string;
|
|
161
|
+
};
|
|
162
|
+
readonly "occ-mail": {
|
|
163
|
+
readonly small: string;
|
|
164
|
+
readonly medium: string;
|
|
165
|
+
readonly large: string;
|
|
166
|
+
};
|
|
167
|
+
readonly "occ-message": {
|
|
168
|
+
readonly small: string;
|
|
169
|
+
readonly medium: string;
|
|
170
|
+
readonly large: string;
|
|
171
|
+
};
|
|
172
|
+
readonly "occ-minus": {
|
|
173
|
+
readonly small: string;
|
|
174
|
+
readonly medium: string;
|
|
175
|
+
readonly large: string;
|
|
176
|
+
};
|
|
177
|
+
readonly "occ-order": {
|
|
178
|
+
readonly small: string;
|
|
179
|
+
readonly medium: string;
|
|
180
|
+
readonly large: string;
|
|
181
|
+
};
|
|
182
|
+
readonly "occ-order-sent": {
|
|
183
|
+
readonly small: string;
|
|
184
|
+
readonly medium: string;
|
|
185
|
+
readonly large: string;
|
|
186
|
+
};
|
|
187
|
+
readonly "occ-padlock": {
|
|
188
|
+
readonly small: string;
|
|
189
|
+
readonly medium: string;
|
|
190
|
+
readonly large: string;
|
|
191
|
+
};
|
|
192
|
+
readonly "occ-pause": {
|
|
193
|
+
readonly small: string;
|
|
194
|
+
readonly medium: string;
|
|
195
|
+
readonly large: string;
|
|
196
|
+
};
|
|
197
|
+
readonly "occ-play": {
|
|
198
|
+
readonly small: string;
|
|
199
|
+
readonly medium: string;
|
|
200
|
+
readonly large: string;
|
|
201
|
+
};
|
|
202
|
+
readonly "occ-plus": {
|
|
203
|
+
readonly small: string;
|
|
204
|
+
readonly medium: string;
|
|
205
|
+
readonly large: string;
|
|
206
|
+
};
|
|
207
|
+
readonly "occ-product": {
|
|
208
|
+
readonly small: string;
|
|
209
|
+
readonly medium: string;
|
|
210
|
+
readonly large: string;
|
|
211
|
+
};
|
|
212
|
+
readonly "occ-profil-filled": {
|
|
213
|
+
readonly small: string;
|
|
214
|
+
readonly medium: string;
|
|
215
|
+
readonly large: string;
|
|
216
|
+
};
|
|
217
|
+
readonly "occ-profil-outlined": {
|
|
218
|
+
readonly small: string;
|
|
219
|
+
readonly medium: string;
|
|
220
|
+
readonly large: string;
|
|
221
|
+
};
|
|
222
|
+
readonly "occ-refill": {
|
|
223
|
+
readonly small: string;
|
|
224
|
+
readonly medium: string;
|
|
225
|
+
readonly large: string;
|
|
226
|
+
};
|
|
227
|
+
readonly "occ-refine": {
|
|
228
|
+
readonly small: string;
|
|
229
|
+
readonly medium: string;
|
|
230
|
+
readonly large: string;
|
|
231
|
+
};
|
|
232
|
+
readonly "occ-reward-card": {
|
|
233
|
+
readonly small: string;
|
|
234
|
+
readonly medium: string;
|
|
235
|
+
readonly large: string;
|
|
236
|
+
};
|
|
237
|
+
readonly "occ-samples": {
|
|
238
|
+
readonly small: string;
|
|
239
|
+
readonly medium: string;
|
|
240
|
+
readonly large: string;
|
|
241
|
+
};
|
|
242
|
+
readonly "occ-search": {
|
|
243
|
+
readonly small: string;
|
|
244
|
+
readonly medium: string;
|
|
245
|
+
readonly large: string;
|
|
246
|
+
};
|
|
247
|
+
readonly "occ-star-0": {
|
|
248
|
+
readonly small: string;
|
|
249
|
+
readonly medium: string;
|
|
250
|
+
readonly large: string;
|
|
251
|
+
};
|
|
252
|
+
readonly "occ-star-100": {
|
|
253
|
+
readonly small: string;
|
|
254
|
+
readonly medium: string;
|
|
255
|
+
readonly large: string;
|
|
256
|
+
};
|
|
257
|
+
readonly "occ-star-25": {
|
|
258
|
+
readonly small: string;
|
|
259
|
+
readonly medium: string;
|
|
260
|
+
readonly large: string;
|
|
261
|
+
};
|
|
262
|
+
readonly "occ-star-50": {
|
|
263
|
+
readonly small: string;
|
|
264
|
+
readonly medium: string;
|
|
265
|
+
readonly large: string;
|
|
266
|
+
};
|
|
267
|
+
readonly "occ-star-75": {
|
|
268
|
+
readonly small: string;
|
|
269
|
+
readonly medium: string;
|
|
270
|
+
readonly large: string;
|
|
271
|
+
};
|
|
272
|
+
readonly "occ-store": {
|
|
273
|
+
readonly small: string;
|
|
274
|
+
readonly medium: string;
|
|
275
|
+
readonly large: string;
|
|
276
|
+
};
|
|
277
|
+
readonly "occ-warning": {
|
|
278
|
+
readonly small: string;
|
|
279
|
+
readonly medium: string;
|
|
280
|
+
readonly large: string;
|
|
281
|
+
};
|
|
282
|
+
readonly "occ-warning-stroke": {
|
|
283
|
+
readonly small: string;
|
|
284
|
+
readonly medium: string;
|
|
285
|
+
readonly large: string;
|
|
286
|
+
};
|
|
287
|
+
readonly "occ-wishlist-filled": {
|
|
288
|
+
readonly small: string;
|
|
289
|
+
readonly medium: string;
|
|
290
|
+
readonly large: string;
|
|
291
|
+
};
|
|
292
|
+
readonly "occ-wishlist-outlined": {
|
|
293
|
+
readonly small: string;
|
|
294
|
+
readonly medium: string;
|
|
295
|
+
readonly large: string;
|
|
296
|
+
};
|
|
297
|
+
readonly "occ-trash": {
|
|
298
|
+
readonly small: string;
|
|
299
|
+
readonly medium: string;
|
|
300
|
+
readonly large: string;
|
|
301
|
+
};
|
|
302
|
+
readonly "occ-triangle-up": {
|
|
303
|
+
readonly small: string;
|
|
304
|
+
readonly medium: string;
|
|
305
|
+
readonly large: string;
|
|
306
|
+
};
|
|
307
|
+
readonly "occ-triangle-down": {
|
|
308
|
+
readonly small: string;
|
|
309
|
+
readonly medium: string;
|
|
310
|
+
readonly large: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
export type OccIconName = keyof typeof occIconRegistry;
|
|
314
|
+
export type OccIconSize = "small" | "medium" | "large";
|
|
315
|
+
export type OccIconVariants = Partial<Record<OccIconSize, string>>;
|
package/assets/icons/icons.d.ts
CHANGED
|
@@ -1,95 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
readonly "occ-back": string;
|
|
5
|
-
readonly "occ-bag-filled": string;
|
|
6
|
-
readonly "occ-bag-outlined": string;
|
|
7
|
-
readonly "occ-bag-strike": string;
|
|
8
|
-
readonly "occ-bottle": string;
|
|
9
|
-
readonly "occ-briefcase": string;
|
|
10
|
-
readonly "occ-burger": string;
|
|
11
|
-
readonly "occ-card": string;
|
|
12
|
-
readonly "occ-career": string;
|
|
13
|
-
readonly "occ-check-filled": string;
|
|
14
|
-
readonly "occ-check-outlined": string;
|
|
15
|
-
readonly "occ-chevron-bottom": string;
|
|
16
|
-
readonly "occ-chevron-double": string;
|
|
17
|
-
readonly "occ-chevron-left": string;
|
|
18
|
-
readonly "occ-chevron-right": string;
|
|
19
|
-
readonly "occ-chevron-top": string;
|
|
20
|
-
readonly "occ-close-filled": string;
|
|
21
|
-
readonly "occ-close-outlined": string;
|
|
22
|
-
readonly "occ-cream": string;
|
|
23
|
-
readonly "occ-cream-tube": string;
|
|
24
|
-
readonly "occ-eye-hide": string;
|
|
25
|
-
readonly "occ-eye-show": string;
|
|
26
|
-
readonly "occ-gear": string;
|
|
27
|
-
readonly "occ-gear-outline": string;
|
|
28
|
-
readonly "occ-geoloc": string;
|
|
29
|
-
readonly "occ-gift": string;
|
|
30
|
-
readonly "occ-group": string;
|
|
31
|
-
readonly "occ-hand-shake": string;
|
|
32
|
-
readonly "occ-info": string;
|
|
33
|
-
readonly "occ-location": string;
|
|
34
|
-
readonly "occ-mail": string;
|
|
35
|
-
readonly "occ-message": string;
|
|
36
|
-
readonly "occ-minus": string;
|
|
37
|
-
readonly "occ-order": string;
|
|
38
|
-
readonly "occ-order-sent": string;
|
|
39
|
-
readonly "occ-padlock": string;
|
|
40
|
-
readonly "occ-pause": string;
|
|
41
|
-
readonly "occ-play": string;
|
|
42
|
-
readonly "occ-plus": string;
|
|
43
|
-
readonly "occ-product": string;
|
|
44
|
-
readonly "occ-profil-filled": string;
|
|
45
|
-
readonly "occ-profil-outlined": string;
|
|
46
|
-
readonly "occ-refill": string;
|
|
47
|
-
readonly "occ-refine": string;
|
|
48
|
-
readonly "occ-reward-card": string;
|
|
49
|
-
readonly "occ-samples": string;
|
|
50
|
-
readonly "occ-search": string;
|
|
51
|
-
readonly "occ-star-0": string;
|
|
52
|
-
readonly "occ-star-100": string;
|
|
53
|
-
readonly "occ-star-25": string;
|
|
54
|
-
readonly "occ-star-50": string;
|
|
55
|
-
readonly "occ-star-75": string;
|
|
56
|
-
readonly "occ-store": string;
|
|
57
|
-
readonly "occ-warning": string;
|
|
58
|
-
readonly "occ-warning-stroke": string;
|
|
59
|
-
readonly "occ-wishlist-filled": string;
|
|
60
|
-
readonly "occ-wishlist-outlined": string;
|
|
61
|
-
readonly "occ-trash": string;
|
|
62
|
-
readonly "occ-triangle-up": string;
|
|
63
|
-
readonly "occ-triangle-down": string;
|
|
1
|
+
import { OccIconName } from './icons-occ';
|
|
2
|
+
|
|
3
|
+
declare const baseIconRegistry: {
|
|
64
4
|
readonly wishlist: string;
|
|
65
5
|
readonly playerv: string;
|
|
66
6
|
readonly chevronRight: string;
|
|
67
|
-
readonly chevronLeft: string;
|
|
68
|
-
readonly icoPlus: string;
|
|
69
|
-
readonly icoMinus: string;
|
|
70
|
-
readonly "star-0": string;
|
|
71
|
-
readonly "star-25": string;
|
|
72
|
-
readonly "star-50": string;
|
|
73
|
-
readonly "star-75": string;
|
|
74
|
-
readonly "star-100": string;
|
|
75
7
|
readonly cross: string;
|
|
76
|
-
readonly search: string;
|
|
77
8
|
readonly arrowLeft: string;
|
|
78
9
|
readonly arrowTop: string;
|
|
79
10
|
readonly cart: string;
|
|
80
11
|
readonly notifyme: string;
|
|
81
|
-
readonly triangledown: string;
|
|
82
|
-
readonly triangleup: string;
|
|
83
|
-
readonly checkstroke: string;
|
|
84
|
-
readonly pause: string;
|
|
85
12
|
readonly mapDualArrow: string;
|
|
86
|
-
readonly swipeDualArrow: string;
|
|
87
|
-
readonly backToBag: string;
|
|
88
|
-
readonly checkbox: string;
|
|
89
|
-
readonly sliderLeftArrow: string;
|
|
90
|
-
readonly sliderRightArrow: string;
|
|
91
13
|
};
|
|
92
|
-
export
|
|
14
|
+
export declare function onOccIconsLoaded(callback: () => void): () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Pre-register OCC icons eagerly. Called by index.ts (webpack/bundle path)
|
|
17
|
+
* so that all icons are available synchronously without dynamic import.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registerOccIcons(registry: Record<string, Record<string, string>>): void;
|
|
20
|
+
export type { OccIconName } from './icons-occ';
|
|
21
|
+
export type IconName = keyof typeof baseIconRegistry | OccIconName;
|
|
93
22
|
export type IconLogicalSize = "xsmall" | "small" | "medium" | "large";
|
|
94
23
|
export type IconBgStyle = "background-light" | "background-contrast" | "ghost-light" | "ghost-contrast" | "none-light" | "none-contrast";
|
|
95
24
|
export declare const LOGICAL_ICON_SIZE_TO_PX: Record<IconLogicalSize, number>;
|
|
@@ -101,7 +30,6 @@ export declare const resolveIconVariant: (icon: IconName, { size, bgstyle }: {
|
|
|
101
30
|
pixelSize: number;
|
|
102
31
|
shouldApplyLogicalSize: boolean;
|
|
103
32
|
};
|
|
104
|
-
export declare const iconsMap: Record<
|
|
33
|
+
export declare const iconsMap: Record<string, string>;
|
|
105
34
|
export declare const imagesMap: Record<string, string>;
|
|
106
35
|
export declare const toastIconsMap: Record<string, string>;
|
|
107
|
-
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Directive, PartInfo } from 'lit/directive.js';
|
|
2
|
+
import { noChange } from 'lit';
|
|
3
|
+
import { IconBgStyle, IconLogicalSize, IconName } from './icons';
|
|
4
|
+
|
|
5
|
+
export declare function getProcessedSvg(icon: IconName, size: IconLogicalSize, bgstyle: IconBgStyle): string | null;
|
|
6
|
+
export declare function getSimpleProcessedSvg(rawSvg: string): string;
|
|
7
|
+
declare class CachedSvgDirective extends Directive {
|
|
8
|
+
private _currentKey;
|
|
9
|
+
constructor(partInfo: PartInfo);
|
|
10
|
+
render(icon: IconName, size: IconLogicalSize, bgstyle: IconBgStyle): Node | typeof noChange;
|
|
11
|
+
}
|
|
12
|
+
export declare const cachedSvg: (icon: IconName, size: IconLogicalSize, bgstyle: IconBgStyle) => import('lit/directive').DirectiveResult<typeof CachedSvgDirective>;
|
|
13
|
+
export {};
|
|
@@ -8,27 +8,4 @@ declare global {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
/**
|
|
12
|
-
* Mixin that instruments a LitElement component with the Performance API.
|
|
13
|
-
* Disabled by default — two ways to enable:
|
|
14
|
-
*
|
|
15
|
-
* - URL param (recommended, survives reloads):
|
|
16
|
-
* https://mysite.com/page?perf
|
|
17
|
-
*
|
|
18
|
-
* - Runtime toggle (console / bootstrap code):
|
|
19
|
-
* window.__florid__ = { performance: true };
|
|
20
|
-
*
|
|
21
|
-
* To label a page section explicitly (more reliable than auto-detection):
|
|
22
|
-
* <section data-perf-context="checkout-form">...</section>
|
|
23
|
-
*
|
|
24
|
-
* In Storybook the `.storybook/preview.ts` decorator handles activation and
|
|
25
|
-
* reporting automatically — no manual setup needed.
|
|
26
|
-
*
|
|
27
|
-
* Two measures are created per component instance:
|
|
28
|
-
* - `<tag>:init` connectedCallback → firstUpdated (Lit JS render time)
|
|
29
|
-
* - `<tag>:to-paint` connectedCallback → first RAF (JS + CSS layout/paint)
|
|
30
|
-
*
|
|
31
|
-
* Instance marks (`<tag>#<id>:start/end`) are cleaned up immediately after
|
|
32
|
-
* measuring to avoid polluting the performance buffer.
|
|
33
|
-
*/
|
|
34
11
|
export declare function mixinPerformance<T extends MixinBase<LitElement>>(Base: T): MixinReturn<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function start(): void;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { i as c, m as f, a as d, x as p, t as h } from "../performance-mixin-D7YmSeqN.mjs";
|
|
2
|
+
import { n as g } from "../property-S_Y9cb04.mjs";
|
|
3
|
+
import { e as u } from "../query-NJDNu0-P.mjs";
|
|
4
|
+
import "./accordion.mjs";
|
|
5
|
+
var m = Object.defineProperty, O = Object.getOwnPropertyDescriptor, a = (e, t, o, r) => {
|
|
6
|
+
for (var n = r > 1 ? void 0 : r ? O(t, o) : t, i = e.length - 1, l; i >= 0; i--)
|
|
7
|
+
(l = e[i]) && (n = (r ? l(t, o, n) : l(n)) || n);
|
|
8
|
+
return r && n && m(t, o, n), n;
|
|
9
|
+
};
|
|
10
|
+
let s = class extends f(d) {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(), this.single = !1, this.handleAccordionChange = (e) => {
|
|
13
|
+
var o;
|
|
14
|
+
if (!this.single) return;
|
|
15
|
+
const t = e.target;
|
|
16
|
+
!t || ((o = t.tagName) == null ? void 0 : o.toLowerCase()) !== "o-accordion" || t.expanded && this.getAccordions().forEach((r) => {
|
|
17
|
+
r !== t && (r.expanded = !1);
|
|
18
|
+
});
|
|
19
|
+
}, this.enforceSingleOpen = () => {
|
|
20
|
+
if (!this.single) return;
|
|
21
|
+
let e = !1;
|
|
22
|
+
this.getAccordions().forEach((t) => {
|
|
23
|
+
t.expanded && (e ? t.expanded = !1 : e = !0);
|
|
24
|
+
});
|
|
25
|
+
}, this.addEventListener("change", this.handleAccordionChange);
|
|
26
|
+
}
|
|
27
|
+
firstUpdated() {
|
|
28
|
+
var e;
|
|
29
|
+
this.enforceSingleOpen(), (e = this.defaultSlot) == null || e.addEventListener("slotchange", this.enforceSingleOpen);
|
|
30
|
+
}
|
|
31
|
+
disconnectedCallback() {
|
|
32
|
+
var e;
|
|
33
|
+
(e = this.defaultSlot) == null || e.removeEventListener("slotchange", this.enforceSingleOpen), super.disconnectedCallback();
|
|
34
|
+
}
|
|
35
|
+
updated(e) {
|
|
36
|
+
e.has("single") && this.single && this.enforceSingleOpen();
|
|
37
|
+
}
|
|
38
|
+
getAccordions() {
|
|
39
|
+
return Array.from(this.querySelectorAll("o-accordion"));
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return p`<slot></slot>`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
s.styles = c`
|
|
46
|
+
:host {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
`;
|
|
50
|
+
a([
|
|
51
|
+
g({ type: Boolean, reflect: !0 })
|
|
52
|
+
], s.prototype, "single", 2);
|
|
53
|
+
a([
|
|
54
|
+
u("slot")
|
|
55
|
+
], s.prototype, "defaultSlot", 2);
|
|
56
|
+
s = a([
|
|
57
|
+
h("o-accordion-group")
|
|
58
|
+
], s);
|
|
59
|
+
export {
|
|
60
|
+
s as OccitaneAccordionGroup
|
|
61
|
+
};
|