@plexui/styles 0.1.32 → 0.1.33
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 +16 -0
- package/dist/es/components/Badge/Badge.module.css +41 -8
- package/dist/es/components/Breadcrumb/Breadcrumb.module.css +1 -1
- package/dist/es/components/Button/Button.module.css +117 -64
- package/dist/es/components/Button/NavigationButton.module.css +27 -0
- package/dist/es/components/Card/Card.module.css +5 -3
- package/dist/es/components/Checkbox/Checkbox.module.css +80 -41
- package/dist/es/components/DataTable/DataTable.module.css +31 -5
- package/dist/es/components/DatePicker/Calendar.module.css +267 -3
- package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
- package/dist/es/components/DateRangePicker/Calendar.module.css +205 -3
- package/dist/es/components/Dialog/Dialog.module.css +214 -49
- package/dist/es/components/EmptyMessage/EmptyMessage.module.css +58 -14
- package/dist/es/components/Field/Field.module.css +164 -2
- package/dist/es/components/FieldError/FieldError.module.css +13 -10
- package/dist/es/components/FieldGroup/FieldGroup.module.css +44 -4
- package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
- package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +25 -14
- package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +20 -14
- package/dist/es/components/Indicator/LoadingIndicator.module.css +41 -6
- package/dist/es/components/Input/Input.module.css +126 -25
- package/dist/es/components/InputGroup/InputGroup.module.css +1 -1
- package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
- package/dist/es/components/Menu/Menu.module.css +162 -20
- package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
- package/dist/es/components/Page/Page.module.css +140 -11
- package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
- package/dist/es/components/Select/Select.module.css +118 -13
- package/dist/es/components/SelectControl/SelectControl.module.css +83 -11
- package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
- package/dist/es/components/Sidebar/Sidebar.module.css +74 -18
- package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
- package/dist/es/components/Slider/Slider.module.css +53 -16
- package/dist/es/components/Sortable/Sortable.module.css +13 -4
- package/dist/es/components/Switch/Switch.module.css +16 -7
- package/dist/es/components/Table/Table.module.css +4 -2
- package/dist/es/components/Tabs/Tabs.module.css +39 -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 +72 -2
- package/dist/es/components/Toolbar/Toolbar.module.css +389 -0
- package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
- package/dist/es/styles/base.css +1 -1
- package/dist/es/styles/mobile-materials.css +27 -0
- package/dist/es/styles/mobile-surfaces.css +39 -0
- package/dist/es/styles/touch.css +280 -57
- package/dist/es/styles/variables-components.css +60 -0
- package/package.json +1 -1
- package/postcss/mixins.mjs +1 -1
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
.Container[data-disabled] {
|
|
36
36
|
pointer-events: none;
|
|
37
37
|
}
|
|
38
|
-
@media (hover: hover) and (pointer: fine) {.Container:not([data-disabled]):hover, :where([data-theme="light"]) .Container:not([data-disabled]):hover {
|
|
38
|
+
@media (hover: hover) and (pointer: fine) {.Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)), :where([data-theme="light"]) .Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
39
39
|
box-shadow: 0 0 0 1px var(--gray-300) inset;
|
|
40
|
-
}:where([data-theme="dark"]) .Container:not([data-disabled]):hover {
|
|
40
|
+
}:where([data-theme="dark"]) .Container:not([data-disabled]):hover:where(:not(:root[data-input="touch"] *)) {
|
|
41
41
|
box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -74,7 +74,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
74
74
|
/* 20 + 4 + 4 = 28 */
|
|
75
75
|
.Container:where([data-size="sm"]) {
|
|
76
76
|
--tag-input-font-size: var(--control-font-size-md);
|
|
77
|
-
--tag-input-height:
|
|
77
|
+
--tag-input-height: calc(var(--control-size-sm, 28px) - 2 * var(--tag-input-tag-spacing));
|
|
78
78
|
--tag-input-tag-spacing: 4px;
|
|
79
79
|
--tag-input-tag-gutter: var(--control-gutter-2xs);
|
|
80
80
|
--tag-input-radius: var(--control-radius-sm);
|
|
@@ -83,7 +83,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
83
83
|
/* 20 + 6 + 6 = 32 */
|
|
84
84
|
.Container:where([data-size="md"]) {
|
|
85
85
|
--tag-input-font-size: var(--control-font-size-md);
|
|
86
|
-
--tag-input-height:
|
|
86
|
+
--tag-input-height: calc(var(--control-size-md, 32px) - 2 * var(--tag-input-tag-spacing));
|
|
87
87
|
--tag-input-tag-spacing: 6px;
|
|
88
88
|
--tag-input-radius: var(--control-radius-md);
|
|
89
89
|
}
|
|
@@ -91,7 +91,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
91
91
|
/* 24 + 6 + 6 = 36 */
|
|
92
92
|
.Container:where([data-size="lg"]) {
|
|
93
93
|
--tag-input-font-size: var(--control-font-size-md);
|
|
94
|
-
--tag-input-height:
|
|
94
|
+
--tag-input-height: calc(var(--control-size-lg, 36px) - 2 * var(--tag-input-tag-spacing));
|
|
95
95
|
--tag-input-tag-spacing: 6px;
|
|
96
96
|
--tag-input-radius: var(--control-radius-lg);
|
|
97
97
|
}
|
|
@@ -101,7 +101,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
101
101
|
/* SelectControl xl uses control-font-size-md (not -lg), so the chip + input
|
|
102
102
|
text inside TagInput xl matches Select xl. */
|
|
103
103
|
--tag-input-font-size: var(--control-font-size-md);
|
|
104
|
-
--tag-input-height:
|
|
104
|
+
--tag-input-height: calc(var(--control-size-xl, 40px) - 2 * var(--tag-input-tag-spacing));
|
|
105
105
|
--tag-input-tag-spacing: 8px;
|
|
106
106
|
--tag-input-radius: var(--control-radius-xl);
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
109
109
|
/* 28 + 8 + 8 = 44 */
|
|
110
110
|
.Container:where([data-size="2xl"]) {
|
|
111
111
|
--tag-input-font-size: var(--control-font-size-lg);
|
|
112
|
-
--tag-input-height:
|
|
112
|
+
--tag-input-height: calc(var(--control-size-2xl, 44px) - 2 * var(--tag-input-tag-spacing));
|
|
113
113
|
--tag-input-tag-spacing: 8px;
|
|
114
114
|
--tag-input-radius: var(--control-radius-xl);
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
117
117
|
/* 32 + 8 + 8 = 48 */
|
|
118
118
|
.Container:where([data-size="3xl"]) {
|
|
119
119
|
--tag-input-font-size: var(--control-font-size-lg);
|
|
120
|
-
--tag-input-height:
|
|
120
|
+
--tag-input-height: calc(var(--control-size-3xl, 48px) - 2 * var(--tag-input-tag-spacing));
|
|
121
121
|
--tag-input-tag-spacing: 8px;
|
|
122
122
|
--tag-input-radius: var(--control-radius-xl);
|
|
123
123
|
}
|
|
@@ -169,7 +169,8 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
.Tag {
|
|
172
|
-
background
|
|
172
|
+
--tag-input-tag-background: var(--color-background-secondary-soft-alpha);
|
|
173
|
+
background-color: var(--tag-input-tag-background);
|
|
173
174
|
color: var(--color-text-secondary-soft);
|
|
174
175
|
font-size: var(--tag-input-tag-font-size, var(--tag-input-font-size));
|
|
175
176
|
font-weight: var(--button-font-weight);
|
|
@@ -179,17 +180,17 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
179
180
|
transition: background-color 0.15s ease;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
|
-
@media (hover: hover) and (pointer: fine) {.Tag:hover {
|
|
183
|
-
background
|
|
183
|
+
@media (hover: hover) and (pointer: fine) {.Tag:hover:where(:not(:root[data-input="touch"] *)) {
|
|
184
|
+
--tag-input-tag-background: var(--color-background-secondary-soft-alpha-hover);
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
.Tag:focus {
|
|
188
|
-
background
|
|
189
|
+
--tag-input-tag-background: var(--color-background-secondary-soft-alpha-hover);
|
|
189
190
|
}
|
|
190
191
|
|
|
191
192
|
.Tag:active {
|
|
192
|
-
background
|
|
193
|
+
--tag-input-tag-background: var(--color-background-secondary-soft-alpha-active);
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
.Container[data-disabled] .Tag {
|
|
@@ -197,21 +198,21 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
197
198
|
}
|
|
198
199
|
|
|
199
200
|
.Tag[data-invalid] {
|
|
200
|
-
background
|
|
201
|
+
--tag-input-tag-background: var(--color-background-danger-soft-alpha);
|
|
201
202
|
color: var(--color-text-danger-soft);
|
|
202
203
|
}
|
|
203
204
|
|
|
204
|
-
@media (hover: hover) and (pointer: fine) {.Tag[data-invalid]:hover {
|
|
205
|
-
background
|
|
205
|
+
@media (hover: hover) and (pointer: fine) {.Tag[data-invalid]:hover:where(:not(:root[data-input="touch"] *)) {
|
|
206
|
+
--tag-input-tag-background: var(--color-background-danger-soft-alpha-hover);
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
.Tag[data-invalid]:focus {
|
|
210
|
-
background
|
|
211
|
+
--tag-input-tag-background: var(--color-background-danger-soft-alpha-hover);
|
|
211
212
|
}
|
|
212
213
|
|
|
213
214
|
.Tag[data-invalid]:active {
|
|
214
|
-
background
|
|
215
|
+
--tag-input-tag-background: var(--color-background-danger-soft-alpha-active);
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
.Tag[data-duplicate] {
|
|
@@ -222,15 +223,59 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
|
|
|
222
223
|
font-size: var(--control-icon-size-sm);
|
|
223
224
|
}.TagRemove {
|
|
224
225
|
display: flex;
|
|
226
|
+
flex: none;
|
|
225
227
|
align-items: center;
|
|
228
|
+
justify-content: center;
|
|
229
|
+
padding: 0;
|
|
230
|
+
border: 0;
|
|
231
|
+
border-radius: var(--radius-full);
|
|
232
|
+
background: none;
|
|
233
|
+
cursor: pointer;
|
|
226
234
|
color: inherit;
|
|
227
235
|
opacity: 0.5;
|
|
228
236
|
transition: opacity 0.15s ease;
|
|
229
237
|
}
|
|
230
238
|
|
|
231
|
-
@media (hover: hover) and (pointer: fine) {.TagRemove:hover {
|
|
239
|
+
@media (hover: hover) and (pointer: fine) {.TagRemove:hover:where(:not(:root[data-input="touch"] *)) {
|
|
232
240
|
opacity: 1;
|
|
233
241
|
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.TagRemove:focus-visible {
|
|
245
|
+
outline: 2px solid var(--color-ring);
|
|
246
|
+
outline-offset: -2px;
|
|
247
|
+
opacity: 1;
|
|
248
|
+
}@media (max-width: 767px), (pointer: coarse) {
|
|
249
|
+
.Tag {
|
|
250
|
+
--tag-input-tag-height: 44px;
|
|
251
|
+
|
|
252
|
+
height: 44px;
|
|
253
|
+
max-width: 100%;
|
|
254
|
+
padding-inline-end: 0;
|
|
255
|
+
border-radius: var(--radius-full);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.Tag[data-tag] {
|
|
259
|
+
position: relative;
|
|
260
|
+
isolation: isolate;
|
|
261
|
+
background-color: transparent;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.Tag[data-tag]::before {
|
|
265
|
+
content: "";
|
|
266
|
+
position: absolute;
|
|
267
|
+
z-index: -1;
|
|
268
|
+
inset: 6px 0;
|
|
269
|
+
border-radius: inherit;
|
|
270
|
+
background-color: var(--tag-input-tag-background);
|
|
271
|
+
pointer-events: none;
|
|
272
|
+
transition: background-color 0.15s ease;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.TagRemove {
|
|
276
|
+
width: 44px;
|
|
277
|
+
height: 44px;
|
|
278
|
+
}
|
|
234
279
|
}.TagValue {
|
|
235
280
|
white-space: nowrap;
|
|
236
281
|
}.InputContainer {
|
|
@@ -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
|
}
|
|
@@ -73,11 +73,16 @@
|
|
|
73
73
|
font-weight: var(--font-weight-medium);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
@media (hover: hover) and (pointer: fine) {
|
|
77
|
+
.ActionButton:hover:where(:not(:root[data-input="touch"] *)) {
|
|
78
|
+
background: var(--color-background-primary-solid-hover) !important;
|
|
79
|
+
}
|
|
78
80
|
}.CancelButton {
|
|
79
81
|
color: var(--color-text-secondary) !important;
|
|
80
82
|
font-weight: var(--font-weight-medium);
|
|
83
|
+
}.Toast :is([data-button], [data-close-button]):disabled {
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
opacity: 0.5;
|
|
81
86
|
}/* =============================================
|
|
82
87
|
Centered text variant — shrink-to-fit is already the default
|
|
83
88
|
============================================= */.Compact {
|
|
@@ -95,5 +100,70 @@
|
|
|
95
100
|
--toast-icon-color: var(--color-text-warning-outline);
|
|
96
101
|
}.Info {
|
|
97
102
|
--toast-icon-color: var(--color-text-info-outline);
|
|
103
|
+
}/* Sonner removes the native outline; the token shadow above also replaces its
|
|
104
|
+
focus shadow. Give keyboard focus its own ring in both color schemes. */.Toast:focus-visible,
|
|
105
|
+
.Toast :is([data-button], [data-close-button]):focus-visible {
|
|
106
|
+
outline: 2px solid var(--color-ring) !important;
|
|
107
|
+
outline-offset: 2px;
|
|
108
|
+
}.Toast :is([data-button], [data-close-button]):focus-visible {
|
|
109
|
+
box-shadow: none !important;
|
|
110
|
+
}/* Toast is an in-app web feedback composition, not the iOS notification banner.
|
|
111
|
+
These targets and wrapping rules adapt Sonner's controls for phone use. */@media (max-width: 767px), (pointer: coarse) {
|
|
112
|
+
.Toast[data-styled="true"] {
|
|
113
|
+
flex-wrap: wrap;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.Toast[data-styled="true"] > .Content {
|
|
117
|
+
flex: 1 1 calc(100% - 28px);
|
|
118
|
+
min-width: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.Toast[data-styled="true"] > :is(.ActionButton, .CancelButton) {
|
|
122
|
+
box-sizing: border-box;
|
|
123
|
+
flex: 0 1 auto !important;
|
|
124
|
+
min-width: 44px;
|
|
125
|
+
max-width: 100%;
|
|
126
|
+
min-height: 44px;
|
|
127
|
+
height: auto !important;
|
|
128
|
+
padding: 8px 10px !important;
|
|
129
|
+
margin-inline: 0 !important;
|
|
130
|
+
line-height: var(--font-text-sm-line-height);
|
|
131
|
+
white-space: normal;
|
|
132
|
+
overflow-wrap: anywhere;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* The 20px close face stays compact inside a separate 44px target. Reserve
|
|
136
|
+
the leading space so neither its target nor its ring covers the message. */
|
|
137
|
+
.Toast[data-styled="true"]:has([data-close-button]) {
|
|
138
|
+
padding-inline-start: 56px !important;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.Toast[data-styled="true"] > [data-close-button] {
|
|
142
|
+
top: 0 !important;
|
|
143
|
+
left: 0 !important;
|
|
144
|
+
right: auto !important;
|
|
145
|
+
width: 44px !important;
|
|
146
|
+
height: 44px !important;
|
|
147
|
+
border: 0 !important;
|
|
148
|
+
background: transparent !important;
|
|
149
|
+
transform: none !important;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.Toast[data-styled="true"] > [data-close-button]::before {
|
|
153
|
+
position: absolute;
|
|
154
|
+
z-index: -1;
|
|
155
|
+
inset: 12px;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
border: 1px solid var(--gray4);
|
|
158
|
+
border-radius: 50%;
|
|
159
|
+
background: var(--normal-bg);
|
|
160
|
+
content: "";
|
|
161
|
+
pointer-events: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.Toaster[dir="rtl"] .Toast[data-styled="true"] > [data-close-button] {
|
|
165
|
+
left: auto !important;
|
|
166
|
+
right: 0 !important;
|
|
167
|
+
}
|
|
98
168
|
}
|
|
99
169
|
}
|