@finsweet/webflow-apps-utils 1.0.36 → 1.0.38
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/ui/components/button/Button.svelte +2 -2
- package/dist/ui/components/button-group/ButtonGroup.svelte +1 -1
- package/dist/ui/components/color-picker/ColorSelect.svelte +1 -1
- package/dist/ui/components/input/Input.svelte +1 -1
- package/dist/ui/components/layout/examples/ExampleLayout.svelte +1 -1
- package/dist/ui/components/modal/Modal.svelte +1 -1
- package/dist/ui/components/notification/Notification.svelte +2 -2
- package/dist/ui/components/progress-bar/ProgressBar.svelte +1 -1
- package/dist/ui/components/regions/RegionSelector.stories.svelte +94 -0
- package/dist/ui/components/regions/RegionSelector.svelte +368 -192
- package/dist/ui/components/regions/types.d.ts +3 -0
- package/dist/ui/components/section/Section.svelte +2 -2
- package/dist/ui/components/select/Select.svelte +5 -7
- package/dist/ui/components/text/Text.svelte +4 -2
- package/dist/ui/components/tooltip/Tooltip.svelte +7 -14
- package/dist/ui/index.css +24 -44
- package/dist/ui/providers/GlobalProviderDemo.svelte +2 -2
- package/dist/ui/stores/forms/FormDemo.svelte +2 -2
- package/package.json +1 -1
|
@@ -18,6 +18,7 @@ export interface UsedRegions {
|
|
|
18
18
|
isGlobalUsed: boolean;
|
|
19
19
|
isEUGroupUsed: boolean;
|
|
20
20
|
byInstance: Map<string, Set<string>>;
|
|
21
|
+
instanceNames?: Map<string, string>;
|
|
21
22
|
}
|
|
22
23
|
export interface RegionSelectorProps {
|
|
23
24
|
regionGroups: RegionGroup[];
|
|
@@ -25,8 +26,10 @@ export interface RegionSelectorProps {
|
|
|
25
26
|
onRegionsChange?: (regions: string[]) => void;
|
|
26
27
|
usedRegions?: UsedRegions;
|
|
27
28
|
isLoading?: boolean;
|
|
29
|
+
showSelectionDisplay?: boolean;
|
|
28
30
|
error?: string;
|
|
29
31
|
maxVisibleBadges?: number;
|
|
30
32
|
searchPlaceholder?: string;
|
|
33
|
+
hide?: string[];
|
|
31
34
|
class?: string;
|
|
32
35
|
}
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.section-wrap.clickable:hover:not(.disabled) {
|
|
226
|
-
background:
|
|
226
|
+
background: rgba(255, 255, 255, 0.05);
|
|
227
227
|
opacity: 0.8;
|
|
228
228
|
}
|
|
229
229
|
|
|
@@ -239,7 +239,7 @@
|
|
|
239
239
|
/* Active state */
|
|
240
240
|
.section-wrap.active {
|
|
241
241
|
border-bottom: 1px solid var(--background2);
|
|
242
|
-
background:
|
|
242
|
+
background: rgba(255, 255, 255, 0.03);
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
/* Disabled state */
|
|
@@ -95,8 +95,7 @@
|
|
|
95
95
|
const dropdownStyles = $derived(() => {
|
|
96
96
|
const base = {
|
|
97
97
|
borderRadius: 'var(--border-radius, 4px)',
|
|
98
|
-
background:
|
|
99
|
-
'var(--Action-actionSecondaryBackground, linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.10) 100%), rgba(255, 255, 255, 0.08))',
|
|
98
|
+
background: 'var(--background2)',
|
|
100
99
|
boxShadow: '0px 0.5px 1px 0px #000, 0px 0.5px 0.5px 0px rgba(255, 255, 255, 0.12) inset'
|
|
101
100
|
};
|
|
102
101
|
|
|
@@ -124,8 +123,7 @@
|
|
|
124
123
|
if (isHovered) {
|
|
125
124
|
return {
|
|
126
125
|
...base,
|
|
127
|
-
background:
|
|
128
|
-
'var(--Action-actionSecondaryBackgroundHover, linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.16) 100%), rgba(255, 255, 255, 0.14))'
|
|
126
|
+
background: 'var(--background3)'
|
|
129
127
|
};
|
|
130
128
|
}
|
|
131
129
|
|
|
@@ -667,7 +665,7 @@
|
|
|
667
665
|
}
|
|
668
666
|
|
|
669
667
|
.dropdown-list :global(.dropdown-item.hover-state) {
|
|
670
|
-
|
|
668
|
+
background: var(--background3);
|
|
671
669
|
}
|
|
672
670
|
|
|
673
671
|
.dropdown-list {
|
|
@@ -680,7 +678,7 @@
|
|
|
680
678
|
gap: 4px;
|
|
681
679
|
border-radius: 4px;
|
|
682
680
|
border: 1px solid var(--border-border-1, #363636);
|
|
683
|
-
background: var(--
|
|
681
|
+
background: var(--background2, #383838);
|
|
684
682
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15);
|
|
685
683
|
|
|
686
684
|
overflow-y: auto;
|
|
@@ -726,7 +724,7 @@
|
|
|
726
724
|
padding: 4px 8px;
|
|
727
725
|
gap: 4px;
|
|
728
726
|
align-self: stretch;
|
|
729
|
-
color: var(--
|
|
727
|
+
color: var(--text1);
|
|
730
728
|
|
|
731
729
|
font-size: 11px;
|
|
732
730
|
font-style: normal;
|
|
@@ -234,7 +234,8 @@
|
|
|
234
234
|
const styles = [
|
|
235
235
|
`font-weight: ${computedFontWeight()}`,
|
|
236
236
|
`font-size: ${computedFontSize()}`,
|
|
237
|
-
`color: ${fontColor}
|
|
237
|
+
`color: ${fontColor}`,
|
|
238
|
+
'word-break: normal'
|
|
238
239
|
];
|
|
239
240
|
|
|
240
241
|
if (capitalize) styles.push('text-transform: capitalize');
|
|
@@ -821,13 +822,14 @@
|
|
|
821
822
|
|
|
822
823
|
.labels.link-hover:hover:not(.disabled),
|
|
823
824
|
.labels.link-hover.is-busy {
|
|
824
|
-
background-color:
|
|
825
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
825
826
|
border-radius: 4px;
|
|
826
827
|
}
|
|
827
828
|
|
|
828
829
|
.labels :global(.target .message) {
|
|
829
830
|
font-weight: 500;
|
|
830
831
|
font-size: 11px;
|
|
832
|
+
word-break: normal;
|
|
831
833
|
}
|
|
832
834
|
|
|
833
835
|
.labels.disabled,
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
fallbackPlacements = [],
|
|
41
41
|
stopPropagation = true,
|
|
42
42
|
fontColor = 'var(--text2)',
|
|
43
|
-
bgColor = '',
|
|
43
|
+
bgColor = 'var(--background2)',
|
|
44
44
|
class: className = '',
|
|
45
45
|
targetClassName = '',
|
|
46
46
|
target,
|
|
@@ -331,9 +331,7 @@
|
|
|
331
331
|
bind:this={tooltipElement}
|
|
332
332
|
role="tooltip"
|
|
333
333
|
id={tooltipId}
|
|
334
|
-
style="position:{position}; width:{width}; padding:{padding}; {bgColor
|
|
335
|
-
? `background-color: ${bgColor};`
|
|
336
|
-
: ''}"
|
|
334
|
+
style="position:{position}; width:{width}; padding:{padding}; background-color: {bgColor};"
|
|
337
335
|
>
|
|
338
336
|
{#if tooltipIcon}
|
|
339
337
|
{@const Icon = tooltipIcon}
|
|
@@ -359,7 +357,7 @@
|
|
|
359
357
|
class="arrow"
|
|
360
358
|
id="arrow_{tooltipId}"
|
|
361
359
|
bind:this={arrowElement}
|
|
362
|
-
style=
|
|
360
|
+
style="background-color: ${bgColor};"
|
|
363
361
|
></div>
|
|
364
362
|
{/if}
|
|
365
363
|
</div>
|
|
@@ -367,12 +365,12 @@
|
|
|
367
365
|
|
|
368
366
|
<style>
|
|
369
367
|
.message {
|
|
370
|
-
background: var(--background3, #383838);
|
|
371
368
|
text-wrap: normal;
|
|
372
369
|
white-space: normal;
|
|
373
370
|
color: var(--text2, #b9b9b9);
|
|
374
371
|
font-weight: 500;
|
|
375
372
|
font-size: 11px;
|
|
373
|
+
word-break: normal;
|
|
376
374
|
}
|
|
377
375
|
.target {
|
|
378
376
|
display: inline-flex;
|
|
@@ -383,14 +381,10 @@
|
|
|
383
381
|
left: 0;
|
|
384
382
|
z-index: 99999999999;
|
|
385
383
|
border-radius: 4px;
|
|
386
|
-
background: var(--background3, #383838);
|
|
387
384
|
box-shadow:
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
0px 2px 6px 0px rgba(0, 0, 0, 0.08),
|
|
392
|
-
0px -0.5px 0.5px 0px rgb(0 0 0 / 0%) inset,
|
|
393
|
-
0px 0.5px 0.5px 0px rgb(255 255 255 / 34%) inset;
|
|
385
|
+
0 0.5px 1px 0 #000,
|
|
386
|
+
0 0.5px 0.5px 0 rgba(255, 255, 255, 0.12) inset;
|
|
387
|
+
|
|
394
388
|
color: var(--text2, #b9b9b9);
|
|
395
389
|
|
|
396
390
|
line-height: 120%;
|
|
@@ -403,7 +397,6 @@
|
|
|
403
397
|
}
|
|
404
398
|
.arrow {
|
|
405
399
|
z-index: 1;
|
|
406
|
-
background: var(--background3, #383838);
|
|
407
400
|
position: absolute;
|
|
408
401
|
width: 8px;
|
|
409
402
|
height: 8px;
|
package/dist/ui/index.css
CHANGED
|
@@ -6,53 +6,33 @@
|
|
|
6
6
|
--sb-thumb-color: #373737;
|
|
7
7
|
--sb-size: 6px;
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
--
|
|
11
|
-
--black: #000000;
|
|
12
|
-
--background2: #353535;
|
|
9
|
+
--background1: #1e1e1e;
|
|
10
|
+
--background2: #2e2e2e;
|
|
13
11
|
--background3: #383838;
|
|
14
|
-
--background-background-3: #363636;
|
|
15
12
|
--background4: #373737;
|
|
16
|
-
--background5: #
|
|
17
|
-
--backgroundInactive: #
|
|
18
|
-
--backgroundInverse: #
|
|
19
|
-
--
|
|
20
|
-
--Background-background4: #2b2b2b;
|
|
13
|
+
--background5: #444444;
|
|
14
|
+
--backgroundInactive: #2e2e2e;
|
|
15
|
+
--backgroundInverse: #ebebeb;
|
|
16
|
+
--black: #000000;
|
|
21
17
|
|
|
22
18
|
--actionPrimaryBackground: #006acc;
|
|
23
19
|
--actionPrimaryBackgroundHover: #187cd9;
|
|
24
|
-
--actionSecondaryBackground:
|
|
25
|
-
linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.1) 100%),
|
|
26
|
-
var(--background3);
|
|
27
|
-
--actionSecondaryBackgroundHover: linear-gradient(
|
|
28
|
-
180deg,
|
|
29
|
-
rgba(255, 255, 255, 0.18) 0%,
|
|
30
|
-
rgba(255, 255, 255, 0.16) 100%
|
|
31
|
-
);
|
|
32
20
|
--actionPrimaryText: #ffffff;
|
|
33
21
|
--actionPrimaryTextHover: #ffffff;
|
|
34
22
|
--actionSecondaryText: #e0e0e0;
|
|
35
23
|
--actionSecondaryTextHover: #e0e0e0;
|
|
36
24
|
|
|
37
|
-
--
|
|
38
|
-
--
|
|
25
|
+
--text1: #ebebeb;
|
|
26
|
+
--text2: #b9b9b9;
|
|
27
|
+
--text3: #a3a3a3;
|
|
28
|
+
--textInactive: #6d6d6d;
|
|
29
|
+
--textInverse: #171717;
|
|
39
30
|
|
|
40
|
-
--border1: rgba(255, 255, 255, 0.
|
|
41
|
-
--border2: rgba(255, 255, 255, 0.
|
|
31
|
+
--border1: rgba(255, 255, 255, 0.1);
|
|
32
|
+
--border2: rgba(255, 255, 255, 0.14);
|
|
42
33
|
--border3: rgba(255, 255, 255, 0.19);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
--text1: #ffffff;
|
|
46
|
-
--text2: rgba(255, 255, 255, 0.67);
|
|
47
|
-
--text3: rgba(255, 255, 255, 0.67);
|
|
48
|
-
--text-text-2: #ababab;
|
|
49
|
-
--text-text-1: #d9d9d9;
|
|
50
|
-
|
|
51
|
-
--action-action-secondary-background: #484848;
|
|
52
|
-
|
|
53
|
-
--text4: #696969;
|
|
54
|
-
--textInactive: rgba(255, 255, 255, 0.5);
|
|
55
|
-
--textInverse: #000000;
|
|
34
|
+
--actionSecondaryBorder: rgba(255, 255, 255, 0.1);
|
|
35
|
+
--actionSecondaryBorderHover: rgba(255, 255, 255, 0.15);
|
|
56
36
|
|
|
57
37
|
--blueText: #8ac2ff;
|
|
58
38
|
--blueIcon: #8ac2ff;
|
|
@@ -60,15 +40,15 @@
|
|
|
60
40
|
|
|
61
41
|
--greenBackground: #007a41;
|
|
62
42
|
--greenBackgroundHover: #0d8a4f;
|
|
63
|
-
--greenText: #
|
|
64
|
-
--greenIcon: #
|
|
43
|
+
--greenText: #63d489;
|
|
44
|
+
--greenIcon: #63d489;
|
|
65
45
|
--greenBorder: #259d4d;
|
|
66
|
-
--yellowBackground: #946b00;
|
|
67
46
|
|
|
47
|
+
--yellowBackground: #946b00;
|
|
68
48
|
--yellowBackgroundHover: #af7f00;
|
|
69
49
|
--yellowText: #f3c831;
|
|
70
50
|
--yellowIcon: #f3c831;
|
|
71
|
-
--yellowBorder: #
|
|
51
|
+
--yellowBorder: #d7a220;
|
|
72
52
|
|
|
73
53
|
--redBackground: #cf313b;
|
|
74
54
|
--redBackgroundHover: #cb3535;
|
|
@@ -76,16 +56,16 @@
|
|
|
76
56
|
--redIcon: #ff8a8a;
|
|
77
57
|
--redBorder: #e42f3a;
|
|
78
58
|
|
|
79
|
-
--orangeBackground: #
|
|
59
|
+
--orangeBackground: #bf4704;
|
|
80
60
|
--orangeBackgroundHover: #c95616;
|
|
81
|
-
--orangeText: #
|
|
82
|
-
--orangeIcon: #
|
|
61
|
+
--orangeText: #eba267;
|
|
62
|
+
--orangeIcon: #eba267;
|
|
83
63
|
--orangeBorder: #df640c;
|
|
84
64
|
|
|
85
65
|
--purpleBackground: #734ce0;
|
|
86
66
|
--purpleBackgroundHover: #815beb;
|
|
87
|
-
--purpleText: #
|
|
88
|
-
--purpleIcon: #
|
|
67
|
+
--purpleText: #b89eff;
|
|
68
|
+
--purpleIcon: #b89eff;
|
|
89
69
|
--purpleBorder: #875ffd;
|
|
90
70
|
|
|
91
71
|
/* Box shadows for buttons and inputs */
|
|
@@ -226,13 +226,13 @@
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.btn--secondary {
|
|
229
|
-
background: var(--
|
|
229
|
+
background: var(--background4);
|
|
230
230
|
color: var(--actionSecondaryText);
|
|
231
231
|
box-shadow: var(--boxShadows-action-secondary);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.btn--secondary:hover {
|
|
235
|
-
background: var(--
|
|
235
|
+
background: var(--background5);
|
|
236
236
|
color: var(--actionSecondaryTextHover);
|
|
237
237
|
}
|
|
238
238
|
|
|
@@ -427,13 +427,13 @@
|
|
|
427
427
|
}
|
|
428
428
|
|
|
429
429
|
.btn--secondary {
|
|
430
|
-
background: var(--
|
|
430
|
+
background: var(--background4);
|
|
431
431
|
color: var(--actionSecondaryText);
|
|
432
432
|
box-shadow: var(--boxShadows-action-secondary);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
.btn--secondary:hover:not(:disabled) {
|
|
436
|
-
background: var(--
|
|
436
|
+
background: var(--background5);
|
|
437
437
|
color: var(--actionSecondaryTextHover);
|
|
438
438
|
}
|
|
439
439
|
|