@ornikar/kitt-universal 18.0.2 → 19.0.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/CHANGELOG.md +13 -0
- package/dist/definitions/Button/Button.d.ts +1 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts +4 -0
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -0
- package/dist/definitions/IconButton/IconButton.d.ts +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -1
- package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts +4 -0
- package/dist/definitions/IconButton/utils/getIconButtonTextColorByColor.d.ts.map +1 -0
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +1 -2
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +0 -1
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +1 -1
- package/dist/index-node-18.18.cjs.js +22 -21
- package/dist/index-node-18.18.cjs.js.map +1 -1
- package/dist/index-node-18.18.cjs.web.js +22 -21
- package/dist/index-node-18.18.cjs.web.js.map +1 -1
- package/dist/index-node-18.18.es.mjs +22 -21
- package/dist/index-node-18.18.es.mjs.map +1 -1
- package/dist/index-node-18.18.es.web.mjs +22 -21
- package/dist/index-node-18.18.es.web.mjs.map +1 -1
- package/dist/index.es.android.js +22 -21
- package/dist/index.es.android.js.map +1 -1
- package/dist/index.es.ios.js +22 -21
- package/dist/index.es.ios.js.map +1 -1
- package/dist/index.es.js +22 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +22 -21
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-node-18.18.cjs.js +2 -10
- package/dist/linaria-themes-node-18.18.cjs.js.map +1 -1
- package/dist/linaria-themes-node-18.18.cjs.web.js +2 -10
- package/dist/linaria-themes-node-18.18.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-18.18.es.mjs +2 -10
- package/dist/linaria-themes-node-18.18.es.mjs.map +1 -1
- package/dist/linaria-themes-node-18.18.es.web.mjs +2 -10
- package/dist/linaria-themes-node-18.18.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.android.js +2 -10
- package/dist/linaria-themes.es.android.js.map +1 -1
- package/dist/linaria-themes.es.ios.js +2 -10
- package/dist/linaria-themes.es.ios.js.map +1 -1
- package/dist/linaria-themes.es.js +2 -10
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +2 -10
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +4 -4
- package/dist/definitions/Button/utils/getTextColorByType.d.ts +0 -4
- package/dist/definitions/Button/utils/getTextColorByType.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.0.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@18.0.2...@ornikar/kitt-universal@19.0.0) (2023-11-13)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* **Button/IconButton:** clean white button and rename white icon button as ghost [no issue] (#2228)
|
|
12
|
+
|
|
13
|
+
### Code Refactoring
|
|
14
|
+
|
|
15
|
+
* **Button/IconButton:** clean white button and rename white icon button as ghost [no issue] ([#2228](https://github.com/ornikar/kitt/issues/2228)) ([485a64a](https://github.com/ornikar/kitt/commit/485a64a5d42a5143550e1a9fbc426a28b6941eda))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [18.0.2](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@18.0.1...@ornikar/kitt-universal@18.0.2) (2023-11-08)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @ornikar/kitt-universal
|
|
@@ -2,7 +2,7 @@ import type { ReactElement, ReactNode } from 'react';
|
|
|
2
2
|
import type { PressableProps } from '../native-base/primitives';
|
|
3
3
|
import type { ResponsiveValue } from '../utils/createResponsiveStyleFromProp/createResponsiveStyleFromProp';
|
|
4
4
|
export type SubtleButtonType = 'subtle' | 'subtle-dark';
|
|
5
|
-
export type ButtonType = 'primary' | 'default' | SubtleButtonType | '
|
|
5
|
+
export type ButtonType = 'primary' | 'default' | SubtleButtonType | 'danger';
|
|
6
6
|
export type ButtonSize = 'large' | 'xLarge';
|
|
7
7
|
export type ButtonVariant = 'default' | 'ghost';
|
|
8
8
|
type IconPosition = 'right' | 'left';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AAW5G,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,aAAa,CAAC;AACxD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,gBAAgB,GAAG,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sEAAsE,CAAC;AAW5G,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,aAAa,CAAC;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ClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,uOAsGlB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TypographyColor } from '../../typography/Typography';
|
|
2
|
+
import type { ButtonType, ButtonVariant } from '../Button';
|
|
3
|
+
export declare const getButtonTextColorByType: (type: ButtonType, variant: ButtonVariant, isHovered: boolean, isPressed: boolean) => TypographyColor;
|
|
4
|
+
//# sourceMappingURL=getButtonTextColorByType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getButtonTextColorByType.d.ts","sourceRoot":"","sources":["../../../../src/Button/utils/getButtonTextColorByType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3D,eAAO,MAAM,wBAAwB,SAC7B,UAAU,WACP,aAAa,aACX,OAAO,aACP,OAAO,KACjB,eAiBF,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { PressableProps } from '../native-base/primitives';
|
|
3
|
-
export type IconButtonColor = 'black' | '
|
|
3
|
+
export type IconButtonColor = 'black' | 'ghost' | 'primary';
|
|
4
4
|
export interface IconButtonProps {
|
|
5
5
|
icon: NonNullable<ReactElement>;
|
|
6
6
|
color?: IconButtonColor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAQhE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;IAC1D,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kCAAkC;IAClC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAe,EACf,QAAQ,EACR,MAAM,EACN,kBAAkB,EAClB,iBAA4B,EAC5B,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,GACR,EAAE,eAAe,GAAG,SAAS,CAuD7B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { TypographyColor } from '../../typography/Typography';
|
|
2
|
+
import type { IconButtonColor } from '../IconButton';
|
|
3
|
+
export declare const getIconButtonTextColorByColor: (color: IconButtonColor, disabled?: boolean) => TypographyColor;
|
|
4
|
+
//# sourceMappingURL=getIconButtonTextColorByColor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getIconButtonTextColorByColor.d.ts","sourceRoot":"","sources":["../../../../src/IconButton/utils/getIconButtonTextColorByColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,eAAO,MAAM,6BAA6B,UAAW,eAAe,aAAa,OAAO,KAAG,eAW1F,CAAC"}
|
|
@@ -165,7 +165,6 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
165
165
|
default: import("../themes/late-ocean/button").BaseButtonWithVariant;
|
|
166
166
|
primary: import("../themes/late-ocean/button").BaseButtonWithVariant;
|
|
167
167
|
danger: import("../themes/late-ocean/button").BaseButtonWithVariant;
|
|
168
|
-
white: import("../themes/late-ocean/button").BaseButtonTheme;
|
|
169
168
|
subtle: import("../themes/late-ocean/button").SubtleButtonTheme;
|
|
170
169
|
'subtle-dark': import("../themes/late-ocean/button").SubtleButtonTheme;
|
|
171
170
|
disabled: import("../themes/late-ocean/button").DisabledButtonTheme;
|
|
@@ -421,7 +420,7 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
421
420
|
backgroundColor: string;
|
|
422
421
|
};
|
|
423
422
|
};
|
|
424
|
-
|
|
423
|
+
ghost: {
|
|
425
424
|
pressed: {
|
|
426
425
|
backgroundColor: string;
|
|
427
426
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KittNativeBaseProvider.d.ts","sourceRoot":"","sources":["../../../src/native-base/KittNativeBaseProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAGpC,OAAO,KAAK,EAAE,KAAK,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAw8ChF;AAED,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAEpF,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,YAAa,SAAQ,yBAAyB;KAAG;CAC5D;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,SAAS,CAenH"}
|
|
@@ -74,7 +74,6 @@ export interface ButtonTheme {
|
|
|
74
74
|
default: BaseButtonWithVariant;
|
|
75
75
|
primary: BaseButtonWithVariant;
|
|
76
76
|
danger: BaseButtonWithVariant;
|
|
77
|
-
white: BaseButtonTheme;
|
|
78
77
|
subtle: SubtleButtonTheme;
|
|
79
78
|
'subtle-dark': SubtleButtonTheme;
|
|
80
79
|
disabled: DisabledButtonTheme;
|
|
@@ -1 +1 @@
|
|
|
1
|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ACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,OAAO,EAAE,qBAAqB,CAAC;IAC/B,OAAO,EAAE,qBAAqB,CAAC;IAC/B,MAAM,EAAE,qBAAqB,CAAC;IAC9B,MAAM,EAAE,iBAAiB,CAAC;IAC1B,aAAa,EAAE,iBAAiB,CAAC;IACjC,QAAQ,EAAE,mBAAmB,CAAC;CAC/B;AAED,eAAO,MAAM,MAAM,EAAE,WAiIpB,CAAC"}
|
|
@@ -31,7 +31,7 @@ export interface IconButtonTheme {
|
|
|
31
31
|
borderColor: string;
|
|
32
32
|
};
|
|
33
33
|
default: IconButtonVariationValues;
|
|
34
|
-
|
|
34
|
+
ghost: IconButtonVariationValues;
|
|
35
35
|
primary: IconButtonVariationValues;
|
|
36
36
|
}
|
|
37
37
|
export declare const iconButton: IconButtonTheme;
|
|
@@ -566,14 +566,6 @@ const button = {
|
|
|
566
566
|
activeColor: colors.hover
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
|
-
white: {
|
|
570
|
-
default: {
|
|
571
|
-
backgroundColor: 'rgba(255, 255, 255, 0.05)',
|
|
572
|
-
pressedBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
573
|
-
hoverBackgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
574
|
-
focusBorderColor: 'rgba(255, 255, 255, 0.1)'
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
569
|
danger: {
|
|
578
570
|
default: {
|
|
579
571
|
backgroundColor: lateOceanColorPalette.warmEmbraceLight1,
|
|
@@ -1213,8 +1205,8 @@ const iconButton = {
|
|
|
1213
1205
|
default: {
|
|
1214
1206
|
pressedBackgroundColor: button.default.default.pressedBackgroundColor
|
|
1215
1207
|
},
|
|
1216
|
-
|
|
1217
|
-
pressedBackgroundColor: button.
|
|
1208
|
+
ghost: {
|
|
1209
|
+
pressedBackgroundColor: button.default.ghost.pressedBackgroundColor
|
|
1218
1210
|
},
|
|
1219
1211
|
primary: {
|
|
1220
1212
|
pressedBackgroundColor: lateOceanColorPalette.moonPurpleLight1
|
|
@@ -2069,13 +2061,11 @@ function TypographyIcon({
|
|
|
2069
2061
|
});
|
|
2070
2062
|
}
|
|
2071
2063
|
|
|
2072
|
-
const
|
|
2064
|
+
const getButtonTextColorByType = (type, variant, isHovered, isPressed) => {
|
|
2073
2065
|
const isButtonInteractedWith = isHovered || isPressed;
|
|
2074
2066
|
switch (type) {
|
|
2075
2067
|
case 'primary':
|
|
2076
2068
|
return variant === 'ghost' ? 'primary' : 'white';
|
|
2077
|
-
case 'white':
|
|
2078
|
-
return 'white';
|
|
2079
2069
|
case 'danger':
|
|
2080
2070
|
return 'danger';
|
|
2081
2071
|
case 'subtle':
|
|
@@ -2169,7 +2159,7 @@ function ButtonContent({
|
|
|
2169
2159
|
isFocused,
|
|
2170
2160
|
...props
|
|
2171
2161
|
}) {
|
|
2172
|
-
const color = isDisabled ? 'black-light' :
|
|
2162
|
+
const color = isDisabled ? 'black-light' : getButtonTextColorByType(type, variant, isHovered, isPressed);
|
|
2173
2163
|
return /*#__PURE__*/jsxRuntime.jsx(View, {
|
|
2174
2164
|
_web: {
|
|
2175
2165
|
// Make the multilines case work properly on web
|
|
@@ -6715,8 +6705,8 @@ function getBackgroundColor(color, isDisabled) {
|
|
|
6715
6705
|
switch (color) {
|
|
6716
6706
|
case 'primary':
|
|
6717
6707
|
return 'kitt.iconButton.primary.pressed.backgroundColor';
|
|
6718
|
-
case '
|
|
6719
|
-
return 'kitt.iconButton.
|
|
6708
|
+
case 'ghost':
|
|
6709
|
+
return 'kitt.iconButton.ghost.pressed.backgroundColor';
|
|
6720
6710
|
case 'black':
|
|
6721
6711
|
default:
|
|
6722
6712
|
return 'kitt.iconButton.black.pressed.backgroundColor';
|
|
@@ -6848,6 +6838,18 @@ function useNativeAnimation({
|
|
|
6848
6838
|
};
|
|
6849
6839
|
}
|
|
6850
6840
|
|
|
6841
|
+
const getIconButtonTextColorByColor = (color, disabled) => {
|
|
6842
|
+
if (disabled) {
|
|
6843
|
+
return 'black-light';
|
|
6844
|
+
}
|
|
6845
|
+
switch (color) {
|
|
6846
|
+
case 'ghost':
|
|
6847
|
+
return 'white';
|
|
6848
|
+
default:
|
|
6849
|
+
return color;
|
|
6850
|
+
}
|
|
6851
|
+
};
|
|
6852
|
+
|
|
6851
6853
|
function IconButton({
|
|
6852
6854
|
icon,
|
|
6853
6855
|
color = 'black',
|
|
@@ -6913,7 +6915,7 @@ function IconButton({
|
|
|
6913
6915
|
alignItems: "center",
|
|
6914
6916
|
justifyContent: "center",
|
|
6915
6917
|
children: /*#__PURE__*/jsxRuntime.jsx(TypographyIcon, {
|
|
6916
|
-
color:
|
|
6918
|
+
color: getIconButtonTextColorByColor(color, disabled),
|
|
6917
6919
|
icon: icon
|
|
6918
6920
|
})
|
|
6919
6921
|
})]
|
|
@@ -7296,7 +7298,7 @@ const getIconButtonColor = messageType => {
|
|
|
7296
7298
|
switch (messageType) {
|
|
7297
7299
|
case 'success':
|
|
7298
7300
|
case 'danger':
|
|
7299
|
-
return '
|
|
7301
|
+
return 'ghost';
|
|
7300
7302
|
case 'warning':
|
|
7301
7303
|
default:
|
|
7302
7304
|
return 'black';
|
|
@@ -7522,7 +7524,6 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7522
7524
|
default: theme.button.default,
|
|
7523
7525
|
primary: theme.button.primary,
|
|
7524
7526
|
danger: theme.button.danger,
|
|
7525
|
-
white: theme.button.white,
|
|
7526
7527
|
subtle: theme.button.subtle,
|
|
7527
7528
|
'subtle-dark': theme.button['subtle-dark'],
|
|
7528
7529
|
disabled: theme.button.disabled
|
|
@@ -7725,9 +7726,9 @@ function createKittNativeBaseCustomTheme(theme, appTheme) {
|
|
|
7725
7726
|
backgroundColor: theme.iconButton.default.pressedBackgroundColor
|
|
7726
7727
|
}
|
|
7727
7728
|
},
|
|
7728
|
-
|
|
7729
|
+
ghost: {
|
|
7729
7730
|
pressed: {
|
|
7730
|
-
backgroundColor: theme.iconButton.
|
|
7731
|
+
backgroundColor: theme.iconButton.ghost.pressedBackgroundColor
|
|
7731
7732
|
}
|
|
7732
7733
|
},
|
|
7733
7734
|
primary: {
|