@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@layer components {.Root {
|
|
2
2
|
width: 100%;
|
|
3
|
+
min-width: 0;
|
|
3
4
|
}.Item {
|
|
4
5
|
border-bottom: var(--accordion-item-divider-width) solid
|
|
5
6
|
var(--accordion-item-divider-color);
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
opacity: var(--accordion-item-disabled-opacity);
|
|
14
15
|
}.Header {
|
|
15
16
|
display: flex;
|
|
17
|
+
min-width: 0;
|
|
16
18
|
margin: 0;
|
|
17
19
|
}.Trigger {
|
|
18
20
|
display: flex;
|
|
@@ -21,6 +23,8 @@
|
|
|
21
23
|
justify-content: space-between;
|
|
22
24
|
gap: var(--accordion-trigger-gap);
|
|
23
25
|
width: 100%;
|
|
26
|
+
min-width: 0;
|
|
27
|
+
min-height: var(--accordion-trigger-min-height, 0px);
|
|
24
28
|
padding: var(--accordion-trigger-padding-block) 0;
|
|
25
29
|
border: 0;
|
|
26
30
|
background: transparent;
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
font-weight: var(--accordion-trigger-font-weight);
|
|
30
34
|
line-height: var(--accordion-trigger-line-height);
|
|
31
35
|
text-align: left;
|
|
36
|
+
overflow-wrap: anywhere;
|
|
32
37
|
color: var(--accordion-trigger-color);
|
|
33
38
|
cursor: pointer;
|
|
34
39
|
outline: none;
|
|
@@ -70,6 +75,8 @@
|
|
|
70
75
|
animation: accordion-up var(--accordion-transition-duration)
|
|
71
76
|
var(--accordion-transition-ease);
|
|
72
77
|
}.ContentInner {
|
|
78
|
+
min-width: 0;
|
|
79
|
+
overflow-wrap: anywhere;
|
|
73
80
|
padding-bottom: var(--accordion-content-padding-bottom);
|
|
74
81
|
}@keyframes accordion-down {
|
|
75
82
|
from {
|
|
@@ -85,5 +92,28 @@
|
|
|
85
92
|
to {
|
|
86
93
|
height: 0;
|
|
87
94
|
}
|
|
95
|
+
}/* On a phone, with touch.css, the chevron of a closed item points to the end, as the iOS disclosure chevron
|
|
96
|
+
(chevron.right) does, and turns down when the item opens: --accordion-chevron-closed-angle -90deg (mirrored for
|
|
97
|
+
right to left) and --accordion-chevron-open-angle 0deg. Without touch.css it keeps the desktop turn. */@media (max-width: 767px) {
|
|
98
|
+
.Chevron {
|
|
99
|
+
transform: rotate(var(--accordion-chevron-closed-angle, 0deg));
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.Chevron:dir(rtl) {
|
|
103
|
+
transform: rotate(calc(var(--accordion-chevron-closed-angle, 0deg) * -1));
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.Trigger[data-state="open"] .Chevron {
|
|
107
|
+
transform: rotate(var(--accordion-chevron-open-angle, 180deg));
|
|
108
|
+
}
|
|
109
|
+
}@media (prefers-reduced-motion: reduce) {
|
|
110
|
+
.Trigger,
|
|
111
|
+
.Chevron {
|
|
112
|
+
transition: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.Content[data-state] {
|
|
116
|
+
animation: none;
|
|
117
|
+
}
|
|
88
118
|
}
|
|
89
119
|
}
|
|
@@ -206,5 +206,116 @@
|
|
|
206
206
|
|
|
207
207
|
:where(.Alert[data-actions-placement="bottom"]) .Actions {
|
|
208
208
|
margin-top: var(--alert-gutter);
|
|
209
|
+
}/* The close button of a phone alert (below) */.Alert > .CloseButton {
|
|
210
|
+
display: none;
|
|
211
|
+
}/* On a phone an Alert takes the shape and text of an iOS inline tip (TipKit), the system's message
|
|
212
|
+
inside a screen (kit TipKit, iOS Mini Tip Style=Hint 41:4207): 26 corners, 22 above and 16 at the
|
|
213
|
+
sides and below (22 below as well when no action shows), the icon 22 from the edge and 12 from the message, the title at 17/22 semibold and
|
|
214
|
+
the description at 15/20 4 under it, 22 to the actions, and the actions as 50px capsules with 17/22
|
|
215
|
+
semibold labels (a phone xl Button in touch.css), side by side 12 apart, each at least half the width,
|
|
216
|
+
wrapping when a label needs more. A dismissible alert closes with a 30px button in its corner, 19 from
|
|
217
|
+
the edges, in a 44px target, instead of a Dismiss action. The alert keeps its icon, colors and variants; a banner keeps
|
|
218
|
+
its square strip. */@media (max-width: 767px) {
|
|
219
|
+
.Alert {
|
|
220
|
+
position: relative;
|
|
221
|
+
flex-wrap: wrap;
|
|
222
|
+
align-items: flex-start;
|
|
223
|
+
-moz-column-gap: 12px;
|
|
224
|
+
column-gap: 12px;
|
|
225
|
+
row-gap: 22px;
|
|
226
|
+
padding: 22px 16px;
|
|
227
|
+
border-radius: 26px;
|
|
228
|
+
--alert-indicator-size: 28px;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.Alert:has(> .Content > .Actions > :not(.DismissButton)) {
|
|
232
|
+
padding-bottom: 16px;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.Alert[data-banner] {
|
|
236
|
+
border-radius: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* The actions take a line of their own under the icon and the message */
|
|
240
|
+
.Content {
|
|
241
|
+
display: contents;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.Indicator {
|
|
245
|
+
padding-inline-start: 6px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.Indicator::before {
|
|
249
|
+
content: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.Message {
|
|
253
|
+
padding-inline-start: 6px;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.Indicator + .Content > .Message {
|
|
257
|
+
padding-inline-start: 0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.Alert:has(> .CloseButton) .Message {
|
|
261
|
+
padding-inline-end: 34px;
|
|
209
262
|
}
|
|
210
|
-
|
|
263
|
+
|
|
264
|
+
.Title {
|
|
265
|
+
font-size: 17px;
|
|
266
|
+
line-height: 22px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.Title ~ .Description {
|
|
270
|
+
margin-top: 4px;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.Actions {
|
|
274
|
+
flex: 1 0 100%;
|
|
275
|
+
flex-flow: row wrap;
|
|
276
|
+
gap: 10px 12px;
|
|
277
|
+
align-self: stretch;
|
|
278
|
+
margin: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.Actions:not(:has(> :not(.DismissButton))) {
|
|
282
|
+
display: none;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.Alert .Actions > :where(button, a, [role="link"]) {
|
|
286
|
+
--button-size: var(--button-size-xl, 50px);
|
|
287
|
+
--button-font-size: var(--button-font-size-xl, 17px);
|
|
288
|
+
--button-font-weight: var(--font-weight-semibold);
|
|
289
|
+
--button-gutter: var(--button-gutter-xl, 20px);
|
|
290
|
+
--button-radius: var(--radius-full);
|
|
291
|
+
flex: 1 0 auto;
|
|
292
|
+
min-width: calc(50% - 6px);
|
|
293
|
+
max-width: 100%;
|
|
294
|
+
min-height: var(--button-size-xl, 50px);
|
|
295
|
+
height: auto;
|
|
296
|
+
padding-block: 14px;
|
|
297
|
+
line-height: var(--button-line-height-xl, 22px);
|
|
298
|
+
white-space: normal;
|
|
299
|
+
overflow-wrap: anywhere;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.Alert .Actions > .DismissButton {
|
|
303
|
+
display: none;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* A 44px target with its 30px circle (the background and the focus ring) 19 from the edges */
|
|
307
|
+
.Alert > .CloseButton {
|
|
308
|
+
--button-uniform-size: 44px;
|
|
309
|
+
--button-icon-size: 16px;
|
|
310
|
+
position: absolute;
|
|
311
|
+
top: 12px;
|
|
312
|
+
inset-inline-end: 12px;
|
|
313
|
+
display: inline-flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.Alert > .CloseButton::before,
|
|
317
|
+
.Alert > .CloseButton::after {
|
|
318
|
+
inset: 7px;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
@@ -233,13 +233,7 @@
|
|
|
233
233
|
position: absolute;
|
|
234
234
|
inset: -2px;
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
@media (hover: none) {
|
|
238
|
-
.Remove:where(button)::after {
|
|
239
|
-
inset: -16px -8px;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
@media (hover: hover) and (pointer: fine) {.Remove:where(button):hover {
|
|
236
|
+
@media (hover: hover) and (pointer: fine) {.Remove:where(button):hover:where(:not(:root[data-input="touch"] *)) {
|
|
243
237
|
background: color-mix(in srgb, var(--color-text) 8%, transparent);
|
|
244
238
|
opacity: 1;
|
|
245
239
|
}
|
|
@@ -250,8 +244,47 @@
|
|
|
250
244
|
outline-offset: 2px;
|
|
251
245
|
opacity: 1;
|
|
252
246
|
}
|
|
253
|
-
@media (hover: hover) and (pointer: fine) {.Badge[data-variant="solid"] .Remove:where(button):hover {
|
|
247
|
+
@media (hover: hover) and (pointer: fine) {.Badge[data-variant="solid"] .Remove:where(button):hover:where(:not(:root[data-input="touch"] *)) {
|
|
254
248
|
background: color-mix(in srgb, currentColor 20%, transparent);
|
|
255
249
|
}
|
|
250
|
+
}/* Interactive tags reserve their complete touch area in layout. Static badges
|
|
251
|
+
retain their size scale; no expanded pseudo target can cover the next row. */@media (max-width: 767px), (pointer: coarse) {
|
|
252
|
+
.Badge:has(> button.Remove) {
|
|
253
|
+
position: relative;
|
|
254
|
+
isolation: isolate;
|
|
255
|
+
height: 44px;
|
|
256
|
+
padding-inline-end: 0;
|
|
257
|
+
background-color: transparent;
|
|
258
|
+
box-shadow: none;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* The face stays compact; its complete remove target belongs to this row. */
|
|
262
|
+
.Badge:has(> button.Remove)::before {
|
|
263
|
+
content: "";
|
|
264
|
+
position: absolute;
|
|
265
|
+
z-index: -1;
|
|
266
|
+
inset: 6px 0;
|
|
267
|
+
border-radius: inherit;
|
|
268
|
+
pointer-events: none;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.Badge:has(> button.Remove)[data-variant="soft"]::before,
|
|
272
|
+
.Badge:has(> button.Remove)[data-variant="solid"]::before {
|
|
273
|
+
background-color: var(--badge-background-color);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.Badge:has(> button.Remove)[data-variant="outline"]::before {
|
|
277
|
+
box-shadow: 0 0 0 1px var(--badge-border-color) inset;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.Badge:has(> button.Remove) > button.Remove {
|
|
281
|
+
width: 44px;
|
|
282
|
+
height: 44px;
|
|
283
|
+
margin-inline: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.Badge:has(> button.Remove) > button.Remove::after {
|
|
287
|
+
display: none;
|
|
288
|
+
}
|
|
256
289
|
}
|
|
257
290
|
}
|
|
@@ -49,11 +49,45 @@
|
|
|
49
49
|
color: var(--color-text-secondary);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@media (hover: hover) and (pointer: fine) {.Item > .Link:hover {
|
|
52
|
+
@media (hover: hover) and (pointer: fine) {.Item > .Link:hover:where(:not(:root[data-input="touch"] *)) {
|
|
53
53
|
color: var(--color-text);
|
|
54
54
|
}
|
|
55
55
|
}.Current {
|
|
56
56
|
color: var(--color-text);
|
|
57
57
|
overflow-wrap: anywhere;
|
|
58
|
+
}/* iOS has no breadcrumb: a phone screen goes back with the back button of its bar (Toolbar). A trail
|
|
59
|
+
kept on a phone takes the iOS Subheadline, 15/20, at either size (14 and 12 are not iOS text styles),
|
|
60
|
+
as the secondary text of phone rows does, and each link the 44pt touch target of iOS. A link keeps its
|
|
61
|
+
text width in the line; its target reaches 44px wide around a short word, so the gaps stay those of
|
|
62
|
+
the text. Lines of a wrapping trail stand 44px apart, one target each. */@media (max-width: 767px) {
|
|
63
|
+
.Breadcrumb,
|
|
64
|
+
.Breadcrumb[data-size="sm"] {
|
|
65
|
+
--breadcrumb-font-size: 15px;
|
|
66
|
+
--breadcrumb-line-height: 20px;
|
|
67
|
+
--breadcrumb-gap: 6px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.List {
|
|
71
|
+
row-gap: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Every line of a wrapping trail is a 44px line, also one without a link */
|
|
75
|
+
.Item {
|
|
76
|
+
min-height: 44px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.Item > .Link {
|
|
80
|
+
position: relative;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
min-height: 44px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.Item > .Link::after {
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset-block: 0;
|
|
89
|
+
inset-inline: min(0px, (100% - 44px) / 2);
|
|
90
|
+
content: "";
|
|
91
|
+
}
|
|
58
92
|
}
|
|
59
93
|
}
|