@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.
Files changed (81) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +30 -0
  2. package/dist/es/components/Alert/Alert.module.css +112 -1
  3. package/dist/es/components/Badge/Badge.module.css +41 -8
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +35 -1
  5. package/dist/es/components/Button/Button.module.css +178 -77
  6. package/dist/es/components/Button/NavigationButton.module.css +27 -0
  7. package/dist/es/components/Card/Card.module.css +27 -9
  8. package/dist/es/components/Checkbox/Checkbox.module.css +83 -90
  9. package/dist/es/components/CodeBlock/CodeBlock.module.css +20 -0
  10. package/dist/es/components/ColorPicker/ColorPicker.module.css +396 -0
  11. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  12. package/dist/es/components/DataTable/DataTable.module.css +35 -5
  13. package/dist/es/components/DatePicker/Calendar.module.css +280 -3
  14. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +20 -0
  15. package/dist/es/components/DateRangePicker/Calendar.module.css +223 -3
  16. package/dist/es/components/DateRangePicker/Trigger.module.css +29 -1
  17. package/dist/es/components/Dialog/Dialog.module.css +386 -86
  18. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +89 -14
  19. package/dist/es/components/Field/Field.module.css +346 -19
  20. package/dist/es/components/FieldError/FieldError.module.css +13 -10
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +103 -4
  22. package/dist/es/components/FileUpload/FileUpload.module.css +103 -10
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +46 -14
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +36 -14
  25. package/dist/es/components/Indicator/LoadingIndicator.module.css +48 -6
  26. package/dist/es/components/Input/Input.module.css +195 -25
  27. package/dist/es/components/InputGroup/InputGroup.module.css +5 -1
  28. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +27 -147
  29. package/dist/es/components/Menu/Menu.module.css +425 -33
  30. package/dist/es/components/OTPInput/OTPInput.module.css +11 -3
  31. package/dist/es/components/Page/Page.module.css +217 -20
  32. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  33. package/dist/es/components/Popover/Popover.module.css +10 -1
  34. package/dist/es/components/RadioGroup/RadioGroup.module.css +10 -10
  35. package/dist/es/components/Select/Select.module.css +162 -13
  36. package/dist/es/components/SelectControl/SelectControl.module.css +118 -11
  37. package/dist/es/components/ShimmerText/ShimmerText.module.css +7 -0
  38. package/dist/es/components/Sidebar/Sidebar.module.css +347 -72
  39. package/dist/es/components/Skeleton/Skeleton.module.css +4 -0
  40. package/dist/es/components/Slider/Slider.module.css +96 -52
  41. package/dist/es/components/Sortable/Sortable.module.css +20 -7
  42. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  43. package/dist/es/components/Switch/Switch.module.css +16 -7
  44. package/dist/es/components/TabBar/TabBar.module.css +233 -0
  45. package/dist/es/components/Table/Table.module.css +4 -2
  46. package/dist/es/components/Tabs/Tabs.module.css +186 -6
  47. package/dist/es/components/TagInput/TagInput.module.css +64 -19
  48. package/dist/es/components/TextLink/TextLink.module.css +4 -4
  49. package/dist/es/components/Textarea/Textarea.module.css +1 -1
  50. package/dist/es/components/Toast/Toast.module.css +120 -5
  51. package/dist/es/components/Toolbar/Toolbar.module.css +579 -0
  52. package/dist/es/components/Tooltip/Tooltip.module.css +1 -1
  53. package/dist/es/styles/base.css +1 -1
  54. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  72. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  73. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  74. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  75. package/dist/es/styles/katex.min.css +666 -730
  76. package/dist/es/styles/mobile-materials.css +69 -0
  77. package/dist/es/styles/mobile-surfaces.css +46 -0
  78. package/dist/es/styles/touch.css +524 -63
  79. package/dist/es/styles/variables-components.css +286 -7
  80. package/package.json +1 -1
  81. package/postcss/mixins.mjs +1 -1
@@ -12,7 +12,7 @@
12
12
  height: 224px;
13
13
  }
14
14
 
15
- @media (min-width: 576px) {.CalendarContainer {
15
+ @media (min-width: 768px) {.CalendarContainer {
16
16
  width: calc(var(--calendar-width) * 2 + 32px);
17
17
  }
18
18
  }.Previous {
@@ -85,6 +85,8 @@
85
85
  }.CalendarWrapper {
86
86
  overflow: hidden;
87
87
  padding: 10px 12px 12px;
88
+ }.CalendarViewport {
89
+ display: contents;
88
90
  }.CalendarRange {
89
91
  transition: transform 0.25s var(--cubic-move);
90
92
  }.ButtonText {
@@ -257,8 +259,10 @@ background-color: var(--alpha-08);
257
259
  opacity 0.15s var(--cubic-enter);
258
260
  }
259
261
 
260
- .InteractiveDay:hover::before {
261
- opacity: 1;
262
+ @media (hover: hover) and (pointer: fine) {
263
+ .InteractiveDay:hover:where(:not(:root[data-input="touch"] *))::before {
264
+ opacity: 1;
265
+ }
262
266
  }
263
267
 
264
268
  .InteractiveDay[disabled] {
@@ -294,5 +298,221 @@ background-color: var(--alpha-08);
294
298
  width: 150px;
295
299
  padding: calc(var(--spacing) * 2);
296
300
  border-right: 1px solid var(--color-border);
301
+ }/* The caption keeps its compact desktop abbreviations. */.LongDayLabel {
302
+ display: none;
303
+ }/* Keep 44px edge circles concentric with the popup corners. */@media (max-width: 767px) {
304
+ .Popover[role="dialog"],
305
+ .CalendarWrapper {
306
+ --calendar-gutter: clamp(3px, calc((100vw - 308px) / 4), 16px);
307
+ --calendar-inner-padding: min(max(0px, calc(var(--menu-radius, 32px) - 22px)), var(--calendar-gutter));
308
+ --calendar-header-height: calc(44px + 2 * var(--calendar-inner-padding));
309
+ --calendar-caption-inset: 96px;
310
+ }
311
+
312
+ .Popover[role="dialog"] {
313
+ /* The narrow-screen radius follows the available inset; it is a fit
314
+ constraint, not a separate measured native corner radius. */
315
+ --popover-radius: calc(22px + var(--calendar-inner-padding));
316
+
317
+ background: color-mix(in srgb, var(--color-surface-elevated) 70%, transparent);
318
+ box-shadow: var(--menu-shadow, var(--shadow), var(--shadow-hairline));
319
+ backdrop-filter: blur(50px);
320
+ }
321
+
322
+ .CalendarWrapper {
323
+ /* Preserve the outer collision gutter; the inner inset follows the
324
+ corner geometry while seven 44px targets still fit at 320px. */
325
+ box-sizing: border-box;
326
+ width: min(370px, calc(100vw - 2 * var(--calendar-gutter)), var(--radix-popover-content-available-width, 370px));
327
+ padding: 0 var(--calendar-inner-padding);
328
+ }
329
+
330
+ .CalendarContainer {
331
+ --cell-size: 44px;
332
+ --cell-vertical-gutter: 7px;
333
+ --calendar-width: min(350px, calc(100vw - 2 * var(--calendar-gutter) - 2 * var(--calendar-inner-padding)), calc(var(--radix-popover-content-available-width, 370px) - 2 * var(--calendar-inner-padding)));
334
+
335
+ width: var(--calendar-width);
336
+ }
337
+
338
+ /* The month slides inside a stationary viewport. Only the title band
339
+ reserves the navigation area; weekday labels and days keep the full width. */
340
+ .CalendarViewport {
341
+ position: absolute;
342
+ inset: 0;
343
+ display: block;
344
+ clip-path: polygon(
345
+ 0 0,
346
+ calc(100% - var(--calendar-caption-inset)) 0,
347
+ calc(100% - var(--calendar-caption-inset)) var(--calendar-header-height),
348
+ 100% var(--calendar-header-height),
349
+ 100% 100%,
350
+ 0 100%
351
+ );
352
+ }
353
+
354
+ .Calendar {
355
+ --cell-size: 44px;
356
+ --cell-vertical-gutter: 7px;
357
+
358
+ box-sizing: border-box;
359
+ padding-bottom: var(--calendar-inner-padding);
360
+ }
361
+
362
+ .Previous,
363
+ .Next {
364
+ top: var(--calendar-inner-padding);
365
+ left: auto;
366
+ background: none;
367
+ }
368
+
369
+ .Previous {
370
+ right: 44px;
371
+ }
372
+
373
+ .Next {
374
+ right: 0;
375
+ }
376
+
377
+ .Previous::before,
378
+ .Previous::after,
379
+ .Next::before,
380
+ .Next::after {
381
+ display: none;
382
+ }
383
+
384
+ /* Base Button supplies the active circle. Idle and hover remain
385
+ transparent; the navigation target stays 44px throughout. */
386
+ .Previous button[type="button"],
387
+ .Next button[type="button"] {
388
+ --button-size: 44px;
389
+ --button-gutter: 0px;
390
+ --button-icon-size: 24px;
391
+ --button-text-color: var(--color-text-primary);
392
+ --button-text-color-hover: var(--color-text-primary);
393
+ --button-radius: var(--radius-full);
394
+ --button-mobile-material-background: transparent;
395
+ --button-mobile-material-hover: transparent;
396
+ --button-mobile-material-active: var(--button-background-color-active);
397
+ --button-mobile-material-shadow: none;
398
+ --button-mobile-material-backdrop-filter: none;
399
+ --button-mobile-material-opacity: 0;
400
+ --button-mobile-material-scale: 1;
401
+
402
+ width: 44px;
403
+ padding: 0;
404
+ }
405
+
406
+ /* Keep the agreed Phone focus treatment: real keyboard focus, no drawn ring. */
407
+ .Previous button[type="button"]::after,
408
+ .Next button[type="button"]::after {
409
+ display: none;
410
+ }
411
+
412
+ /* Equal insets above and below the 44px navigation targets. */
413
+ .MonthLabel {
414
+ box-sizing: border-box;
415
+ justify-content: flex-start;
416
+ height: var(--calendar-header-height);
417
+ padding: 0 var(--calendar-caption-inset) 0 max(0px, calc(var(--field-row-padding-inline, 16px) - var(--calendar-inner-padding)));
418
+ margin: 0;
419
+ font-size: 17px;
420
+ font-weight: 590;
421
+ line-height: 22px;
422
+ }
423
+
424
+ .Week {
425
+ display: grid;
426
+ grid-template-columns: repeat(7, var(--cell-size));
427
+ justify-content: space-between;
428
+ }
429
+
430
+ .WeekdayHeader {
431
+ align-items: center;
432
+ height: 20px;
433
+ margin-bottom: 3px;
434
+ }
435
+
436
+ .DayLabel {
437
+ width: var(--cell-size);
438
+ height: 18px;
439
+ color: var(--color-text-tertiary);
440
+ font-size: 13px;
441
+ font-weight: 590;
442
+ line-height: 18px;
443
+ text-transform: uppercase;
444
+ }
445
+
446
+ .ShortDayLabel {
447
+ display: none;
448
+ }
449
+
450
+ .LongDayLabel {
451
+ display: inline;
452
+ }
453
+
454
+ .InteractiveDay {
455
+ padding: 0;
456
+ font-size: 17px;
457
+ line-height: 22px;
458
+ }
459
+
460
+ /* Today keeps the PlexUI dot that marks it from 768px up; the selection already follows the desktop
461
+ fill. A 4px dot centers on the 44px cell, and it sits under the 17px digits at the desktop gap
462
+ scaled by 17/14. */
463
+ .TodayDot {
464
+ bottom: 8px;
465
+ width: 4px;
466
+ height: 4px;
467
+ margin-left: -2px;
468
+ }
469
+ }@media (max-width: 767px) {
470
+ .CalendarContainer {
471
+ --calendar-day-gap: max(0px, calc((var(--calendar-width) - 7 * var(--cell-size)) / 6));
472
+ }
473
+
474
+ /* Keep the same 44px columns as DatePicker. Paint only the gap between
475
+ cells, so the translucent range fill never stacks over a day. */
476
+ .Day::after {
477
+ position: absolute;
478
+ top: 0;
479
+ bottom: 0;
480
+ left: 100%;
481
+ width: var(--calendar-day-gap);
482
+ background-color: transparent;
483
+ content: "";
484
+ pointer-events: none;
485
+ transition: background-color 0.15s var(--cubic-enter);
486
+ }
487
+
488
+ /* A first-month trail fades to the left and still needs its right bridge.
489
+ The last-month trail already paints a right fade, so do not overlap it. */
490
+ .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after, :where([data-theme="light"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
491
+ background-color: var(--alpha-06);
492
+ }
493
+ :where([data-theme="dark"]) .Day[data-is-in-range]:not([data-is-end]):not([data-is-last-range-trail]):not(:last-child)::after {
494
+ background-color: var(--alpha-08);
495
+ }
496
+
497
+ /* The range is a capsule on every week: where a week starts or ends inside the range, the band rounds
498
+ fully, as its start and end days do. A month trail sits inside a week and keeps its fade; when the
499
+ month's last day opens a week, or its first day closes one, that week edge rounds too. */
500
+ .Day[data-is-in-range]:first-child {
501
+ border-top-left-radius: var(--radius-full);
502
+ border-bottom-left-radius: var(--radius-full);
503
+ }
504
+
505
+ .Day[data-is-in-range]:last-child {
506
+ border-top-right-radius: var(--radius-full);
507
+ border-bottom-right-radius: var(--radius-full);
508
+ }
509
+ }@media (prefers-reduced-motion: reduce) {
510
+ .CalendarContainer {
511
+ --calendar-height-duration: 0ms;
512
+ }
513
+
514
+ .CalendarRange {
515
+ transition: none;
516
+ }
297
517
  }
298
518
  }
@@ -1,19 +1,47 @@
1
1
  @layer components {.StepperControl {
2
2
  padding-right: calc((var(--select-control-size) - var(--clear-size)) / 2);
3
3
  padding-left: calc((var(--select-control-size) - var(--clear-size)) / 2);
4
+
5
+ /* The arrows are uniform buttons: their size must not depend on this stylesheet coming after Button's */
4
6
  }
5
7
 
6
8
  .StepperControl .StepperPrevious,
7
9
  .StepperControl .StepperNext {
8
10
  --button-size: var(--clear-size);
9
11
  --button-icon-size: var(--clear-icon-size);
10
- }.StepperContent {
12
+ }
13
+ .StepperControl .StepperPrevious[data-uniform],
14
+ .StepperControl .StepperNext[data-uniform] {
15
+ --button-uniform-size: var(--clear-size);
16
+ }/* On a phone an arrow takes the 44px target of iOS around its face; the negative margin keeps the
17
+ control's layout and the glyph where they were. */@media (max-width: 767px) {
18
+ .StepperControl :is(.StepperPrevious, .StepperNext) {
19
+ min-width: 44px;
20
+ min-height: 44px;
21
+ margin: calc((var(--button-size) - 44px) / 2);
22
+ }
23
+
24
+ .StepperControl :is(.StepperPrevious, .StepperNext)::before,
25
+ .StepperControl :is(.StepperPrevious, .StepperNext)::after {
26
+ width: var(--button-size);
27
+ height: var(--button-size);
28
+ margin: auto;
29
+ }
30
+ }.StepperContent {
11
31
  display: flex;
12
32
  align-items: center;
13
33
  gap: var(--select-control-gap);
14
34
  }.StepperText {
15
35
  min-width: 9em;
16
36
  text-align: center;
37
+ }/* In a phone row the month keeps the width of the widest English month at the row's 17px
38
+ (September 2026 is 7.6em), so the arrows stay put when the month changes; the desktop 9em
39
+ would push the row's label onto two lines. The month gives the stepper its baseline, so it
40
+ sits on the row's line with the label and the other values, not 1.5px above it. */@media (max-width: 767px) {
41
+ :where([data-row]) .StepperText {
42
+ min-width: 7.75em;
43
+ align-self: baseline;
44
+ }
17
45
  }.RangeText {
18
46
  display: inline-block;
19
47
  font-variant: tabular-nums;