@eqtylab/equality 4.10.0 → 4.10.2

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 CHANGED
@@ -2,6 +2,25 @@
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
+ ## 4.10.2 - 2026-10-06
6
+
7
+ ### Fixed
8
+
9
+ - `Toast` slides in and out past the same viewport edge, fading as it goes, instead of rising
10
+ from the bottom and leaving to the right. It eases in over 400ms rather than snapping in at
11
+ 150ms, and only fades when the user prefers reduced motion. A swiped-away toast fades where
12
+ it was released.
13
+
14
+ ## 4.10.1 - 2026-10-02
15
+
16
+ ### Fixed
17
+
18
+ - `DateRangePicker` days in a selected range use a lilac tint, the one `IconButton` and the
19
+ `navigation` button use on hover, instead of the primary badge colours. The badge purple is
20
+ a different hue from the lilac of the selected days beside them.
21
+ - The active step's marker in a `ProgressIndicator` uses a lilac tint instead of the primary
22
+ badge colours, so it matches the lilac track it sits on and stays as soft as the other markers.
23
+
5
24
  ## 4.10.0 - 2026-10-02
6
25
 
7
26
  ### Changed
@@ -125,16 +125,28 @@
125
125
  background-color: var(--calendar-day-hover-fill);
126
126
  }
127
127
  .calendar-grid .calendar-day-btn--in-range {
128
- --mix-color: var(--color-badge-background-primary);
129
- --calendar-day-hover-fill: var(--mix-color);
128
+ --mix-color: color-mix(in srgb, color(display-p3 0.6266 0.4562 0.8302) 25%, transparent);
129
+ @supports (color: color-mix(in lab, red, red)) {
130
+ --mix-color: color-mix(in oklch, var(--color-lilac-400) 25%, transparent);
131
+ }
132
+ --calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.6266 0.4562 0.8302) 40%, transparent);
130
133
  @supports (color: color-mix(in lab, red, red)) {
131
- --calendar-day-hover-fill: color-mix(
132
- in oklch,
133
- var(--mix-color),
134
- var(--color-badge-text-primary) 12%
135
- );
134
+ --calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-400) 40%, transparent);
135
+ }
136
+ color: var(--color-lilac-800, color(display-p3 0.1898 0.115 0.3008));
137
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
138
+ color: var(--color-lilac-200, color(display-p3 0.8396 0.7634 0.9416));
139
+ }
140
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
141
+ --mix-color: color-mix(in srgb, color(display-p3 0.5242 0.2903 0.7705) 25%, transparent);
142
+ @supports (color: color-mix(in lab, red, red)) {
143
+ --mix-color: color-mix(in oklch, var(--color-lilac-500) 25%, transparent);
144
+ }
145
+ --calendar-day-hover-fill: color-mix(in srgb, color(display-p3 0.5242 0.2903 0.7705) 40%, transparent);
146
+ @supports (color: color-mix(in lab, red, red)) {
147
+ --calendar-day-hover-fill: color-mix(in oklch, var(--color-lilac-500) 40%, transparent);
148
+ }
136
149
  }
137
- color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
138
150
  }
139
151
  .calendar-grid .calendar-day-btn--selected {
140
152
  --mix-color: var(--color-button-primary-fill);
package/dist/index.d.cts CHANGED
@@ -45,14 +45,14 @@ declare const AlertDialogFooter: {
45
45
  declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
46
46
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
47
47
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
48
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
48
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
49
49
  size?: "sm" | "md" | "lg" | null | undefined;
50
50
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
51
51
  prefix?: React$1.ReactNode;
52
52
  suffix?: React$1.ReactNode;
53
53
  } & React$1.RefAttributes<HTMLButtonElement>>;
54
54
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
55
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
55
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
56
56
  size?: "sm" | "md" | "lg" | null | undefined;
57
57
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
58
58
  prefix?: React$1.ReactNode;
@@ -225,7 +225,7 @@ declare const BgGradient: ({ theme, placement, }: {
225
225
  }) => react_jsx_runtime.JSX.Element;
226
226
 
227
227
  declare const buttonVariants: (props?: ({
228
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
228
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
229
229
  size?: "sm" | "md" | "lg" | null | undefined;
230
230
  } & class_variance_authority_types.ClassProp) | undefined) => string;
231
231
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
package/dist/index.d.ts CHANGED
@@ -45,14 +45,14 @@ declare const AlertDialogFooter: {
45
45
  declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
46
46
  declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
47
47
  declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
48
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
48
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
49
49
  size?: "sm" | "md" | "lg" | null | undefined;
50
50
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
51
51
  prefix?: React$1.ReactNode;
52
52
  suffix?: React$1.ReactNode;
53
53
  } & React$1.RefAttributes<HTMLButtonElement>>;
54
54
  declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref">, "prefix"> & VariantProps<(props?: ({
55
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
55
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
56
56
  size?: "sm" | "md" | "lg" | null | undefined;
57
57
  } & class_variance_authority_types.ClassProp) | undefined) => string> & {
58
58
  prefix?: React$1.ReactNode;
@@ -225,7 +225,7 @@ declare const BgGradient: ({ theme, placement, }: {
225
225
  }) => react_jsx_runtime.JSX.Element;
226
226
 
227
227
  declare const buttonVariants: (props?: ({
228
- variant?: "link" | "primary" | "danger" | "warning" | "secondary" | "tertiary" | "navigation" | null | undefined;
228
+ variant?: "primary" | "danger" | "warning" | "secondary" | "tertiary" | "link" | "navigation" | null | undefined;
229
229
  size?: "sm" | "md" | "lg" | null | undefined;
230
230
  } & class_variance_authority_types.ClassProp) | undefined) => string;
231
231
  type ButtonBaseProps = Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'prefix'>;
@@ -115,8 +115,14 @@
115
115
  color: var(--color-badge-text-danger, color(display-p3 0.2625 0.1106 0.09605)) !important;
116
116
  }
117
117
  .progress-indicator-step-marker--active {
118
- background-color: var(--color-badge-background-primary, color(display-p3 0.795 0.7755 0.9866)) !important;
119
- color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417)) !important;
118
+ background-color: var(--color-lilac-200, color(display-p3 0.8396 0.7634 0.9416)) !important;
119
+ color: var(--color-lilac-800, color(display-p3 0.1898 0.115 0.3008)) !important;
120
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
121
+ background-color: var(--color-lilac-700, color(display-p3 0.2927 0.172 0.4505)) !important;
122
+ }
123
+ &:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
124
+ color: var(--color-lilac-200, color(display-p3 0.8396 0.7634 0.9416)) !important;
125
+ }
120
126
  }
121
127
  .progress-indicator-step-text {
122
128
  display: flex;
@@ -50,34 +50,10 @@
50
50
  border-radius: var(--radius-md, 0.375rem);
51
51
  padding: calc(0.25rem * 4);
52
52
  padding-right: calc(0.25rem * 8);
53
- &[data-state="open"] {
54
- animation: enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
55
- }
56
- &[data-state="open"] {
57
- --tw-enter-translate-y: calc(1*-100%);
58
- }
59
- @media (width >= 40rem) {
60
- &[data-state="open"] {
61
- --tw-enter-translate-y: calc(1*100%);
62
- }
63
- }
64
- &[data-state="closed"] {
65
- animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
66
- }
67
- &[data-state="closed"] {
68
- --tw-exit-opacity: calc(80/100);
69
- --tw-exit-opacity: .8;
70
- }
71
- &[data-state="closed"] {
72
- --tw-exit-translate-x: calc(1*100%);
73
- }
74
53
  &[data-swipe="end"] {
75
54
  --tw-translate-x: var(--radix-toast-swipe-end-x);
76
55
  translate: var(--tw-translate-x) var(--tw-translate-y);
77
56
  }
78
- &[data-swipe="end"] {
79
- animation: exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none);
80
- }
81
57
  &[data-swipe="move"] {
82
58
  --tw-translate-x: var(--radix-toast-swipe-move-x);
83
59
  translate: var(--tw-translate-x) var(--tw-translate-y);
@@ -89,10 +65,41 @@
89
65
  --tw-translate-x: calc(0.25rem * 0);
90
66
  translate: var(--tw-translate-x) var(--tw-translate-y);
91
67
  }
68
+ --toast-offset: calc(-100% - 1rem);
69
+ @media (width >= 40rem) {
70
+ --toast-offset: calc(100% + 1rem);
71
+ }
72
+ @media (prefers-reduced-motion: reduce) {
73
+ --toast-offset: 0;
74
+ }
75
+ &[data-state='open'] {
76
+ animation: toast-in 400ms cubic-bezier(0.16, 1, 0.3, 1);
77
+ }
78
+ &[data-state='closed'] {
79
+ animation: toast-out 250ms cubic-bezier(0.4, 0, 1, 1) forwards;
80
+ }
81
+ &[data-swipe='end'] {
82
+ animation: toast-swipe-out 150ms ease-out forwards;
83
+ }
84
+ }
85
+ @keyframes toast-in {
86
+ from {
87
+ opacity: 0;
88
+ transform: translateY(var(--toast-offset));
89
+ }
90
+ }
91
+ @keyframes toast-out {
92
+ to {
93
+ opacity: 0;
94
+ transform: translateY(var(--toast-offset));
95
+ }
96
+ }
97
+ @keyframes toast-swipe-out {
98
+ to {
99
+ opacity: 0;
100
+ }
92
101
  }
93
102
  .toast--default {
94
- --mix-color: var(--color-brand-primary);
95
- --hover-darken: 50%;
96
103
  border-color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
97
104
  background-color: var(--color-badge-background-primary, color(display-p3 0.795 0.7755 0.9866));
98
105
  color: var(--color-badge-text-primary, color(display-p3 0.1608 0.1145 0.3417));
@@ -303,17 +310,3 @@
303
310
  syntax: "*";
304
311
  inherits: false;
305
312
  }
306
- @keyframes enter {
307
- from {
308
- opacity: var(--tw-enter-opacity,1);
309
- transform: translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0));
310
- filter: blur(var(--tw-enter-blur,0));
311
- }
312
- }
313
- @keyframes exit {
314
- to {
315
- opacity: var(--tw-exit-opacity,1);
316
- transform: translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0));
317
- filter: blur(var(--tw-exit-blur,0));
318
- }
319
- }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "git+https://github.com/eqtylab/equality.git",
8
8
  "directory": "packages/ui"
9
9
  },
10
- "version": "4.10.0",
10
+ "version": "4.10.2",
11
11
  "license": "Apache-2.0",
12
12
  "keywords": [
13
13
  "component library",