@deepseek-ai/dsh-client-ui-primitives 0.2.2-rc.5 → 0.2.3-alpha.2
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/README.i18n.yaml +12 -12
- package/README.md +21 -10
- package/README.zh.md +21 -10
- package/lib/index.js +2961 -868
- package/lib/index.js.map +1 -1
- package/lib/types/Checkbox.d.ts.map +1 -1
- package/lib/types/Checkbox.js.map +1 -1
- package/lib/types/HoverCard.d.ts +5 -3
- package/lib/types/HoverCard.d.ts.map +1 -1
- package/lib/types/HoverCard.js.map +1 -1
- package/lib/types/ImageLightbox.d.ts.map +1 -1
- package/lib/types/ImageLightbox.js.map +1 -1
- package/lib/types/LinkIcon.js.map +1 -1
- package/lib/types/Marquee.d.ts +35 -0
- package/lib/types/Marquee.d.ts.map +1 -0
- package/lib/types/Marquee.js.map +1 -0
- package/lib/types/Menu.d.ts +24 -5
- package/lib/types/Menu.d.ts.map +1 -1
- package/lib/types/Menu.js.map +1 -1
- package/lib/types/PermissionIcon.d.ts.map +1 -1
- package/lib/types/PermissionIcon.js.map +1 -1
- package/lib/types/SearchField.d.ts +18 -0
- package/lib/types/SearchField.d.ts.map +1 -0
- package/lib/types/SearchField.js.map +1 -0
- package/lib/types/Switch.d.ts +5 -1
- package/lib/types/Switch.d.ts.map +1 -1
- package/lib/types/Switch.js.map +1 -1
- package/lib/types/TerminalBlock.js.map +1 -1
- package/lib/types/clipboard.d.ts +4 -2
- package/lib/types/clipboard.d.ts.map +1 -1
- package/lib/types/clipboard.js.map +1 -1
- package/lib/types/icons/artwork.d.ts +16 -0
- package/lib/types/icons/artwork.d.ts.map +1 -1
- package/lib/types/icons/artwork.js.map +1 -1
- package/lib/types/icons/index.d.ts +21 -5
- package/lib/types/icons/index.d.ts.map +1 -1
- package/lib/types/icons/index.js.map +1 -1
- package/lib/types/icons/props.d.ts +1 -1
- package/lib/types/icons/props.d.ts.map +1 -1
- package/lib/types/icons/shared-artwork.js.map +1 -1
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/input-modality.d.ts +5 -0
- package/lib/types/input-modality.d.ts.map +1 -1
- package/lib/types/input-modality.js.map +1 -1
- package/lib/types/markdown/cjkFriendlyStrong.d.ts +4 -1
- package/lib/types/markdown/cjkFriendlyStrong.d.ts.map +1 -1
- package/lib/types/markdown/cjkFriendlyStrong.js.map +1 -1
- package/lib/types/useMenuSubmenu.d.ts +1 -0
- package/lib/types/useMenuSubmenu.d.ts.map +1 -1
- package/lib/types/useMenuSubmenu.js.map +1 -1
- package/lib/types/useModalLayer.d.ts +3 -1
- package/lib/types/useModalLayer.d.ts.map +1 -1
- package/lib/types/useModalLayer.js.map +1 -1
- package/package.json +8 -8
- package/src/Checkbox.module.css +43 -2
- package/src/Checkbox.tsx +7 -3
- package/src/HoverCard.module.css +42 -0
- package/src/HoverCard.tsx +53 -49
- package/src/ImageLightbox.tsx +2 -1
- package/src/Input.module.css +7 -1
- package/src/LinkIcon.tsx +9 -9
- package/src/Marquee.module.css +47 -0
- package/src/Marquee.tsx +109 -0
- package/src/Menu.module.css +34 -4
- package/src/Menu.tsx +138 -35
- package/src/Modal.module.css +8 -4
- package/src/PermissionIcon.tsx +10 -12
- package/src/Pill.module.css +11 -1
- package/src/RiskConfirmation.module.css +6 -1
- package/src/SearchField.module.css +74 -0
- package/src/SearchField.tsx +37 -0
- package/src/SegmentedTabs.module.css +4 -10
- package/src/Switch.tsx +7 -1
- package/src/TerminalBlock.tsx +4 -4
- package/src/clipboard.ts +29 -15
- package/src/icons/artwork.ts +89 -85
- package/src/icons/index.tsx +29 -5
- package/src/icons/props.ts +1 -1
- package/src/icons/shared-artwork.tsx +14 -14
- package/src/index.ts +2 -1
- package/src/input-modality.ts +13 -5
- package/src/markdown/MarkdownText.module.css +21 -10
- package/src/markdown/cjkFriendlyStrong.ts +9 -2
- package/src/useMenuSubmenu.ts +6 -3
- package/src/useModalLayer.ts +5 -2
- package/lib/AnimatedRows.module.css +0 -7
- package/lib/Button.module.css +0 -84
- package/lib/Checkbox.module.css +0 -28
- package/lib/CodeCard.module.css +0 -85
- package/lib/CommandText.module.css +0 -12
- package/lib/ConnectionIndicator.module.css +0 -120
- package/lib/DetailDocument.module.css +0 -67
- package/lib/DiffBlock.module.css +0 -82
- package/lib/DisclosureRow.module.css +0 -115
- package/lib/FileTypeIcon.module.css +0 -50
- package/lib/HoverCard.module.css +0 -108
- package/lib/ImageLightbox.module.css +0 -54
- package/lib/ImagePreview.module.css +0 -24
- package/lib/InlineEditor.module.css +0 -23
- package/lib/Input.module.css +0 -38
- package/lib/JsonTree.module.css +0 -371
- package/lib/Menu.module.css +0 -443
- package/lib/MenuGroup.module.css +0 -37
- package/lib/MenuSurface.module.css +0 -65
- package/lib/Modal.module.css +0 -147
- package/lib/PathLabel.module.css +0 -28
- package/lib/Pill.module.css +0 -30
- package/lib/QuotePreview.module.css +0 -138
- package/lib/ReadBlock.module.css +0 -45
- package/lib/RiskConfirmation.module.css +0 -47
- package/lib/RowDragPreview.module.css +0 -12
- package/lib/SearchBlock.module.css +0 -114
- package/lib/SegmentedControl.module.css +0 -81
- package/lib/SegmentedTabs.module.css +0 -77
- package/lib/ShortcutKeys.module.css +0 -33
- package/lib/StateDot.module.css +0 -100
- package/lib/Switch.module.css +0 -49
- package/lib/Tag.module.css +0 -57
- package/lib/TerminalBlock.module.css +0 -207
- package/lib/TextShimmer.module.css +0 -88
- package/lib/Toast.module.css +0 -102
- package/lib/Tooltip.module.css +0 -68
- package/lib/UserMessageBubble.module.css +0 -11
- package/lib/WebBlock.module.css +0 -153
- package/lib/ZoomControls.module.css +0 -54
- package/lib/markdown/CodeBlock.module.css +0 -209
- package/lib/markdown/JsonBlock.module.css +0 -34
- package/lib/markdown/MarkdownText.module.css +0 -511
- package/lib/settings-form/SettingsForm.module.css +0 -53
- package/lib/settings-form/fields.module.css +0 -153
- package/lib/types/rank-by-name.d.ts +0 -22
- package/lib/types/rank-by-name.d.ts.map +0 -1
- package/lib/types/rank-by-name.js.map +0 -1
- package/lib/user-text.module.css +0 -46
- package/src/rank-by-name.ts +0 -93
package/lib/Pill.module.css
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
.pill {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
height: 24px;
|
|
6
|
-
padding: 0 8px;
|
|
7
|
-
border: none;
|
|
8
|
-
border-radius: 999px;
|
|
9
|
-
corner-shape: round;
|
|
10
|
-
font-size: 12px;
|
|
11
|
-
line-height: 18px;
|
|
12
|
-
color: var(--dsw-alias-label-secondary);
|
|
13
|
-
background: var(--dsw-alias-bg-layer-2);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.interactive {
|
|
17
|
-
cursor: pointer;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@media (hover: hover) {
|
|
21
|
-
.interactive:hover {
|
|
22
|
-
background: var(--dsw-alias-interactive-bg-hover);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.active {
|
|
27
|
-
color: var(--dsw-alias-label-primary);
|
|
28
|
-
background: var(--dsw-alias-button-ghost-active-fill);
|
|
29
|
-
box-shadow: inset 0 0 0 1px var(--dsw-alias-button-ghost-active-border);
|
|
30
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
.quote {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: baseline;
|
|
4
|
-
gap: 4px;
|
|
5
|
-
box-sizing: border-box;
|
|
6
|
-
max-width: min(80%, 300px);
|
|
7
|
-
margin: 0;
|
|
8
|
-
padding: 0;
|
|
9
|
-
vertical-align: baseline;
|
|
10
|
-
color: var(--dsw-alias-state-business-primary);
|
|
11
|
-
font-size: var(--dsh-content-font-size, 14px);
|
|
12
|
-
line-height: calc(20px + var(--dsh-content-font-delta, 0px));
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.popoverText {
|
|
16
|
-
display: block;
|
|
17
|
-
padding: 8px 10px;
|
|
18
|
-
color: var(--dsw-alias-label-primary);
|
|
19
|
-
font-size: 14px;
|
|
20
|
-
line-height: 20px;
|
|
21
|
-
overflow-wrap: anywhere;
|
|
22
|
-
white-space: pre-wrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.visuallyHidden {
|
|
26
|
-
position: absolute;
|
|
27
|
-
width: 1px;
|
|
28
|
-
height: 1px;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
clip: rect(0 0 0 0);
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.inlineBody {
|
|
35
|
-
color: var(--dsw-alias-label-secondary);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.summary {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
gap: 4px;
|
|
42
|
-
padding: 8px 10px;
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
line-height: 20px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.summaryTitle {
|
|
48
|
-
color: var(--dsw-alias-state-business-primary);
|
|
49
|
-
overflow-wrap: anywhere;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.summaryDetail {
|
|
53
|
-
color: var(--dsw-alias-label-secondary);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.summaryBody {
|
|
57
|
-
color: var(--dsw-alias-label-primary);
|
|
58
|
-
overflow-wrap: anywhere;
|
|
59
|
-
white-space: pre-wrap;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.source {
|
|
63
|
-
min-width: 0;
|
|
64
|
-
padding: 0;
|
|
65
|
-
border: none;
|
|
66
|
-
outline: none;
|
|
67
|
-
background: none;
|
|
68
|
-
color: inherit;
|
|
69
|
-
font: inherit;
|
|
70
|
-
line-height: inherit;
|
|
71
|
-
text-align: left;
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
white-space: nowrap;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.marker,
|
|
78
|
-
.remove {
|
|
79
|
-
display: grid;
|
|
80
|
-
place-items: center;
|
|
81
|
-
align-self: center;
|
|
82
|
-
flex: none;
|
|
83
|
-
width: 16px;
|
|
84
|
-
height: 16px;
|
|
85
|
-
padding: 0;
|
|
86
|
-
color: inherit;
|
|
87
|
-
user-select: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.marker {
|
|
91
|
-
pointer-events: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.remove {
|
|
95
|
-
border: none;
|
|
96
|
-
border-radius: 50%;
|
|
97
|
-
corner-shape: round;
|
|
98
|
-
background: transparent;
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.quoteMark,
|
|
103
|
-
.closeMark {
|
|
104
|
-
grid-area: 1 / 1;
|
|
105
|
-
transition: opacity 120ms ease;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.closeMark {
|
|
109
|
-
opacity: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.quote[data-removable]:focus-within .quoteMark {
|
|
113
|
-
opacity: 0;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.quote[data-removable]:focus-within .closeMark {
|
|
117
|
-
opacity: 1;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@media (hover: hover) {
|
|
121
|
-
.quote[data-removable]:hover .quoteMark {
|
|
122
|
-
opacity: 0;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.quote[data-removable]:hover .closeMark {
|
|
126
|
-
opacity: 1;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
@media (hover: none) {
|
|
131
|
-
.quote[data-removable] .quoteMark {
|
|
132
|
-
opacity: 0;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.quote[data-removable] .closeMark {
|
|
136
|
-
opacity: 1;
|
|
137
|
-
}
|
|
138
|
-
}
|
package/lib/ReadBlock.module.css
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.line {
|
|
2
|
-
display: flex;
|
|
3
|
-
min-height: 1lh;
|
|
4
|
-
white-space: pre;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.gutter {
|
|
8
|
-
flex: none;
|
|
9
|
-
width: var(--dsl-read-gutter);
|
|
10
|
-
margin-right: 12px;
|
|
11
|
-
text-align: right;
|
|
12
|
-
color: var(--dsw-alias-label-tertiary);
|
|
13
|
-
user-select: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.content {
|
|
17
|
-
min-width: 0;
|
|
18
|
-
color: var(--dsw-alias-label-primary);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.block[data-code-wrap='true'] .line {
|
|
22
|
-
white-space: pre-wrap;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.block[data-code-wrap='true'] .content {
|
|
26
|
-
overflow-wrap: anywhere;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.expand {
|
|
30
|
-
display: block;
|
|
31
|
-
width: 100%;
|
|
32
|
-
padding: 0 0 0 calc(var(--dsl-read-gutter) + 12px);
|
|
33
|
-
border: none;
|
|
34
|
-
background: transparent;
|
|
35
|
-
color: var(--dsw-alias-label-tertiary);
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
font: inherit;
|
|
38
|
-
text-align: left;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media (hover: hover) {
|
|
42
|
-
.expand:hover {
|
|
43
|
-
color: var(--dsw-alias-label-secondary);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.confirmation {
|
|
2
|
-
width: min(440px, 100%);
|
|
3
|
-
max-height: 100%;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.confirmationContent {
|
|
8
|
-
min-height: 0;
|
|
9
|
-
overflow-y: auto;
|
|
10
|
-
overscroll-behavior: contain;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@supports (height: 100dvh) {
|
|
14
|
-
.confirmation {
|
|
15
|
-
max-height: calc(100dvh - 48px);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.description {
|
|
20
|
-
margin: 0;
|
|
21
|
-
color: var(--dsw-alias-label-secondary);
|
|
22
|
-
font-size: 14px;
|
|
23
|
-
line-height: 22px;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.confirmation .acknowledgement {
|
|
27
|
-
align-items: flex-start;
|
|
28
|
-
margin-top: 16px;
|
|
29
|
-
color: var(--dsw-alias-label-secondary);
|
|
30
|
-
font-size: 14px;
|
|
31
|
-
font-weight: 400;
|
|
32
|
-
line-height: 20px;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.confirmation .acknowledgement input {
|
|
36
|
-
width: 14px;
|
|
37
|
-
height: 14px;
|
|
38
|
-
margin-top: 3px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.modalAction {
|
|
42
|
-
min-width: 72px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.confirmAction {
|
|
46
|
-
min-width: 136px;
|
|
47
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
.block {
|
|
2
|
-
--dsl-search-radius: var(--dsw-radius-lg);
|
|
3
|
-
--dsl-search-line-height: 22px;
|
|
4
|
-
|
|
5
|
-
position: relative;
|
|
6
|
-
margin: 16px 0;
|
|
7
|
-
color: var(--dsw-alias-label-primary);
|
|
8
|
-
background: var(--dsw-alias-markdown-code-block);
|
|
9
|
-
border-radius: var(--dsl-search-radius);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.header {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
gap: 12px;
|
|
16
|
-
padding: 9px 14px;
|
|
17
|
-
background: var(--dsw-alias-markdown-code-block-banner);
|
|
18
|
-
border-top-left-radius: var(--dsl-search-radius);
|
|
19
|
-
border-top-right-radius: var(--dsl-search-radius);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.summary {
|
|
23
|
-
flex: 1;
|
|
24
|
-
min-width: 0;
|
|
25
|
-
overflow: hidden;
|
|
26
|
-
text-overflow: ellipsis;
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
font: var(--dsw-font-xs-13);
|
|
29
|
-
color: var(--dsw-alias-label-secondary);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.copyButton {
|
|
33
|
-
flex: none;
|
|
34
|
-
background-color: transparent;
|
|
35
|
-
border: none;
|
|
36
|
-
padding: 0;
|
|
37
|
-
margin: 0;
|
|
38
|
-
color: var(--dsw-alias-label-secondary);
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
font: var(--dsw-font-xs-13);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.body {
|
|
44
|
-
padding: 8px 14px 12px 0;
|
|
45
|
-
font: var(--dsw-font-markdown-code-block);
|
|
46
|
-
overflow-x: auto;
|
|
47
|
-
overflow-y: hidden;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/* No wrapping: a match line or a path keeps its content on one row and scrolls
|
|
51
|
-
sideways instead of folding. */
|
|
52
|
-
.line {
|
|
53
|
-
min-height: var(--dsl-search-line-height);
|
|
54
|
-
padding-left: 14px;
|
|
55
|
-
white-space: pre;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/* The 1-based line number ahead of a grep match line, dimmed so the match text
|
|
59
|
-
stays the salient content. */
|
|
60
|
-
.lineNumber {
|
|
61
|
-
color: var(--dsw-alias-label-tertiary);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/* A file group's header: a bold path label plus its match count, the whole row
|
|
65
|
-
the collapse control. */
|
|
66
|
-
.fileHeader {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: baseline;
|
|
69
|
-
gap: 8px;
|
|
70
|
-
width: 100%;
|
|
71
|
-
min-height: var(--dsl-search-line-height);
|
|
72
|
-
padding: 0 14px;
|
|
73
|
-
border: none;
|
|
74
|
-
background-color: transparent;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
font: inherit;
|
|
77
|
-
text-align: left;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.filePath {
|
|
81
|
-
min-width: 0;
|
|
82
|
-
font-weight: 600;
|
|
83
|
-
color: var(--dsw-alias-label-primary);
|
|
84
|
-
white-space: pre;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.fileCount {
|
|
88
|
-
flex: none;
|
|
89
|
-
color: var(--dsw-alias-label-tertiary);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.expand {
|
|
93
|
-
display: block;
|
|
94
|
-
width: 100%;
|
|
95
|
-
padding: 0 14px;
|
|
96
|
-
border: none;
|
|
97
|
-
background-color: transparent;
|
|
98
|
-
color: var(--dsw-alias-label-tertiary);
|
|
99
|
-
cursor: pointer;
|
|
100
|
-
font: inherit;
|
|
101
|
-
text-align: left;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@media (hover: hover) {
|
|
105
|
-
.expand:hover {
|
|
106
|
-
color: var(--dsw-alias-label-secondary);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.empty {
|
|
111
|
-
padding: 12px 14px;
|
|
112
|
-
font: var(--dsw-font-markdown-code-block);
|
|
113
|
-
color: var(--dsw-alias-label-tertiary);
|
|
114
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/* The track is the same translucent fill the hover state uses, so it reads as
|
|
2
|
-
* a place rather than a second button; the one raised part is the indicator,
|
|
3
|
-
* a white pill that slides under the selected segment. Its stroke rides inside
|
|
4
|
-
* the soft elevation shadow (border: 0), the way every elevated surface draws
|
|
5
|
-
* its edge, so the elevation gate keeps it off the alias-border set.
|
|
6
|
-
*
|
|
7
|
-
* Segments are equal-width grid tracks sized to the widest label, which is
|
|
8
|
-
* what lets one indicator be placed arithmetically: the tablist carries the
|
|
9
|
-
* segment count and the selected index as custom properties, and the indicator
|
|
10
|
-
* derives its width and offset from them instead of measuring the DOM. */
|
|
11
|
-
.control {
|
|
12
|
-
position: relative;
|
|
13
|
-
display: inline-grid;
|
|
14
|
-
grid-auto-flow: column;
|
|
15
|
-
grid-auto-columns: 1fr;
|
|
16
|
-
gap: 2px;
|
|
17
|
-
padding: 4px;
|
|
18
|
-
border-radius: var(--dsw-radius-md);
|
|
19
|
-
background: var(--dsw-alias-interactive-bg-hover);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.indicator {
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: 4px;
|
|
25
|
-
left: 4px;
|
|
26
|
-
width: calc((100% - 8px - 2px * (var(--dsh-segment-count) - 1)) / var(--dsh-segment-count));
|
|
27
|
-
height: calc(100% - 8px);
|
|
28
|
-
border: 0;
|
|
29
|
-
border-radius: var(--dsw-radius-sm);
|
|
30
|
-
background: var(--dsw-alias-bg-layer-1);
|
|
31
|
-
box-shadow: var(--dsw-elevation-soft);
|
|
32
|
-
transform: translateX(calc(var(--dsh-segment-index) * (100% + 2px)));
|
|
33
|
-
transition: transform 160ms ease;
|
|
34
|
-
pointer-events: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.tab {
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
position: relative;
|
|
40
|
-
z-index: 1;
|
|
41
|
-
height: 28px;
|
|
42
|
-
padding: 0 16px;
|
|
43
|
-
border: 0;
|
|
44
|
-
border-radius: var(--dsw-radius-sm);
|
|
45
|
-
background: transparent;
|
|
46
|
-
color: var(--dsw-alias-label-secondary);
|
|
47
|
-
font: inherit;
|
|
48
|
-
font-size: 13px;
|
|
49
|
-
line-height: 20px;
|
|
50
|
-
font-weight: 500;
|
|
51
|
-
white-space: nowrap;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
transition: color 120ms ease;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.tab[aria-selected='true'] {
|
|
57
|
-
color: var(--dsw-alias-label-primary);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@media (hover: hover) {
|
|
61
|
-
.tab:hover:not(:disabled) {
|
|
62
|
-
color: var(--dsw-alias-label-primary);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.tab:disabled {
|
|
67
|
-
cursor: default;
|
|
68
|
-
opacity: 0.4;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.tab:focus-visible {
|
|
72
|
-
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
73
|
-
outline-offset: -2px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@media (prefers-reduced-motion: reduce) {
|
|
77
|
-
.indicator,
|
|
78
|
-
.tab {
|
|
79
|
-
transition: none;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
.tabs {
|
|
2
|
-
--segmented-tabs-inset: 4px;
|
|
3
|
-
|
|
4
|
-
position: relative;
|
|
5
|
-
display: grid;
|
|
6
|
-
padding: var(--segmented-tabs-inset);
|
|
7
|
-
border-radius: var(--dsw-radius-lg);
|
|
8
|
-
background: var(--dsw-alias-bg-module-platform);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.indicator {
|
|
12
|
-
position: absolute;
|
|
13
|
-
inset: var(--segmented-tabs-inset) auto var(--segmented-tabs-inset) var(--segmented-tabs-inset);
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
16
|
-
border-radius: var(--dsw-radius-md);
|
|
17
|
-
background: var(--dsw-alias-bg-layer-3);
|
|
18
|
-
transition: transform 180ms ease;
|
|
19
|
-
pointer-events: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.tab {
|
|
23
|
-
position: relative;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
height: 34px;
|
|
26
|
-
padding: 0 12px;
|
|
27
|
-
border-radius: var(--dsw-radius-md);
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
line-height: 20px;
|
|
30
|
-
background: transparent;
|
|
31
|
-
color: var(--dsw-alias-label-secondary);
|
|
32
|
-
transition: color 180ms ease;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.tab[aria-selected='true'] {
|
|
36
|
-
background: transparent;
|
|
37
|
-
color: var(--dsw-alias-label-primary);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media (hover: hover) {
|
|
41
|
-
.tab:hover {
|
|
42
|
-
background: transparent;
|
|
43
|
-
color: var(--dsw-alias-label-primary);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.tab[aria-selected='true'] {
|
|
48
|
-
font-weight: 600;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.tabs[data-size='sm'] {
|
|
52
|
-
--segmented-tabs-inset: 2px;
|
|
53
|
-
|
|
54
|
-
border-radius: calc(var(--dsw-radius-md) + var(--segmented-tabs-inset));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.tabs[data-size='sm'] .tab {
|
|
58
|
-
height: 30px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.tabs[data-size='sm'] .tab[aria-selected='true'] {
|
|
62
|
-
font-weight: 500;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.tab:focus-visible {
|
|
66
|
-
outline: none;
|
|
67
|
-
text-decoration: underline;
|
|
68
|
-
text-decoration-thickness: 1px;
|
|
69
|
-
text-underline-offset: 4px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@media (prefers-reduced-motion: reduce) {
|
|
73
|
-
.indicator,
|
|
74
|
-
.tab {
|
|
75
|
-
transition: none;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
.keys {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
flex: none;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: 3px;
|
|
6
|
-
color: var(--dsw-alias-label-tertiary);
|
|
7
|
-
font-size: 12px;
|
|
8
|
-
line-height: 16px;
|
|
9
|
-
white-space: nowrap;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.key {
|
|
13
|
-
box-sizing: border-box;
|
|
14
|
-
display: inline-flex;
|
|
15
|
-
align-items: center;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
font: inherit;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.tooltip { color: inherit; font-size: 11px; line-height: 14px; gap: 2px; }
|
|
21
|
-
.tooltip .key {
|
|
22
|
-
min-width: 16px;
|
|
23
|
-
height: 16px;
|
|
24
|
-
padding: 0 2px;
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
border: 0;
|
|
27
|
-
background: var(--dsw-alias-tooltip-key-bg);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.separator { font: inherit; }
|
|
31
|
-
|
|
32
|
-
.joined { box-sizing: border-box; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--dsw-alias-tooltip-key-bg); }
|
|
33
|
-
.joined .key { min-width: 0; height: auto; padding: 0; border: 0; background: transparent; }
|
package/lib/StateDot.module.css
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/* Solid states keep the 10px layout slot but paint one 6px currentColor core. */
|
|
2
|
-
.dot {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-block;
|
|
5
|
-
flex: none;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.dot::after {
|
|
9
|
-
content: '';
|
|
10
|
-
position: absolute;
|
|
11
|
-
inset: 20%;
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
corner-shape: round;
|
|
14
|
-
background: currentColor;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.dot[data-state='done'] {
|
|
18
|
-
color: var(--dsw-alias-state-success-primary);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.dot[data-state='warning'] {
|
|
22
|
-
color: var(--dsw-alias-state-warn-primary);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.dot[data-state='error'] {
|
|
26
|
-
color: var(--dsw-alias-state-error-primary);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* Idle is the absence of activity and uses the theme's neutral state step. */
|
|
30
|
-
.dot[data-state='idle'] {
|
|
31
|
-
color: var(--dsw-alias-state-idle-primary);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* Ongoing is the sole non-dot state: a quiet full ring sits behind a centered
|
|
35
|
-
* breathing arc while the complete glyph rotates continuously. Both animations
|
|
36
|
-
* share one 1.5s period so pinning their start times aligns them together. */
|
|
37
|
-
.spinner {
|
|
38
|
-
flex: none;
|
|
39
|
-
color: var(--dsw-alias-label-tertiary);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.spinnerMotion {
|
|
43
|
-
transform-origin: center;
|
|
44
|
-
animation: dsh-state-dot-spin 1.5s linear infinite;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.spinnerTrack,
|
|
48
|
-
.spinnerArc {
|
|
49
|
-
fill: none;
|
|
50
|
-
stroke: currentColor;
|
|
51
|
-
stroke-width: 2;
|
|
52
|
-
stroke-linecap: round;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.spinnerTrack {
|
|
56
|
-
opacity: 0.25;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.spinnerArc {
|
|
60
|
-
stroke-dasharray: 12 150;
|
|
61
|
-
animation: dsh-state-dot-dash 1.5s ease-in-out infinite;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
@keyframes dsh-state-dot-spin {
|
|
65
|
-
to { transform: rotate(360deg); }
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@keyframes dsh-state-dot-dash {
|
|
69
|
-
0% {
|
|
70
|
-
stroke-dasharray: 12 150;
|
|
71
|
-
stroke-dashoffset: 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
50% {
|
|
75
|
-
stroke-dasharray: 24 150;
|
|
76
|
-
stroke-dashoffset: -6;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
100% {
|
|
80
|
-
stroke-dasharray: 12 150;
|
|
81
|
-
stroke-dashoffset: 0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@media (prefers-reduced-motion: reduce) {
|
|
86
|
-
.spinnerMotion,
|
|
87
|
-
.spinnerArc {
|
|
88
|
-
animation: none;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.spinnerArc {
|
|
92
|
-
stroke-dasharray: 18 150;
|
|
93
|
-
stroke-dashoffset: -3;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.step { display: inline-flex; flex: none; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 50%; corner-shape: round; border: 1.5px solid var(--dsw-alias-label-tertiary); color: var(--dsw-alias-label-primary-foreground); }
|
|
98
|
-
.step[data-state='done'] { border-color: var(--dsw-alias-state-success-primary); background: var(--dsw-alias-state-success-primary); }
|
|
99
|
-
.step[data-state='error'] { border-color: var(--dsw-alias-state-error-primary); background: var(--dsw-alias-state-error-primary); }
|
|
100
|
-
.step[data-state='warning'] { border-color: var(--dsw-alias-state-warn-primary); }
|