@ornikar/kitt-universal 1.2.0 → 1.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/CHANGELOG.md +0 -12
- 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 +1 -2
- 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 +5 -2
- package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
- package/dist/definitions/ListItem/ListItem.d.ts +3 -5
- 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 +3 -4
- 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 +4 -2
- 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.map +1 -1
- package/dist/definitions/forms/InputField/InputField.d.ts.map +1 -1
- package/dist/definitions/forms/InputText/InputText.d.ts +1 -0
- 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 +1 -15
- package/dist/definitions/index.d.ts.map +1 -1
- package/dist/definitions/story-components/Section.d.ts +18 -0
- package/dist/definitions/story-components/Section.d.ts.map +1 -0
- package/dist/definitions/story-components/Story.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryGrid.d.ts +1 -2
- package/dist/definitions/story-components/StoryGrid.d.ts.map +1 -1
- package/dist/definitions/story-components/StoryTitle.d.ts.map +1 -1
- package/dist/definitions/story-components/index.d.ts +1 -10
- package/dist/definitions/story-components/index.d.ts.map +1 -1
- package/dist/definitions/themes/default.d.ts +0 -34
- package/dist/definitions/themes/default.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts +0 -8
- package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts +0 -3
- package/dist/definitions/themes/late-ocean/typographyLateOceanTheme.d.ts.map +1 -1
- package/dist/definitions/typography/Typography.d.ts +3 -9
- package/dist/definitions/typography/Typography.d.ts.map +1 -1
- package/dist/definitions/typography/TypographyLink.d.ts +4 -6
- package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
- package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +2 -2
- package/dist/index-browser-all.es.android.js +143 -578
- package/dist/index-browser-all.es.android.js.map +1 -1
- package/dist/index-browser-all.es.ios.js +143 -578
- package/dist/index-browser-all.es.ios.js.map +1 -1
- package/dist/index-browser-all.es.js +134 -613
- package/dist/index-browser-all.es.js.map +1 -1
- package/dist/index-browser-all.es.web.js +163 -723
- package/dist/index-browser-all.es.web.js.map +1 -1
- package/dist/index-node-14.17.cjs.js +122 -640
- package/dist/index-node-14.17.cjs.js.map +1 -1
- package/dist/styles.css +117 -0
- package/dist/tsbuildinfo +1 -1
- package/package.json +3 -9
- package/dist/definitions/IconButton/IconButton.d.ts +0 -11
- package/dist/definitions/IconButton/IconButton.d.ts.map +0 -1
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts +0 -13
- package/dist/definitions/IconButton/PressableAnimatedContainer.d.ts.map +0 -1
- package/dist/definitions/IconButton/PressableIconButton.d.ts +0 -8
- package/dist/definitions/IconButton/PressableIconButton.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveLink.d.ts +0 -11
- package/dist/definitions/primitives/PrimitiveLink.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitiveLink.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitivePressable.d.ts +0 -16
- package/dist/definitions/primitives/PrimitivePressable.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitivePressable.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts +0 -8
- package/dist/definitions/primitives/PrimitiveScrollView.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts +0 -4
- package/dist/definitions/primitives/PrimitiveScrollView.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveText.d.ts +0 -14
- package/dist/definitions/primitives/PrimitiveText.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveText.web.d.ts +0 -6
- package/dist/definitions/primitives/PrimitiveText.web.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveView.d.ts +0 -21
- package/dist/definitions/primitives/PrimitiveView.d.ts.map +0 -1
- package/dist/definitions/primitives/PrimitiveView.web.d.ts +0 -23
- package/dist/definitions/primitives/PrimitiveView.web.d.ts.map +0 -1
- package/dist/definitions/primitives/helpers.d.ts +0 -7
- package/dist/definitions/primitives/helpers.d.ts.map +0 -1
- package/dist/definitions/primitives/reset.d.ts +0 -2
- package/dist/definitions/primitives/reset.d.ts.map +0 -1
- package/dist/definitions/story-components/Flex.d.ts +0 -9
- package/dist/definitions/story-components/Flex.d.ts.map +0 -1
- package/dist/definitions/story-components/StoryBlock.d.ts +0 -11
- package/dist/definitions/story-components/StoryBlock.d.ts.map +0 -1
- package/dist/definitions/story-components/StoryContainer.d.ts +0 -9
- package/dist/definitions/story-components/StoryContainer.d.ts.map +0 -1
- package/dist/definitions/story-components/StoryContainer.web.d.ts +0 -4
- package/dist/definitions/story-components/StoryContainer.web.d.ts.map +0 -1
- package/dist/definitions/story-components/StorySection.d.ts +0 -23
- package/dist/definitions/story-components/StorySection.d.ts.map +0 -1
- package/dist/definitions/story-components/theme.d.ts +0 -2
- package/dist/definitions/story-components/theme.d.ts.map +0 -1
- package/dist/definitions/themes/late-ocean/iconButton.d.ts +0 -36
- package/dist/definitions/themes/late-ocean/iconButton.d.ts.map +0 -1
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts +0 -18
- package/dist/definitions/utils/tests/styled-component-typing-test.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
2
3
|
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<TextProps, 'accessibilityRole'> {
|
|
11
|
+
accessibilityRole: NonNullable<TextProps['accessibilityRole']> | null;
|
|
12
12
|
/** base type. Inherited from parent Typography if not specified */
|
|
13
13
|
base?: TypographyType;
|
|
14
14
|
small?: TypographyType;
|
|
@@ -25,12 +25,6 @@ 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>;
|
|
34
28
|
var h1: FC<TypographyPropsWithoutRole>;
|
|
35
29
|
var h2: FC<TypographyPropsWithoutRole>;
|
|
36
30
|
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;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cA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YAAY,GAAG,IAAI,CA2BvC;yBAjCe,UAAU;;;;;;;;;AAmC1B,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,CAGrE;AAED,oBAAY,sBAAsB,GAAG,0BAA0B,CAAC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SetRequired } from 'type-fest';
|
|
3
3
|
import type { TypographyPropsWithoutRole } from './Typography';
|
|
4
|
-
interface
|
|
4
|
+
interface StyledTypographyLinkProps extends TypographyPropsWithoutRole {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
noUnderline?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface TypographyLinkProps extends
|
|
9
|
-
variant: NonNullable<TypographyPropsWithoutRole['variant']>;
|
|
8
|
+
export interface TypographyLinkProps extends SetRequired<StyledTypographyLinkProps, 'onPress'> {
|
|
10
9
|
href?: string;
|
|
11
|
-
onPress: PrimitiveLinkProps['onPress'];
|
|
12
10
|
}
|
|
13
|
-
export declare function TypographyLink({
|
|
11
|
+
export declare function TypographyLink({ disabled, noUnderline, variant, ...otherProps }: TypographyLinkProps): ReactElement;
|
|
14
12
|
export {};
|
|
15
13
|
//# 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,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAmB,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAGhF,UAAU,yBAA0B,SAAQ,0BAA0B;IACpE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiBD,MAAM,WAAW,mBAAoB,SAAQ,WAAW,CAAC,yBAAyB,EAAE,SAAS,CAAC;IAC5F,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,WAAW,EACX,OAAgB,EAChB,GAAG,UAAU,EACd,EAAE,mBAAmB,GAAG,YAAY,CAUpC"}
|
|
@@ -5,7 +5,7 @@ export interface WindowSizeHelper {
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
8
|
-
* const Container = styled
|
|
8
|
+
* const Container = styled.View`
|
|
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.View`
|
|
24
24
|
* ${({ theme }) =>
|
|
25
25
|
* theme.responsive.mapWindowWidth(
|
|
26
26
|
* [KittBreakpoints.BASE, 'padding: 5px 0 10px;'],
|