@ornikar/kitt-universal 9.26.0 → 9.28.0-alpha.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 (98) hide show
  1. package/babel-plugin-csf-to-jest.js +121 -0
  2. package/dist/definitions/Avatar/Avatar.d.ts +1 -7
  3. package/dist/definitions/Avatar/Avatar.d.ts.map +1 -1
  4. package/dist/definitions/Avatar/utils/getCurrentRadius.d.ts +9 -0
  5. package/dist/definitions/Avatar/utils/getCurrentRadius.d.ts.map +1 -0
  6. package/dist/definitions/Avatar/utils/getCurrentSize.d.ts +8 -0
  7. package/dist/definitions/Avatar/utils/getCurrentSize.d.ts.map +1 -0
  8. package/dist/definitions/Avatar/utils/getIconSize.d.ts +3 -0
  9. package/dist/definitions/Avatar/utils/getIconSize.d.ts.map +1 -0
  10. package/dist/definitions/Avatar/utils/getInitials.d.ts +2 -0
  11. package/dist/definitions/Avatar/utils/getInitials.d.ts.map +1 -0
  12. package/dist/definitions/Button/AnimatedButtonPressable.d.ts +30 -0
  13. package/dist/definitions/Button/AnimatedButtonPressable.d.ts.map +1 -0
  14. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts +17 -0
  15. package/dist/definitions/Button/AnimatedButtonPressable.web.d.ts.map +1 -0
  16. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts +12 -0
  17. package/dist/definitions/Button/BaseStyledButtonPressable.d.ts.map +1 -0
  18. package/dist/definitions/Button/ButtonContainer.d.ts +12 -0
  19. package/dist/definitions/Button/ButtonContainer.d.ts.map +1 -0
  20. package/dist/definitions/Button/StyledDisabled.d.ts +3 -0
  21. package/dist/definitions/Button/StyledDisabled.d.ts.map +1 -0
  22. package/dist/definitions/Button/isSubtle.d.ts +3 -0
  23. package/dist/definitions/Button/isSubtle.d.ts.map +1 -0
  24. package/dist/definitions/Card/Card.d.ts +9 -0
  25. package/dist/definitions/Card/Card.d.ts.map +1 -0
  26. package/dist/definitions/FullScreenModal/Body.d.ts +7 -0
  27. package/dist/definitions/FullScreenModal/Body.d.ts.map +1 -0
  28. package/dist/definitions/FullScreenModal/FullScreenModal.d.ts +12 -0
  29. package/dist/definitions/FullScreenModal/FullScreenModal.d.ts.map +1 -0
  30. package/dist/definitions/FullScreenModal/Header.d.ts +8 -0
  31. package/dist/definitions/FullScreenModal/Header.d.ts.map +1 -0
  32. package/dist/definitions/KittMapConfigProvider/KittMapConfigProvider.d.ts +13 -0
  33. package/dist/definitions/KittMapConfigProvider/KittMapConfigProvider.d.ts.map +1 -0
  34. package/dist/definitions/KittMapConfigProvider/hooks/useKittMapConfig.d.ts +3 -0
  35. package/dist/definitions/KittMapConfigProvider/hooks/useKittMapConfig.d.ts.map +1 -0
  36. package/dist/definitions/MapMarker/MapMarker.d.ts +15 -0
  37. package/dist/definitions/MapMarker/MapMarker.d.ts.map +1 -0
  38. package/dist/definitions/Skeleton/Skeleton.d.ts +15 -6
  39. package/dist/definitions/Skeleton/Skeleton.d.ts.map +1 -1
  40. package/dist/definitions/StaticMap/StaticMap.d.ts +34 -0
  41. package/dist/definitions/StaticMap/StaticMap.d.ts.map +1 -0
  42. package/dist/definitions/StaticMap/StaticMapError.d.ts +7 -0
  43. package/dist/definitions/StaticMap/StaticMapError.d.ts.map +1 -0
  44. package/dist/definitions/StaticMap/StaticMapImage.d.ts +12 -0
  45. package/dist/definitions/StaticMap/StaticMapImage.d.ts.map +1 -0
  46. package/dist/definitions/StaticMap/StaticMapLoader.d.ts +3 -0
  47. package/dist/definitions/StaticMap/StaticMapLoader.d.ts.map +1 -0
  48. package/dist/definitions/StaticMap/StaticMapMarker.d.ts +8 -0
  49. package/dist/definitions/StaticMap/StaticMapMarker.d.ts.map +1 -0
  50. package/dist/definitions/StaticMap/hooks/useGetStaticMapImageUrl.d.ts +8 -0
  51. package/dist/definitions/StaticMap/hooks/useGetStaticMapImageUrl.d.ts.map +1 -0
  52. package/dist/definitions/StaticMap/utils/getRangedWidthValue.d.ts +2 -0
  53. package/dist/definitions/StaticMap/utils/getRangedWidthValue.d.ts.map +1 -0
  54. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.d.ts +2 -0
  55. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.d.ts.map +1 -0
  56. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.web.d.ts +2 -0
  57. package/dist/definitions/StaticMap/utils/getShouldDisplay2x.web.d.ts.map +1 -0
  58. package/dist/definitions/StaticMap/utils/getStaticMapImageUrl.d.ts +15 -0
  59. package/dist/definitions/StaticMap/utils/getStaticMapImageUrl.d.ts.map +1 -0
  60. package/dist/definitions/Tooltip/TooltipView.d.ts +8 -0
  61. package/dist/definitions/Tooltip/TooltipView.d.ts.map +1 -0
  62. package/dist/definitions/index.d.ts +10 -1
  63. package/dist/definitions/index.d.ts.map +1 -1
  64. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts +156 -9
  65. package/dist/definitions/native-base/KittNativeBaseProvider.d.ts.map +1 -1
  66. package/dist/definitions/themes/late-ocean/avatar.d.ts +8 -0
  67. package/dist/definitions/themes/late-ocean/avatar.d.ts.map +1 -1
  68. package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts +8 -0
  69. package/dist/definitions/themes/late-ocean/fullScreenModal.d.ts.map +1 -0
  70. package/dist/definitions/themes/late-ocean/skeleton.d.ts +6 -0
  71. package/dist/definitions/themes/late-ocean/skeleton.d.ts.map +1 -1
  72. package/dist/index-browser-all.es.android.js +817 -259
  73. package/dist/index-browser-all.es.android.js.map +1 -1
  74. package/dist/index-browser-all.es.ios.js +817 -259
  75. package/dist/index-browser-all.es.ios.js.map +1 -1
  76. package/dist/index-browser-all.es.js +873 -256
  77. package/dist/index-browser-all.es.js.map +1 -1
  78. package/dist/index-browser-all.es.web.js +858 -242
  79. package/dist/index-browser-all.es.web.js.map +1 -1
  80. package/dist/index-node-14.17.cjs.js +758 -156
  81. package/dist/index-node-14.17.cjs.js.map +1 -1
  82. package/dist/index-node-14.17.cjs.web.js +741 -135
  83. package/dist/index-node-14.17.cjs.web.js.map +1 -1
  84. package/dist/linaria-themes-browser-all.es.android.js +24 -2
  85. package/dist/linaria-themes-browser-all.es.android.js.map +1 -1
  86. package/dist/linaria-themes-browser-all.es.ios.js +24 -2
  87. package/dist/linaria-themes-browser-all.es.ios.js.map +1 -1
  88. package/dist/linaria-themes-browser-all.es.js +24 -2
  89. package/dist/linaria-themes-browser-all.es.js.map +1 -1
  90. package/dist/linaria-themes-browser-all.es.web.js +24 -2
  91. package/dist/linaria-themes-browser-all.es.web.js.map +1 -1
  92. package/dist/linaria-themes-node-14.17.cjs.js +24 -2
  93. package/dist/linaria-themes-node-14.17.cjs.js.map +1 -1
  94. package/dist/linaria-themes-node-14.17.cjs.web.js +24 -2
  95. package/dist/linaria-themes-node-14.17.cjs.web.js.map +1 -1
  96. package/dist/tsbuildinfo +1 -1
  97. package/package.json +2 -2
  98. package/yarn-error.log +22274 -0
@@ -0,0 +1,121 @@
1
+ 'use strict';
2
+
3
+ module.exports = function babelPluginStorybookCSFToJest({ types }, opts) {
4
+ const storybookImportName = 'BabelPluginStorybookCSFToJest_StorybookReact';
5
+ const storiesOfName = 'BabelPluginStorybookCSFToJest_stories';
6
+
7
+ const isStory = (file) => file.opts && file.opts.filename && file.opts.filename.endsWith('.stories.tsx');
8
+
9
+ return {
10
+ name: 'plugin-storybook-csf-to-jest',
11
+ visitor: {
12
+ ExportDefaultDeclaration(path, state) {
13
+ if (!isStory(state.file)) return;
14
+
15
+ let expression = path.node.declaration;
16
+
17
+ if (types.isTSAsExpression(expression)) {
18
+ expression = expression.expression;
19
+ }
20
+
21
+ if (!types.isObjectExpression(expression)) {
22
+ throw path.buildCodeFrameError(`Invalid export default, expecting Object Expression, got ${expression.type}`);
23
+ }
24
+
25
+ const findProperty = (name) =>
26
+ expression.properties.find((property) => {
27
+ return types.isObjectProperty(property) && types.isIdentifier(property.key) && property.key.name === name;
28
+ });
29
+
30
+ const titleProperty = findProperty('title');
31
+
32
+ if (!titleProperty) {
33
+ throw path.buildCodeFrameError('Invalid export default, expecting property title');
34
+ }
35
+
36
+ if (!types.isStringLiteral(titleProperty.value)) {
37
+ throw path.buildCodeFrameError(
38
+ 'Invalid export default, expecting property title to have string literal value',
39
+ );
40
+ }
41
+
42
+ const declaration = types.importDeclaration(
43
+ [types.importNamespaceSpecifier(types.identifier(storybookImportName))],
44
+ types.stringLiteral('@storybook/react'),
45
+ );
46
+ const replaceWithNodes = [declaration];
47
+
48
+ [
49
+ { propName: 'parameters', callName: 'addParameters' },
50
+ { propName: 'decorators', callName: 'addDecorator', callForEach: true },
51
+ ].forEach(({ propName, callName, callForEach = false }) => {
52
+ const prop = findProperty(propName);
53
+ if (!prop) return;
54
+
55
+ if (!callForEach) {
56
+ replaceWithNodes.push(
57
+ types.callExpression(
58
+ types.memberExpression(types.identifier(storiesOfName), types.identifier(callName)),
59
+ [prop.value],
60
+ ),
61
+ );
62
+ return;
63
+ }
64
+
65
+ if (!types.isArrayExpression(prop.value)) {
66
+ throw path.buildCodeFrameError(`Expecting "${propName}" to be an ArrayExpression, got ${prop.value.type}`);
67
+ }
68
+
69
+ prop.value.elements.forEach((node) => {
70
+ replaceWithNodes.push(
71
+ types.callExpression(
72
+ types.memberExpression(types.identifier(storiesOfName), types.identifier(callName)),
73
+ [node],
74
+ ),
75
+ );
76
+ });
77
+ });
78
+
79
+ path.replaceWithMultiple(replaceWithNodes);
80
+ path.scope.push({
81
+ id: types.identifier(storiesOfName),
82
+ init: types.callExpression(
83
+ types.memberExpression(types.identifier(storybookImportName), types.identifier('storiesOf')),
84
+ [types.stringLiteral(titleProperty.value.value), types.identifier('module')],
85
+ ),
86
+ });
87
+ },
88
+
89
+ ExportNamedDeclaration(path, state) {
90
+ if (!isStory(state.file)) return;
91
+ if (!types.isVariableDeclaration(path.node.declaration)) {
92
+ throw path.buildCodeFrameError('Invalid named export, expecting Variable Declaration');
93
+ }
94
+
95
+ path.replaceWith(
96
+ ...path.node.declaration.declarations.map((declaration) => {
97
+ if (!types.isIdentifier(declaration.id)) {
98
+ throw path.buildCodeFrameError('Invalid named export, expecting Variable Declaration to be identifier');
99
+ }
100
+
101
+ const firstLetter = declaration.id.name.slice(0, 1);
102
+ if (firstLetter.toUpperCase() !== firstLetter) {
103
+ throw path.buildCodeFrameError(
104
+ `Invalid named export "${declaration.id.name}", expecting name to start by an uppercase letter`,
105
+ );
106
+ }
107
+
108
+ // Need to add decorators and parameters
109
+
110
+ return types.expressionStatement(
111
+ types.callExpression(types.memberExpression(types.identifier(storiesOfName), types.identifier('add')), [
112
+ types.stringLiteral(declaration.id.name),
113
+ declaration.init,
114
+ ]),
115
+ );
116
+ }),
117
+ );
118
+ },
119
+ },
120
+ };
121
+ };
@@ -1,14 +1,8 @@
1
1
  import type { ReactElement } from 'react';
2
2
  export type AvatarSizeVariant = 'large';
3
- export interface StyledAvatarViewProps {
4
- $size: number;
5
- $isRound?: boolean;
6
- $isLight?: boolean;
7
- $sizeVariant?: AvatarSizeVariant;
8
- }
9
3
  export interface AvatarProps {
10
4
  size?: number;
11
- src?: string | null;
5
+ src?: string;
12
6
  alt?: string;
13
7
  firstname?: string | null;
14
8
  lastname?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAExC,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,iBAAiB,CAAC;CAClC;AAkDD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAS,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,GAAG,YAAY,CAMpG"}
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAS1C,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC;AAoCxC,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,wBAAgB,MAAM,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,GAAG,YAAY,CAiB/F"}
@@ -0,0 +1,9 @@
1
+ import type { AvatarSizeVariant } from '../Avatar';
2
+ interface GetCurrentRadiusParams {
3
+ size?: number;
4
+ sizeVariant?: AvatarSizeVariant;
5
+ round?: boolean;
6
+ }
7
+ export declare function getCurrentRadius({ size, sizeVariant, round }: GetCurrentRadiusParams): string | number;
8
+ export {};
9
+ //# sourceMappingURL=getCurrentRadius.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentRadius.d.ts","sourceRoot":"","sources":["../../../../src/Avatar/utils/getCurrentRadius.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,UAAU,sBAAsB;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAYtG"}
@@ -0,0 +1,8 @@
1
+ import type { AvatarSizeVariant } from '../Avatar';
2
+ interface GetCurrentSizeParams {
3
+ size?: number;
4
+ sizeVariant?: AvatarSizeVariant;
5
+ }
6
+ export declare function getCurrentSize({ size, sizeVariant }: GetCurrentSizeParams): string | number;
7
+ export {};
8
+ //# sourceMappingURL=getCurrentSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCurrentSize.d.ts","sourceRoot":"","sources":["../../../../src/Avatar/utils/getCurrentSize.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,oBAAoB,GAAG,MAAM,GAAG,MAAM,CAM3F"}
@@ -0,0 +1,3 @@
1
+ import type { AvatarSizeVariant } from '../Avatar';
2
+ export declare function getIconSize(size: string | number, sizeVariant?: AvatarSizeVariant): number;
3
+ //# sourceMappingURL=getIconSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getIconSize.d.ts","sourceRoot":"","sources":["../../../../src/Avatar/utils/getIconSize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAEnD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,WAAW,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAM1F"}
@@ -0,0 +1,2 @@
1
+ export declare function getInitials(firstname: string, lastname: string): string;
2
+ //# sourceMappingURL=getInitials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInitials.d.ts","sourceRoot":"","sources":["../../../../src/Avatar/utils/getInitials.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvE"}
@@ -0,0 +1,30 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { PressableProps } from '../native-base/primitives';
3
+ import type { ButtonType, ButtonVariant } from './Button';
4
+ export interface AnimatedContainerProps extends PressableProps {
5
+ $isStretch?: boolean;
6
+ $type: ButtonType;
7
+ $variant: ButtonVariant;
8
+ $isHovered?: boolean;
9
+ $isPressed?: boolean;
10
+ $isDisabled?: boolean;
11
+ $currentHoverScale: number;
12
+ }
13
+ interface AnimatedButtonPressableChildrenProps {
14
+ isHovered: boolean;
15
+ isPressed: boolean;
16
+ isFocused: boolean;
17
+ }
18
+ export interface AnimatedButtonPressableProps extends PressableProps {
19
+ children: (props: AnimatedButtonPressableChildrenProps) => ReactNode;
20
+ accessibilityRole: NonNullable<PressableProps['accessibilityRole']>;
21
+ $type: ButtonType;
22
+ $variant: ButtonVariant;
23
+ $isStretch?: boolean;
24
+ isHoveredInternal?: boolean;
25
+ isPressedInternal?: boolean;
26
+ isFocusedInternal?: boolean;
27
+ }
28
+ export declare const AnimatedButtonPressable: import("react").ForwardRefExoticComponent<AnimatedButtonPressableProps & import("react").RefAttributes<import("../native-base/acceptable-native-base-props").ForwardRefComponent<import("../native-base/primitives").ViewProps>>>;
29
+ export {};
30
+ //# sourceMappingURL=AnimatedButtonPressable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedButtonPressable.d.ts","sourceRoot":"","sources":["../../../src/Button/AnimatedButtonPressable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAMrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAiB1D,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAoFD,UAAU,oCAAoC;IAC5C,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,4BAA6B,SAAQ,cAAc;IAClE,QAAQ,EAAE,CAAC,KAAK,EAAE,oCAAoC,KAAK,SAAS,CAAC;IACrE,iBAAiB,EAAE,WAAW,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACpE,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,uBAAuB,mOA4EnC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { DefaultTheme } from 'styled-components/native';
3
+ import type { AnimatedButtonPressableProps } from './AnimatedButtonPressable';
4
+ import type { ButtonType, ButtonVariant } from './Button';
5
+ interface AnimatedButtonPressableContainerProps {
6
+ theme: DefaultTheme;
7
+ children: ReactNode;
8
+ $isDisabled?: boolean;
9
+ $type: ButtonType;
10
+ $variant: ButtonVariant;
11
+ $isStretch?: boolean;
12
+ $isSubtle?: boolean;
13
+ }
14
+ export declare const AnimatedButtonPressableContainer: import("react").ForwardRefExoticComponent<import("type-fest").Except<AnimatedButtonPressableContainerProps, "theme"> & import("react").RefAttributes<HTMLDivElement>>;
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":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI1D,UAAU,qCAAqC;IAC7C,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,eAAO,MAAM,gCAAgC,uKA0I3C,CAAC;AAEH,eAAO,MAAM,uBAAuB,yHAcnC,CAAC"}
@@ -0,0 +1,12 @@
1
+ /// <reference types="styled-components-react-native" />
2
+ import type { ViewProps } from 'react-native';
3
+ import type { ButtonSize, ButtonType, ButtonVariant } from './Button';
4
+ export interface BaseStyledButtonPressableProps extends ViewProps {
5
+ $type: ButtonType;
6
+ $variant: ButtonVariant;
7
+ $size?: ButtonSize;
8
+ $isStretch?: boolean;
9
+ $isDisabled?: boolean;
10
+ }
11
+ export declare const BaseStyledButtonPressable: import("styled-components").StyledComponent<typeof import("react-native").View, import("styled-components").DefaultTheme, BaseStyledButtonPressableProps, never>;
12
+ //# 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,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGtE,MAAM,WAAW,8BAA+B,SAAQ,SAAS;IAC/D,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,yBAAyB,kKA+BrC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ReactElement } from 'react';
2
+ import type { ViewProps } from 'react-native';
3
+ import type { ButtonSize, ButtonType, ButtonVariant } from './Button';
4
+ export interface ButtonContainerProps extends ViewProps {
5
+ $type: ButtonType;
6
+ $variant: ButtonVariant;
7
+ $size?: ButtonSize;
8
+ $isStretch?: boolean;
9
+ $isDisabled?: boolean;
10
+ }
11
+ export declare function ButtonContainer({ $isStretch, $type, $variant, $isDisabled, $size, ...props }: ButtonContainerProps): ReactElement;
12
+ //# sourceMappingURL=ButtonContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonContainer.d.ts","sourceRoot":"","sources":["../../../src/Button/ButtonContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAM9C,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGtE,MAAM,WAAW,oBAAqB,SAAQ,SAAS;IACrD,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,aAAa,CAAC;IACxB,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA0BD,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,KAAK,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EACL,GAAG,KAAK,EACT,EAAE,oBAAoB,GAAG,YAAY,CAyBrC"}
@@ -0,0 +1,3 @@
1
+ import type { ReactElement } from 'react';
2
+ export declare function StyledDisabled(): ReactElement;
3
+ //# sourceMappingURL=StyledDisabled.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StyledDisabled.d.ts","sourceRoot":"","sources":["../../../src/Button/StyledDisabled.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,wBAAgB,cAAc,IAAI,YAAY,CAiB7C"}
@@ -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"}
@@ -0,0 +1,9 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ declare type CardType = 'primary' | 'secondary' | 'subtle';
3
+ export interface CardProps {
4
+ children: NonNullable<ReactNode>;
5
+ type: CardType;
6
+ }
7
+ export declare function Card({ children, type }: CardProps): ReactElement;
8
+ export {};
9
+ //# sourceMappingURL=Card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,aAAK,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEnD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAaD,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,SAAS,GAAG,YAAY,CAEhE"}
@@ -0,0 +1,7 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ interface BodyProps {
3
+ children: NonNullable<ReactNode>;
4
+ }
5
+ export declare function FullScreenModalBody({ children }: BodyProps): ReactElement;
6
+ export {};
7
+ //# sourceMappingURL=Body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Body.d.ts","sourceRoot":"","sources":["../../../src/FullScreenModal/Body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiBrD,UAAU,SAAS;IACjB,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAClC;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAQ,EAAE,EAAE,SAAS,GAAG,YAAY,CAEzE"}
@@ -0,0 +1,12 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import { FullScreenModalBody } from './Body';
3
+ import { FullScreenModalHeader } from './Header';
4
+ export interface FullScreenModalProps {
5
+ children: ReactNode;
6
+ }
7
+ export declare function FullScreenModal({ children }: FullScreenModalProps): ReactElement;
8
+ export declare namespace FullScreenModal {
9
+ var Header: typeof FullScreenModalHeader;
10
+ var Body: typeof FullScreenModalBody;
11
+ }
12
+ //# sourceMappingURL=FullScreenModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FullScreenModal.d.ts","sourceRoot":"","sources":["../../../src/FullScreenModal/FullScreenModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAOjD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,GAAG,YAAY,CAEhF;yBAFe,eAAe"}
@@ -0,0 +1,8 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ export interface FullScreenModalHeaderProps {
3
+ children: NonNullable<ReactNode>;
4
+ right?: ReactNode;
5
+ left?: ReactNode;
6
+ }
7
+ export declare function FullScreenModalHeader({ children, right, left }: FullScreenModalHeaderProps): ReactElement;
8
+ //# sourceMappingURL=Header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../src/FullScreenModal/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAyFrD,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,0BAA0B,GAAG,YAAY,CAiCzG"}
@@ -0,0 +1,13 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ export interface KittMapConfigProviderConfig {
3
+ mapId: string;
4
+ apiToken: string;
5
+ }
6
+ export declare const KittMapConfigProviderContext: import("react").Context<KittMapConfigProviderConfig | undefined>;
7
+ export interface KittMapProviderProps {
8
+ mapId: string;
9
+ apiToken: string;
10
+ children: ReactNode;
11
+ }
12
+ export declare function KittMapConfigProvider({ children, mapId, apiToken }: KittMapProviderProps): ReactElement;
13
+ //# sourceMappingURL=KittMapConfigProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KittMapConfigProvider.d.ts","sourceRoot":"","sources":["../../../src/KittMapConfigProvider/KittMapConfigProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,4BAA4B,kEAAoE,CAAC;AAE9G,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,oBAAoB,GAAG,YAAY,CAYvG"}
@@ -0,0 +1,3 @@
1
+ import type { KittMapConfigProviderConfig } from '../KittMapConfigProvider';
2
+ export declare function useKittMapConfig(): KittMapConfigProviderConfig;
3
+ //# sourceMappingURL=useKittMapConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useKittMapConfig.d.ts","sourceRoot":"","sources":["../../../../src/KittMapConfigProvider/hooks/useKittMapConfig.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAG5E,wBAAgB,gBAAgB,IAAI,2BAA2B,CAQ9D"}
@@ -0,0 +1,15 @@
1
+ import type { ReactElement } from 'react';
2
+ interface BaseMarkerWithSizeProps {
3
+ width: number;
4
+ height: number;
5
+ }
6
+ interface BaseMarkerWithoutSizeProps {
7
+ width?: never;
8
+ height?: never;
9
+ }
10
+ export type MapMarkerProps = BaseMarkerWithSizeProps | BaseMarkerWithoutSizeProps;
11
+ export declare function MapMarkerSimple({ width, height }: MapMarkerProps): ReactElement;
12
+ export declare function MapMarkerLarge({ width, height }: MapMarkerProps): ReactElement;
13
+ export declare function MapMarkerPosition({ width, height }: MapMarkerProps): ReactElement;
14
+ export {};
15
+ //# sourceMappingURL=MapMarker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../src/MapMarker/MapMarker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAK1C,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,0BAA0B;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,uBAAuB,GAAG,0BAA0B,CAAC;AAElF,wBAAgB,eAAe,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE,EAAE,cAAc,GAAG,YAAY,CAEzF;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE,EAAE,cAAc,GAAG,YAAY,CAExF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAU,EAAE,MAAW,EAAE,EAAE,cAAc,GAAG,YAAY,CAE3F"}
@@ -1,14 +1,23 @@
1
- /// <reference types="styled-components-react-native" />
2
1
  import type { ReactElement } from 'react';
3
2
  import type { StyleProp, ViewStyle } from 'react-native';
4
- export interface SkeletonProps {
3
+ import type { ViewProps } from '../native-base/primitives';
4
+ export interface SkeletonProps extends Omit<ViewProps, 'onLayout'> {
5
5
  isLoading?: boolean;
6
6
  style?: StyleProp<ViewStyle>;
7
7
  }
8
- export declare function Skeleton({ isLoading, style }: SkeletonProps): ReactElement;
8
+ export declare function Skeleton({ isLoading, style, ...props }: SkeletonProps): ReactElement;
9
9
  export declare namespace Skeleton {
10
- var Bar: import("styled-components").StyledComponent<typeof Skeleton, import("styled-components").DefaultTheme, {}, never>;
11
- var Circle: import("styled-components").StyledComponent<typeof Skeleton, import("styled-components").DefaultTheme, {}, never>;
12
- var Square: import("styled-components").StyledComponent<typeof Skeleton, import("styled-components").DefaultTheme, {}, never>;
10
+ var Bar: ({ size, ...props }: BarSkeletonProps) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
11
+ var Circle: ({ size, ...props }: CircleSkeletonProps) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
12
+ var Square: ({ size, ...props }: SquareSkeletonProps) => ReactElement<any, string | import("react").JSXElementConstructor<any>>;
13
+ }
14
+ export interface BarSkeletonProps extends Omit<SkeletonProps, 'width' | 'height' | 'borderRadius'> {
15
+ size?: number;
16
+ }
17
+ export interface CircleSkeletonProps extends Omit<SkeletonProps, 'width' | 'height' | 'borderRadius'> {
18
+ size?: number;
19
+ }
20
+ export interface SquareSkeletonProps extends Omit<SkeletonProps, 'width' | 'height' | 'borderRadius'> {
21
+ size?: number;
13
22
  }
14
23
  //# sourceMappingURL=Skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,aAAa,GAAG,YAAY,CAQ1E;yBARe,QAAQ"}
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAI3D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IAChE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAiB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,GAAG,YAAY,CAQ5F;yBARe,QAAQ;;;;;AAUxB,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;IAChG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAeD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;IACnG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AASD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC;IACnG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,34 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { ViewProps } from '../native-base/primitives';
3
+ import { StaticMapError } from './StaticMapError';
4
+ import { StaticMapImage } from './StaticMapImage';
5
+ import { StaticMapLoader } from './StaticMapLoader';
6
+ import { StaticMapMarker } from './StaticMapMarker';
7
+ import type { MapCenter } from './utils/getStaticMapImageUrl';
8
+ export interface StaticMapProps extends Omit<ViewProps, 'onLayout'> {
9
+ width?: number;
10
+ height: number;
11
+ alt?: string;
12
+ center: MapCenter;
13
+ marker?: ReactNode;
14
+ /**
15
+ * Mapbox map id.
16
+ * Only use this props if you want to use something different that the config in <KittMapConfigProvider />
17
+ */
18
+ mapId?: string;
19
+ /**
20
+ * Mapbox api access token.
21
+ * Only use this props if you want to use something different that the config in <KittMapConfigProvider />
22
+ */
23
+ apiToken?: string;
24
+ onLoaded?: () => void;
25
+ onError?: () => void;
26
+ }
27
+ export declare function StaticMap({ width, height, alt, apiToken, mapId, marker, center, onLoaded, onError, ...props }: StaticMapProps): ReactElement;
28
+ export declare namespace StaticMap {
29
+ var Image: typeof StaticMapImage;
30
+ var Loader: typeof StaticMapLoader;
31
+ var Error: typeof StaticMapError;
32
+ var Marker: typeof StaticMapMarker;
33
+ }
34
+ //# sourceMappingURL=StaticMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticMap.d.ts","sourceRoot":"","sources":["../../../src/StaticMap/StaticMap.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAS9D,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,SAAS,CAAC,EACxB,KAAS,EACT,MAAM,EACN,GAAG,EACH,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACT,EAAE,cAAc,GAAG,YAAY,CAuF/B;yBAlGe,SAAS"}
@@ -0,0 +1,7 @@
1
+ import type { ReactElement } from 'react';
2
+ interface StaticMapErrorProps {
3
+ onReload?: () => void;
4
+ }
5
+ export declare function StaticMapError({ onReload }: StaticMapErrorProps): ReactElement;
6
+ export {};
7
+ //# sourceMappingURL=StaticMapError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticMapError.d.ts","sourceRoot":"","sources":["../../../src/StaticMap/StaticMapError.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAM9E"}
@@ -0,0 +1,12 @@
1
+ import type { ReactElement } from 'react';
2
+ interface StaticMapImageProps {
3
+ url: string;
4
+ alt?: string;
5
+ width: number;
6
+ height: number;
7
+ onLoadEnd?: () => void;
8
+ onError?: () => void;
9
+ }
10
+ export declare function StaticMapImage({ url, alt, width, height, onLoadEnd, onError }: StaticMapImageProps): ReactElement;
11
+ export {};
12
+ //# sourceMappingURL=StaticMapImage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticMapImage.d.ts","sourceRoot":"","sources":["../../../src/StaticMap/StaticMapImage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,UAAU,mBAAmB;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAIjH"}
@@ -0,0 +1,3 @@
1
+ import type { ReactElement } from 'react';
2
+ export declare function StaticMapLoader(): ReactElement;
3
+ //# sourceMappingURL=StaticMapLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticMapLoader.d.ts","sourceRoot":"","sources":["../../../src/StaticMap/StaticMapLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,wBAAgB,eAAe,IAAI,YAAY,CAM9C"}
@@ -0,0 +1,8 @@
1
+ import type { ReactElement } from 'react';
2
+ type MarkerVariant = 'large' | 'position' | 'simple';
3
+ interface MarkerProps {
4
+ variant?: MarkerVariant;
5
+ }
6
+ export declare function StaticMapMarker({ variant }: MarkerProps): ReactElement;
7
+ export {};
8
+ //# sourceMappingURL=StaticMapMarker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StaticMapMarker.d.ts","sourceRoot":"","sources":["../../../src/StaticMap/StaticMapMarker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,KAAK,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAErD,UAAU,WAAW;IACnB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAUD,wBAAgB,eAAe,CAAC,EAAE,OAAkB,EAAE,EAAE,WAAW,GAAG,YAAY,CAiBjF"}
@@ -0,0 +1,8 @@
1
+ import type { GetStaticMapImageUrlParams } from '../utils/getStaticMapImageUrl';
2
+ interface UseGetStaticMapImageUrlParams extends Omit<GetStaticMapImageUrlParams, 'mapId' | 'apiToken'> {
3
+ forceMapId?: string;
4
+ forceApiToken?: string;
5
+ }
6
+ export declare function useGetStaticMapImageUrl({ forceMapId, forceApiToken, mapWidth, mapHeight, center, is2x, }: UseGetStaticMapImageUrlParams): string;
7
+ export {};
8
+ //# sourceMappingURL=useGetStaticMapImageUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetStaticMapImageUrl.d.ts","sourceRoot":"","sources":["../../../../src/StaticMap/hooks/useGetStaticMapImageUrl.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAGhF,UAAU,6BAA8B,SAAQ,IAAI,CAAC,0BAA0B,EAAE,OAAO,GAAG,UAAU,CAAC;IACpG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,aAAa,EACb,QAAQ,EACR,SAAS,EACT,MAAM,EACN,IAAI,GACL,EAAE,6BAA6B,GAAG,MAAM,CAqBxC"}
@@ -0,0 +1,2 @@
1
+ export declare function getRangedWidthValue(nextWidth: number, maxValue: number): number;
2
+ //# sourceMappingURL=getRangedWidthValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getRangedWidthValue.d.ts","sourceRoot":"","sources":["../../../../src/StaticMap/utils/getRangedWidthValue.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAI/E"}
@@ -0,0 +1,2 @@
1
+ export declare function getShouldDisplay2x(): boolean;
2
+ //# sourceMappingURL=getShouldDisplay2x.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShouldDisplay2x.d.ts","sourceRoot":"","sources":["../../../../src/StaticMap/utils/getShouldDisplay2x.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,IAAI,OAAO,CAI5C"}
@@ -0,0 +1,2 @@
1
+ export declare function getShouldDisplay2x(): boolean;
2
+ //# sourceMappingURL=getShouldDisplay2x.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getShouldDisplay2x.web.d.ts","sourceRoot":"","sources":["../../../../src/StaticMap/utils/getShouldDisplay2x.web.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,IAAI,OAAO,CAO5C"}
@@ -0,0 +1,15 @@
1
+ export interface MapCenter {
2
+ long: number;
3
+ lat: number;
4
+ zoom: number;
5
+ }
6
+ export interface GetStaticMapImageUrlParams {
7
+ mapId: string;
8
+ apiToken: string;
9
+ mapWidth: number;
10
+ mapHeight: number;
11
+ center: MapCenter;
12
+ is2x?: boolean;
13
+ }
14
+ export declare function getStaticMapImageUrl({ mapId, apiToken, mapWidth, mapHeight, center, is2x, }: GetStaticMapImageUrlParams): string;
15
+ //# sourceMappingURL=getStaticMapImageUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStaticMapImageUrl.d.ts","sourceRoot":"","sources":["../../../../src/StaticMap/utils/getStaticMapImageUrl.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,IAAI,GACL,EAAE,0BAA0B,GAAG,MAAM,CAmBrC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactElement, ReactNode } from 'react';
2
+ import type { TooltipPosition } from './Tooltip';
3
+ export interface TooltipViewProps {
4
+ children: NonNullable<ReactNode>;
5
+ position: TooltipPosition;
6
+ }
7
+ export declare function TooltipView({ children, position }: TooltipViewProps): ReactElement;
8
+ //# sourceMappingURL=TooltipView.d.ts.map