@artsy/palette-mobile 23.14.0 → 24.0.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 (220) hide show
  1. package/dist/Theme.js +16 -11
  2. package/dist/animation/CssTransition.js +71 -26
  3. package/dist/animation/index.js +17 -1
  4. package/dist/constants.js +12 -8
  5. package/dist/elements/ArtsyKeyboardAvoidingView/ArtsyKeyboardAvoidingView.js +116 -69
  6. package/dist/elements/ArtsyKeyboardAvoidingView/index.js +17 -1
  7. package/dist/elements/Autocomplete/Autocomplete.js +32 -23
  8. package/dist/elements/Autocomplete/Autocomplete.tests.js +128 -56
  9. package/dist/elements/Autocomplete/index.js +17 -1
  10. package/dist/elements/Avatar/Avatar.js +20 -15
  11. package/dist/elements/Avatar/Avatar.stories.js +29 -15
  12. package/dist/elements/Avatar/Avatar.tests.js +12 -10
  13. package/dist/elements/Avatar/index.js +17 -1
  14. package/dist/elements/BackButton/BackButton.js +16 -9
  15. package/dist/elements/BackButton/BackButton.stories.js +12 -8
  16. package/dist/elements/BackButton/index.js +17 -1
  17. package/dist/elements/Banner/Banner.js +45 -18
  18. package/dist/elements/Banner/Banner.stories.js +12 -8
  19. package/dist/elements/Banner/index.js +17 -1
  20. package/dist/elements/BorderBox/BorderBox.js +16 -11
  21. package/dist/elements/BorderBox/index.js +17 -1
  22. package/dist/elements/Box/Box.js +16 -14
  23. package/dist/elements/Box/Box.stories.js +21 -15
  24. package/dist/elements/Box/index.js +17 -1
  25. package/dist/elements/Button/Button.js +85 -64
  26. package/dist/elements/Button/Button.stories.js +48 -23
  27. package/dist/elements/Button/CTAButton.js +18 -3
  28. package/dist/elements/Button/FollowButton.js +38 -11
  29. package/dist/elements/Button/LinkButton.js +19 -4
  30. package/dist/elements/Button/colors.js +7 -3
  31. package/dist/elements/Button/index.js +20 -4
  32. package/dist/elements/ButtonNew/Button.js +114 -49
  33. package/dist/elements/ButtonNew/Button.stories.js +64 -38
  34. package/dist/elements/ButtonNew/Button.tests.js +23 -21
  35. package/dist/elements/ButtonNew/CTAButton.js +18 -3
  36. package/dist/elements/ButtonNew/FollowButton.js +36 -9
  37. package/dist/elements/ButtonNew/LinkButton.js +19 -4
  38. package/dist/elements/ButtonNew/colors.js +7 -3
  39. package/dist/elements/ButtonNew/index.js +20 -4
  40. package/dist/elements/Checkbox/Check.js +83 -46
  41. package/dist/elements/Checkbox/Checkbox.js +83 -47
  42. package/dist/elements/Checkbox/Checkbox.stories.js +10 -9
  43. package/dist/elements/Checkbox/index.js +18 -2
  44. package/dist/elements/Chip/Chip.js +23 -18
  45. package/dist/elements/Chip/Chip.stories.js +12 -8
  46. package/dist/elements/Chip/index.js +17 -1
  47. package/dist/elements/ClassTheme/ClassTheme.js +10 -5
  48. package/dist/elements/ClassTheme/index.js +17 -1
  49. package/dist/elements/Collapse/Collapse.js +9 -4
  50. package/dist/elements/Collapse/Collapse.stories.js +13 -9
  51. package/dist/elements/Collapse/index.js +17 -1
  52. package/dist/elements/CollapsibleMenuItem/CollapsibleMenuItem.js +32 -27
  53. package/dist/elements/CollapsibleMenuItem/CollapsibleMenuItem.stories.js +62 -37
  54. package/dist/elements/CollapsibleMenuItem/index.js +17 -1
  55. package/dist/elements/Dialog/Dialog.js +52 -26
  56. package/dist/elements/Dialog/Dialog.stories.js +41 -22
  57. package/dist/elements/Dialog/Dialog.tests.js +33 -31
  58. package/dist/elements/Dialog/index.js +17 -1
  59. package/dist/elements/EntityHeader/EntityHeader.js +42 -15
  60. package/dist/elements/EntityHeader/EntityHeader.stories.js +26 -18
  61. package/dist/elements/EntityHeader/index.js +17 -1
  62. package/dist/elements/Flex/Flex.js +32 -4
  63. package/dist/elements/Flex/index.js +17 -1
  64. package/dist/elements/Header/ArtsyLogoHeader.js +15 -8
  65. package/dist/elements/Header/index.js +17 -1
  66. package/dist/elements/Histogram/Histogram.js +19 -14
  67. package/dist/elements/Histogram/index.js +17 -1
  68. package/dist/elements/Image/Image.js +60 -28
  69. package/dist/elements/Image/Image.stories.js +35 -23
  70. package/dist/elements/Image/__tests__/getImageURL.tests.js +10 -8
  71. package/dist/elements/Image/helpers/getImageURL.js +13 -8
  72. package/dist/elements/Image/index.js +17 -1
  73. package/dist/elements/Input/Input.js +216 -168
  74. package/dist/elements/Input/Input.stories.js +15 -11
  75. package/dist/elements/Input/Input.tests.js +85 -39
  76. package/dist/elements/Input/InputTitle.js +9 -4
  77. package/dist/elements/Input/helpers.js +35 -27
  78. package/dist/elements/Input/index.js +19 -3
  79. package/dist/elements/Input/maskValue.js +25 -9
  80. package/dist/elements/Input/maskValue.tests.js +19 -17
  81. package/dist/elements/Join/Join.js +14 -9
  82. package/dist/elements/Join/index.js +17 -1
  83. package/dist/elements/LazyFlatlist/LazyFlatlist.js +11 -8
  84. package/dist/elements/LazyFlatlist/index.js +18 -2
  85. package/dist/elements/LazyFlatlist/useHasSeenItem.js +19 -12
  86. package/dist/elements/LegacyScreen/LegacyScreen.js +124 -83
  87. package/dist/elements/LegacyScreen/index.js +17 -1
  88. package/dist/elements/LegacyTabs/ContentTabs.js +18 -12
  89. package/dist/elements/LegacyTabs/NavigationalTabs.js +21 -15
  90. package/dist/elements/LegacyTabs/StepTabs.js +25 -19
  91. package/dist/elements/LegacyTabs/Tab.js +31 -19
  92. package/dist/elements/LegacyTabs/TabBarContainer.js +48 -39
  93. package/dist/elements/LegacyTabs/index.js +38 -9
  94. package/dist/elements/List/BulletedItem.js +34 -7
  95. package/dist/elements/List/List.stories.js +12 -8
  96. package/dist/elements/List/index.js +17 -1
  97. package/dist/elements/MeasuredView/MeasuredView.js +18 -12
  98. package/dist/elements/MeasuredView/index.js +17 -1
  99. package/dist/elements/MenuItem/MenuItem.js +14 -9
  100. package/dist/elements/MenuItem/MenuItem.stories.js +9 -5
  101. package/dist/elements/MenuItem/index.js +17 -1
  102. package/dist/elements/Message/Message.js +35 -19
  103. package/dist/elements/Message/Message.stories.d.ts +1 -1
  104. package/dist/elements/Message/Message.stories.js +23 -17
  105. package/dist/elements/Message/Message.tests.js +38 -36
  106. package/dist/elements/Message/index.js +17 -1
  107. package/dist/elements/Pill/Pill.js +116 -138
  108. package/dist/elements/Pill/Pill.stories.js +28 -20
  109. package/dist/elements/Pill/Pill.tests.js +15 -13
  110. package/dist/elements/Pill/index.js +17 -1
  111. package/dist/elements/PopIn/PopIn.js +13 -8
  112. package/dist/elements/PopIn/index.js +17 -1
  113. package/dist/elements/Popover/Popover.js +45 -15
  114. package/dist/elements/Popover/Popover.stories.js +25 -19
  115. package/dist/elements/Popover/index.js +17 -1
  116. package/dist/elements/ProgressBar/ProgressBar.js +68 -23
  117. package/dist/elements/ProgressBar/ProgressBar.stories.js +11 -7
  118. package/dist/elements/ProgressBar/ProgressBar.tests.js +48 -23
  119. package/dist/elements/ProgressBar/index.js +17 -1
  120. package/dist/elements/Radio/RadioButton.js +80 -44
  121. package/dist/elements/Radio/RadioButton.stories.js +17 -13
  122. package/dist/elements/Radio/RadioDot.js +31 -15
  123. package/dist/elements/Radio/index.js +7 -2
  124. package/dist/elements/Screen/Background.js +10 -3
  125. package/dist/elements/Screen/Body.js +37 -10
  126. package/dist/elements/Screen/BottomView.js +17 -9
  127. package/dist/elements/Screen/FloatingHeader.js +36 -9
  128. package/dist/elements/Screen/FullWidthDivider.js +20 -5
  129. package/dist/elements/Screen/FullWidthItem.js +20 -5
  130. package/dist/elements/Screen/Header.js +79 -26
  131. package/dist/elements/Screen/Screen.stories.js +46 -30
  132. package/dist/elements/Screen/ScreenBase.js +39 -11
  133. package/dist/elements/Screen/ScreenFlatList.js +26 -9
  134. package/dist/elements/Screen/ScreenScrollContext.js +21 -15
  135. package/dist/elements/Screen/ScreenScrollView.js +27 -9
  136. package/dist/elements/Screen/StickySubHeader.js +62 -23
  137. package/dist/elements/Screen/constants.js +8 -5
  138. package/dist/elements/Screen/hooks/useListenForScreenScroll.js +13 -9
  139. package/dist/elements/Screen/hooks/useShowLargeTitle.js +19 -14
  140. package/dist/elements/Screen/hooks/useTitleStyles.js +14 -10
  141. package/dist/elements/Screen/index.js +48 -31
  142. package/dist/elements/SearchInput/RoundSearchInput.js +79 -46
  143. package/dist/elements/SearchInput/SearchInput.js +43 -14
  144. package/dist/elements/SearchInput/index.js +18 -2
  145. package/dist/elements/Separator/Separator.js +20 -12
  146. package/dist/elements/Separator/Separator.stories.js +10 -6
  147. package/dist/elements/Separator/ShadowSeparator.js +14 -7
  148. package/dist/elements/Separator/index.js +18 -2
  149. package/dist/elements/SimpleMessage/SimpleMessage.js +47 -11
  150. package/dist/elements/SimpleMessage/index.js +17 -1
  151. package/dist/elements/Skeleton/Skeleton.js +50 -19
  152. package/dist/elements/Skeleton/Skeleton.stories.js +14 -10
  153. package/dist/elements/Skeleton/index.js +17 -1
  154. package/dist/elements/Spacer/Spacer.js +32 -3
  155. package/dist/elements/Spacer/Spacer.stories.js +35 -19
  156. package/dist/elements/Spacer/index.js +17 -1
  157. package/dist/elements/Spinner/Spinner.js +62 -33
  158. package/dist/elements/Spinner/index.js +17 -1
  159. package/dist/elements/Switch/Switch.js +50 -17
  160. package/dist/elements/Switch/Switch.stories.js +31 -14
  161. package/dist/elements/Switch/index.js +17 -1
  162. package/dist/elements/Tabs/SubTabBar.js +29 -20
  163. package/dist/elements/Tabs/TabFlashList.js +24 -12
  164. package/dist/elements/Tabs/TabFlatList.js +24 -12
  165. package/dist/elements/Tabs/TabMasonry.js +24 -12
  166. package/dist/elements/Tabs/TabScrollView.js +27 -14
  167. package/dist/elements/Tabs/Tabs.js +27 -24
  168. package/dist/elements/Tabs/Tabs.stories.js +93 -46
  169. package/dist/elements/Tabs/TabsContainer.js +62 -38
  170. package/dist/elements/Tabs/TabsWithHeader.js +41 -13
  171. package/dist/elements/Tabs/hooks/useListenForTabContentScroll.js +13 -9
  172. package/dist/elements/Tabs/index.js +17 -1
  173. package/dist/elements/Text/LinkText.js +32 -3
  174. package/dist/elements/Text/Text.js +61 -23
  175. package/dist/elements/Text/Text.stories.js +37 -28
  176. package/dist/elements/Text/Text.tests.js +7 -5
  177. package/dist/elements/Text/helpers.js +13 -7
  178. package/dist/elements/Text/index.js +19 -3
  179. package/dist/elements/ToolTip/ToolTip.js +67 -53
  180. package/dist/elements/ToolTip/ToolTip.stories.js +21 -14
  181. package/dist/elements/ToolTip/ToolTip.tests.js +15 -13
  182. package/dist/elements/ToolTip/ToolTipFlyout.js +68 -28
  183. package/dist/elements/ToolTip/index.js +17 -1
  184. package/dist/elements/Touchable/Touchable.js +41 -13
  185. package/dist/elements/Touchable/Touchable.stories.js +13 -9
  186. package/dist/elements/Touchable/TouchableHighlightColor.js +38 -12
  187. package/dist/elements/Touchable/TouchableWithScale.js +38 -11
  188. package/dist/elements/Touchable/index.js +19 -3
  189. package/dist/elements/VisualClue/VisualClue.stories.js +11 -7
  190. package/dist/elements/VisualClue/VisualClueDot.js +24 -14
  191. package/dist/elements/VisualClue/VisualClueText.js +26 -15
  192. package/dist/elements/VisualClue/index.js +18 -2
  193. package/dist/elements/index.js +62 -46
  194. package/dist/index.js +24 -8
  195. package/dist/setupJest.js +11 -6
  196. package/dist/storybook/decorators.js +36 -27
  197. package/dist/storybook/helpers.js +40 -22
  198. package/dist/tokens.js +28 -67
  199. package/dist/types.js +10 -5
  200. package/dist/utils/Wrap.js +16 -8
  201. package/dist/utils/colors.stories.js +31 -25
  202. package/dist/utils/createGeminiUrl.js +28 -22
  203. package/dist/utils/flattenChildren.js +20 -7
  204. package/dist/utils/formatLargeNumber.js +8 -4
  205. package/dist/utils/formatLargeNumbers.tests.js +15 -13
  206. package/dist/utils/hooks/index.js +20 -4
  207. package/dist/utils/hooks/useColor.js +6 -2
  208. package/dist/utils/hooks/useMeasure.js +40 -14
  209. package/dist/utils/hooks/useScreenDimensions.js +31 -20
  210. package/dist/utils/hooks/useSpace.js +6 -2
  211. package/dist/utils/hooks/useTheme.js +31 -23
  212. package/dist/utils/normalizeText.js +11 -6
  213. package/dist/utils/space.stories.js +15 -10
  214. package/dist/utils/tests/flattenChildren.tests.js +8 -6
  215. package/dist/utils/tests/isTestEnvironment.js +5 -1
  216. package/dist/utils/tests/renderWithWrappers.js +15 -7
  217. package/dist/utils/text.js +13 -9
  218. package/dist/utils/types.js +2 -0
  219. package/dist/utils/webTokensToMobile.js +16 -10
  220. package/package.json +30 -36
@@ -1,46 +1,83 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useEffect } from "react";
3
- import { TouchableWithoutFeedback } from "react-native";
4
- import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
5
- import { useColor } from "../../utils/hooks/useColor";
6
- import { Flex } from "../Flex";
7
- import { Text } from "../Text";
8
- export const ToolTipFlyout = ({ containerStyle, tapToDismiss, height, width, onClose, onToolTipPress, testID, text, }) => {
9
- const initialBoxDimensions = { height: 0, width: 0 };
10
- const boxDimensions = useSharedValue(initialBoxDimensions);
11
- const animationStyle = useAnimatedStyle(() => {
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ToolTipTextContainer = exports.ToolTipFlyout = void 0;
37
+ var jsx_runtime_1 = require("react/jsx-runtime");
38
+ var react_1 = require("react");
39
+ var react_native_1 = require("react-native");
40
+ var react_native_reanimated_1 = __importStar(require("react-native-reanimated"));
41
+ var useColor_1 = require("../../utils/hooks/useColor");
42
+ var Flex_1 = require("../Flex");
43
+ var Text_1 = require("../Text");
44
+ var ToolTipFlyout = function (_a) {
45
+ var containerStyle = _a.containerStyle, tapToDismiss = _a.tapToDismiss, height = _a.height, width = _a.width, onClose = _a.onClose, onToolTipPress = _a.onToolTipPress, testID = _a.testID, text = _a.text;
46
+ var initialBoxDimensions = { height: 0, width: 0 };
47
+ var boxDimensions = (0, react_native_reanimated_1.useSharedValue)(initialBoxDimensions);
48
+ var animationStyle = (0, react_native_reanimated_1.useAnimatedStyle)(function () {
12
49
  return {
13
- height: withTiming(boxDimensions.get().height, {
50
+ height: (0, react_native_reanimated_1.withTiming)(boxDimensions.get().height, {
14
51
  duration: 500,
15
52
  }),
16
- width: withTiming(boxDimensions.get().width, {
53
+ width: (0, react_native_reanimated_1.withTiming)(boxDimensions.get().width, {
17
54
  duration: 500,
18
55
  }),
19
56
  };
20
57
  });
21
- useEffect(() => {
58
+ (0, react_1.useEffect)(function () {
22
59
  if (text) {
23
- boxDimensions.set(() => ({
24
- height,
25
- width,
26
- }));
60
+ boxDimensions.set(function () { return ({
61
+ height: height,
62
+ width: width,
63
+ }); });
27
64
  }
28
65
  else {
29
- boxDimensions.set(() => initialBoxDimensions);
66
+ boxDimensions.set(function () { return initialBoxDimensions; });
30
67
  }
31
68
  // eslint-disable-next-line react-hooks/exhaustive-deps
32
69
  }, [text, height, width]);
33
- const color = useColor();
34
- const handleClose = () => {
70
+ var color = (0, useColor_1.useColor)();
71
+ var handleClose = function () {
35
72
  onClose();
36
73
  };
37
- const onPress = () => {
38
- onToolTipPress?.();
74
+ var onPress = function () {
75
+ onToolTipPress === null || onToolTipPress === void 0 ? void 0 : onToolTipPress();
39
76
  if (tapToDismiss) {
40
77
  handleClose();
41
78
  }
42
79
  };
43
- return (_jsx(TouchableWithoutFeedback, { accessibilityLabel: "Tooltip", accessibilityHint: "Tap to dismiss", onPress: onPress, testID: testID, children: _jsx(Animated.View, { style: [
80
+ return ((0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, { accessibilityLabel: "Tooltip", accessibilityHint: "Tap to dismiss", onPress: onPress, testID: testID, children: (0, jsx_runtime_1.jsx)(react_native_reanimated_1.default.View, { style: [
44
81
  {
45
82
  backgroundColor: color("mono100"),
46
83
  position: "absolute",
@@ -49,12 +86,15 @@ export const ToolTipFlyout = ({ containerStyle, tapToDismiss, height, width, onC
49
86
  },
50
87
  containerStyle,
51
88
  animationStyle,
52
- ], children: _jsx(Flex, { justifyContent: "center", alignItems: "center", bg: "mono100", children: _jsx(ToolTipTextContainer, { text: text }) }) }) }));
89
+ ], children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { justifyContent: "center", alignItems: "center", bg: "mono100", children: (0, jsx_runtime_1.jsx)(exports.ToolTipTextContainer, { text: text }) }) }) }));
53
90
  };
91
+ exports.ToolTipFlyout = ToolTipFlyout;
54
92
  /** Please be careful with applying any styling here. This forms the basis with which we measure
55
93
  * in advance by how large we can inflate a tooltip.
56
94
  */
57
- export const ToolTipTextContainer = ({ text }) => {
58
- const color = useColor();
59
- return (_jsx(Text, { variant: "xs", color: color("mono0"), pb: 0.5, children: text }));
95
+ var ToolTipTextContainer = function (_a) {
96
+ var text = _a.text;
97
+ var color = (0, useColor_1.useColor)();
98
+ return ((0, jsx_runtime_1.jsx)(Text_1.Text, { variant: "xs", color: color("mono0"), pb: 0.5, children: text }));
60
99
  };
100
+ exports.ToolTipTextContainer = ToolTipTextContainer;
@@ -1 +1,17 @@
1
- export * from "./ToolTip";
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ToolTip"), exports);
@@ -1,27 +1,55 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from "react";
3
- import { TouchableOpacity, TouchableWithoutFeedback, } from "react-native";
4
- import Haptic from "react-native-haptic-feedback";
5
- import { DEFAULT_ACTIVE_OPACITY } from "../../constants";
6
- import { useColor } from "../../utils/hooks/useColor";
7
- import { Flex } from "../Flex";
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ exports.Touchable = void 0;
29
+ var jsx_runtime_1 = require("react/jsx-runtime");
30
+ var react_1 = __importDefault(require("react"));
31
+ var react_native_1 = require("react-native");
32
+ var react_native_haptic_feedback_1 = __importDefault(require("react-native-haptic-feedback"));
33
+ var constants_1 = require("../../constants");
34
+ var Flex_1 = require("../Flex");
8
35
  /**
9
36
  * `haptic` can be used like:
10
37
  * <Touchable haptic />
11
38
  * or
12
39
  * <Touchable haptic="impactHeavy" />
13
40
  */
14
- export const Touchable = ({ children, flex, haptic, noFeedback, onPress, underlayColor, ...props }) => {
15
- const color = useColor();
16
- const inner = React.Children.count(children) === 1 ? children : _jsx(Flex, { flex: flex, children: children });
17
- const onPressWrapped = (evt) => {
41
+ var Touchable = function (_a) {
42
+ var children = _a.children, flex = _a.flex, haptic = _a.haptic, noFeedback = _a.noFeedback, onPress = _a.onPress, props = __rest(_a, ["children", "flex", "haptic", "noFeedback", "onPress"]);
43
+ var inner = react_1.default.Children.count(children) === 1 ? children : (0, jsx_runtime_1.jsx)(Flex_1.Flex, { flex: flex, children: children });
44
+ var onPressWrapped = function (evt) {
18
45
  if (onPress === undefined) {
19
46
  return;
20
47
  }
21
48
  if (haptic !== undefined) {
22
- Haptic.trigger(haptic === true ? "impactLight" : haptic);
49
+ react_native_haptic_feedback_1.default.trigger(haptic === true ? "impactLight" : haptic);
23
50
  }
24
51
  onPress(evt);
25
52
  };
26
- return noFeedback ? (_jsx(TouchableWithoutFeedback, { ...props, onPress: onPressWrapped, children: inner })) : (_jsx(TouchableOpacity, { activeOpacity: DEFAULT_ACTIVE_OPACITY, ...props, onPress: onPressWrapped, children: inner }));
53
+ return noFeedback ? ((0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({}, props, { onPress: onPressWrapped, children: inner }))) : ((0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: constants_1.DEFAULT_ACTIVE_OPACITY }, props, { onPress: onPressWrapped, children: inner })));
27
54
  };
55
+ exports.Touchable = Touchable;
@@ -1,11 +1,15 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { TrashIcon } from "@artsy/icons/native";
3
- import { Touchable } from "./Touchable";
4
- import { List } from "../../storybook/helpers";
5
- import { Flex } from "../Flex";
6
- import { Text } from "../Text";
7
- export default {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Examples = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var native_1 = require("@artsy/icons/native");
6
+ var Touchable_1 = require("./Touchable");
7
+ var helpers_1 = require("../../storybook/helpers");
8
+ var Flex_1 = require("../Flex");
9
+ var Text_1 = require("../Text");
10
+ exports.default = {
8
11
  title: "Touchable",
9
- component: Touchable,
12
+ component: Touchable_1.Touchable,
10
13
  };
11
- export const Examples = () => (_jsxs(List, { children: [_jsx(Touchable, { accessibilityRole: "button", children: _jsx(Text, { children: "This is a text wrapped in a `Touchable`." }) }), _jsx(Touchable, { accessibilityRole: "button", children: _jsxs(Flex, { width: 200, alignItems: "center", borderColor: "red", borderWidth: 1, children: [_jsx(TrashIcon, {}), _jsx(Text, { children: "This is a cell with an icon and a text, wrapped in a `Touchable`." })] }) })] }));
14
+ var Examples = function () { return ((0, jsx_runtime_1.jsxs)(helpers_1.List, { children: [(0, jsx_runtime_1.jsx)(Touchable_1.Touchable, { accessibilityRole: "button", children: (0, jsx_runtime_1.jsx)(Text_1.Text, { children: "This is a text wrapped in a `Touchable`." }) }), (0, jsx_runtime_1.jsx)(Touchable_1.Touchable, { accessibilityRole: "button", children: (0, jsx_runtime_1.jsxs)(Flex_1.Flex, { width: 200, alignItems: "center", borderColor: "red", borderWidth: 1, children: [(0, jsx_runtime_1.jsx)(native_1.TrashIcon, {}), (0, jsx_runtime_1.jsx)(Text_1.Text, { children: "This is a cell with an icon and a text, wrapped in a `Touchable`." })] }) })] })); };
15
+ exports.Examples = Examples;
@@ -1,15 +1,41 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useState } from "react";
3
- import { Touchable } from "./Touchable";
4
- export const TouchableHighlightColor = (props) => {
5
- const { activeOpacity = 1, activeColor = "blue100", normalColor = "mono100", onPressIn, onPressOut, render, ...restProps } = props;
6
- const [highlighted, setHighlighted] = useState(false);
7
- const color = highlighted ? activeColor : normalColor;
8
- return (_jsx(Touchable, { noFeedback: true, activeOpacity: activeOpacity, onPressIn: (event) => {
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TouchableHighlightColor = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var react_1 = require("react");
28
+ var Touchable_1 = require("./Touchable");
29
+ var TouchableHighlightColor = function (props) {
30
+ var _a = props.activeOpacity, activeOpacity = _a === void 0 ? 1 : _a, _b = props.activeColor, activeColor = _b === void 0 ? "blue100" : _b, _c = props.normalColor, normalColor = _c === void 0 ? "mono100" : _c, onPressIn = props.onPressIn, onPressOut = props.onPressOut, render = props.render, restProps = __rest(props, ["activeOpacity", "activeColor", "normalColor", "onPressIn", "onPressOut", "render"]);
31
+ var _d = (0, react_1.useState)(false), highlighted = _d[0], setHighlighted = _d[1];
32
+ var color = highlighted ? activeColor : normalColor;
33
+ return ((0, jsx_runtime_1.jsx)(Touchable_1.Touchable, __assign({ noFeedback: true, activeOpacity: activeOpacity, onPressIn: function (event) {
9
34
  setHighlighted(true);
10
- onPressIn?.(event);
11
- }, onPressOut: (event) => {
35
+ onPressIn === null || onPressIn === void 0 ? void 0 : onPressIn(event);
36
+ }, onPressOut: function (event) {
12
37
  setHighlighted(false);
13
- onPressOut?.(event);
14
- }, ...restProps, children: render({ color, highlighted }) }));
38
+ onPressOut === null || onPressOut === void 0 ? void 0 : onPressOut(event);
39
+ } }, restProps, { children: render({ color: color, highlighted: highlighted }) })));
15
40
  };
41
+ exports.TouchableHighlightColor = TouchableHighlightColor;
@@ -1,20 +1,47 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Animated, TouchableWithoutFeedback, } from "react-native";
3
- const ANIMATION_DEFAULTS = {
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.TouchableWithScale = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var react_native_1 = require("react-native");
28
+ var ANIMATION_DEFAULTS = {
4
29
  stiffness: 600,
5
30
  damping: 120,
6
31
  useNativeDriver: true,
7
32
  };
8
- const NOOP = () => { };
9
- export const TouchableWithScale = ({ defaultScale = 1, activeScale = 0.95, onPressIn = NOOP, onPressOut = NOOP, style, children, ...restProps }) => {
10
- const scaleAnimation = new Animated.Value(defaultScale);
11
- const handlePressIn = (event) => {
12
- Animated.spring(scaleAnimation, { ...ANIMATION_DEFAULTS, toValue: activeScale }).start();
33
+ var NOOP = function () { };
34
+ var TouchableWithScale = function (_a) {
35
+ var _b = _a.defaultScale, defaultScale = _b === void 0 ? 1 : _b, _c = _a.activeScale, activeScale = _c === void 0 ? 0.95 : _c, _d = _a.onPressIn, onPressIn = _d === void 0 ? NOOP : _d, _e = _a.onPressOut, onPressOut = _e === void 0 ? NOOP : _e, style = _a.style, children = _a.children, restProps = __rest(_a, ["defaultScale", "activeScale", "onPressIn", "onPressOut", "style", "children"]);
36
+ var scaleAnimation = new react_native_1.Animated.Value(defaultScale);
37
+ var handlePressIn = function (event) {
38
+ react_native_1.Animated.spring(scaleAnimation, __assign(__assign({}, ANIMATION_DEFAULTS), { toValue: activeScale })).start();
13
39
  onPressIn(event);
14
40
  };
15
- const handlePressOut = (event) => {
16
- Animated.spring(scaleAnimation, { ...ANIMATION_DEFAULTS, toValue: defaultScale }).start();
41
+ var handlePressOut = function (event) {
42
+ react_native_1.Animated.spring(scaleAnimation, __assign(__assign({}, ANIMATION_DEFAULTS), { toValue: defaultScale })).start();
17
43
  onPressOut(event);
18
44
  };
19
- return (_jsx(TouchableWithoutFeedback, { onPressIn: handlePressIn, onPressOut: handlePressOut, ...restProps, children: _jsx(Animated.View, { style: [style, { transform: [{ scale: scaleAnimation }] }], children: children }) }));
45
+ return ((0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPressIn: handlePressIn, onPressOut: handlePressOut }, restProps, { children: (0, jsx_runtime_1.jsx)(react_native_1.Animated.View, { style: [style, { transform: [{ scale: scaleAnimation }] }], children: children }) })));
20
46
  };
47
+ exports.TouchableWithScale = TouchableWithScale;
@@ -1,3 +1,19 @@
1
- export * from "./Touchable";
2
- export * from "./TouchableWithScale";
3
- export * from "./TouchableHighlightColor";
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Touchable"), exports);
18
+ __exportStar(require("./TouchableWithScale"), exports);
19
+ __exportStar(require("./TouchableHighlightColor"), exports);
@@ -1,9 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { VisualClueDot, VisualClueText } from "./";
3
- import { List } from "../../storybook/helpers";
4
- import { Box } from "../Box";
5
- import { Text } from "../Text";
6
- export default {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VisualClue = void 0;
4
+ var jsx_runtime_1 = require("react/jsx-runtime");
5
+ var _1 = require("./");
6
+ var helpers_1 = require("../../storybook/helpers");
7
+ var Box_1 = require("../Box");
8
+ var Text_1 = require("../Text");
9
+ exports.default = {
7
10
  title: "Theme/Text",
8
11
  };
9
- export const VisualClue = () => (_jsxs(List, { children: [_jsxs(Box, { children: [_jsx(Text, { children: "Default" }), _jsx(Box, { position: "absolute", top: "4px", right: "-8px", children: _jsx(VisualClueDot, {}) })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Diameter: 4" }), _jsx(Box, { position: "absolute", top: "4px", right: "-4px", children: _jsx(VisualClueDot, { diameter: 4 }) })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Diameter: 8" }), _jsx(Box, { position: "absolute", top: "4px", right: "-10px", children: _jsx(VisualClueDot, { diameter: 8 }) })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Color: red50" }), _jsx(Box, { position: "absolute", top: "4px", right: "-8px", children: _jsx(VisualClueDot, { color: "red50" }) })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Color: red100" }), _jsx(Box, { position: "absolute", top: "4px", right: "-8px", children: _jsx(VisualClueDot, { color: "red100" }) })] }), _jsxs(Box, { children: [_jsx(Text, { children: "Color: mono60" }), _jsx(Box, { position: "absolute", top: "4px", right: "-8px", children: _jsx(VisualClueDot, { color: "mono60" }) })] }), _jsxs(_Fragment, { children: [_jsx(Text, { children: "A Feature" }), _jsx(VisualClueText, { style: { top: 14, right: -24 } })] })] }));
12
+ var VisualClue = function () { return ((0, jsx_runtime_1.jsxs)(helpers_1.List, { children: [(0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Default" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-8px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, {}) })] }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Diameter: 4" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-4px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, { diameter: 4 }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Diameter: 8" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-10px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, { diameter: 8 }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Color: red50" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-8px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, { color: "red50" }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Color: red100" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-8px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, { color: "red100" }) })] }), (0, jsx_runtime_1.jsxs)(Box_1.Box, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "Color: mono60" }), (0, jsx_runtime_1.jsx)(Box_1.Box, { position: "absolute", top: "4px", right: "-8px", children: (0, jsx_runtime_1.jsx)(_1.VisualClueDot, { color: "mono60" }) })] }), (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Text_1.Text, { children: "A Feature" }), (0, jsx_runtime_1.jsx)(_1.VisualClueText, { style: { top: 14, right: -24 } })] })] })); };
13
+ exports.VisualClue = VisualClue;
@@ -1,15 +1,25 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useColor } from "../../utils/hooks/useColor";
3
- import { Flex } from "../Flex";
4
- const DOT_DIAMETER = 6;
5
- const FILL_COLOR = "blue100";
6
- export const VisualClueDot = ({ diameter = DOT_DIAMETER, color = FILL_COLOR, style, }) => {
7
- const colors = useColor();
8
- return (_jsx(Flex, { style: {
9
- height: diameter,
10
- minWidth: diameter,
11
- borderRadius: diameter / 2,
12
- backgroundColor: colors(color),
13
- ...style,
14
- } }));
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
15
12
  };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.VisualClueDot = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var useColor_1 = require("../../utils/hooks/useColor");
17
+ var Flex_1 = require("../Flex");
18
+ var DOT_DIAMETER = 6;
19
+ var FILL_COLOR = "blue100";
20
+ var VisualClueDot = function (_a) {
21
+ var _b = _a.diameter, diameter = _b === void 0 ? DOT_DIAMETER : _b, _c = _a.color, color = _c === void 0 ? FILL_COLOR : _c, style = _a.style;
22
+ var colors = (0, useColor_1.useColor)();
23
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { style: __assign({ height: diameter, minWidth: diameter, borderRadius: diameter / 2, backgroundColor: colors(color) }, style) }));
24
+ };
25
+ exports.VisualClueDot = VisualClueDot;
@@ -1,16 +1,27 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useColor } from "../../utils/hooks/useColor";
3
- import { Flex } from "../Flex";
4
- import { PopIn } from "../PopIn";
5
- import { Text } from "../Text";
6
- const WRAPPER_WIDTH = 56;
7
- const WRAPPER_HEIGHT = 46;
8
- export const VisualClueText = ({ style = {} }) => {
9
- const colors = useColor();
10
- return (_jsx(Flex, { width: 0, overflow: "visible", children: _jsx(Flex, { width: 55, justifyContent: "center", children: _jsx(Flex, { style: {
11
- width: WRAPPER_WIDTH,
12
- height: WRAPPER_HEIGHT,
13
- ...style,
14
- position: "absolute",
15
- }, children: _jsx(PopIn, { children: _jsx(Text, { style: { fontSize: 12, color: colors("blue100") }, children: "New" }) }) }) }) }));
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
16
12
  };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.VisualClueText = void 0;
15
+ var jsx_runtime_1 = require("react/jsx-runtime");
16
+ var useColor_1 = require("../../utils/hooks/useColor");
17
+ var Flex_1 = require("../Flex");
18
+ var PopIn_1 = require("../PopIn");
19
+ var Text_1 = require("../Text");
20
+ var WRAPPER_WIDTH = 56;
21
+ var WRAPPER_HEIGHT = 46;
22
+ var VisualClueText = function (_a) {
23
+ var _b = _a.style, style = _b === void 0 ? {} : _b;
24
+ var colors = (0, useColor_1.useColor)();
25
+ return ((0, jsx_runtime_1.jsx)(Flex_1.Flex, { width: 0, overflow: "visible", children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { width: 55, justifyContent: "center", children: (0, jsx_runtime_1.jsx)(Flex_1.Flex, { style: __assign(__assign({ width: WRAPPER_WIDTH, height: WRAPPER_HEIGHT }, style), { position: "absolute" }), children: (0, jsx_runtime_1.jsx)(PopIn_1.PopIn, { children: (0, jsx_runtime_1.jsx)(Text_1.Text, { style: { fontSize: 12, color: colors("blue100") }, children: "New" }) }) }) }) }));
26
+ };
27
+ exports.VisualClueText = VisualClueText;
@@ -1,2 +1,18 @@
1
- export * from "./VisualClueText";
2
- export * from "./VisualClueDot";
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./VisualClueText"), exports);
18
+ __exportStar(require("./VisualClueDot"), exports);