@plexui/styles 0.1.33 → 0.1.35

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 (80) hide show
  1. package/dist/es/components/Accordion/Accordion.module.css +26 -1
  2. package/dist/es/components/Alert/Alert.module.css +213 -1
  3. package/dist/es/components/Badge/Badge.module.css +37 -0
  4. package/dist/es/components/Breadcrumb/Breadcrumb.module.css +63 -0
  5. package/dist/es/components/Button/Button.module.css +123 -22
  6. package/dist/es/components/Button/NavigationButton.module.css +17 -0
  7. package/dist/es/components/ButtonGroup/ButtonGroup.module.css +227 -20
  8. package/dist/es/components/Card/Card.module.css +31 -6
  9. package/dist/es/components/Checkbox/Checkbox.module.css +26 -72
  10. package/dist/es/components/CodeBlock/CodeBlock.module.css +34 -1
  11. package/dist/es/components/ColorPicker/ColorPicker.module.css +414 -0
  12. package/dist/es/components/ContextMenu/ContextMenu.module.css +55 -0
  13. package/dist/es/components/DataTable/DataTable.module.css +4 -0
  14. package/dist/es/components/DatePicker/Calendar.module.css +279 -6
  15. package/dist/es/components/DatePicker/CalendarNavigationIcon.module.css +10 -0
  16. package/dist/es/components/DateRangePicker/Calendar.module.css +226 -4
  17. package/dist/es/components/DateRangePicker/Trigger.module.css +45 -2
  18. package/dist/es/components/Dialog/Dialog.module.css +871 -89
  19. package/dist/es/components/EmptyMessage/EmptyMessage.module.css +52 -0
  20. package/dist/es/components/Field/Field.module.css +574 -24
  21. package/dist/es/components/FieldGroup/FieldGroup.module.css +188 -3
  22. package/dist/es/components/FileUpload/FileUpload.module.css +74 -1
  23. package/dist/es/components/FloatingLabelInput/FloatingLabelInput.module.css +40 -1
  24. package/dist/es/components/FloatingLabelSelect/FloatingLabelSelect.module.css +28 -1
  25. package/dist/es/components/IndexBar/IndexBar.module.css +146 -0
  26. package/dist/es/components/Indicator/LoadingIndicator.module.css +14 -7
  27. package/dist/es/components/Input/Input.module.css +198 -1
  28. package/dist/es/components/InputGroup/InputGroup.module.css +4 -0
  29. package/dist/es/components/MarkdownEditor/MarkdownEditor.module.css +18 -0
  30. package/dist/es/components/Menu/Menu.module.css +544 -34
  31. package/dist/es/components/OTPInput/OTPInput.module.css +6 -1
  32. package/dist/es/components/Page/Page.module.css +391 -31
  33. package/dist/es/components/PageControl/PageControl.module.css +81 -0
  34. package/dist/es/components/PhoneLayout/PhoneLayout.module.css +10 -0
  35. package/dist/es/components/Popover/Popover.module.css +17 -1
  36. package/dist/es/components/Select/Select.module.css +201 -9
  37. package/dist/es/components/SelectControl/SelectControl.module.css +151 -4
  38. package/dist/es/components/Sidebar/Sidebar.module.css +624 -71
  39. package/dist/es/components/Slider/Slider.module.css +132 -45
  40. package/dist/es/components/Sortable/Sortable.module.css +7 -3
  41. package/dist/es/components/Stepper/Stepper.module.css +98 -0
  42. package/dist/es/components/SwipeActions/SwipeActions.module.css +166 -0
  43. package/dist/es/components/Switch/Switch.module.css +59 -4
  44. package/dist/es/components/TabBar/TabBar.module.css +478 -0
  45. package/dist/es/components/Tabs/Tabs.module.css +315 -3
  46. package/dist/es/components/TagInput/TagInput.module.css +50 -9
  47. package/dist/es/components/Textarea/Textarea.module.css +6 -0
  48. package/dist/es/components/Tip/Tip.module.css +456 -0
  49. package/dist/es/components/Toast/Toast.module.css +197 -9
  50. package/dist/es/components/Toolbar/Toolbar.module.css +850 -21
  51. package/dist/es/styles/katex-fonts/KaTeX_AMS-Regular.woff2 +0 -0
  52. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  53. package/dist/es/styles/katex-fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  54. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  55. package/dist/es/styles/katex-fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  56. package/dist/es/styles/katex-fonts/KaTeX_Main-Bold.woff2 +0 -0
  57. package/dist/es/styles/katex-fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  58. package/dist/es/styles/katex-fonts/KaTeX_Main-Italic.woff2 +0 -0
  59. package/dist/es/styles/katex-fonts/KaTeX_Main-Regular.woff2 +0 -0
  60. package/dist/es/styles/katex-fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  61. package/dist/es/styles/katex-fonts/KaTeX_Math-Italic.woff2 +0 -0
  62. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  63. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  64. package/dist/es/styles/katex-fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  65. package/dist/es/styles/katex-fonts/KaTeX_Script-Regular.woff2 +0 -0
  66. package/dist/es/styles/katex-fonts/KaTeX_Size1-Regular.woff2 +0 -0
  67. package/dist/es/styles/katex-fonts/KaTeX_Size2-Regular.woff2 +0 -0
  68. package/dist/es/styles/katex-fonts/KaTeX_Size3-Regular.woff2 +0 -0
  69. package/dist/es/styles/katex-fonts/KaTeX_Size4-Regular.woff2 +0 -0
  70. package/dist/es/styles/katex-fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  71. package/dist/es/styles/katex-fonts/LICENSE +21 -0
  72. package/dist/es/styles/katex.min.css +666 -730
  73. package/dist/es/styles/mobile-materials.css +145 -14
  74. package/dist/es/styles/mobile-surfaces.css +82 -32
  75. package/dist/es/styles/touch.css +940 -92
  76. package/dist/es/styles/variables-components.css +356 -17
  77. package/package.json +1 -1
  78. package/postcss/parseLightDark.mjs +20 -2
  79. package/postcss/phoneLayoutScope.mjs +134 -0
  80. package/postcss.config.mjs +3 -0
@@ -1,4 +1,8 @@
1
1
  @layer components {.Container {
2
+ /* A LoadingIndicator adornment is the field's accessory: the control's text size, or the touch
3
+ stylesheet's field size; an explicit size still wins */
4
+ --indicator-default-size: var(--control-indicator-size, 1em);
5
+
2
6
  display: flex;
3
7
  align-items: center;
4
8
  gap: var(--input-gap);
@@ -444,6 +448,10 @@
444
448
  position: relative;
445
449
  width: var(--input-clear-icon-size);
446
450
  height: var(--input-clear-icon-size);
451
+ }
452
+
453
+ .Clear > .ClearPhoneIcon {
454
+ display: none;
447
455
  }/* Keep the visible circle compact while the touch target has its own flex slot. */.Clear::before {
448
456
  content: "";
449
457
  position: absolute;
@@ -550,6 +558,47 @@
550
558
  pointer-events: none;
551
559
  transition: background-color var(--transition-duration-basic) var(--transition-ease-basic);
552
560
  }@media (max-width: 767px) {
561
+ /* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
562
+ circle in the tertiary label: kit iOS 27 Text Fields 5433:15635, IMG_5514), drawn with the PlexUI
563
+ XCircleFilled icon, whose circle is 20 of its 24px box. The circle alone shows the button, without the
564
+ soft face of the desktop; touch.css places it on its 44px target. */
565
+ .Clear::before,
566
+ .Clear > .ClearIcon {
567
+ display: none;
568
+ }
569
+
570
+ .Clear > .ClearPhoneIcon {
571
+ display: block;
572
+ width: calc(var(--input-clear-glyph-size, 17px) * 1.2);
573
+ height: calc(var(--input-clear-glyph-size, 17px) * 1.2);
574
+ color: var(--input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
575
+ }
576
+
577
+ /* The circle is concentric with the field's rounded end, half the field's height from its end (22px on the
578
+ 44px field). In a horizontal grouped row it is centred 26px from the row's edge, 10px inside the row's
579
+ 16px inset, as in the kit. The margins move the 44px target; the circle keeps its size. Physical sides,
580
+ as the container's own end gutter (padding-right) and the button's desktop margin. */
581
+ .Container > .Clear:last-child {
582
+ margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter));
583
+ }
584
+
585
+ .Container[data-pill] > .Clear:last-child {
586
+ margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter) * var(--control-gutter-pill-scaling));
587
+ }
588
+
589
+ /* Every row is frameless on a phone (a value under its label or alone too), so the circle keeps the row's
590
+ place in each; its target stands around the value's line and does not grow the row. */
591
+ :where([data-row]) .Container > .Clear.Clear:last-child {
592
+ margin-right: calc(10px - var(--input-clear-target-size, var(--input-clear-size)) / 2);
593
+ margin-block: calc((var(--input-size) - var(--input-clear-target-size, var(--input-clear-size))) / 2);
594
+ }
595
+
596
+ /* In a grouped row the clear button shows only while the value is being edited, as
597
+ the text fields of iOS forms show theirs (UITextField clearButtonMode whileEditing). */
598
+ :where([data-row]) .Container:not(:focus-within) > .Clear {
599
+ display: none;
600
+ }
601
+
553
602
  /* Reserve the target in flow; only the outer four-pixel breathing space
554
603
  is reclaimed. The remainder comes out of the input's available width. */
555
604
  .Container:where(:has(> .AdornmentButton)) {
@@ -617,7 +666,155 @@
617
666
  inset-inline-start: var(--input-adornment-outer-delta);
618
667
  inset-inline-end: auto;
619
668
  }
620
- }@keyframes native-autofill-in {
669
+
670
+ /* In a grouped row (Field row) the row sets the input to its 22px line, which left the button a 14px face
671
+ and an 11px glyph. There it is the row's accessory, as the password eye of the Apps 2.4 row
672
+ (38679:310818) and the Form Examples sign-in: a 19px glyph centred on the 44px target, its ink at the
673
+ row's trailing inset, the glyph alone showing the state. */
674
+ :where([data-row]) .Container > .AdornmentButton:last-child {
675
+ --input-adornment-background: transparent;
676
+
677
+ padding-inline: 0;
678
+ margin-inline-end: calc((19px - var(--input-adornment-hit-size)) / 2);
679
+ /* The target stands around the value's line and does not set the row's height: a cell with only its
680
+ value (Field hideLabel) keeps the 52px of one line, as the native password cell does. */
681
+ margin-block: calc((var(--input-size) - var(--input-adornment-hit-size)) / 2);
682
+ justify-content: center;
683
+ }
684
+
685
+ :where([data-row]) .Container > .AdornmentButton:last-child > svg {
686
+ width: 19px;
687
+ height: 19px;
688
+ }
689
+ }
690
+ /* The clear button of a phone text field is the filled circle with a cross of iOS (xmark.circle.fill, a 17px
691
+ circle in the tertiary label: kit iOS 27 Text Fields 5433:15635, IMG_5514), drawn with the PlexUI
692
+ XCircleFilled icon, whose circle is 20 of its 24px box. The circle alone shows the button, without the
693
+ soft face of the desktop; touch.css places it on its 44px target. */
694
+ :where([data-plex-layout="phone"]) .Clear::before,
695
+ :where([data-plex-layout="phone"]) .Clear > .ClearIcon {
696
+ display: none;
697
+ }
698
+
699
+ :where([data-plex-layout="phone"]) .Clear > .ClearPhoneIcon {
700
+ display: block;
701
+ width: calc(var(--input-clear-glyph-size, 17px) * 1.2);
702
+ height: calc(var(--input-clear-glyph-size, 17px) * 1.2);
703
+ color: var(--input-clear-glyph-color, var(--mobile-label-tertiary, var(--color-text-tertiary)));
704
+ }
705
+
706
+ /* The circle is concentric with the field's rounded end, half the field's height from its end (22px on the
707
+ 44px field). In a horizontal grouped row it is centred 26px from the row's edge, 10px inside the row's
708
+ 16px inset, as in the kit. The margins move the 44px target; the circle keeps its size. Physical sides,
709
+ as the container's own end gutter (padding-right) and the button's desktop margin. */
710
+ :where([data-plex-layout="phone"]) .Container > .Clear:last-child {
711
+ margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter));
712
+ }
713
+
714
+ :where([data-plex-layout="phone"]) .Container[data-pill] > .Clear:last-child {
715
+ margin-right: calc(var(--input-size) / 2 - var(--input-clear-target-size, var(--input-clear-size)) / 2 - var(--input-gutter) * var(--control-gutter-pill-scaling));
716
+ }
717
+
718
+ /* Every row is frameless on a phone (a value under its label or alone too), so the circle keeps the row's
719
+ place in each; its target stands around the value's line and does not grow the row. */
720
+ :where([data-plex-layout="phone"]) :where([data-row]) .Container > .Clear.Clear:last-child {
721
+ margin-right: calc(10px - var(--input-clear-target-size, var(--input-clear-size)) / 2);
722
+ margin-block: calc((var(--input-size) - var(--input-clear-target-size, var(--input-clear-size))) / 2);
723
+ }
724
+
725
+ /* In a grouped row the clear button shows only while the value is being edited, as
726
+ the text fields of iOS forms show theirs (UITextField clearButtonMode whileEditing). */
727
+ :where([data-plex-layout="phone"]) :where([data-row]) .Container:not(:focus-within) > .Clear {
728
+ display: none;
729
+ }
730
+
731
+ /* Reserve the target in flow; only the outer four-pixel breathing space
732
+ is reclaimed. The remainder comes out of the input's available width. */
733
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton)) {
734
+ --input-adornment-gutter: var(--input-gutter);
735
+
736
+ padding-inline: 0;
737
+ }
738
+
739
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton))[data-pill] {
740
+ --input-adornment-gutter: calc(var(--input-gutter) * var(--control-gutter-pill-scaling));
741
+ }
742
+
743
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton))[data-has-start-adornment] {
744
+ padding-inline-start: var(--input-adornment-gutter);
745
+ }
746
+
747
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton))[data-has-end-adornment] {
748
+ padding-inline-end: var(--input-adornment-gutter);
749
+ }
750
+
751
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton)) > .Input {
752
+ padding-inline: var(--input-adornment-gutter);
753
+ }
754
+
755
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton))[data-has-start-adornment] > .Input {
756
+ padding-inline-start: 0;
757
+ }
758
+
759
+ :where([data-plex-layout="phone"]) .Container:where(:has(> .AdornmentButton))[data-has-end-adornment] > .Input {
760
+ padding-inline-end: 0;
761
+ }
762
+
763
+ :where([data-plex-layout="phone"]) .Container > .AdornmentButton {
764
+ --input-adornment-hit-size: max(44px, var(--input-adornment-face-size));
765
+ --input-adornment-outer-delta: min(4px, calc((var(--input-adornment-hit-size) - var(--input-adornment-face-size)) / 2));
766
+ --input-adornment-content-inset: calc(var(--input-adornment-outer-delta) + (var(--input-adornment-face-size) - var(--input-size) / 2) / 2);
767
+
768
+ box-sizing: border-box;
769
+ width: var(--input-adornment-hit-size);
770
+ height: var(--input-adornment-hit-size);
771
+ margin-inline: 0;
772
+ padding-inline-end: var(--input-adornment-content-inset);
773
+ justify-content: flex-end;
774
+ }
775
+
776
+ :where([data-plex-layout="phone"]) .Container > .AdornmentButton::before {
777
+ inset-inline-start: auto;
778
+ inset-inline-end: var(--input-adornment-outer-delta);
779
+ margin-inline: 0;
780
+ }
781
+
782
+ :where([data-plex-layout="phone"]) .Container > .AdornmentButton:last-child {
783
+ margin-inline-end: calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter) - var(--input-adornment-outer-delta));
784
+ }
785
+
786
+ :where([data-plex-layout="phone"]) .Container > .AdornmentButton:first-child {
787
+ margin-inline-start: calc(var(--input-adornment-offset, -2px) - var(--input-adornment-outer-delta));
788
+ margin-inline-end: max(calc(var(--input-gap) * -1), calc(calc(var(--spacing) * 1) - var(--input-adornment-gutter)));
789
+ padding-inline-start: var(--input-adornment-content-inset);
790
+ padding-inline-end: 0;
791
+ justify-content: flex-start;
792
+ }
793
+
794
+ :where([data-plex-layout="phone"]) .Container > .AdornmentButton:first-child::before {
795
+ inset-inline-start: var(--input-adornment-outer-delta);
796
+ inset-inline-end: auto;
797
+ }
798
+
799
+ /* In a grouped row (Field row) the row sets the input to its 22px line, which left the button a 14px face
800
+ and an 11px glyph. There it is the row's accessory, as the password eye of the Apps 2.4 row
801
+ (38679:310818) and the Form Examples sign-in: a 19px glyph centred on the 44px target, its ink at the
802
+ row's trailing inset, the glyph alone showing the state. */
803
+ :where([data-plex-layout="phone"]) :where([data-row]) .Container > .AdornmentButton:last-child {
804
+ --input-adornment-background: transparent;
805
+
806
+ padding-inline: 0;
807
+ margin-inline-end: calc((19px - var(--input-adornment-hit-size)) / 2);
808
+ /* The target stands around the value's line and does not set the row's height: a cell with only its
809
+ value (Field hideLabel) keeps the 52px of one line, as the native password cell does. */
810
+ margin-block: calc((var(--input-size) - var(--input-adornment-hit-size)) / 2);
811
+ justify-content: center;
812
+ }
813
+
814
+ :where([data-plex-layout="phone"]) :where([data-row]) .Container > .AdornmentButton:last-child > svg {
815
+ width: 19px;
816
+ height: 19px;
817
+ }@keyframes native-autofill-in {
621
818
  0% {
622
819
  opacity: 1;
623
820
  }
@@ -253,6 +253,10 @@
253
253
  -webkit-user-select: none;
254
254
  -moz-user-select: none;
255
255
  user-select: none;
256
+
257
+ /* A LoadingIndicator here is the field's accessory: the control's text size, or the touch
258
+ stylesheet's field size; an explicit size still wins */
259
+ --indicator-default-size: var(--control-indicator-size, 1em);
256
260
  }
257
261
 
258
262
  .Addon > svg {
@@ -114,6 +114,12 @@ background-color: rgba(255, 255, 255, 0.1);
114
114
  line-height: 20px;
115
115
  }.EditorContent {
116
116
  outline: none;
117
+ /* ProseMirror's text layout, which TipTap injects for the editor, here for its first frame too: spaces kept,
118
+ long words broken, no ligatures */
119
+ word-wrap: break-word;
120
+ white-space: break-spaces;
121
+ font-feature-settings: "liga" 0;
122
+ font-variant-ligatures: none;
117
123
  }
118
124
 
119
125
  .EditorContent > * + * {
@@ -174,4 +180,16 @@ background-color: rgba(255, 255, 255, 0.1);
174
180
  flex-shrink: 0;
175
181
  }
176
182
  }
183
+ :where([data-plex-layout="phone"]) .ToolbarGroup {
184
+ overflow-x: auto;
185
+ overscroll-behavior-x: contain;
186
+ }
187
+
188
+ :where([data-plex-layout="phone"]) .ToolbarButton.ToolbarButton {
189
+ --button-size: 44px;
190
+ --button-uniform-size: 44px;
191
+ width: 44px;
192
+ height: 44px;
193
+ flex-shrink: 0;
194
+ }
177
195
  }