@eqtylab/equality 1.0.2 → 1.1.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/dist/button.module.module.css.module.css +41 -0
- package/dist/filter-dropdown.module.module.css.module.css +7 -2
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/sheet.module.module.css.module.css +16 -19
- package/package.json +1 -1
|
@@ -153,6 +153,47 @@
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
.button--navigation {
|
|
157
|
+
color: var(--color-text-link);
|
|
158
|
+
&:not(*:disabled) {
|
|
159
|
+
&:hover {
|
|
160
|
+
@media (hover: hover) {
|
|
161
|
+
background-color: var(--color-lilac-400);
|
|
162
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
163
|
+
background-color: color-mix(in oklab, var(--color-lilac-400) 25%, transparent);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
&:not(*:disabled) {
|
|
169
|
+
&:hover {
|
|
170
|
+
@media (hover: hover) {
|
|
171
|
+
color: var(--color-lilac-800);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
&:not(*:disabled) {
|
|
176
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
177
|
+
&:hover {
|
|
178
|
+
@media (hover: hover) {
|
|
179
|
+
background-color: var(--color-lilac-500);
|
|
180
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
181
|
+
background-color: color-mix(in oklab, var(--color-lilac-500) 25%, transparent);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
&:not(*:disabled) {
|
|
188
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
189
|
+
&:hover {
|
|
190
|
+
@media (hover: hover) {
|
|
191
|
+
color: var(--color-lilac-200);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
156
197
|
.size--sm {
|
|
157
198
|
font-size: 0.75rem;
|
|
158
199
|
line-height: var(--tw-leading, calc(1 / 0.75));
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.selector-button {
|
|
3
|
-
min-width: calc(0.25rem *
|
|
3
|
+
min-width: calc(0.25rem * 128);
|
|
4
|
+
display: flex;
|
|
4
5
|
justify-content: space-between;
|
|
5
6
|
}
|
|
6
|
-
.selector-button-
|
|
7
|
+
.selector-button-content {
|
|
7
8
|
display: flex;
|
|
9
|
+
width: 100%;
|
|
8
10
|
align-items: center;
|
|
9
11
|
gap: calc(0.25rem * 1);
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
text-overflow: ellipsis;
|
|
14
|
+
white-space: nowrap;
|
|
10
15
|
}
|
|
11
16
|
.chevron-icon {
|
|
12
17
|
color: var(--color-text-secondary);
|
package/dist/index.cjs
CHANGED
|
@@ -229,7 +229,8 @@ var buttonVariants = classVarianceAuthority.cva(styles2__default.default["button
|
|
|
229
229
|
danger: styles2__default.default["button--danger"],
|
|
230
230
|
secondary: styles2__default.default["button--secondary"],
|
|
231
231
|
tertiary: styles2__default.default["button--tertiary"],
|
|
232
|
-
link: styles2__default.default["button--link"]
|
|
232
|
+
link: styles2__default.default["button--link"],
|
|
233
|
+
navigation: styles2__default.default["button--navigation"]
|
|
233
234
|
},
|
|
234
235
|
size: {
|
|
235
236
|
sm: styles2__default.default["size--sm"],
|
|
@@ -1842,7 +1843,7 @@ var FilterDropdown = ({
|
|
|
1842
1843
|
).sort((a, b) => a.label.localeCompare(b.label));
|
|
1843
1844
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
1844
1845
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(styles23__default.default["selector-button"], buttonClassName), children: [
|
|
1845
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles23__default.default["selector-button-
|
|
1846
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles23__default.default["selector-button-content"], children: [
|
|
1846
1847
|
label,
|
|
1847
1848
|
hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", children: selectedFilters.length })
|
|
1848
1849
|
] }),
|