@eqtylab/equality 4.5.1 → 4.7.0
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/dist/generated/color-vars.css +10 -0
- package/dist/generated/dark-tokens.css +4 -0
- package/dist/generated/global-dark-tokens.css +4 -0
- package/dist/generated/global-light-tokens.css +6 -0
- package/dist/generated/light-tokens.css +6 -0
- package/dist/generated/tailwind-tokens.css +6 -0
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/segmented-controls.module.module.css.module.css +23 -3
- package/dist/theme.module.module.css.module.css +17 -0
- package/package.json +1 -1
|
@@ -113,9 +113,29 @@
|
|
|
113
113
|
.size--lg .segment:not(.segment--icon-only) {
|
|
114
114
|
padding-inline: calc(0.25rem * 4);
|
|
115
115
|
}
|
|
116
|
+
.variant--primary {
|
|
117
|
+
--segment-active-fill: var(--color-button-primary-fill);
|
|
118
|
+
--segment-active-text: var(--color-button-primary-text);
|
|
119
|
+
}
|
|
120
|
+
.variant--danger {
|
|
121
|
+
--segment-active-fill: var(--color-button-danger-fill);
|
|
122
|
+
--segment-active-text: var(--color-button-danger-text);
|
|
123
|
+
}
|
|
124
|
+
.variant--warning {
|
|
125
|
+
--segment-active-fill: var(--color-button-warning-fill);
|
|
126
|
+
--segment-active-text: var(--color-button-warning-text);
|
|
127
|
+
}
|
|
128
|
+
.variant--success {
|
|
129
|
+
--segment-active-fill: var(--color-button-success-fill);
|
|
130
|
+
--segment-active-text: var(--color-button-success-text);
|
|
131
|
+
}
|
|
132
|
+
.variant--neutral {
|
|
133
|
+
--segment-active-fill: var(--color-button-neutral-fill);
|
|
134
|
+
--segment-active-text: var(--color-button-neutral-text);
|
|
135
|
+
}
|
|
116
136
|
.segment--active,
|
|
117
137
|
.segment--active .segment-icon {
|
|
118
|
-
color: var(--
|
|
138
|
+
color: var(--segment-active-text);
|
|
119
139
|
}
|
|
120
140
|
.segment--inactive,
|
|
121
141
|
.segment--inactive .segment-icon {
|
|
@@ -150,12 +170,12 @@
|
|
|
150
170
|
left: 2px;
|
|
151
171
|
width: calc(var(--indicator-width) - 4px);
|
|
152
172
|
border-radius: 3px;
|
|
153
|
-
background-color: var(--
|
|
173
|
+
background-color: var(--segment-active-fill);
|
|
154
174
|
box-shadow: 0 1px 2px rgb(0 0 0 / 0.2),
|
|
155
175
|
inset 0 1px 0px rgb(255 255 255 / 0.25);
|
|
156
176
|
}
|
|
157
177
|
.active-segment-indicator--animated {
|
|
158
|
-
transition-property: transform,width;
|
|
178
|
+
transition-property: transform,width,background-color;
|
|
159
179
|
transition-timing-function: var(--tw-ease, cubic-bezier(0.4, 0, 0.2, 1));
|
|
160
180
|
transition-duration: var(--tw-duration, 150ms);
|
|
161
181
|
--tw-duration: var(--segment-transition-duration);
|
|
@@ -53,10 +53,17 @@
|
|
|
53
53
|
--color-border: color(display-p3 0.7432 0.7432 0.7432);
|
|
54
54
|
--color-brand-primary: color(display-p3 0.7319 0.6108 0.8873);
|
|
55
55
|
--color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
|
|
56
|
+
--color-button-danger-text: color(display-p3 1 1 1);
|
|
57
|
+
--color-button-neutral-fill: color(display-p3 0.3886 0.3886 0.3886);
|
|
58
|
+
--color-button-neutral-text: color(display-p3 1 1 1);
|
|
56
59
|
--color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
|
|
60
|
+
--color-button-primary-text: color(display-p3 1 1 1);
|
|
57
61
|
--color-button-secondary-fill: color(display-p3 0.0861 0.0861 0.0861);
|
|
62
|
+
--color-button-success-fill: color(display-p3 0.2946 0.5328 0.2433);
|
|
63
|
+
--color-button-success-text: color(display-p3 1 1 1);
|
|
58
64
|
--color-button-tertiary-fill: color(display-p3 1 1 1);
|
|
59
65
|
--color-button-warning-fill: color(display-p3 0.8263 0.6154 0.2247);
|
|
66
|
+
--color-button-warning-text: color(display-p3 1 1 1);
|
|
60
67
|
--color-focus-ring: color(display-p3 0.5242 0.2903 0.7705);
|
|
61
68
|
--color-lilac-100: color(display-p3 0.9492 0.917 0.9935);
|
|
62
69
|
--color-lilac-300: color(display-p3 0.7319 0.6108 0.8873);
|
|
@@ -565,12 +572,18 @@
|
|
|
565
572
|
--color-button-danger-border: color(display-p3 0.5698 0.1873 0.1674);
|
|
566
573
|
--color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
|
|
567
574
|
--color-button-danger-text: color(display-p3 1 1 1);
|
|
575
|
+
--color-button-neutral-border: color(display-p3 0.3886 0.3886 0.3886);
|
|
576
|
+
--color-button-neutral-fill: color(display-p3 0.3886 0.3886 0.3886);
|
|
577
|
+
--color-button-neutral-text: color(display-p3 1 1 1);
|
|
568
578
|
--color-button-primary-border: color(display-p3 0.5242 0.2903 0.7705);
|
|
569
579
|
--color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
|
|
570
580
|
--color-button-primary-text: color(display-p3 1 1 1);
|
|
571
581
|
--color-button-secondary-border: color(display-p3 0.0861 0.0861 0.0861);
|
|
572
582
|
--color-button-secondary-fill: color(display-p3 0.0861 0.0861 0.0861);
|
|
573
583
|
--color-button-secondary-text: color(display-p3 1 1 1);
|
|
584
|
+
--color-button-success-border: color(display-p3 0.2946 0.5328 0.2433);
|
|
585
|
+
--color-button-success-fill: color(display-p3 0.2946 0.5328 0.2433);
|
|
586
|
+
--color-button-success-text: color(display-p3 1 1 1);
|
|
574
587
|
--color-button-tertiary-border: color(display-p3 0.7432 0.7432 0.7432);
|
|
575
588
|
--color-button-tertiary-fill: color(display-p3 1 1 1);
|
|
576
589
|
--color-button-tertiary-text: color(display-p3 0 0 0);
|
|
@@ -817,11 +830,15 @@
|
|
|
817
830
|
--color-border: color(display-p3 0.1792 0.1792 0.1792);
|
|
818
831
|
--color-button-danger-border: color(display-p3 0.7365 0.2216 0.2026);
|
|
819
832
|
--color-button-danger-fill: color(display-p3 0.7365 0.2216 0.2026);
|
|
833
|
+
--color-button-neutral-border: color(display-p3 0.3886 0.3886 0.3886);
|
|
834
|
+
--color-button-neutral-fill: color(display-p3 0.3886 0.3886 0.3886);
|
|
820
835
|
--color-button-primary-border: color(display-p3 0.5242 0.2903 0.7705);
|
|
821
836
|
--color-button-primary-fill: color(display-p3 0.5242 0.2903 0.7705);
|
|
822
837
|
--color-button-secondary-border: color(display-p3 1 1 1);
|
|
823
838
|
--color-button-secondary-fill: color(display-p3 1 1 1);
|
|
824
839
|
--color-button-secondary-text: color(display-p3 0 0 0);
|
|
840
|
+
--color-button-success-border: color(display-p3 0.2946 0.5328 0.2433);
|
|
841
|
+
--color-button-success-fill: color(display-p3 0.2946 0.5328 0.2433);
|
|
825
842
|
--color-button-tertiary-border: color(display-p3 0.2806 0.2806 0.2806);
|
|
826
843
|
--color-button-tertiary-fill: color(display-p3 0 0 0);
|
|
827
844
|
--color-button-tertiary-text: color(display-p3 1 1 1);
|