@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
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
transition-timing-function: var(--transition-ease-basic);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
@media (hover: hover) and (pointer: fine) {.TextLink:hover {
|
|
16
|
+
@media (hover: hover) and (pointer: fine) {.TextLink:hover:where(:not(:root[data-input="touch"] *)) {
|
|
17
17
|
color: color-mix(in oklab, currentcolor 80%, transparent);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* stylelint-disable-next-line */
|
|
21
|
-
:global(.text-secondary) .TextLink:hover {
|
|
21
|
+
:global(.text-secondary) .TextLink:hover:where(:not(:root[data-input="touch"] *)) {
|
|
22
22
|
color: var(--color-text);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* stylelint-disable-next-line */
|
|
26
|
-
:global(.text-tertiary) .TextLink:hover {
|
|
26
|
+
:global(.text-tertiary) .TextLink:hover:where(:not(:root[data-input="touch"] *)) {
|
|
27
27
|
color: var(--color-text-secondary);
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
color: var(--link-primary-text-color);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
@media (hover: hover) and (pointer: fine) {.TextLink[data-primary]:hover {
|
|
46
|
+
@media (hover: hover) and (pointer: fine) {.TextLink[data-primary]:hover:where(:not(:root[data-input="touch"] *)) {
|
|
47
47
|
color: var(--link-primary-text-color-hover);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
/* NOTE: Don't add box-model size here, as the <textarea> defines all height sizing */
|
|
142
142
|
box-shadow: 0 0 0 1px var(--input-outline-border-color) inset;
|
|
143
143
|
}
|
|
144
|
-
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover {
|
|
144
|
+
@media (hover: hover) and (pointer: fine) {.Container:where([data-variant="outline"]):not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
145
145
|
box-shadow: 0 0 0 1px var(--input-outline-border-color-hover) inset;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
}.Title {
|
|
45
45
|
color: var(--color-text);
|
|
46
46
|
font-size: var(--font-text-sm-size);
|
|
47
|
-
line-height:
|
|
47
|
+
/* Sonner's unlayered [data-title] sets line-height: 1.5 (21px at 14px) */
|
|
48
|
+
line-height: var(--font-text-sm-line-height) !important;
|
|
48
49
|
/* Sonner pins font-weight: 500; keep that for title-only toasts and only
|
|
49
50
|
lift to semibold when a description sits alongside (so the title is
|
|
50
51
|
visually anchored against the secondary text). */
|
|
@@ -53,10 +54,13 @@
|
|
|
53
54
|
}.Content:has(.Description) .Title {
|
|
54
55
|
font-weight: var(--font-weight-semibold) !important;
|
|
55
56
|
}.Description {
|
|
56
|
-
|
|
57
|
+
/* Sonner's unlayered [data-description] sets line-height: 1.4 and its own gray (below) */
|
|
57
58
|
font-size: var(--font-text-sm-size);
|
|
58
|
-
line-height: var(--font-text-sm-line-height);
|
|
59
|
+
line-height: var(--font-text-sm-line-height) !important;
|
|
59
60
|
text-wrap: pretty;
|
|
61
|
+
}/* Sonner's unlayered stylesheet paints the description #3f3f3f (91% in dark); a toast with rich
|
|
62
|
+
colors keeps Sonner's inherited color. */.Toast:not([data-rich-colors="true"]) .Description {
|
|
63
|
+
color: var(--color-text-secondary) !important;
|
|
60
64
|
}.Content {
|
|
61
65
|
gap: 0 !important;
|
|
62
66
|
}.Icon {
|
|
@@ -73,11 +77,16 @@
|
|
|
73
77
|
font-weight: var(--font-weight-medium);
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
|
|
77
|
-
|
|
80
|
+
@media (hover: hover) and (pointer: fine) {
|
|
81
|
+
.ActionButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
82
|
+
background: var(--color-background-primary-solid-hover) !important;
|
|
83
|
+
}
|
|
78
84
|
}.CancelButton {
|
|
79
85
|
color: var(--color-text-secondary) !important;
|
|
80
86
|
font-weight: var(--font-weight-medium);
|
|
87
|
+
}.Toast :is([data-button], [data-close-button]):disabled {
|
|
88
|
+
cursor: not-allowed;
|
|
89
|
+
opacity: 0.5;
|
|
81
90
|
}/* =============================================
|
|
82
91
|
Centered text variant — shrink-to-fit is already the default
|
|
83
92
|
============================================= */.Compact {
|
|
@@ -95,5 +104,111 @@
|
|
|
95
104
|
--toast-icon-color: var(--color-text-warning-outline);
|
|
96
105
|
}.Info {
|
|
97
106
|
--toast-icon-color: var(--color-text-info-outline);
|
|
107
|
+
}/* Sonner removes the native outline; the token shadow above also replaces its
|
|
108
|
+
focus shadow. Give keyboard focus its own ring in both color schemes. */.Toast:focus-visible,
|
|
109
|
+
.Toast :is([data-button], [data-close-button]):focus-visible {
|
|
110
|
+
outline: 2px solid var(--color-ring) !important;
|
|
111
|
+
outline-offset: 2px;
|
|
112
|
+
}.Toast :is([data-button], [data-close-button]):focus-visible {
|
|
113
|
+
box-shadow: none !important;
|
|
114
|
+
}/* A toast stays an in-app web message: it takes the look of an iOS notification banner on a phone
|
|
115
|
+
(below) but not its behavior. These targets and wrapping rules adapt Sonner's controls for touch:
|
|
116
|
+
an action stands under the message, which keeps the toast's width. */@media (max-width: 767px), (pointer: coarse) {
|
|
117
|
+
.Toast[data-styled="true"] {
|
|
118
|
+
flex-wrap: wrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.Toast[data-styled="true"] > .Content {
|
|
122
|
+
flex: 1 1 calc(100% - 28px);
|
|
123
|
+
min-width: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.Toast[data-styled="true"] > :is(.ActionButton, .CancelButton) {
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
flex: 0 1 auto !important;
|
|
129
|
+
min-width: 44px;
|
|
130
|
+
max-width: 100%;
|
|
131
|
+
min-height: 44px;
|
|
132
|
+
height: auto !important;
|
|
133
|
+
padding: 8px 10px !important;
|
|
134
|
+
margin-inline: 0 !important;
|
|
135
|
+
line-height: var(--font-text-sm-line-height);
|
|
136
|
+
white-space: normal;
|
|
137
|
+
overflow-wrap: anywhere;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/* The 20px close face stays compact inside a separate 44px target. Reserve
|
|
141
|
+
the leading space so neither its target nor its ring covers the message. */
|
|
142
|
+
.Toast[data-styled="true"]:has([data-close-button]) {
|
|
143
|
+
padding-inline-start: 56px !important;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.Toast[data-styled="true"] > [data-close-button] {
|
|
147
|
+
top: 0 !important;
|
|
148
|
+
left: 0 !important;
|
|
149
|
+
right: auto !important;
|
|
150
|
+
width: 44px !important;
|
|
151
|
+
height: 44px !important;
|
|
152
|
+
border: 0 !important;
|
|
153
|
+
background: transparent !important;
|
|
154
|
+
transform: none !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.Toast[data-styled="true"] > [data-close-button]::before {
|
|
158
|
+
position: absolute;
|
|
159
|
+
z-index: -1;
|
|
160
|
+
inset: 12px;
|
|
161
|
+
box-sizing: border-box;
|
|
162
|
+
border: 1px solid var(--gray4);
|
|
163
|
+
border-radius: 50%;
|
|
164
|
+
background: var(--normal-bg);
|
|
165
|
+
content: "";
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
|
|
170
|
+
left: auto !important;
|
|
171
|
+
right: 0 !important;
|
|
172
|
+
}
|
|
173
|
+
}/* On a phone a toast takes the corners, padding and text of the iOS notification banner, the
|
|
174
|
+
system's own message at the top of the screen (kit iOS 27, Notifications, Notification - Collapsed
|
|
175
|
+
Stack=1 0:11292): corners 24, padding 14, a 10px gap, the title at 15/17 semibold and the
|
|
176
|
+
description at 15/18. The kit's -0.23 tracking of 15pt text is left to the system font, which
|
|
177
|
+
tracks it itself. It keeps its own width and opaque surface, not the banner's glass and width. Its buttons are drawn as a medium phone Button (touch.css): a 34px capsule,
|
|
178
|
+
15/20 regular, gutter 14, centered in the 44px target above. */@media (max-width: 767px) {
|
|
179
|
+
.Toast[data-styled="true"] {
|
|
180
|
+
gap: 10px !important;
|
|
181
|
+
padding: 14px !important;
|
|
182
|
+
border-radius: 24px !important;
|
|
183
|
+
letter-spacing: normal;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.Toast[data-styled="true"] .Title,
|
|
187
|
+
.Toast[data-styled="true"] .Description {
|
|
188
|
+
font-size: 15px;
|
|
189
|
+
line-height: 18px !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.Toast[data-styled="true"] .Title {
|
|
193
|
+
line-height: 17px !important;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.Toast[data-styled="true"] > :is(.ActionButton, .CancelButton) {
|
|
197
|
+
position: relative;
|
|
198
|
+
min-height: 34px;
|
|
199
|
+
margin-block: 5px !important;
|
|
200
|
+
padding: 7px 14px !important;
|
|
201
|
+
border-radius: var(--radius-full) !important;
|
|
202
|
+
font-size: 15px !important;
|
|
203
|
+
font-weight: var(--font-weight-normal) !important;
|
|
204
|
+
line-height: 20px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* The 44px target reaches 5px past the capsule above and below */
|
|
208
|
+
.Toast[data-styled="true"] > :is(.ActionButton, .CancelButton)::after {
|
|
209
|
+
position: absolute;
|
|
210
|
+
inset: -5px 0;
|
|
211
|
+
content: "";
|
|
212
|
+
}
|
|
98
213
|
}
|
|
99
214
|
}
|