@sveltia/ui 0.41.5 → 0.42.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/dist/components/alert/alert.svelte +36 -30
- package/dist/components/alert/infobar.svelte +55 -45
- package/dist/components/bottom-navigation/bottom-navigation.svelte +21 -15
- package/dist/components/button/button-group.svelte +7 -5
- package/dist/components/button/button.svelte +274 -175
- package/dist/components/button/floating-action-button-wrapper.svelte +23 -18
- package/dist/components/button/select-button-group.svelte +57 -41
- package/dist/components/button/split-button.svelte +25 -18
- package/dist/components/calendar/calendar.svelte +103 -80
- package/dist/components/checkbox/checkbox-group.svelte +22 -19
- package/dist/components/checkbox/checkbox.svelte +91 -63
- package/dist/components/dialog/dialog.svelte +105 -87
- package/dist/components/dialog/prompt-dialog.svelte +5 -3
- package/dist/components/disclosure/disclosure.svelte +34 -21
- package/dist/components/divider/divider.svelte +18 -14
- package/dist/components/divider/spacer.svelte +13 -8
- package/dist/components/drawer/drawer.svelte +343 -190
- package/dist/components/grid/grid-body.svelte +16 -14
- package/dist/components/grid/grid-cell.svelte +5 -3
- package/dist/components/grid/grid-col-header.svelte +5 -3
- package/dist/components/grid/grid-foot.svelte +5 -3
- package/dist/components/grid/grid-head.svelte +5 -3
- package/dist/components/grid/grid-row-header.svelte +6 -4
- package/dist/components/grid/grid-row.svelte +6 -4
- package/dist/components/grid/grid.svelte +18 -12
- package/dist/components/icon/icon.svelte +7 -5
- package/dist/components/listbox/listbox.svelte +78 -61
- package/dist/components/listbox/option-group.svelte +15 -11
- package/dist/components/listbox/option.svelte +54 -39
- package/dist/components/menu/menu-item-group.svelte +5 -3
- package/dist/components/menu/menu-item.svelte +67 -51
- package/dist/components/menu/menu.svelte +21 -17
- package/dist/components/progressbar/progressbar.svelte +24 -15
- package/dist/components/radio/radio-group.svelte +40 -31
- package/dist/components/radio/radio.svelte +81 -63
- package/dist/components/resizable-pane/resizable-handle.svelte +60 -48
- package/dist/components/resizable-pane/resizable-pane-group.svelte +18 -14
- package/dist/components/select/combobox.svelte +135 -112
- package/dist/components/select/select-tags.svelte +73 -57
- package/dist/components/slider/slider.svelte +94 -74
- package/dist/components/switch/switch.svelte +115 -81
- package/dist/components/table/table-body.svelte +16 -14
- package/dist/components/table/table-cell.svelte +5 -3
- package/dist/components/table/table-col-header.svelte +5 -3
- package/dist/components/table/table-foot.svelte +5 -3
- package/dist/components/table/table-head.svelte +5 -3
- package/dist/components/table/table-row-header.svelte +6 -4
- package/dist/components/table/table-row.svelte +6 -4
- package/dist/components/table/table.svelte +18 -12
- package/dist/components/tabs/tab-box.svelte +9 -6
- package/dist/components/tabs/tab-list.svelte +91 -73
- package/dist/components/tabs/tab-panel.svelte +11 -7
- package/dist/components/tabs/tab-panels.svelte +19 -14
- package/dist/components/text-editor/code-editor.svelte +10 -7
- package/dist/components/text-editor/lexical-root.svelte +221 -160
- package/dist/components/text-editor/text-editor.svelte +25 -18
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +44 -37
- package/dist/components/text-field/number-input.svelte +87 -68
- package/dist/components/text-field/password-input.svelte +52 -42
- package/dist/components/text-field/search-bar.svelte +64 -53
- package/dist/components/text-field/secret-input.svelte +61 -46
- package/dist/components/text-field/text-area.svelte +80 -68
- package/dist/components/text-field/text-input.svelte +138 -106
- package/dist/components/toast/toast.svelte +104 -89
- package/dist/components/toolbar/toolbar.svelte +70 -54
- package/dist/components/typography/truncated-text.svelte +9 -7
- package/dist/components/util/app-shell.svelte +40 -493
- package/dist/components/util/empty-state.svelte +13 -11
- package/dist/components/util/group.svelte +5 -3
- package/dist/components/util/modal.svelte +59 -48
- package/dist/components/util/popup.svelte +87 -67
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -4
- package/dist/services/i18n.d.ts +6 -0
- package/dist/services/i18n.js +19 -14
- package/package.json +20 -20
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
{@render children?.()}
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
|
-
<style
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
<style lang="scss">
|
|
35
|
+
.grid-row-header {
|
|
36
|
+
display: table-cell;
|
|
37
|
+
height: var(--sui-secondary-row-height);
|
|
38
|
+
}
|
|
39
|
+
</style>
|
|
@@ -42,7 +42,9 @@
|
|
|
42
42
|
{@render children?.()}
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
<style
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
<style lang="scss">
|
|
46
|
+
.grid-row {
|
|
47
|
+
display: table-row;
|
|
48
|
+
height: var(--sui-primary-row-height);
|
|
49
|
+
}
|
|
50
|
+
</style>
|
|
@@ -55,15 +55,21 @@
|
|
|
55
55
|
{@render children?.()}
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
<style
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
<style lang="scss">
|
|
59
|
+
.grid {
|
|
60
|
+
display: table;
|
|
61
|
+
margin: var(--sui-focus-ring-width);
|
|
62
|
+
width: calc(100% - var(--sui-focus-ring-width) * 2);
|
|
63
|
+
|
|
64
|
+
&.data {
|
|
65
|
+
border-collapse: collapse;
|
|
66
|
+
|
|
67
|
+
:global {
|
|
68
|
+
:is(.grid-col-header, .grid-row-header, .grid-cell) {
|
|
69
|
+
border: 1px solid var(--sui-secondary-border-color);
|
|
70
|
+
padding: 8px 8px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -90,65 +90,82 @@
|
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
|
-
<style>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
93
|
+
<style lang="scss">
|
|
94
|
+
[role='listbox'] {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
margin: var(--sui-focus-ring-width);
|
|
98
|
+
border-width: var(--sui-listbox-border-width, 1px);
|
|
99
|
+
border-style: var(--sui-listbox-border-style, solid);
|
|
100
|
+
border-color: var(--sui-listbox-border-width, var(--sui-secondary-border-color));
|
|
101
|
+
border-radius: var(--sui-listbox-border-radius, 4px);
|
|
102
|
+
padding: var(--sui-listbox-padding, 4px);
|
|
103
|
+
min-width: var(--sui-listbox-min-width, calc(var(--sui-option-height) * 5));
|
|
104
|
+
color: var(--sui-listbox-foreground-color);
|
|
105
|
+
background-color: var(--sui-listbox-background-color);
|
|
106
|
+
font-family: var(--sui-control-font-family);
|
|
107
|
+
font-size: var(--sui-control-font-size);
|
|
108
|
+
line-height: var(--sui-control-line-height);
|
|
109
|
+
|
|
110
|
+
@media (pointer: coarse) {
|
|
111
|
+
gap: 8px 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
:global {
|
|
115
|
+
[role='separator'] {
|
|
116
|
+
margin: 4px 0;
|
|
117
|
+
background-color: var(--sui-control-border-color);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&[aria-invalid='true'] {
|
|
122
|
+
border-color: var(--sui-error-border-color);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.tabs {
|
|
126
|
+
padding: 0;
|
|
127
|
+
border-block-start-width: 0;
|
|
128
|
+
border-block-end-width: 0;
|
|
129
|
+
border-inline-end-width: 1px;
|
|
130
|
+
border-inline-start-width: 0;
|
|
131
|
+
border-color: var(--sui-control-border-color);
|
|
132
|
+
|
|
133
|
+
:global {
|
|
134
|
+
.option button {
|
|
135
|
+
justify-content: flex-start;
|
|
136
|
+
border-width: 0;
|
|
137
|
+
border-inline-end-width: 2px;
|
|
138
|
+
border-color: transparent;
|
|
139
|
+
padding: 0 12px;
|
|
140
|
+
border-start-end-radius: 0;
|
|
141
|
+
border-end-end-radius: 0;
|
|
142
|
+
height: var(--sui-tab-medium-height);
|
|
143
|
+
|
|
144
|
+
&[aria-selected='true'] {
|
|
145
|
+
border-color: var(--sui-primary-accent-color-light);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.icon {
|
|
149
|
+
display: none;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&.in-combobox:focus-visible {
|
|
156
|
+
outline-color: transparent;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&.filtered {
|
|
160
|
+
:global {
|
|
161
|
+
[role='separator'] {
|
|
162
|
+
display: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.inner {
|
|
169
|
+
display: contents;
|
|
112
170
|
}
|
|
113
|
-
|
|
114
|
-
[role=listbox] :global([role=separator]) {
|
|
115
|
-
margin: 4px 0;
|
|
116
|
-
background-color: var(--sui-control-border-color);
|
|
117
|
-
}
|
|
118
|
-
[role=listbox][aria-invalid=true] {
|
|
119
|
-
border-color: var(--sui-error-border-color);
|
|
120
|
-
}
|
|
121
|
-
[role=listbox].tabs {
|
|
122
|
-
padding: 0;
|
|
123
|
-
border-block-start-width: 0;
|
|
124
|
-
border-block-end-width: 0;
|
|
125
|
-
border-inline-end-width: 1px;
|
|
126
|
-
border-inline-start-width: 0;
|
|
127
|
-
border-color: var(--sui-control-border-color);
|
|
128
|
-
}
|
|
129
|
-
[role=listbox].tabs :global(.option) :global(button) {
|
|
130
|
-
justify-content: flex-start;
|
|
131
|
-
border-width: 0;
|
|
132
|
-
border-inline-end-width: 2px;
|
|
133
|
-
border-color: transparent;
|
|
134
|
-
padding: 0 12px;
|
|
135
|
-
border-start-end-radius: 0;
|
|
136
|
-
border-end-end-radius: 0;
|
|
137
|
-
height: var(--sui-tab-medium-height);
|
|
138
|
-
}
|
|
139
|
-
[role=listbox].tabs :global(.option) :global(button[aria-selected=true]) {
|
|
140
|
-
border-color: var(--sui-primary-accent-color-light);
|
|
141
|
-
}
|
|
142
|
-
[role=listbox].tabs :global(.option) :global(button) :global(.icon) {
|
|
143
|
-
display: none;
|
|
144
|
-
}
|
|
145
|
-
[role=listbox].in-combobox:focus-visible {
|
|
146
|
-
outline-color: transparent;
|
|
147
|
-
}
|
|
148
|
-
[role=listbox].filtered :global([role=separator]) {
|
|
149
|
-
display: none;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.inner {
|
|
153
|
-
display: contents;
|
|
154
|
-
}</style>
|
|
171
|
+
</style>
|
|
@@ -62,16 +62,20 @@
|
|
|
62
62
|
</div>
|
|
63
63
|
</div>
|
|
64
64
|
|
|
65
|
-
<style
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
<style lang="scss">
|
|
66
|
+
.option-group {
|
|
67
|
+
&:not(:first-child) {
|
|
68
|
+
margin: 12px 0 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
68
71
|
|
|
69
|
-
.label {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
72
|
+
.label {
|
|
73
|
+
margin: 8px;
|
|
74
|
+
color: var(--sui-secondary-foreground-color);
|
|
75
|
+
font-size: var(--sui-font-size-small);
|
|
76
|
+
}
|
|
74
77
|
|
|
75
|
-
.inner {
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
+
.inner {
|
|
79
|
+
display: contents;
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -84,42 +84,57 @@
|
|
|
84
84
|
</Button>
|
|
85
85
|
</div>
|
|
86
86
|
|
|
87
|
-
<style
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
.
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
87
|
+
<style lang="scss">
|
|
88
|
+
.option {
|
|
89
|
+
display: contents;
|
|
90
|
+
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
outline-width: 0 !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
:global {
|
|
96
|
+
&.wrap button {
|
|
97
|
+
white-space: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
button {
|
|
101
|
+
flex: none;
|
|
102
|
+
display: flex;
|
|
103
|
+
gap: 4px;
|
|
104
|
+
margin: 0 !important;
|
|
105
|
+
border-radius: var(--sui-option-border-radius);
|
|
106
|
+
padding: var(--sui-option-padding);
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: auto;
|
|
109
|
+
min-height: var(--sui-option-height);
|
|
110
|
+
|
|
111
|
+
&:active {
|
|
112
|
+
background-color: var(--sui-active-background-color);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&[aria-selected='true'] {
|
|
116
|
+
.icon.check {
|
|
117
|
+
color: var(--sui-primary-accent-color-text);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
* {
|
|
122
|
+
flex: none;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.label {
|
|
126
|
+
flex: auto;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:is(.focused, button:hover) {
|
|
131
|
+
color: var(--sui-highlight-foreground-color);
|
|
132
|
+
background-color: var(--sui-hover-background-color);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.icon.check {
|
|
136
|
+
margin: -2px;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
</style>
|
|
@@ -154,54 +154,70 @@
|
|
|
154
154
|
{/if}
|
|
155
155
|
</div>
|
|
156
156
|
|
|
157
|
-
<style
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
157
|
+
<style lang="scss">
|
|
158
|
+
.menuitem {
|
|
159
|
+
position: relative;
|
|
160
|
+
|
|
161
|
+
:global {
|
|
162
|
+
button {
|
|
163
|
+
display: flex;
|
|
164
|
+
gap: var(--sui-menuitem-gap, 4px);
|
|
165
|
+
align-items: var(--sui-menuitem-align-items, center);
|
|
166
|
+
border-radius: var(--sui-menuitem-border-radius, var(--sui-option-border-radius, 4px));
|
|
167
|
+
margin: 0 !important;
|
|
168
|
+
padding: var(--sui-menuitem-padding, 0 16px);
|
|
169
|
+
width: 100%;
|
|
170
|
+
min-width: var(--sui-menuitem-min-width, 160px);
|
|
171
|
+
height: var(--sui-menuitem-height, var(--sui-option-height));
|
|
172
|
+
color: var(--sui-menuitem-foreground-color, var(--sui-control-foreground-color, inherit));
|
|
173
|
+
background-color: var(--sui-menuitem-background-color, transparent);
|
|
174
|
+
font-size: var(--sui-menuitem-font-size, var(--sui-option-font-size));
|
|
175
|
+
font-weight: var(
|
|
176
|
+
--sui-menuitem-font-weight,
|
|
177
|
+
var(--sui-option-font-weight, var(--sui-font-weight-normal, normal))
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
&[aria-checked='true'] {
|
|
181
|
+
.icon {
|
|
182
|
+
color: var(--sui-primary-accent-color-text);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
color: var(--sui-highlight-foreground-color);
|
|
188
|
+
background-color: var(--sui-hover-background-color);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:active {
|
|
192
|
+
background-color: var(--sui-active-background-color);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
&:hover > [role='menu'] {
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
& > [role='menu'] {
|
|
201
|
+
position: absolute;
|
|
202
|
+
inset-block-start: 2px;
|
|
203
|
+
inset-block-end: auto;
|
|
204
|
+
inset-inline-start: calc(100% + 4px);
|
|
205
|
+
inset-inline-end: auto;
|
|
206
|
+
|
|
207
|
+
&:hover {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.content {
|
|
215
|
+
flex: auto;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.icon-outer {
|
|
219
|
+
flex: none;
|
|
220
|
+
width: 24px;
|
|
221
|
+
height: 24px;
|
|
222
|
+
}
|
|
223
|
+
</style>
|
|
@@ -55,22 +55,26 @@
|
|
|
55
55
|
{@render children?.()}
|
|
56
56
|
</div>
|
|
57
57
|
|
|
58
|
-
<style
|
|
59
|
-
display: flex;
|
|
60
|
-
flex-direction: column;
|
|
61
|
-
margin: 0;
|
|
62
|
-
border-width: var(--sui-menu-border-width, 1px);
|
|
63
|
-
border-style: var(--sui-menu-border-style, solid);
|
|
64
|
-
border-color: var(--sui-menu-border-width, var(--sui-secondary-border-color));
|
|
65
|
-
border-radius: var(--sui-menu-border-radius, 4px);
|
|
66
|
-
padding: var(--sui-menu-padding, 4px);
|
|
67
|
-
}
|
|
68
|
-
@media (pointer: coarse) {
|
|
58
|
+
<style lang="scss">
|
|
69
59
|
.menu {
|
|
70
|
-
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
margin: 0;
|
|
63
|
+
border-width: var(--sui-menu-border-width, 1px);
|
|
64
|
+
border-style: var(--sui-menu-border-style, solid);
|
|
65
|
+
border-color: var(--sui-menu-border-width, var(--sui-secondary-border-color));
|
|
66
|
+
border-radius: var(--sui-menu-border-radius, 4px);
|
|
67
|
+
padding: var(--sui-menu-padding, 4px);
|
|
68
|
+
|
|
69
|
+
@media (pointer: coarse) {
|
|
70
|
+
gap: 8px 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
:global {
|
|
74
|
+
[role='separator'] {
|
|
75
|
+
margin: var(--sui-menu-divider-margin, 4px);
|
|
76
|
+
background-color: var(--sui-menu-divider-color, var(--sui-control-border-color));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
71
79
|
}
|
|
72
|
-
|
|
73
|
-
.menu :global([role=separator]) {
|
|
74
|
-
margin: var(--sui-menu-divider-margin, 4px);
|
|
75
|
-
background-color: var(--sui-menu-divider-color, var(--sui-control-border-color));
|
|
76
|
-
}</style>
|
|
80
|
+
</style>
|
|
@@ -43,18 +43,27 @@
|
|
|
43
43
|
<div role="none" style:width="{now}%"></div>
|
|
44
44
|
</div>
|
|
45
45
|
|
|
46
|
-
<style
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
<style lang="scss">
|
|
47
|
+
.progressbar {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
border-width: var(--sui-progressbar-border-width, 1px);
|
|
50
|
+
border-style: var(--sui-progressbar-border-style, solid);
|
|
51
|
+
border-color: var(--sui-progressbar-border-color, var(--sui-control-border-color));
|
|
52
|
+
border-radius: var(--sui-progressbar-border-radius, 16px);
|
|
53
|
+
width: var(--sui-progressbar-width, 240px);
|
|
54
|
+
height: var(--sui-progressbar-height, 10px);
|
|
55
|
+
background-color: var(
|
|
56
|
+
--sui-progressbar-background-color,
|
|
57
|
+
var(--sui-secondary-background-color)
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
div {
|
|
61
|
+
height: 100%;
|
|
62
|
+
background-color: var(
|
|
63
|
+
--sui-progressbar-foreground-color,
|
|
64
|
+
var(--sui-primary-accent-color-light)
|
|
65
|
+
);
|
|
66
|
+
transition: width 250ms;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
</style>
|