@plexui/styles 0.1.32 → 0.1.34
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/es/components/Accordion/Accordion.module.css +30 -0
- package/dist/es/components/Alert/Alert.module.css +112 -1
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
- package/dist/es/components/Button/Button.module.css +178 -77
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +27 -9
- package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
- package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
- package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
- package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
- package/dist/es/components/DataTable/DataTable.module.css +35 -5
- package/dist/es/components/DatePicker/Calendar.module.css +280 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
- package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
- package/dist/es/components/Dialog/Dialog.module.css +386 -86
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
- package/dist/es/components/Field/Field.module.css +346 -19
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
- package/dist/es/components/Input/Input.module.css +195 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +425 -33
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +217 -20
- package/dist/es/components/PageControl/PageControl.module.css +81 -0
- package/dist/es/components/Popover/Popover.module.css +10 -1
- package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
- package/dist/es/components/Select/Select.module.css +162 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +96 -52
- package/dist/es/components/Sortable/Sortable.module.css +20 -7
- package/dist/es/components/Stepper/Stepper.module.css +98 -0
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/TabBar/TabBar.module.css +233 -0
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +186 -6
- package/dist/es/components/TagInput/TagInput.module.css +64 -19
- package/dist/es/components/TextLink/TextLink.module.css +4 -4
- package/dist/es/components/Textarea/Textarea.module.css +1 -1
- package/dist/es/components/Toast/Toast.module.css +120 -5
- package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/es/styles/katex-fonts/LICENSE +21 -0
- package/dist/es/styles/katex.min.css +666 -730
- package/dist/es/styles/mobile-materials.css +69 -0
- package/dist/es/styles/mobile-surfaces.css +46 -0
- package/dist/es/styles/touch.css +524 -63
- package/dist/es/styles/variables-components.css +286 -7
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -0,0 +1,579 @@
|
|
|
1
|
+
@layer components {/* A phone toolbar. A desktop layout has its own composition, so the toolbar never renders there. */.Toolbar {
|
|
2
|
+
display: none;
|
|
3
|
+
}@media (max-width: 767.98px) {
|
|
4
|
+
.Toolbar {
|
|
5
|
+
--toolbar-item-size: var(--toolbar-top-item-size);
|
|
6
|
+
--toolbar-item-gap: var(--toolbar-top-item-gap);
|
|
7
|
+
--toolbar-edge-blur: var(--toolbar-edge-blur-small);
|
|
8
|
+
--navigation-button-size: var(--toolbar-item-size);
|
|
9
|
+
position: relative;
|
|
10
|
+
z-index: 5;
|
|
11
|
+
display: grid;
|
|
12
|
+
flex: none;
|
|
13
|
+
grid-template-areas: "leading heading trailing";
|
|
14
|
+
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
15
|
+
align-items: center;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
padding: var(--toolbar-padding-top, 0px) var(--toolbar-gutter) var(--toolbar-padding-bottom) var(--toolbar-gutter);
|
|
18
|
+
color: var(--color-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Soft scroll edge: the canvas color covers content scrolled under the bar down to its bottom and fades
|
|
22
|
+
out past it over --page-bar-soft-tail. Native iOS 26 bars hide content under the row almost entirely
|
|
23
|
+
(IMG_5484, 5503: text behind the title at 7-10% of its contrast) and keep that cover through the bar's
|
|
24
|
+
bottom padding (IMG_5503). */
|
|
25
|
+
.Toolbar::before {
|
|
26
|
+
position: absolute;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
inset: 0 0 calc(-1 * var(--page-bar-soft-tail, 32px));
|
|
29
|
+
background: var(--toolbar-background, var(--dialog-panel-background, var(--page-background)));
|
|
30
|
+
backdrop-filter: blur(var(--toolbar-edge-blur));
|
|
31
|
+
content: "";
|
|
32
|
+
-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
33
|
+
mask-image: linear-gradient(to bottom, #000 calc(100% - var(--page-bar-soft-tail, 32px)), transparent);
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* The other backgrounds fill the bar itself (scroll edge styles of iOS 26, `BarBackground`). Hard and
|
|
38
|
+
solid are opaque: the kit's Hard edge (Materials 5661:26978) blurs under an opaque fill, which shows
|
|
39
|
+
nothing. Glass is the translucent, blurred bar of earlier iOS. Hard and glass draw a line once content
|
|
40
|
+
is under the bar, and glass shows itself only then. */
|
|
41
|
+
.Toolbar:not([data-background="soft"])::before {
|
|
42
|
+
inset: 0;
|
|
43
|
+
backdrop-filter: none;
|
|
44
|
+
-webkit-mask-image: none;
|
|
45
|
+
mask-image: none;
|
|
46
|
+
transition: opacity var(--transition-duration-basic), border-color var(--transition-duration-basic);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.Toolbar[data-background="glass"]::before {
|
|
50
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--page-bar-veil-opacity), transparent);
|
|
51
|
+
backdrop-filter: var(--page-bar-glass-filter);
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* The line of a hard or glass bar faces the content: under a top bar, above a bottom one. */
|
|
56
|
+
.Toolbar[data-placement="top"][data-background="hard"]::before {
|
|
57
|
+
border-bottom: 1px solid transparent;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.Toolbar[data-placement="top"][data-background="glass"]::before {
|
|
61
|
+
border-bottom: 0.5px solid var(--page-bar-line);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.Toolbar[data-placement="top"][data-scrolled][data-background="hard"]::before {
|
|
65
|
+
border-bottom-color: var(--page-bar-hard-line);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.Toolbar[data-placement="top"][data-scrolled][data-background="glass"]::before {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.Toolbar[data-placement="bottom"] {
|
|
73
|
+
--toolbar-item-size: var(--toolbar-bottom-item-size);
|
|
74
|
+
--toolbar-item-gap: var(--toolbar-bottom-item-gap);
|
|
75
|
+
/* The space above the bar's items: the edge is measured from the items, so it moves with this space. */
|
|
76
|
+
--toolbar-bottom-item-top: var(--toolbar-bottom-padding-top);
|
|
77
|
+
grid-template-areas: "leading content trailing";
|
|
78
|
+
padding: var(--toolbar-bottom-item-top) var(--toolbar-bottom-gutter) var(--toolbar-bottom-padding-bottom);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* The edge starts 27pt above the items, as on native iOS 26 (IMG_5491), and covers the content fully from the
|
|
82
|
+
items' top down to the bottom of the screen: no content shows through a soft or glass item (owner 07.11;
|
|
83
|
+
the native glass capsule hid 33pt more of the fade). */
|
|
84
|
+
.Toolbar[data-placement="bottom"]::before {
|
|
85
|
+
inset: calc(var(--toolbar-bottom-item-top) - 27px) 0 0;
|
|
86
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
87
|
+
mask-image: linear-gradient(to bottom, transparent, #000 27px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* The other backgrounds start at the top of the bar: the edge's place and mask, which come later than
|
|
91
|
+
the shared rule, go too. */
|
|
92
|
+
.Toolbar[data-placement="bottom"]:not([data-background="soft"])::before {
|
|
93
|
+
inset: 0;
|
|
94
|
+
-webkit-mask-image: none;
|
|
95
|
+
mask-image: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.Toolbar[data-placement="bottom"][data-background="hard"]::before {
|
|
99
|
+
border-top: 1px solid transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.Toolbar[data-placement="bottom"][data-background="glass"]::before {
|
|
103
|
+
border-top: 0.5px solid var(--page-bar-line);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Toolbar[data-placement="bottom"][data-content-below][data-background="hard"]::before {
|
|
107
|
+
border-top-color: var(--page-bar-hard-line);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.Toolbar[data-placement="bottom"][data-content-below][data-background="glass"]::before {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* A single wide action (Apps 2.4 Fullsize) leaves 12px above it. */
|
|
115
|
+
.Toolbar[data-placement="bottom"]:has(> .Content[data-fill] > :where(button, a)) {
|
|
116
|
+
--toolbar-edge-blur: var(--toolbar-edge-blur-large);
|
|
117
|
+
--toolbar-bottom-item-top: var(--toolbar-bottom-fill-padding-top);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Apps 2.4 Toolbar Search: a flat bar of the canvas color, 14px below the field. */
|
|
121
|
+
.Toolbar[data-placement="top"]:has(> .Content[data-fill]) {
|
|
122
|
+
--toolbar-padding-bottom: var(--toolbar-search-padding-bottom);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.Toolbar[data-placement="top"]:has(> .Content[data-fill])[data-background="soft"]::before {
|
|
126
|
+
inset: 0;
|
|
127
|
+
background: color-mix(in srgb, var(--toolbar-background, var(--dialog-panel-background, var(--page-background))) var(--toolbar-flat-opacity), transparent);
|
|
128
|
+
backdrop-filter: blur(var(--toolbar-flat-blur));
|
|
129
|
+
-webkit-mask-image: none;
|
|
130
|
+
mask-image: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Leading alignment, compact titles and filled content share one row from the start edge. */
|
|
134
|
+
.Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]),
|
|
135
|
+
.Toolbar:has(> .Content[data-fill]) {
|
|
136
|
+
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
137
|
+
-moz-column-gap: var(--toolbar-item-gap);
|
|
138
|
+
column-gap: var(--toolbar-item-gap);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.Toolbar:has(> .Content[data-fill]) {
|
|
142
|
+
grid-template-areas: "leading content trailing";
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"]):not(:has(> .Leading)),
|
|
146
|
+
.Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)) {
|
|
147
|
+
grid-template-areas: "heading trailing";
|
|
148
|
+
grid-template-columns: minmax(0, 1fr) max-content;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)) {
|
|
152
|
+
grid-template-areas: "content trailing";
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.Toolbar:has(> .Content[data-fill]):not(:has(> .Leading)):not(:has(> .Trailing)) {
|
|
156
|
+
grid-template-areas: "content";
|
|
157
|
+
grid-template-columns: minmax(0, 1fr);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Large title: the controls stay in their own row and the title sits below it. */
|
|
161
|
+
.Toolbar[data-title-style="large"] {
|
|
162
|
+
--toolbar-edge-blur: var(--toolbar-edge-blur-large);
|
|
163
|
+
grid-template-areas:
|
|
164
|
+
"leading . trailing"
|
|
165
|
+
"heading heading heading";
|
|
166
|
+
grid-template-columns: max-content minmax(0, 1fr) max-content;
|
|
167
|
+
row-gap: var(--toolbar-large-title-gap);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.Toolbar:is([data-title-style="compact-large"], [data-title-style="compact-medium"]),
|
|
171
|
+
.Toolbar:has(> .Heading > .Subtitle) {
|
|
172
|
+
--toolbar-edge-blur: var(--toolbar-edge-blur-large);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.Leading,
|
|
176
|
+
.Trailing,
|
|
177
|
+
.Group {
|
|
178
|
+
display: flex;
|
|
179
|
+
align-items: center;
|
|
180
|
+
gap: var(--toolbar-item-gap);
|
|
181
|
+
min-width: 0;
|
|
182
|
+
min-height: var(--toolbar-item-size);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.Leading {
|
|
186
|
+
grid-area: leading;
|
|
187
|
+
justify-self: start;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.Trailing {
|
|
191
|
+
grid-area: trailing;
|
|
192
|
+
justify-content: flex-end;
|
|
193
|
+
justify-self: end;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.Content {
|
|
197
|
+
display: flex;
|
|
198
|
+
grid-area: heading;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: center;
|
|
201
|
+
gap: var(--toolbar-item-gap);
|
|
202
|
+
min-width: 0;
|
|
203
|
+
min-height: var(--toolbar-item-size);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.Content[data-fill] {
|
|
207
|
+
grid-area: content;
|
|
208
|
+
justify-content: stretch;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.Content[data-fill] > * {
|
|
212
|
+
flex: 1 1 auto;
|
|
213
|
+
min-width: 0;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.Toolbar[data-placement="bottom"] > .Content:not([data-fill]) {
|
|
217
|
+
grid-area: content;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/* Several buttons in one capsule (iOS 26 kit Buttons Top and Bottom: 2 to 6 Symbols). The capsule
|
|
221
|
+
carries the shared mobile glass; the buttons inside it stay clear. */
|
|
222
|
+
.Group {
|
|
223
|
+
gap: var(--toolbar-group-gap);
|
|
224
|
+
padding-inline: var(--toolbar-group-padding);
|
|
225
|
+
border-radius: var(--radius-full);
|
|
226
|
+
background-color: var(--mobile-glass-background);
|
|
227
|
+
background-image: var(--mobile-glass-sheen);
|
|
228
|
+
box-shadow: var(--mobile-glass-shadow);
|
|
229
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.Group > :where(button, a) {
|
|
233
|
+
--mobile-glass-background: transparent;
|
|
234
|
+
--mobile-glass-sheen: none;
|
|
235
|
+
--mobile-glass-background-hover: var(--toolbar-group-item-hover);
|
|
236
|
+
--mobile-glass-background-active: var(--toolbar-group-item-active);
|
|
237
|
+
--mobile-glass-shadow: none;
|
|
238
|
+
--mobile-glass-backdrop-filter: none;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.Toolbar[data-placement="bottom"] .Group {
|
|
242
|
+
--toolbar-group-gap: var(--toolbar-bottom-group-gap);
|
|
243
|
+
--toolbar-group-padding: var(--toolbar-bottom-group-padding);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* No shadow at rest: the glass casts one once content has scrolled under the bar. */
|
|
247
|
+
.Toolbar[data-scrolled] {
|
|
248
|
+
--mobile-glass-shadow: var(--mobile-glass-shadow-raised);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* The extra class outweighs the sizes of Button itself, whatever order the style sheets load in. */
|
|
252
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a) {
|
|
253
|
+
--button-size: var(--toolbar-item-size);
|
|
254
|
+
--button-uniform-size: var(--toolbar-item-size);
|
|
255
|
+
--button-radius: var(--radius-full);
|
|
256
|
+
--button-font-size: var(--toolbar-label-font-size);
|
|
257
|
+
--button-line-height: var(--toolbar-label-line-height);
|
|
258
|
+
--button-font-weight: var(--toolbar-label-font-weight);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* A bar symbol, sized by its drawn glyph (--toolbar-icon-size: the kit's 29pt box, about 22pt of ink). */
|
|
262
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action]) {
|
|
263
|
+
--button-icon-size: var(--toolbar-icon-size);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
|
|
267
|
+
--button-gutter: var(--toolbar-label-gutter);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.Toolbar[data-placement="bottom"] :is(.Leading, .Trailing, .Content, .Group) > :where(button, a):not([data-navigation-action], [data-uniform]) {
|
|
271
|
+
--button-gutter: var(--toolbar-bottom-label-gutter);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:is(.Leading, .Trailing, .Content, .Group) > :where(button, a):where(:not([data-disabled], [data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
275
|
+
--button-mobile-material-background: var(--mobile-glass-background);
|
|
276
|
+
--button-mobile-material-sheen: var(--mobile-glass-sheen);
|
|
277
|
+
--button-mobile-material-shadow: var(--mobile-glass-shadow);
|
|
278
|
+
--button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
279
|
+
--button-mobile-material-opacity: 1;
|
|
280
|
+
--button-mobile-material-scale: 1;
|
|
281
|
+
--button-mobile-material-hover: var(--mobile-glass-background-hover);
|
|
282
|
+
--button-mobile-material-active: var(--mobile-glass-background-active);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/* Disabled (iOS 26 kit _Button - Symbol, Text and Back, State=Disabled): a bar button keeps the glass of its
|
|
286
|
+
capsule, which inside a Group is the Group's, and draws its symbol or label in the tertiary label color.
|
|
287
|
+
Button drops the material of a disabled button elsewhere; the extra attribute outweighs it and the shared
|
|
288
|
+
disabled color in any style sheet order. */
|
|
289
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant]:where(:not([data-mobile-material="flat"])):where([data-color="primary"], [data-color="secondary"]):where([data-variant="soft"], [data-variant="ghost"]) {
|
|
290
|
+
--button-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
291
|
+
--button-mobile-material-background: var(--mobile-glass-background);
|
|
292
|
+
--button-mobile-material-sheen: var(--mobile-glass-sheen);
|
|
293
|
+
--button-mobile-material-shadow: var(--mobile-glass-shadow);
|
|
294
|
+
--button-mobile-material-backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
295
|
+
--button-mobile-material-opacity: 1;
|
|
296
|
+
--button-mobile-material-scale: 1;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* A prominent action (NavigationButton confirm, a solid Button) gives up its color when disabled. */
|
|
300
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"] {
|
|
301
|
+
--button-background-color: var(--toolbar-prominent-disabled-background);
|
|
302
|
+
--button-text-color: var(--toolbar-prominent-disabled-color);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* The gray capsule keeps the outline and the soft shadow of the bar's glass (Calendar, IMG_5433). */
|
|
306
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-disabled][data-variant="solid"]::before {
|
|
307
|
+
box-shadow: var(--mobile-glass-shadow);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/* An enabled prominent action takes the accent tint, with the edge of the glass (see the tokens). An info
|
|
311
|
+
action already is the accent and takes the same edge (View Options Done, owner 08.11). */
|
|
312
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled]) {
|
|
313
|
+
--button-background-color: var(--toolbar-prominent-background);
|
|
314
|
+
--button-background-color-hover: var(--toolbar-prominent-background-hover);
|
|
315
|
+
--button-background-color-active: var(--toolbar-prominent-background-active);
|
|
316
|
+
--button-text-color: var(--toolbar-prominent-color);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.Toolbar :is(.Leading, .Trailing, .Content, .Group) > :where(button, a)[data-variant="solid"]:where([data-color="primary"], [data-color="info"]):not([data-disabled])::before {
|
|
320
|
+
background-image: var(--toolbar-prominent-sheen);
|
|
321
|
+
box-shadow: var(--toolbar-prominent-shadow);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* A search field (iOS 26 kit Search Top and Bottom): the row height and the glass of the bar buttons.
|
|
325
|
+
The extra attribute outweighs the field's own focus and hover outlines, which a bar does not draw. */
|
|
326
|
+
.Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] {
|
|
327
|
+
--input-size: var(--toolbar-item-size);
|
|
328
|
+
--input-font-size: var(--toolbar-label-font-size);
|
|
329
|
+
--input-gutter: var(--toolbar-search-gutter);
|
|
330
|
+
--input-gap: var(--toolbar-search-icon-gap);
|
|
331
|
+
--input-adornment-offset: 0px;
|
|
332
|
+
--control-gutter-pill-scaling: 1;
|
|
333
|
+
--input-soft-background-color: var(--mobile-glass-background);
|
|
334
|
+
--input-placeholder-text-color: var(--mobile-label-tertiary, var(--color-text-tertiary));
|
|
335
|
+
border-radius: var(--radius-full);
|
|
336
|
+
background-image: var(--mobile-glass-sheen);
|
|
337
|
+
box-shadow: var(--mobile-glass-shadow);
|
|
338
|
+
font-weight: var(--toolbar-label-font-weight);
|
|
339
|
+
backdrop-filter: var(--mobile-glass-backdrop-filter);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.Toolbar :is(.Leading, .Trailing, .Content) > [data-slot="input"][data-variant] > svg {
|
|
343
|
+
flex: none;
|
|
344
|
+
width: var(--toolbar-search-icon-size);
|
|
345
|
+
height: var(--toolbar-search-icon-size);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Title: centered in the 44px row. Native iOS 26 bars put its cap middle on the buttons' center
|
|
349
|
+
(IMG_5508/5511/5512/5514/5515, within 1px); the kit's text frame sits 2px lower. */
|
|
350
|
+
.Heading {
|
|
351
|
+
display: flex;
|
|
352
|
+
grid-area: heading;
|
|
353
|
+
flex-direction: column;
|
|
354
|
+
align-items: center;
|
|
355
|
+
justify-content: center;
|
|
356
|
+
min-width: 0;
|
|
357
|
+
min-height: var(--toolbar-item-size);
|
|
358
|
+
text-align: center;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.Title {
|
|
362
|
+
max-width: 100%;
|
|
363
|
+
margin: 0;
|
|
364
|
+
overflow: hidden;
|
|
365
|
+
color: var(--color-text);
|
|
366
|
+
font-size: var(--toolbar-title-font-size);
|
|
367
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
368
|
+
line-height: var(--toolbar-title-line-height);
|
|
369
|
+
text-overflow: ellipsis;
|
|
370
|
+
white-space: nowrap;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.Subtitle {
|
|
374
|
+
max-width: 100%;
|
|
375
|
+
margin: -2px 0 0;
|
|
376
|
+
overflow: hidden;
|
|
377
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
378
|
+
font-size: var(--toolbar-subtitle-font-size);
|
|
379
|
+
font-weight: var(--toolbar-subtitle-font-weight);
|
|
380
|
+
line-height: var(--toolbar-subtitle-line-height);
|
|
381
|
+
text-overflow: ellipsis;
|
|
382
|
+
white-space: nowrap;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* Two lines: title 15/20 at 6px, subtitle 12/16 below it. The title of a Dialog's bar can sit in a wrapper of
|
|
386
|
+
its own (one that takes focus when the Sheet opens). */
|
|
387
|
+
.Heading:has(> .Subtitle) {
|
|
388
|
+
transform: translateY(1px);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.Heading:has(> .Subtitle) .Title {
|
|
392
|
+
font-size: var(--toolbar-title-compact-font-size);
|
|
393
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.Toolbar:is([data-title-align="start"], [data-title-style="compact-large"], [data-title-style="compact-medium"], [data-title-style="large"]) > .Heading {
|
|
397
|
+
align-items: flex-start;
|
|
398
|
+
text-align: start;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* The large title spans the columns of the row of controls above it, so a long one would widen their max-content
|
|
402
|
+
tracks and push the trailing button off the screen; with no width of its own it takes the row's and truncates. */
|
|
403
|
+
.Toolbar[data-title-style="large"] > .Heading {
|
|
404
|
+
contain: inline-size;
|
|
405
|
+
min-height: 0;
|
|
406
|
+
transform: none;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.Toolbar[data-title-style="large"] > .Heading > .Title {
|
|
410
|
+
font-size: var(--toolbar-large-title-font-size);
|
|
411
|
+
font-weight: var(--font-weight-bold);
|
|
412
|
+
line-height: var(--toolbar-large-title-line-height);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.Toolbar[data-title-style="large"] > .Heading > .Subtitle {
|
|
416
|
+
margin: 0;
|
|
417
|
+
font-size: var(--toolbar-large-subtitle-font-size);
|
|
418
|
+
font-weight: var(--font-weight-normal);
|
|
419
|
+
line-height: var(--toolbar-large-subtitle-line-height);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.Toolbar[data-title-style="compact-large"] > .Heading {
|
|
423
|
+
align-self: start;
|
|
424
|
+
min-height: 0;
|
|
425
|
+
transform: none;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.Toolbar[data-title-style="compact-large"] > .Heading > .Title {
|
|
429
|
+
font-size: var(--toolbar-large-title-font-size);
|
|
430
|
+
font-weight: var(--font-weight-bold);
|
|
431
|
+
line-height: var(--toolbar-large-title-line-height);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.Toolbar[data-title-style="compact-medium"] > .Heading {
|
|
435
|
+
transform: none;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.Toolbar[data-title-style="compact-medium"] > .Heading > .Title {
|
|
439
|
+
font-size: var(--toolbar-medium-title-font-size);
|
|
440
|
+
font-weight: var(--font-weight-bold);
|
|
441
|
+
line-height: var(--toolbar-medium-title-line-height);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Hosts: a Page puts the top bar over its content under the status bar, a Sheet below its grabber. */
|
|
445
|
+
.Toolbar[data-host="page"][data-placement="top"] {
|
|
446
|
+
--toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
447
|
+
position: absolute;
|
|
448
|
+
inset: 0 0 auto;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/* A large title on a page sits at the top of the content and scrolls up with it under the row of
|
|
452
|
+
controls, which then shows the title inline, as UIKit does in iOS 26 (WWDC25 "Build a UIKit app
|
|
453
|
+
with the new design": large titles scroll with the content underneath the bar). Page.Content
|
|
454
|
+
writes its scroll offset to --page-scroll-y and the Toolbar measures how far the title travels.
|
|
455
|
+
The title fades out over 8px as it passes under the row; the soft edge then covers the row only,
|
|
456
|
+
as it does for an inline title. */
|
|
457
|
+
.Toolbar[data-host="page"][data-title-style="large"] {
|
|
458
|
+
/* Until the Toolbar has measured how far the title travels (a server-rendered page before it hydrates), the
|
|
459
|
+
title has not gone: the large title shows, and the row's inline copy and the bar's line stay hidden. A
|
|
460
|
+
travel of 0 showed the inline title in the row for the first frames, then swapped it for the large one. */
|
|
461
|
+
--toolbar-large-title-travel: 100000;
|
|
462
|
+
--toolbar-edge-blur: var(--toolbar-edge-blur-small);
|
|
463
|
+
--toolbar-large-title-scroll: calc(min(var(--page-scroll-y, 0), var(--toolbar-large-title-travel, 0) + 16) * 1px);
|
|
464
|
+
grid-template-areas:
|
|
465
|
+
"leading collapsed trailing"
|
|
466
|
+
"heading heading heading";
|
|
467
|
+
grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr);
|
|
468
|
+
/* Content scrolled into the place of the title stays under the pointer. */
|
|
469
|
+
pointer-events: none;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
.Toolbar[data-host="page"][data-title-style="large"]::before {
|
|
473
|
+
inset: 0 0 auto;
|
|
474
|
+
height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom) + 16px);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
.Toolbar[data-host="page"][data-title-style="large"]:not([data-background="soft"])::before {
|
|
478
|
+
height: calc(var(--toolbar-padding-top, 0px) + var(--toolbar-item-size) + var(--toolbar-padding-bottom));
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* The large title is the content under the row until it has gone: a hard or glass bar shows its line
|
|
482
|
+
with the inline title, over the same last 8px. */
|
|
483
|
+
.Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="hard"]::before {
|
|
484
|
+
border-bottom-color: color-mix(in srgb, var(--page-bar-hard-line) calc(clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1) * 100%), transparent);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.Toolbar[data-host="page"][data-title-style="large"][data-scrolled][data-background="glass"]::before {
|
|
488
|
+
opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.Toolbar[data-host="page"][data-title-style="large"] > :is(.Leading, .Trailing, .Content), .Toolbar[data-host="page"][data-title-style="large"]:not([data-scrolled]) > .Heading {
|
|
492
|
+
pointer-events: auto;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.Toolbar[data-host="page"][data-title-style="large"] > .Heading {
|
|
496
|
+
transform: translateY(calc(-1 * var(--toolbar-large-title-scroll)));
|
|
497
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
|
|
498
|
+
mask-image: linear-gradient(to bottom, transparent calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap)), #000 calc(var(--toolbar-large-title-scroll) - var(--toolbar-large-title-gap) + 8px));
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/* The inline title fades in over the last 8px of the large title's way. */
|
|
502
|
+
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle {
|
|
503
|
+
grid-area: collapsed;
|
|
504
|
+
min-width: 0;
|
|
505
|
+
overflow: hidden;
|
|
506
|
+
color: var(--color-text);
|
|
507
|
+
font-size: var(--toolbar-title-font-size);
|
|
508
|
+
font-weight: var(--toolbar-title-font-weight);
|
|
509
|
+
line-height: var(--toolbar-title-line-height);
|
|
510
|
+
text-align: center;
|
|
511
|
+
text-overflow: ellipsis;
|
|
512
|
+
white-space: nowrap;
|
|
513
|
+
opacity: clamp(0, (var(--page-scroll-y, 0) - var(--toolbar-large-title-travel, 0) + 8) / 8, 1);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/* With a subtitle the inline copy takes two lines, as the inline title does: 15/20 and 12/16 in the
|
|
517
|
+
secondary label (iOS 26 kit Toolbar - Top - iPhone, Title 2 Line: 15 semibold over 12 medium). */
|
|
518
|
+
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle:has(> .CollapsedSubtitle) {
|
|
519
|
+
display: flex;
|
|
520
|
+
flex-direction: column;
|
|
521
|
+
align-items: center;
|
|
522
|
+
justify-content: center;
|
|
523
|
+
font-size: var(--toolbar-title-compact-font-size);
|
|
524
|
+
line-height: var(--toolbar-title-compact-line-height);
|
|
525
|
+
transform: translateY(1px);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > :is(.CollapsedLine, .CollapsedSubtitle) {
|
|
529
|
+
max-width: 100%;
|
|
530
|
+
overflow: hidden;
|
|
531
|
+
text-overflow: ellipsis;
|
|
532
|
+
white-space: nowrap;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.Toolbar[data-host="page"][data-title-style="large"] > .CollapsedTitle > .CollapsedSubtitle {
|
|
536
|
+
margin-top: -2px;
|
|
537
|
+
color: var(--mobile-label-secondary, var(--color-text-secondary));
|
|
538
|
+
font-size: var(--toolbar-subtitle-font-size);
|
|
539
|
+
font-weight: var(--toolbar-subtitle-font-weight);
|
|
540
|
+
line-height: var(--toolbar-subtitle-line-height);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.Toolbar[data-host="dialog"][data-placement="top"] {
|
|
544
|
+
--toolbar-background: var(--dialog-panel-background);
|
|
545
|
+
--toolbar-padding-top: var(--toolbar-sheet-padding-top);
|
|
546
|
+
/* The panel radius is a shorthand (top corners only for a Sheet), so it goes to the shorthand too:
|
|
547
|
+
a longhand would drop it and leave square corners that smear the Sheet's rounded top. */
|
|
548
|
+
border-radius: var(--dialog-panel-radius, 0px);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
.Toolbar[data-host="dialog"][data-placement="top"]::before {
|
|
552
|
+
border-radius: inherit;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/* Grabber (iOS 26 kit Grabber: 36 × 5 at 5px). */
|
|
556
|
+
.Toolbar[data-host="dialog"][data-placement="top"]::after {
|
|
557
|
+
position: absolute;
|
|
558
|
+
top: 5px;
|
|
559
|
+
left: calc(50% - 18px);
|
|
560
|
+
width: 36px;
|
|
561
|
+
height: 5px;
|
|
562
|
+
border-radius: var(--radius-full);
|
|
563
|
+
background: var(--mobile-grabber-color, var(--color-background-secondary-soft-alpha));
|
|
564
|
+
content: "";
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
:where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"] {
|
|
568
|
+
--toolbar-padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
:where([data-mobile-placement="fullscreen"]) .Toolbar[data-host="dialog"][data-placement="top"]::after {
|
|
572
|
+
display: none;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.Toolbar[data-host="dialog"][data-placement="bottom"] {
|
|
576
|
+
--toolbar-background: var(--dialog-panel-background);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.Tooltip[data-clickable="true"] {
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
}
|
|
29
|
-
@media (hover: hover) and (pointer: fine) {.Tooltip[data-compact="true"][data-clickable="true"]:hover {
|
|
29
|
+
@media (hover: hover) and (pointer: fine) {.Tooltip[data-compact="true"][data-clickable="true"]:hover:where(:not(:root[data-input="touch"] *)) {
|
|
30
30
|
background: var(--gray-600);
|
|
31
31
|
color: var(--gray-0);
|
|
32
32
|
}
|
package/dist/es/styles/base.css
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2013-2020 Khan Academy and other contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|