@eqtylab/equality 5.3.3 → 5.3.4
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 +8 -0
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/theme-decisions-scoped.css +11 -11
- package/dist/theme-decisions.css +12 -11
- package/dist/theme.module.module.css.module.css +11 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Notable changes to Equality are recorded here, following [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
4
|
|
|
5
|
+
## 5.3.4 - 2026-11-06
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- `Nav` rows and rail items keep their height, padding and text size in a site built against the
|
|
10
|
+
published package, where they shrank to bare text. Only production builds of sites using
|
|
11
|
+
`@eqtylab/equality/theme-config.css` were affected; dev servers looked right.
|
|
12
|
+
|
|
5
13
|
## 5.3.3 - 2026-11-05
|
|
6
14
|
|
|
7
15
|
### Changed
|
package/dist/index.d.cts
CHANGED
|
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
|
|
|
132
132
|
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
133
133
|
*/
|
|
134
134
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
135
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
135
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
136
136
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
137
137
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
138
138
|
prefix?: React$1.ReactNode;
|
|
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
|
|
|
151
151
|
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
152
152
|
*/
|
|
153
153
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
154
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
154
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
155
155
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
156
156
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
157
157
|
prefix?: React$1.ReactNode;
|
|
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
452
452
|
}) => react_jsx_runtime.JSX.Element;
|
|
453
453
|
|
|
454
454
|
declare const buttonVariants: (props?: ({
|
|
455
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
455
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
456
456
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
457
457
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
458
458
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
package/dist/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<Ale
|
|
|
132
132
|
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
133
133
|
*/
|
|
134
134
|
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
135
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
135
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
136
136
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
137
137
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
138
138
|
prefix?: React$1.ReactNode;
|
|
@@ -151,7 +151,7 @@ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<Ale
|
|
|
151
151
|
* [Alert Dialog documentation](https://equality.eqtylab.io/components/alert-dialog)
|
|
152
152
|
*/
|
|
153
153
|
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
|
|
154
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
154
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
155
155
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
156
156
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
157
157
|
prefix?: React$1.ReactNode;
|
|
@@ -452,7 +452,7 @@ declare const BgGradient: ({ theme, placement, }: {
|
|
|
452
452
|
}) => react_jsx_runtime.JSX.Element;
|
|
453
453
|
|
|
454
454
|
declare const buttonVariants: (props?: ({
|
|
455
|
-
variant?: "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "
|
|
455
|
+
variant?: "link" | "primary" | "danger" | "success" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
|
|
456
456
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
457
457
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
458
458
|
type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
|
|
@@ -8,18 +8,18 @@
|
|
|
8
8
|
|
|
9
9
|
.root {
|
|
10
10
|
/* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
|
|
11
|
-
--eq-list-item-height:
|
|
12
|
-
--eq-list-item-padding-x:
|
|
13
|
-
--eq-list-item-gap:
|
|
14
|
-
--eq-list-item-icon-size:
|
|
15
|
-
--eq-list-item-font-size:
|
|
11
|
+
--eq-list-item-height: --spacing(9); /* 36 */
|
|
12
|
+
--eq-list-item-padding-x: --spacing(2); /* 8 */
|
|
13
|
+
--eq-list-item-gap: --spacing(2); /* 8, icon to text */
|
|
14
|
+
--eq-list-item-icon-size: --spacing(4); /* 16 */
|
|
15
|
+
--eq-list-item-font-size: --theme(--text-sm); /* 14 */
|
|
16
16
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
17
17
|
/* list: the rows together */
|
|
18
|
-
--eq-list-gap:
|
|
19
|
-
--eq-list-group-gap:
|
|
20
|
-
--eq-list-label-gap:
|
|
21
|
-
--eq-list-label-font-size:
|
|
22
|
-
--eq-list-indent:
|
|
18
|
+
--eq-list-gap: --spacing(0.5); /* 2, between items */
|
|
19
|
+
--eq-list-group-gap: --spacing(3); /* 12, above a group label */
|
|
20
|
+
--eq-list-label-gap: --spacing(1); /* 4, label to its first item */
|
|
21
|
+
--eq-list-label-font-size: --theme(--text-xs); /* 12 */
|
|
22
|
+
--eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
|
|
23
23
|
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
24
24
|
JavaScript, folder groups in CSS */
|
|
25
25
|
--eq-nav-motion-duration: 300ms;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
var(--color-text-secondary)
|
|
34
34
|
);
|
|
35
35
|
/* control: a stand-alone element */
|
|
36
|
-
--eq-control-height:
|
|
36
|
+
--eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
|
|
37
37
|
/* touch: the minimum tap target */
|
|
38
38
|
--eq-touch-target: 0px;
|
|
39
39
|
|
package/dist/theme-decisions.css
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
/* Never declare @theme { --spacing } here: it rewrites every utility to var(--spacing, …) and
|
|
2
2
|
changes every component's compiled CSS. */
|
|
3
|
+
/* Never read var(--spacing) or var(--text-*) here: the theme is inline, so consumer builds leave them undefined. */
|
|
3
4
|
|
|
4
5
|
/* DECISIONS: Equality's names, --eq-{thing}-{property}. Parts read only these: h-(--eq-list-item-height).
|
|
5
6
|
theme-decisions-scoped.css is generated from this file: run `pnpm build:decisions` after
|
|
6
7
|
changing it, or tests/theme-css.test.ts fails. */
|
|
7
8
|
html {
|
|
8
9
|
/* list-item: one selectable row (NavListItem; later DropdownMenuItem, SelectItem, CommandItem) */
|
|
9
|
-
--eq-list-item-height:
|
|
10
|
-
--eq-list-item-padding-x:
|
|
11
|
-
--eq-list-item-gap:
|
|
12
|
-
--eq-list-item-icon-size:
|
|
13
|
-
--eq-list-item-font-size:
|
|
10
|
+
--eq-list-item-height: --spacing(9); /* 36 */
|
|
11
|
+
--eq-list-item-padding-x: --spacing(2); /* 8 */
|
|
12
|
+
--eq-list-item-gap: --spacing(2); /* 8, icon to text */
|
|
13
|
+
--eq-list-item-icon-size: --spacing(4); /* 16 */
|
|
14
|
+
--eq-list-item-font-size: --theme(--text-sm); /* 14 */
|
|
14
15
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
15
16
|
/* list: the rows together */
|
|
16
|
-
--eq-list-gap:
|
|
17
|
-
--eq-list-group-gap:
|
|
18
|
-
--eq-list-label-gap:
|
|
19
|
-
--eq-list-label-font-size:
|
|
20
|
-
--eq-list-indent:
|
|
17
|
+
--eq-list-gap: --spacing(0.5); /* 2, between items */
|
|
18
|
+
--eq-list-group-gap: --spacing(3); /* 12, above a group label */
|
|
19
|
+
--eq-list-label-gap: --spacing(1); /* 4, label to its first item */
|
|
20
|
+
--eq-list-label-font-size: --theme(--text-xs); /* 12 */
|
|
21
|
+
--eq-list-indent: --spacing(3); /* 12, child indent when items have no icons */
|
|
21
22
|
/* nav-motion: a drill-in and a folder opening share one motion. NavDrill reads these in
|
|
22
23
|
JavaScript, folder groups in CSS */
|
|
23
24
|
--eq-nav-motion-duration: 300ms;
|
|
@@ -31,7 +32,7 @@ html {
|
|
|
31
32
|
var(--color-text-secondary)
|
|
32
33
|
);
|
|
33
34
|
/* control: a stand-alone element */
|
|
34
|
-
--eq-control-height:
|
|
35
|
+
--eq-control-height: --spacing(10); /* 40: rail item; later Button, Input */
|
|
35
36
|
/* touch: the minimum tap target */
|
|
36
37
|
--eq-touch-target: 0px;
|
|
37
38
|
|
|
@@ -7,8 +7,6 @@
|
|
|
7
7
|
--color-amber-100: color(display-p3 0.9767 0.9238 0.8764);
|
|
8
8
|
--color-blue-500: color(display-p3 0.2366 0.3261 0.7513);
|
|
9
9
|
--spacing: 0.25rem;
|
|
10
|
-
--text-xs: 0.75rem;
|
|
11
|
-
--text-sm: 0.875rem;
|
|
12
10
|
--radius-md: 0.375rem;
|
|
13
11
|
--color-mixed-light: var(--mix-color);
|
|
14
12
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -939,17 +937,17 @@
|
|
|
939
937
|
--color-text-warning: color(display-p3 0.863 0.6958 0.4108);
|
|
940
938
|
}
|
|
941
939
|
.root {
|
|
942
|
-
--eq-list-item-height: calc(
|
|
943
|
-
--eq-list-item-padding-x: calc(
|
|
944
|
-
--eq-list-item-gap: calc(
|
|
945
|
-
--eq-list-item-icon-size: calc(
|
|
946
|
-
--eq-list-item-font-size:
|
|
940
|
+
--eq-list-item-height: calc(0.25rem * 9);
|
|
941
|
+
--eq-list-item-padding-x: calc(0.25rem * 2);
|
|
942
|
+
--eq-list-item-gap: calc(0.25rem * 2);
|
|
943
|
+
--eq-list-item-icon-size: calc(0.25rem * 4);
|
|
944
|
+
--eq-list-item-font-size: 0.875rem;
|
|
947
945
|
--eq-list-item-muted-color: var(--color-text-tertiary);
|
|
948
|
-
--eq-list-gap: calc(
|
|
949
|
-
--eq-list-group-gap: calc(
|
|
950
|
-
--eq-list-label-gap: calc(
|
|
951
|
-
--eq-list-label-font-size:
|
|
952
|
-
--eq-list-indent: calc(
|
|
946
|
+
--eq-list-gap: calc(0.25rem * 0.5);
|
|
947
|
+
--eq-list-group-gap: calc(0.25rem * 3);
|
|
948
|
+
--eq-list-label-gap: calc(0.25rem * 1);
|
|
949
|
+
--eq-list-label-font-size: 0.75rem;
|
|
950
|
+
--eq-list-indent: calc(0.25rem * 3);
|
|
953
951
|
--eq-nav-motion-duration: 300ms;
|
|
954
952
|
--eq-nav-motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
955
953
|
--eq-nav-motion-nudge: 12px;
|
|
@@ -958,7 +956,7 @@
|
|
|
958
956
|
var(--color-text-primary),
|
|
959
957
|
var(--color-text-secondary)
|
|
960
958
|
);
|
|
961
|
-
--eq-control-height: calc(
|
|
959
|
+
--eq-control-height: calc(0.25rem * 10);
|
|
962
960
|
--eq-touch-target: 0px;
|
|
963
961
|
--color-list-item-current: color-mix(in srgb, color(display-p3 0 0 0) 10%, transparent);
|
|
964
962
|
@supports (color: color-mix(in lab, red, red)) {
|