@ornikar/kitt-universal 2.2.0 → 2.3.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/dist/definitions/Button/Button.d.ts +5 -2
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/{ButtonContainer.d.ts → ButtonPressable.d.ts} +3 -3
- package/dist/definitions/Button/{ButtonContainer.d.ts.map → ButtonPressable.d.ts.map} +1 -1
- package/dist/definitions/ExternalLink/ExternalLink.d.ts +18 -0
- package/dist/definitions/ExternalLink/ExternalLink.d.ts.map +1 -0
- package/dist/definitions/ExternalLink/ExternalLink.web.d.ts +4 -0
- package/dist/definitions/ExternalLink/ExternalLink.web.d.ts.map +1 -0
- package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts +24 -0
- package/dist/definitions/ExternalLink/ExternalLinkOpenLinkBehavior.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +3 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitiveLink.d.ts +3 -1
- package/dist/definitions/primitives/PrimitiveLink.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts +1 -1
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitivePressable.d.ts +2 -0
- package/dist/definitions/primitives/PrimitivePressable.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitiveView.d.ts +2 -0
- package/dist/definitions/primitives/PrimitiveView.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitiveView.web.d.ts +6 -2
- package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +7 -4
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/index-browser-all.es.android.js +117 -78
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +117 -78
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +117 -78
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +203 -146
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +94 -55
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -2
- package/dist/definitions/Button/useButton.d.ts +0 -6
- package/dist/definitions/Button/useButton.d.ts.map +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { PrimitivePressableProps } from '..';
|
|
2
3
|
export declare type ButtonType = 'primary' | 'secondary' | 'subtle' | 'subtle-dark';
|
|
3
4
|
declare type IconPosition = 'right' | 'left';
|
|
4
5
|
export interface ButtonProps {
|
|
@@ -9,9 +10,11 @@ export interface ButtonProps {
|
|
|
9
10
|
iconPosition?: IconPosition;
|
|
10
11
|
iconSpin?: boolean;
|
|
11
12
|
stretch?: boolean;
|
|
12
|
-
testID?:
|
|
13
|
+
testID?: PrimitivePressableProps['testID'];
|
|
14
|
+
href?: PrimitivePressableProps['href'];
|
|
15
|
+
hrefAttrs?: PrimitivePressableProps['hrefAttrs'];
|
|
13
16
|
onPress?: () => void;
|
|
14
17
|
}
|
|
15
|
-
export declare function Button({ children, type, icon, iconPosition, iconSpin, stretch, disabled,
|
|
18
|
+
export declare function Button({ children, type, icon, iconPosition, iconSpin, stretch, disabled, testID, href, hrefAttrs, onPress, }: ButtonProps): ReactElement;
|
|
16
19
|
export {};
|
|
17
20
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -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;
|
|
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;AAErD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,IAAI,CAAC;AAIlD,oBAAY,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,CAAC;AAE5E,aAAK,YAAY,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC3C,IAAI,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,IAAkB,EAClB,IAAI,EACJ,YAAqB,EACrB,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,MAAM,EACN,IAAI,EACJ,SAAS,EACT,OAAO,GACR,EAAE,WAAW,GAAG,YAAY,CAgC5B"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { PrimitivePressableProps } from '../primitives/PrimitivePressable';
|
|
3
3
|
import type { ButtonType } from './Button';
|
|
4
|
-
interface
|
|
4
|
+
interface ButtonPressableProps extends PrimitivePressableProps {
|
|
5
5
|
type: ButtonType;
|
|
6
6
|
isPressed?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
stretch?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const ButtonPressable: import("styled-components").StyledComponent<import("react").FunctionComponent<PrimitivePressableProps>, import("styled-components").DefaultTheme, ButtonPressableProps, never>;
|
|
11
11
|
export {};
|
|
12
|
-
//# sourceMappingURL=
|
|
12
|
+
//# sourceMappingURL=ButtonPressable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"ButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonPressable.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,UAAU,oBAAqB,SAAQ,uBAAuB;IAC5D,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,eAAe,gLAqB3B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps, ReactElement, VoidFunctionComponent } from 'react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import type { ExternalLinkOpenLinkBehavior } from './ExternalLinkOpenLinkBehavior';
|
|
4
|
+
export interface ExternalLinkAsComponentMinimumRequiredProps {
|
|
5
|
+
href?: ViewProps['href'];
|
|
6
|
+
hrefAttrs?: ViewProps['hrefAttrs'];
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ExternalLinkProps<C extends VoidFunctionComponent<any>> {
|
|
10
|
+
as: C;
|
|
11
|
+
openLinkBehavior?: ExternalLinkOpenLinkBehavior;
|
|
12
|
+
href?: string;
|
|
13
|
+
onPress?: () => void;
|
|
14
|
+
}
|
|
15
|
+
/** @internal for ExternalLink.web.tsx only */
|
|
16
|
+
export declare type ExternalLinkSendableComponentProps<C extends VoidFunctionComponent<any>> = Omit<ComponentProps<C>, keyof ExternalLinkProps<C> & keyof ExternalLinkAsComponentMinimumRequiredProps>;
|
|
17
|
+
export declare function ExternalLink<C extends VoidFunctionComponent<any>>({ as: Component, href, openLinkBehavior, onPress, ...rest }: ExternalLinkProps<C> & ExternalLinkSendableComponentProps<C>): ReactElement;
|
|
18
|
+
//# sourceMappingURL=ExternalLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLink.d.ts","sourceRoot":"","sources":["../../../src/ExternalLink/ExternalLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAGnF,MAAM,WAAW,2CAA2C;IAC1D,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,qBAAqB,CAAC,GAAG,CAAC;IACrE,EAAE,EAAE,CAAC,CAAC;IACN,gBAAgB,CAAC,EAAE,4BAA4B,CAAC;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,8CAA8C;AAE9C,oBAAY,kCAAkC,CAAC,CAAC,SAAS,qBAAqB,CAAC,GAAG,CAAC,IAAI,IAAI,CACzF,cAAc,CAAC,CAAC,CAAC,EACjB,MAAM,iBAAiB,CAAC,CAAC,CAAC,GAAG,MAAM,2CAA2C,CAC/E,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,SAAS,qBAAqB,CAAC,GAAG,CAAC,EAAE,EACjE,EAAE,EAAE,SAAS,EACb,IAAI,EACJ,gBAA0C,EAC1C,OAAO,EACP,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,kCAAkC,CAAC,CAAC,CAAC,GAAG,YAAY,CAwB7E"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement, VoidFunctionComponent } from 'react';
|
|
2
|
+
import type { ExternalLinkProps, ExternalLinkSendableComponentProps } from './ExternalLink';
|
|
3
|
+
export declare function ExternalLink<C extends VoidFunctionComponent<any>>({ as: Component, href, openLinkBehavior, onPress, ...rest }: ExternalLinkProps<C> & ExternalLinkSendableComponentProps<C>): ReactElement;
|
|
4
|
+
//# sourceMappingURL=ExternalLink.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLink.web.d.ts","sourceRoot":"","sources":["../../../src/ExternalLink/ExternalLink.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAG5F,wBAAgB,YAAY,CAAC,CAAC,SAAS,qBAAqB,CAAC,GAAG,CAAC,EAAE,EACjE,EAAE,EAAE,SAAS,EACb,IAAI,EACJ,gBAA0C,EAC1C,OAAO,EACP,GAAG,IAAI,EACR,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,kCAAkC,CAAC,CAAC,CAAC,GAAG,YAAY,CAS7E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface ExternalLinkOpenLinkBehavior {
|
|
2
|
+
/**
|
|
3
|
+
* @default 'openInModal'
|
|
4
|
+
*
|
|
5
|
+
* @description open link behavior in native
|
|
6
|
+
*
|
|
7
|
+
* "openInModal": open via [expo-web-browser](https://docs.expo.dev/versions/latest/sdk/webbrowser/)
|
|
8
|
+
*
|
|
9
|
+
* "openBrowserApp": open via [Linking](https://docs.expo.dev/guides/linking/#opening-links-from-your-app)
|
|
10
|
+
*/
|
|
11
|
+
native?: 'openInModal' | 'openBrowserApp';
|
|
12
|
+
/**
|
|
13
|
+
* @default 'targetBlank'
|
|
14
|
+
*
|
|
15
|
+
* @description open link behavior in native
|
|
16
|
+
*
|
|
17
|
+
* "targetSelf": no dom attributes added, behave like `target="_self"`
|
|
18
|
+
*
|
|
19
|
+
* "targetBlank": dome attributes: `target="_blank" rel="noopener noreferrer"`
|
|
20
|
+
*/
|
|
21
|
+
web?: 'targetSelf' | 'targetBlank';
|
|
22
|
+
}
|
|
23
|
+
export declare const defaultOpenLinkBehavior: ExternalLinkOpenLinkBehavior;
|
|
24
|
+
//# sourceMappingURL=ExternalLinkOpenLinkBehavior.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExternalLinkOpenLinkBehavior.d.ts","sourceRoot":"","sources":["../../../src/ExternalLink/ExternalLinkOpenLinkBehavior.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAE1C;;;;;;;;OAQG;IACH,GAAG,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;CACpC;AAED,eAAO,MAAM,uBAAuB,EAAE,4BAGrC,CAAC"}
|
|
@@ -4,6 +4,8 @@ export type { ButtonProps } from './Button/Button';
|
|
|
4
4
|
export { Button } from './Button/Button';
|
|
5
5
|
export type { CardProps } from './Card/Card';
|
|
6
6
|
export { Card } from './Card/Card';
|
|
7
|
+
export type { ExternalLinkProps } from './ExternalLink/ExternalLink';
|
|
8
|
+
export { ExternalLink } from './ExternalLink/ExternalLink';
|
|
7
9
|
export type { InputFeedbackProps } from './forms/InputFeedback/InputFeedback';
|
|
8
10
|
export { InputFeedback } from './forms/InputFeedback/InputFeedback';
|
|
9
11
|
export type { InputFieldProps } from './forms/InputField/InputField';
|
|
@@ -60,7 +62,7 @@ export { TypographyIcon } from './typography/TypographyIcon';
|
|
|
60
62
|
export type { TypographyLinkProps } from './typography/TypographyLink';
|
|
61
63
|
export { TypographyLink } from './typography/TypographyLink';
|
|
62
64
|
export { useKittTheme } from './useKittTheme';
|
|
63
|
-
export { KittThemeDecorator } from './utils/storybook/decorators/KittThemeDecorator';
|
|
65
|
+
export { KittThemeDecorator, KittThemeProvider } from './utils/storybook/decorators/KittThemeDecorator';
|
|
64
66
|
export { SafeAreaProviderDecorator } from './utils/storybook/decorators/SafeAreaProviderDecorator';
|
|
65
67
|
export type { WindowSizeHelper } from './utils/windowSize/createWindowSizeHelper';
|
|
66
68
|
export { createWindowSizeHelper } from './utils/windowSize/createWindowSizeHelper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,YAAY,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,YAAY,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,YAAY,E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MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,wDAAwD,CAAC;AACnG,YAAY,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
|
-
import type { TextProps } from 'react-native';
|
|
2
|
+
import type { TextProps, ViewProps } from 'react-native';
|
|
3
3
|
export interface PrimitiveLinkProps {
|
|
4
4
|
className?: string;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
accessibilityRole?: Extract<TextProps['accessibilityRole'], 'link'>;
|
|
7
7
|
selectable?: TextProps['selectable'];
|
|
8
|
+
href?: ViewProps['href'];
|
|
9
|
+
hrefAttrs?: ViewProps['hrefAttrs'];
|
|
8
10
|
onPress?: TextProps['onPress'];
|
|
9
11
|
}
|
|
10
12
|
export declare const PrimitiveLink: FunctionComponent<PrimitiveLinkProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveLink.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"PrimitiveLink.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC,CAAC;IACpE,UAAU,CAAC,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,eAAO,MAAM,aAAa,uCAAiE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PrimitiveLinkProps } from './PrimitiveLink';
|
|
3
|
-
export declare const PrimitiveLink: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<PrimitiveLinkProps & React.RefAttributes<HTMLSpanElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const PrimitiveLink: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<PrimitiveLinkProps & React.RefAttributes<HTMLSpanElement | HTMLAnchorElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
//# sourceMappingURL=PrimitiveLink.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveLink.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveLink.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"PrimitiveLink.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveLink.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAoC1D,eAAO,MAAM,aAAa,kNAezB,CAAC"}
|
|
@@ -7,6 +7,8 @@ export interface PrimitivePressableProps {
|
|
|
7
7
|
disabled?: PressableProps['disabled'];
|
|
8
8
|
focusable?: PressableProps['focusable'];
|
|
9
9
|
nativeID?: PressableProps['nativeID'];
|
|
10
|
+
href?: PressableProps['href'];
|
|
11
|
+
hrefAttrs?: PressableProps['hrefAttrs'];
|
|
10
12
|
accessibilityRole: Extract<PressableProps['accessibilityRole'], 'button' | 'radio' | 'none'>;
|
|
11
13
|
onPress?: NonNullable<PressableProps['onPress']>;
|
|
12
14
|
onPressIn?: PressableProps['onPressIn'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitivePressable.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitivePressable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACtC,iBAA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AAC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,kBAAkB,4CAA2E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitivePressable.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitivePressable.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"PrimitivePressable.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitivePressable.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAuCpE,eAAO,MAAM,kBAAkB,kMAG9B,CAAC"}
|
|
@@ -10,6 +10,8 @@ export interface PrimitiveViewProps {
|
|
|
10
10
|
accessibilityRole?: Extract<NativeViewProps['accessibilityRole'], 'button' | 'radio' | 'none'>;
|
|
11
11
|
testID?: NativeViewProps['testID'];
|
|
12
12
|
nativeID?: NativeViewProps['nativeID'];
|
|
13
|
+
href?: NativeViewProps['href'];
|
|
14
|
+
hrefAttrs?: NativeViewProps['hrefAttrs'];
|
|
13
15
|
/**
|
|
14
16
|
* Use internally to pass all styles from PrimitiveScrollView
|
|
15
17
|
* @private
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveView.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,MAAM,cAAc,CAAC;AAGjE,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CA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,eAAO,MAAM,aAAa,uCAAiE,CAAC"}
|
|
@@ -7,7 +7,7 @@ export interface BaseWebPrimitiveViewProps extends Except<PrimitiveViewProps, 'a
|
|
|
7
7
|
}
|
|
8
8
|
interface WebPrimitiveViewPropsWithOnPress extends BaseWebPrimitiveViewProps {
|
|
9
9
|
accessibilityRole: NonNullable<PrimitiveViewProps['accessibilityRole']>;
|
|
10
|
-
onPress: (e?: MouseEventHandler<HTMLDivElement> | any) => void;
|
|
10
|
+
onPress: (e?: MouseEventHandler<HTMLDivElement | HTMLAnchorElement> | any) => void;
|
|
11
11
|
}
|
|
12
12
|
interface WebPrimitiveViewPropsWithoutOnPress extends BaseWebPrimitiveViewProps {
|
|
13
13
|
accessibilityRole?: NonNullable<PrimitiveViewProps['accessibilityRole']>;
|
|
@@ -17,7 +17,11 @@ export declare type WebPrimitiveViewProps = WebPrimitiveViewPropsWithOnPress | W
|
|
|
17
17
|
interface StyledDivProps extends ComponentProps<'div'> {
|
|
18
18
|
hasTextAncestor: boolean;
|
|
19
19
|
}
|
|
20
|
+
interface StyledAnchorProps extends ComponentProps<'a'> {
|
|
21
|
+
hasTextAncestor: boolean;
|
|
22
|
+
}
|
|
20
23
|
export declare const StyledDiv: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDivProps, never>;
|
|
21
|
-
export declare const
|
|
24
|
+
export declare const StyledAnchor: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, StyledAnchorProps, never>;
|
|
25
|
+
export declare const PrimitiveView: React.ForwardRefExoticComponent<WebPrimitiveViewProps & React.RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
|
|
22
26
|
export {};
|
|
23
27
|
//# sourceMappingURL=PrimitiveView.web.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PrimitiveView.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,
|
|
1
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ReactElement } from 'react';
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { Except } from 'type-fest';
|
|
2
3
|
import type { PrimitiveLinkProps } from '../primitives/PrimitiveLink';
|
|
3
4
|
import type { TypographyPropsWithoutRole } from './Typography';
|
|
4
5
|
interface StyledLinkProps {
|
|
5
6
|
disabled?: boolean;
|
|
6
7
|
noUnderline?: boolean;
|
|
7
8
|
}
|
|
8
|
-
export interface TypographyLinkProps extends StyledLinkProps, TypographyPropsWithoutRole {
|
|
9
|
+
export interface TypographyLinkProps extends StyledLinkProps, Except<TypographyPropsWithoutRole, 'children'> {
|
|
10
|
+
children: NonNullable<ReactNode>;
|
|
9
11
|
variant: NonNullable<TypographyPropsWithoutRole['variant']>;
|
|
10
|
-
href?:
|
|
12
|
+
href?: PrimitiveLinkProps['href'];
|
|
13
|
+
hrefAttrs?: PrimitiveLinkProps['hrefAttrs'];
|
|
11
14
|
onPress: PrimitiveLinkProps['onPress'];
|
|
12
15
|
}
|
|
13
|
-
export declare function TypographyLink({ children, disabled, noUnderline, onPress, ...otherProps }: TypographyLinkProps): ReactElement;
|
|
16
|
+
export declare function TypographyLink({ children, disabled, noUnderline, href, hrefAttrs, onPress, ...otherProps }: TypographyLinkProps): ReactElement;
|
|
14
17
|
export {};
|
|
15
18
|
//# sourceMappingURL=TypographyLink.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypographyLink.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"TypographyLink.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEtE,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAG/D,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAyBD,MAAM,WAAW,mBAAoB,SAAQ,eAAe,EAAE,MAAM,CAAC,0BAA0B,EAAE,UAAU,CAAC;IAC1G,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,OAAO,EAAE,WAAW,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC5C,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACxC;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,UAAU,EACd,EAAE,mBAAmB,GAAG,YAAY,CAepC"}
|
|
@@ -4,10 +4,11 @@ import _taggedTemplateLiteral from '@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
4
4
|
import { UserIcon, EyeIcon, EyeOffIcon, XIcon, InfoIcon, AlertTriangleIcon, CheckIcon, AlertCircleIcon } from '@ornikar/kitt-icons';
|
|
5
5
|
export * from '@ornikar/kitt-icons';
|
|
6
6
|
import React, { useRef, useEffect, useContext, createContext, useState, forwardRef, Fragment, useMemo } from 'react';
|
|
7
|
-
import { View, Animated, Easing, Text as Text$1, Image, Pressable, TextInput, useWindowDimensions, ActivityIndicator, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
7
|
+
import { View, Animated, Easing, Text as Text$1, Image, Pressable, Linking, TextInput, useWindowDimensions, ActivityIndicator, TouchableOpacity, StyleSheet, ScrollView, Modal as Modal$1 } from 'react-native';
|
|
8
8
|
export { useWindowDimensions as useWindowSize } from 'react-native';
|
|
9
9
|
import styled, { useTheme, css, ThemeProvider } from 'styled-components';
|
|
10
10
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
11
|
+
import { openBrowserAsync } from 'expo-web-browser';
|
|
11
12
|
import { useSafeAreaInsets, SafeAreaProvider } from 'react-native-safe-area-context';
|
|
12
13
|
import Animated$1, { useSharedValue, useAnimatedStyle, withSpring } from 'react-native-reanimated';
|
|
13
14
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
@@ -80,7 +81,7 @@ function Icon(_ref5) {
|
|
|
80
81
|
|
|
81
82
|
var PrimitiveText = Text$1;
|
|
82
83
|
|
|
83
|
-
var _excluded$
|
|
84
|
+
var _excluded$a = ["accessibilityRole", "base", "variant", "color"];
|
|
84
85
|
|
|
85
86
|
var _templateObject$t;
|
|
86
87
|
var TypographyTypeContext = /*#__PURE__*/createContext(undefined);
|
|
@@ -118,7 +119,7 @@ function Typography(_ref3) {
|
|
|
118
119
|
base = _ref3.base,
|
|
119
120
|
variant = _ref3.variant,
|
|
120
121
|
color = _ref3.color,
|
|
121
|
-
otherProps = _objectWithoutProperties(_ref3, _excluded$
|
|
122
|
+
otherProps = _objectWithoutProperties(_ref3, _excluded$a);
|
|
122
123
|
|
|
123
124
|
var typeInContext = useContext(TypographyTypeContext);
|
|
124
125
|
var isHeader = isTypographyHeader(base, typeInContext);
|
|
@@ -197,7 +198,7 @@ Typography.h4 = createHeading(4, 'header4');
|
|
|
197
198
|
|
|
198
199
|
Typography.h5 = createHeading(5, 'header5');
|
|
199
200
|
|
|
200
|
-
var _excluded$
|
|
201
|
+
var _excluded$9 = ["size"];
|
|
201
202
|
|
|
202
203
|
var _templateObject$s;
|
|
203
204
|
|
|
@@ -263,7 +264,7 @@ function AvatarContent(_ref5) {
|
|
|
263
264
|
function Avatar(_ref6) {
|
|
264
265
|
var _ref6$size = _ref6.size,
|
|
265
266
|
size = _ref6$size === void 0 ? 40 : _ref6$size,
|
|
266
|
-
rest = _objectWithoutProperties(_ref6, _excluded$
|
|
267
|
+
rest = _objectWithoutProperties(_ref6, _excluded$9);
|
|
267
268
|
|
|
268
269
|
return /*#__PURE__*/React.createElement(StyledAvatarView, _extends({}, rest, {
|
|
269
270
|
size: size
|
|
@@ -272,50 +273,7 @@ function Avatar(_ref6) {
|
|
|
272
273
|
})));
|
|
273
274
|
}
|
|
274
275
|
|
|
275
|
-
var
|
|
276
|
-
|
|
277
|
-
var _templateObject$r;
|
|
278
|
-
var ButtonContainer = styled(PrimitivePressable)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n min-width: ", ";\n max-width: ", ";\n width: ", ";\n min-height: ", ";\n background-color: ", ";\n padding: ", ";\n flex-direction: row;\n\n /* Emulate inline-* css display by making the button taking only its necessary space */\n align-self: flex-start;\n border-radius: ", ";\n border-color: ", ";\n border-width: ", ";\n"])), function (_ref) {
|
|
279
|
-
var theme = _ref.theme;
|
|
280
|
-
return theme.kitt.button.minWidth;
|
|
281
|
-
}, function (_ref2) {
|
|
282
|
-
var theme = _ref2.theme,
|
|
283
|
-
stretch = _ref2.stretch;
|
|
284
|
-
return stretch ? 'auto' : theme.kitt.button.maxWidth;
|
|
285
|
-
}, function (_ref3) {
|
|
286
|
-
var stretch = _ref3.stretch;
|
|
287
|
-
return stretch ? '100%' : 'auto';
|
|
288
|
-
}, function (_ref4) {
|
|
289
|
-
var theme = _ref4.theme;
|
|
290
|
-
return theme.kitt.button.minHeight;
|
|
291
|
-
}, function (_ref5) {
|
|
292
|
-
var theme = _ref5.theme,
|
|
293
|
-
isPressed = _ref5.isPressed,
|
|
294
|
-
disabled = _ref5.disabled,
|
|
295
|
-
type = _ref5.type;
|
|
296
|
-
|
|
297
|
-
if (disabled) {
|
|
298
|
-
return theme.kitt.button[type].disabledBackgroundColor;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
|
|
302
|
-
}, function (_ref6) {
|
|
303
|
-
var theme = _ref6.theme;
|
|
304
|
-
return theme.kitt.button.contentPadding["default"];
|
|
305
|
-
}, function (_ref7) {
|
|
306
|
-
var theme = _ref7.theme;
|
|
307
|
-
return theme.kitt.button.borderRadius;
|
|
308
|
-
}, function (_ref8) {
|
|
309
|
-
var theme = _ref8.theme,
|
|
310
|
-
disabled = _ref8.disabled,
|
|
311
|
-
type = _ref8.type;
|
|
312
|
-
return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
|
|
313
|
-
}, function (_ref9) {
|
|
314
|
-
var theme = _ref9.theme;
|
|
315
|
-
return theme.kitt.button.borderWidth;
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
var _excluded$7 = ["color"],
|
|
276
|
+
var _excluded$8 = ["color"],
|
|
319
277
|
_excluded2$2 = ["color"];
|
|
320
278
|
|
|
321
279
|
function TypographyIconInheritColor(props) {
|
|
@@ -328,7 +286,7 @@ function TypographyIconInheritColor(props) {
|
|
|
328
286
|
|
|
329
287
|
function TypographyIconSpecifiedColor(_ref) {
|
|
330
288
|
var color = _ref.color,
|
|
331
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
289
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
332
290
|
|
|
333
291
|
var theme = useTheme();
|
|
334
292
|
return /*#__PURE__*/React.createElement(Icon, _extends({}, otherProps, {
|
|
@@ -349,7 +307,7 @@ function TypographyIcon(_ref2) {
|
|
|
349
307
|
return /*#__PURE__*/React.createElement(TypographyIconInheritColor, otherProps);
|
|
350
308
|
}
|
|
351
309
|
|
|
352
|
-
var _templateObject$
|
|
310
|
+
var _templateObject$r, _templateObject2$c, _templateObject3$8;
|
|
353
311
|
|
|
354
312
|
var getTextColorByType = function (type, isPressed, disabled) {
|
|
355
313
|
if (disabled) return 'black-light';
|
|
@@ -370,7 +328,7 @@ var getTextColorByType = function (type, isPressed, disabled) {
|
|
|
370
328
|
}
|
|
371
329
|
};
|
|
372
330
|
|
|
373
|
-
var ButtonText = styled(Typography.Text)(_templateObject$
|
|
331
|
+
var ButtonText = styled(Typography.Text)(_templateObject$r || (_templateObject$r = _taggedTemplateLiteral(["\n /* On native code, this is the only way to ensure that the text is centered */\n text-align: center;\n"])));
|
|
374
332
|
var Content$1 = styled(PrimitiveView)(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n flex-direction: row;\n align-items: center;\n justify-content: center;\n\n /*\n On native code flex grow does not work as expected which cause an issue with the flex props.\n In order to occupy only the needed space, we enable flex grow only when stretched\n */\n flex: ", ";\n"])), function (_ref) {
|
|
375
333
|
var stretch = _ref.stretch,
|
|
376
334
|
iconOnly = _ref.iconOnly;
|
|
@@ -454,22 +412,48 @@ function ButtonContent(_ref4) {
|
|
|
454
412
|
})) : null);
|
|
455
413
|
}
|
|
456
414
|
|
|
457
|
-
var
|
|
458
|
-
var _useState = useState(false),
|
|
459
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
460
|
-
isPressed = _useState2[0],
|
|
461
|
-
setIsPressed = _useState2[1];
|
|
415
|
+
var PrimitivePressable = Pressable;
|
|
462
416
|
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
417
|
+
var _templateObject$q;
|
|
418
|
+
var ButtonPressable = styled(PrimitivePressable)(_templateObject$q || (_templateObject$q = _taggedTemplateLiteral(["\n min-width: ", ";\n max-width: ", ";\n width: ", ";\n min-height: ", ";\n background-color: ", ";\n padding: ", ";\n flex-direction: row;\n\n /* Emulate inline-* css display by making the button taking only its necessary space */\n align-self: flex-start;\n border-radius: ", ";\n border-color: ", ";\n border-width: ", ";\n"])), function (_ref) {
|
|
419
|
+
var theme = _ref.theme;
|
|
420
|
+
return theme.kitt.button.minWidth;
|
|
421
|
+
}, function (_ref2) {
|
|
422
|
+
var theme = _ref2.theme,
|
|
423
|
+
stretch = _ref2.stretch;
|
|
424
|
+
return stretch ? 'auto' : theme.kitt.button.maxWidth;
|
|
425
|
+
}, function (_ref3) {
|
|
426
|
+
var stretch = _ref3.stretch;
|
|
427
|
+
return stretch ? '100%' : 'auto';
|
|
428
|
+
}, function (_ref4) {
|
|
429
|
+
var theme = _ref4.theme;
|
|
430
|
+
return theme.kitt.button.minHeight;
|
|
431
|
+
}, function (_ref5) {
|
|
432
|
+
var theme = _ref5.theme,
|
|
433
|
+
isPressed = _ref5.isPressed,
|
|
434
|
+
disabled = _ref5.disabled,
|
|
435
|
+
type = _ref5.type;
|
|
436
|
+
|
|
437
|
+
if (disabled) {
|
|
438
|
+
return theme.kitt.button[type].disabledBackgroundColor;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
return isPressed ? theme.kitt.button[type].pressedBackgroundColor : theme.kitt.button[type].backgroundColor;
|
|
442
|
+
}, function (_ref6) {
|
|
443
|
+
var theme = _ref6.theme;
|
|
444
|
+
return theme.kitt.button.contentPadding["default"];
|
|
445
|
+
}, function (_ref7) {
|
|
446
|
+
var theme = _ref7.theme;
|
|
447
|
+
return theme.kitt.button.borderRadius;
|
|
448
|
+
}, function (_ref8) {
|
|
449
|
+
var theme = _ref8.theme,
|
|
450
|
+
disabled = _ref8.disabled,
|
|
451
|
+
type = _ref8.type;
|
|
452
|
+
return disabled ? theme.kitt.button[type].disabledBorderColor : 'transparent';
|
|
453
|
+
}, function (_ref9) {
|
|
454
|
+
var theme = _ref9.theme;
|
|
455
|
+
return theme.kitt.button.borderWidth;
|
|
456
|
+
});
|
|
473
457
|
|
|
474
458
|
function Button(_ref) {
|
|
475
459
|
var children = _ref.children,
|
|
@@ -481,29 +465,37 @@ function Button(_ref) {
|
|
|
481
465
|
iconSpin = _ref.iconSpin,
|
|
482
466
|
stretch = _ref.stretch,
|
|
483
467
|
disabled = _ref.disabled,
|
|
484
|
-
|
|
485
|
-
|
|
468
|
+
testID = _ref.testID,
|
|
469
|
+
href = _ref.href,
|
|
470
|
+
hrefAttrs = _ref.hrefAttrs,
|
|
471
|
+
onPress = _ref.onPress;
|
|
486
472
|
|
|
487
|
-
var
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
473
|
+
var _useState = useState(false),
|
|
474
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
475
|
+
isPressed = _useState2[0],
|
|
476
|
+
setIsPressed = _useState2[1];
|
|
491
477
|
|
|
492
478
|
var sharedProps = {
|
|
493
479
|
type: type,
|
|
494
480
|
stretch: stretch,
|
|
495
481
|
disabled: disabled
|
|
496
482
|
};
|
|
497
|
-
return /*#__PURE__*/React.createElement(
|
|
483
|
+
return /*#__PURE__*/React.createElement(ButtonPressable // eslint-disable-next-line unicorn/expiring-todo-comments
|
|
498
484
|
// TODO: When designs are defined, update with the proper onPress styles to mimic TouchableHighlight
|
|
499
485
|
// underlayColor={globalTheme.button[type].pressedBackgroundColor}
|
|
500
486
|
, _extends({}, sharedProps, {
|
|
501
487
|
isPressed: isPressed,
|
|
502
488
|
accessibilityRole: "button",
|
|
503
489
|
testID: testID,
|
|
490
|
+
href: href,
|
|
491
|
+
hrefAttrs: hrefAttrs,
|
|
504
492
|
onPress: onPress,
|
|
505
|
-
onPressIn: handleButtonPressIn
|
|
506
|
-
|
|
493
|
+
onPressIn: function handleButtonPressIn() {
|
|
494
|
+
return setIsPressed(true);
|
|
495
|
+
},
|
|
496
|
+
onPressOut: function handleButtonPressOut() {
|
|
497
|
+
return setIsPressed(false);
|
|
498
|
+
}
|
|
507
499
|
}), /*#__PURE__*/React.createElement(ButtonContent, _extends({}, sharedProps, {
|
|
508
500
|
icon: icon,
|
|
509
501
|
iconPosition: iconPosition,
|
|
@@ -538,6 +530,49 @@ function Card(_ref6) {
|
|
|
538
530
|
}, children);
|
|
539
531
|
}
|
|
540
532
|
|
|
533
|
+
var defaultOpenLinkBehavior = {
|
|
534
|
+
"native": 'openInModal',
|
|
535
|
+
web: 'targetBlank'
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
var _excluded$7 = ["as", "href", "openLinkBehavior", "onPress"];
|
|
539
|
+
function ExternalLink(_ref) {
|
|
540
|
+
var Component = _ref.as,
|
|
541
|
+
href = _ref.href,
|
|
542
|
+
_ref$openLinkBehavior = _ref.openLinkBehavior,
|
|
543
|
+
openLinkBehavior = _ref$openLinkBehavior === void 0 ? defaultOpenLinkBehavior : _ref$openLinkBehavior,
|
|
544
|
+
onPress = _ref.onPress,
|
|
545
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
546
|
+
|
|
547
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, rest, {
|
|
548
|
+
onPress: function handleOnPress() {
|
|
549
|
+
if (onPress) onPress();
|
|
550
|
+
if (!href) return;
|
|
551
|
+
|
|
552
|
+
switch (openLinkBehavior["native"]) {
|
|
553
|
+
case 'openInModal':
|
|
554
|
+
case undefined:
|
|
555
|
+
Linking.openURL(href)["catch"](function (err) {
|
|
556
|
+
console.error("An error occurred while opening ".concat(href), err);
|
|
557
|
+
});
|
|
558
|
+
break;
|
|
559
|
+
|
|
560
|
+
case 'openBrowserApp':
|
|
561
|
+
openBrowserAsync(href)["catch"](function (err) {
|
|
562
|
+
console.error("An error occurred while opening ".concat(href), err);
|
|
563
|
+
});
|
|
564
|
+
break;
|
|
565
|
+
|
|
566
|
+
default:
|
|
567
|
+
if ((process.env.NODE_ENV !== "production")) {
|
|
568
|
+
throw new Error("Invalid ExternalLink native behavior: ".concat(openLinkBehavior["native"]));
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}));
|
|
574
|
+
}
|
|
575
|
+
|
|
541
576
|
var getColorFromState = function (state) {
|
|
542
577
|
switch (state) {
|
|
543
578
|
case 'invalid':
|
|
@@ -2360,7 +2395,7 @@ function Tooltip(_ref) {
|
|
|
2360
2395
|
return /*#__PURE__*/React.createElement(PrimitiveView, null, children);
|
|
2361
2396
|
}
|
|
2362
2397
|
|
|
2363
|
-
var _excluded$1 = ["children", "disabled", "noUnderline", "onPress"];
|
|
2398
|
+
var _excluded$1 = ["children", "disabled", "noUnderline", "href", "hrefAttrs", "onPress"];
|
|
2364
2399
|
|
|
2365
2400
|
var _templateObject;
|
|
2366
2401
|
var StyledLink = styled(PrimitiveLink).withConfig({
|
|
@@ -2380,6 +2415,8 @@ function TypographyLink(_ref3) {
|
|
|
2380
2415
|
var children = _ref3.children,
|
|
2381
2416
|
disabled = _ref3.disabled,
|
|
2382
2417
|
noUnderline = _ref3.noUnderline,
|
|
2418
|
+
href = _ref3.href,
|
|
2419
|
+
hrefAttrs = _ref3.hrefAttrs,
|
|
2383
2420
|
onPress = _ref3.onPress,
|
|
2384
2421
|
otherProps = _objectWithoutProperties(_ref3, _excluded$1);
|
|
2385
2422
|
|
|
@@ -2388,6 +2425,8 @@ function TypographyLink(_ref3) {
|
|
|
2388
2425
|
}), /*#__PURE__*/React.createElement(StyledLink, {
|
|
2389
2426
|
disabled: disabled,
|
|
2390
2427
|
noUnderline: noUnderline,
|
|
2428
|
+
href: href,
|
|
2429
|
+
hrefAttrs: hrefAttrs,
|
|
2391
2430
|
accessibilityRole: "link",
|
|
2392
2431
|
onPress: disabled ? undefined : onPress
|
|
2393
2432
|
}, children));
|
|
@@ -2496,5 +2535,5 @@ function MatchWindowSize(_ref) {
|
|
|
2496
2535
|
return /*#__PURE__*/React.createElement(React.Fragment, null, children);
|
|
2497
2536
|
}
|
|
2498
2537
|
|
|
2499
|
-
export { Avatar, Button, Card, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
|
|
2538
|
+
export { Avatar, Button, Card, ExternalLink, Flex, FullScreenModal, Icon, IconButton, InputFeedback, InputField, InputText, KittBreakpoints, KittBreakpointsMax, KittThemeDecorator, KittThemeProvider, Label, LargeLoader, ListItem, Loader, MatchWindowSize, Message, Modal, Notification, PrimitiveLink, PrimitivePressable, PrimitiveScrollView, PrimitiveText, PrimitiveView, Radio, SafeAreaProviderDecorator, DeprecatedSection as Section, Story, StoryBlock, StoryContainer, StoryDecorator, StoryGrid, StorySection, StoryTitle, Tag, TextArea, Tooltip, Typography, TypographyIcon, TypographyLink, createWindowSizeHelper, matchWindowSize, styledTextInputMixin, theme, useKittTheme, useMatchWindowSize, useStoryBlockColor };
|
|
2500
2539
|
//# sourceMappingURL=index-browser-all.es.android.js.map
|