@wintermuted/ui-theme 1.0.1 → 1.0.3
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.md +20 -0
- package/package.json +8 -2
- package/styles/components/action-disclosure.css +66 -0
- package/styles/components/checkbox-filter.css +48 -0
- package/styles/components/color-picker.css +160 -0
- package/styles/components/language-selector.css +67 -0
- package/styles/components/load-status.css +31 -0
- package/styles/components/number-stepper.css +22 -0
- package/styles/components/ranked-bar-list.css +67 -0
- package/styles/components/stat-card.css +39 -0
- package/styles/components/table.css +46 -0
- package/styles/components/toast.css +4 -0
- package/styles/components/toggle-group.css +46 -0
- package/styles/components/tooltip.css +6 -0
- package/styles/components.css +6 -0
- package/styles/tokens.css +2 -0
package/README.md
CHANGED
|
@@ -30,6 +30,26 @@ import "@wintermuted/ui-theme/styles/components/button.css";
|
|
|
30
30
|
|
|
31
31
|
The package exports `index.css`, `styles/tokens.css`, `styles/base.css`, `styles/components.css`, and individual component stylesheets. Use `--wm-*` custom properties in application styles. Set `data-theme="dark"` on the document root to select the dark theme.
|
|
32
32
|
|
|
33
|
+
Context-free React controls reuse the existing `toggle-group.css`, `stat-card.css`,
|
|
34
|
+
`checkbox-filter.css`, `table.css`, `toast.css`, `button.css` and `tooltip.css`.
|
|
35
|
+
Additive treatments are `.wm-toggle-group-outline`, `.wm-stat-card-compact` and
|
|
36
|
+
`.wm-tooltip-right`; existing defaults and legacy aliases remain intact.
|
|
37
|
+
New public component sheets are `color-picker.css`, `number-stepper.css`,
|
|
38
|
+
`language-selector.css` and `ranked-bar-list.css` under `styles/components/`.
|
|
39
|
+
They are also included in the aggregate theme and use the existing tokens.
|
|
40
|
+
NumberStepper needs button and tooltip CSS when loading sheets individually.
|
|
41
|
+
Color-picker and selector styles never depend on application toolbar or game selectors.
|
|
42
|
+
|
|
43
|
+
`load-status.css` and `action-disclosure.css` provide scoped `.wm-load-status` and
|
|
44
|
+
`.wm-action-disclosure-*` styles for neutral loading/retry feedback and independent
|
|
45
|
+
header actions. They are exported under `styles/components/` and registered in the
|
|
46
|
+
aggregate theme. Load tokens and button CSS when importing these sheets individually;
|
|
47
|
+
base CSS is optional for document defaults. `load-status.css` imports `spinner.css`,
|
|
48
|
+
which owns `.wm-sr-only`, so help-mode announcements stay visually hidden with modular imports.
|
|
49
|
+
RefreshAction uses button CSS alone.
|
|
50
|
+
The additive `--wm-color-warning-text` token supplies readable warning text in light/dark
|
|
51
|
+
themes without changing the existing warning color or Button/Accordion defaults.
|
|
52
|
+
|
|
33
53
|
This package lives in `packages/ui-theme` within the [Wintermuted UI monorepo](https://github.com/wintermuted/wintermuted-ui). New monorepo tags are not directly installable as the theme through a GitHub-source npm dependency; use npm releases or a tarball produced by `npm pack --workspace=@wintermuted/ui-theme`.
|
|
34
54
|
|
|
35
55
|
## Migrating to 1.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wintermuted/ui-theme",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Shared Wintermuted UI theme (design tokens, base resets, and component styles) derived from the CV styling language.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"volta": {
|
|
@@ -74,7 +74,13 @@
|
|
|
74
74
|
"./styles/components/menu.css": "./styles/components/menu.css",
|
|
75
75
|
"./styles/components/tooltip.css": "./styles/components/tooltip.css",
|
|
76
76
|
"./styles/components/dialog.css": "./styles/components/dialog.css",
|
|
77
|
-
"./styles/components/search-select.css": "./styles/components/search-select.css"
|
|
77
|
+
"./styles/components/search-select.css": "./styles/components/search-select.css",
|
|
78
|
+
"./styles/components/color-picker.css": "./styles/components/color-picker.css",
|
|
79
|
+
"./styles/components/ranked-bar-list.css": "./styles/components/ranked-bar-list.css",
|
|
80
|
+
"./styles/components/number-stepper.css": "./styles/components/number-stepper.css",
|
|
81
|
+
"./styles/components/language-selector.css": "./styles/components/language-selector.css",
|
|
82
|
+
"./styles/components/load-status.css": "./styles/components/load-status.css",
|
|
83
|
+
"./styles/components/action-disclosure.css": "./styles/components/action-disclosure.css"
|
|
78
84
|
},
|
|
79
85
|
"scripts": {
|
|
80
86
|
"lint": "stylelint \"styles/**/*.css\" \"index.css\""
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.wm-action-disclosure-header {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--wm-space-2);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wm-action-disclosure-heading {
|
|
8
|
+
flex: 1;
|
|
9
|
+
min-inline-size: 0;
|
|
10
|
+
margin: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wm-action-disclosure .wm-action-disclosure-trigger {
|
|
14
|
+
justify-content: flex-start;
|
|
15
|
+
inline-size: 100%;
|
|
16
|
+
min-block-size: var(--wm-control-height);
|
|
17
|
+
padding: var(--wm-space-1);
|
|
18
|
+
border: 0;
|
|
19
|
+
background: transparent;
|
|
20
|
+
color: var(--wm-color-text-secondary);
|
|
21
|
+
font: inherit;
|
|
22
|
+
font-size: var(--wm-text-sm);
|
|
23
|
+
letter-spacing: normal;
|
|
24
|
+
text-transform: none;
|
|
25
|
+
text-align: start;
|
|
26
|
+
white-space: normal;
|
|
27
|
+
overflow-wrap: anywhere;
|
|
28
|
+
transform: none;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.wm-action-disclosure-indicator {
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
flex: 0 0 auto;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.wm-action-disclosure-trigger[aria-expanded="true"] > .wm-action-disclosure-indicator {
|
|
37
|
+
transform: rotate(90deg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.wm-action-disclosure .wm-action-disclosure-action {
|
|
41
|
+
flex: 0 0 auto;
|
|
42
|
+
min-inline-size: var(--wm-control-height);
|
|
43
|
+
min-block-size: var(--wm-control-height);
|
|
44
|
+
max-inline-size: 50%;
|
|
45
|
+
padding: var(--wm-space-2);
|
|
46
|
+
border: 0;
|
|
47
|
+
background: transparent;
|
|
48
|
+
color: var(--wm-color-text-secondary);
|
|
49
|
+
letter-spacing: normal;
|
|
50
|
+
text-transform: none;
|
|
51
|
+
white-space: normal;
|
|
52
|
+
overflow-wrap: anywhere;
|
|
53
|
+
transform: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.wm-action-disclosure .wm-action-disclosure-trigger:hover,
|
|
57
|
+
.wm-action-disclosure .wm-action-disclosure-action:hover {
|
|
58
|
+
background: var(--wm-color-surface-muted);
|
|
59
|
+
color: var(--wm-color-text);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wm-action-disclosure .wm-action-disclosure-trigger:focus-visible,
|
|
63
|
+
.wm-action-disclosure .wm-action-disclosure-action:focus-visible {
|
|
64
|
+
outline: 2px solid var(--wm-color-accent);
|
|
65
|
+
outline-offset: -2px;
|
|
66
|
+
}
|
|
@@ -67,3 +67,51 @@
|
|
|
67
67
|
border-radius: var(--wm-radius-base, 8px);
|
|
68
68
|
margin-left: auto;
|
|
69
69
|
}
|
|
70
|
+
|
|
71
|
+
.wm-facet-filter {
|
|
72
|
+
border: 1px solid var(--wm-color-border);
|
|
73
|
+
border-radius: var(--wm-radius-sm);
|
|
74
|
+
padding: var(--wm-space-2);
|
|
75
|
+
background: var(--wm-color-surface-muted);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.wm-facet-filter-summary {
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
font-size: var(--wm-text-sm);
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
color: var(--wm-color-text-secondary);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.wm-facet-filter[open] .wm-facet-filter-summary {
|
|
86
|
+
margin-bottom: var(--wm-space-2);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.wm-facet-empty {
|
|
90
|
+
margin: 0;
|
|
91
|
+
color: var(--wm-color-text-muted);
|
|
92
|
+
font-size: var(--wm-text-sm);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.wm-facet-more {
|
|
96
|
+
appearance: none;
|
|
97
|
+
width: fit-content;
|
|
98
|
+
border: 0;
|
|
99
|
+
background: transparent;
|
|
100
|
+
padding: var(--wm-space-1) 0;
|
|
101
|
+
color: var(--wm-color-accent);
|
|
102
|
+
font: inherit;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.wm-facet-more:hover {
|
|
107
|
+
text-decoration: underline;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.wm-facet-filter .wm-checkbox-filter-label {
|
|
111
|
+
flex-direction: row;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.wm-facet-filter .wm-checkbox-filter-label:has(input:disabled) {
|
|
115
|
+
color: var(--wm-color-text-muted);
|
|
116
|
+
cursor: not-allowed;
|
|
117
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
.wm-color-picker {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.wm-color-picker-trigger {
|
|
7
|
+
list-style: none;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-self: stretch;
|
|
12
|
+
min-width: 1.95rem;
|
|
13
|
+
min-height: 1.75rem;
|
|
14
|
+
padding: 0 0.35rem;
|
|
15
|
+
border-radius: 0;
|
|
16
|
+
border: 0;
|
|
17
|
+
background: transparent;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.wm-color-picker-trigger::-webkit-details-marker {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.wm-color-picker-dot {
|
|
26
|
+
width: 0.9rem;
|
|
27
|
+
height: 0.9rem;
|
|
28
|
+
border-radius: 999px;
|
|
29
|
+
border: 1px solid color-mix(in srgb, var(--wm-color-text) 22%, transparent);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.wm-color-picker-panel {
|
|
33
|
+
position: absolute;
|
|
34
|
+
bottom: calc(100% + 0.3rem);
|
|
35
|
+
left: 0;
|
|
36
|
+
min-width: 12rem;
|
|
37
|
+
padding: 0.4rem;
|
|
38
|
+
border: 1px solid var(--wm-color-border);
|
|
39
|
+
border-radius: var(--wm-radius-sm);
|
|
40
|
+
background: var(--wm-color-surface-solid);
|
|
41
|
+
box-shadow: 0 8px 18px color-mix(in srgb, var(--wm-color-text) 14%, transparent);
|
|
42
|
+
max-width: calc(100vw - 2rem);
|
|
43
|
+
z-index: var(--wm-layer-popup);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.wm-color-picker-title {
|
|
47
|
+
margin: 0 0 0.35rem;
|
|
48
|
+
font-size: var(--wm-text-sm);
|
|
49
|
+
color: var(--wm-color-text-muted);
|
|
50
|
+
text-transform: uppercase;
|
|
51
|
+
letter-spacing: 0.05em;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.wm-color-group-label {
|
|
55
|
+
margin: 0.25rem 0;
|
|
56
|
+
font-size: var(--wm-text-sm);
|
|
57
|
+
color: var(--wm-color-text-muted);
|
|
58
|
+
text-transform: uppercase;
|
|
59
|
+
letter-spacing: 0.05em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.wm-color-swatch-grid {
|
|
63
|
+
display: grid;
|
|
64
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
65
|
+
gap: 0.35rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.wm-color-swatch {
|
|
69
|
+
appearance: none;
|
|
70
|
+
border: 1px solid color-mix(in srgb, var(--wm-color-text) 16%, transparent);
|
|
71
|
+
border-radius: var(--wm-radius-sm);
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 1.4rem;
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.wm-color-swatch-active {
|
|
78
|
+
box-shadow: 0 0 0 1px var(--wm-color-accent);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.wm-custom-color-row {
|
|
82
|
+
margin-top: 0.45rem;
|
|
83
|
+
display: grid;
|
|
84
|
+
gap: 0.3rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.wm-custom-color-label {
|
|
88
|
+
font-size: var(--wm-text-sm);
|
|
89
|
+
color: var(--wm-color-text-muted);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.wm-custom-color-inputs {
|
|
93
|
+
display: flex;
|
|
94
|
+
gap: 0.35rem;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.wm-color-native-input {
|
|
99
|
+
width: 2rem;
|
|
100
|
+
height: 1.6rem;
|
|
101
|
+
border: 1px solid var(--wm-color-border-strong);
|
|
102
|
+
border-radius: var(--wm-radius-sm);
|
|
103
|
+
background: var(--wm-color-surface-muted);
|
|
104
|
+
padding: 0.1rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wm-color-hex-input {
|
|
108
|
+
width: 100%;
|
|
109
|
+
min-width: 0;
|
|
110
|
+
min-height: 1.6rem;
|
|
111
|
+
border: 1px solid var(--wm-color-border-strong);
|
|
112
|
+
border-radius: var(--wm-radius-sm);
|
|
113
|
+
background: var(--wm-color-surface-muted);
|
|
114
|
+
color: var(--wm-color-text);
|
|
115
|
+
font-size: var(--wm-text-sm);
|
|
116
|
+
padding: 0.2rem 0.35rem;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.wm-color-picker-trigger:focus-visible,
|
|
120
|
+
.wm-color-swatch:focus-visible {
|
|
121
|
+
outline: 2px solid var(--wm-color-accent);
|
|
122
|
+
outline-offset: 2px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.wm-color-picker-right .wm-color-picker-panel {
|
|
126
|
+
top: 50%;
|
|
127
|
+
bottom: auto;
|
|
128
|
+
left: calc(100% + 0.35rem);
|
|
129
|
+
transform: translateY(-50%);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.wm-color-picker-panel > div:nth-last-child(2) .wm-color-swatch-grid {
|
|
133
|
+
margin-bottom: 0.25rem;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.wm-color-error {
|
|
137
|
+
position: absolute;
|
|
138
|
+
width: 1px;
|
|
139
|
+
height: 1px;
|
|
140
|
+
padding: 0;
|
|
141
|
+
margin: -1px;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
clip-path: inset(50%);
|
|
144
|
+
white-space: nowrap;
|
|
145
|
+
border: 0;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.wm-color-swatch:disabled {
|
|
149
|
+
opacity: 0.5;
|
|
150
|
+
cursor: not-allowed;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
@media (width <= 40rem) {
|
|
154
|
+
.wm-color-picker-right .wm-color-picker-panel {
|
|
155
|
+
top: auto;
|
|
156
|
+
bottom: calc(100% + 0.3rem);
|
|
157
|
+
left: 0;
|
|
158
|
+
transform: none;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.wm-language {
|
|
2
|
+
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.wm-language-trigger {
|
|
6
|
+
min-width: 6.25rem;
|
|
7
|
+
min-height: 1.8rem;
|
|
8
|
+
padding: 0.15rem 0.5rem;
|
|
9
|
+
border: none;
|
|
10
|
+
outline: none;
|
|
11
|
+
box-shadow: none;
|
|
12
|
+
border-radius: var(--wm-radius-sm);
|
|
13
|
+
background: color-mix(in srgb, var(--wm-color-surface-muted) 68%, transparent);
|
|
14
|
+
color: var(--wm-color-text-secondary);
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
gap: 0.35rem;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
font-size: 0.8rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
.wm-language-menu {
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: calc(100% + 0.35rem);
|
|
28
|
+
min-width: 100%;
|
|
29
|
+
border: 1px solid var(--wm-color-border);
|
|
30
|
+
border-radius: var(--wm-radius-sm);
|
|
31
|
+
background: var(--wm-color-surface-solid);
|
|
32
|
+
box-shadow: 0 8px 18px color-mix(in srgb, var(--wm-color-text) 14%, transparent);
|
|
33
|
+
display: grid;
|
|
34
|
+
padding: 0.2rem;
|
|
35
|
+
z-index: var(--wm-layer-popup);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wm-language-option {
|
|
39
|
+
appearance: none;
|
|
40
|
+
border: none;
|
|
41
|
+
background: transparent;
|
|
42
|
+
color: var(--wm-color-text-secondary);
|
|
43
|
+
text-align: left;
|
|
44
|
+
padding: 0.35rem 0.45rem;
|
|
45
|
+
border-radius: calc(var(--wm-radius-sm) - 2px);
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
font-size: 0.8rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.wm-language-option:hover,
|
|
51
|
+
.wm-language-option.is-active {
|
|
52
|
+
background: color-mix(in srgb, var(--wm-color-surface-muted) 78%, transparent);
|
|
53
|
+
color: var(--wm-color-text);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.wm-language-trigger:focus-visible,
|
|
58
|
+
.wm-language-option:focus-visible {
|
|
59
|
+
outline: 2px solid var(--wm-color-accent);
|
|
60
|
+
outline-offset: 2px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.wm-language-option:disabled,
|
|
64
|
+
.wm-language-trigger:disabled {
|
|
65
|
+
opacity: 0.5;
|
|
66
|
+
cursor: not-allowed;
|
|
67
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@import url("./spinner.css");
|
|
2
|
+
|
|
3
|
+
.wm-load-status {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
flex-wrap: wrap;
|
|
7
|
+
gap: var(--wm-space-1);
|
|
8
|
+
max-inline-size: 100%;
|
|
9
|
+
color: var(--wm-color-danger);
|
|
10
|
+
overflow-wrap: anywhere;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.wm-load-status-warning {
|
|
14
|
+
color: var(--wm-color-warning-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.wm-load-status .wm-load-status-retry {
|
|
18
|
+
min-inline-size: var(--wm-control-height);
|
|
19
|
+
min-block-size: var(--wm-control-height);
|
|
20
|
+
padding: var(--wm-space-1);
|
|
21
|
+
color: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.wm-load-status-loading {
|
|
25
|
+
color: var(--wm-color-text-muted);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.wm-load-status-retry:focus-visible {
|
|
29
|
+
outline: 2px solid var(--wm-color-accent);
|
|
30
|
+
outline-offset: -2px;
|
|
31
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.wm-stepper {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 0.35rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wm-stepper-value {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
min-width: 2rem;
|
|
12
|
+
height: 1.75rem;
|
|
13
|
+
padding: 0 0.45rem;
|
|
14
|
+
border: 1px solid var(--wm-color-border-strong);
|
|
15
|
+
border-radius: var(--wm-radius-sm);
|
|
16
|
+
background: var(--wm-color-surface-muted);
|
|
17
|
+
color: var(--wm-color-text);
|
|
18
|
+
font-size: 0.8rem;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.wm-ranked-list {
|
|
2
|
+
margin-top: 0.65rem;
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 0.4rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.wm-ranked-heading {
|
|
8
|
+
margin: 0;
|
|
9
|
+
font-size: 0.7rem;
|
|
10
|
+
text-transform: uppercase;
|
|
11
|
+
letter-spacing: 0.05em;
|
|
12
|
+
color: var(--wm-color-text-muted);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.wm-ranked-empty {
|
|
16
|
+
margin: 0;
|
|
17
|
+
font-size: 0.78rem;
|
|
18
|
+
color: var(--wm-color-text-muted);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.wm-ranked-item {
|
|
22
|
+
display: grid;
|
|
23
|
+
gap: 0.2rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.wm-ranked-item-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 0.35rem;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.wm-ranked-chip {
|
|
34
|
+
width: 0.72rem;
|
|
35
|
+
height: 0.72rem;
|
|
36
|
+
border-radius: 999px;
|
|
37
|
+
border: 1px solid color-mix(in srgb, var(--wm-color-text) 16%, transparent);
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wm-ranked-label {
|
|
42
|
+
font-family: var(--wm-font-sans);
|
|
43
|
+
font-size: 0.72rem;
|
|
44
|
+
color: var(--wm-color-text);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.wm-ranked-count {
|
|
48
|
+
margin-left: auto;
|
|
49
|
+
font-size: 0.72rem;
|
|
50
|
+
color: var(--wm-color-text-muted);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wm-ranked-track {
|
|
54
|
+
width: 100%;
|
|
55
|
+
height: 0.38rem;
|
|
56
|
+
border-radius: 999px;
|
|
57
|
+
background: color-mix(in srgb, var(--wm-color-surface-muted) 86%, transparent);
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.wm-ranked-fill {
|
|
62
|
+
background-color: var(--wm-color-accent);
|
|
63
|
+
height: 100%;
|
|
64
|
+
border-radius: inherit;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
@@ -80,3 +80,42 @@
|
|
|
80
80
|
.wm-card-accent-warning {
|
|
81
81
|
border-left: 4px solid var(--wm-color-warning);
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
.wm-stat-card-compact {
|
|
85
|
+
margin: 0;
|
|
86
|
+
padding: var(--wm-space-3);
|
|
87
|
+
text-align: left;
|
|
88
|
+
border-radius: var(--wm-radius-sm);
|
|
89
|
+
background: var(--wm-color-surface-solid);
|
|
90
|
+
border-color: var(--wm-color-border);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.wm-stat-card-compact .wm-stat-label {
|
|
94
|
+
margin: 0;
|
|
95
|
+
text-transform: none;
|
|
96
|
+
letter-spacing: normal;
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.wm-stat-card-compact .wm-stat-value {
|
|
101
|
+
margin: 0.35rem 0 0;
|
|
102
|
+
font-size: 1.125rem;
|
|
103
|
+
line-height: 1.2;
|
|
104
|
+
color: var(--wm-color-text);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wm-stat-card-info .wm-stat-value {
|
|
108
|
+
color: var(--wm-color-accent);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.wm-stat-card-compact.wm-stat-card-success .wm-stat-value {
|
|
112
|
+
color: var(--wm-color-success);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.wm-stat-card-compact.wm-stat-card-warning .wm-stat-value {
|
|
116
|
+
color: var(--wm-color-warning);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.wm-stat-card-compact.wm-stat-card-danger .wm-stat-value {
|
|
120
|
+
color: var(--wm-color-danger);
|
|
121
|
+
}
|
|
@@ -25,3 +25,49 @@
|
|
|
25
25
|
outline: 2px solid var(--wm-color-accent);
|
|
26
26
|
outline-offset: 2px;
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
.wm-sort-btn {
|
|
30
|
+
appearance: none;
|
|
31
|
+
border: 0;
|
|
32
|
+
background: transparent;
|
|
33
|
+
padding: 0;
|
|
34
|
+
color: inherit;
|
|
35
|
+
font: inherit;
|
|
36
|
+
text-transform: inherit;
|
|
37
|
+
letter-spacing: inherit;
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: 0.25rem;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.wm-sort-btn.is-active {
|
|
45
|
+
color: var(--wm-color-text-secondary);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.wm-sort-head {
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
gap: 0.2rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.wm-sort-dir-btn {
|
|
55
|
+
appearance: none;
|
|
56
|
+
border: 0;
|
|
57
|
+
background: transparent;
|
|
58
|
+
padding: 0;
|
|
59
|
+
color: var(--wm-color-text-muted);
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
min-width: 1.5rem;
|
|
64
|
+
min-height: 1.5rem;
|
|
65
|
+
font: inherit;
|
|
66
|
+
line-height: 1;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.wm-sort-dir-btn.is-active,
|
|
71
|
+
.wm-sort-dir-btn:hover {
|
|
72
|
+
color: var(--wm-color-text-secondary);
|
|
73
|
+
}
|
|
@@ -68,6 +68,15 @@
|
|
|
68
68
|
color: var(--wm-color-text);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
.wm-toggle-group-outline .wm-toggle-group-btn {
|
|
72
|
+
background: transparent;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.wm-toggle-group-btn:focus-visible {
|
|
76
|
+
outline: 2px solid var(--wm-color-accent);
|
|
77
|
+
outline-offset: -3px;
|
|
78
|
+
}
|
|
79
|
+
|
|
71
80
|
/* ── Disabled ────────────────────────────────────────────────────────────── */
|
|
72
81
|
|
|
73
82
|
.wm-toggle-group-btn:disabled {
|
|
@@ -82,6 +91,11 @@
|
|
|
82
91
|
justify-content: flex-start;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
.wm-toggle-group-swatches .wm-toggle-group-btn {
|
|
95
|
+
border: 1px solid var(--wm-color-border);
|
|
96
|
+
border-radius: var(--wm-radius-xs);
|
|
97
|
+
}
|
|
98
|
+
|
|
85
99
|
/* In vertical layout replace right border with bottom border */
|
|
86
100
|
.wm-toggle-group-vertical .wm-toggle-group-btn {
|
|
87
101
|
border-right: none;
|
|
@@ -92,6 +106,11 @@
|
|
|
92
106
|
border-bottom: none;
|
|
93
107
|
}
|
|
94
108
|
|
|
109
|
+
.wm-toggle-group-swatches.wm-toggle-group-vertical .wm-toggle-group-btn,
|
|
110
|
+
.wm-toggle-group-swatches.wm-toggle-group-vertical .wm-toggle-group-btn:last-child {
|
|
111
|
+
border: 1px solid var(--wm-color-border);
|
|
112
|
+
}
|
|
113
|
+
|
|
95
114
|
/* ── Active / selected state ─────────────────────────────────────────────── */
|
|
96
115
|
|
|
97
116
|
.wm-toggle-group-btn-active,
|
|
@@ -122,3 +141,30 @@
|
|
|
122
141
|
border: 1px solid rgb(0 0 0 / 15%);
|
|
123
142
|
flex-shrink: 0;
|
|
124
143
|
}
|
|
144
|
+
|
|
145
|
+
.wm-toggle-group-outline {
|
|
146
|
+
border-color: var(--wm-color-border-strong);
|
|
147
|
+
border-radius: var(--wm-radius-sm);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.wm-toggle-group-outline .wm-toggle-group-btn[aria-pressed="true"] {
|
|
151
|
+
background: color-mix(in srgb, var(--wm-color-accent) 10%, transparent);
|
|
152
|
+
color: var(--wm-color-accent);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.wm-toggle-group-swatches {
|
|
156
|
+
gap: 0.5rem;
|
|
157
|
+
flex-wrap: wrap;
|
|
158
|
+
border: none;
|
|
159
|
+
overflow: visible;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.wm-toggle-group-swatches .wm-toggle-group-swatch {
|
|
163
|
+
width: 1.25rem;
|
|
164
|
+
height: 1.25rem;
|
|
165
|
+
border-radius: 50%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.wm-toggle-group-swatches .wm-toggle-group-btn[aria-pressed="true"] {
|
|
169
|
+
border-color: var(--wm-color-accent-border);
|
|
170
|
+
}
|
package/styles/components.css
CHANGED
|
@@ -35,3 +35,9 @@
|
|
|
35
35
|
@import url("./components/tooltip.css");
|
|
36
36
|
@import url("./components/dialog.css");
|
|
37
37
|
@import url("./components/search-select.css");
|
|
38
|
+
@import url("./components/color-picker.css");
|
|
39
|
+
@import url("./components/ranked-bar-list.css");
|
|
40
|
+
@import url("./components/number-stepper.css");
|
|
41
|
+
@import url("./components/language-selector.css");
|
|
42
|
+
@import url("./components/load-status.css");
|
|
43
|
+
@import url("./components/action-disclosure.css");
|
package/styles/tokens.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--wm-color-success-soft: #e6f4ea;
|
|
35
35
|
--wm-color-success-border: #cfe6d4;
|
|
36
36
|
--wm-color-warning: #ea8600;
|
|
37
|
+
--wm-color-warning-text: #946000;
|
|
37
38
|
--wm-color-warning-soft: #fff7e0;
|
|
38
39
|
--wm-color-warning-border: #f6d28b;
|
|
39
40
|
--wm-color-danger: #c5221f;
|
|
@@ -71,6 +72,7 @@
|
|
|
71
72
|
--wm-color-success-soft: #132719;
|
|
72
73
|
--wm-color-success-border: #21452c;
|
|
73
74
|
--wm-color-warning: #ffb95a;
|
|
75
|
+
--wm-color-warning-text: #ffb95a;
|
|
74
76
|
--wm-color-warning-soft: #35250f;
|
|
75
77
|
--wm-color-warning-border: #5e441d;
|
|
76
78
|
--wm-color-danger: #ff978f;
|