@trackunit/react-components 1.4.142-alpha-0a9c5dd27bf.0 → 1.4.143
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/index.cjs.js
CHANGED
|
@@ -555,6 +555,19 @@ const cvaButton = cssClassVarianceUtilities.cvaMerge([
|
|
|
555
555
|
"disabled:bg-transparent",
|
|
556
556
|
"disabled:text-slate-400",
|
|
557
557
|
],
|
|
558
|
+
filled: [
|
|
559
|
+
"group",
|
|
560
|
+
"bg-blue-100",
|
|
561
|
+
"text-blue-600",
|
|
562
|
+
"hover:bg-blue-200",
|
|
563
|
+
"hover:text-blue-700",
|
|
564
|
+
"active:bg-blue-200",
|
|
565
|
+
"active:text-blue-700",
|
|
566
|
+
"focus:bg-blue-100",
|
|
567
|
+
"focus:text-blue-600",
|
|
568
|
+
"disabled:bg-transparent",
|
|
569
|
+
"disabled:text-slate-300",
|
|
570
|
+
],
|
|
558
571
|
},
|
|
559
572
|
size: {
|
|
560
573
|
/**
|
|
@@ -662,6 +675,7 @@ const cvaButtonSpinner = cssClassVarianceUtilities.cvaMerge([], {
|
|
|
662
675
|
"secondary-danger": ["h-3.5", "w-3.5"],
|
|
663
676
|
ghost: [],
|
|
664
677
|
"ghost-neutral": [],
|
|
678
|
+
filled: [],
|
|
665
679
|
},
|
|
666
680
|
},
|
|
667
681
|
defaultVariants: {
|
|
@@ -693,6 +707,7 @@ const cvaButtonPrefixSuffix = cssClassVarianceUtilities.cvaMerge(["flex", "items
|
|
|
693
707
|
"group-hover:text-secondary-500",
|
|
694
708
|
"group-active:text-secondary-600",
|
|
695
709
|
],
|
|
710
|
+
filled: [],
|
|
696
711
|
},
|
|
697
712
|
},
|
|
698
713
|
defaultVariants: {
|
package/index.esm.js
CHANGED
|
@@ -553,6 +553,19 @@ const cvaButton = cvaMerge([
|
|
|
553
553
|
"disabled:bg-transparent",
|
|
554
554
|
"disabled:text-slate-400",
|
|
555
555
|
],
|
|
556
|
+
filled: [
|
|
557
|
+
"group",
|
|
558
|
+
"bg-blue-100",
|
|
559
|
+
"text-blue-600",
|
|
560
|
+
"hover:bg-blue-200",
|
|
561
|
+
"hover:text-blue-700",
|
|
562
|
+
"active:bg-blue-200",
|
|
563
|
+
"active:text-blue-700",
|
|
564
|
+
"focus:bg-blue-100",
|
|
565
|
+
"focus:text-blue-600",
|
|
566
|
+
"disabled:bg-transparent",
|
|
567
|
+
"disabled:text-slate-300",
|
|
568
|
+
],
|
|
556
569
|
},
|
|
557
570
|
size: {
|
|
558
571
|
/**
|
|
@@ -660,6 +673,7 @@ const cvaButtonSpinner = cvaMerge([], {
|
|
|
660
673
|
"secondary-danger": ["h-3.5", "w-3.5"],
|
|
661
674
|
ghost: [],
|
|
662
675
|
"ghost-neutral": [],
|
|
676
|
+
filled: [],
|
|
663
677
|
},
|
|
664
678
|
},
|
|
665
679
|
defaultVariants: {
|
|
@@ -691,6 +705,7 @@ const cvaButtonPrefixSuffix = cvaMerge(["flex", "items-center"], {
|
|
|
691
705
|
"group-hover:text-secondary-500",
|
|
692
706
|
"group-active:text-secondary-600",
|
|
693
707
|
],
|
|
708
|
+
filled: [],
|
|
694
709
|
},
|
|
695
710
|
},
|
|
696
711
|
defaultVariants: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.143",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"@tanstack/react-router": "1.114.29",
|
|
19
19
|
"string-ts": "^2.0.0",
|
|
20
20
|
"tailwind-merge": "^2.0.0",
|
|
21
|
-
"@trackunit/ui-design-tokens": "1.3.118
|
|
22
|
-
"@trackunit/css-class-variance-utilities": "1.3.119
|
|
23
|
-
"@trackunit/shared-utils": "1.5.119
|
|
24
|
-
"@trackunit/ui-icons": "1.3.120
|
|
25
|
-
"@trackunit/react-table-pagination": "1.3.119
|
|
26
|
-
"@trackunit/react-test-setup": "1.0.9
|
|
21
|
+
"@trackunit/ui-design-tokens": "1.3.118",
|
|
22
|
+
"@trackunit/css-class-variance-utilities": "1.3.119",
|
|
23
|
+
"@trackunit/shared-utils": "1.5.119",
|
|
24
|
+
"@trackunit/ui-icons": "1.3.120",
|
|
25
|
+
"@trackunit/react-table-pagination": "1.3.119",
|
|
26
|
+
"@trackunit/react-test-setup": "1.0.9"
|
|
27
27
|
},
|
|
28
28
|
"module": "./index.esm.js",
|
|
29
29
|
"main": "./index.cjs.js",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const cvaButton: (props?: ({
|
|
2
|
-
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
|
|
2
|
+
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
|
|
3
3
|
size?: "extraSmall" | "small" | "medium" | "large" | null | undefined;
|
|
4
4
|
rounded?: boolean | null | undefined;
|
|
5
5
|
fullWidth?: boolean | null | undefined;
|
|
@@ -9,11 +9,11 @@ export declare const cvaButton: (props?: ({
|
|
|
9
9
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
10
10
|
export declare const cvaButtonSpinnerContainer: (props?: import("class-variance-authority/dist/types").ClassProp | undefined) => string;
|
|
11
11
|
export declare const cvaButtonSpinner: (props?: ({
|
|
12
|
-
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
|
|
12
|
+
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
14
14
|
export declare const cvaButtonPrefixSuffix: (props?: ({
|
|
15
15
|
size?: "extraSmall" | "small" | "medium" | "large" | null | undefined;
|
|
16
|
-
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | null | undefined;
|
|
16
|
+
variant?: "primary" | "primary-danger" | "secondary" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled" | null | undefined;
|
|
17
17
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
18
18
|
export declare const cvaIconButton: (props?: ({
|
|
19
19
|
size?: "extraSmall" | "small" | "medium" | "large" | null | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeneralColors } from "@trackunit/ui-design-tokens";
|
|
2
2
|
import { CommonProps, Size } from "../../../common";
|
|
3
|
-
export type ButtonVariant = Extract<GeneralColors, "primary" | "secondary"> | "primary-danger" | "secondary-danger" | "ghost" | "ghost-neutral";
|
|
3
|
+
export type ButtonVariant = Extract<GeneralColors, "primary" | "secondary"> | "primary-danger" | "secondary-danger" | "ghost" | "ghost-neutral" | "filled";
|
|
4
4
|
export type ButtonType = "button" | "submit";
|
|
5
5
|
export interface ButtonCommonProps extends CommonProps {
|
|
6
6
|
/**
|