@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
|
@@ -131,21 +131,28 @@
|
|
|
131
131
|
</Toast>
|
|
132
132
|
{/if}
|
|
133
133
|
|
|
134
|
-
<style
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
134
|
+
<style lang="scss">
|
|
135
|
+
.text-editor {
|
|
136
|
+
margin: var(--sui-focus-ring-width);
|
|
137
|
+
width: calc(100% - var(--sui-focus-ring-width) * 2);
|
|
138
|
+
|
|
139
|
+
&.flex:not([hidden]) {
|
|
140
|
+
display: block; // Avoid Tailwind .flex class collisions
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
:global {
|
|
144
|
+
.sui.text-area {
|
|
145
|
+
margin: 0 !important;
|
|
146
|
+
width: 100% !important;
|
|
147
|
+
min-width: auto;
|
|
148
|
+
|
|
149
|
+
textarea {
|
|
150
|
+
border-start-start-radius: 0 !important;
|
|
151
|
+
border-start-end-radius: 0 !important;
|
|
152
|
+
border-end-start-radius: var(--sui-textbox-border-radius) !important;
|
|
153
|
+
border-end-end-radius: var(--sui-textbox-border-radius) !important;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
</style>
|
|
@@ -34,41 +34,48 @@
|
|
|
34
34
|
</Toolbar>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
37
|
-
<style
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
37
|
+
<style lang="scss">
|
|
38
|
+
.wrapper {
|
|
39
|
+
display: contents;
|
|
40
|
+
|
|
41
|
+
:global {
|
|
42
|
+
[role='toolbar'] {
|
|
43
|
+
position: sticky;
|
|
44
|
+
top: 0;
|
|
45
|
+
z-index: 100;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
gap: 4px;
|
|
49
|
+
border-width: 1px 1px 0;
|
|
50
|
+
border-style: solid;
|
|
51
|
+
border-color: var(--sui-textbox-border-color);
|
|
52
|
+
border-start-start-radius: var(--sui-textbox-border-radius);
|
|
53
|
+
border-start-end-radius: var(--sui-textbox-border-radius);
|
|
54
|
+
border-end-start-radius: 0;
|
|
55
|
+
border-end-end-radius: 0;
|
|
56
|
+
padding: 0 4px;
|
|
57
|
+
height: auto;
|
|
58
|
+
min-height: 40px;
|
|
59
|
+
background-color: var(--sui-tertiary-background-color);
|
|
60
|
+
|
|
61
|
+
@media (width < 768px) {
|
|
62
|
+
flex-wrap: wrap;
|
|
63
|
+
height: auto;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.sui.menu-button {
|
|
68
|
+
padding: 0 4px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.sui.button {
|
|
72
|
+
flex: none;
|
|
73
|
+
margin: 0 !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sui.button-group {
|
|
77
|
+
gap: 4px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
63
80
|
}
|
|
64
|
-
|
|
65
|
-
.wrapper :global(.sui.menu-button) {
|
|
66
|
-
padding: 0 4px;
|
|
67
|
-
}
|
|
68
|
-
.wrapper :global(.sui.button) {
|
|
69
|
-
flex: none;
|
|
70
|
-
margin: 0 !important;
|
|
71
|
-
}
|
|
72
|
-
.wrapper :global(.sui.button-group) {
|
|
73
|
-
gap: 4px;
|
|
74
|
-
}</style>
|
|
81
|
+
</style>
|
|
@@ -199,72 +199,91 @@
|
|
|
199
199
|
/>
|
|
200
200
|
</div>
|
|
201
201
|
|
|
202
|
-
<style
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
.number-input.flex:not([hidden]) {
|
|
209
|
-
display: inline-flex;
|
|
210
|
-
width: -moz-available;
|
|
211
|
-
width: -webkit-fill-available;
|
|
212
|
-
width: stretch;
|
|
213
|
-
min-width: 0;
|
|
214
|
-
}
|
|
215
|
-
.number-input :global(:not(:first-child)) :global(input) {
|
|
216
|
-
border-start-start-radius: 0;
|
|
217
|
-
border-end-start-radius: 0;
|
|
218
|
-
}
|
|
219
|
-
.number-input :global(:not(:last-child)) :global(input) {
|
|
220
|
-
border-start-end-radius: 0;
|
|
221
|
-
border-end-end-radius: 0;
|
|
222
|
-
}
|
|
223
|
-
.number-input :global(:not(.disabled)) :global(button[aria-disabled=true]) {
|
|
224
|
-
filter: grayscale(0) opacity(1);
|
|
225
|
-
}
|
|
226
|
-
.number-input :global(:not(.disabled)) :global(button[aria-disabled=true]) :global(*) {
|
|
227
|
-
filter: grayscale(1) opacity(0.35);
|
|
228
|
-
}
|
|
229
|
-
.number-input :global(.text-input) {
|
|
230
|
-
flex: auto;
|
|
231
|
-
margin: 0 !important;
|
|
232
|
-
width: 0;
|
|
233
|
-
min-width: 0 !important;
|
|
234
|
-
}
|
|
202
|
+
<style lang="scss">
|
|
203
|
+
.number-input {
|
|
204
|
+
display: inline-flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
margin: var(--sui-focus-ring-width);
|
|
207
|
+
min-width: var(--sui-textbox-singleline-min-width);
|
|
235
208
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
209
|
+
&.flex:not([hidden]) {
|
|
210
|
+
display: inline-flex; // Avoid Tailwind .flex class collisions
|
|
211
|
+
width: -moz-available;
|
|
212
|
+
width: -webkit-fill-available;
|
|
213
|
+
width: stretch;
|
|
214
|
+
min-width: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:global {
|
|
218
|
+
:not(:first-child) input {
|
|
219
|
+
border-start-start-radius: 0;
|
|
220
|
+
border-end-start-radius: 0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
:not(:last-child) input {
|
|
224
|
+
border-start-end-radius: 0;
|
|
225
|
+
border-end-end-radius: 0;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Maintain the border opacity
|
|
229
|
+
&:not(.disabled) {
|
|
230
|
+
button[aria-disabled='true'] {
|
|
231
|
+
filter: grayscale(0) opacity(1);
|
|
232
|
+
|
|
233
|
+
* {
|
|
234
|
+
filter: grayscale(1) opacity(0.35);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.text-input {
|
|
240
|
+
flex: auto;
|
|
241
|
+
margin: 0 !important;
|
|
242
|
+
width: 0; // = auto
|
|
243
|
+
min-width: 0 !important;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.buttons {
|
|
249
|
+
display: flex;
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
width: 24px;
|
|
252
|
+
height: var(--sui-textbox-height);
|
|
253
|
+
|
|
254
|
+
:global {
|
|
255
|
+
button {
|
|
256
|
+
flex: none;
|
|
257
|
+
margin: 0 !important;
|
|
258
|
+
border-width: 1px;
|
|
259
|
+
border-color: var(--sui-textbox-border-color);
|
|
260
|
+
width: 100%;
|
|
261
|
+
height: 50%;
|
|
262
|
+
|
|
263
|
+
&:first-of-type {
|
|
264
|
+
border-block-start-width: 1px;
|
|
265
|
+
border-block-end-width: 0;
|
|
266
|
+
border-inline-end-width: 0;
|
|
267
|
+
border-inline-start-width: 1px;
|
|
268
|
+
border-start-end-radius: 0;
|
|
269
|
+
border-end-end-radius: 0;
|
|
270
|
+
border-end-start-radius: 0;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&:last-of-type {
|
|
274
|
+
border-block-start-width: 0;
|
|
275
|
+
border-block-end-width: 1px;
|
|
276
|
+
border-inline-end-width: 0;
|
|
277
|
+
border-inline-start-width: 1px;
|
|
278
|
+
border-start-start-radius: 0;
|
|
279
|
+
border-start-end-radius: 0;
|
|
280
|
+
border-end-end-radius: 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.icon {
|
|
284
|
+
font-size: 20px;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
</style>
|
|
@@ -102,45 +102,55 @@
|
|
|
102
102
|
</Button>
|
|
103
103
|
</div>
|
|
104
104
|
|
|
105
|
-
<style
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
105
|
+
<style lang="scss">
|
|
106
|
+
.password-input {
|
|
107
|
+
display: inline-flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
margin: var(--sui-focus-ring-width);
|
|
110
|
+
min-width: var(--sui-textbox-singleline-min-width);
|
|
111
|
+
|
|
112
|
+
&.flex:not([hidden]) {
|
|
113
|
+
display: inline-flex; // Avoid Tailwind .flex class collisions
|
|
114
|
+
width: -moz-available;
|
|
115
|
+
width: -webkit-fill-available;
|
|
116
|
+
width: stretch;
|
|
117
|
+
min-width: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
:global {
|
|
121
|
+
.text-input {
|
|
122
|
+
flex: auto;
|
|
123
|
+
margin: 0 !important;
|
|
124
|
+
width: 0; // = auto
|
|
125
|
+
min-width: 0 !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
input {
|
|
129
|
+
border-start-end-radius: 0;
|
|
130
|
+
border-end-end-radius: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
button {
|
|
134
|
+
flex: none;
|
|
135
|
+
margin-block: 0;
|
|
136
|
+
margin-inline-start: -1px;
|
|
137
|
+
margin-inline-end: 0;
|
|
138
|
+
border-width: 1px;
|
|
139
|
+
border-color: var(--sui-textbox-border-color);
|
|
140
|
+
width: var(--sui-textbox-height);
|
|
141
|
+
aspect-ratio: 1 / 1;
|
|
142
|
+
|
|
143
|
+
&:last-child {
|
|
144
|
+
border-start-start-radius: 0;
|
|
145
|
+
border-start-end-radius: 4px;
|
|
146
|
+
border-end-end-radius: 4px;
|
|
147
|
+
border-end-start-radius: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.icon {
|
|
151
|
+
font-size: var(--sui-font-size-xx-large);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
</style>
|
|
@@ -115,56 +115,67 @@
|
|
|
115
115
|
{/if}
|
|
116
116
|
</div>
|
|
117
117
|
|
|
118
|
-
<style
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
.
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
118
|
+
<style lang="scss">
|
|
119
|
+
.search-bar {
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
position: relative;
|
|
123
|
+
margin: var(--sui-focus-ring-width);
|
|
124
|
+
min-width: var(--sui-textbox-singleline-min-width);
|
|
125
|
+
|
|
126
|
+
&.flex:not([hidden]) {
|
|
127
|
+
display: inline-flex; // Avoid Tailwind .flex class collisions
|
|
128
|
+
width: -moz-available;
|
|
129
|
+
width: -webkit-fill-available;
|
|
130
|
+
width: stretch;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
& > span {
|
|
135
|
+
position: absolute;
|
|
136
|
+
inset-block: 0;
|
|
137
|
+
inset-inline-start: 0;
|
|
138
|
+
inset-inline-end: auto;
|
|
139
|
+
z-index: 2;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
width: var(--sui-button-medium-height);
|
|
144
|
+
height: var(--sui-button-medium-height);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
:global {
|
|
148
|
+
.icon {
|
|
149
|
+
font-size: calc(var(--sui-textbox-height) * 0.6);
|
|
150
|
+
opacity: 0.5;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
& > button {
|
|
154
|
+
position: absolute;
|
|
155
|
+
inset-block: 0;
|
|
156
|
+
inset-inline-start: auto;
|
|
157
|
+
inset-inline-end: 0;
|
|
158
|
+
z-index: 2;
|
|
159
|
+
margin: 0 !important;
|
|
160
|
+
height: var(--sui-button-medium-height);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.label {
|
|
164
|
+
--sui-textbox-singleline-padding: 0 36px;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.text-input {
|
|
168
|
+
flex: auto;
|
|
169
|
+
margin: 0 !important;
|
|
170
|
+
width: 0; // = auto
|
|
171
|
+
min-width: 0 !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
input {
|
|
175
|
+
z-index: 1;
|
|
176
|
+
padding: 0 var(--sui-button-medium-height) !important;
|
|
177
|
+
width: 100%;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
</style>
|
|
@@ -96,49 +96,64 @@
|
|
|
96
96
|
</Button>
|
|
97
97
|
</div>
|
|
98
98
|
|
|
99
|
-
<style
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
99
|
+
<style lang="scss">
|
|
100
|
+
.secret-input {
|
|
101
|
+
display: inline-flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
margin: var(--sui-focus-ring-width);
|
|
104
|
+
min-width: var(--sui-textbox-singleline-min-width);
|
|
105
|
+
|
|
106
|
+
&.flex:not([hidden]) {
|
|
107
|
+
display: inline-flex; // Avoid Tailwind .flex class collisions
|
|
108
|
+
width: -moz-available;
|
|
109
|
+
width: -webkit-fill-available;
|
|
110
|
+
width: stretch;
|
|
111
|
+
min-width: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.show {
|
|
115
|
+
:global {
|
|
116
|
+
input {
|
|
117
|
+
-webkit-text-security: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
:global {
|
|
123
|
+
.text-input {
|
|
124
|
+
flex: auto;
|
|
125
|
+
margin: 0 !important;
|
|
126
|
+
width: 0; // = auto
|
|
127
|
+
min-width: 0 !important;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
input {
|
|
131
|
+
border-start-end-radius: 0;
|
|
132
|
+
border-end-end-radius: 0;
|
|
133
|
+
-webkit-text-security: disc;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
button {
|
|
137
|
+
flex: none;
|
|
138
|
+
margin-block: 0;
|
|
139
|
+
margin-inline-start: -1px;
|
|
140
|
+
margin-inline-end: 0;
|
|
141
|
+
border-width: 1px;
|
|
142
|
+
border-color: var(--sui-textbox-border-color);
|
|
143
|
+
width: var(--sui-textbox-height);
|
|
144
|
+
aspect-ratio: 1 / 1;
|
|
145
|
+
|
|
146
|
+
&:last-child {
|
|
147
|
+
border-start-start-radius: 0;
|
|
148
|
+
border-start-end-radius: 4px;
|
|
149
|
+
border-end-end-radius: 4px;
|
|
150
|
+
border-end-start-radius: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.icon {
|
|
154
|
+
font-size: var(--sui-font-size-xx-large);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
</style>
|