@ornikar/kitt-universal 27.0.1-canary.01819bc93ab006bfbaa4e1335cd8afa2380068a0.0 → 27.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/CHANGELOG.md +3 -13
- package/dist/definitions/Button/AnimatedContainer.d.ts +2 -1
- package/dist/definitions/Button/AnimatedContainer.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +2 -17
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +10 -8
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonPadding.d.ts +1 -1
- package/dist/definitions/Button/ButtonPadding.d.ts.map +1 -1
- package/dist/definitions/Button/FocusBorder.d.ts +1 -4
- package/dist/definitions/Button/FocusBorder.d.ts.map +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts +1 -1
- package/dist/definitions/Button/hooks/useNativeAnimation.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts +12 -3
- package/dist/definitions/Button/utils/getButtonTextColorByType.d.ts.map +1 -1
- package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts +3 -2
- package/dist/definitions/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.d.ts.map +1 -1
- package/dist/definitions/ButtonBadge/ButtonBadge.d.ts +2 -1
- package/dist/definitions/ButtonBadge/ButtonBadge.d.ts.map +1 -1
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +30 -23
- package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +1 -1
- package/dist/definitions/themes/late-ocean/button.d.ts +26 -52
- package/dist/definitions/themes/late-ocean/button.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/buttonBadge.d.ts +4 -1
- package/dist/definitions/themes/late-ocean/buttonBadge.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +7 -19
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/index-metro.es.android.js +238 -306
- package/dist/index-metro.es.android.js.map +1 -1
- package/dist/index-metro.es.ios.js +238 -306
- package/dist/index-metro.es.ios.js.map +1 -1
- package/dist/index-node-22.17.cjs.js +232 -300
- package/dist/index-node-22.17.cjs.js.map +1 -1
- package/dist/index-node-22.17.cjs.web.js +231 -284
- package/dist/index-node-22.17.cjs.web.js.map +1 -1
- package/dist/index-node-22.17.es.mjs +232 -300
- package/dist/index-node-22.17.es.mjs.map +1 -1
- package/dist/index-node-22.17.es.web.mjs +231 -284
- package/dist/index-node-22.17.es.web.mjs.map +1 -1
- package/dist/index.es.js +352 -414
- package/dist/index.es.js.map +1 -1
- package/dist/index.es.web.js +322 -370
- package/dist/index.es.web.js.map +1 -1
- package/dist/linaria-themes-metro.es.android.js +130 -116
- package/dist/linaria-themes-metro.es.android.js.map +1 -1
- package/dist/linaria-themes-metro.es.ios.js +130 -116
- package/dist/linaria-themes-metro.es.ios.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.js +130 -116
- package/dist/linaria-themes-node-22.17.cjs.js.map +1 -1
- package/dist/linaria-themes-node-22.17.cjs.web.js +130 -116
- package/dist/linaria-themes-node-22.17.cjs.web.js.map +1 -1
- package/dist/linaria-themes-node-22.17.es.mjs +130 -116
- package/dist/linaria-themes-node-22.17.es.mjs.map +1 -1
- package/dist/linaria-themes-node-22.17.es.web.mjs +130 -116
- package/dist/linaria-themes-node-22.17.es.web.mjs.map +1 -1
- package/dist/linaria-themes.es.js +131 -117
- package/dist/linaria-themes.es.js.map +1 -1
- package/dist/linaria-themes.es.web.js +131 -117
- package/dist/linaria-themes.es.web.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +28 -28
- package/dist/definitions/Button/DisabledBorder.d.ts +0 -3
- package/dist/definitions/Button/DisabledBorder.d.ts.map +0 -1
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts +0 -5
- package/dist/definitions/Button/getVariantValuesIfExist.d.ts.map +0 -1
- package/dist/definitions/Button/utils/getButtonSize.d.ts +0 -3
- package/dist/definitions/Button/utils/getButtonSize.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,27 +3,17 @@
|
|
|
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
|
-
## [27.
|
|
6
|
+
## [27.1.0](https://github.com/ornikar/kitt/compare/@ornikar/kitt-universal@27.0.0...@ornikar/kitt-universal@27.1.0) (2025-08-13)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
-
*
|
|
12
|
-
* expo 51 package.json ([7da4090](https://github.com/ornikar/kitt/commit/7da4090c190b5a5873ac73af0ec73b762a489676))
|
|
13
|
-
* expo 52 package.json ([2078e30](https://github.com/ornikar/kitt/commit/2078e30635581a375ab12577817e617c9f2ad2f4))
|
|
14
|
-
* fix expo deps ([b60918b](https://github.com/ornikar/kitt/commit/b60918b88272aeab0cc52310e97a3593480243f4))
|
|
15
|
-
* fix expo install ([01819bc](https://github.com/ornikar/kitt/commit/01819bc93ab006bfbaa4e1335cd8afa2380068a0))
|
|
16
|
-
* fix react & reanimated versions ([7c01e6b](https://github.com/ornikar/kitt/commit/7c01e6b24a3cd0eb0644012d535e710fb3e0ab31))
|
|
17
|
-
* upgrade babel ([7ed7647](https://github.com/ornikar/kitt/commit/7ed7647881e76cf67d55a7dfea16b7623db99e81))
|
|
18
|
-
* upgrade canary versions from shared-configs ([b6f0cad](https://github.com/ornikar/kitt/commit/b6f0cadb9dfa95237176e0cd59a645f00d5572af))
|
|
11
|
+
* rebranding buttons OSE-17958 ([#2664](https://github.com/ornikar/kitt/issues/2664)) ([ba5e87e](https://github.com/ornikar/kitt/commit/ba5e87e3c47b40f738ebb8fbe343ad3addd5709d))
|
|
19
12
|
|
|
20
13
|
|
|
21
14
|
### Bug Fixes
|
|
22
15
|
|
|
23
|
-
*
|
|
24
|
-
* test setup, babel versions, new arch disabled ([625ec38](https://github.com/ornikar/kitt/commit/625ec38130caa0c83a53b7ba86e5ae4fee7c4172))
|
|
25
|
-
* tsc error ([6d73d8a](https://github.com/ornikar/kitt/commit/6d73d8a76a6364e060d8a4e91e80ce20b2ae2335))
|
|
26
|
-
* tsc error ([542d18b](https://github.com/ornikar/kitt/commit/542d18be94f1aee3a3ceaaf6ec0b6da6eaf796e0))
|
|
16
|
+
* revert underline on typography [no issue] ([#2667](https://github.com/ornikar/kitt/issues/2667)) ([05ee694](https://github.com/ornikar/kitt/commit/05ee69467db02aa4aac7c83b848953b67ee8ce86))
|
|
27
17
|
|
|
28
18
|
|
|
29
19
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { ViewStyle } from 'react-native';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ButtonType, ButtonVariant } from '../themes/late-ocean/button';
|
|
4
|
+
import type { ButtonProps } from './Button';
|
|
4
5
|
export interface AnimatedContainerProps {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
disabled?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimatedContainer.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"AnimatedContainer.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC;IACvB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CACpC;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,EACP,IAAI,GACL,EAAE,sBAAsB,GAAG,SAAS,CAcpC"}
|
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
2
|
import type { PressableProps, ViewProps } from '../native-base/primitives';
|
|
3
|
+
import type { ButtonSize, ButtonType, ButtonVariant } from '../themes/late-ocean/button';
|
|
3
4
|
import type { ResponsiveValue } from '../utils/createResponsiveStyleFromProp/createResponsiveStyleFromProp';
|
|
4
|
-
export type SubtleButtonType = 'subtle' | 'subtle-dark' | 'subtle-revert';
|
|
5
|
-
export type ButtonType = 'primary' | 'default' | 'dark' | SubtleButtonType | 'danger';
|
|
6
|
-
export type ButtonSize = 'large' | 'xLarge';
|
|
7
|
-
export type ButtonVariant = 'default' | 'ghost';
|
|
8
5
|
type IconPosition = 'right' | 'left';
|
|
9
|
-
export interface ButtonProps extends Pick<PressableProps, 'onPress' | '
|
|
6
|
+
export interface ButtonProps extends Pick<PressableProps, 'onPress' | 'onFocus' | 'onHoverIn' | 'onHoverOut' | 'onBlur'> {
|
|
10
7
|
children?: ReactNode;
|
|
11
8
|
type?: ButtonType;
|
|
12
9
|
variant?: ButtonVariant;
|
|
13
10
|
disabled?: boolean;
|
|
14
11
|
stretch?: ResponsiveValue<boolean | undefined>;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated use `size` instead
|
|
17
|
-
*/
|
|
18
|
-
large?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* @deprecated use `size` instead
|
|
21
|
-
*/
|
|
22
|
-
xLarge?: boolean;
|
|
23
12
|
size?: ButtonSize;
|
|
24
13
|
icon?: ReactElement<any>;
|
|
25
14
|
iconPosition?: IconPosition;
|
|
@@ -30,10 +19,6 @@ export interface ButtonProps extends Pick<PressableProps, 'onPress' | 'onHoverIn
|
|
|
30
19
|
hrefAttrs?: PressableProps['hrefAttrs'];
|
|
31
20
|
accessibilityRole?: PressableProps['accessibilityRole'];
|
|
32
21
|
innerSpacing?: ViewProps['justifyContent'];
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated props className is not supported
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
22
|
style?: PressableProps['style'];
|
|
38
23
|
/** @internal for story purpose */
|
|
39
24
|
isHoveredInternal?: boolean;
|
|
@@ -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,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3E,OAAO,KAAK,EAAE,
|
|
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,E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AC,EAAE,OAAO,CAAC;IAC5B,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAED,eAAO,MAAM,MAAM,uOA8FlB,CAAC"}
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { Except } from 'type-fest';
|
|
3
|
-
import type {
|
|
4
|
-
import type { ButtonProps
|
|
3
|
+
import type { ButtonType, ButtonVariant } from '../themes/late-ocean/button';
|
|
4
|
+
import type { ButtonProps } from './Button';
|
|
5
5
|
interface ButtonContentProps extends Except<ButtonProps, 'onPress' | 'disabled' | 'stretch'> {
|
|
6
6
|
isDisabled?: boolean;
|
|
7
|
-
type:
|
|
8
|
-
variant:
|
|
7
|
+
type: ButtonType;
|
|
8
|
+
variant: ButtonVariant;
|
|
9
9
|
isHovered: boolean;
|
|
10
10
|
isPressed: boolean;
|
|
11
11
|
isFocused: boolean;
|
|
12
12
|
}
|
|
13
13
|
interface ButtonContentChildrenProps extends Except<ButtonProps, 'onPress' | 'disabled' | 'stretch'> {
|
|
14
14
|
isDisabled?: boolean;
|
|
15
|
-
type:
|
|
16
|
-
color:
|
|
15
|
+
type: ButtonType;
|
|
16
|
+
color: string;
|
|
17
|
+
isHovered: boolean;
|
|
18
|
+
isPressed: boolean;
|
|
17
19
|
}
|
|
18
|
-
export declare function ButtonContentChildren({ type, icon, iconPosition, innerSpacing, withBadge, badgeCount, color, children, }: ButtonContentChildrenProps): ReactNode;
|
|
19
|
-
export declare function ButtonContent({ type, variant, isDisabled, icon, children, isHovered, isPressed, isFocused, innerSpacing, ...props }: ButtonContentProps): ReactNode;
|
|
20
|
+
export declare function ButtonContentChildren({ type, icon, iconPosition, innerSpacing, isDisabled, withBadge, badgeCount, color, children, isPressed, isHovered, size, }: ButtonContentChildrenProps): ReactNode;
|
|
21
|
+
export declare function ButtonContent({ type, variant, isDisabled, icon, children, isHovered, isPressed, isFocused, innerSpacing, size, ...props }: ButtonContentProps): ReactNode;
|
|
20
22
|
export {};
|
|
21
23
|
//# sourceMappingURL=ButtonContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonContent.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonContent.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAG5C,UAAU,kBAAmB,SAAQ,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,UAAU,0BAA2B,SAAQ,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,UAAU,EACV,KAAK,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAgB,GACjB,EAAE,0BAA0B,GAAG,SAAS,CAuDxC;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,OAAO,EACP,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,SAAS,EACT,SAAS,EACT,YAAY,EACZ,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG,SAAS,CA4BhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonPadding.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonPadding.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonPadding.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonPadding.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,kBAAkB,GAAG,SAAS,CAczF"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
-
import type { ButtonType, ButtonVariant } from './Button';
|
|
3
2
|
interface FocusBorderProps {
|
|
4
|
-
type: ButtonType;
|
|
5
|
-
variant: ButtonVariant;
|
|
6
3
|
isFocused?: boolean;
|
|
7
4
|
isPressed?: boolean;
|
|
8
5
|
isHovered?: boolean;
|
|
9
6
|
}
|
|
10
|
-
export declare function FocusBorder({
|
|
7
|
+
export declare function FocusBorder({ isFocused, isHovered, isPressed }: FocusBorderProps): ReactNode;
|
|
11
8
|
export {};
|
|
12
9
|
//# sourceMappingURL=FocusBorder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusBorder.d.ts","sourceRoot":"","sources":["../../../src/Button/FocusBorder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FocusBorder.d.ts","sourceRoot":"","sources":["../../../src/Button/FocusBorder.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,UAAU,gBAAgB;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,gBAAgB,GAAG,SAAS,CA+B5F"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ViewStyle } from 'react-native';
|
|
2
|
-
import type { ButtonType, ButtonVariant } from '
|
|
2
|
+
import type { ButtonType, ButtonVariant } from '../../themes/late-ocean/button';
|
|
3
3
|
export interface UseNativeAnimationOptions {
|
|
4
4
|
type: ButtonType;
|
|
5
5
|
variant: ButtonVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNativeAnimation.d.ts","sourceRoot":"","sources":["../../../../src/Button/hooks/useNativeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useNativeAnimation.d.ts","sourceRoot":"","sources":["../../../../src/Button/hooks/useNativeAnimation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEhF,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,cAAc,EAAE,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,kBAAkB,0CAI5B,yBAAyB,KAAG,eA4C9B,CAAC"}
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { ButtonType, ButtonVariant } from '../../themes/late-ocean/button';
|
|
2
|
+
export declare const getButtonTextColorByType: (type: ButtonType, variant: ButtonVariant, isHovered: boolean, isPressed: boolean, isDisabled?: boolean) => string;
|
|
3
|
+
interface GetCurrentBackgroundColorParams {
|
|
4
|
+
type: ButtonType;
|
|
5
|
+
variant: ButtonVariant;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
isHovered?: boolean;
|
|
8
|
+
isPressed?: boolean;
|
|
9
|
+
isFocused?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function getCurrentBackgroundColorForNativeBaseTheme({ type, variant, isDisabled, isHovered, isPressed, isFocused, }: GetCurrentBackgroundColorParams): string;
|
|
12
|
+
export {};
|
|
4
13
|
//# sourceMappingURL=getButtonTextColorByType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getButtonTextColorByType.d.ts","sourceRoot":"","sources":["../../../../src/Button/utils/getButtonTextColorByType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"getButtonTextColorByType.d.ts","sourceRoot":"","sources":["../../../../src/Button/utils/getButtonTextColorByType.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEhF,eAAO,MAAM,wBAAwB,SAC7B,UAAU,WACP,aAAa,aACX,OAAO,aACP,OAAO,eACL,OAAO,KACnB,MAYF,CAAC;AAEF,UAAU,+BAA+B;IACvC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,2CAA2C,CAAC,EAC1D,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,GACV,EAAE,+BAA+B,GAAG,MAAM,CAoB1C"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import type { ButtonType, ButtonVariant } from '
|
|
1
|
+
import type { ButtonType, ButtonVariant } from '../../themes/late-ocean/button';
|
|
2
2
|
interface GetCurrentBackgroundColorParams {
|
|
3
3
|
type: ButtonType;
|
|
4
4
|
variant: ButtonVariant;
|
|
5
5
|
isDisabled?: boolean;
|
|
6
6
|
isHovered?: boolean;
|
|
7
7
|
isPressed?: boolean;
|
|
8
|
+
isFocused?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare function getCurrentBackgroundColorForNativeBaseTheme({ type, variant, isDisabled, isHovered, isPressed, }: GetCurrentBackgroundColorParams): string;
|
|
10
|
+
export declare function getCurrentBackgroundColorForNativeBaseTheme({ type, variant, isDisabled, isHovered, isPressed, isFocused, }: GetCurrentBackgroundColorParams): string;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=getCurrentBackgroundColorForNativeBaseTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCurrentBackgroundColorForNativeBaseTheme.d.ts","sourceRoot":"","sources":["../../../../src/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getCurrentBackgroundColorForNativeBaseTheme.d.ts","sourceRoot":"","sources":["../../../../src/Button/utils/getCurrentBackgroundColorForNativeBaseTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAEhF,UAAU,+BAA+B;IACvC,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,2CAA2C,CAAC,EAC1D,IAAI,EACJ,OAAO,EACP,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,GACV,EAAE,+BAA+B,GAAG,MAAM,CAoB1C"}
|
|
@@ -2,6 +2,7 @@ import type { ReactNode } from 'react';
|
|
|
2
2
|
export interface ButtonBadgeProps {
|
|
3
3
|
withBadge?: boolean;
|
|
4
4
|
badgeCount?: number;
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare function ButtonBadge({ withBadge, badgeCount }: ButtonBadgeProps): ReactNode;
|
|
7
|
+
export declare function ButtonBadge({ withBadge, badgeCount, disabled }: ButtonBadgeProps): ReactNode;
|
|
7
8
|
//# sourceMappingURL=ButtonBadge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBadge.d.ts","sourceRoot":"","sources":["../../../src/ButtonBadge/ButtonBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ButtonBadge.d.ts","sourceRoot":"","sources":["../../../src/ButtonBadge/ButtonBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,MAAM,WAAW,gBAAgB;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,gBAAgB,GAAG,SAAS,CAiC5F"}
|
|
@@ -171,14 +171,11 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
171
171
|
};
|
|
172
172
|
};
|
|
173
173
|
button: {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
danger: import("../themes/late-ocean/button").
|
|
178
|
-
|
|
179
|
-
'subtle-revert': import("../themes/late-ocean/button").SubtleButtonTheme;
|
|
180
|
-
'subtle-dark': import("../themes/late-ocean/button").SubtleButtonTheme;
|
|
181
|
-
disabled: import("../themes/late-ocean/button").DisabledButtonTheme;
|
|
174
|
+
primary: import("../themes/late-ocean/button").BaseButtonWithRevertVariantTheme;
|
|
175
|
+
secondary: import("../themes/late-ocean/button").BaseButtonWithRevertVariantTheme;
|
|
176
|
+
tertiary: import("../themes/late-ocean/button").BaseButtonWithRevertVariantTheme;
|
|
177
|
+
'tertiary-danger': import("../themes/late-ocean/button").BaseButtonTheme;
|
|
178
|
+
focusBorderColor: string;
|
|
182
179
|
};
|
|
183
180
|
choices: {
|
|
184
181
|
item: {
|
|
@@ -686,12 +683,14 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
686
683
|
flareColor: string;
|
|
687
684
|
};
|
|
688
685
|
buttonBadge: {
|
|
689
|
-
backgroundColor:
|
|
686
|
+
backgroundColor: {
|
|
687
|
+
default: string;
|
|
688
|
+
disabled: string;
|
|
689
|
+
};
|
|
690
690
|
};
|
|
691
691
|
iconButton: {
|
|
692
692
|
borderColor: string;
|
|
693
693
|
disabled: {
|
|
694
|
-
borderColor: string;
|
|
695
694
|
backgroundColor: string;
|
|
696
695
|
};
|
|
697
696
|
black: {
|
|
@@ -1299,10 +1298,9 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
1299
1298
|
"kitt.40"?: number | undefined;
|
|
1300
1299
|
"kitt.20"?: number | undefined;
|
|
1301
1300
|
"kitt.30"?: number | undefined;
|
|
1302
|
-
"kitt.
|
|
1301
|
+
"kitt.48"?: number | undefined;
|
|
1303
1302
|
"kitt.24"?: number | undefined;
|
|
1304
|
-
"kitt.
|
|
1305
|
-
"kitt.15"?: number | undefined;
|
|
1303
|
+
"kitt.12"?: number | undefined;
|
|
1306
1304
|
"kitt.56"?: number | undefined;
|
|
1307
1305
|
"kitt.32"?: number | undefined;
|
|
1308
1306
|
"kitt.60"?: number | undefined;
|
|
@@ -1312,14 +1310,15 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
1312
1310
|
"kitt.26"?: number | undefined;
|
|
1313
1311
|
"kitt.34"?: number | undefined;
|
|
1314
1312
|
"kitt.50"?: number | undefined;
|
|
1315
|
-
"kitt.48"?: number | undefined;
|
|
1316
1313
|
"kitt.36"?: number | undefined;
|
|
1317
1314
|
"kitt.38"?: number | undefined;
|
|
1318
1315
|
"kitt.43"?: number | undefined;
|
|
1319
1316
|
"kitt.45"?: number | undefined;
|
|
1320
1317
|
"kitt.28"?: number | undefined;
|
|
1321
1318
|
"kitt.39"?: number | undefined;
|
|
1319
|
+
"kitt.11"?: number | undefined;
|
|
1322
1320
|
"kitt.13"?: number | undefined;
|
|
1321
|
+
"kitt.15"?: number | undefined;
|
|
1323
1322
|
"kitt.17"?: number | undefined;
|
|
1324
1323
|
"kitt.19"?: number | undefined;
|
|
1325
1324
|
"kitt.21"?: number | undefined;
|
|
@@ -1458,7 +1457,6 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
1458
1457
|
};
|
|
1459
1458
|
button: {
|
|
1460
1459
|
borderWidth: {
|
|
1461
|
-
disabled: number;
|
|
1462
1460
|
focus: number;
|
|
1463
1461
|
};
|
|
1464
1462
|
};
|
|
@@ -1664,6 +1662,15 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
1664
1662
|
minWidth: number;
|
|
1665
1663
|
maxWidth: number;
|
|
1666
1664
|
minHeight: number;
|
|
1665
|
+
maxHeight: number;
|
|
1666
|
+
icon: {
|
|
1667
|
+
default: {
|
|
1668
|
+
size: number;
|
|
1669
|
+
};
|
|
1670
|
+
medium: {
|
|
1671
|
+
size: number;
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1667
1674
|
};
|
|
1668
1675
|
buttonBadge: {
|
|
1669
1676
|
dimensions: {
|
|
@@ -2180,10 +2187,9 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
2180
2187
|
"-kitt.40"?: number | undefined;
|
|
2181
2188
|
"-kitt.20"?: number | undefined;
|
|
2182
2189
|
"-kitt.30"?: number | undefined;
|
|
2183
|
-
"-kitt.
|
|
2190
|
+
"-kitt.48"?: number | undefined;
|
|
2184
2191
|
"-kitt.24"?: number | undefined;
|
|
2185
|
-
"-kitt.
|
|
2186
|
-
"-kitt.15"?: number | undefined;
|
|
2192
|
+
"-kitt.12"?: number | undefined;
|
|
2187
2193
|
"-kitt.56"?: number | undefined;
|
|
2188
2194
|
"-kitt.32"?: number | undefined;
|
|
2189
2195
|
"-kitt.60"?: number | undefined;
|
|
@@ -2193,14 +2199,15 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
2193
2199
|
"-kitt.26"?: number | undefined;
|
|
2194
2200
|
"-kitt.34"?: number | undefined;
|
|
2195
2201
|
"-kitt.50"?: number | undefined;
|
|
2196
|
-
"-kitt.48"?: number | undefined;
|
|
2197
2202
|
"-kitt.36"?: number | undefined;
|
|
2198
2203
|
"-kitt.38"?: number | undefined;
|
|
2199
2204
|
"-kitt.43"?: number | undefined;
|
|
2200
2205
|
"-kitt.45"?: number | undefined;
|
|
2201
2206
|
"-kitt.28"?: number | undefined;
|
|
2202
2207
|
"-kitt.39"?: number | undefined;
|
|
2208
|
+
"-kitt.11"?: number | undefined;
|
|
2203
2209
|
"-kitt.13"?: number | undefined;
|
|
2210
|
+
"-kitt.15"?: number | undefined;
|
|
2204
2211
|
"-kitt.17"?: number | undefined;
|
|
2205
2212
|
"-kitt.19"?: number | undefined;
|
|
2206
2213
|
"-kitt.21"?: number | undefined;
|
|
@@ -2244,10 +2251,9 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
2244
2251
|
"kitt.40"?: number | undefined;
|
|
2245
2252
|
"kitt.20"?: number | undefined;
|
|
2246
2253
|
"kitt.30"?: number | undefined;
|
|
2247
|
-
"kitt.
|
|
2254
|
+
"kitt.48"?: number | undefined;
|
|
2248
2255
|
"kitt.24"?: number | undefined;
|
|
2249
|
-
"kitt.
|
|
2250
|
-
"kitt.15"?: number | undefined;
|
|
2256
|
+
"kitt.12"?: number | undefined;
|
|
2251
2257
|
"kitt.56"?: number | undefined;
|
|
2252
2258
|
"kitt.32"?: number | undefined;
|
|
2253
2259
|
"kitt.60"?: number | undefined;
|
|
@@ -2257,14 +2263,15 @@ export declare function createKittNativeBaseCustomTheme(theme: Theme, appTheme?:
|
|
|
2257
2263
|
"kitt.26"?: number | undefined;
|
|
2258
2264
|
"kitt.34"?: number | undefined;
|
|
2259
2265
|
"kitt.50"?: number | undefined;
|
|
2260
|
-
"kitt.48"?: number | undefined;
|
|
2261
2266
|
"kitt.36"?: number | undefined;
|
|
2262
2267
|
"kitt.38"?: number | undefined;
|
|
2263
2268
|
"kitt.43"?: number | undefined;
|
|
2264
2269
|
"kitt.45"?: number | undefined;
|
|
2265
2270
|
"kitt.28"?: number | undefined;
|
|
2266
2271
|
"kitt.39"?: number | undefined;
|
|
2272
|
+
"kitt.11"?: number | undefined;
|
|
2267
2273
|
"kitt.13"?: number | undefined;
|
|
2274
|
+
"kitt.15"?: number | undefined;
|
|
2268
2275
|
"kitt.17"?: number | undefined;
|
|
2269
2276
|
"kitt.19"?: number | undefined;
|
|
2270
2277
|
"kitt.21"?: number | undefined;
|
|
@@ -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,EAAE,MAAM,mBAAmB,CAAC;AAG/C,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GACrE,CAAC,CAAC,MAAM,CAAC,GACT,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AAEtC,KAAK,QAAQ,GAAG,QAAQ,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AACpD,KAAK,gBAAgB,GAAG,SAAS,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;AAE7D,KAAK,eAAe,GAAG,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAChD,KAAK,uBAAuB,GAAG,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;A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ED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,2BAA2B,GAAG,SAAS,CAiBnH"}
|
|
@@ -4,7 +4,7 @@ export interface StoryBlockProps {
|
|
|
4
4
|
background?: 'dark' | 'white' | 'light' | 'primary' | 'transparent';
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
}
|
|
7
|
-
export declare const StoryBlockBackgroundContext: import("react").Context<"transparent" | "
|
|
7
|
+
export declare const StoryBlockBackgroundContext: import("react").Context<"transparent" | "primary" | "white" | "dark" | "light" | undefined>;
|
|
8
8
|
export declare const useStoryBlockColor: (color?: ExtendedTypographyColor | undefined) => ExtendedTypographyColor;
|
|
9
9
|
export declare function StoryBlock({ children, background }: StoryBlockProps): ReactNode;
|
|
10
10
|
//# sourceMappingURL=StoryBlock.d.ts.map
|
|
@@ -1,50 +1,43 @@
|
|
|
1
|
+
export type ButtonSize = 'default' | 'medium';
|
|
2
|
+
export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'tertiary-danger';
|
|
3
|
+
export type ButtonVariant = 'default' | 'revert';
|
|
4
|
+
type ButtonTypeWithRevertVariant = Exclude<ButtonType, 'tertiary-danger'>;
|
|
1
5
|
export interface BaseVariantTheme {
|
|
2
|
-
backgroundColor:
|
|
3
|
-
|
|
4
|
-
hoverBackgroundColor: string;
|
|
5
|
-
focusBorderColor: string;
|
|
6
|
-
}
|
|
7
|
-
export interface GhostVariantTheme extends BaseVariantTheme {
|
|
8
|
-
color: string;
|
|
9
|
-
hoverColor: string;
|
|
10
|
-
activeColor: string;
|
|
6
|
+
backgroundColor: BackgroundColorTheme;
|
|
7
|
+
color: FontColorTheme;
|
|
11
8
|
}
|
|
9
|
+
type ButtonStates = 'default' | 'hover' | 'pressed' | 'focus' | 'disabled';
|
|
10
|
+
type FontColorTheme = Record<ButtonStates, string>;
|
|
11
|
+
type BackgroundColorTheme = Record<ButtonStates, string>;
|
|
12
12
|
export interface BaseButtonTheme {
|
|
13
13
|
default: BaseVariantTheme;
|
|
14
14
|
}
|
|
15
|
-
export interface
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export interface SubtleBaseVariantTheme extends BaseVariantTheme {
|
|
19
|
-
color: string;
|
|
20
|
-
hoverColor: string;
|
|
21
|
-
activeColor: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SubtleButtonTheme extends BaseButtonTheme {
|
|
24
|
-
default: SubtleBaseVariantTheme;
|
|
25
|
-
}
|
|
26
|
-
export interface DisabledBaseVariantTheme extends BaseVariantTheme {
|
|
27
|
-
borderColor: string;
|
|
28
|
-
}
|
|
29
|
-
export interface DisabledButtonTheme extends BaseButtonTheme {
|
|
30
|
-
default: DisabledBaseVariantTheme;
|
|
15
|
+
export interface BaseButtonWithRevertVariantTheme extends BaseButtonTheme {
|
|
16
|
+
revert: BaseVariantTheme;
|
|
31
17
|
}
|
|
32
18
|
interface ButtonPadding {
|
|
33
|
-
hasBadge: {
|
|
34
|
-
right: number;
|
|
35
|
-
};
|
|
36
19
|
horizontal: number;
|
|
37
20
|
vertical: number;
|
|
38
21
|
}
|
|
39
|
-
|
|
22
|
+
interface ButtonIconSize extends Record<ButtonSize, {
|
|
23
|
+
size: number;
|
|
24
|
+
}> {
|
|
25
|
+
}
|
|
26
|
+
interface ButtonThemePadding extends Record<ButtonSize, ButtonPadding> {
|
|
27
|
+
}
|
|
28
|
+
type ButtonTypeThemeWithRevertVariant = Record<ButtonTypeWithRevertVariant, BaseButtonWithRevertVariantTheme>;
|
|
29
|
+
type ButtonTypeThemeWithTertiaryDanger = ButtonTypeThemeWithRevertVariant & {
|
|
30
|
+
'tertiary-danger': BaseButtonTheme;
|
|
31
|
+
};
|
|
32
|
+
export interface ButtonTheme extends ButtonTypeThemeWithTertiaryDanger {
|
|
40
33
|
borderRadius: number;
|
|
41
34
|
borderWidth: {
|
|
42
|
-
disabled: number;
|
|
43
35
|
focus: number;
|
|
44
36
|
};
|
|
45
37
|
minHeight: number;
|
|
46
38
|
minWidth: number;
|
|
47
39
|
maxWidth: number;
|
|
40
|
+
maxHeight: number;
|
|
48
41
|
scale: {
|
|
49
42
|
base: {
|
|
50
43
|
default: number;
|
|
@@ -55,32 +48,13 @@ export interface ButtonTheme {
|
|
|
55
48
|
hover: number;
|
|
56
49
|
};
|
|
57
50
|
};
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
contentPadding: {
|
|
62
|
-
default: string;
|
|
63
|
-
large: string;
|
|
64
|
-
xLarge: string;
|
|
65
|
-
disabled: string;
|
|
66
|
-
};
|
|
67
|
-
padding: {
|
|
68
|
-
default: ButtonPadding;
|
|
69
|
-
large: ButtonPadding;
|
|
70
|
-
xLarge: ButtonPadding;
|
|
71
|
-
};
|
|
51
|
+
icon: ButtonIconSize;
|
|
52
|
+
focusBorderColor: string;
|
|
53
|
+
padding: ButtonThemePadding;
|
|
72
54
|
transition: {
|
|
73
55
|
duration: string;
|
|
74
56
|
timingFunction: string;
|
|
75
57
|
};
|
|
76
|
-
default: BaseButtonWithVariant;
|
|
77
|
-
primary: BaseButtonWithVariant;
|
|
78
|
-
dark: BaseButtonTheme;
|
|
79
|
-
danger: BaseButtonWithVariant;
|
|
80
|
-
subtle: SubtleButtonTheme;
|
|
81
|
-
'subtle-dark': SubtleButtonTheme;
|
|
82
|
-
'subtle-revert': SubtleButtonTheme;
|
|
83
|
-
disabled: DisabledButtonTheme;
|
|
84
58
|
}
|
|
85
59
|
export declare const button: ButtonTheme;
|
|
86
60
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/button.ts"],"names":[],"mappings":"AAGA,MAAM,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/button.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,Q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EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM,CAAC;YAChB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,MAAM,EAAE;YACN,KAAK,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,IAAI,EAAE,cAAc,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,kBAAkB,CAAC;IAC5B,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,MAAM,EAAE,WA8JpB,CAAC"}
|
|
@@ -10,7 +10,10 @@ interface ButtonBadgeDimensions {
|
|
|
10
10
|
}
|
|
11
11
|
export interface ButtonBadgeTheme {
|
|
12
12
|
dimensions: ButtonBadgeDimensions;
|
|
13
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: {
|
|
14
|
+
default: string;
|
|
15
|
+
disabled: string;
|
|
16
|
+
};
|
|
14
17
|
borderRadius: {
|
|
15
18
|
withBadge: number;
|
|
16
19
|
badgeCount: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonBadge.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/buttonBadge.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"buttonBadge.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/buttonBadge.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,SAAS,EAAE;QACT,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,YAAY,EAAE;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,WAAW,EAAE,gBAmBzB,CAAC"}
|