@ornikar/kitt-universal 3.0.1 → 3.4.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.
Files changed (56) hide show
  1. package/dist/definitions/Button/AnimatedButtonPressable.d.ts +14 -0
  2. package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -0
  3. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +17 -0
  4. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -0
  5. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +11 -0
  6. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -0
  7. package/dist/definitions/Button/Button.d.ts +9 -4
  8. package/dist/definitions/Button/Button.d.ts.map +1 -1
  9. package/dist/definitions/Button/ButtonContent.d.ts +11 -3
  10. package/dist/definitions/Button/ButtonContent.d.ts.map +1 -1
  11. package/dist/definitions/Button/StyledDisabled.d.ts +3 -0
  12. package/dist/definitions/Button/StyledDisabled.d.ts.map +1 -0
  13. package/dist/definitions/Button/isSubtle.d.ts +3 -0
  14. package/dist/definitions/Button/isSubtle.d.ts.map +1 -0
  15. package/dist/definitions/Icon/SpinningIcon.web.d.ts.map +1 -1
  16. package/dist/definitions/IconButton/PressableIconButton.d.ts.map +1 -1
  17. package/dist/definitions/Loader/LargeLoader.web.d.ts.map +1 -1
  18. package/dist/definitions/Loader/Loader.d.ts +1 -1
  19. package/dist/definitions/Loader/Loader.d.ts.map +1 -1
  20. package/dist/definitions/themes/default.d.ts +3 -43
  21. package/dist/definitions/themes/default.d.ts.map +1 -1
  22. package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts +42 -35
  23. package/dist/definitions/themes/late-ocean/buttonLateOceanTheme.d.ts.map +1 -1
  24. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts +2 -0
  25. package/dist/definitions/themes/late-ocean/colorsLateOceanTheme.d.ts.map +1 -1
  26. package/dist/definitions/typography/Typography.d.ts +13 -11
  27. package/dist/definitions/typography/Typography.d.ts.map +1 -1
  28. package/dist/definitions/typography/TypographyIcon.d.ts +2 -2
  29. package/dist/definitions/typography/TypographyIcon.d.ts.map +1 -1
  30. package/dist/definitions/typography/TypographyLink.d.ts.map +1 -1
  31. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts +7 -2
  32. package/dist/definitions/utils/windowSize/createWindowSizeHelper.d.ts.map +1 -1
  33. package/dist/definitions/utils/windowSize/useMatchWindowSize.d.ts +5 -2
  34. package/dist/definitions/utils/windowSize/useMatchWindowSize.d.ts.map +1 -1
  35. package/dist/definitions/utils/withTheme.d.ts +2 -2
  36. package/dist/definitions/utils/withTheme.d.ts.map +1 -1
  37. package/dist/index-browser-all.es.android.js +461 -255
  38. package/dist/index-browser-all.es.android.js.map +1 -1
  39. package/dist/index-browser-all.es.css +2 -2
  40. package/dist/index-browser-all.es.ios.js +461 -255
  41. package/dist/index-browser-all.es.ios.js.map +1 -1
  42. package/dist/index-browser-all.es.js +504 -291
  43. package/dist/index-browser-all.es.js.map +1 -1
  44. package/dist/index-browser-all.es.web.js +500 -281
  45. package/dist/index-browser-all.es.web.js.map +1 -1
  46. package/dist/index-node-14.17.cjs.css +2 -2
  47. package/dist/index-node-14.17.cjs.js +462 -213
  48. package/dist/index-node-14.17.cjs.js.map +1 -1
  49. package/dist/index-node-14.17.cjs.web.css +3 -2
  50. package/dist/index-node-14.17.cjs.web.js +448 -215
  51. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  52. package/dist/styles.css +3 -2
  53. package/dist/tsbuildinfo +1 -1
  54. package/package.json +3 -3
  55. package/dist/definitions/Button/ButtonPressable.d.ts +0 -13
  56. package/dist/definitions/Button/ButtonPressable.d.ts.map +0 -1
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import type { PressableProps, View } from 'react-native';
3
+ import type { ButtonType } from './Button';
4
+ export interface StyledPressableProps extends PressableProps {
5
+ $isStretch?: boolean;
6
+ $type: ButtonType;
7
+ }
8
+ export interface AnimatedButtonPressableProps extends PressableProps {
9
+ accessibilityRole: NonNullable<PressableProps['accessibilityRole']>;
10
+ $type: ButtonType;
11
+ $isStretch?: boolean;
12
+ }
13
+ export declare const AnimatedButtonPressable: import("react").ForwardRefExoticComponent<AnimatedButtonPressableProps & import("react").RefAttributes<View>>;
14
+ //# sourceMappingURL=AnimatedButtonPressable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedButtonPressable.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAGzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;CACnB;AAcD,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAClE,iBAAiB,EAAE,WAAW,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACpE,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,+GA8DnC,CAAC"}
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import type { DefaultTheme } from 'styled-components/native';
3
+ import type { AnimatedButtonPressableProps } from './AnimatedButtonPressable';
4
+ import type { ButtonType } from './Button';
5
+ interface AnimatedButtonPressableContainerProps {
6
+ theme: DefaultTheme;
7
+ $isDisabled?: boolean;
8
+ $type: ButtonType;
9
+ $isStretch?: boolean;
10
+ $isSubtle?: boolean;
11
+ }
12
+ export declare const AnimatedButtonPressableContainer: import("react").ComponentType<import("type-fest").Except<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & AnimatedButtonPressableContainerProps & {
13
+ as?: import("react").ElementType<any> | undefined;
14
+ }, "theme">>;
15
+ export declare const AnimatedButtonPressable: import("react").ForwardRefExoticComponent<AnimatedButtonPressableProps & import("react").RefAttributes<HTMLDivElement>>;
16
+ export {};
17
+ //# sourceMappingURL=AnimatedButtonPressable.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedButtonPressable.web.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedButtonPressable.web.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAG3C,UAAU,qCAAqC;IAC7C,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gCAAgC;;YA0H3C,CAAC;AAEH,eAAO,MAAM,uBAAuB,yHAQnC,CAAC"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="styled-components-react-native" />
2
+ import type { ViewProps } from 'react-native';
3
+ import type { ButtonType } from './Button';
4
+ export interface BaseStyledButtonPressableProps extends ViewProps {
5
+ $type: ButtonType;
6
+ $isLarge?: boolean;
7
+ $isStretch?: boolean;
8
+ $isDisabled?: boolean;
9
+ }
10
+ export declare const BaseStyledButtonPressable: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, BaseStyledButtonPressableProps, never>;
11
+ //# sourceMappingURL=BaseStyledButtonPressable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseStyledButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/BaseStyledButtonPressable.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,8BAA+B,SAAQ,SAAS;IAC/D,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,yBAAyB,kKA8BrC,CAAC"}
@@ -1,20 +1,25 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import type { PressableProps } from 'react-native';
3
- export declare type ButtonType = 'primary' | 'secondary' | 'subtle' | 'subtle-dark';
2
+ import type { PressableProps, View } from 'react-native';
3
+ export declare type SubtleButtonType = 'subtle' | 'subtle-dark';
4
+ export declare type ButtonType = 'primary' | 'default' | SubtleButtonType | 'white';
4
5
  declare type IconPosition = 'right' | 'left';
5
6
  export interface ButtonProps {
6
7
  children?: ReactNode;
7
8
  type?: ButtonType;
8
9
  disabled?: boolean;
10
+ stretch?: boolean;
11
+ large?: boolean;
9
12
  icon?: ReactElement;
10
13
  iconPosition?: IconPosition;
11
14
  iconSpin?: boolean;
12
- stretch?: boolean;
13
15
  testID?: PressableProps['testID'];
14
16
  href?: PressableProps['href'];
15
17
  hrefAttrs?: PressableProps['hrefAttrs'];
18
+ accessibilityRole?: PressableProps['accessibilityRole'];
19
+ className?: string;
20
+ style?: PressableProps['style'];
16
21
  onPress?: () => void;
17
22
  }
18
- export declare function Button({ children, type, icon, iconPosition, iconSpin, stretch, disabled, testID, href, hrefAttrs, onPress, }: ButtonProps): ReactElement;
23
+ export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<View>>;
19
24
  export {};
20
25
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Button/Button.tsx"],"names":[],"mappings":"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G,SAAS,GAAG,gBAAgB,GAAG,OAAO,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,iBAAiB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,8FA+ClB,CAAC"}
@@ -1,10 +1,18 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { Except } from 'type-fest';
3
+ import type { TypographyColor } from '../typography/Typography';
3
4
  import type { ButtonProps, ButtonType } from './Button';
4
- interface ButtonContentProps extends Except<ButtonProps, 'onPress'> {
5
- isPressed?: boolean;
5
+ interface ButtonContentProps extends Except<ButtonProps, 'onPress' | 'disabled' | 'stretch'> {
6
+ isDisabled?: boolean;
6
7
  type: NonNullable<ButtonType>;
8
+ $isStretch: ButtonProps['stretch'];
7
9
  }
8
- export declare function ButtonContent({ type, isPressed, stretch, icon, iconPosition, iconSpin, disabled, children, }: ButtonContentProps): ReactElement | null;
10
+ interface ButtonContentChildrenProps extends Except<ButtonProps, 'onPress' | 'disabled' | 'stretch'> {
11
+ isDisabled?: boolean;
12
+ type: NonNullable<ButtonType>;
13
+ color: TypographyColor;
14
+ }
15
+ export declare function ButtonContentChildren({ type, icon, iconPosition, iconSpin, isDisabled, color, children, }: ButtonContentChildrenProps): ReactElement | null;
16
+ export declare function ButtonContent({ type, isDisabled, $isStretch, icon, children, ...props }: ButtonContentProps): ReactElement;
9
17
  export {};
10
18
  //# sourceMappingURL=ButtonContent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonContent.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAIxC,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAwExD,UAAU,kBAAmB,SAAQ,MAAM,CAAC,WAAW,EAAE,SAAS,CAAC;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CAC/B;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,SAAS,EACT,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,QAAQ,GACT,EAAE,kBAAkB,GAAG,YAAY,GAAG,IAAI,CAwC1C"}
1
+ {"version":3,"file":"ButtonContent.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,0BAA0B,CAAC;AAIrF,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA+ExD,UAAU,kBAAmB,SAAQ,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1F,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC9B,UAAU,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CACpC;AAED,UAAU,0BAA2B,SAAQ,MAAM,CAAC,WAAW,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IAClG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC9B,KAAK,EAAE,eAAe,CAAC;CACxB;AAQD,wBAAgB,qBAAqB,CAAC,EACpC,IAAI,EACJ,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,KAAK,EACL,QAAQ,GACT,EAAE,0BAA0B,GAAG,YAAY,GAAG,IAAI,CA+ClD;AA4BD,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,UAAU,EACV,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG,YAAY,CAUnC"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="styled-components-react-native" />
2
+ export declare const StyledDisabled: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, {}, never>;
3
+ //# sourceMappingURL=StyledDisabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledDisabled.d.ts","sourceRoot":"","sources":["../../../src/Button/StyledDisabled.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,cAAc,sIAW1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ButtonType, SubtleButtonType } from './Button';
2
+ export declare function isSubtle(type: ButtonType): type is SubtleButtonType;
3
+ //# sourceMappingURL=isSubtle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSubtle.d.ts","sourceRoot":"","sources":["../../../src/Button/isSubtle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE7D,wBAAgB,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,IAAI,gBAAgB,CAEnE"}
@@ -1 +1 @@
1
- {"version":3,"file":"SpinningIcon.web.d.ts","sourceRoot":"","sources":["../../../src/Icon/SpinningIcon.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAsBxD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAE1E"}
1
+ {"version":3,"file":"SpinningIcon.web.d.ts","sourceRoot":"","sources":["../../../src/Icon/SpinningIcon.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AA0BxD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,iBAAiB,GAAG,YAAY,CAE1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAKnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAoE3D,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAM/F"}
1
+ {"version":3,"file":"PressableIconButton.d.ts","sourceRoot":"","sources":["../../../src/IconButton/PressableIconButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAMnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AA2E3D,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CACxC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,GAAG,YAAY,CAM/F"}
@@ -1 +1 @@
1
- {"version":3,"file":"LargeLoader.web.d.ts","sourceRoot":"","sources":["../../../src/Loader/LargeLoader.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA+E1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,YAAY,CAatE"}
1
+ {"version":3,"file":"LargeLoader.web.d.ts","sourceRoot":"","sources":["../../../src/Loader/LargeLoader.web.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAoF1C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,GAAG,YAAY,CAatE"}
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { TypographyIconProps } from '../typography/TypographyIcon';
3
3
  export interface LoaderProps {
4
- color?: TypographyIconProps['color'];
4
+ color?: Exclude<TypographyIconProps['color'], 'inherit'>;
5
5
  size?: TypographyIconProps['size'];
6
6
  }
7
7
  export declare function Loader({ color, size }: LoaderProps): ReactElement;
@@ -1 +1 @@
1
- {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAC;IACrC,IAAI,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;CACpC;AAOD,wBAAgB,MAAM,CAAC,EAAE,KAAiB,EAAE,IAAS,EAAE,EAAE,WAAW,GAAG,YAAY,CAIlF"}
1
+ {"version":3,"file":"Loader.d.ts","sourceRoot":"","sources":["../../../src/Loader/Loader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,mBAAmB,CAAC,MAAM,CAAC,CAAC;CACpC;AAOD,wBAAgB,MAAM,CAAC,EAAE,KAAiB,EAAE,IAAS,EAAE,EAAE,WAAW,GAAG,YAAY,CAIlF"}
@@ -34,6 +34,8 @@ export declare const theme: {
34
34
  black: string;
35
35
  uiBackground: string;
36
36
  uiBackgroundLight: string;
37
+ transparent: string;
38
+ disabled: string;
37
39
  overlay: {
38
40
  dark: string;
39
41
  light: string;
@@ -74,49 +76,7 @@ export declare const theme: {
74
76
  backgroundColor: string;
75
77
  };
76
78
  };
77
- button: {
78
- borderRadius: string;
79
- borderWidth: string;
80
- minHeight: string;
81
- minWidth: string;
82
- maxWidth: string;
83
- iconSize: number;
84
- contentPadding: {
85
- default: string;
86
- };
87
- primary: {
88
- backgroundColor: string;
89
- disabledBackgroundColor: string;
90
- pressedBackgroundColor: string;
91
- disabledBorderColor: string;
92
- };
93
- secondary: {
94
- backgroundColor: string;
95
- disabledBackgroundColor: string;
96
- pressedBackgroundColor: string;
97
- disabledBorderColor: string;
98
- };
99
- subtle: {
100
- backgroundColor: string;
101
- disabledBackgroundColor: string;
102
- pressedBackgroundColor: string;
103
- disabledBorderColor: string;
104
- };
105
- 'subtle-dark': {
106
- backgroundColor: string;
107
- disabledBackgroundColor: string;
108
- pressedBackgroundColor: string;
109
- disabledBorderColor: string;
110
- };
111
- white: {
112
- backgroundColor: string;
113
- disabledBackgroundColor: string;
114
- hoverBackgroundColor: string;
115
- pressedBackgroundColor: string;
116
- focusBorderColor: string;
117
- disabledBorderColor: string;
118
- };
119
- };
79
+ button: import("./late-ocean/buttonLateOceanTheme").ButtonTheme;
120
80
  card: {
121
81
  borderRadius: string;
122
82
  borderWidth: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAoBvB,CAAC;AAIF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjB,CAAC;AAEF,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAC"}
1
+ {"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../../../src/themes/default.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;CAoBvB,CAAC;AAIF,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBjB,CAAC;AAEF,oBAAY,KAAK,GAAG,OAAO,KAAK,CAAC"}
@@ -1,44 +1,51 @@
1
- export declare const buttonLateOceanTheme: {
1
+ export interface ButtonVariantTheme {
2
+ backgroundColor: string;
3
+ pressedBackgroundColor: string;
4
+ hoverBackgroundColor: string;
5
+ focusBorderColor: string;
6
+ }
7
+ export interface SubtleButtonVariantTheme extends ButtonVariantTheme {
8
+ color: string;
9
+ hoverColor: string;
10
+ activeColor: string;
11
+ }
12
+ export interface DisabledButtonVariantTheme extends ButtonVariantTheme {
13
+ borderColor: string;
14
+ }
15
+ export interface ButtonTheme {
2
16
  borderRadius: string;
3
- borderWidth: string;
17
+ borderWidth: {
18
+ disabled: string;
19
+ focus: string;
20
+ };
4
21
  minHeight: string;
5
22
  minWidth: string;
6
23
  maxWidth: string;
7
- iconSize: number;
24
+ scale: {
25
+ base: {
26
+ default: number;
27
+ hover: number;
28
+ active: number;
29
+ };
30
+ medium: {
31
+ hover: number;
32
+ };
33
+ };
8
34
  contentPadding: {
9
35
  default: string;
36
+ large: string;
37
+ disabled: string;
10
38
  };
11
- primary: {
12
- backgroundColor: string;
13
- disabledBackgroundColor: string;
14
- pressedBackgroundColor: string;
15
- disabledBorderColor: string;
16
- };
17
- secondary: {
18
- backgroundColor: string;
19
- disabledBackgroundColor: string;
20
- pressedBackgroundColor: string;
21
- disabledBorderColor: string;
22
- };
23
- subtle: {
24
- backgroundColor: string;
25
- disabledBackgroundColor: string;
26
- pressedBackgroundColor: string;
27
- disabledBorderColor: string;
28
- };
29
- 'subtle-dark': {
30
- backgroundColor: string;
31
- disabledBackgroundColor: string;
32
- pressedBackgroundColor: string;
33
- disabledBorderColor: string;
34
- };
35
- white: {
36
- backgroundColor: string;
37
- disabledBackgroundColor: string;
38
- hoverBackgroundColor: string;
39
- pressedBackgroundColor: string;
40
- focusBorderColor: string;
41
- disabledBorderColor: string;
39
+ transition: {
40
+ duration: string;
41
+ timingFunction: string;
42
42
  };
43
- };
43
+ default: ButtonVariantTheme;
44
+ primary: ButtonVariantTheme;
45
+ white: ButtonVariantTheme;
46
+ subtle: SubtleButtonVariantTheme;
47
+ 'subtle-dark': SubtleButtonVariantTheme;
48
+ disabled: DisabledButtonVariantTheme;
49
+ }
50
+ export declare const buttonLateOceanTheme: ButtonTheme;
44
51
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0ChC,CAAC"}
1
+ {"version":3,"file":"buttonLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/buttonLateOceanTheme.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IAGjC,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,wBAAyB,SAAQ,kBAAkB;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,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,cAAc,EAAE;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,UAAU,EAAE;QACV,QAAQ,EAAE,MAAM,CAAC;QACjB,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,OAAO,EAAE,kBAAkB,CAAC;IAC5B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,MAAM,EAAE,wBAAwB,CAAC;IACjC,aAAa,EAAE,wBAAwB,CAAC;IACxC,QAAQ,EAAE,0BAA0B,CAAC;CACtC;AAED,eAAO,MAAM,oBAAoB,EAAE,WAuElC,CAAC"}
@@ -11,6 +11,8 @@ export declare const colorsLateOceanTheme: {
11
11
  black: string;
12
12
  uiBackground: string;
13
13
  uiBackgroundLight: string;
14
+ transparent: string;
15
+ disabled: string;
14
16
  overlay: {
15
17
  dark: string;
16
18
  light: string;
@@ -1 +1 @@
1
- {"version":3,"file":"colorsLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/colorsLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;CAkBhC,CAAC"}
1
+ {"version":3,"file":"colorsLateOceanTheme.d.ts","sourceRoot":"","sources":["../../../../src/themes/late-ocean/colorsLateOceanTheme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC"}
@@ -33,21 +33,23 @@ export interface TypographyProps extends TypographyBreakpointTypesProps, Except<
33
33
  }
34
34
  export declare type TypographyPropsWithoutRole = Except<TypographyProps, 'accessibilityRole'>;
35
35
  export declare function useTypographyTypeForCurrentWindowSize(base: TypographyType | undefined, small: TypographyType | undefined, medium: TypographyType | undefined, large: TypographyType | undefined): TypographyType | undefined;
36
+ declare type GetTypographyInheritedOrDefaultValuesBasedOnExistingAncestorsProps = Pick<TypographyProps, 'base' | 'color'>;
37
+ export declare function getTypographyInheritedOrDefaultValuesBasedOnExistingAncestors(hasTypographyAncestor: boolean, { base, color }: GetTypographyInheritedOrDefaultValuesBasedOnExistingAncestorsProps): GetTypographyInheritedOrDefaultValuesBasedOnExistingAncestorsProps;
36
38
  export declare function Typography({ accessibilityRole, base, small, medium, large, variant, color, ...otherProps }: TypographyProps): ReactElement | null;
37
39
  export declare namespace Typography {
38
40
  var Text: typeof TypographyText;
39
41
  var Paragraph: typeof TypographyParagraph;
40
- var Header1: FC<TypographyPropsWithoutRole>;
41
- var Header2: FC<TypographyPropsWithoutRole>;
42
- var Header3: FC<TypographyPropsWithoutRole>;
43
- var Header4: FC<TypographyPropsWithoutRole>;
44
- var Header5: FC<TypographyPropsWithoutRole>;
45
- var Header6: FC<TypographyPropsWithoutRole>;
46
- var h1: FC<TypographyPropsWithoutRole>;
47
- var h2: FC<TypographyPropsWithoutRole>;
48
- var h3: FC<TypographyPropsWithoutRole>;
49
- var h4: FC<TypographyPropsWithoutRole>;
50
- var h5: FC<TypographyPropsWithoutRole>;
42
+ var Header1: FC<Except<TypographyProps, "accessibilityRole">>;
43
+ var Header2: FC<Except<TypographyProps, "accessibilityRole">>;
44
+ var Header3: FC<Except<TypographyProps, "accessibilityRole">>;
45
+ var Header4: FC<Except<TypographyProps, "accessibilityRole">>;
46
+ var Header5: FC<Except<TypographyProps, "accessibilityRole">>;
47
+ var Header6: FC<Except<TypographyProps, "accessibilityRole">>;
48
+ var h1: FC<Except<TypographyProps, "accessibilityRole">>;
49
+ var h2: FC<Except<TypographyProps, "accessibilityRole">>;
50
+ var h3: FC<Except<TypographyProps, "accessibilityRole">>;
51
+ var h4: FC<Except<TypographyProps, "accessibilityRole">>;
52
+ var h5: FC<Except<TypographyProps, "accessibilityRole">>;
51
53
  }
52
54
  export declare type TypographyTextProps = SetOptional<TypographyProps, 'accessibilityRole'>;
53
55
  declare function TypographyText(props: TypographyTextProps): ReactElement;
@@ -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;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAErD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,oBAAY,oBAAoB,GAAG,SAAS,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAC1E,oBAAY,kBAAkB,GAAG,MAAM,GAAG,QAAQ,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,EAAE,CAAC;AAC5F,oBAAY,cAAc,GAAG,oBAAoB,GAAG,kBAAkB,CAAC;AACvE,aAAK,iBAAiB,GAAG,SAAS,GAAG,M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,cAAc,GAAG,SAAS,CAM5B;AAED,aAAK,kEAAkE,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC;AAElH,wBAAgB,6DAA6D,CAC3E,qBAAqB,EAAE,OAAO,EAC9B,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,kEAAkE,GAClF,kEAAkE,CAQpE;AAED,wBAAgB,UAAU,CAAC,EACzB,iBAAiB,EACjB,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAO,EACP,KAAK,EACL,GAAG,UAAU,EACd,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI,CAkCvC;yBA3Ce,UAAU;;;;;;;;;;;;;;;AA6C1B,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"}
@@ -3,7 +3,7 @@ import type { Except } from 'type-fest';
3
3
  import type { IconProps } from '../Icon/Icon';
4
4
  import type { TypographyProps } from './Typography';
5
5
  export interface TypographyIconProps extends Except<IconProps, 'color'> {
6
- color?: TypographyProps['color'];
6
+ color?: TypographyProps['color'] | 'inherit';
7
7
  }
8
- export declare function TypographyIcon({ color, ...otherProps }: TypographyIconProps): ReactElement;
8
+ export declare function TypographyIcon({ color, ...props }: TypographyIconProps): ReactElement;
9
9
  //# sourceMappingURL=TypographyIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyIcon.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC;IACrE,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;CAClC;AAgBD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAM1F"}
1
+ {"version":3,"file":"TypographyIcon.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGpD,MAAM,WAAW,mBAAoB,SAAQ,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC;IACrE,KAAK,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,GAAG,SAAS,CAAC;CAC9C;AAaD,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAMrF"}
@@ -1 +1 @@
1
- {"version":3,"file":"TypographyLink.d.ts","sourceRoot":"","sources":["../../../src/typography/TypographyLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAyC/D,MAAM,WAAW,mBA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AC,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC/B;AAED,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,SAAS,EACT,OAAO,EACP,GAAG,UAAU,EACd,EAAE,mBAAmB,GAAG,YAAY,CAqBpC"}
@@ -1,3 +1,4 @@
1
+ import type { FlattenSimpleInterpolation } from 'styled-components';
1
2
  import type { MatchWindowSizeOptions } from './useMatchWindowSize';
2
3
  export interface WindowSizeHelper {
3
4
  /** Prefer using if or map variants, at it should be more web friendly */
@@ -15,7 +16,7 @@ export interface WindowSizeHelper {
15
16
  * `;
16
17
  * ```
17
18
  */
18
- ifWindowSizeMatches: <T extends string | null>(options: MatchWindowSizeOptions, valueIfTrue: T, valueIfFalse: T) => T;
19
+ ifWindowSizeMatches: <T extends string | FlattenSimpleInterpolation | null>(options: MatchWindowSizeOptions, valueIfTrue: T, valueIfFalse?: T) => T | undefined;
19
20
  /**
20
21
  *
21
22
  * @example
@@ -32,5 +33,9 @@ export interface WindowSizeHelper {
32
33
  */
33
34
  mapWindowWidth: <V extends string>(...widthList: [number, V][]) => V | null;
34
35
  }
35
- export declare function createWindowSizeHelper(currentWidth: number): WindowSizeHelper;
36
+ export interface WindowDimensions {
37
+ width?: number;
38
+ height?: number;
39
+ }
40
+ export declare function createWindowSizeHelper(dimensions: WindowDimensions): WindowSizeHelper;
36
41
  //# sourceMappingURL=createWindowSizeHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createWindowSizeHelper.d.ts","sourceRoot":"","sources":["../../../../src/utils/windowSize/createWindowSizeHelper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAGnE,MAAM,WAAW,gBAAgB;IAC/B,yEAAyE;IACzE,eAAe,EAAE,CAAC,OAAO,EAAE,sBAAsB,KAAK,OAAO,CAAC;IAE9D;;;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,EAAE,gBAAgB,GAAG,gBAAgB,CAuBrF"}
@@ -1,7 +1,10 @@
1
+ import type { WindowDimensions } from './createWindowSizeHelper';
1
2
  export interface MatchWindowSizeOptions {
2
- minWidth: number;
3
+ minWidth?: number;
3
4
  maxWidth?: number;
5
+ minHeight?: number;
6
+ maxHeight?: number;
4
7
  }
5
- export declare function matchWindowSize(currentWidth: number, { minWidth, maxWidth }: MatchWindowSizeOptions): boolean;
8
+ export declare function matchWindowSize({ width, height }: WindowDimensions, { minWidth, maxWidth, minHeight, maxHeight }: MatchWindowSizeOptions): boolean;
6
9
  export declare function useMatchWindowSize(options: MatchWindowSizeOptions): boolean;
7
10
  //# sourceMappingURL=useMatchWindowSize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMatchWindowSize.d.ts","sourceRoot":"","sources":["../../../../src/utils/windowSize/useMatchWindowSize.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,sBAAsB,GAAG,OAAO,CAE7G;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAG3E"}
1
+ {"version":3,"file":"useMatchWindowSize.d.ts","sourceRoot":"","sources":["../../../../src/utils/windowSize/useMatchWindowSize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,wBAAgB,eAAe,CAC7B,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,gBAAgB,EACnC,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,sBAAsB,GACnE,OAAO,CAIT;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAG3E"}
@@ -1,7 +1,7 @@
1
1
  import type { ComponentType } from 'react';
2
2
  import type { DefaultTheme } from 'styled-components/native';
3
- import type { SetOptional } from 'type-fest';
3
+ import type { Except } from 'type-fest';
4
4
  export declare function withTheme<Props extends {
5
5
  theme: DefaultTheme;
6
- }>(WrappedComponent: any): ComponentType<SetOptional<Props, 'theme'>>;
6
+ }>(WrappedComponent: ComponentType<Props>): ComponentType<Except<Props, 'theme'>>;
7
7
  //# sourceMappingURL=withTheme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withTheme.d.ts","sourceRoot":"","sources":["../../../src/utils/withTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAe7C,wBAAgB,SAAS,CAAC,KAAK,SAAS;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,EAE7D,gBAAgB,EAAE,GAAG,GACpB,aAAa,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAM5C"}
1
+ {"version":3,"file":"withTheme.d.ts","sourceRoot":"","sources":["../../../src/utils/withTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAexC,wBAAgB,SAAS,CAAC,KAAK,SAAS;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,EAC7D,gBAAgB,EAAE,aAAa,CAAC,KAAK,CAAC,GACrC,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAMvC"}