digital-rabbit-cl 1.3.14 → 1.3.15
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/components/Button/Button.d.ts +5 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/useButtonStyles.d.ts +2 -1
- package/dist/components/Button/useButtonStyles.d.ts.map +1 -1
- package/dist/digital-rabbit-cl.es.js +530 -527
- package/dist/digital-rabbit-cl.umd.js +3 -3
- package/package.json +1 -1
|
@@ -11,6 +11,11 @@ export interface ButtonProps extends Pick<BaseComponentProps, 'className' | 'sty
|
|
|
11
11
|
* Defaults to opacity change if not provided
|
|
12
12
|
*/
|
|
13
13
|
hoverColor?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Hover text color
|
|
16
|
+
* Defaults to theme.buttons.textColor
|
|
17
|
+
*/
|
|
18
|
+
hoverTextColor?: string;
|
|
14
19
|
/**
|
|
15
20
|
* Button size variant
|
|
16
21
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,oBAAoB,EACrB,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,kBAAkB,EAAE,WAAW,GAAG,OAAO,GAAG,UAAU,CAAC,EAClE,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IAErC;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAG/D;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAChB,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,WAAW,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CACrE,CAAC;CACH;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoEjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -4,6 +4,7 @@ export interface UseButtonStylesParams {
|
|
|
4
4
|
disabled: boolean;
|
|
5
5
|
color?: string;
|
|
6
6
|
hoverColor?: string;
|
|
7
|
+
hoverTextColor?: string;
|
|
7
8
|
outline: boolean;
|
|
8
9
|
theme: Theme;
|
|
9
10
|
}
|
|
@@ -13,5 +14,5 @@ export interface ButtonStyles {
|
|
|
13
14
|
color: string;
|
|
14
15
|
opacity: number;
|
|
15
16
|
}
|
|
16
|
-
export declare const useButtonStyles: ({ isActive, disabled, color: colorProp, hoverColor, outline, theme, }: UseButtonStylesParams) => ButtonStyles;
|
|
17
|
+
export declare const useButtonStyles: ({ isActive, disabled, color: colorProp, hoverColor, hoverTextColor, outline, theme, }: UseButtonStylesParams) => ButtonStyles;
|
|
17
18
|
//# sourceMappingURL=useButtonStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"useButtonStyles.d.ts","sourceRoot":"","sources":["../../../src/components/Button/useButtonStyles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,eAAe,GAAI,uFAQ7B,qBAAqB,KAAG,YAqD1B,CAAC"}
|