@morscherlab/mint-sdk 1.4.11 → 1.4.13
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/{AlertBox-CIhqsWbN.js → AlertBox-CexONPhA.js} +2 -2
- package/dist/{AlertBox-CIhqsWbN.js.map → AlertBox-CexONPhA.js.map} +1 -1
- package/dist/{AppSidebar-DbftYDAY.js → AppSidebar-CIBehlYL.js} +16 -9
- package/dist/{AppSidebar-DbftYDAY.js.map → AppSidebar-CIBehlYL.js.map} +1 -1
- package/dist/{ExperimentPopover-BM92LlrQ.js → ExperimentPopover-CzV1--OY.js} +2 -2
- package/dist/{ExperimentPopover-BM92LlrQ.js.map → ExperimentPopover-CzV1--OY.js.map} +1 -1
- package/dist/{ExperimentSelectorModal-BOLK-Gl4.js → ExperimentSelectorModal-CUkKmgfr.js} +3 -3
- package/dist/{ExperimentSelectorModal-BOLK-Gl4.js.map → ExperimentSelectorModal-CUkKmgfr.js.map} +1 -1
- package/dist/{SegmentedControl-Dz41vAFM.js → SegmentedControl-C-sckoJZ.js} +2 -2
- package/dist/{SegmentedControl-Dz41vAFM.js.map → SegmentedControl-C-sckoJZ.js.map} +1 -1
- package/dist/{SettingsModal-CKWC1JNV.js → SettingsModal-jW7Z4i_1.js} +6 -6
- package/dist/{SettingsModal-CKWC1JNV.js.map → SettingsModal-jW7Z4i_1.js.map} +1 -1
- package/dist/composables/usePluginWorkspace.d.ts +2 -0
- package/dist/{controlSchemaModel-C20f-1_T.js → controlSchemaModel-C_XqpkgE.js} +2 -2
- package/dist/{controlSchemaModel-C20f-1_T.js.map → controlSchemaModel-C_XqpkgE.js.map} +1 -1
- package/dist/{data-C72M20rh.js → data-8G-U6Pb0.js} +9 -9
- package/dist/{data-C72M20rh.js.map → data-8G-U6Pb0.js.map} +1 -1
- package/dist/data.js +7 -7
- package/dist/index.js +16 -16
- package/dist/{install-DbF7ddGl.js → install-CM33AZhf.js} +14 -38
- package/dist/install-CM33AZhf.js.map +1 -0
- package/dist/install.js +1 -1
- package/dist/{lab-B5sKmlWF.js → lab-CPJ7n7e5.js} +37 -166
- package/dist/lab-CPJ7n7e5.js.map +1 -0
- package/dist/lab.js +4 -4
- package/dist/{records-CWRztE5M.js → records-BAymyHAn.js} +10 -110
- package/dist/records-BAymyHAn.js.map +1 -0
- package/dist/{runtime-OBeh3Knt.js → runtime-PntKXQ7K.js} +93 -52
- package/dist/runtime-PntKXQ7K.js.map +1 -0
- package/dist/runtime.js +6 -6
- package/dist/{shell-DDgF2bug.js → shell-B-woqThX.js} +4 -4
- package/dist/{shell-DDgF2bug.js.map → shell-B-woqThX.js.map} +1 -1
- package/dist/shell.js +4 -4
- package/dist/styles.css +61 -105
- package/dist/{useExperimentSamples-Cz2v3V_q.js → useExperimentSamples-DEDAKa2E.js} +3 -3
- package/dist/{useExperimentSamples-Cz2v3V_q.js.map → useExperimentSamples-DEDAKa2E.js.map} +1 -1
- package/dist/{useListReorder-C--K06el.js → useListReorder-W1bzK_bo.js} +2 -2
- package/dist/{useListReorder-C--K06el.js.map → useListReorder-W1bzK_bo.js.map} +1 -1
- package/dist/{useRackEditor-Cba_0OfI.js → useRackEditor-BWOnob3i.js} +154 -25
- package/dist/useRackEditor-BWOnob3i.js.map +1 -0
- package/dist/{useRealtime-CNQbrS01.js → useRealtime-B0u_FvEH.js} +2 -2
- package/dist/{useRealtime-CNQbrS01.js.map → useRealtime-B0u_FvEH.js.map} +1 -1
- package/dist/{useRequest-Bfsh7gIm.js → useRequest-D9-3BS-3.js} +2 -2
- package/dist/{useRequest-Bfsh7gIm.js.map → useRequest-D9-3BS-3.js.map} +1 -1
- package/package.json +1 -1
- package/src/__tests__/components/PluginWorkspaceView.test.ts +19 -0
- package/src/__tests__/styles/menusShellRefresh.test.ts +5 -0
- package/src/components/FileUploader.vue +3 -35
- package/src/components/GeneratedPluginView.vue +35 -81
- package/src/components/GeneratedResultRenderer.vue +2 -1
- package/src/components/PlotlyChart.vue +1 -1
- package/src/components/PluginWorkspaceView.vue +2 -1
- package/src/composables/usePluginWorkspace.ts +14 -3
- package/src/generated-ui/main.ts +3 -1
- package/src/styles/components/alert-box.css +1 -1
- package/src/styles/components/app-sidebar.css +5 -5
- package/src/styles/components/app-top-bar.css +2 -1
- package/src/styles/components/button.css +3 -3
- package/src/styles/components/checkbox.css +1 -1
- package/src/styles/components/collapsible-card.css +1 -1
- package/src/styles/components/confirm-dialog.css +2 -2
- package/src/styles/components/file-uploader.css +3 -3
- package/src/styles/components/icon-button.css +3 -3
- package/src/styles/components/loading-spinner.css +1 -1
- package/src/styles/components/pill.css +1 -1
- package/src/styles/components/plugin-icon.css +1 -1
- package/src/styles/components/presence-avatars.css +4 -4
- package/src/styles/components/progress-bar.css +1 -1
- package/src/styles/components/sequence-input.css +1 -1
- package/src/styles/components/slider.css +1 -1
- package/src/styles/components/toggle.css +1 -1
- package/src/styles/variables.css +4 -0
- package/dist/install-DbF7ddGl.js.map +0 -1
- package/dist/lab-B5sKmlWF.js.map +0 -1
- package/dist/records-CWRztE5M.js.map +0 -1
- package/dist/runtime-OBeh3Knt.js.map +0 -1
- package/dist/useRackEditor-Cba_0OfI.js.map +0 -1
|
@@ -22,10 +22,12 @@ import {
|
|
|
22
22
|
type GeneratedAnalysisTransport,
|
|
23
23
|
} from '../composables/useJobsEndpoint'
|
|
24
24
|
import AlertBox from './AlertBox.vue'
|
|
25
|
+
import AppContainer from './AppContainer.vue'
|
|
25
26
|
import EmptyState from './EmptyState.vue'
|
|
26
27
|
import GeneratedResultRenderer from './GeneratedResultRenderer.vue'
|
|
27
28
|
import LoadingSpinner from './LoadingSpinner.vue'
|
|
28
29
|
import PluginWorkspaceView from './PluginWorkspaceView.vue'
|
|
30
|
+
import SectionCard from './SectionCard.vue'
|
|
29
31
|
import { GENERATED_JOBS_API_KEY } from './internal/generatedJobsApi'
|
|
30
32
|
import { definePluginWorkspaceView } from '../composables/componentSpecs'
|
|
31
33
|
import { providePluginIdentity } from '../composables/pluginIdentity'
|
|
@@ -48,6 +50,7 @@ const generated = useJobsEndpoint({
|
|
|
48
50
|
provide(GENERATED_JOBS_API_KEY, { baseUrl: props.baseUrl, transport: props.transport })
|
|
49
51
|
const activeDefinitionId = ref('')
|
|
50
52
|
const selectedJobId = ref('')
|
|
53
|
+
const sidebarCollapsed = ref(false)
|
|
51
54
|
const valuesByDefinition = reactive<Record<string, Record<string, unknown>>>({})
|
|
52
55
|
const definitions = computed(() => generated.manifest.value?.jobs ?? [])
|
|
53
56
|
const activeDefinition = computed(() => (
|
|
@@ -77,12 +80,22 @@ const workspace = computed(() => definePluginWorkspaceView({
|
|
|
77
80
|
subtitle: generated.manifest.value?.ui.subtitle || generated.manifest.value?.ui.description,
|
|
78
81
|
// The platform shell renders the toasts around this view.
|
|
79
82
|
toasts: false,
|
|
83
|
+
floating: true,
|
|
80
84
|
topBar: {
|
|
85
|
+
variant: 'card',
|
|
81
86
|
pills: pillNav.value,
|
|
87
|
+
themeToggle: true,
|
|
82
88
|
settings: false,
|
|
83
89
|
standaloneLabel: props.showStandaloneLabel ? 'Standalone' : false,
|
|
84
90
|
},
|
|
85
|
-
sidebar: {
|
|
91
|
+
sidebar: {
|
|
92
|
+
title: 'Parameters',
|
|
93
|
+
width: '300px',
|
|
94
|
+
collapsible: true,
|
|
95
|
+
collapsedWidth: '3rem',
|
|
96
|
+
panels: panels.value,
|
|
97
|
+
forms: forms.value,
|
|
98
|
+
},
|
|
86
99
|
jobs: generated,
|
|
87
100
|
}))
|
|
88
101
|
|
|
@@ -160,6 +173,7 @@ onMounted(() => {
|
|
|
160
173
|
<template>
|
|
161
174
|
<PluginWorkspaceView
|
|
162
175
|
v-model:view="activeDefinitionId"
|
|
176
|
+
v-model:sidebar-collapsed="sidebarCollapsed"
|
|
163
177
|
:spec="workspace"
|
|
164
178
|
:values="currentValues"
|
|
165
179
|
:form-loading="generated.isSubmitting.value"
|
|
@@ -168,7 +182,7 @@ onMounted(() => {
|
|
|
168
182
|
@form-submit="submitJob"
|
|
169
183
|
@job-select="selectJob"
|
|
170
184
|
>
|
|
171
|
-
<
|
|
185
|
+
<AppContainer direction="column" gap="var(--mint-gutter)" class="mint-generated-workspace">
|
|
172
186
|
<div v-if="generated.isLoading.value" class="mint-generated-workspace__loading">
|
|
173
187
|
<LoadingSpinner size="lg" />
|
|
174
188
|
<span>Loading analysis workspace</span>
|
|
@@ -177,18 +191,15 @@ onMounted(() => {
|
|
|
177
191
|
<template v-else>
|
|
178
192
|
<AlertBox v-if="generated.error.value" tone="error">{{ generated.error.value }}</AlertBox>
|
|
179
193
|
|
|
180
|
-
<
|
|
181
|
-
<
|
|
182
|
-
<
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
</
|
|
186
|
-
<
|
|
187
|
-
|
|
188
|
-
</
|
|
189
|
-
</header>
|
|
190
|
-
|
|
191
|
-
<section class="mint-generated-workspace__result">
|
|
194
|
+
<SectionCard :title="activeDefinition?.title ?? 'Result'">
|
|
195
|
+
<template v-if="activeDefinition" #actions>
|
|
196
|
+
<span class="mint-generated-workspace__resources" aria-label="Job resource requirements">
|
|
197
|
+
{{ resourceSummary(activeDefinition) }}
|
|
198
|
+
</span>
|
|
199
|
+
</template>
|
|
200
|
+
<p v-if="activeDefinition?.description" class="mint-generated-workspace__description">
|
|
201
|
+
{{ activeDefinition.description }}
|
|
202
|
+
</p>
|
|
192
203
|
<GeneratedResultRenderer
|
|
193
204
|
v-if="currentResult"
|
|
194
205
|
:result="currentResult"
|
|
@@ -199,93 +210,36 @@ onMounted(() => {
|
|
|
199
210
|
description="Set the parameters and run the analysis. Jobs continue independently if you switch tabs."
|
|
200
211
|
size="md"
|
|
201
212
|
/>
|
|
202
|
-
</
|
|
213
|
+
</SectionCard>
|
|
203
214
|
</template>
|
|
204
|
-
</
|
|
215
|
+
</AppContainer>
|
|
205
216
|
</PluginWorkspaceView>
|
|
206
217
|
</template>
|
|
207
218
|
|
|
208
219
|
<style scoped>
|
|
209
220
|
.mint-generated-workspace {
|
|
210
|
-
position: relative;
|
|
211
221
|
min-width: 0;
|
|
212
|
-
min-height:
|
|
213
|
-
|
|
214
|
-
background: var(--bg-primary);
|
|
222
|
+
min-height: 0;
|
|
223
|
+
overflow-y: auto;
|
|
215
224
|
}
|
|
216
225
|
|
|
217
226
|
.mint-generated-workspace__loading {
|
|
218
227
|
display: flex;
|
|
219
|
-
|
|
228
|
+
flex: 1;
|
|
220
229
|
align-items: center;
|
|
221
230
|
justify-content: center;
|
|
222
231
|
gap: 0.75rem;
|
|
223
232
|
color: var(--text-secondary);
|
|
224
233
|
}
|
|
225
234
|
|
|
226
|
-
.mint-generated-workspace__header {
|
|
227
|
-
display: flex;
|
|
228
|
-
align-items: flex-start;
|
|
229
|
-
justify-content: space-between;
|
|
230
|
-
gap: 1.5rem;
|
|
231
|
-
max-width: 76rem;
|
|
232
|
-
margin: 0 auto 1.25rem;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
.mint-generated-workspace__header h1 {
|
|
236
|
-
margin: 0;
|
|
237
|
-
color: var(--text-primary);
|
|
238
|
-
font-size: clamp(1.35rem, 2vw, 1.8rem);
|
|
239
|
-
line-height: 1.2;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.mint-generated-workspace__header p:not(.mint-generated-workspace__eyebrow) {
|
|
243
|
-
margin: 0.4rem 0 0;
|
|
244
|
-
color: var(--text-secondary);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.mint-generated-workspace__eyebrow {
|
|
248
|
-
margin: 0 0 0.35rem;
|
|
249
|
-
color: var(--text-secondary);
|
|
250
|
-
font-size: 0.72rem;
|
|
251
|
-
font-weight: 700;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
235
|
.mint-generated-workspace__resources {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
justify-content: flex-end;
|
|
258
|
-
gap: 0.4rem;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.mint-generated-workspace__resources span {
|
|
262
|
-
padding: 0.3rem 0.55rem;
|
|
263
|
-
border: 1px solid var(--border-color);
|
|
264
|
-
border-radius: 999px;
|
|
265
|
-
background: var(--bg-secondary);
|
|
266
|
-
color: var(--text-secondary);
|
|
236
|
+
color: var(--text-muted);
|
|
237
|
+
font-family: var(--font-mono);
|
|
267
238
|
font-size: 0.75rem;
|
|
268
|
-
font-weight: 600;
|
|
269
239
|
}
|
|
270
240
|
|
|
271
|
-
.mint-generated-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
margin: 0 auto;
|
|
275
|
-
padding: clamp(1rem, 2vw, 1.75rem);
|
|
276
|
-
border: 1px solid var(--border-color);
|
|
277
|
-
border-radius: 1rem;
|
|
278
|
-
background: var(--bg-secondary);
|
|
279
|
-
box-shadow: var(--shadow-sm);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
@media (max-width: 640px) {
|
|
283
|
-
.mint-generated-workspace__header {
|
|
284
|
-
flex-direction: column;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
.mint-generated-workspace__resources {
|
|
288
|
-
justify-content: flex-start;
|
|
289
|
-
}
|
|
241
|
+
.mint-generated-workspace__description {
|
|
242
|
+
margin: 0 0 var(--mint-gutter);
|
|
243
|
+
color: var(--text-secondary);
|
|
290
244
|
}
|
|
291
245
|
</style>
|
|
@@ -133,6 +133,7 @@ function humanize(value: string): string {
|
|
|
133
133
|
padding: 0.75rem 1rem;
|
|
134
134
|
border-radius: var(--radius-md);
|
|
135
135
|
background: var(--bg-tertiary);
|
|
136
|
+
font-family: var(--font-mono);
|
|
136
137
|
font-size: 0.8125rem;
|
|
137
138
|
line-height: 1.55;
|
|
138
139
|
white-space: pre-wrap;
|
|
@@ -152,7 +153,7 @@ function humanize(value: string): string {
|
|
|
152
153
|
gap: 1rem;
|
|
153
154
|
padding: 1rem;
|
|
154
155
|
border: 1px solid var(--border-color);
|
|
155
|
-
border-radius:
|
|
156
|
+
border-radius: var(--radius-lg);
|
|
156
157
|
color: var(--color-primary);
|
|
157
158
|
text-decoration: none;
|
|
158
159
|
}
|
|
@@ -93,6 +93,7 @@ const {
|
|
|
93
93
|
controls,
|
|
94
94
|
handleControlValuesUpdate,
|
|
95
95
|
handlePillSelect,
|
|
96
|
+
handleSidebarCollapsedUpdate,
|
|
96
97
|
} = usePluginWorkspace({
|
|
97
98
|
props,
|
|
98
99
|
slots,
|
|
@@ -146,7 +147,7 @@ function handleFormCancel(sectionId: string) {
|
|
|
146
147
|
<WorkspaceSidebarInternal
|
|
147
148
|
:sidebar="sidebar"
|
|
148
149
|
@update:values="handleControlValuesUpdate"
|
|
149
|
-
@update:collapsed="
|
|
150
|
+
@update:collapsed="handleSidebarCollapsedUpdate"
|
|
150
151
|
@update:toggle="handleToggle"
|
|
151
152
|
@section-action="(sectionId: string, actionId: string) => emit('section-action', sectionId, actionId)"
|
|
152
153
|
@form-submit="handleFormSubmit"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed } from 'vue'
|
|
1
|
+
import { computed, ref } from 'vue'
|
|
2
2
|
import type { ComputedRef } from 'vue'
|
|
3
3
|
import type { PillNavItem, PluginWorkspaceSidebarSpec } from '../types'
|
|
4
4
|
import type {
|
|
@@ -48,6 +48,8 @@ export interface UsePluginWorkspaceReturn {
|
|
|
48
48
|
handleControlValuesUpdate: (values: Record<string, unknown>) => void
|
|
49
49
|
/** Resolves an AppTopBar `pill-select` payload into the active view and emits `update:pill` and `pill-select`. */
|
|
50
50
|
handlePillSelect: (item: PillNavItem) => void
|
|
51
|
+
/** Applies an AppSidebar `update:collapsed` payload and emits `update:sidebarCollapsed`. */
|
|
52
|
+
handleSidebarCollapsedUpdate: (value: boolean) => void
|
|
51
53
|
}
|
|
52
54
|
|
|
53
55
|
/**
|
|
@@ -94,6 +96,14 @@ export function usePluginWorkspace(options: UsePluginWorkspaceOptions): UsePlugi
|
|
|
94
96
|
const topBarSlotNames = computed<string[]>(() => getPluginWorkspaceTopBarSlotNames(slots))
|
|
95
97
|
const sidebarSlotNames = computed<string[]>(() => getPluginWorkspaceSidebarSlotNames(slots))
|
|
96
98
|
|
|
99
|
+
// The workspace owns the collapsed state (unless bound) so AppLayout reserves the collapsed width.
|
|
100
|
+
const internalCollapsed = ref(false)
|
|
101
|
+
const sidebarCollapsed = computed(() => props.sidebarCollapsed ?? internalCollapsed.value)
|
|
102
|
+
function handleSidebarCollapsedUpdate(value: boolean) {
|
|
103
|
+
internalCollapsed.value = value
|
|
104
|
+
emit('update:sidebarCollapsed', value)
|
|
105
|
+
}
|
|
106
|
+
|
|
97
107
|
const hasSidebarSurface = computed(() => hasPluginWorkspaceSidebarSurface({
|
|
98
108
|
sidebar: sidebarSpec.value,
|
|
99
109
|
hasSidebarSlot: Boolean(slots.sidebar),
|
|
@@ -114,7 +124,7 @@ export function usePluginWorkspace(options: UsePluginWorkspaceOptions): UsePlugi
|
|
|
114
124
|
const sidebar = sidebarSpec.value === false ? {} : sidebarSpec.value
|
|
115
125
|
return {
|
|
116
126
|
sidebarPosition: sidebar.position ?? 'left',
|
|
117
|
-
sidebarWidth: sidebar.width,
|
|
127
|
+
sidebarWidth: sidebarCollapsed.value ? (sidebar.collapsedWidth ?? '3rem') : sidebar.width,
|
|
118
128
|
floating: props.spec?.floating ?? true,
|
|
119
129
|
responsiveSidebar: sidebar.responsive ?? true,
|
|
120
130
|
sidebarToggleLabel: sidebar.toggleLabel ?? 'Open workspace sidebar',
|
|
@@ -142,7 +152,7 @@ export function usePluginWorkspace(options: UsePluginWorkspaceOptions): UsePlugi
|
|
|
142
152
|
},
|
|
143
153
|
activeView: navigationState.resolvedActiveView.value,
|
|
144
154
|
values: controlsState.internalControlValues,
|
|
145
|
-
collapsed:
|
|
155
|
+
collapsed: sidebarCollapsed.value,
|
|
146
156
|
formLoading: props.formLoading ?? false,
|
|
147
157
|
formDisabled: props.formDisabled ?? false,
|
|
148
158
|
formReadonly: props.formReadonly ?? false,
|
|
@@ -157,5 +167,6 @@ export function usePluginWorkspace(options: UsePluginWorkspaceOptions): UsePlugi
|
|
|
157
167
|
hasSidebarSurface,
|
|
158
168
|
handleControlValuesUpdate: controlsState.handleControlValuesUpdate,
|
|
159
169
|
handlePillSelect: navigationState.handlePillSelect,
|
|
170
|
+
handleSidebarCollapsedUpdate,
|
|
160
171
|
}
|
|
161
172
|
}
|
package/src/generated-ui/main.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { createPinia } from 'pinia'
|
|
|
2
2
|
import { createApp, h } from 'vue'
|
|
3
3
|
|
|
4
4
|
import GeneratedPluginView from '../components/GeneratedPluginView.vue'
|
|
5
|
+
import { useSettingsStore } from '../stores/settings'
|
|
5
6
|
import '../styles/index.css'
|
|
6
7
|
|
|
7
8
|
function generatedApiBase(location: Location): string {
|
|
@@ -13,9 +14,10 @@ const app = createApp({
|
|
|
13
14
|
name: 'MintGeneratedUiApp',
|
|
14
15
|
render: () => h(GeneratedPluginView, {
|
|
15
16
|
baseUrl: generatedApiBase(window.location),
|
|
16
|
-
showStandaloneLabel: true,
|
|
17
17
|
}),
|
|
18
18
|
})
|
|
19
19
|
|
|
20
20
|
app.use(createPinia())
|
|
21
|
+
// Theme, palette and density apply before the first paint, as in the platform.
|
|
22
|
+
useSettingsStore().initialize()
|
|
21
23
|
app.mount('#app')
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
.mint-alert__icon--info { background-color: var(--mint-info-bg); color: var(--mint-info); }
|
|
32
32
|
.mint-alert__icon--neutral { background-color: var(--bg-tertiary); color: var(--text-secondary); }
|
|
33
33
|
.mint-alert__icon--primary { background-color: var(--color-primary-soft); color: var(--color-primary); }
|
|
34
|
-
.mint-alert__icon--cta { background-color: var(--color-primary-soft); color: var(--
|
|
34
|
+
.mint-alert__icon--cta { background-color: var(--color-primary-soft); color: var(--_ink-primary); }
|
|
35
35
|
|
|
36
36
|
.mint-alert__content {
|
|
37
37
|
flex: 1;
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
min-width: 1.375rem;
|
|
98
98
|
padding: 0.125rem 0.375rem;
|
|
99
99
|
border-radius: var(--radius);
|
|
100
|
-
background: color-mix(in srgb, var(--color-
|
|
101
|
-
color: var(--color-
|
|
100
|
+
background: color-mix(in srgb, var(--color-primary) 14%, transparent);
|
|
101
|
+
color: var(--color-primary);
|
|
102
102
|
font-size: 0.6875rem;
|
|
103
103
|
font-weight: 700;
|
|
104
104
|
line-height: 1.1;
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
width: 11px;
|
|
370
370
|
height: 11px;
|
|
371
371
|
border-radius: 9999px;
|
|
372
|
-
background:
|
|
372
|
+
background: var(--control-knob);
|
|
373
373
|
box-shadow: var(--shadow-sm);
|
|
374
374
|
transition: left 180ms var(--mint-ease-out-quart);
|
|
375
375
|
}
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
padding: 0 0.25rem;
|
|
470
470
|
border-radius: var(--radius);
|
|
471
471
|
background: var(--mint-sidebar-tone);
|
|
472
|
-
color:
|
|
472
|
+
color: var(--text-on-accent);
|
|
473
473
|
font-size: 0.6875rem;
|
|
474
474
|
font-weight: 700;
|
|
475
475
|
line-height: 1rem;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
.mint-sidebar__rail-badge--cta,
|
|
493
493
|
.mint-sidebar__tag--cta,
|
|
494
494
|
.mint-sidebar__group-action--cta {
|
|
495
|
-
--mint-sidebar-tone: var(--color-
|
|
495
|
+
--mint-sidebar-tone: var(--color-primary);
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.mint-sidebar__rail-badge--success,
|
|
@@ -170,7 +170,8 @@
|
|
|
170
170
|
.mint-topbar__plugin-name,
|
|
171
171
|
.mint-topbar__plugin-subtitle,
|
|
172
172
|
.mint-topbar-title,
|
|
173
|
-
.mint-topbar-subtitle
|
|
173
|
+
.mint-topbar-subtitle,
|
|
174
|
+
.mint-topbar__title-only {
|
|
174
175
|
overflow: hidden;
|
|
175
176
|
text-overflow: ellipsis;
|
|
176
177
|
white-space: nowrap;
|
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.mint-button--cta {
|
|
71
|
-
background-color: var(--color-
|
|
71
|
+
background-color: var(--color-primary);
|
|
72
72
|
color: var(--text-on-accent);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.mint-button--cta:hover:not(.mint-button--disabled) {
|
|
76
|
-
background-color: var(--color-
|
|
76
|
+
background-color: var(--color-primary-hover);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.mint-button--danger {
|
|
80
80
|
background-color: var(--mint-error);
|
|
81
|
-
color:
|
|
81
|
+
color: var(--text-on-danger);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.mint-button--danger:hover:not(.mint-button--disabled) {
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
.mint-checkbox__native:disabled + .mint-checkbox__box.mint-checkbox__box--indeterminate {
|
|
134
134
|
background-color: var(--text-muted);
|
|
135
135
|
border-color: var(--text-muted);
|
|
136
|
-
color:
|
|
136
|
+
color: var(--control-knob);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.mint-checkbox__box--sm {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.mint-confirm__icon--cta {
|
|
51
|
-
background-color: color-mix(in srgb, var(--color-
|
|
52
|
-
color: var(--color-
|
|
51
|
+
background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
|
|
52
|
+
color: var(--color-primary);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.mint-confirm__icon--neutral {
|
|
@@ -160,9 +160,9 @@
|
|
|
160
160
|
font-size: 0.6875rem;
|
|
161
161
|
font-weight: 700;
|
|
162
162
|
font-family: var(--font-mono);
|
|
163
|
-
color: var(--
|
|
164
|
-
background-color:
|
|
165
|
-
border: 1px solid
|
|
163
|
+
color: var(--text-secondary);
|
|
164
|
+
background-color: var(--bg-tertiary);
|
|
165
|
+
border: 1px solid var(--border-color);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.mint-file-uploader__file-meta {
|
|
@@ -57,17 +57,17 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.mint-icon-button--cta {
|
|
60
|
-
background-color: var(--color-
|
|
60
|
+
background-color: var(--color-primary);
|
|
61
61
|
color: var(--text-on-accent);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.mint-icon-button--cta:hover:not(.mint-icon-button--disabled) {
|
|
65
|
-
background-color: var(--color-
|
|
65
|
+
background-color: var(--color-primary-hover);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.mint-icon-button--danger {
|
|
69
69
|
background-color: var(--mint-error);
|
|
70
|
-
color:
|
|
70
|
+
color: var(--text-on-danger);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
.mint-icon-button--danger:hover:not(.mint-icon-button--disabled) {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
/* Tones */
|
|
35
35
|
.mint-spinner--primary { color: var(--color-primary); }
|
|
36
|
-
.mint-spinner--cta { color: var(--color-
|
|
36
|
+
.mint-spinner--cta { color: var(--color-primary); }
|
|
37
37
|
.mint-spinner--success { color: var(--mint-success); }
|
|
38
38
|
.mint-spinner--warning { color: var(--mint-warning); }
|
|
39
39
|
.mint-spinner--error { color: var(--mint-error); }
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
(soft-tint background, dot, outline border); `--mint-pill-ink` the text. A
|
|
34
34
|
`color` prop sets `--mint-pill-tone` inline. */
|
|
35
35
|
.mint-pill--primary { --mint-pill-tone: var(--color-primary); --mint-pill-ink: var(--color-primary-hover); }
|
|
36
|
-
.mint-pill--cta { --mint-pill-tone: var(--color-
|
|
36
|
+
.mint-pill--cta { --mint-pill-tone: var(--color-primary); --mint-pill-ink: var(--color-primary-hover); }
|
|
37
37
|
.mint-pill--success { --mint-pill-tone: var(--mint-success); --mint-pill-ink: var(--mint-success-hover); }
|
|
38
38
|
.mint-pill--warning { --mint-pill-tone: var(--mint-warning); --mint-pill-ink: var(--mint-warning-text); }
|
|
39
39
|
.mint-pill--error { --mint-pill-tone: var(--mint-error); --mint-pill-ink: var(--mint-error-hover); }
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
/* Tones (deprecated with the tone/color props, removed in 1.5): the v2 tile no longer reads the variable. */
|
|
20
20
|
.mint-plugin-icon--neutral { --mint-plugin-icon-tone: var(--text-secondary); }
|
|
21
21
|
.mint-plugin-icon--primary { --mint-plugin-icon-tone: var(--color-primary); }
|
|
22
|
-
.mint-plugin-icon--cta { --mint-plugin-icon-tone: var(--color-
|
|
22
|
+
.mint-plugin-icon--cta { --mint-plugin-icon-tone: var(--color-primary); }
|
|
23
23
|
.mint-plugin-icon--success { --mint-plugin-icon-tone: var(--mint-success); }
|
|
24
24
|
.mint-plugin-icon--warning { --mint-plugin-icon-tone: var(--mint-warning); }
|
|
25
25
|
.mint-plugin-icon--error { --mint-plugin-icon-tone: var(--mint-error); }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* PresenceAvatars: an avatar stack that opens a list of who is here.
|
|
2
2
|
* The editing cue is a ring plus a pencil badge, so it does not depend on
|
|
3
|
-
* colour only. Light mode uses --color-
|
|
4
|
-
* mode --color-
|
|
3
|
+
* colour only. Light mode uses --color-primary-hover (3:1 on the card), dark
|
|
4
|
+
* mode --color-primary. --mint-presence-surface is the colour the avatars are
|
|
5
5
|
* cut out of; set it when the stack sits on another surface. */
|
|
6
6
|
|
|
7
7
|
.mint-presence {
|
|
8
|
-
--mint-presence-editing: var(--color-
|
|
8
|
+
--mint-presence-editing: var(--color-primary-hover);
|
|
9
9
|
--mint-presence-surface: var(--bg-secondary);
|
|
10
10
|
position: relative;
|
|
11
11
|
display: inline-flex;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
:where(html.dark) .mint-presence {
|
|
15
|
-
--mint-presence-editing: var(--color-
|
|
15
|
+
--mint-presence-editing: var(--color-primary);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.mint-presence__trigger {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
.mint-progress__bar--success { background-color: var(--mint-success); }
|
|
47
47
|
.mint-progress__bar--warning { background-color: var(--mint-warning); }
|
|
48
48
|
.mint-progress__bar--error { background-color: var(--mint-error); }
|
|
49
|
-
.mint-progress__bar--cta { background-color: var(--color-
|
|
49
|
+
.mint-progress__bar--cta { background-color: var(--color-primary); }
|
|
50
50
|
.mint-progress__bar--neutral { background-color: var(--text-muted); }
|
|
51
51
|
.mint-progress__bar--info { background-color: var(--color-primary); } /* 6b: progress fill is always primary; --mint-info is for the running dot */
|
|
52
52
|
|
|
@@ -226,7 +226,7 @@
|
|
|
226
226
|
.mint-sequence-input__problem--error .mint-sequence-input__problem-shape { fill: var(--mint-error); }
|
|
227
227
|
|
|
228
228
|
.mint-sequence-input__problem-mark {
|
|
229
|
-
stroke:
|
|
229
|
+
stroke: var(--text-on-danger);
|
|
230
230
|
stroke-width: 1.6;
|
|
231
231
|
stroke-linecap: round;
|
|
232
232
|
}
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
box-sizing: border-box;
|
|
57
57
|
transform: translateX(-50%) translateY(-50%);
|
|
58
58
|
border-radius: 9999px;
|
|
59
|
-
background-color:
|
|
59
|
+
background-color: var(--control-knob);
|
|
60
60
|
border: 1px solid color-mix(in srgb, var(--text-secondary) 40%, transparent);
|
|
61
61
|
box-shadow: var(--shadow-sm);
|
|
62
62
|
pointer-events: none;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
top: 50%;
|
|
152
152
|
left: 2px;
|
|
153
153
|
border-radius: 9999px;
|
|
154
|
-
background-color:
|
|
154
|
+
background-color: var(--control-knob);
|
|
155
155
|
box-shadow: var(--shadow-sm);
|
|
156
156
|
transition: transform 180ms cubic-bezier(0.25, 1, 0.5, 1);
|
|
157
157
|
pointer-events: none;
|
package/src/styles/variables.css
CHANGED
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
--mint-primary: var(--color-primary);
|
|
60
60
|
/* Text and icons on an accent fill (filled buttons, Save). */
|
|
61
61
|
--text-on-accent: #FFFFFF;
|
|
62
|
+
/* Text on a --mint-error fill (danger buttons); white in both themes, 3.76:1 on #EF4444. */
|
|
63
|
+
--text-on-danger: #FFFFFF;
|
|
64
|
+
/* Knob of a toggle or slider, and the mark of a disabled checkbox; white in both themes. */
|
|
65
|
+
--control-knob: #FFFFFF;
|
|
62
66
|
/* Retired hues, aliased to the accent until 1.5 (mint doctor warns on use). */
|
|
63
67
|
--color-cta: var(--color-primary);
|
|
64
68
|
--color-cta-hover: var(--color-primary-hover);
|