@plexui/styles 0.1.19 → 0.1.21

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.
@@ -205,6 +205,11 @@
205
205
  grid-column: 1;
206
206
  grid-row: auto;
207
207
  justify-self: stretch;
208
+ }/* A control that fills the row, such as a list of tags: it starts after the label
209
+ and ends at the row's edge, on one line for all the rows of a group. */.Field:where([data-row][data-fill]:not([data-orientation="vertical"])) {
210
+ grid-template-columns: minmax(var(--field-row-label-width), auto) minmax(0, 1fr);
211
+ }.Field:where([data-row][data-fill]) .Control {
212
+ justify-self: stretch;
208
213
  }/* A framed field in a row: its width cannot follow what is typed, so it has one.
209
214
  A ghost has the row for its frame, a Select follows its value. */.Field:where([data-row]:not([data-orientation="vertical"])) .Control:has(
210
215
  [data-variant]:not([data-variant="ghost"]) > input,
@@ -30,9 +30,6 @@
30
30
  `--tag-input-tag-{height,gutter,font-size}` so the
31
31
  inner pills stay proportional to the container.
32
32
  ============================================= */
33
-
34
- /* Ghost: no frame, for a field that its container already frames, such as
35
- a row of a group. Last in the block: it undoes hover and focus above. */
36
33
  }
37
34
 
38
35
  .Container[data-disabled] {
@@ -124,13 +121,23 @@ box-shadow: 0 0 0 1px var(--gray-500) inset;
124
121
  --tag-input-tag-spacing: 8px;
125
122
  --tag-input-radius: var(--control-radius-xl);
126
123
  }
124
+
125
+ /* Ghost: no frame, for a field that its container already frames, such as
126
+ a row of a group. Last in the block: it undoes hover and focus above. */
127
127
  .Container[data-variant="ghost"],
128
128
  .Container[data-variant="ghost"]:not([data-disabled]),
129
129
  .Container[data-variant="ghost"]:not([data-disabled])[data-focused] {
130
+ --tag-input-tag-radius: var(--control-radius-sm);
131
+
130
132
  min-height: calc(var(--min-rows) * var(--tag-input-height));
131
133
  padding: 0;
132
134
  border-radius: 0;
133
135
  box-shadow: none;
136
+ }
137
+
138
+ /* Chips are solid, so they stand further from a label than a line of text. */
139
+ .Container[data-variant="ghost"]:not([data-empty]) {
140
+ margin-block: 2px;
134
141
  }.TagInput {
135
142
  display: flex;
136
143
  flex-wrap: wrap;
@@ -237,6 +237,7 @@
237
237
  --field-row-padding-inline: 16px;
238
238
  --field-row-gap: 24px;
239
239
  --field-row-control-width: 160px;
240
+ --field-row-label-width: 96px;
240
241
  --field-row-row-gap: 2px;
241
242
  --field-row-text-display: flex;
242
243
  --field-row-label-font-size: var(--font-text-sm-size);
@@ -697,9 +698,9 @@
697
698
  --modal-backdrop-background: rgb(0 0 0 / 50%);
698
699
  --page-bar-veil: rgb(0 0 0 / 60%);
699
700
  --page-bar-line: var(--color-border);
700
- --segmented-control-background: var(--gray-0);
701
- --segmented-control-thumb-background: var(--gray-300);
702
- --segmented-control-option-highlight-background-color: var(--gray-300);
701
+ --segmented-control-background: var(--alpha-08);
702
+ --segmented-control-thumb-background: var(--alpha-12);
703
+ --segmented-control-option-highlight-background-color: var(--alpha-08);
703
704
  --slider-track-color: var(--gray-400);
704
705
  --slider-range-color: var(--gray-600);
705
706
  --switch-track-color: var(--gray-400);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/styles",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Framework-agnostic CSS for Plex UI: design tokens, globals and component styles",
5
5
  "type": "module",
6
6
  "license": "MIT",