@eqtylab/equality 1.0.1 → 1.1.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/dist/button.module.module.css.module.css +41 -0
- package/dist/index.cjs +22 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +22 -5
- package/dist/index.js.map +1 -1
- package/dist/toast-components.module.module.css.module.css +12 -16
- package/dist/toast.module.module.css.module.css +4 -0
- 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));
|
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"],
|
|
@@ -2549,7 +2550,7 @@ var SearchBar = ({
|
|
|
2549
2550
|
const handleClear = () => {
|
|
2550
2551
|
setSearchQuery("");
|
|
2551
2552
|
};
|
|
2552
|
-
return /* @__PURE__ */ jsxRuntime.jsx("
|
|
2553
|
+
return /* @__PURE__ */ jsxRuntime.jsx("search", { className: cn(styles42__default.default["search-bar"], className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2553
2554
|
Input,
|
|
2554
2555
|
{
|
|
2555
2556
|
placeholder,
|
|
@@ -3069,10 +3070,26 @@ function useToast() {
|
|
|
3069
3070
|
};
|
|
3070
3071
|
}
|
|
3071
3072
|
var Toast = ({ toast: toast2 }) => {
|
|
3072
|
-
const { id, title, description, action, ...props } = toast2;
|
|
3073
|
-
|
|
3073
|
+
const { id, title, description, action, icon, variant, ...props } = toast2;
|
|
3074
|
+
const getDefaultIcon = () => {
|
|
3075
|
+
switch (variant) {
|
|
3076
|
+
case "success":
|
|
3077
|
+
return "Check";
|
|
3078
|
+
case "warning":
|
|
3079
|
+
return "AlertOctagon";
|
|
3080
|
+
case "danger":
|
|
3081
|
+
return "AlertTriangle";
|
|
3082
|
+
default:
|
|
3083
|
+
return "Info";
|
|
3084
|
+
}
|
|
3085
|
+
};
|
|
3086
|
+
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
3087
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
3074
3088
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles56__default.default["toast-copy"], children: [
|
|
3075
|
-
title && /* @__PURE__ */ jsxRuntime.
|
|
3089
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles56__default.default["toast-title-container"], children: [
|
|
3090
|
+
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
3091
|
+
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
3092
|
+
] }),
|
|
3076
3093
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
3077
3094
|
] }),
|
|
3078
3095
|
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles56__default.default["toast-action"], children: action }),
|