@happyvertical/smrt-svelte 0.60.16 → 0.60.18
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/AGENTS.md +1 -0
- package/dist/browser-ai/svelte/components/DownloadProgress.svelte +61 -48
- package/dist/browser-ai/svelte/components/ModelStatusControl.svelte +32 -31
- package/dist/browser-ai/svelte/components/STTTest.svelte +95 -91
- package/dist/browser-ai/svelte/components/VoiceInput.svelte +64 -66
- package/dist/components/app/AppShell.svelte +137 -29
- package/dist/components/app/DockToggles.svelte +34 -24
- package/dist/components/app/OwnerSetupForm.svelte +11 -5
- package/dist/components/app/ShellColorSchemeToggle.svelte +8 -1
- package/dist/components/app/ShellSettingsPage.svelte +5 -1
- package/dist/components/audit/AuditList.svelte +11 -2
- package/dist/components/audit/RecordHistory.svelte +43 -31
- package/dist/components/board/Board.svelte +127 -22
- package/dist/components/command-palette/CommandPaletteDialog.svelte +97 -93
- package/dist/components/command-palette/CommandPaletteTrigger.svelte +15 -11
- package/dist/components/cookbook/CookbookSectionOverview.svelte +1 -1
- package/dist/components/cookbook/CookbookSectionPage.svelte +30 -27
- package/dist/components/forms/AddressInput.svelte +73 -71
- package/dist/components/forms/CheckboxInput.svelte +57 -49
- package/dist/components/forms/DateRangeInput.svelte +110 -121
- package/dist/components/forms/DateTimeInput.svelte +68 -64
- package/dist/components/forms/FileUpload.svelte +96 -81
- package/dist/components/forms/Form.svelte +78 -79
- package/dist/components/forms/FormMicButton.svelte +53 -44
- package/dist/components/forms/FormScope.svelte +7 -3
- package/dist/components/forms/MeasurementInput.svelte +59 -53
- package/dist/components/forms/MoneyInput.svelte +37 -33
- package/dist/components/forms/NumberInput.svelte +37 -32
- package/dist/components/forms/PhoneInput.svelte +107 -101
- package/dist/components/forms/SearchInput.svelte +98 -95
- package/dist/components/forms/SelectInput.svelte +68 -61
- package/dist/components/forms/TextInput.svelte +87 -77
- package/dist/components/forms/TextareaInput.svelte +85 -75
- package/dist/components/import-export/ImportExport.svelte +32 -21
- package/dist/components/module/ModulePanel.svelte +33 -24
- package/dist/components/notifications/NotificationBell.svelte +92 -22
- package/dist/components/overview/OverviewAssistantUndo.svelte +8 -5
- package/dist/components/overview/OverviewGrid.svelte +230 -58
- package/dist/components/overview/WidgetOptionsForm.svelte +25 -8
- package/dist/components/overview/widgets/LineItemsWidget.svelte +92 -28
- package/dist/components/overview/widgets/MetricWidget.svelte +46 -11
- package/dist/components/overview/widgets/NoteWidget.svelte +57 -15
- package/dist/components/overview/widgets/RecordListWidget.svelte +79 -19
- package/dist/components/overview/widgets/RecordTable.svelte +22 -6
- package/dist/components/overview/widgets/RelatedWidget.svelte +35 -9
- package/dist/components/overview/widgets/ShortcutsWidget.svelte +120 -25
- package/dist/components/screens/DetailScreen.svelte +43 -33
- package/dist/components/screens/EditForm.svelte +17 -9
- package/dist/components/screens/ListScreen.svelte +8 -4
- package/dist/components/screens/RecordHeader.svelte +101 -28
- package/dist/components/screens/RecordScreen.svelte +37 -29
- package/dist/components/settings/SettingsCatalog.svelte +62 -56
- package/dist/components/sortable/Sortable.svelte +148 -31
- package/dist/components/workspace/Breadcrumbs.svelte +30 -28
- package/dist/components/workspace/NavTree.svelte +120 -115
- package/dist/components/workspace/RoleShell.svelte +26 -15
- package/dist/components/workspace/WorkspaceShell.svelte +277 -290
- package/dist/components/workspace/admin-shell/ActivityItem.svelte +18 -16
- package/dist/components/workspace/admin-shell/ActivityList.svelte +7 -2
- package/dist/components/workspace/admin-shell/ActivityTicker.svelte +76 -23
- package/dist/components/workspace/admin-shell/ActivityToasts.svelte +14 -14
- package/dist/components/workspace/admin-shell/AdminShell.svelte +626 -604
- package/dist/components/workspace/admin-shell/AppScopePanel.svelte +11 -13
- package/dist/components/workspace/admin-shell/HotkeyInput.svelte +8 -3
- package/dist/components/workspace/admin-shell/PhoneBottomBar.svelte +83 -59
- package/dist/components/workspace/admin-shell/PhoneTopBar.svelte +22 -17
- package/dist/components/workspace/admin-shell/ShellBrand.svelte +43 -19
- package/dist/components/workspace/admin-shell/ShellCorner.svelte +5 -2
- package/dist/components/workspace/admin-shell/ShellIconButton.svelte +37 -9
- package/dist/components/workspace/admin-shell/ShellLayoutEditor.svelte +98 -26
- package/dist/components/workspace/admin-shell/ShellNavEditor.svelte +204 -45
- package/dist/components/workspace/admin-shell/ShellNavToggle.svelte +8 -4
- package/dist/components/workspace/admin-shell/ShellSectionIcon.svelte +9 -1
- package/dist/components/workspace/admin-shell/ShellSectionMenu.svelte +281 -62
- package/dist/components/workspace/admin-shell/ShellSettingsPanel.svelte +20 -26
- package/dist/components/workspace/admin-shell/ShellTitle.svelte +9 -5
- package/dist/components/workspace/admin-shell/ShortcutsOverlay.svelte +5 -4
- package/dist/components/workspace/admin-shell/SystemScopePanel.svelte +22 -22
- package/dist/components/workspace/admin-shell/SystemStatusChips.svelte +31 -17
- package/dist/components/workspace/admin-shell/TenantNav.svelte +144 -103
- package/dist/components/workspace/admin-shell/WorkspaceAccountMenu.svelte +109 -80
- package/dist/components/workspace/tools-dock/ToolsDock.svelte +167 -159
- package/dist/components/workspace/types.d.ts +1 -1
- package/dist/mcp-apps/McpAppsBridge.svelte +15 -11
- package/dist/smrt-knowledge.okf.md +3 -2
- package/dist/svelte/playground/ShellStylelessPreview.svelte +47 -0
- package/dist/svelte/playground/ShellStylelessPreview.svelte.d.ts +4 -0
- package/dist/svelte/playground/ShellStylelessPreview.svelte.d.ts.map +1 -0
- package/dist/svelte/playground.d.ts +18 -0
- package/dist/svelte/playground.d.ts.map +1 -0
- package/dist/svelte/playground.js +14 -0
- package/package.json +21 -16
|
@@ -132,17 +132,17 @@ function handleChange(e: Event) {
|
|
|
132
132
|
</script>
|
|
133
133
|
|
|
134
134
|
<div
|
|
135
|
-
class="smrt-select-
|
|
136
|
-
class:smrt-
|
|
137
|
-
class:
|
|
138
|
-
class:disabled
|
|
139
|
-
class:
|
|
135
|
+
class="smrt-select-input__root"
|
|
136
|
+
class:smrt-select-input__mode={isSmrt}
|
|
137
|
+
class:smrt-select-input__focused={isFocused}
|
|
138
|
+
class:smrt-select-input__disabled={disabled}
|
|
139
|
+
class:smrt-select-input__has-value={!!value} data-smrt-component="SelectInput"
|
|
140
140
|
>
|
|
141
141
|
{#if label}
|
|
142
142
|
<FieldLabel id={labelId} for={name} {label} {required} />
|
|
143
143
|
{/if}
|
|
144
|
-
<div class="
|
|
145
|
-
<div class="
|
|
144
|
+
<div class="smrt-select-input__container" data-smrt-part="field">
|
|
145
|
+
<div class="smrt-select-input__content" data-smrt-part="body">
|
|
146
146
|
<select
|
|
147
147
|
id={name}
|
|
148
148
|
aria-labelledby={label ? labelId : undefined}
|
|
@@ -150,7 +150,8 @@ function handleChange(e: Event) {
|
|
|
150
150
|
{value}
|
|
151
151
|
{disabled}
|
|
152
152
|
{required}
|
|
153
|
-
class="
|
|
153
|
+
class="smrt-select-input__input"
|
|
154
|
+
data-smrt-part="input"
|
|
154
155
|
aria-describedby={`${name}-supporting`}
|
|
155
156
|
onchange={handleChange}
|
|
156
157
|
onfocus={() => isFocused = true}
|
|
@@ -165,109 +166,115 @@ function handleChange(e: Event) {
|
|
|
165
166
|
</select>
|
|
166
167
|
</div>
|
|
167
168
|
|
|
168
|
-
<div class="
|
|
169
|
+
<div class="smrt-select-input__trailing-icon" data-smrt-part="icon">
|
|
169
170
|
<Icon name="chevron-down" size={24} />
|
|
170
171
|
</div>
|
|
171
172
|
|
|
172
|
-
<div class="
|
|
173
|
+
<div class="smrt-select-input__active-indicator" data-smrt-part="indicator"></div>
|
|
173
174
|
</div>
|
|
174
175
|
|
|
175
|
-
<div id={`${name}-supporting`} class="
|
|
176
|
+
<div id={`${name}-supporting`} class="smrt-select-input__supporting-text" data-smrt-part="description" aria-live="polite">
|
|
176
177
|
{#if description && isFocused}
|
|
177
|
-
<span class="
|
|
178
|
+
<span class="smrt-select-input__info" data-smrt-part="description">{description}</span>
|
|
178
179
|
{/if}
|
|
179
180
|
</div>
|
|
180
181
|
</div>
|
|
181
182
|
|
|
182
183
|
<style>
|
|
183
184
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
184
|
-
@layer smrt.
|
|
185
|
-
.smrt-select-
|
|
186
|
-
--smrt-select-input-field-color: var(--smrt-color-on-surface-variant);
|
|
187
|
-
--smrt-select-input-field-bg: var(--smrt-color-surface-container-highest);
|
|
188
|
-
--smrt-select-input-field-active: var(--smrt-color-primary);
|
|
189
|
-
|
|
185
|
+
@layer smrt.structure {
|
|
186
|
+
.smrt-select-input__root {
|
|
190
187
|
display: flex;
|
|
191
188
|
flex-direction: column;
|
|
192
189
|
width: 100%;
|
|
193
190
|
min-width: 0;
|
|
194
191
|
}
|
|
195
|
-
|
|
196
|
-
.container {
|
|
192
|
+
.smrt-select-input__container {
|
|
197
193
|
position: relative;
|
|
198
194
|
display: flex;
|
|
199
195
|
align-items: center;
|
|
200
|
-
background-color: var(--smrt-color-surface);
|
|
201
|
-
border: var(--smrt-hairline);
|
|
202
|
-
border-radius: var(--smrt-radius-small);
|
|
203
196
|
min-height: 40px;
|
|
204
197
|
padding: 0 var(--smrt-spacing-3);
|
|
205
|
-
transition: background-color var(--smrt-duration-short3, 200ms) var(--smrt-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
206
198
|
}
|
|
207
|
-
|
|
208
|
-
.container:hover {
|
|
209
|
-
background-color: var(--smrt-color-surface-container-high);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.content {
|
|
199
|
+
.smrt-select-input__content {
|
|
213
200
|
flex: 1;
|
|
214
201
|
display: flex;
|
|
215
202
|
flex-direction: column;
|
|
216
203
|
justify-content: center;
|
|
217
204
|
height: 100%;
|
|
218
|
-
|
|
219
|
-
|
|
205
|
+
}
|
|
206
|
+
.smrt-select-input__input {
|
|
207
|
+
width: 100%;
|
|
208
|
+
padding: 0;
|
|
209
|
+
margin: 0;
|
|
210
|
+
height: 24px;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
}
|
|
213
|
+
.smrt-select-input__trailing-icon {
|
|
214
|
+
display: flex;
|
|
215
|
+
align-items: center;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
margin-right: -4px;
|
|
218
|
+
pointer-events: none;
|
|
219
|
+
}
|
|
220
|
+
.smrt-select-input__active-indicator {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
.smrt-select-input__supporting-text {
|
|
224
|
+
padding: var(--smrt-spacing-1) 0 0;
|
|
225
|
+
}
|
|
226
|
+
.smrt-select-input__disabled {
|
|
227
|
+
pointer-events: none;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
220
230
|
|
|
221
|
-
|
|
231
|
+
@layer smrt.theme {
|
|
232
|
+
.smrt-select-input__root {
|
|
233
|
+
--smrt-select-input-field-color: var(--smrt-color-on-surface-variant);
|
|
234
|
+
--smrt-select-input-field-bg: var(--smrt-color-surface-container-highest);
|
|
235
|
+
--smrt-select-input-field-active: var(--smrt-color-primary);
|
|
236
|
+
}
|
|
237
|
+
.smrt-select-input__container {
|
|
238
|
+
background-color: var(--smrt-color-surface);
|
|
239
|
+
border: var(--smrt-hairline);
|
|
240
|
+
border-radius: var(--smrt-radius-small);
|
|
241
|
+
transition: background-color var(--smrt-duration-short3, 200ms) var(--smrt-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
242
|
+
}
|
|
243
|
+
.smrt-select-input__container:hover {
|
|
244
|
+
background-color: var(--smrt-color-surface-container-high);
|
|
245
|
+
}
|
|
246
|
+
.smrt-select-input__input {
|
|
222
247
|
border: none;
|
|
223
248
|
background: transparent;
|
|
224
249
|
font-size: var(--smrt-typography-body-large-size, 1rem);
|
|
225
250
|
line-height: var(--smrt-typography-body-large-line-height, 1.5);
|
|
226
251
|
letter-spacing: var(--smrt-typography-body-large-tracking);
|
|
227
252
|
color: var(--smrt-color-on-surface);
|
|
228
|
-
width: 100%;
|
|
229
|
-
padding: 0;
|
|
230
|
-
margin: 0;
|
|
231
|
-
height: 24px;
|
|
232
253
|
appearance: none;
|
|
233
|
-
cursor: pointer;
|
|
234
254
|
}
|
|
235
|
-
|
|
236
|
-
.input:focus {
|
|
255
|
+
.smrt-select-input__input:focus {
|
|
237
256
|
outline: none;
|
|
238
257
|
}
|
|
239
|
-
|
|
240
|
-
.trailing-icon {
|
|
241
|
-
display: flex;
|
|
242
|
-
align-items: center;
|
|
243
|
-
justify-content: center;
|
|
258
|
+
.smrt-select-input__trailing-icon {
|
|
244
259
|
color: var(--smrt-select-input-field-color);
|
|
245
|
-
pointer-events: none;
|
|
246
|
-
margin-right: -4px;
|
|
247
260
|
}
|
|
248
|
-
|
|
249
|
-
.active-indicator { display: none; }
|
|
250
|
-
|
|
251
|
-
.focused .container {
|
|
261
|
+
.smrt-select-input__focused .smrt-select-input__container {
|
|
252
262
|
border-color: var(--smrt-select-input-field-active);
|
|
253
263
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--smrt-select-input-field-active) 10%, transparent);
|
|
254
264
|
}
|
|
255
|
-
|
|
256
|
-
.supporting-text {
|
|
257
|
-
padding: var(--smrt-spacing-1) 0 0;
|
|
265
|
+
.smrt-select-input__supporting-text {
|
|
258
266
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
259
267
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
.
|
|
268
|
+
.smrt-select-input__info {
|
|
269
|
+
color: var(--smrt-color-on-surface-variant);
|
|
270
|
+
}
|
|
271
|
+
.smrt-select-input__disabled {
|
|
264
272
|
opacity: 0.38;
|
|
265
|
-
pointer-events: none;
|
|
266
273
|
}
|
|
267
|
-
|
|
268
274
|
/* Smrt mode overrides */
|
|
269
|
-
.smrt-
|
|
275
|
+
.smrt-select-input__mode {
|
|
270
276
|
--smrt-select-input-field-active: var(--smrt-color-tertiary);
|
|
271
277
|
}
|
|
272
278
|
}
|
|
279
|
+
|
|
273
280
|
</style>
|
|
@@ -259,19 +259,19 @@ function handleInput(e: Event) {
|
|
|
259
259
|
</script>
|
|
260
260
|
|
|
261
261
|
<div
|
|
262
|
-
class="smrt-text-
|
|
263
|
-
class:smrt-
|
|
264
|
-
class:
|
|
265
|
-
class:
|
|
266
|
-
class:disabled
|
|
267
|
-
class:
|
|
268
|
-
class:
|
|
262
|
+
class="smrt-text-input__root"
|
|
263
|
+
class:smrt-text-input__mode={isSmrt}
|
|
264
|
+
class:smrt-text-input__focused={isFocused}
|
|
265
|
+
class:smrt-text-input__invalid={showInvalid}
|
|
266
|
+
class:smrt-text-input__disabled={disabled}
|
|
267
|
+
class:smrt-text-input__has-value={!!value}
|
|
268
|
+
class:smrt-text-input__listening={isHolding} data-smrt-component="TextInput"
|
|
269
269
|
>
|
|
270
270
|
{#if label}
|
|
271
271
|
<FieldLabel id={labelId} for={name} {label} {required} />
|
|
272
272
|
{/if}
|
|
273
|
-
<div class="
|
|
274
|
-
<div class="
|
|
273
|
+
<div class="smrt-text-input__container" data-smrt-part="field">
|
|
274
|
+
<div class="smrt-text-input__content" data-smrt-part="body">
|
|
275
275
|
<input
|
|
276
276
|
bind:this={inputEl}
|
|
277
277
|
id={name}
|
|
@@ -282,7 +282,8 @@ function handleInput(e: Event) {
|
|
|
282
282
|
{value}
|
|
283
283
|
disabled={disabled || isProcessing}
|
|
284
284
|
{required}
|
|
285
|
-
class="
|
|
285
|
+
class="smrt-text-input__input"
|
|
286
|
+
data-smrt-part="input"
|
|
286
287
|
aria-invalid={showInvalid ? 'true' : undefined}
|
|
287
288
|
aria-describedby={`${name}-supporting`}
|
|
288
289
|
oninput={handleInput}
|
|
@@ -299,8 +300,9 @@ function handleInput(e: Event) {
|
|
|
299
300
|
{#if isSmrt}
|
|
300
301
|
<button
|
|
301
302
|
type="button"
|
|
302
|
-
class="
|
|
303
|
-
class:
|
|
303
|
+
class="smrt-text-input__mic-btn"
|
|
304
|
+
class:smrt-text-input__active={isHolding}
|
|
305
|
+
data-smrt-part="trigger"
|
|
304
306
|
{disabled}
|
|
305
307
|
use:ripple
|
|
306
308
|
onclick={handleMicClick}
|
|
@@ -316,132 +318,140 @@ function handleInput(e: Event) {
|
|
|
316
318
|
</button>
|
|
317
319
|
{/if}
|
|
318
320
|
|
|
319
|
-
<div class="
|
|
321
|
+
<div class="smrt-text-input__active-indicator" data-smrt-part="indicator"></div>
|
|
320
322
|
</div>
|
|
321
323
|
|
|
322
|
-
<div id={`${name}-supporting`} class="
|
|
324
|
+
<div id={`${name}-supporting`} class="smrt-text-input__supporting-text" data-smrt-part="description" aria-live="polite">
|
|
323
325
|
{#if isInitializing}
|
|
324
|
-
<span class="
|
|
326
|
+
<span class="smrt-text-input__info" data-smrt-part="description">{t(M['ui.text_input.downloading_model'], { progress: downloadProgress })}</span>
|
|
325
327
|
{:else if isHolding}
|
|
326
|
-
<span class="
|
|
328
|
+
<span class="smrt-text-input__success" data-smrt-part="status">Recording...</span>
|
|
327
329
|
{:else if isProcessing}
|
|
328
|
-
<span class="
|
|
330
|
+
<span class="smrt-text-input__info" data-smrt-part="description">Processing...</span>
|
|
329
331
|
{:else if processError}
|
|
330
|
-
<span class="error">{processError}</span>
|
|
332
|
+
<span class="smrt-text-input__error" data-smrt-part="error">{processError}</span>
|
|
331
333
|
{:else if showInvalid}
|
|
332
|
-
<span class="error">{t(M['ui.text_input.invalid_email'])}</span>
|
|
334
|
+
<span class="smrt-text-input__error" data-smrt-part="error">{t(M['ui.text_input.invalid_email'])}</span>
|
|
333
335
|
{:else if description && isFocused}
|
|
334
|
-
<span class="
|
|
336
|
+
<span class="smrt-text-input__info" data-smrt-part="description">{description}</span>
|
|
335
337
|
{/if}
|
|
336
338
|
</div>
|
|
337
339
|
</div>
|
|
338
340
|
|
|
339
341
|
<style>
|
|
340
342
|
@layer smrt.reset, smrt.structure, smrt.theme;
|
|
341
|
-
@layer smrt.
|
|
342
|
-
.smrt-text-
|
|
343
|
-
--smrt-text-input-field-color: var(--smrt-color-on-surface-variant);
|
|
344
|
-
--smrt-text-input-field-bg: var(--smrt-color-surface-container-highest);
|
|
345
|
-
--smrt-text-input-field-active: var(--smrt-color-primary);
|
|
346
|
-
|
|
343
|
+
@layer smrt.structure {
|
|
344
|
+
.smrt-text-input__root {
|
|
347
345
|
display: flex;
|
|
348
346
|
flex-direction: column;
|
|
349
347
|
width: 100%;
|
|
350
348
|
min-width: 0;
|
|
351
349
|
}
|
|
352
|
-
|
|
353
|
-
.container {
|
|
350
|
+
.smrt-text-input__container {
|
|
354
351
|
position: relative;
|
|
355
352
|
display: flex;
|
|
356
353
|
align-items: center;
|
|
357
|
-
background-color: var(--smrt-color-surface);
|
|
358
|
-
border: var(--smrt-hairline);
|
|
359
|
-
border-radius: var(--smrt-radius-small);
|
|
360
354
|
min-height: 40px;
|
|
361
355
|
padding: 0 var(--smrt-spacing-3);
|
|
362
|
-
transition: background-color var(--smrt-duration-short3, 200ms) var(--smrt-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
363
356
|
}
|
|
364
|
-
|
|
365
|
-
.container:hover {
|
|
366
|
-
background-color: var(--smrt-color-surface-container-high);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.content {
|
|
357
|
+
.smrt-text-input__content {
|
|
370
358
|
flex: 1;
|
|
371
359
|
display: flex;
|
|
372
360
|
flex-direction: column;
|
|
373
361
|
justify-content: center;
|
|
374
362
|
height: 100%;
|
|
375
|
-
|
|
376
|
-
|
|
363
|
+
}
|
|
364
|
+
.smrt-text-input__input {
|
|
365
|
+
width: 100%;
|
|
366
|
+
padding: 0;
|
|
367
|
+
margin: 0;
|
|
368
|
+
height: 24px;
|
|
369
|
+
}
|
|
370
|
+
.smrt-text-input__active-indicator {
|
|
371
|
+
display: none;
|
|
372
|
+
}
|
|
373
|
+
.smrt-text-input__mic-btn {
|
|
374
|
+
width: 40px;
|
|
375
|
+
height: 40px;
|
|
376
|
+
display: flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
justify-content: center;
|
|
379
|
+
cursor: pointer;
|
|
380
|
+
margin-right: -8px;
|
|
381
|
+
}
|
|
382
|
+
.smrt-text-input__supporting-text {
|
|
383
|
+
padding: var(--smrt-spacing-1) 0 0;
|
|
384
|
+
min-height: 16px;
|
|
385
|
+
}
|
|
386
|
+
.smrt-text-input__disabled {
|
|
387
|
+
pointer-events: none;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
377
390
|
|
|
378
|
-
|
|
391
|
+
@layer smrt.theme {
|
|
392
|
+
.smrt-text-input__root {
|
|
393
|
+
--smrt-text-input-field-color: var(--smrt-color-on-surface-variant);
|
|
394
|
+
--smrt-text-input-field-bg: var(--smrt-color-surface-container-highest);
|
|
395
|
+
--smrt-text-input-field-active: var(--smrt-color-primary);
|
|
396
|
+
}
|
|
397
|
+
.smrt-text-input__container {
|
|
398
|
+
background-color: var(--smrt-color-surface);
|
|
399
|
+
border: var(--smrt-hairline);
|
|
400
|
+
border-radius: var(--smrt-radius-small);
|
|
401
|
+
transition: background-color var(--smrt-duration-short3, 200ms) var(--smrt-easing-standard, cubic-bezier(0.2, 0, 0, 1));
|
|
402
|
+
}
|
|
403
|
+
.smrt-text-input__container:hover {
|
|
404
|
+
background-color: var(--smrt-color-surface-container-high);
|
|
405
|
+
}
|
|
406
|
+
.smrt-text-input__input {
|
|
379
407
|
border: none;
|
|
380
408
|
background: transparent;
|
|
381
409
|
font-size: var(--smrt-typography-body-large-size, 1rem);
|
|
382
410
|
line-height: var(--smrt-typography-body-large-line-height, 1.5);
|
|
383
411
|
letter-spacing: var(--smrt-typography-body-large-tracking);
|
|
384
412
|
color: var(--smrt-color-on-surface);
|
|
385
|
-
width: 100%;
|
|
386
|
-
padding: 0;
|
|
387
|
-
margin: 0;
|
|
388
|
-
height: 24px;
|
|
389
413
|
}
|
|
390
|
-
|
|
391
|
-
.input:focus {
|
|
414
|
+
.smrt-text-input__input:focus {
|
|
392
415
|
outline: none;
|
|
393
416
|
}
|
|
394
|
-
|
|
395
|
-
.active-indicator { display: none; }
|
|
396
|
-
|
|
397
|
-
.focused .container {
|
|
417
|
+
.smrt-text-input__focused .smrt-text-input__container {
|
|
398
418
|
border-color: var(--smrt-text-input-field-active);
|
|
399
419
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--smrt-text-input-field-active) 10%, transparent);
|
|
400
420
|
}
|
|
401
|
-
|
|
402
|
-
.mic-btn {
|
|
403
|
-
width: 40px;
|
|
404
|
-
height: 40px;
|
|
405
|
-
display: flex;
|
|
406
|
-
align-items: center;
|
|
407
|
-
justify-content: center;
|
|
421
|
+
.smrt-text-input__mic-btn {
|
|
408
422
|
border: none;
|
|
409
423
|
background: transparent;
|
|
410
424
|
color: var(--smrt-text-input-field-color);
|
|
411
425
|
border-radius: var(--smrt-radius-full);
|
|
412
|
-
cursor: pointer;
|
|
413
|
-
margin-right: -8px;
|
|
414
426
|
transition: all 200ms;
|
|
415
427
|
}
|
|
416
|
-
|
|
417
|
-
.mic-btn.active {
|
|
428
|
+
.smrt-text-input__mic-btn.smrt-text-input__active {
|
|
418
429
|
color: var(--smrt-color-primary);
|
|
419
430
|
background-color: var(--smrt-color-primary-container);
|
|
420
431
|
}
|
|
421
|
-
|
|
422
|
-
.supporting-text {
|
|
423
|
-
padding: var(--smrt-spacing-1) 0 0;
|
|
432
|
+
.smrt-text-input__supporting-text {
|
|
424
433
|
font-size: var(--smrt-typography-body-small-size, 0.75rem);
|
|
425
|
-
min-height: 16px;
|
|
426
434
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
.
|
|
431
|
-
|
|
435
|
+
.smrt-text-input__info {
|
|
436
|
+
color: var(--smrt-color-on-surface-variant);
|
|
437
|
+
}
|
|
438
|
+
.smrt-text-input__error {
|
|
439
|
+
color: var(--smrt-color-error);
|
|
440
|
+
}
|
|
441
|
+
.smrt-text-input__success {
|
|
442
|
+
color: var(--smrt-color-primary);
|
|
443
|
+
}
|
|
432
444
|
/* States */
|
|
433
|
-
.
|
|
445
|
+
.smrt-text-input__invalid {
|
|
434
446
|
--smrt-text-input-field-active: var(--smrt-color-error);
|
|
435
447
|
--smrt-text-input-field-color: var(--smrt-color-error);
|
|
436
448
|
}
|
|
437
|
-
|
|
438
|
-
.listening {
|
|
449
|
+
.smrt-text-input__listening {
|
|
439
450
|
background-color: var(--smrt-color-primary-container);
|
|
440
451
|
}
|
|
441
|
-
|
|
442
|
-
.disabled {
|
|
452
|
+
.smrt-text-input__disabled {
|
|
443
453
|
opacity: 0.38;
|
|
444
|
-
pointer-events: none;
|
|
445
454
|
}
|
|
446
455
|
}
|
|
456
|
+
|
|
447
457
|
</style>
|