@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.
- package/CHANGELOG.md +14 -0
- package/README.md +2 -2
- package/dist/sri.json +4 -4
- package/dist/zazz.css +1 -1
- package/editor/zazz.language-data.json +1 -1
- package/package.json +1 -1
- package/src/primitives/button-group/button-group.css +8 -6
- package/src/primitives/card/card.css +2 -2
- package/src/primitives/toggle-group/toggle-group.css +8 -6
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
60
|
-
|
|
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
|
-
/*
|
|
88
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
61
|
-
|
|
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
|
-
/*
|
|
87
|
-
|
|
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
|
-
|
|
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
|
}
|