@ornikar/kitt-universal 1.0.2 → 1.2.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 +39 -0
- package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
- package/dist/definitions/Button/Button.d.ts +1 -1
- package/dist/definitions/Button/Button.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContainer.d.ts +3 -3
- package/dist/definitions/Button/ButtonContainer.d.ts.map +1 -1
- package/dist/definitions/Button/ButtonContent.d.ts +2 -1
- package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
- package/dist/definitions/Card/Card.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -1
- package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -1
- package/dist/definitions/Icon/Icon.d.ts.map +1 -1
- package/dist/definitions/Icon/SpinningIcon.web.d.ts +2 -5
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/IconButton/IconButton.d.ts +11 -0
- package/dist/definitions/IconButton/IconButton.d.ts.map +1 -0
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts +13 -0
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +1 -0
- package/dist/definitions/IconButton/PressableIconButton.d.ts +8 -0
- package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -0
- package/dist/definitions/ListItem/ListItem.d.ts +5 -3
- package/dist/definitions/ListItem/ListItem.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemContent.d.ts +2 -2
- package/dist/definitions/ListItem/ListItemContent.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItemSideContent.d.ts +4 -3
- package/dist/definitions/ListItem/ListItemSideContent.d.ts.map +1 -1
- package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
- package/dist/definitions/Message/Message.d.ts.map +1 -1
- package/dist/definitions/Modal/Body.d.ts +2 -4
- package/dist/definitions/Modal/Body.d.ts.map +1 -1
- package/dist/definitions/Modal/Footer.d.ts.map +1 -1
- package/dist/definitions/Modal/Header.d.ts.map +1 -1
- package/dist/definitions/Modal/Modal.d.ts +2 -2
- package/dist/definitions/Modal/Modal.d.ts.map +1 -1
- package/dist/definitions/Overlay/Overlay.d.ts +2 -2
- package/dist/definitions/Overlay/Overlay.d.ts.map +1 -1
- package/dist/definitions/Tag/Tag.d.ts +6 -3
- package/dist/definitions/Tag/Tag.d.ts.map +1 -1
- package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +0 -1
- package/dist/definitions/forms/InputText/InputText.d.ts.map +1 -1
- package/dist/definitions/forms/Radio/Radio.d.ts.map +1 -1
- package/dist/definitions/index.d.ts +15 -1
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/primitives/PrimitiveLink.d.ts +11 -0
- package/dist/definitions/primitives/PrimitiveLink.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts +4 -0
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitivePressable.d.ts +16 -0
- package/dist/definitions/primitives/PrimitivePressable.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts +4 -0
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts +8 -0
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +4 -0
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveText.d.ts +14 -0
- package/dist/definitions/primitives/PrimitiveText.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveText.web.d.ts +6 -0
- package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveView.d.ts +21 -0
- package/dist/definitions/primitives/PrimitiveView.d.ts.map +1 -0
- package/dist/definitions/primitives/PrimitiveView.web.d.ts +23 -0
- package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +1 -0
- package/dist/definitions/primitives/helpers.d.ts +7 -0
- package/dist/definitions/primitives/helpers.d.ts.map +1 -0
- package/dist/definitions/primitives/reset.d.ts +2 -0
- package/dist/definitions/primitives/reset.d.ts.map +1 -0
- package/dist/definitions/story-components/Flex.d.ts +9 -0
- package/dist/definitions/story-components/Flex.d.ts.map +1 -0
- package/dist/definitions/story-components/Story.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +11 -0
- package/dist/definitions/story-components/StoryBlock.d.ts.map +1 -0
- package/dist/definitions/story-components/StoryContainer.d.ts +9 -0
- package/dist/definitions/story-components/StoryContainer.d.ts.map +1 -0
- package/dist/definitions/story-components/StoryContainer.web.d.ts +4 -0
- package/dist/definitions/story-components/StoryContainer.web.d.ts.map +1 -0
- package/dist/definitions/story-components/StoryGrid.d.ts +2 -1
- package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
- package/dist/definitions/story-components/StorySection.d.ts +23 -0
- package/dist/definitions/story-components/StorySection.d.ts.map +1 -0
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/story-components/index.d.ts +10 -1
- package/dist/definitions/story-components/index.d.ts.map +1 -1
- package/dist/definitions/story-components/theme.d.ts +2 -0
- package/dist/definitions/story-components/theme.d.ts.map +1 -0
- package/dist/definitions/themes/default.d.ts +64 -3
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts +8 -0
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +36 -0
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +1 -0
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts +30 -3
- package/dist/definitions/themes/late-ocean/tagLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +3 -0
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +9 -3
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +6 -4
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +18 -0
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +1 -0
- package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
- package/dist/index-browser-all.es.android.js +658 -161
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +658 -161
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +694 -153
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +804 -182
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +712 -135
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/tsbuildinfo +1 -1
- package/package.json +10 -5
- package/dist/definitions/story-components/Section.d.ts +0 -18
- package/dist/definitions/story-components/Section.d.ts.map +0 -1
- package/dist/styles.css +0 -117
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { FunctionComponent, ReactNode } from 'react';
|
|
2
|
+
import type { ViewProps as NativeViewProps } from 'react-native';
|
|
3
|
+
export interface PrimitiveViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Use internally to pass all styles to our implementation with styled-components
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
accessibilityRole?: Extract<NativeViewProps['accessibilityRole'], 'button' | 'radio' | 'none'>;
|
|
11
|
+
testID?: NativeViewProps['testID'];
|
|
12
|
+
nativeID?: NativeViewProps['nativeID'];
|
|
13
|
+
/**
|
|
14
|
+
* Use internally to pass all styles from PrimitiveScrollView
|
|
15
|
+
* @private
|
|
16
|
+
*/
|
|
17
|
+
style?: NativeViewProps['style'];
|
|
18
|
+
onLayout?: NativeViewProps['onLayout'];
|
|
19
|
+
}
|
|
20
|
+
export declare const PrimitiveView: FunctionComponent<PrimitiveViewProps>;
|
|
21
|
+
//# sourceMappingURL=PrimitiveView.d.ts.map
|
|
@@ -0,0 +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,CAAC,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,mBAAmB,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;IAC/F,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IACnC,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEjC,QAAQ,CAAC,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;CACxC;AAED,eAAO,MAAM,aAAa,uCAAiE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentProps, MouseEventHandler } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Except } from 'type-fest';
|
|
4
|
+
import type { PrimitiveViewProps } from './PrimitiveView';
|
|
5
|
+
export interface BaseWebPrimitiveViewProps extends Except<PrimitiveViewProps, 'accessibilityRole'> {
|
|
6
|
+
tabIndex?: HTMLDivElement['tabIndex'];
|
|
7
|
+
}
|
|
8
|
+
interface WebPrimitiveViewPropsWithOnPress extends BaseWebPrimitiveViewProps {
|
|
9
|
+
accessibilityRole: NonNullable<PrimitiveViewProps['accessibilityRole']>;
|
|
10
|
+
onPress: (e?: MouseEventHandler<HTMLDivElement> | any) => void;
|
|
11
|
+
}
|
|
12
|
+
interface WebPrimitiveViewPropsWithoutOnPress extends BaseWebPrimitiveViewProps {
|
|
13
|
+
accessibilityRole?: NonNullable<PrimitiveViewProps['accessibilityRole']>;
|
|
14
|
+
onPress?: never;
|
|
15
|
+
}
|
|
16
|
+
export declare type WebPrimitiveViewProps = WebPrimitiveViewPropsWithOnPress | WebPrimitiveViewPropsWithoutOnPress;
|
|
17
|
+
interface StyledDivProps extends ComponentProps<'div'> {
|
|
18
|
+
hasTextAncestor: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const StyledDiv: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StyledDivProps, never>;
|
|
21
|
+
export declare const PrimitiveView: React.ForwardRefExoticComponent<WebPrimitiveViewProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=PrimitiveView.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PrimitiveView.web.d.ts","sourceRoot":"","sources":["../../../src/primitives/PrimitiveView.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAgB,MAAM,OAAO,CAAC;AAC7E,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,MAAM,WAAW,yBAA0B,SAAQ,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAChG,QAAQ,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;CACvC;AAED,UAAU,gCAAiC,SAAQ,yBAAyB;IAC1E,iBAAiB,EAAE,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACxE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,GAAG,GAAG,KAAK,IAAI,CAAC;CAChE;AAED,UAAU,mCAAoC,SAAQ,yBAAyB;IAC7E,iBAAiB,CAAC,EAAE,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACzE,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,oBAAY,qBAAqB,GAAG,gCAAgC,GAAG,mCAAmC,CAAC;AAE3G,UAAU,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IACpD,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,qHAWrB,CAAC;AAEF,eAAO,MAAM,aAAa,8FAoBzB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { KeyboardEventHandler, MouseEventHandler } from 'react';
|
|
2
|
+
import type { GestureResponderEvent } from 'react-native';
|
|
3
|
+
declare type OnPress = (event: GestureResponderEvent) => void;
|
|
4
|
+
export declare function createPressClickHandler<T = HTMLElement>(onPress: OnPress | MouseEventHandler<T> | undefined): MouseEventHandler<T> | undefined;
|
|
5
|
+
export declare function createPressKeyUpHandler<T = HTMLElement>(onPress: OnPress | MouseEventHandler<T> | undefined): KeyboardEventHandler<T> | undefined;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/primitives/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACpF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,aAAK,OAAO,GAAG,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;AAEtD,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,WAAW,EACrD,OAAO,EAAE,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,GAClD,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,CAMlC;AAUD,wBAAgB,uBAAuB,CAAC,CAAC,GAAG,WAAW,EACrD,OAAO,EAAE,OAAO,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,SAAS,GAClD,oBAAoB,CAAC,CAAC,CAAC,GAAG,SAAS,CAOrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset.d.ts","sourceRoot":"","sources":["../../../src/primitives/reset.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,wDAKtB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ViewStyle } from 'react-native';
|
|
3
|
+
interface FlexProps {
|
|
4
|
+
direction: ViewStyle['flexDirection'];
|
|
5
|
+
padding?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const Flex: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../primitives/PrimitiveView").PrimitiveViewProps>, import("styled-components").DefaultTheme, FlexProps, never>;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Flex.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Flex.d.ts","sourceRoot":"","sources":["../../../src/story-components/Flex.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C,UAAU,SAAS;IACjB,SAAS,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,IAAI,sMAOhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../../src/story-components/Story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Story.d.ts","sourceRoot":"","sources":["../../../src/story-components/Story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAMpD,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB,CAAC,EAAE,eAAe,CAAC,uBAAuB,CAAC,CAAC;CAClE;AAMD,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,CAO1F"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { TypographyColor } from '../typography/Typography';
|
|
4
|
+
export interface StoryBlockProps {
|
|
5
|
+
background?: 'dark' | 'light' | 'primary' | 'transparent';
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const StoryBlockBackgroundContext: React.Context<"primary" | "transparent" | "light" | "dark" | undefined>;
|
|
9
|
+
export declare const useStoryBlockColor: (color?: TypographyColor | undefined) => TypographyColor;
|
|
10
|
+
export declare function StoryBlock({ children, background }: StoryBlockProps): ReactElement;
|
|
11
|
+
//# sourceMappingURL=StoryBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryBlock.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAoC,MAAM,OAAO,CAAC;AAIzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,aAAa,CAAC;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AA6BD,eAAO,MAAM,2BAA2B,yEAA8D,CAAC;AAGvG,eAAO,MAAM,kBAAkB,WAAY,eAAe,GAAG,SAAS,KAAG,eAGxE,CAAC;AAQF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,eAAe,GAAG,YAAY,CAQlF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
export interface StoryContainerProps {
|
|
3
|
+
children: NonNullable<ReactNode>;
|
|
4
|
+
state?: 'none' | 'active' | 'hover' | 'focus';
|
|
5
|
+
platform?: 'all' | 'native' | 'web';
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function StoryContainer({ children, title, state, platform, }: StoryContainerProps): ReactElement | null;
|
|
9
|
+
//# sourceMappingURL=StoryContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryContainer.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;IAC9C,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;IACpC,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,KAAc,EACd,QAAgB,GACjB,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAQ3C"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StoryContainerProps } from './StoryContainer';
|
|
3
|
+
export declare function StoryContainer({ children, state, title, platform }: StoryContainerProps): ReactElement | null;
|
|
4
|
+
//# sourceMappingURL=StoryContainer.web.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StoryContainer.web.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryContainer.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAG5D,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CAQ7G"}
|
|
@@ -9,8 +9,9 @@ export interface StoryGridColProps {
|
|
|
9
9
|
children: NonNullable<ReactNode>;
|
|
10
10
|
title?: string;
|
|
11
11
|
titleColor?: TypographyProps['color'];
|
|
12
|
+
platform?: 'all' | 'native' | 'web';
|
|
12
13
|
}
|
|
13
|
-
declare function StoryGridCol({ title, titleColor, children }: StoryGridColProps): ReactElement;
|
|
14
|
+
declare function StoryGridCol({ title, titleColor, children, platform }: StoryGridColProps): ReactElement | null;
|
|
14
15
|
export declare const StoryGrid: {
|
|
15
16
|
Row: typeof StoryGridRow;
|
|
16
17
|
Col: typeof StoryGridCol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryGrid.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"StoryGrid.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAwB1C,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CACjC;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,UAAoB,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAuBzF;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,KAAK,CAAC;CACrC;AAED,iBAAS,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAgB,EAAE,EAAE,iBAAiB,GAAG,YAAY,GAAG,IAAI,CAqB/G;AAED,eAAO,MAAM,SAAS;;;CAGrB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PrimitiveViewProps } from '../primitives/PrimitiveView';
|
|
4
|
+
export interface StorySectionProps extends PrimitiveViewProps {
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** @private */
|
|
9
|
+
internalIsDemoSection?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function StorySection({ title, className, children, internalIsDemoSection, ...props }: StorySectionProps): ReactElement;
|
|
12
|
+
export declare namespace StorySection {
|
|
13
|
+
var SubSection: ({ title, className, children, ...props }: StorySectionProps) => ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
14
|
+
var BlockSection: ({ title, className, children, ...props }: StorySectionProps) => ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
15
|
+
var DemoSection: ({ children }: DemoSectionProps) => ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
16
|
+
var Demo: ({ children }: DemoSectionProps) => ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
17
|
+
}
|
|
18
|
+
export interface DemoSectionProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
/** @deprecated use StorySection instead */
|
|
22
|
+
export declare const DeprecatedSection: typeof StorySection;
|
|
23
|
+
//# sourceMappingURL=StorySection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StorySection.d.ts","sourceRoot":"","sources":["../../../src/story-components/StorySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAUtE,MAAM,WAAW,iBAAkB,SAAQ,kBAAkB;IAC3D,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe;IACf,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,SAAS,EACT,QAAQ,EACR,qBAAqB,EACrB,GAAG,KAAK,EACT,EAAE,iBAAiB,GAAG,YAAY,CAQlC;yBAde,YAAY;;;;;;AA0C5B,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,SAAS,CAAC;CACrB;AAsBD,2CAA2C;AAC3C,eAAO,MAAM,iBAAiB,qBAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StoryTitle.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StoryTitle.d.ts","sourceRoot":"","sources":["../../../src/story-components/StoryTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAIhE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACjC,aAAa,CAAC,EAAE,eAAe,CAAC,eAAe,CAAC,CAAC;IACjD,QAAQ,EAAE,SAAS,CAAC;CACrB;AAUD,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ5F;yBARe,UAAU;;;;;AAU1B,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAQ3F;kBARQ,gBAAgB;;;AAYzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB;;;AAkBzB,iBAAS,gBAAgB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,eAAe,GAAG,YAAY,CAc3F;kBAdQ,gBAAgB"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Flex } from './Flex';
|
|
2
|
+
export type { StoryProps } from './Story';
|
|
2
3
|
export { Story } from './Story';
|
|
4
|
+
export type { StoryBlockProps } from './StoryBlock';
|
|
5
|
+
export { StoryBlock, useStoryBlockColor } from './StoryBlock';
|
|
6
|
+
export type { StoryContainerProps } from './StoryContainer';
|
|
7
|
+
export { StoryContainer } from './StoryContainer';
|
|
3
8
|
export { StoryDecorator } from './StoryDecorator';
|
|
9
|
+
export type { StoryGridColProps, StoryGridRowProps } from './StoryGrid';
|
|
4
10
|
export { StoryGrid } from './StoryGrid';
|
|
11
|
+
export type { StorySectionProps } from './StorySection';
|
|
12
|
+
export { StorySection } from './StorySection';
|
|
13
|
+
export { DeprecatedSection as Section } from './StorySection';
|
|
5
14
|
export { StoryTitle } from './StoryTitle';
|
|
6
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/story-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/story-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/story-components/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,KAAK,CAAC"}
|
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
import type { WindowSizeHelper } from '../utils/windowSize/createWindowSizeHelper';
|
|
2
|
+
export declare const breakpoints: {
|
|
3
|
+
values: {
|
|
4
|
+
base: number;
|
|
5
|
+
small: number;
|
|
6
|
+
medium: number;
|
|
7
|
+
large: number;
|
|
8
|
+
wide: number;
|
|
9
|
+
};
|
|
10
|
+
min: {
|
|
11
|
+
smallBreakpoint: string;
|
|
12
|
+
mediumBreakpoint: string;
|
|
13
|
+
largeBreakpoint: string;
|
|
14
|
+
wideBreakpoint: string;
|
|
15
|
+
};
|
|
16
|
+
max: {
|
|
17
|
+
smallBreakpoint: string;
|
|
18
|
+
mediumBreakpoint: string;
|
|
19
|
+
largeBreakpoint: string;
|
|
20
|
+
wideBreakpoint: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
2
23
|
export declare const theme: {
|
|
3
24
|
spacing: number;
|
|
4
25
|
colors: {
|
|
@@ -84,6 +105,14 @@ export declare const theme: {
|
|
|
84
105
|
pressedBackgroundColor: string;
|
|
85
106
|
disabledBorderColor: string;
|
|
86
107
|
};
|
|
108
|
+
white: {
|
|
109
|
+
backgroundColor: string;
|
|
110
|
+
disabledBackgroundColor: string;
|
|
111
|
+
hoverBackgroundColor: string;
|
|
112
|
+
pressedBackgroundColor: string;
|
|
113
|
+
focusBorderColor: string;
|
|
114
|
+
disabledBorderColor: string;
|
|
115
|
+
};
|
|
87
116
|
};
|
|
88
117
|
card: {
|
|
89
118
|
borderRadius: string;
|
|
@@ -202,18 +231,48 @@ export declare const theme: {
|
|
|
202
231
|
};
|
|
203
232
|
};
|
|
204
233
|
};
|
|
234
|
+
link: {
|
|
235
|
+
disabledColor: string;
|
|
236
|
+
};
|
|
205
237
|
};
|
|
206
238
|
tag: {
|
|
207
239
|
borderRadius: string;
|
|
208
240
|
padding: string;
|
|
209
241
|
primary: {
|
|
210
|
-
|
|
242
|
+
fill: {
|
|
243
|
+
backgroundColor: string;
|
|
244
|
+
borderWidth: string;
|
|
245
|
+
borderColor: string;
|
|
246
|
+
};
|
|
247
|
+
outline: {
|
|
248
|
+
backgroundColor: string;
|
|
249
|
+
borderWidth: string;
|
|
250
|
+
borderColor: string;
|
|
251
|
+
};
|
|
211
252
|
};
|
|
212
253
|
default: {
|
|
213
|
-
|
|
254
|
+
fill: {
|
|
255
|
+
backgroundColor: string;
|
|
256
|
+
borderWidth: string;
|
|
257
|
+
borderColor: string;
|
|
258
|
+
};
|
|
259
|
+
outline: {
|
|
260
|
+
backgroundColor: string;
|
|
261
|
+
borderWidth: string;
|
|
262
|
+
borderColor: string;
|
|
263
|
+
};
|
|
214
264
|
};
|
|
215
265
|
danger: {
|
|
216
|
-
|
|
266
|
+
fill: {
|
|
267
|
+
backgroundColor: string;
|
|
268
|
+
borderWidth: string;
|
|
269
|
+
borderColor: string;
|
|
270
|
+
};
|
|
271
|
+
outline: {
|
|
272
|
+
backgroundColor: string;
|
|
273
|
+
borderWidth: string;
|
|
274
|
+
borderColor: string;
|
|
275
|
+
};
|
|
217
276
|
};
|
|
218
277
|
};
|
|
219
278
|
shadows: {
|
|
@@ -226,6 +285,7 @@ export declare const theme: {
|
|
|
226
285
|
borderColor: string;
|
|
227
286
|
};
|
|
228
287
|
};
|
|
288
|
+
iconButton: import("./late-ocean/iconButton").IconButtonTheme;
|
|
229
289
|
listItem: {
|
|
230
290
|
padding: string;
|
|
231
291
|
borderColor: string;
|
|
@@ -236,5 +296,6 @@ export declare const theme: {
|
|
|
236
296
|
export declare type KittTheme = {
|
|
237
297
|
kitt: typeof theme;
|
|
238
298
|
responsive: WindowSizeHelper;
|
|
299
|
+
breakpoints: typeof breakpoints;
|
|
239
300
|
} & Record<string, unknown>;
|
|
240
301
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAenF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAoBvB,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,IAAI,EAAE,OAAO,KAAK,CAAC;IACnB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,OAAO,WAAW,CAAC;CACjC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -32,5 +32,13 @@ export declare const buttonLateOceanTheme: {
|
|
|
32
32
|
pressedBackgroundColor: string;
|
|
33
33
|
disabledBorderColor: string;
|
|
34
34
|
};
|
|
35
|
+
white: {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
disabledBackgroundColor: string;
|
|
38
|
+
hoverBackgroundColor: string;
|
|
39
|
+
pressedBackgroundColor: string;
|
|
40
|
+
focusBorderColor: string;
|
|
41
|
+
disabledBorderColor: string;
|
|
42
|
+
};
|
|
35
43
|
};
|
|
36
44
|
//# sourceMappingURL=buttonLateOceanTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buttonLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/buttonLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"buttonLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/buttonLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface IconButtonVariationValues {
|
|
2
|
+
pressedBackgroundColor: string;
|
|
3
|
+
}
|
|
4
|
+
export interface IconButtonTheme {
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
borderRadius: number;
|
|
9
|
+
borderWidth: number;
|
|
10
|
+
borderColor: string;
|
|
11
|
+
transition: {
|
|
12
|
+
property: string;
|
|
13
|
+
duration: string;
|
|
14
|
+
timingFunction: string;
|
|
15
|
+
};
|
|
16
|
+
scale: {
|
|
17
|
+
base: {
|
|
18
|
+
default: number;
|
|
19
|
+
hover: number;
|
|
20
|
+
active: number;
|
|
21
|
+
};
|
|
22
|
+
medium: {
|
|
23
|
+
hover: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
scale: number;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
borderColor: string;
|
|
30
|
+
};
|
|
31
|
+
default: IconButtonVariationValues;
|
|
32
|
+
white: IconButtonVariationValues;
|
|
33
|
+
}
|
|
34
|
+
export declare const iconButton: IconButtonTheme;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=iconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iconButton.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/iconButton.ts"],"names":[],"mappings":"AAEA,UAAU,yBAAyB;IACjC,sBAAsB,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,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,QAAQ,EAAE;QACR,KAAK,EAAE,MAAM,CAAC;QACd,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,OAAO,EAAE,yBAAyB,CAAC;IACnC,KAAK,EAAE,yBAAyB,CAAC;CAClC;AAED,eAAO,MAAM,UAAU,EAAE,eAiCxB,CAAC"}
|
|
@@ -2,13 +2,40 @@ export declare const tagLateOceanTheme: {
|
|
|
2
2
|
borderRadius: string;
|
|
3
3
|
padding: string;
|
|
4
4
|
primary: {
|
|
5
|
-
|
|
5
|
+
fill: {
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
borderWidth: string;
|
|
8
|
+
borderColor: string;
|
|
9
|
+
};
|
|
10
|
+
outline: {
|
|
11
|
+
backgroundColor: string;
|
|
12
|
+
borderWidth: string;
|
|
13
|
+
borderColor: string;
|
|
14
|
+
};
|
|
6
15
|
};
|
|
7
16
|
default: {
|
|
8
|
-
|
|
17
|
+
fill: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
borderWidth: string;
|
|
20
|
+
borderColor: string;
|
|
21
|
+
};
|
|
22
|
+
outline: {
|
|
23
|
+
backgroundColor: string;
|
|
24
|
+
borderWidth: string;
|
|
25
|
+
borderColor: string;
|
|
26
|
+
};
|
|
9
27
|
};
|
|
10
28
|
danger: {
|
|
11
|
-
|
|
29
|
+
fill: {
|
|
30
|
+
backgroundColor: string;
|
|
31
|
+
borderWidth: string;
|
|
32
|
+
borderColor: string;
|
|
33
|
+
};
|
|
34
|
+
outline: {
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderWidth: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
12
39
|
};
|
|
13
40
|
};
|
|
14
41
|
//# sourceMappingURL=tagLateOceanTheme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tagLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/tagLateOceanTheme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tagLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/tagLateOceanTheme.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuC7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typographyLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/typographyLateOceanTheme.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,aAAa,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAiBD,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"typographyLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/typographyLateOceanTheme.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,aAAa,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAiBD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEpC,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import type { TextProps } from 'react-native';
|
|
3
2
|
import type { Except, SetOptional } from 'type-fest';
|
|
3
|
+
import type { PrimitiveTextProps } from '../primitives/PrimitiveText';
|
|
4
4
|
declare type TypographyHeaderType = `header${'1' | '2' | '3' | '4' | '5'}`;
|
|
5
5
|
declare type TypographyBodyType = 'body' | `body-${'large' | 'medium' | 'small' | 'xsmall'}`;
|
|
6
6
|
declare type TypographyType = TypographyHeaderType | TypographyBodyType;
|
|
7
7
|
declare type TypographyVariant = 'regular' | 'bold' | 'italic';
|
|
8
8
|
export declare type TypographyColor = 'black' | 'black-light' | 'white' | 'white-light' | 'grey' | 'grey-light' | 'primary' | 'primary-light' | 'accent' | 'success' | 'danger';
|
|
9
9
|
export declare function useTypographyColor(): TypographyColor;
|
|
10
|
-
export interface TypographyProps extends Except<
|
|
11
|
-
accessibilityRole: NonNullable<
|
|
10
|
+
export interface TypographyProps extends Except<PrimitiveTextProps, 'accessibilityRole'> {
|
|
11
|
+
accessibilityRole: NonNullable<PrimitiveTextProps['accessibilityRole']> | null;
|
|
12
12
|
/** base type. Inherited from parent Typography if not specified */
|
|
13
13
|
base?: TypographyType;
|
|
14
14
|
small?: TypographyType;
|
|
@@ -25,6 +25,12 @@ export declare function Typography({ accessibilityRole, base, variant, color, ..
|
|
|
25
25
|
export declare namespace Typography {
|
|
26
26
|
var Text: typeof TypographyText;
|
|
27
27
|
var Paragraph: typeof TypographyParagraph;
|
|
28
|
+
var Header1: FC<TypographyPropsWithoutRole>;
|
|
29
|
+
var Header2: FC<TypographyPropsWithoutRole>;
|
|
30
|
+
var Header3: FC<TypographyPropsWithoutRole>;
|
|
31
|
+
var Header4: FC<TypographyPropsWithoutRole>;
|
|
32
|
+
var Header5: FC<TypographyPropsWithoutRole>;
|
|
33
|
+
var Header6: FC<TypographyPropsWithoutRole>;
|
|
28
34
|
var h1: FC<TypographyPropsWithoutRole>;
|
|
29
35
|
var h2: FC<TypographyPropsWithoutRole>;
|
|
30
36
|
var h3: FC<TypographyPropsWithoutRole>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzD,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGtE,aAAK,oBAAoB,GAAG,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AACnE,aAAK,kBAAkB,GAAG,MAAM,GAAG,QAAQ,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,EAAE,CAAC;AACrF,aAAK,cAAc,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AAChE,aAAK,iBAAiB,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AACvD,oBAAY,eAAe,GACvB,OAAO,GACP,aAAa,GACb,OAAO,GACP,aAAa,GACb,MAAM,GACN,YAAY,GACZ,SAAS,GACT,eAAe,GACf,QAAQ,GACR,SAAS,GACT,QAAQ,CAAC;AAKb,wBAAgB,kBAAkB,IAAI,eAAe,CAEpD;AAkDD,MAAM,WAAW,eAAgB,SAAQ,MAAM,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAEtF,iBAAiB,EAAE,WAAW,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,GAAG,IAAI,CAAC;IAC/E,mEAAmE;IACnE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,iGAAiG;IACjG,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB;AACD,oBAAY,0BAA0B,GAAG,MAAM,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;AAUtF,wBAAgB,UAAU,CAAC,EACzB,iBAAiB,EACjB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,GAAG,UAAU,EACd,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI,CA6BvC;yBAnCe,UAAU;;;;;;;;;;;;;;;AAqC1B,oBAAY,mBAAmB,GAAG,WAAW,CAAC,eAAe,EAAE,mBAAmB,CAAC,CAAC;AACpF,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CAEhE;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,mBAAmB,GAAG,YAAY,CAErE;AAED,oBAAY,sBAAsB,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PrimitiveLinkProps } from '../primitives/PrimitiveLink';
|
|
3
3
|
import type { TypographyPropsWithoutRole } from './Typography';
|
|
4
|
-
interface
|
|
4
|
+
interface StyledLinkProps {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
noUnderline?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface TypographyLinkProps extends
|
|
8
|
+
export interface TypographyLinkProps extends StyledLinkProps, TypographyPropsWithoutRole {
|
|
9
|
+
variant: NonNullable<TypographyPropsWithoutRole['variant']>;
|
|
9
10
|
href?: string;
|
|
11
|
+
onPress: PrimitiveLinkProps['onPress'];
|
|
10
12
|
}
|
|
11
|
-
export declare function TypographyLink({ disabled, noUnderline,
|
|
13
|
+
export declare function TypographyLink({ children, disabled, noUnderline, onPress, ...otherProps }: TypographyLinkProps): ReactElement;
|
|
12
14
|
export {};
|
|
13
15
|
//# 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;AAI1C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TypographyLink.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,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,0BAA0B;IACtF,OAAO,EAAE,WAAW,CAAC,0BAA0B,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;CACxC;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,GAAG,UAAU,EACd,EAAE,mBAAmB,GAAG,YAAY,CAapC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
interface C1Props {
|
|
3
|
+
color: 'white' | 'black';
|
|
4
|
+
}
|
|
5
|
+
declare function C1({ color }: C1Props): ReactElement;
|
|
6
|
+
export declare const C2: import("styled-components").ThemedStyledFunction<typeof C1, import("styled-components").DefaultTheme, Partial<C1Props> & {
|
|
7
|
+
[others: string]: any;
|
|
8
|
+
}, string | number>;
|
|
9
|
+
export declare const C3: import("styled-components").StyledComponent<typeof C1, import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const C4: import("styled-components").ThemedStyledFunction<typeof C1, import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
interface C5Props {
|
|
12
|
+
color: string;
|
|
13
|
+
align: 'center' | 'normal';
|
|
14
|
+
}
|
|
15
|
+
export declare const C5: import("styled-components").StyledComponent<typeof C1, import("styled-components").DefaultTheme, C5Props, never>;
|
|
16
|
+
export declare function C5Usage(): ReactElement;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=styled-component-typing-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled-component-typing-test.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/styled-component-typing-test.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,UAAU,OAAO;IACf,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B;AAED,iBAAS,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,OAAO,GAAG,YAAY,CAE5C;AAGD,eAAO,MAAM,EAAE;;mBAMb,CAAC;AAGH,eAAO,MAAM,EAAE,6GAId,CAAC;AAOF,eAAO,MAAM,EAAE,kHAMb,CAAC;AAGH,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC5B;AAED,eAAO,MAAM,EAAE,kHAId,CAAC;AAEF,wBAAgB,OAAO,IAAI,YAAY,CAStC"}
|
|
@@ -5,7 +5,7 @@ export interface WindowSizeHelper {
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* const Container = styled
|
|
8
|
+
* const Container = styled(PrimitiveView)`
|
|
9
9
|
* ${({ theme }) =>
|
|
10
10
|
* theme.responsive.ifWindowSizeMatches(
|
|
11
11
|
* { minWidth: KittBreakpoints.SMALL },
|
|
@@ -20,7 +20,7 @@ export interface WindowSizeHelper {
|
|
|
20
20
|
*
|
|
21
21
|
* @example
|
|
22
22
|
* ```typescript
|
|
23
|
-
* const Container = styled
|
|
23
|
+
* const Container = styled(PrimitiveView)`
|
|
24
24
|
* ${({ theme }) =>
|
|
25
25
|
* theme.responsive.mapWindowWidth(
|
|
26
26
|
* [KittBreakpoints.BASE, 'padding: 5px 0 10px;'],
|