@eqtylab/equality 1.1.1 → 1.1.3
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/avatar.module.module.css.module.css +14 -3
- package/dist/index.cjs +14 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,16 +16,27 @@
|
|
|
16
16
|
border-color: var(--color-border);
|
|
17
17
|
--tw-gradient-position: to bottom right in oklab;
|
|
18
18
|
background-image: linear-gradient(var(--tw-gradient-stops));
|
|
19
|
-
--tw-gradient-from: var(--color-greyscale-
|
|
20
|
-
--tw-gradient-to: var(--color-greyscale-
|
|
19
|
+
--tw-gradient-from: var(--color-greyscale-500);
|
|
20
|
+
--tw-gradient-to: var(--color-greyscale-700);
|
|
21
21
|
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
22
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
23
|
+
--tw-gradient-from: var(--color-greyscale-800);
|
|
24
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
25
|
+
}
|
|
26
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
27
|
+
--tw-gradient-to: var(--color-greyscale-900);
|
|
28
|
+
--tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
|
|
29
|
+
}
|
|
22
30
|
width: 100%;
|
|
23
31
|
height: 100%;
|
|
24
32
|
--tw-font-weight: 600;
|
|
25
33
|
font-weight: 600;
|
|
26
|
-
color: var(--color-
|
|
34
|
+
color: var(--color-greyscale-200);
|
|
27
35
|
-webkit-user-select: none;
|
|
28
36
|
user-select: none;
|
|
37
|
+
&:where(html[data-equality-theme=dark], html[data-equality-theme=dark] *, [data-equality-theme=dark] .root, [data-equality-theme=dark] .root *) {
|
|
38
|
+
color: var(--color-text-secondary);
|
|
39
|
+
}
|
|
29
40
|
display: flex;
|
|
30
41
|
align-items: center;
|
|
31
42
|
justify-content: center;
|
package/dist/index.cjs
CHANGED
|
@@ -329,24 +329,20 @@ var AlertDialogDescription = React15__namespace.forwardRef(({ className, ...prop
|
|
|
329
329
|
}
|
|
330
330
|
));
|
|
331
331
|
AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
|
|
332
|
-
var AlertDialogAction = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
332
|
+
var AlertDialogAction = React15__namespace.forwardRef(({ className, variant = "primary", size = "sm", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
333
333
|
AlertDialogPrimitive__namespace.Action,
|
|
334
334
|
{
|
|
335
335
|
ref,
|
|
336
|
-
className: cn(buttonVariants({ variant
|
|
336
|
+
className: cn(buttonVariants({ variant, size }), className),
|
|
337
337
|
...props
|
|
338
338
|
}
|
|
339
339
|
));
|
|
340
340
|
AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
|
|
341
|
-
var AlertDialogCancel = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
341
|
+
var AlertDialogCancel = React15__namespace.forwardRef(({ className, variant = "tertiary", size = "sm", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
342
342
|
AlertDialogPrimitive__namespace.Cancel,
|
|
343
343
|
{
|
|
344
344
|
ref,
|
|
345
|
-
className: cn(
|
|
346
|
-
buttonVariants({ variant: "tertiary", size: "sm" }),
|
|
347
|
-
styles3__default.default["alert-dialog-cancel"],
|
|
348
|
-
className
|
|
349
|
-
),
|
|
345
|
+
className: cn(buttonVariants({ variant, size }), styles3__default.default["alert-dialog-cancel"], className),
|
|
350
346
|
...props
|
|
351
347
|
}
|
|
352
348
|
));
|
|
@@ -916,7 +912,10 @@ var Checkbox = React15__namespace.forwardRef(
|
|
|
916
912
|
ref,
|
|
917
913
|
className: cn(styles12__default.default.checkbox, styles12__default.default[size], className),
|
|
918
914
|
...props,
|
|
919
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
915
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(CheckboxPrimitive__namespace.Indicator, { className: styles12__default.default.indicator, children: [
|
|
916
|
+
Icon3 ? /* @__PURE__ */ jsxRuntime.jsx(Icon3, { className: styles12__default.default.check }) : /* @__PURE__ */ jsxRuntime.jsx(CheckIcon, { className: styles12__default.default.check }),
|
|
917
|
+
" "
|
|
918
|
+
] })
|
|
920
919
|
}
|
|
921
920
|
)
|
|
922
921
|
);
|
|
@@ -1685,7 +1684,7 @@ var DrawerHeaderActions = React15__namespace.forwardRef(({ className, rowSpan, s
|
|
|
1685
1684
|
{
|
|
1686
1685
|
ref,
|
|
1687
1686
|
className: cn(styles20__default.default["drawer-header-actions"], className),
|
|
1688
|
-
style: { "--row-span": rowSpan },
|
|
1687
|
+
style: { ...style, "--row-span": rowSpan },
|
|
1689
1688
|
...props
|
|
1690
1689
|
}
|
|
1691
1690
|
);
|
|
@@ -2765,7 +2764,7 @@ function SortButton({
|
|
|
2765
2764
|
] });
|
|
2766
2765
|
}
|
|
2767
2766
|
var tableElevationVariants = generateElevationVariants(styles50__default.default, "table", ELEVATION.RAISED);
|
|
2768
|
-
var TableContainer = React15__namespace.forwardRef(({ className, elevation = ELEVATION.RAISED, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: (styles50__default.default["table"], tableElevationVariants({ elevation })), children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles50__default.default["table-inner"], ...props }) }));
|
|
2767
|
+
var TableContainer = React15__namespace.forwardRef(({ className, elevation = ELEVATION.RAISED, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles50__default.default["table"], tableElevationVariants({ elevation }), className), children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles50__default.default["table-inner"], ...props }) }));
|
|
2769
2768
|
TableContainer.displayName = "Table";
|
|
2770
2769
|
var TableHeader = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn(styles50__default.default["table-header"], className), ...props }));
|
|
2771
2770
|
TableHeader.displayName = "TableHeader";
|
|
@@ -2779,9 +2778,9 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
2779
2778
|
TableRow.displayName = "TableRow";
|
|
2780
2779
|
var TableHead = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles50__default.default["table-head"], className), ...props }));
|
|
2781
2780
|
TableHead.displayName = "TableHead";
|
|
2782
|
-
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: styles50__default.default["table-cell"], ...props }));
|
|
2781
|
+
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles50__default.default["table-cell"], className), ...props }));
|
|
2783
2782
|
TableCell.displayName = "TableCell";
|
|
2784
|
-
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: styles50__default.default["table-caption"], ...props }));
|
|
2783
|
+
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles50__default.default["table-caption"], className), ...props }));
|
|
2785
2784
|
TableCaption.displayName = "TableCaption";
|
|
2786
2785
|
var tableElevationVariants2 = generateElevationVariants(styles51__default.default, "table", ELEVATION.BASE);
|
|
2787
2786
|
var Table = ({
|
|
@@ -3070,7 +3069,7 @@ function useToast() {
|
|
|
3070
3069
|
};
|
|
3071
3070
|
}
|
|
3072
3071
|
var Toast = ({ toast: toast2 }) => {
|
|
3073
|
-
const {
|
|
3072
|
+
const { title, description, action, icon, variant, ...props } = toast2;
|
|
3074
3073
|
const getDefaultIcon = () => {
|
|
3075
3074
|
switch (variant) {
|
|
3076
3075
|
case "success":
|
|
@@ -3230,6 +3229,7 @@ var MessageCircleCheckIcon = ({ className }) => {
|
|
|
3230
3229
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3231
3230
|
"svg",
|
|
3232
3231
|
{
|
|
3232
|
+
className,
|
|
3233
3233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3234
3234
|
width: "12",
|
|
3235
3235
|
height: "12",
|
|
@@ -3433,8 +3433,6 @@ exports.TooltipTrigger = TooltipTrigger;
|
|
|
3433
3433
|
exports.TruncatedDescription = TruncatedDescription;
|
|
3434
3434
|
exports.badgeVariants = badgeVariants;
|
|
3435
3435
|
exports.buttonVariants = buttonVariants;
|
|
3436
|
-
exports.displayFieldVariants = displayFieldVariants;
|
|
3437
|
-
exports.iconButtonVariants = iconButtonVariants;
|
|
3438
3436
|
exports.reducer = reducer;
|
|
3439
3437
|
exports.toast = toast;
|
|
3440
3438
|
exports.useFormField = useFormField;
|