biggerui 1.0.4 → 1.0.6
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/biggerui.cjs.js +57 -58
- package/dist/biggerui.cjs.js.map +1 -1
- package/dist/biggerui.css +140 -65
- package/dist/biggerui.es.js +57 -58
- package/dist/biggerui.es.js.map +1 -1
- package/package.json +1 -1
package/dist/biggerui.css
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
/* Colors */
|
|
3
|
-
--primary-color: #4338ca
|
|
4
|
-
--
|
|
5
|
-
--
|
|
2
|
+
/* Absolute Colors */
|
|
3
|
+
--primary-color: oklch(0.4568 0.2146 277); /* #4338ca */
|
|
4
|
+
--destructive-color: oklch(0.444 0.1610 27); /*#991b1b */
|
|
5
|
+
--text-color: oklch(0.985 0 0); /* #fafafa; */
|
|
6
|
+
--background-color-white: oklch(1 0 0); /* #fff; */
|
|
7
|
+
--background-color-black: oklch(0.2046 0 0); /* #171717;*/
|
|
8
|
+
--border-color-white: oklch(1 0 0);
|
|
9
|
+
--border-color-black: oklch(0.2046 0 0); /* #171717;*/
|
|
10
|
+
--shadow-color: oklch(0.1448 0 0 / 5%); /* rgba(10, 10, 10, 0.05); */
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
--
|
|
9
|
-
--
|
|
12
|
+
/* Relative colors */
|
|
13
|
+
--primary-color-hover: oklch(from var(--primary-color) calc(l - 0.03) calc(c - 0.02) h ); /*#3d33b8 */
|
|
14
|
+
--primary-color-alpha: oklch(from var(--primary-color) l c h / 40%); /* rgba(67, 56, 202, 0.4); */
|
|
10
15
|
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--text-color-placeholder: #737373;
|
|
14
|
-
--text-color-error: #fecaca;
|
|
16
|
+
--destructive-color-hover: oklch(from var(--destructive-color) calc(l - 0.03) calc(c - 0.02) h ); /* #8a1919 */
|
|
17
|
+
--destructive-color-alpha: oklch(from var(--destructive-color) l c h / 40%); /* rgba(153, 27, 27, 0.4); */
|
|
15
18
|
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--background-color-overlay: rgba(0, 0, 0, 0.5);
|
|
19
|
+
--text-color-secondary: oklch(from var(--text-color) calc(l - 0.115) c h ); /* #d4d4d4 */
|
|
20
|
+
--text-color-placeholder: oklch(from var(--text-color) calc(l - 0.430) c h ); /* #737373 */
|
|
21
|
+
--text-color-error: oklch(from var(--destructive-color) calc(l + 0.44) calc(c - 0.1) h ); /* #fecaca */
|
|
20
22
|
|
|
21
|
-
--
|
|
22
|
-
--border-color-dark: #404040;
|
|
23
|
+
--background-color-silver: oklch(from var(--background-color-white) calc(l - 0.03) c h ); /*#f5f5f5 */
|
|
23
24
|
|
|
24
|
-
--
|
|
25
|
-
--
|
|
25
|
+
--background-color-light: oklch(from var(--background-color-white) calc(l - 0.015) c h / 5%); /* rgba(250, 250, 250, 0.05); */
|
|
26
|
+
--background-color-light-hover: oklch(from var(--background-color-white) l c h / 8%); /* rgba(250, 250, 250, 0.08); */
|
|
27
|
+
--background-color-overlay: oklch(from var(--background-color-black) l c h / 5%); /* rgba(0, 0, 0, 0.5); */
|
|
28
|
+
|
|
29
|
+
--border-color: oklch(from var(--border-color-white) l c h / 15%); /* rgba(250, 250, 250, 0.15); */
|
|
30
|
+
--border-color-silver: oklch(from var(--border-color-white) calc(l - 0.03) c h ); /* #f5f5f5 */
|
|
31
|
+
--border-color-dark: oklch(from var(--border-color-black) calc(l + 0.17) c h ); /* #404040; */
|
|
32
|
+
|
|
33
|
+
--shadow-color-light: oklch(from var(--shadow-color) calc(l + 0.1448) c h / 45%); /*rgba(115, 115, 115, 0.45);*/
|
|
34
|
+
--shadow-color-dark: oklch(from var(--shadow-color) l c h / 10%); /* rgba(10, 10, 10, 0.1);
|
|
26
35
|
|
|
27
36
|
/* Spacing */
|
|
28
37
|
--spacing-xs: 4px;
|
|
@@ -57,8 +66,10 @@
|
|
|
57
66
|
--transition-fast: 150ms;
|
|
58
67
|
--transition-normal: 250ms;
|
|
59
68
|
--transition-slow: 350ms;
|
|
69
|
+
|
|
70
|
+
--progress: 0;
|
|
60
71
|
}
|
|
61
|
-
.
|
|
72
|
+
._button_12key_1 {
|
|
62
73
|
display: inline-flex;
|
|
63
74
|
align-items: center;
|
|
64
75
|
justify-content: center;
|
|
@@ -67,7 +78,8 @@
|
|
|
67
78
|
height: 36px;
|
|
68
79
|
padding: 8px 16px;
|
|
69
80
|
box-sizing: border-box;
|
|
70
|
-
border-radius:
|
|
81
|
+
border-radius: 12px;
|
|
82
|
+
corner-shape: squircle;
|
|
71
83
|
border: 1px solid transparent;
|
|
72
84
|
font-family: "JetBrains Sans", sans-serif;
|
|
73
85
|
font-size: 14px;
|
|
@@ -75,70 +87,133 @@
|
|
|
75
87
|
line-height: 20px;
|
|
76
88
|
cursor: pointer;
|
|
77
89
|
user-select: none;
|
|
78
|
-
transition: background 0.15s ease-out, opacity 0.15s ease-out;
|
|
90
|
+
transition: transform 0.15s ease-out, background 0.15s ease-out, opacity 0.15s ease-out, border-radius 0.15s ease-out, padding 0.15s ease-out;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
._button_12key_1:hover {
|
|
94
|
+
transform: translateY(-1px);
|
|
79
95
|
}
|
|
80
96
|
|
|
81
|
-
.
|
|
97
|
+
._loader_12key_26 {
|
|
98
|
+
position: relative;
|
|
99
|
+
width: 24px;
|
|
100
|
+
height: 24px;
|
|
101
|
+
border-radius: 50%;
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
box-sizing: border-box;
|
|
106
|
+
font-size: 10px;
|
|
107
|
+
font-weight: 600;
|
|
108
|
+
color: var(--text-color);
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
counter-reset: progress var(--progress);
|
|
111
|
+
transition: transform 0.05s linear;
|
|
112
|
+
transform: rotate(calc(var(--progress) * 10.8deg));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
._loader_12key_26::after {
|
|
116
|
+
content: counter(progress);
|
|
117
|
+
position: relative;
|
|
118
|
+
z-index: 1;
|
|
119
|
+
display: inline-flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
min-width: 1.8em;
|
|
123
|
+
font-variant-numeric: tabular-nums;
|
|
124
|
+
text-align: left;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
._loader_12key_26::before {
|
|
128
|
+
content: '';
|
|
129
|
+
position: absolute;
|
|
130
|
+
width: 200%;
|
|
131
|
+
height: 200%;
|
|
132
|
+
top: 0;
|
|
133
|
+
left: 0;
|
|
134
|
+
transform: translate(-50%, -50%);
|
|
135
|
+
border-radius: 50%;
|
|
136
|
+
background: conic-gradient(
|
|
137
|
+
var(--text-color) calc(var(--progress) * 3.6deg),
|
|
138
|
+
transparent calc(var(--progress) * 3.6deg)
|
|
139
|
+
);
|
|
140
|
+
|
|
141
|
+
-webkit-mask: radial-gradient(
|
|
142
|
+
farthest-side,
|
|
143
|
+
transparent calc(50% - 4px),
|
|
144
|
+
#000 calc(50% - 3px)
|
|
145
|
+
);
|
|
146
|
+
mask: radial-gradient(
|
|
147
|
+
farthest-side,
|
|
148
|
+
transparent calc(100% - 4px),
|
|
149
|
+
#000 calc(100% - 3px)
|
|
150
|
+
);
|
|
151
|
+
transition: background 0.3s ease-out;
|
|
152
|
+
transform-origin: center;
|
|
153
|
+
scale: 0.5;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
._fullWidth_12key_85 {
|
|
82
157
|
width: 100%;
|
|
83
158
|
}
|
|
84
159
|
|
|
85
|
-
.
|
|
160
|
+
._default_12key_89 {
|
|
86
161
|
background: var(--primary-color);
|
|
87
162
|
color: var(--text-color);
|
|
88
163
|
box-shadow: 0px 1px 2px var(--shadow-color);
|
|
89
164
|
}
|
|
90
|
-
.
|
|
165
|
+
._default_12key_89:hover {
|
|
91
166
|
background: var(--primary-color-hover);
|
|
92
167
|
}
|
|
93
168
|
|
|
94
|
-
.
|
|
169
|
+
._destructive_12key_98 {
|
|
95
170
|
background: var(--destructive-color);
|
|
96
171
|
color: var(--text-color-error);
|
|
97
172
|
box-shadow: 0px 1px 2px var(--shadow-color);
|
|
98
173
|
}
|
|
99
|
-
.
|
|
174
|
+
._destructive_12key_98:hover {
|
|
100
175
|
background: var(--destructive-color-hover);
|
|
101
176
|
}
|
|
102
177
|
|
|
103
|
-
.
|
|
178
|
+
._secondary_12key_107 {
|
|
104
179
|
background: var(--background-color-light);
|
|
105
180
|
border-color: var(--border-color);
|
|
106
181
|
color: var(--text-color);
|
|
107
182
|
box-shadow: 0px 1px 2px var(--shadow-color);
|
|
108
183
|
}
|
|
109
|
-
.
|
|
184
|
+
._secondary_12key_107:hover {
|
|
110
185
|
background: var(--background-color-light-hover);
|
|
111
186
|
}
|
|
112
187
|
|
|
113
|
-
.
|
|
188
|
+
._default_12key_89 {
|
|
114
189
|
height: 36px;
|
|
115
190
|
padding: 8px 16px;
|
|
116
191
|
}
|
|
117
192
|
|
|
118
|
-
.
|
|
193
|
+
._sm_12key_122 {
|
|
119
194
|
height: 32px;
|
|
120
195
|
padding: 6px 12px;
|
|
121
196
|
}
|
|
122
197
|
|
|
123
|
-
.
|
|
198
|
+
._lg_12key_127 {
|
|
124
199
|
height: 40px;
|
|
125
200
|
padding: 10px 20px;
|
|
126
201
|
}
|
|
127
202
|
|
|
128
|
-
.
|
|
129
|
-
.
|
|
203
|
+
._iconLeft_12key_132,
|
|
204
|
+
._iconRight_12key_133 {
|
|
130
205
|
display: flex;
|
|
131
206
|
align-items: center;
|
|
132
207
|
justify-content: center;
|
|
133
208
|
pointer-events: none;
|
|
134
209
|
}
|
|
135
210
|
|
|
136
|
-
.
|
|
211
|
+
._disabled_12key_140 {
|
|
137
212
|
opacity: 0.5;
|
|
138
213
|
cursor: not-allowed;
|
|
139
214
|
}
|
|
140
215
|
|
|
141
|
-
.
|
|
216
|
+
._label_12key_145 {
|
|
142
217
|
display: flex;
|
|
143
218
|
align-items: center;
|
|
144
219
|
justify-content: center;
|
|
@@ -243,7 +318,7 @@
|
|
|
243
318
|
transform: scale(1.25);
|
|
244
319
|
}
|
|
245
320
|
}
|
|
246
|
-
.
|
|
321
|
+
._overlay_1narp_1 {
|
|
247
322
|
position: fixed;
|
|
248
323
|
inset: 0;
|
|
249
324
|
background: var(--background-color-overlay);
|
|
@@ -253,14 +328,14 @@
|
|
|
253
328
|
justify-content: center;
|
|
254
329
|
}
|
|
255
330
|
|
|
256
|
-
.
|
|
331
|
+
._content_1narp_11 {
|
|
257
332
|
position: relative;
|
|
258
333
|
width: min(720px, 100% - 32px);
|
|
259
334
|
max-height: calc(100vh - 64px);
|
|
260
335
|
padding: 24px;
|
|
261
336
|
box-sizing: border-box;
|
|
262
337
|
|
|
263
|
-
background: var(--background-color);
|
|
338
|
+
background: var(--background-color-black);
|
|
264
339
|
border-radius: 16px;
|
|
265
340
|
border: 1px solid var(--border-color-dark);
|
|
266
341
|
box-shadow: 0px 4px 6px -4px var(--shadow-color-dark);
|
|
@@ -271,7 +346,7 @@
|
|
|
271
346
|
gap: 24px;
|
|
272
347
|
}
|
|
273
348
|
|
|
274
|
-
.
|
|
349
|
+
._header_1narp_29 {
|
|
275
350
|
align-self: stretch;
|
|
276
351
|
border-bottom: 0.5px solid var(--border-color-dark);
|
|
277
352
|
display: flex;
|
|
@@ -280,7 +355,7 @@
|
|
|
280
355
|
padding-bottom: 12px;
|
|
281
356
|
}
|
|
282
357
|
|
|
283
|
-
.
|
|
358
|
+
._title_1narp_38 {
|
|
284
359
|
flex: 1;
|
|
285
360
|
max-width: 1280px;
|
|
286
361
|
font-family: "JetBrains Sans", sans-serif;
|
|
@@ -290,7 +365,7 @@
|
|
|
290
365
|
color: var(--text-color);
|
|
291
366
|
}
|
|
292
367
|
|
|
293
|
-
.
|
|
368
|
+
._body_1narp_48 {
|
|
294
369
|
align-self: stretch;
|
|
295
370
|
display: flex;
|
|
296
371
|
flex-direction: column;
|
|
@@ -300,7 +375,7 @@
|
|
|
300
375
|
color: var(--text-color);
|
|
301
376
|
}
|
|
302
377
|
|
|
303
|
-
.
|
|
378
|
+
._footer_1narp_58 {
|
|
304
379
|
align-self: stretch;
|
|
305
380
|
padding-top: 32px;
|
|
306
381
|
display: flex;
|
|
@@ -308,7 +383,7 @@
|
|
|
308
383
|
align-items: flex-start;
|
|
309
384
|
}
|
|
310
385
|
|
|
311
|
-
.
|
|
386
|
+
._closeButton_1narp_66 {
|
|
312
387
|
position: absolute;
|
|
313
388
|
top: 12px;
|
|
314
389
|
right: 12px;
|
|
@@ -323,14 +398,14 @@
|
|
|
323
398
|
cursor: pointer;
|
|
324
399
|
}
|
|
325
400
|
|
|
326
|
-
.
|
|
401
|
+
._closeIcon_1narp_81 {
|
|
327
402
|
position: relative;
|
|
328
403
|
width: 16px;
|
|
329
404
|
height: 16px;
|
|
330
405
|
}
|
|
331
406
|
|
|
332
|
-
.
|
|
333
|
-
.
|
|
407
|
+
._closeIcon_1narp_81::before,
|
|
408
|
+
._closeIcon_1narp_81::after {
|
|
334
409
|
content: "";
|
|
335
410
|
position: absolute;
|
|
336
411
|
left: 7px;
|
|
@@ -341,11 +416,11 @@
|
|
|
341
416
|
border-radius: 2px;
|
|
342
417
|
}
|
|
343
418
|
|
|
344
|
-
.
|
|
419
|
+
._closeIcon_1narp_81::before {
|
|
345
420
|
transform: rotate(45deg);
|
|
346
421
|
}
|
|
347
422
|
|
|
348
|
-
.
|
|
423
|
+
._closeIcon_1narp_81::after {
|
|
349
424
|
transform: rotate(-45deg);
|
|
350
425
|
}
|
|
351
426
|
._wrapper_x822s_1 {
|
|
@@ -432,7 +507,7 @@
|
|
|
432
507
|
line-height: 16px;
|
|
433
508
|
color: var(--text-color-error);
|
|
434
509
|
}
|
|
435
|
-
.
|
|
510
|
+
._wrapper_12upp_1 {
|
|
436
511
|
width: 100%;
|
|
437
512
|
display: flex;
|
|
438
513
|
flex-direction: column;
|
|
@@ -440,7 +515,7 @@
|
|
|
440
515
|
position: relative;
|
|
441
516
|
}
|
|
442
517
|
|
|
443
|
-
.
|
|
518
|
+
._label_12upp_9 {
|
|
444
519
|
width: 100%;
|
|
445
520
|
color: var(--text-color);
|
|
446
521
|
font-size: 14px;
|
|
@@ -450,7 +525,7 @@
|
|
|
450
525
|
margin-bottom: 8px;
|
|
451
526
|
}
|
|
452
527
|
|
|
453
|
-
.
|
|
528
|
+
._trigger_12upp_19 {
|
|
454
529
|
width: 100%;
|
|
455
530
|
height: 36px;
|
|
456
531
|
padding: 4px 12px;
|
|
@@ -467,11 +542,11 @@
|
|
|
467
542
|
outline: none;
|
|
468
543
|
}
|
|
469
544
|
|
|
470
|
-
.
|
|
545
|
+
._triggerOpen_12upp_36 {
|
|
471
546
|
border-color: var(--primary-color);
|
|
472
547
|
}
|
|
473
548
|
|
|
474
|
-
.
|
|
549
|
+
._value_12upp_40 {
|
|
475
550
|
flex: 1 1 0;
|
|
476
551
|
display: inline-flex;
|
|
477
552
|
align-items: center;
|
|
@@ -483,7 +558,7 @@
|
|
|
483
558
|
text-align: left;
|
|
484
559
|
}
|
|
485
560
|
|
|
486
|
-
.
|
|
561
|
+
._placeholder_12upp_52 {
|
|
487
562
|
flex: 1 1 0;
|
|
488
563
|
font-family: "JetBrains Sans", sans-serif;
|
|
489
564
|
font-size: 14px;
|
|
@@ -492,19 +567,19 @@
|
|
|
492
567
|
text-align: left;
|
|
493
568
|
}
|
|
494
569
|
|
|
495
|
-
.
|
|
570
|
+
._hint_12upp_61 {
|
|
496
571
|
opacity: 0.6;
|
|
497
572
|
font-size: 12px;
|
|
498
573
|
line-height: 16px;
|
|
499
574
|
}
|
|
500
575
|
|
|
501
|
-
.
|
|
576
|
+
._icon_12upp_67 {
|
|
502
577
|
display: inline-flex;
|
|
503
578
|
align-items: center;
|
|
504
579
|
justify-content: center;
|
|
505
580
|
}
|
|
506
581
|
|
|
507
|
-
.
|
|
582
|
+
._dropdown_12upp_73 {
|
|
508
583
|
position: absolute;
|
|
509
584
|
top: calc(100% + 4px);
|
|
510
585
|
left: 0;
|
|
@@ -512,8 +587,8 @@
|
|
|
512
587
|
z-index: 50;
|
|
513
588
|
}
|
|
514
589
|
|
|
515
|
-
.
|
|
516
|
-
background: var(--background-color);
|
|
590
|
+
._dropdownInner_12upp_81 {
|
|
591
|
+
background: var(--background-color-black);
|
|
517
592
|
border-radius: 8px;
|
|
518
593
|
border: 1px solid var(--border-color-dark);
|
|
519
594
|
box-shadow: 0px 2px 4px -2px var(--shadow-color-dark);
|
|
@@ -522,7 +597,7 @@
|
|
|
522
597
|
overflow-y: auto;
|
|
523
598
|
}
|
|
524
599
|
|
|
525
|
-
.
|
|
600
|
+
._option_12upp_91 {
|
|
526
601
|
width: 100%;
|
|
527
602
|
padding: 6px 8px;
|
|
528
603
|
border-radius: 6px;
|
|
@@ -536,22 +611,22 @@
|
|
|
536
611
|
cursor: pointer;
|
|
537
612
|
}
|
|
538
613
|
|
|
539
|
-
.
|
|
614
|
+
._option_12upp_91:hover {
|
|
540
615
|
background: var(--background-color-light);
|
|
541
616
|
}
|
|
542
617
|
|
|
543
|
-
.
|
|
618
|
+
._optionActive_12upp_109 {
|
|
544
619
|
background: var(--primary-color);
|
|
545
620
|
}
|
|
546
621
|
|
|
547
|
-
.
|
|
622
|
+
._optionLabel_12upp_113 {
|
|
548
623
|
font-family: "JetBrains Sans", sans-serif;
|
|
549
624
|
font-size: 14px;
|
|
550
625
|
line-height: 20px;
|
|
551
626
|
color: var(--text-color);
|
|
552
627
|
}
|
|
553
628
|
|
|
554
|
-
.
|
|
629
|
+
._optionHint_12upp_120 {
|
|
555
630
|
opacity: 0.6;
|
|
556
631
|
font-family: "JetBrains Sans", sans-serif;
|
|
557
632
|
font-size: 12px;
|
package/dist/biggerui.es.js
CHANGED
|
@@ -3,20 +3,22 @@ import * as React from 'react';
|
|
|
3
3
|
import { createContext, useRef, useLayoutEffect, useEffect, useId, useContext, useInsertionEffect, useMemo, useCallback, Children, isValidElement, useState, Fragment as Fragment$1, createElement, forwardRef, Component } from 'react';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
|
|
6
|
-
const button = "
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
6
|
+
const button = "_button_12key_1";
|
|
7
|
+
const loader = "_loader_12key_26";
|
|
8
|
+
const fullWidth = "_fullWidth_12key_85";
|
|
9
|
+
const destructive = "_destructive_12key_98";
|
|
10
|
+
const secondary = "_secondary_12key_107";
|
|
11
|
+
const sm = "_sm_12key_122";
|
|
12
|
+
const lg = "_lg_12key_127";
|
|
13
|
+
const iconLeft = "_iconLeft_12key_132";
|
|
14
|
+
const iconRight = "_iconRight_12key_133";
|
|
15
|
+
const disabled = "_disabled_12key_140";
|
|
16
|
+
const label$3 = "_label_12key_145";
|
|
16
17
|
const styles$5 = {
|
|
17
18
|
button: button,
|
|
19
|
+
loader: loader,
|
|
18
20
|
fullWidth: fullWidth,
|
|
19
|
-
"default": "
|
|
21
|
+
"default": "_default_12key_89",
|
|
20
22
|
destructive: destructive,
|
|
21
23
|
secondary: secondary,
|
|
22
24
|
sm: sm,
|
|
@@ -35,19 +37,23 @@ function Button({
|
|
|
35
37
|
className = "",
|
|
36
38
|
disabled = false,
|
|
37
39
|
children,
|
|
40
|
+
loading = false,
|
|
41
|
+
progress = 0,
|
|
38
42
|
...props
|
|
39
43
|
}) {
|
|
40
44
|
const classes = [
|
|
41
45
|
styles$5.button,
|
|
42
46
|
styles$5[color],
|
|
43
47
|
styles$5[size],
|
|
48
|
+
loading ? styles$5.loading : "",
|
|
44
49
|
disabled ? styles$5.disabled : "",
|
|
45
50
|
className
|
|
46
51
|
].filter(Boolean).join(" ");
|
|
47
52
|
return /* @__PURE__ */ jsxs("button", { className: classes, disabled, ...props, children: [
|
|
48
53
|
leftIcon && /* @__PURE__ */ jsx("span", { className: styles$5.iconLeft, children: leftIcon }),
|
|
49
54
|
/* @__PURE__ */ jsx("span", { className: styles$5.label, children }),
|
|
50
|
-
rightIcon && /* @__PURE__ */ jsx("span", { className: styles$5.iconRight, children: rightIcon })
|
|
55
|
+
rightIcon && /* @__PURE__ */ jsx("span", { className: styles$5.iconRight, children: rightIcon }),
|
|
56
|
+
loading && /* @__PURE__ */ jsx("span", { style: { "--progress": progress }, className: styles$5.loader })
|
|
51
57
|
] });
|
|
52
58
|
}
|
|
53
59
|
|
|
@@ -8710,7 +8716,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8710
8716
|
*/
|
|
8711
8717
|
this.eventHandlers = new Map();
|
|
8712
8718
|
this.hasTreeAnimated = false;
|
|
8713
|
-
this.layoutVersion = 0;
|
|
8714
8719
|
// Note: Currently only running on root node
|
|
8715
8720
|
this.updateScheduled = false;
|
|
8716
8721
|
this.scheduleUpdate = () => this.update();
|
|
@@ -8737,7 +8742,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8737
8742
|
* Frame calculations
|
|
8738
8743
|
*/
|
|
8739
8744
|
this.resolvedRelativeTargetAt = 0.0;
|
|
8740
|
-
this.linkedParentVersion = 0;
|
|
8741
8745
|
this.hasProjected = false;
|
|
8742
8746
|
this.isVisible = true;
|
|
8743
8747
|
this.animationProgress = 0;
|
|
@@ -9091,7 +9095,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9091
9095
|
}
|
|
9092
9096
|
const prevLayout = this.layout;
|
|
9093
9097
|
this.layout = this.measure(false);
|
|
9094
|
-
this.layoutVersion++;
|
|
9095
9098
|
this.layoutCorrected = createBox();
|
|
9096
9099
|
this.isLayoutDirty = false;
|
|
9097
9100
|
this.projectionDelta = undefined;
|
|
@@ -9311,23 +9314,25 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9311
9314
|
if (!this.layout || !(layout || layoutId))
|
|
9312
9315
|
return;
|
|
9313
9316
|
this.resolvedRelativeTargetAt = frameData.timestamp;
|
|
9314
|
-
const relativeParent = this.getClosestProjectingParent();
|
|
9315
|
-
if (relativeParent &&
|
|
9316
|
-
this.linkedParentVersion !== relativeParent.layoutVersion &&
|
|
9317
|
-
!relativeParent.options.layoutRoot) {
|
|
9318
|
-
this.removeRelativeTarget();
|
|
9319
|
-
}
|
|
9320
9317
|
/**
|
|
9321
9318
|
* If we don't have a targetDelta but do have a layout, we can attempt to resolve
|
|
9322
9319
|
* a relativeParent. This will allow a component to perform scale correction
|
|
9323
9320
|
* even if no animation has started.
|
|
9324
9321
|
*/
|
|
9325
9322
|
if (!this.targetDelta && !this.relativeTarget) {
|
|
9326
|
-
|
|
9327
|
-
|
|
9323
|
+
const relativeParent = this.getClosestProjectingParent();
|
|
9324
|
+
if (relativeParent &&
|
|
9325
|
+
relativeParent.layout &&
|
|
9326
|
+
this.animationProgress !== 1) {
|
|
9327
|
+
this.relativeParent = relativeParent;
|
|
9328
|
+
this.forceRelativeParentToResolveTarget();
|
|
9329
|
+
this.relativeTarget = createBox();
|
|
9330
|
+
this.relativeTargetOrigin = createBox();
|
|
9331
|
+
calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
|
|
9332
|
+
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9328
9333
|
}
|
|
9329
9334
|
else {
|
|
9330
|
-
this.
|
|
9335
|
+
this.relativeParent = this.relativeTarget = undefined;
|
|
9331
9336
|
}
|
|
9332
9337
|
}
|
|
9333
9338
|
/**
|
|
@@ -9377,13 +9382,19 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9377
9382
|
*/
|
|
9378
9383
|
if (this.attemptToResolveRelativeTarget) {
|
|
9379
9384
|
this.attemptToResolveRelativeTarget = false;
|
|
9385
|
+
const relativeParent = this.getClosestProjectingParent();
|
|
9380
9386
|
if (relativeParent &&
|
|
9381
9387
|
Boolean(relativeParent.resumingFrom) ===
|
|
9382
9388
|
Boolean(this.resumingFrom) &&
|
|
9383
9389
|
!relativeParent.options.layoutScroll &&
|
|
9384
9390
|
relativeParent.target &&
|
|
9385
9391
|
this.animationProgress !== 1) {
|
|
9386
|
-
this.
|
|
9392
|
+
this.relativeParent = relativeParent;
|
|
9393
|
+
this.forceRelativeParentToResolveTarget();
|
|
9394
|
+
this.relativeTarget = createBox();
|
|
9395
|
+
this.relativeTargetOrigin = createBox();
|
|
9396
|
+
calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
|
|
9397
|
+
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9387
9398
|
}
|
|
9388
9399
|
else {
|
|
9389
9400
|
this.relativeParent = this.relativeTarget = undefined;
|
|
@@ -9409,18 +9420,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
9409
9420
|
this.options.layoutRoot) &&
|
|
9410
9421
|
this.layout);
|
|
9411
9422
|
}
|
|
9412
|
-
createRelativeTarget(relativeParent, layout, parentLayout) {
|
|
9413
|
-
this.relativeParent = relativeParent;
|
|
9414
|
-
this.linkedParentVersion = relativeParent.layoutVersion;
|
|
9415
|
-
this.forceRelativeParentToResolveTarget();
|
|
9416
|
-
this.relativeTarget = createBox();
|
|
9417
|
-
this.relativeTargetOrigin = createBox();
|
|
9418
|
-
calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);
|
|
9419
|
-
copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
|
|
9420
|
-
}
|
|
9421
|
-
removeRelativeTarget() {
|
|
9422
|
-
this.relativeParent = this.relativeTarget = undefined;
|
|
9423
|
-
}
|
|
9424
9423
|
calcProjection() {
|
|
9425
9424
|
const lead = this.getLead();
|
|
9426
9425
|
const isShared = Boolean(this.resumingFrom) || this !== lead;
|
|
@@ -10413,13 +10412,13 @@ const featureBundle = {
|
|
|
10413
10412
|
|
|
10414
10413
|
const motion = /*@__PURE__*/ createMotionProxy(featureBundle, createDomVisualElement);
|
|
10415
10414
|
|
|
10416
|
-
const overlay = "
|
|
10417
|
-
const content = "
|
|
10418
|
-
const header = "
|
|
10419
|
-
const title = "
|
|
10420
|
-
const body = "
|
|
10421
|
-
const footer = "
|
|
10422
|
-
const closeButton = "
|
|
10415
|
+
const overlay = "_overlay_1narp_1";
|
|
10416
|
+
const content = "_content_1narp_11";
|
|
10417
|
+
const header = "_header_1narp_29";
|
|
10418
|
+
const title = "_title_1narp_38";
|
|
10419
|
+
const body = "_body_1narp_48";
|
|
10420
|
+
const footer = "_footer_1narp_58";
|
|
10421
|
+
const closeButton = "_closeButton_1narp_66";
|
|
10423
10422
|
const styles$3 = {
|
|
10424
10423
|
overlay: overlay,
|
|
10425
10424
|
content: content,
|
|
@@ -10569,20 +10568,20 @@ const Input = ({
|
|
|
10569
10568
|
] });
|
|
10570
10569
|
};
|
|
10571
10570
|
|
|
10572
|
-
const wrapper$1 = "
|
|
10573
|
-
const label$1 = "
|
|
10574
|
-
const trigger = "
|
|
10575
|
-
const triggerOpen = "
|
|
10576
|
-
const value = "
|
|
10577
|
-
const placeholder = "
|
|
10578
|
-
const hint = "
|
|
10579
|
-
const icon = "
|
|
10580
|
-
const dropdown = "
|
|
10581
|
-
const dropdownInner = "
|
|
10582
|
-
const option = "
|
|
10583
|
-
const optionActive = "
|
|
10584
|
-
const optionLabel = "
|
|
10585
|
-
const optionHint = "
|
|
10571
|
+
const wrapper$1 = "_wrapper_12upp_1";
|
|
10572
|
+
const label$1 = "_label_12upp_9";
|
|
10573
|
+
const trigger = "_trigger_12upp_19";
|
|
10574
|
+
const triggerOpen = "_triggerOpen_12upp_36";
|
|
10575
|
+
const value = "_value_12upp_40";
|
|
10576
|
+
const placeholder = "_placeholder_12upp_52";
|
|
10577
|
+
const hint = "_hint_12upp_61";
|
|
10578
|
+
const icon = "_icon_12upp_67";
|
|
10579
|
+
const dropdown = "_dropdown_12upp_73";
|
|
10580
|
+
const dropdownInner = "_dropdownInner_12upp_81";
|
|
10581
|
+
const option = "_option_12upp_91";
|
|
10582
|
+
const optionActive = "_optionActive_12upp_109";
|
|
10583
|
+
const optionLabel = "_optionLabel_12upp_113";
|
|
10584
|
+
const optionHint = "_optionHint_12upp_120";
|
|
10586
10585
|
const styles$1 = {
|
|
10587
10586
|
wrapper: wrapper$1,
|
|
10588
10587
|
label: label$1,
|