@mcp-b/react-components 0.17.0 → 0.19.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/{AgentActivity-BNUNrP9O.d.ts → AgentActivity-D2SHSGFX.d.ts} +1 -1
- package/dist/{AgentChat-CRuMi1Pb.d.ts → AgentChat-ClxViuUM.d.ts} +1 -20
- package/dist/{Button-FX_hpqxm.d.ts → Button-DLGzHsjc.d.ts} +13 -7
- package/dist/{CodeBlock-Co1noLbC.js → CodeBlock-Bb-IPBc_.js} +9 -6
- package/dist/{CodeBlock-Dnpr88ZQ.d.ts → CodeBlock-gV4kZeCI.d.ts} +2 -9
- package/dist/{FileTree-B7bBsUyU.js → FileTree-CUlXfnmc.js} +42 -16
- package/dist/{Message-C4eYRogZ.js → Message-rZEaaD8Q.js} +13 -20
- package/dist/{ModelSelector-BNrZlY_Y.js → ModelSelector-4GsCWcZV.js} +15 -22
- package/dist/{PromptInput-OLfXPuHM.d.ts → PromptInput-Bdh9pqlo.d.ts} +4 -6
- package/dist/{Select-CwSqP07Y.d.ts → Select-B_13gg_J.d.ts} +2 -2
- package/dist/{Tabs-9zddXDQo.d.ts → Tabs-ColWK-XA.d.ts} +10 -2
- package/dist/{ThinkChat-DInElus-.js → ThinkChat-15EhfvYJ.js} +84 -61
- package/dist/{ThinkChatActivity-BgesTfZ4.d.ts → ThinkChatActivity-Bzot45kX.d.ts} +4 -7
- package/dist/{ThinkChatActivitySummary-BPmu9a-c.d.ts → ThinkChatActivitySummary-D1xOrNrq.d.ts} +1 -1
- package/dist/{Toggle-DaXpe1Lc.d.ts → Toggle-JKZ43D5S.d.ts} +1 -1
- package/dist/{ToggleGroup-yseEWkOC.d.ts → ToggleGroup-DNd6cDJZ.d.ts} +2 -2
- package/dist/Workspace-Jez8ffUj.d.ts +274 -0
- package/dist/{WorkspaceExplorer-sZewzT2O.d.ts → WorkspaceExplorer-B9dQWNVK.d.ts} +2 -2
- package/dist/{WorkspaceFile-C8UzuSH4.d.ts → WorkspaceFile-CzyHnESE.d.ts} +1 -1
- package/dist/{WorkspaceFileView-DNdGAEiX.js → WorkspaceFileView-CEdArlOT.js} +120 -127
- package/dist/{WorkspaceLink-B1ykV1dS.js → WorkspaceLink-BYYeTQLf.js} +6 -27
- package/dist/{WorkspaceLink-DK1DWMHe.d.ts → WorkspaceLink-O-EBKUJ8.d.ts} +6 -9
- package/dist/{class-names-Bk-QLWWI.js → class-names-BiMDVpUo.js} +4 -1
- package/dist/components/Accordion.js +7 -2
- package/dist/components/Activity.js +2 -2
- package/dist/components/AgentActivity.d.ts +1 -1
- package/dist/components/AgentActivity.js +4 -5
- package/dist/components/AgentActivityPreview.d.ts +9 -9
- package/dist/components/AgentActivityPreview.js +8 -12
- package/dist/components/AgentAttention.d.ts +1 -1
- package/dist/components/AgentAttention.js +1 -1
- package/dist/components/AgentChat.d.ts +1 -1
- package/dist/components/AgentChat.js +94 -62
- package/dist/components/AgentChatMessageEditor.js +2 -2
- package/dist/components/AgentChatTurnError.js +2 -2
- package/dist/components/AgentConnection.js +3 -3
- package/dist/components/AgentMessageParts.js +1 -1
- package/dist/components/AgentToolDetail.d.ts +6 -4
- package/dist/components/AgentToolDetail.js +12 -10
- package/dist/components/AlertDialog.js +1 -1
- package/dist/components/AppTopBar.d.ts +24 -7
- package/dist/components/AppTopBar.js +32 -8
- package/dist/components/Approval.js +4 -4
- package/dist/components/Artifact.d.ts +1 -1
- package/dist/components/Artifact.js +6 -4
- package/dist/components/Autocomplete.js +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Badge.js +3 -0
- package/dist/components/BrowserLiveView.js +27 -12
- package/dist/components/BrowserReplay.js +4 -3
- package/dist/components/BrowserRunPanel.js +5 -5
- package/dist/components/Button.d.ts +1 -1
- package/dist/components/Button.js +14 -11
- package/dist/components/Card.d.ts +7 -8
- package/dist/components/Card.js +19 -10
- package/dist/components/ChainOfThought.d.ts +1 -1
- package/dist/components/ChainOfThought.js +2 -2
- package/dist/components/ChatGptSignInScreen.js +8 -8
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/CheckboxGroup.js +1 -1
- package/dist/components/Checkpoint.js +2 -2
- package/dist/components/CodeBlock.d.ts +1 -1
- package/dist/components/CodeBlock.js +1 -1
- package/dist/components/CodexModelSelector.js +35 -15
- package/dist/components/Collapsible.js +2 -2
- package/dist/components/Combobox.js +1 -1
- package/dist/components/Commit.d.ts +1 -1
- package/dist/components/Commit.js +3 -3
- package/dist/components/Context.js +1 -1
- package/dist/components/ContextMenu.js +2 -2
- package/dist/components/Conversation.d.ts +1 -1
- package/dist/components/Conversation.js +5 -4
- package/dist/components/DescriptionListParts.js +1 -1
- package/dist/components/Dialog.js +1 -1
- package/dist/components/EnvironmentVariables.d.ts +1 -1
- package/dist/components/EnvironmentVariables.js +3 -3
- package/dist/components/Field.js +5 -2
- package/dist/components/Fieldset.js +1 -1
- package/dist/components/FileTree.d.ts +6 -0
- package/dist/components/FileTree.js +1 -1
- package/dist/components/Form.js +1 -1
- package/dist/components/GithubMotionMark.js +1 -1
- package/dist/components/IconButton.d.ts +2 -3
- package/dist/components/IconButton.js +2 -1
- package/dist/components/InlineCitation.js +1 -1
- package/dist/components/Input.js +1 -1
- package/dist/components/Marker.js +1 -1
- package/dist/components/McpConnectionRequest.js +2 -2
- package/dist/components/McpServerPicker.js +2 -2
- package/dist/components/MediaPreviewCard.d.ts +103 -0
- package/dist/components/MediaPreviewCard.js +193 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/Menubar.js +2 -2
- package/dist/components/Message.d.ts +4 -1
- package/dist/components/Message.js +1 -1
- package/dist/components/MessageScroller.d.ts +1 -1
- package/dist/components/MessageScroller.js +5 -4
- package/dist/components/Meter.js +1 -1
- package/dist/components/ModelSelector.d.ts +4 -3
- package/dist/components/ModelSelector.js +1 -1
- package/dist/components/NavigationMenu.js +1 -1
- package/dist/components/NumberField.js +1 -1
- package/dist/components/Plan.js +2 -2
- package/dist/components/Popover.js +1 -1
- package/dist/components/PreviewCard.js +1 -1
- package/dist/components/PricingBillingToggle.js +1 -1
- package/dist/components/PricingFAQ.js +1 -1
- package/dist/components/PricingPage.js +2 -1
- package/dist/components/PricingPlanCard.js +4 -3
- package/dist/components/PricingUsageCalculator.js +2 -2
- package/dist/components/Progress.js +1 -1
- package/dist/components/PromptInput.d.ts +1 -1
- package/dist/components/PromptInput.js +31 -18
- package/dist/components/Queue.d.ts +1 -1
- package/dist/components/Queue.js +2 -3
- package/dist/components/RadioGroup.js +1 -1
- package/dist/components/Reasoning.js +3 -6
- package/dist/components/ResizableSidePanel.js +1 -1
- package/dist/components/ResponsiveSidebarShell.js +16 -10
- package/dist/components/ScrollArea.js +2 -1
- package/dist/components/SearchField.d.ts +43 -0
- package/dist/components/SearchField.js +52 -0
- package/dist/components/Select.d.ts +1 -1
- package/dist/components/Select.js +5 -6
- package/dist/components/Separator.js +1 -1
- package/dist/components/Slider.js +1 -1
- package/dist/components/Sources.js +2 -2
- package/dist/components/Stepper.js +16 -9
- package/dist/components/SubagentRunDetails.js +1 -1
- package/dist/components/SubagentRunIndicator.js +2 -2
- package/dist/components/SubagentRunList.d.ts +3 -5
- package/dist/components/SubagentRunList.js +3 -4
- package/dist/components/SubagentRunSelector.d.ts +8 -12
- package/dist/components/SubagentRunSelector.js +17 -20
- package/dist/components/Switch.d.ts +2 -2
- package/dist/components/Switch.js +4 -5
- package/dist/components/Tabs.d.ts +2 -2
- package/dist/components/Tabs.js +12 -3
- package/dist/components/Task.js +2 -2
- package/dist/components/Terminal.d.ts +2 -2
- package/dist/components/Terminal.js +5 -4
- package/dist/components/TestResults.js +10 -6
- package/dist/components/Textarea.js +1 -1
- package/dist/components/ThemeModeControl.js +1 -1
- package/dist/components/ThinkChat.d.ts +33 -20
- package/dist/components/ThinkChat.js +4 -4
- package/dist/components/ThinkChatActivity.d.ts +2 -2
- package/dist/components/ThinkChatActivity.js +8 -10
- package/dist/components/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/ThinkChatActivitySummary.js +7 -3
- package/dist/components/ThinkChatToolPanels.js +26 -16
- package/dist/components/ThinkExecutionDetail.js +2 -2
- package/dist/components/ThinkExecutionStatus.js +2 -2
- package/dist/components/ThinkExecutionWorkbench.d.ts +30 -8
- package/dist/components/ThinkExecutionWorkbench.js +70 -134
- package/dist/components/ThinkFullApp.d.ts +36 -35
- package/dist/components/ThinkFullApp.js +156 -109
- package/dist/components/ThinkFullAppViewSwitch.d.ts +1 -1
- package/dist/components/ThinkFullAppViewSwitch.js +1 -1
- package/dist/components/ThinkRecoveryNotice.js +18 -12
- package/dist/components/ThinkRoutineBrowser.d.ts +17 -9
- package/dist/components/ThinkRoutineBrowser.js +33 -40
- package/dist/components/ThinkRoutineDetail.d.ts +5 -2
- package/dist/components/ThinkRoutineDetail.js +4 -4
- package/dist/components/ThinkRoutineForm.d.ts +3 -2
- package/dist/components/ThinkRoutineForm.js +11 -10
- package/dist/components/ThinkRoutineLibrary.d.ts +24 -31
- package/dist/components/ThinkRoutineLibrary.js +57 -80
- package/dist/components/ThinkRoutineRuns.d.ts +3 -2
- package/dist/components/ThinkRoutineRuns.js +31 -24
- package/dist/components/ThinkThreadPicker.d.ts +17 -11
- package/dist/components/ThinkThreadPicker.js +163 -39
- package/dist/components/Toast.js +1 -1
- package/dist/components/Toggle.d.ts +1 -1
- package/dist/components/Toggle.js +9 -7
- package/dist/components/ToggleGroup.d.ts +1 -1
- package/dist/components/ToggleGroup.js +15 -13
- package/dist/components/ToolInvocation.js +1 -1
- package/dist/components/Toolbar.js +1 -1
- package/dist/components/Tooltip.d.ts +8 -1
- package/dist/components/Tooltip.js +11 -2
- package/dist/components/TransitionSurface.d.ts +27 -0
- package/dist/components/TransitionSurface.js +20 -0
- package/dist/components/WebPreview.d.ts +5 -5
- package/dist/components/WebPreview.js +68 -54
- package/dist/components/Workspace.d.ts +2 -2
- package/dist/components/Workspace.js +358 -328
- package/dist/components/WorkspaceBrowser.d.ts +4 -7
- package/dist/components/WorkspaceBrowser.js +15 -25
- package/dist/components/WorkspaceExplorer.d.ts +5 -5
- package/dist/components/WorkspaceExplorer.js +19 -32
- package/dist/components/WorkspaceFile.d.ts +1 -1
- package/dist/components/WorkspaceFileView.d.ts +14 -2
- package/dist/components/WorkspaceFileView.js +1 -1
- package/dist/components/WorkspaceHeader.d.ts +0 -8
- package/dist/components/WorkspaceHeader.js +3 -15
- package/dist/components/WorkspaceLink.d.ts +1 -1
- package/dist/components/WorkspaceLink.js +1 -1
- package/dist/components/icons.d.ts +2 -2
- package/dist/components/icons.js +2 -2
- package/dist/{copy-button-cYsJBauI.js → copy-button-BtRwhRks.js} +3 -2
- package/dist/{copy-button-CQx3LQAC.d.ts → copy-button-D7aAYA-2.d.ts} +1 -1
- package/dist/{icons--FqCZEc3.js → icons-DKXiSepE.js} +7 -3
- package/dist/{icons-DpUqY8Mp.d.ts → icons-DkRtZmvT.d.ts} +22 -2
- package/dist/navigation-link-Cob7KBlM.js +19 -0
- package/dist/styles/accordion.css +4 -19
- package/dist/styles/activity.css +48 -56
- package/dist/styles/agent-activity-preview.css +2 -0
- package/dist/styles/agent-chat.css +14 -22
- package/dist/styles/alert-dialog.css +16 -18
- package/dist/styles/app-top-bar.css +17 -9
- package/dist/styles/approval.css +11 -6
- package/dist/styles/artifact.css +6 -6
- package/dist/styles/autocomplete.css +2 -1
- package/dist/styles/avatar.css +35 -30
- package/dist/styles/badge.css +10 -10
- package/dist/styles/base-ui-motion.css +94 -39
- package/dist/styles/browser-control-overlay.css +0 -1
- package/dist/styles/browser-live-view.css +39 -22
- package/dist/styles/browser-replay.css +1 -1
- package/dist/styles/browser-run-panel.css +8 -4
- package/dist/styles/button.css +36 -33
- package/dist/styles/card.css +5 -6
- package/dist/styles/chain-of-thought.css +22 -16
- package/dist/styles/checkbox.css +18 -5
- package/dist/styles/codex-model-selector.css +46 -8
- package/dist/styles/collapsible.css +10 -10
- package/dist/styles/combobox.css +3 -2
- package/dist/styles/commit.css +19 -18
- package/dist/styles/composition-motion.css +83 -0
- package/dist/styles/context-menu.css +3 -3
- package/dist/styles/context.css +11 -10
- package/dist/styles/conversation.css +18 -23
- package/dist/styles/dialog.css +15 -15
- package/dist/styles/field.css +32 -12
- package/dist/styles/file-tree.css +69 -9
- package/dist/styles/form.css +1 -1
- package/dist/styles/index.css +5 -0
- package/dist/styles/input.css +2 -2
- package/dist/styles/marker.css +14 -13
- package/dist/styles/mcp-server-picker.css +20 -17
- package/dist/styles/media-preview-card.css +160 -0
- package/dist/styles/menu.css +11 -11
- package/dist/styles/menubar.css +12 -11
- package/dist/styles/message.css +27 -21
- package/dist/styles/meter.css +2 -2
- package/dist/styles/model-selector.css +16 -14
- package/dist/styles/motion-reduction.css +29 -0
- package/dist/styles/navigation-menu.css +14 -30
- package/dist/styles/number-field.css +22 -4
- package/dist/styles/plan.css +5 -0
- package/dist/styles/popover.css +15 -16
- package/dist/styles/preview-card.css +2 -32
- package/dist/styles/progress.css +8 -3
- package/dist/styles/prompt-input.css +87 -70
- package/dist/styles/queue.css +48 -32
- package/dist/styles/radio.css +19 -12
- package/dist/styles/reasoning.css +2 -1
- package/dist/styles/recipes.css +109 -37
- package/dist/styles/resizable-side-panel.css +4 -10
- package/dist/styles/responsive-sidebar-shell.css +16 -15
- package/dist/styles/scroll-area.css +32 -15
- package/dist/styles/search-field.css +21 -0
- package/dist/styles/select.css +19 -12
- package/dist/styles/slider.css +25 -29
- package/dist/styles/sources.css +3 -3
- package/dist/styles/stepper.css +36 -26
- package/dist/styles/subagent-run.css +1 -1
- package/dist/styles/switch.css +32 -29
- package/dist/styles/tabs.css +79 -23
- package/dist/styles/task.css +13 -9
- package/dist/styles/test-results.css +29 -23
- package/dist/styles/theme-mode-control.css +8 -0
- package/dist/styles/think-execution-workbench.css +18 -15
- package/dist/styles/think-full-app.css +45 -68
- package/dist/styles/think-routine-library.css +43 -24
- package/dist/styles/think-thread-picker.css +193 -51
- package/dist/styles/toast.css +48 -27
- package/dist/styles/toggle-group.css +2 -36
- package/dist/styles/toggle.css +29 -5
- package/dist/styles/toolbar.css +25 -27
- package/dist/styles/tooltip.css +2 -32
- package/dist/styles/transition-surface.css +55 -0
- package/dist/styles/workspace-explorer.css +99 -44
- package/dist/summarize-tool-input-CqTcGRYy.js +15 -0
- package/dist/utils/codex-model-catalog.d.ts +2 -8
- package/dist/utils/codex-model-catalog.js +2 -16
- package/dist/utils/mcp-server-catalog.d.ts +139 -0
- package/dist/utils/mcp-server-catalog.js +98 -0
- package/dist/utils/structured-code.d.ts +1 -1
- package/package.json +13 -7
- package/dist/Workspace-C9RFoxcu.d.ts +0 -62
- package/dist/summarize-tool-input-BUJsENSn.js +0 -12
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
block-size: 100%;
|
|
4
4
|
min-block-size: 0;
|
|
5
5
|
display: grid;
|
|
6
|
-
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
6
|
+
grid-template-rows: auto auto minmax(0, 1fr) auto;
|
|
7
7
|
overflow: hidden;
|
|
8
8
|
border-inline-end: 0;
|
|
9
9
|
background: var(--sigvelo-color-surface);
|
|
@@ -11,13 +11,16 @@
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.think-thread-picker__header {
|
|
14
|
-
min-block-size:
|
|
14
|
+
min-block-size: var(--sigvelo-density-compact-control-height);
|
|
15
15
|
min-inline-size: 0;
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
|
-
gap:
|
|
19
|
-
padding-block:
|
|
20
|
-
padding-inline: calc(
|
|
18
|
+
gap: var(--sigvelo-density-compact-control-gap);
|
|
19
|
+
padding-block: var(--sigvelo-spacing-1);
|
|
20
|
+
padding-inline: calc(
|
|
21
|
+
var(--sigvelo-density-compact-control-padding-inline) + env(safe-area-inset-left, 0px)
|
|
22
|
+
)
|
|
23
|
+
var(--sigvelo-density-compact-control-padding-inline);
|
|
21
24
|
}
|
|
22
25
|
|
|
23
26
|
.think-thread-picker__title {
|
|
@@ -26,20 +29,27 @@
|
|
|
26
29
|
flex: 1 1 auto;
|
|
27
30
|
overflow: hidden;
|
|
28
31
|
color: var(--sigvelo-color-text-muted);
|
|
29
|
-
font-size: var(--sigvelo-
|
|
32
|
+
font-size: var(--sigvelo-density-compact-control-font-size);
|
|
30
33
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
31
34
|
line-height: var(--sigvelo-leading-tight);
|
|
32
35
|
text-overflow: ellipsis;
|
|
33
36
|
white-space: nowrap;
|
|
34
37
|
}
|
|
35
38
|
|
|
39
|
+
.think-thread-picker__search {
|
|
40
|
+
--sigvelo-recipe-control-height: var(--sigvelo-density-compact-control-height);
|
|
41
|
+
--sigvelo-recipe-control-radius: var(--sigvelo-radius-sm);
|
|
42
|
+
|
|
43
|
+
padding: 0 var(--sigvelo-spacing-2) var(--sigvelo-spacing-2);
|
|
44
|
+
}
|
|
45
|
+
|
|
36
46
|
.think-thread-status-indicators {
|
|
37
47
|
min-inline-size: 0;
|
|
38
48
|
display: inline-flex;
|
|
39
49
|
align-items: center;
|
|
40
|
-
gap: var(--sigvelo-
|
|
50
|
+
gap: var(--sigvelo-density-compact-control-gap);
|
|
41
51
|
color: var(--sigvelo-color-text-muted);
|
|
42
|
-
font-size: var(--sigvelo-
|
|
52
|
+
font-size: var(--sigvelo-density-compact-control-font-size);
|
|
43
53
|
font-variant-numeric: tabular-nums;
|
|
44
54
|
font-weight: var(--sigvelo-font-weight-normal);
|
|
45
55
|
line-height: 1;
|
|
@@ -53,8 +63,8 @@
|
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
.think-thread-status-indicators__item svg {
|
|
56
|
-
inline-size:
|
|
57
|
-
block-size:
|
|
66
|
+
inline-size: var(--sigvelo-density-compact-control-icon-size);
|
|
67
|
+
block-size: var(--sigvelo-density-compact-control-icon-size);
|
|
58
68
|
}
|
|
59
69
|
|
|
60
70
|
.think-thread-status-indicators__item[data-status="running"] {
|
|
@@ -121,45 +131,136 @@
|
|
|
121
131
|
list-style: none;
|
|
122
132
|
}
|
|
123
133
|
|
|
134
|
+
.think-thread-picker__item {
|
|
135
|
+
min-inline-size: 0;
|
|
136
|
+
display: grid;
|
|
137
|
+
}
|
|
138
|
+
|
|
124
139
|
.think-thread-picker__thread {
|
|
140
|
+
grid-area: 1 / 1;
|
|
125
141
|
inline-size: 100%;
|
|
126
142
|
min-inline-size: 0;
|
|
127
|
-
min-block-size:
|
|
143
|
+
min-block-size: var(--sigvelo-density-compact-control-height);
|
|
128
144
|
display: grid;
|
|
129
145
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
130
|
-
padding: 0
|
|
146
|
+
padding-block: 0;
|
|
147
|
+
padding-inline: var(--sigvelo-density-compact-control-padding-inline);
|
|
131
148
|
align-items: center;
|
|
132
149
|
justify-content: flex-start;
|
|
133
|
-
column-gap:
|
|
134
|
-
border-radius: var(--sigvelo-radius-
|
|
150
|
+
column-gap: var(--sigvelo-spacing-1);
|
|
151
|
+
border-radius: var(--sigvelo-radius-md);
|
|
135
152
|
color: var(--sigvelo-color-text);
|
|
136
153
|
font-weight: var(--sigvelo-font-weight-normal);
|
|
137
154
|
text-align: start;
|
|
138
155
|
}
|
|
139
156
|
|
|
140
|
-
.think-thread-
|
|
157
|
+
.think-thread-picker__item:has(.think-thread-picker__delete) .think-thread-picker__thread {
|
|
158
|
+
grid-template-columns:
|
|
159
|
+
minmax(0, 1fr)
|
|
160
|
+
minmax(var(--sigvelo-density-compact-control-height), max-content);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.think-thread-picker__thread[aria-current="page"] {
|
|
141
164
|
background: color-mix(in oklab, var(--sigvelo-color-neutral-bg-subtle), transparent 18%);
|
|
142
165
|
color: var(--sigvelo-color-text);
|
|
143
166
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
144
167
|
}
|
|
145
168
|
|
|
146
|
-
.think-thread-picker__thread[
|
|
169
|
+
.think-thread-picker__thread[aria-current="page"]:hover:not([data-disabled]),
|
|
170
|
+
.think-thread-picker__item:hover
|
|
171
|
+
.think-thread-picker__thread[aria-current="page"]:not([data-disabled]) {
|
|
147
172
|
background: color-mix(in oklab, var(--sigvelo-color-neutral-bg-subtle), transparent 18%);
|
|
148
173
|
}
|
|
149
174
|
|
|
175
|
+
.think-thread-picker__item:hover
|
|
176
|
+
.think-thread-picker__thread:not([aria-current="page"], [data-disabled]) {
|
|
177
|
+
background-color: color-mix(in oklab, transparent, var(--sigvelo-color-text) 5%);
|
|
178
|
+
}
|
|
179
|
+
|
|
150
180
|
.think-thread-picker__thread-title {
|
|
151
181
|
min-inline-size: 0;
|
|
152
182
|
display: block;
|
|
153
183
|
overflow: hidden;
|
|
154
|
-
font-size: var(--sigvelo-
|
|
155
|
-
line-height: var(--sigvelo-leading-
|
|
184
|
+
font-size: var(--sigvelo-density-compact-control-font-size);
|
|
185
|
+
line-height: var(--sigvelo-leading-tight);
|
|
156
186
|
text-overflow: ellipsis;
|
|
157
187
|
white-space: nowrap;
|
|
158
188
|
}
|
|
159
189
|
|
|
190
|
+
.think-thread-picker__delete {
|
|
191
|
+
grid-area: 1 / 1;
|
|
192
|
+
align-self: center;
|
|
193
|
+
justify-self: end;
|
|
194
|
+
z-index: 1;
|
|
195
|
+
margin-inline-end: var(--sigvelo-density-compact-control-padding-inline);
|
|
196
|
+
color: var(--sigvelo-color-text-muted);
|
|
197
|
+
opacity: 0;
|
|
198
|
+
pointer-events: none;
|
|
199
|
+
transition: opacity var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.think-thread-picker__thread-time,
|
|
203
|
+
.think-thread-picker__thread-status {
|
|
204
|
+
justify-self: end;
|
|
205
|
+
transition: opacity var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.think-thread-picker__item:has(.think-thread-picker__delete):focus-within
|
|
209
|
+
:is(.think-thread-picker__thread-time, .think-thread-picker__thread-status) {
|
|
210
|
+
opacity: 0;
|
|
211
|
+
pointer-events: none;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.think-thread-picker__item:has(.think-thread-picker__delete):focus-within
|
|
215
|
+
.think-thread-picker__delete {
|
|
216
|
+
opacity: 1;
|
|
217
|
+
pointer-events: auto;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (hover: hover) and (pointer: fine) {
|
|
221
|
+
.think-thread-picker__item:has(.think-thread-picker__delete):hover
|
|
222
|
+
:is(.think-thread-picker__thread-time, .think-thread-picker__thread-status) {
|
|
223
|
+
opacity: 0;
|
|
224
|
+
pointer-events: none;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.think-thread-picker__item:has(.think-thread-picker__delete):hover .think-thread-picker__delete {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
pointer-events: auto;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@media (any-pointer: coarse) {
|
|
234
|
+
.think-thread-picker__item:has(.think-thread-picker__delete)
|
|
235
|
+
:is(.think-thread-picker__thread-time, .think-thread-picker__thread-status) {
|
|
236
|
+
opacity: 0;
|
|
237
|
+
pointer-events: none;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.think-thread-picker__delete {
|
|
241
|
+
opacity: 1;
|
|
242
|
+
pointer-events: auto;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.think-thread-picker__delete-error {
|
|
247
|
+
display: flex;
|
|
248
|
+
align-items: flex-start;
|
|
249
|
+
gap: var(--sigvelo-spacing-2);
|
|
250
|
+
margin: calc(-1 * var(--sigvelo-spacing-2)) 0 var(--sigvelo-spacing-4);
|
|
251
|
+
color: var(--sigvelo-color-danger-text);
|
|
252
|
+
font-size: var(--sigvelo-text-compact);
|
|
253
|
+
line-height: var(--sigvelo-leading-normal);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.think-thread-picker__delete-error svg {
|
|
257
|
+
flex: 0 0 auto;
|
|
258
|
+
margin-block-start: 0.125rem;
|
|
259
|
+
}
|
|
260
|
+
|
|
160
261
|
.think-thread-picker__thread-time {
|
|
161
262
|
color: var(--sigvelo-color-text-muted);
|
|
162
|
-
font-size: var(--sigvelo-
|
|
263
|
+
font-size: var(--sigvelo-density-compact-control-font-size);
|
|
163
264
|
line-height: var(--sigvelo-leading-tight);
|
|
164
265
|
}
|
|
165
266
|
|
|
@@ -177,31 +278,37 @@
|
|
|
177
278
|
block-size: var(--sigvelo-spacing-3);
|
|
178
279
|
}
|
|
179
280
|
|
|
180
|
-
.think-thread-picker__thread[data-status="pending"] .think-thread-picker__thread-status,
|
|
181
|
-
.think-thread-picker__thread[data-status="running"] .think-thread-picker__thread-status,
|
|
182
|
-
.think-thread-picker__thread[data-status="starting"] .think-thread-picker__thread-status,
|
|
183
|
-
.think-thread-picker__thread[data-status="streaming"] .think-thread-picker__thread-status,
|
|
184
|
-
.think-thread-picker__thread[data-status="submitted"] .think-thread-picker__thread-status,
|
|
185
|
-
.think-thread-picker__thread[data-status="recovering"] .think-thread-picker__thread-status {
|
|
281
|
+
.think-thread-picker__thread[data-thread-status="pending"] .think-thread-picker__thread-status,
|
|
282
|
+
.think-thread-picker__thread[data-thread-status="running"] .think-thread-picker__thread-status,
|
|
283
|
+
.think-thread-picker__thread[data-thread-status="starting"] .think-thread-picker__thread-status,
|
|
284
|
+
.think-thread-picker__thread[data-thread-status="streaming"] .think-thread-picker__thread-status,
|
|
285
|
+
.think-thread-picker__thread[data-thread-status="submitted"] .think-thread-picker__thread-status,
|
|
286
|
+
.think-thread-picker__thread[data-thread-status="recovering"] .think-thread-picker__thread-status {
|
|
186
287
|
color: var(--sigvelo-color-primary-text);
|
|
187
288
|
}
|
|
188
289
|
|
|
189
|
-
.think-thread-picker__thread[data-status="pending"] .think-thread-picker__thread-status svg,
|
|
190
|
-
.think-thread-picker__thread[data-status="running"] .think-thread-picker__thread-status svg,
|
|
191
|
-
.think-thread-picker__thread[data-status="starting"] .think-thread-picker__thread-status svg,
|
|
192
|
-
.think-thread-picker__thread[data-status="streaming"]
|
|
193
|
-
.think-thread-picker__thread
|
|
194
|
-
|
|
290
|
+
.think-thread-picker__thread[data-thread-status="pending"] .think-thread-picker__thread-status svg,
|
|
291
|
+
.think-thread-picker__thread[data-thread-status="running"] .think-thread-picker__thread-status svg,
|
|
292
|
+
.think-thread-picker__thread[data-thread-status="starting"] .think-thread-picker__thread-status svg,
|
|
293
|
+
.think-thread-picker__thread[data-thread-status="streaming"]
|
|
294
|
+
.think-thread-picker__thread-status
|
|
295
|
+
svg,
|
|
296
|
+
.think-thread-picker__thread[data-thread-status="submitted"]
|
|
297
|
+
.think-thread-picker__thread-status
|
|
298
|
+
svg,
|
|
299
|
+
.think-thread-picker__thread[data-thread-status="recovering"]
|
|
300
|
+
.think-thread-picker__thread-status
|
|
301
|
+
svg {
|
|
195
302
|
animation: think-thread-picker-spin 900ms linear infinite;
|
|
196
303
|
}
|
|
197
304
|
|
|
198
|
-
.think-thread-picker__thread[data-status="error"] .think-thread-picker__thread-status {
|
|
305
|
+
.think-thread-picker__thread[data-thread-status="error"] .think-thread-picker__thread-status {
|
|
199
306
|
color: var(--sigvelo-color-danger-text);
|
|
200
307
|
}
|
|
201
308
|
|
|
202
|
-
.think-thread-picker__thread[data-status="aborted"] .think-thread-picker__thread-status,
|
|
203
|
-
.think-thread-picker__thread[data-status="interrupted"] .think-thread-picker__thread-status,
|
|
204
|
-
.think-thread-picker__thread[data-status="skipped"] .think-thread-picker__thread-status {
|
|
309
|
+
.think-thread-picker__thread[data-thread-status="aborted"] .think-thread-picker__thread-status,
|
|
310
|
+
.think-thread-picker__thread[data-thread-status="interrupted"] .think-thread-picker__thread-status,
|
|
311
|
+
.think-thread-picker__thread[data-thread-status="skipped"] .think-thread-picker__thread-status {
|
|
205
312
|
color: var(--sigvelo-color-warning-text);
|
|
206
313
|
}
|
|
207
314
|
|
|
@@ -214,18 +321,18 @@
|
|
|
214
321
|
|
|
215
322
|
.think-thread-picker__footer {
|
|
216
323
|
display: flex;
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
var(--sigvelo-spacing-3);
|
|
324
|
+
padding: var(--sigvelo-spacing-0-5) var(--sigvelo-spacing-1)
|
|
325
|
+
calc(var(--sigvelo-spacing-0-5) + env(safe-area-inset-bottom, 0px));
|
|
326
|
+
border-block-start: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
327
|
+
var(--sigvelo-color-neutral-border-subtle);
|
|
222
328
|
}
|
|
223
329
|
|
|
224
330
|
.think-thread-picker__create {
|
|
225
|
-
inline-size:
|
|
226
|
-
|
|
227
|
-
border
|
|
228
|
-
|
|
331
|
+
inline-size: 100%;
|
|
332
|
+
justify-content: flex-start;
|
|
333
|
+
border: 0;
|
|
334
|
+
background: transparent;
|
|
335
|
+
box-shadow: none;
|
|
229
336
|
}
|
|
230
337
|
|
|
231
338
|
.think-thread-picker__create svg {
|
|
@@ -245,22 +352,57 @@
|
|
|
245
352
|
grid-template-rows: auto auto auto;
|
|
246
353
|
}
|
|
247
354
|
|
|
355
|
+
.think-thread-picker__header {
|
|
356
|
+
display: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.think-thread-picker__search {
|
|
360
|
+
--sigvelo-recipe-control-height: var(--sigvelo-density-compact-control-height);
|
|
361
|
+
--sigvelo-recipe-control-font-size: var(--sigvelo-density-compact-control-font-size);
|
|
362
|
+
--sigvelo-recipe-control-icon-size: var(--sigvelo-density-compact-control-icon-size);
|
|
363
|
+
|
|
364
|
+
padding: 0 var(--sigvelo-spacing-1);
|
|
365
|
+
border-block-end: var(--sigvelo-border-style) var(--sigvelo-border-width)
|
|
366
|
+
var(--sigvelo-color-neutral-border-subtle);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.think-thread-picker__search .field__control {
|
|
370
|
+
border-color: transparent;
|
|
371
|
+
background: transparent;
|
|
372
|
+
}
|
|
373
|
+
|
|
248
374
|
.think-thread-picker__nav,
|
|
249
375
|
.think-thread-picker__scroll,
|
|
250
376
|
.think-thread-picker__viewport {
|
|
251
377
|
block-size: auto;
|
|
252
|
-
max-block-size:
|
|
378
|
+
max-block-size: min(16rem, 42dvh);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.think-thread-picker__viewport {
|
|
382
|
+
padding: var(--sigvelo-spacing-1);
|
|
253
383
|
}
|
|
254
384
|
}
|
|
255
385
|
|
|
256
386
|
@media (prefers-reduced-motion: reduce) {
|
|
257
387
|
.think-thread-status-indicators__item[data-status="running"] svg,
|
|
258
|
-
.think-thread-picker__thread[data-status="pending"]
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
.think-thread-picker__thread[data-status="
|
|
262
|
-
|
|
263
|
-
|
|
388
|
+
.think-thread-picker__thread[data-thread-status="pending"]
|
|
389
|
+
.think-thread-picker__thread-status
|
|
390
|
+
svg,
|
|
391
|
+
.think-thread-picker__thread[data-thread-status="running"]
|
|
392
|
+
.think-thread-picker__thread-status
|
|
393
|
+
svg,
|
|
394
|
+
.think-thread-picker__thread[data-thread-status="starting"]
|
|
395
|
+
.think-thread-picker__thread-status
|
|
396
|
+
svg,
|
|
397
|
+
.think-thread-picker__thread[data-thread-status="streaming"]
|
|
398
|
+
.think-thread-picker__thread-status
|
|
399
|
+
svg,
|
|
400
|
+
.think-thread-picker__thread[data-thread-status="submitted"]
|
|
401
|
+
.think-thread-picker__thread-status
|
|
402
|
+
svg,
|
|
403
|
+
.think-thread-picker__thread[data-thread-status="recovering"]
|
|
404
|
+
.think-thread-picker__thread-status
|
|
405
|
+
svg {
|
|
264
406
|
animation: none;
|
|
265
407
|
}
|
|
266
408
|
}
|
package/dist/styles/toast.css
CHANGED
|
@@ -1,54 +1,63 @@
|
|
|
1
1
|
.toast__viewport {
|
|
2
2
|
position: fixed;
|
|
3
|
-
inset-block-end:
|
|
4
|
-
inset-inline-end:
|
|
3
|
+
inset-block-end: var(--sigvelo-spacing-4);
|
|
4
|
+
inset-inline-end: var(--sigvelo-spacing-4);
|
|
5
5
|
z-index: 100;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
gap: 0.5rem;
|
|
9
|
-
max-width: 24rem;
|
|
10
|
-
width: 100%;
|
|
6
|
+
inline-size: min(24rem, calc(100dvi - var(--sigvelo-spacing-8)));
|
|
7
|
+
max-inline-size: 100%;
|
|
11
8
|
pointer-events: none;
|
|
12
9
|
}
|
|
13
10
|
|
|
14
11
|
.toast {
|
|
15
12
|
--sigvelo-recipe-surface-padding: var(--sigvelo-spacing-3);
|
|
13
|
+
--sigvelo-toast-stack-offset: calc(var(--toast-offset-y, 0px) * -1);
|
|
16
14
|
|
|
15
|
+
position: absolute;
|
|
16
|
+
inset-inline: 0;
|
|
17
|
+
inset-block-end: 0;
|
|
18
|
+
z-index: calc(100 - var(--toast-index));
|
|
17
19
|
display: flex;
|
|
18
20
|
flex-direction: column;
|
|
19
|
-
|
|
21
|
+
inline-size: 100%;
|
|
20
22
|
pointer-events: auto;
|
|
23
|
+
translate: var(--toast-swipe-movement-x, 0px)
|
|
24
|
+
calc(var(--sigvelo-toast-stack-offset) + var(--toast-swipe-movement-y, 0px));
|
|
21
25
|
transition:
|
|
22
|
-
opacity var(--sigvelo-duration-
|
|
23
|
-
|
|
26
|
+
opacity var(--sigvelo-motion-duration-presence) var(--sigvelo-motion-ease-change),
|
|
27
|
+
translate var(--sigvelo-motion-duration-layout) var(--sigvelo-motion-ease-change);
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
.toast[data-starting-style],
|
|
27
31
|
.toast[data-ending-style] {
|
|
28
32
|
opacity: 0;
|
|
29
|
-
|
|
33
|
+
translate: calc(100% + var(--sigvelo-motion-distance-md) + var(--toast-swipe-movement-x, 0px))
|
|
34
|
+
calc(var(--sigvelo-toast-stack-offset) + var(--toast-swipe-movement-y, 0px));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.toast[data-ending-style] {
|
|
38
|
+
transition-timing-function: var(--sigvelo-motion-ease-exit);
|
|
30
39
|
}
|
|
31
40
|
|
|
32
41
|
.toast[data-type="success"] {
|
|
33
|
-
border-inline-start:
|
|
42
|
+
border-inline-start: calc(var(--sigvelo-border-width) * 4) solid var(--sigvelo-color-success-bg);
|
|
34
43
|
}
|
|
35
44
|
|
|
36
45
|
.toast[data-type="error"] {
|
|
37
|
-
border-inline-start:
|
|
46
|
+
border-inline-start: calc(var(--sigvelo-border-width) * 4) solid var(--sigvelo-color-danger-bg);
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
.toast[data-type="warning"] {
|
|
41
|
-
border-inline-start:
|
|
50
|
+
border-inline-start: calc(var(--sigvelo-border-width) * 4) solid var(--sigvelo-color-warning-bg);
|
|
42
51
|
}
|
|
43
52
|
|
|
44
53
|
.toast[data-type="info"] {
|
|
45
|
-
border-inline-start:
|
|
54
|
+
border-inline-start: calc(var(--sigvelo-border-width) * 4) solid var(--sigvelo-color-focus);
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
.toast__content {
|
|
49
58
|
display: flex;
|
|
50
59
|
flex-direction: column;
|
|
51
|
-
gap:
|
|
60
|
+
gap: var(--sigvelo-spacing-1);
|
|
52
61
|
flex: 1;
|
|
53
62
|
}
|
|
54
63
|
|
|
@@ -61,21 +70,27 @@
|
|
|
61
70
|
}
|
|
62
71
|
|
|
63
72
|
.toast__action {
|
|
73
|
+
--sigvelo-recipe-control-height: var(--sigvelo-control-height-xs);
|
|
74
|
+
--sigvelo-recipe-control-padding-inline: var(--sigvelo-control-padding-inline-xs);
|
|
75
|
+
--sigvelo-recipe-control-font-size: var(--sigvelo-control-text-xs);
|
|
76
|
+
|
|
64
77
|
display: inline-flex;
|
|
65
78
|
align-items: center;
|
|
66
79
|
justify-content: center;
|
|
67
|
-
|
|
68
|
-
padding-
|
|
80
|
+
min-block-size: var(--sigvelo-recipe-control-height);
|
|
81
|
+
padding-block: 0;
|
|
82
|
+
padding-inline: var(--sigvelo-recipe-control-padding-inline);
|
|
69
83
|
margin-block-start: var(--sigvelo-spacing-2);
|
|
70
84
|
font-family: inherit;
|
|
71
|
-
font-size: var(--sigvelo-
|
|
85
|
+
font-size: var(--sigvelo-recipe-control-font-size);
|
|
72
86
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
73
87
|
color: var(--sigvelo-color-primary-text-on-bg);
|
|
74
88
|
background-color: var(--sigvelo-color-primary-bg);
|
|
75
89
|
border: none;
|
|
76
90
|
border-radius: var(--sigvelo-radius-sm);
|
|
77
91
|
cursor: pointer;
|
|
78
|
-
transition: background-color var(--sigvelo-duration-
|
|
92
|
+
transition: background-color var(--sigvelo-motion-duration-interaction)
|
|
93
|
+
var(--sigvelo-motion-ease-change);
|
|
79
94
|
}
|
|
80
95
|
|
|
81
96
|
.toast__action:hover {
|
|
@@ -89,13 +104,13 @@
|
|
|
89
104
|
|
|
90
105
|
.toast__close {
|
|
91
106
|
position: absolute;
|
|
92
|
-
inset-block-start:
|
|
93
|
-
inset-inline-end:
|
|
107
|
+
inset-block-start: var(--sigvelo-spacing-2);
|
|
108
|
+
inset-inline-end: var(--sigvelo-spacing-2);
|
|
94
109
|
display: flex;
|
|
95
110
|
align-items: center;
|
|
96
111
|
justify-content: center;
|
|
97
|
-
|
|
98
|
-
|
|
112
|
+
inline-size: var(--sigvelo-control-height-xs);
|
|
113
|
+
block-size: var(--sigvelo-control-height-xs);
|
|
99
114
|
padding: 0;
|
|
100
115
|
font-size: var(--sigvelo-text-base);
|
|
101
116
|
color: var(--sigvelo-color-text-muted);
|
|
@@ -105,11 +120,11 @@
|
|
|
105
120
|
cursor: pointer;
|
|
106
121
|
opacity: 0;
|
|
107
122
|
transition:
|
|
108
|
-
opacity var(--sigvelo-duration-
|
|
109
|
-
background-color var(--sigvelo-duration-
|
|
123
|
+
opacity var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change),
|
|
124
|
+
background-color var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
110
125
|
}
|
|
111
126
|
|
|
112
|
-
.toast:hover .toast__close {
|
|
127
|
+
.toast:is(:hover, :focus-within) .toast__close {
|
|
113
128
|
opacity: 1;
|
|
114
129
|
}
|
|
115
130
|
|
|
@@ -123,3 +138,9 @@
|
|
|
123
138
|
outline: none;
|
|
124
139
|
box-shadow: var(--sigvelo-recipe-focus-shadow);
|
|
125
140
|
}
|
|
141
|
+
|
|
142
|
+
@media (hover: none) {
|
|
143
|
+
.toast__close {
|
|
144
|
+
opacity: 1;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
align-items: center;
|
|
4
4
|
background-color: var(--sigvelo-color-neutral-bg-subtle);
|
|
5
5
|
border-radius: var(--sigvelo-radius-md);
|
|
6
|
-
padding:
|
|
6
|
+
padding: var(--sigvelo-spacing-1);
|
|
7
7
|
gap: var(--sigvelo-spacing-0-5);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -13,40 +13,13 @@
|
|
|
13
13
|
|
|
14
14
|
.toggle-group--lg {
|
|
15
15
|
padding: var(--sigvelo-spacing-1-5);
|
|
16
|
-
gap:
|
|
16
|
+
gap: var(--sigvelo-spacing-1);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.toggle-group__item {
|
|
20
|
-
display: inline-flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
justify-content: center;
|
|
23
|
-
min-block-size: var(--sigvelo-recipe-control-height);
|
|
24
|
-
padding-block: 0;
|
|
25
|
-
padding-inline: var(--sigvelo-recipe-control-padding-inline);
|
|
26
|
-
font-family: inherit;
|
|
27
|
-
font-size: var(--sigvelo-recipe-control-font-size);
|
|
28
|
-
font-weight: var(--sigvelo-font-weight-semibold);
|
|
29
20
|
color: var(--sigvelo-color-text-muted);
|
|
30
|
-
background-color: transparent;
|
|
31
21
|
border: none;
|
|
32
22
|
border-radius: calc(var(--sigvelo-radius-md) - 2px);
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
transition:
|
|
35
|
-
background-color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
|
|
36
|
-
color var(--sigvelo-duration-fast) var(--sigvelo-ease-standard),
|
|
37
|
-
box-shadow var(--sigvelo-duration-fast) var(--sigvelo-ease-standard);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.toggle-group--sm .toggle-group__item {
|
|
41
|
-
--sigvelo-recipe-control-height: var(--sigvelo-control-height-sm);
|
|
42
|
-
--sigvelo-recipe-control-padding-inline: var(--sigvelo-spacing-2);
|
|
43
|
-
--sigvelo-recipe-control-font-size: var(--sigvelo-control-text-sm);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.toggle-group--lg .toggle-group__item {
|
|
47
|
-
--sigvelo-recipe-control-height: var(--sigvelo-control-height-lg);
|
|
48
|
-
--sigvelo-recipe-control-padding-inline: var(--sigvelo-spacing-4);
|
|
49
|
-
--sigvelo-recipe-control-font-size: var(--sigvelo-control-text-lg);
|
|
50
23
|
}
|
|
51
24
|
|
|
52
25
|
.toggle-group__item:hover:not([data-disabled]) {
|
|
@@ -54,8 +27,6 @@
|
|
|
54
27
|
}
|
|
55
28
|
|
|
56
29
|
.toggle-group__item:focus-visible {
|
|
57
|
-
outline: none;
|
|
58
|
-
box-shadow: var(--sigvelo-recipe-focus-shadow);
|
|
59
30
|
z-index: 1;
|
|
60
31
|
}
|
|
61
32
|
|
|
@@ -67,11 +38,6 @@
|
|
|
67
38
|
0 1px 2px -1px color-mix(in oklab, var(--sigvelo-color-text), transparent 90%);
|
|
68
39
|
}
|
|
69
40
|
|
|
70
|
-
.toggle-group__item[data-disabled] {
|
|
71
|
-
opacity: var(--sigvelo-recipe-disabled-opacity);
|
|
72
|
-
cursor: not-allowed;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
41
|
@media (forced-colors: active) {
|
|
76
42
|
.toggle-group__item[data-pressed] {
|
|
77
43
|
outline: 2px solid Highlight;
|
package/dist/styles/toggle.css
CHANGED
|
@@ -16,10 +16,12 @@
|
|
|
16
16
|
var(--sigvelo-color-neutral-border-muted);
|
|
17
17
|
border-radius: var(--sigvelo-radius-md);
|
|
18
18
|
cursor: pointer;
|
|
19
|
+
translate: 0;
|
|
19
20
|
transition:
|
|
20
|
-
background-color var(--sigvelo-duration-
|
|
21
|
-
border-color var(--sigvelo-duration-
|
|
22
|
-
color var(--sigvelo-duration-
|
|
21
|
+
background-color var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change),
|
|
22
|
+
border-color var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change),
|
|
23
|
+
color var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change),
|
|
24
|
+
translate var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
.toggle--outline {
|
|
@@ -29,14 +31,22 @@
|
|
|
29
31
|
|
|
30
32
|
.toggle--sm {
|
|
31
33
|
--sigvelo-recipe-control-height: var(--sigvelo-control-height-sm);
|
|
32
|
-
--sigvelo-recipe-control-padding-inline: var(--sigvelo-
|
|
34
|
+
--sigvelo-recipe-control-padding-inline: var(--sigvelo-control-padding-inline-sm);
|
|
33
35
|
--sigvelo-recipe-control-font-size: var(--sigvelo-control-text-sm);
|
|
36
|
+
--sigvelo-recipe-control-icon-size: var(--sigvelo-control-icon-size-sm);
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
.toggle--lg {
|
|
37
40
|
--sigvelo-recipe-control-height: var(--sigvelo-control-height-lg);
|
|
38
|
-
--sigvelo-recipe-control-padding-inline: var(--sigvelo-
|
|
41
|
+
--sigvelo-recipe-control-padding-inline: var(--sigvelo-control-padding-inline-lg);
|
|
39
42
|
--sigvelo-recipe-control-font-size: var(--sigvelo-control-text-lg);
|
|
43
|
+
--sigvelo-recipe-control-icon-size: var(--sigvelo-control-icon-size-lg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.toggle > svg {
|
|
47
|
+
inline-size: var(--sigvelo-recipe-control-icon-size);
|
|
48
|
+
block-size: var(--sigvelo-recipe-control-icon-size);
|
|
49
|
+
flex: none;
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
.toggle:hover {
|
|
@@ -55,7 +65,21 @@
|
|
|
55
65
|
border-color: var(--sigvelo-color-neutral-bg-subtle);
|
|
56
66
|
}
|
|
57
67
|
|
|
68
|
+
.toggle:active:not(:disabled) {
|
|
69
|
+
translate: 0 var(--sigvelo-motion-distance-xs);
|
|
70
|
+
}
|
|
71
|
+
|
|
58
72
|
.toggle:disabled {
|
|
59
73
|
opacity: var(--sigvelo-recipe-disabled-opacity);
|
|
60
74
|
pointer-events: none;
|
|
61
75
|
}
|
|
76
|
+
|
|
77
|
+
@media (prefers-reduced-motion: reduce) {
|
|
78
|
+
.toggle {
|
|
79
|
+
translate: none;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:root[data-motion="reduce"] .toggle {
|
|
84
|
+
translate: none;
|
|
85
|
+
}
|