@zazz-ui/core 0.5.0 → 0.5.1

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.
@@ -1400,7 +1400,7 @@
1400
1400
  "file": "primitives/callout/callout.css"
1401
1401
  },
1402
1402
  "--ui-card-bg": {
1403
- "value": "var(--color-card)",
1403
+ "value": "transparent",
1404
1404
  "file": "primitives/card/card.css"
1405
1405
  },
1406
1406
  "--ui-card-border-color": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zazz-ui/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.",
5
5
  "keywords": [
6
6
  "cascade-layers",
@@ -33,7 +33,8 @@
33
33
  Joins adjacent controls (buttons, and any child it wraps) into a single
34
34
  segmented unit. Children keep their own --ui-button-rounded, so the outer corners
35
35
  follow the buttons' size preset automatically; only the *inner* corners are
36
- squared off and the doubled border is collapsed with a -1px overlap.
36
+ squared off and the doubled border is collapsed by dropping
37
+ each later control's leading border (no overlap).
37
38
  =========================================================================== */
38
39
 
39
40
  :where(ui-button-group, [data-ui~="button-group"]) {
@@ -56,8 +57,8 @@
56
57
  position: relative;
57
58
  }
58
59
 
59
- /* the focused/hovered/pressed control floats above its neighbours so its
60
- border and box-shadow ring paint over the overlapped edge */
60
+ /* the focused/hovered/pressed control floats above its neighbors so its
61
+ focus ring paints over its neighbors */
61
62
  :where(ui-button-group, [data-ui~="button-group"])
62
63
  > *:hover:not(:disabled, [aria-disabled="true"]),
63
64
  :where(ui-button-group, [data-ui~="button-group"]) > *:focus-visible,
@@ -84,8 +85,8 @@
84
85
 
85
86
  :where(ui-button-group, [data-ui~="button-group"]):not([data-button-group-orientation="vertical"])
86
87
  > :not(:first-child) {
87
- /* pull onto the previous control's border so the seam is one line, not two */
88
- margin-inline-start: -1px;
88
+ /* drop the leading border so neighbors share one seam, not two */
89
+ border-inline-start-width: 0;
89
90
  border-start-start-radius: 0;
90
91
  border-end-start-radius: 0;
91
92
  }
@@ -115,7 +116,8 @@
115
116
  [data-ui~="button-group"][data-button-group-orientation="vertical"]
116
117
  )
117
118
  > :not(:first-child) {
118
- margin-block-start: -1px;
119
+ /* drop the leading border so neighbors share one seam, not two */
120
+ border-block-start-width: 0;
119
121
  border-start-start-radius: 0;
120
122
  border-start-end-radius: 0;
121
123
  }
@@ -18,7 +18,8 @@
18
18
 
19
19
  @layer variables {
20
20
  :root {
21
- --ui-card-bg: var(--color-card);
21
+ /* a bare card has no surface; the outline and floating variants paint --color-card */
22
+ --ui-card-bg: transparent;
22
23
  --ui-card-text: var(--color-card-foreground);
23
24
  --ui-card-rounded: var(--radius-lg);
24
25
  --ui-card-shadow: none;
@@ -101,7 +102,6 @@
101
102
 
102
103
  :where([data-ui~="card"]:not([data-card-variant])) {
103
104
  --_card-rounded: 0;
104
- --_card-bg: transparent;
105
105
  }
106
106
 
107
107
  :where([data-ui~="card"][data-card-variant="outline"]) {
@@ -34,7 +34,8 @@
34
34
  (radios sharing a `name`) or a multi-select set (checkboxes). Children keep
35
35
  their own --ui-toggle-rounded, so the outer corners follow the toggles' size
36
36
  preset automatically; only the *inner* corners are squared off and the
37
- doubled border is collapsed with a -1px overlap.
37
+ doubled border is collapsed by dropping
38
+ each later control's leading border (no overlap).
38
39
  =========================================================================== */
39
40
 
40
41
  :where(ui-toggle-group, [data-ui~="toggle-group"]) {
@@ -57,8 +58,8 @@
57
58
  position: relative;
58
59
  }
59
60
 
60
- /* the focused/hovered/checked toggle floats above its neighbours so its
61
- border and box-shadow ring paint over the overlapped edge */
61
+ /* the focused/hovered/checked toggle floats above its neighbors so its
62
+ focus ring paints over its neighbors */
62
63
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:hover:not(:has(> input:disabled)),
63
64
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:focus-within,
64
65
  :where(ui-toggle-group, [data-ui~="toggle-group"]) > *:has(> input:checked) {
@@ -83,8 +84,8 @@
83
84
 
84
85
  :where(ui-toggle-group, [data-ui~="toggle-group"]):not([data-toggle-group-orientation="vertical"])
85
86
  > :not(:first-child) {
86
- /* pull onto the previous control's border so the seam is one line, not two */
87
- margin-inline-start: -1px;
87
+ /* drop the leading border so neighbors share one seam, not two */
88
+ border-inline-start-width: 0;
88
89
  border-start-start-radius: 0;
89
90
  border-end-start-radius: 0;
90
91
  }
@@ -114,7 +115,8 @@
114
115
  [data-ui~="toggle-group"][data-toggle-group-orientation="vertical"]
115
116
  )
116
117
  > :not(:first-child) {
117
- margin-block-start: -1px;
118
+ /* drop the leading border so neighbors share one seam, not two */
119
+ border-block-start-width: 0;
118
120
  border-start-start-radius: 0;
119
121
  border-start-end-radius: 0;
120
122
  }