@plexui/styles 0.14.0 → 0.15.0

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.
@@ -97,5 +97,37 @@
97
97
  height: var(--stepper-icon-size);
98
98
  }/* The PlexUI minus is shorter than the plus (12 and 14 of 24); a phone draws it as long, as iOS does (touch.css). */.Segment[data-segment="decrement"]:not([data-remove]) > .Icon {
99
99
  scale: var(--stepper-decrement-icon-scale, none);
100
+ }/* With the value: one fill under round segments and the number between them, as a cart's quantity stepper
101
+ (the iOS-style cart in the owner's design, 15.11): a 96 x 36 capsule on a phone, two 36px segments with 20px
102
+ symbols and the value, medium, at least 24 wide. A pressed segment darkens a circle; the separator is gone. */.Stepper[data-show-value] {
103
+ --stepper-height: var(--stepper-value-height);
104
+ --stepper-radius: var(--stepper-value-radius);
105
+ --stepper-segment-width: var(--stepper-value-height);
106
+ --stepper-icon-size: var(--stepper-value-icon-size);
107
+ --stepper-segment-background: transparent;
108
+ --stepper-segment-background-disabled: transparent;
109
+ --stepper-segment-background-hover: var(--stepper-value-segment-background-hover);
110
+ --stepper-segment-background-active: var(--stepper-value-segment-background-active);
111
+ background: var(--stepper-value-background);
100
112
  }
113
+
114
+ .Stepper[data-show-value] .Segment {
115
+ border-radius: inherit;
116
+ }.Value {
117
+ display: grid;
118
+ place-items: center;
119
+ flex-shrink: 0;
120
+ min-width: var(--stepper-value-min-width);
121
+ color: var(--stepper-value-color);
122
+ font-size: var(--stepper-value-font-size);
123
+ font-weight: var(--stepper-value-font-weight);
124
+ line-height: var(--stepper-value-line-height);
125
+ font-variant-numeric: tabular-nums;
126
+ white-space: nowrap;
127
+ pointer-events: none;
128
+ }
129
+
130
+ .Stepper[data-disabled] > .Value {
131
+ color: var(--stepper-value-disabled-color);
132
+ }
101
133
  }
@@ -440,6 +440,15 @@
440
440
  --stepper-segment-background-disabled: var(--stepper-mobile-segment-background-disabled);
441
441
  --stepper-separator-color: var(--stepper-mobile-separator-color);
442
442
  --stepper-icon-disabled-color: var(--mobile-label-tertiary);
443
+ --stepper-value-height: 36px;
444
+ --stepper-value-radius: 18px;
445
+ --stepper-value-icon-size: 20px;
446
+ --stepper-value-background: var(--stepper-mobile-segment-background);
447
+ --stepper-value-segment-background-hover: transparent;
448
+ --stepper-value-segment-background-active: var(--stepper-mobile-segment-background-active);
449
+ --stepper-value-disabled-color: var(--mobile-label-tertiary);
450
+ --stepper-value-font-size: 15px;
451
+ --stepper-value-line-height: 20px;
443
452
  --color-picker-width: 100%;
444
453
  --color-picker-modes-gap: 15px;
445
454
  --color-picker-body-radius: 18px;
@@ -1137,6 +1146,15 @@ html:root :where([data-plex-layout="phone"]) {
1137
1146
  --stepper-segment-background-disabled: var(--stepper-mobile-segment-background-disabled);
1138
1147
  --stepper-separator-color: var(--stepper-mobile-separator-color);
1139
1148
  --stepper-icon-disabled-color: var(--mobile-label-tertiary);
1149
+ --stepper-value-height: 36px;
1150
+ --stepper-value-radius: 18px;
1151
+ --stepper-value-icon-size: 20px;
1152
+ --stepper-value-background: var(--stepper-mobile-segment-background);
1153
+ --stepper-value-segment-background-hover: transparent;
1154
+ --stepper-value-segment-background-active: var(--stepper-mobile-segment-background-active);
1155
+ --stepper-value-disabled-color: var(--mobile-label-tertiary);
1156
+ --stepper-value-font-size: 15px;
1157
+ --stepper-value-line-height: 20px;
1140
1158
  --color-picker-width: 100%;
1141
1159
  --color-picker-modes-gap: 15px;
1142
1160
  --color-picker-body-radius: 18px;
@@ -936,6 +936,20 @@
936
936
  alpha-25. */
937
937
  --stepper-mobile-segment-background-disabled: var(--stepper-mobile-segment-background);
938
938
  --stepper-mobile-separator-color: var(--alpha-25);
939
+ /* With showValue: the value between round segments on one fill. On a desktop the control size, square segments
940
+ and the stepper's fill; a phone (touch.css) sets the 96 x 36 cart capsule. */
941
+ --stepper-value-height: var(--control-size-md);
942
+ --stepper-value-radius: var(--stepper-radius);
943
+ --stepper-value-icon-size: var(--control-icon-size-md);
944
+ --stepper-value-background: var(--stepper-background);
945
+ --stepper-value-segment-background-hover: var(--alpha-05);
946
+ --stepper-value-segment-background-active: var(--alpha-10);
947
+ --stepper-value-min-width: 24px;
948
+ --stepper-value-color: var(--color-text);
949
+ --stepper-value-disabled-color: var(--color-text-disabled);
950
+ --stepper-value-font-size: var(--font-text-sm-size);
951
+ --stepper-value-line-height: var(--font-text-sm-line-height);
952
+ --stepper-value-font-weight: var(--font-weight-medium);
939
953
 
940
954
  /* =============================================
941
955
  Tab bar (phone)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",