@finsweet/webflow-apps-utils 1.0.37 → 1.0.39
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/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 +31 -55
- package/dist/ui/providers/GlobalProviderDemo.svelte +2 -2
- package/dist/ui/stores/forms/FormDemo.svelte +2 -2
- package/package.json +1 -1
|
@@ -298,7 +298,7 @@
|
|
|
298
298
|
|
|
299
299
|
.button--secondary {
|
|
300
300
|
background: var(
|
|
301
|
-
--
|
|
301
|
+
--background4,
|
|
302
302
|
linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.1) 100%),
|
|
303
303
|
rgba(255, 255, 255, 0.08)
|
|
304
304
|
);
|
|
@@ -307,7 +307,7 @@
|
|
|
307
307
|
|
|
308
308
|
.button--secondary:hover:not(:disabled) {
|
|
309
309
|
background: var(
|
|
310
|
-
--
|
|
310
|
+
--background5,
|
|
311
311
|
linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.16) 100%)
|
|
312
312
|
);
|
|
313
313
|
}
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
gap: 8px;
|
|
213
213
|
align-self: stretch;
|
|
214
214
|
border-radius: 4px;
|
|
215
|
-
background: var(--
|
|
215
|
+
background: var(--background2);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.icon {
|
|
@@ -236,7 +236,7 @@
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
.message {
|
|
239
|
-
color: var(--
|
|
239
|
+
color: var(--text2);
|
|
240
240
|
|
|
241
241
|
font-size: 11px;
|
|
242
242
|
font-style: normal;
|
|
@@ -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
|
@@ -1,58 +1,40 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600&display=swap');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
html,
|
|
4
|
+
body,
|
|
5
|
+
#app {
|
|
4
6
|
/* custom scrollbar related */
|
|
5
7
|
--sb-track-color: #1e1e1e;
|
|
6
8
|
--sb-thumb-color: #373737;
|
|
7
9
|
--sb-size: 6px;
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
--
|
|
11
|
-
--black: #000000;
|
|
12
|
-
--background2: #353535;
|
|
11
|
+
--background1: #1e1e1e;
|
|
12
|
+
--background2: #2e2e2e;
|
|
13
13
|
--background3: #383838;
|
|
14
|
-
--background-background-3: #363636;
|
|
15
14
|
--background4: #373737;
|
|
16
|
-
--background5: #
|
|
17
|
-
--backgroundInactive: #
|
|
18
|
-
--backgroundInverse: #
|
|
19
|
-
--
|
|
20
|
-
--Background-background4: #2b2b2b;
|
|
15
|
+
--background5: #444444;
|
|
16
|
+
--backgroundInactive: #2e2e2e;
|
|
17
|
+
--backgroundInverse: #ebebeb;
|
|
18
|
+
--black: #000000;
|
|
21
19
|
|
|
22
20
|
--actionPrimaryBackground: #006acc;
|
|
23
21
|
--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
22
|
--actionPrimaryText: #ffffff;
|
|
33
23
|
--actionPrimaryTextHover: #ffffff;
|
|
34
24
|
--actionSecondaryText: #e0e0e0;
|
|
35
25
|
--actionSecondaryTextHover: #e0e0e0;
|
|
36
26
|
|
|
37
|
-
--
|
|
38
|
-
--
|
|
27
|
+
--text1: #ebebeb;
|
|
28
|
+
--text2: #b9b9b9;
|
|
29
|
+
--text3: #a3a3a3;
|
|
30
|
+
--textInactive: #6d6d6d;
|
|
31
|
+
--textInverse: #171717;
|
|
39
32
|
|
|
40
|
-
--border1: rgba(255, 255, 255, 0.
|
|
41
|
-
--border2: rgba(255, 255, 255, 0.
|
|
33
|
+
--border1: rgba(255, 255, 255, 0.1);
|
|
34
|
+
--border2: rgba(255, 255, 255, 0.14);
|
|
42
35
|
--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;
|
|
36
|
+
--actionSecondaryBorder: rgba(255, 255, 255, 0.1);
|
|
37
|
+
--actionSecondaryBorderHover: rgba(255, 255, 255, 0.15);
|
|
56
38
|
|
|
57
39
|
--blueText: #8ac2ff;
|
|
58
40
|
--blueIcon: #8ac2ff;
|
|
@@ -60,15 +42,15 @@
|
|
|
60
42
|
|
|
61
43
|
--greenBackground: #007a41;
|
|
62
44
|
--greenBackgroundHover: #0d8a4f;
|
|
63
|
-
--greenText: #
|
|
64
|
-
--greenIcon: #
|
|
45
|
+
--greenText: #63d489;
|
|
46
|
+
--greenIcon: #63d489;
|
|
65
47
|
--greenBorder: #259d4d;
|
|
66
|
-
--yellowBackground: #946b00;
|
|
67
48
|
|
|
49
|
+
--yellowBackground: #946b00;
|
|
68
50
|
--yellowBackgroundHover: #af7f00;
|
|
69
51
|
--yellowText: #f3c831;
|
|
70
52
|
--yellowIcon: #f3c831;
|
|
71
|
-
--yellowBorder: #
|
|
53
|
+
--yellowBorder: #d7a220;
|
|
72
54
|
|
|
73
55
|
--redBackground: #cf313b;
|
|
74
56
|
--redBackgroundHover: #cb3535;
|
|
@@ -76,16 +58,16 @@
|
|
|
76
58
|
--redIcon: #ff8a8a;
|
|
77
59
|
--redBorder: #e42f3a;
|
|
78
60
|
|
|
79
|
-
--orangeBackground: #
|
|
61
|
+
--orangeBackground: #bf4704;
|
|
80
62
|
--orangeBackgroundHover: #c95616;
|
|
81
|
-
--orangeText: #
|
|
82
|
-
--orangeIcon: #
|
|
63
|
+
--orangeText: #eba267;
|
|
64
|
+
--orangeIcon: #eba267;
|
|
83
65
|
--orangeBorder: #df640c;
|
|
84
66
|
|
|
85
67
|
--purpleBackground: #734ce0;
|
|
86
68
|
--purpleBackgroundHover: #815beb;
|
|
87
|
-
--purpleText: #
|
|
88
|
-
--purpleIcon: #
|
|
69
|
+
--purpleText: #b89eff;
|
|
70
|
+
--purpleIcon: #b89eff;
|
|
89
71
|
--purpleBorder: #875ffd;
|
|
90
72
|
|
|
91
73
|
/* Box shadows for buttons and inputs */
|
|
@@ -146,6 +128,10 @@
|
|
|
146
128
|
/* Finsweet Components: super app specific sizes */
|
|
147
129
|
--components-navbar-height: 43px;
|
|
148
130
|
--left-sidebar-width: 274px;
|
|
131
|
+
|
|
132
|
+
height: 100%;
|
|
133
|
+
background: var(--background1);
|
|
134
|
+
font-family: var(--font-stack);
|
|
149
135
|
}
|
|
150
136
|
|
|
151
137
|
*,
|
|
@@ -154,16 +140,6 @@
|
|
|
154
140
|
box-sizing: border-box;
|
|
155
141
|
}
|
|
156
142
|
|
|
157
|
-
html,
|
|
158
|
-
body,
|
|
159
|
-
#app {
|
|
160
|
-
height: 100%;
|
|
161
|
-
background: var(--background1);
|
|
162
|
-
font-family: var(--font-stack);
|
|
163
|
-
/* Prevents layout shift when scrollbar appears, does not work in Safari browsers */
|
|
164
|
-
/* scrollbar-gutter: stable; */
|
|
165
|
-
}
|
|
166
|
-
|
|
167
143
|
body {
|
|
168
144
|
margin: 0;
|
|
169
145
|
color: var(--text1);
|
|
@@ -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
|
|