@hero-design/rn 7.7.0 → 7.9.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 (221) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +1775 -333
  3. package/lib/index.js +1780 -336
  4. package/package.json +4 -8
  5. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  6. package/src/components/Avatar/index.tsx +1 -1
  7. package/src/components/Button/Button.tsx +4 -2
  8. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
  9. package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
  10. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
  11. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
  12. package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
  13. package/src/components/Button/LoadingIndicator/index.tsx +3 -1
  14. package/src/components/Button/StyledButton.tsx +15 -2
  15. package/src/components/Button/__tests__/Button.spec.tsx +2 -0
  16. package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
  18. package/src/components/Card/DataCard/StyledDataCard.tsx +18 -0
  19. package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
  20. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +96 -0
  21. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +151 -0
  22. package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
  23. package/src/components/Card/DataCard/index.tsx +35 -0
  24. package/src/components/Card/StyledCard.tsx +1 -3
  25. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
  26. package/src/components/Card/index.tsx +7 -2
  27. package/src/components/Checkbox/index.tsx +1 -1
  28. package/src/components/Collapse/index.tsx +1 -1
  29. package/src/components/Icon/HeroIcon/index.tsx +3 -1
  30. package/src/components/Icon/index.tsx +3 -2
  31. package/src/components/List/BasicListItem.tsx +98 -0
  32. package/src/components/List/ListItem.tsx +142 -0
  33. package/src/components/List/StyledBasicListItem.tsx +34 -0
  34. package/src/components/List/StyledListItem.tsx +82 -0
  35. package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
  36. package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
  37. package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
  38. package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
  39. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
  40. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
  41. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
  42. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
  43. package/src/components/List/index.tsx +14 -0
  44. package/src/components/SectionHeading/index.tsx +1 -1
  45. package/src/components/Select/Footer.tsx +13 -0
  46. package/src/components/Select/MultiSelect/Option.tsx +25 -0
  47. package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
  48. package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
  49. package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
  50. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
  52. package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
  53. package/src/components/Select/MultiSelect/index.tsx +8 -7
  54. package/src/components/Select/SingleSelect/Option.tsx +23 -0
  55. package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
  56. package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
  57. package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
  58. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
  59. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
  60. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
  61. package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
  62. package/src/components/Select/SingleSelect/index.tsx +89 -0
  63. package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
  64. package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
  65. package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
  66. package/src/components/Select/helpers.tsx +18 -0
  67. package/src/components/Select/index.tsx +4 -3
  68. package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
  69. package/src/components/Switch/index.tsx +1 -1
  70. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +2 -2
  71. package/src/components/Toolbar/StyledToolbar.tsx +42 -0
  72. package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
  73. package/src/components/Toolbar/ToolbarItem.tsx +57 -0
  74. package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
  75. package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
  76. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
  77. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
  78. package/src/components/Toolbar/index.tsx +18 -0
  79. package/src/components/Typography/Text/StyledText.tsx +8 -1
  80. package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
  81. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
  82. package/src/components/Typography/Text/index.tsx +9 -2
  83. package/src/index.ts +4 -0
  84. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +83 -3
  85. package/src/theme/components/button.ts +2 -0
  86. package/src/theme/components/card.ts +13 -2
  87. package/src/theme/components/icon.ts +1 -0
  88. package/src/theme/components/list.ts +46 -0
  89. package/src/theme/components/toolbar.ts +27 -0
  90. package/src/theme/components/typography.ts +4 -0
  91. package/src/theme/global/colors.ts +9 -2
  92. package/src/theme/global/space.ts +2 -0
  93. package/src/theme/index.ts +6 -0
  94. package/tsconfig.json +1 -2
  95. package/types/components/Avatar/index.d.ts +1 -1
  96. package/types/components/Button/Button.d.ts +2 -2
  97. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
  98. package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
  99. package/types/components/Button/StyledButton.d.ts +2 -2
  100. package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
  101. package/types/components/{Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts → Card/DataCard/__tests__/StyledDataCard.spec.d.ts} +0 -0
  102. package/types/components/Card/DataCard/__tests__/index.spec.d.ts +1 -0
  103. package/types/components/Card/DataCard/index.d.ts +22 -0
  104. package/types/components/Card/index.d.ts +7 -3
  105. package/types/components/Checkbox/index.d.ts +1 -1
  106. package/types/components/Collapse/index.d.ts +1 -1
  107. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  108. package/types/components/Icon/index.d.ts +2 -2
  109. package/types/components/List/BasicListItem.d.ts +43 -0
  110. package/types/components/List/ListItem.d.ts +51 -0
  111. package/types/components/List/StyledBasicListItem.d.ts +29 -0
  112. package/types/components/List/StyledListItem.d.ts +51 -0
  113. package/types/components/List/__tests__/BasicListItem.spec.d.ts +1 -0
  114. package/types/components/List/__tests__/ListItem.spec.d.ts +1 -0
  115. package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +1 -0
  116. package/types/components/List/__tests__/StyledListItem.spec.d.ts +1 -0
  117. package/types/components/List/index.d.ts +8 -0
  118. package/types/components/SectionHeading/index.d.ts +1 -1
  119. package/types/components/Select/{MultiSelect/Footer.d.ts → Footer.d.ts} +2 -2
  120. package/types/components/Select/MultiSelect/Option.d.ts +6 -0
  121. package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
  122. package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +1 -0
  123. package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +1 -0
  124. package/types/components/Select/MultiSelect/index.d.ts +4 -4
  125. package/types/components/Select/SingleSelect/Option.d.ts +6 -0
  126. package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
  127. package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +1 -0
  128. package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +1 -0
  129. package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +1 -0
  130. package/types/components/Select/SingleSelect/index.d.ts +35 -0
  131. package/types/components/Select/{MultiSelect/StyledMultiSelect.d.ts → StyledSelect.d.ts} +1 -1
  132. package/types/components/Select/__tests__/StyledSelect.spec.d.ts +1 -0
  133. package/types/components/Select/helpers.d.ts +2 -0
  134. package/types/components/Select/index.d.ts +3 -3
  135. package/types/components/Select/{MultiSelect/types.d.ts → types.d.ts} +0 -0
  136. package/types/components/Switch/index.d.ts +1 -1
  137. package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
  138. package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
  139. package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
  140. package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +1 -0
  141. package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +1 -0
  142. package/types/components/Toolbar/index.d.ts +11 -0
  143. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  144. package/types/components/Typography/Text/index.d.ts +2 -2
  145. package/types/index.d.ts +3 -1
  146. package/types/theme/components/button.d.ts +2 -0
  147. package/types/theme/components/card.d.ts +10 -0
  148. package/types/theme/components/icon.d.ts +1 -0
  149. package/types/theme/components/list.d.ts +40 -0
  150. package/types/theme/components/toolbar.d.ts +21 -0
  151. package/types/theme/components/typography.d.ts +4 -0
  152. package/types/theme/global/colors.d.ts +5 -0
  153. package/types/theme/global/index.d.ts +5 -0
  154. package/types/theme/global/space.d.ts +1 -0
  155. package/types/theme/index.d.ts +4 -0
  156. package/playground/.detoxrc.json +0 -49
  157. package/playground/.prettierrc.json +0 -8
  158. package/playground/.turbo/turbo-type-check.log +0 -7
  159. package/playground/app.json +0 -9
  160. package/playground/babel.config.js +0 -63
  161. package/playground/e2e/config.json +0 -9
  162. package/playground/e2e/environment.js +0 -23
  163. package/playground/e2e/firstTest.e2e.js +0 -16
  164. package/playground/expoEntry.js +0 -5
  165. package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
  166. package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
  167. package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
  168. package/playground/fonts/hero-icons.ttf +0 -0
  169. package/playground/index.js +0 -7
  170. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
  171. package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
  172. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
  173. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
  174. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
  175. package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
  176. package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
  177. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
  178. package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
  179. package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
  180. package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
  181. package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
  182. package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
  183. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
  184. package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
  185. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
  186. package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  187. package/playground/ios/Podfile +0 -49
  188. package/playground/ios/Podfile.lock +0 -478
  189. package/playground/ios/Podfile.properties.json +0 -3
  190. package/playground/metro.config.js +0 -24
  191. package/playground/package.json +0 -63
  192. package/playground/src/Alert.tsx +0 -80
  193. package/playground/src/App.tsx +0 -210
  194. package/playground/src/Avatar.tsx +0 -102
  195. package/playground/src/Badge.tsx +0 -187
  196. package/playground/src/BottomNavigation.tsx +0 -72
  197. package/playground/src/BottomSheet.tsx +0 -43
  198. package/playground/src/Button.tsx +0 -170
  199. package/playground/src/Card.tsx +0 -342
  200. package/playground/src/Checkbox.tsx +0 -55
  201. package/playground/src/Collapse.tsx +0 -99
  202. package/playground/src/ContentNavigator.tsx +0 -58
  203. package/playground/src/Divider.tsx +0 -13
  204. package/playground/src/Drawer.tsx +0 -32
  205. package/playground/src/FAB.tsx +0 -66
  206. package/playground/src/Icon.tsx +0 -144
  207. package/playground/src/IconButton.tsx +0 -78
  208. package/playground/src/MultipleThemes.tsx +0 -34
  209. package/playground/src/Progress.tsx +0 -95
  210. package/playground/src/Radio.tsx +0 -25
  211. package/playground/src/SectionHeading.tsx +0 -68
  212. package/playground/src/Select.tsx +0 -32
  213. package/playground/src/Spinner.tsx +0 -19
  214. package/playground/src/Switch.tsx +0 -80
  215. package/playground/src/Tabs.tsx +0 -136
  216. package/playground/src/Tag.tsx +0 -45
  217. package/playground/src/TextInput.tsx +0 -14
  218. package/playground/src/Toast.tsx +0 -114
  219. package/playground/src/Typography.tsx +0 -23
  220. package/playground/tsconfig.json +0 -21
  221. package/src/components/Select/MultiSelect/Footer.tsx +0 -15
package/lib/index.js CHANGED
@@ -1634,124 +1634,1029 @@ var scale$1 = {
1634
1634
  radius: BASE_RADIUS
1635
1635
  };
1636
1636
 
1637
- var palette = {
1638
- black: '#000000',
1637
+ var hexCharacters = 'a-f\\d';
1638
+ var match3or4Hex = "#?[".concat(hexCharacters, "]{3}[").concat(hexCharacters, "]?");
1639
+ var match6or8Hex = "#?[".concat(hexCharacters, "]{6}([").concat(hexCharacters, "]{2})?");
1640
+ var nonHexChars = new RegExp("[^#".concat(hexCharacters, "]"), 'gi');
1641
+ var validHexSize = new RegExp("^".concat(match3or4Hex, "$|^").concat(match6or8Hex, "$"), 'i');
1642
+
1643
+ var hexRgb = function hexRgb(hex) {
1644
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1645
+
1646
+ if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
1647
+ throw new TypeError('Expected a valid hex string');
1648
+ }
1649
+
1650
+ hex = hex.replace(/^#/, '');
1651
+ var alphaFromHex = 1;
1652
+
1653
+ if (hex.length === 8) {
1654
+ alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
1655
+ hex = hex.slice(0, 6);
1656
+ }
1657
+
1658
+ if (hex.length === 4) {
1659
+ alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
1660
+ hex = hex.slice(0, 3);
1661
+ }
1662
+
1663
+ if (hex.length === 3) {
1664
+ hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
1665
+ }
1666
+
1667
+ var number = Number.parseInt(hex, 16);
1668
+ var red = number >> 16;
1669
+ var green = number >> 8 & 255;
1670
+ var blue = number & 255;
1671
+ var alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
1672
+
1673
+ if (options.format === 'array') {
1674
+ return [red, green, blue, alpha];
1675
+ }
1676
+
1677
+ if (options.format === 'css') {
1678
+ var alphaString = alpha === 1 ? '' : " / ".concat(Number((alpha * 100).toFixed(2)), "%");
1679
+ return "rgb(".concat(red, " ").concat(green, " ").concat(blue).concat(alphaString, ")");
1680
+ }
1681
+
1682
+ return {
1683
+ red: red,
1684
+ green: green,
1685
+ blue: blue,
1686
+ alpha: alpha
1687
+ };
1688
+ };
1689
+
1690
+ var colorName = {
1691
+ "aliceblue": [240, 248, 255],
1692
+ "antiquewhite": [250, 235, 215],
1693
+ "aqua": [0, 255, 255],
1694
+ "aquamarine": [127, 255, 212],
1695
+ "azure": [240, 255, 255],
1696
+ "beige": [245, 245, 220],
1697
+ "bisque": [255, 228, 196],
1698
+ "black": [0, 0, 0],
1699
+ "blanchedalmond": [255, 235, 205],
1700
+ "blue": [0, 0, 255],
1701
+ "blueviolet": [138, 43, 226],
1702
+ "brown": [165, 42, 42],
1703
+ "burlywood": [222, 184, 135],
1704
+ "cadetblue": [95, 158, 160],
1705
+ "chartreuse": [127, 255, 0],
1706
+ "chocolate": [210, 105, 30],
1707
+ "coral": [255, 127, 80],
1708
+ "cornflowerblue": [100, 149, 237],
1709
+ "cornsilk": [255, 248, 220],
1710
+ "crimson": [220, 20, 60],
1711
+ "cyan": [0, 255, 255],
1712
+ "darkblue": [0, 0, 139],
1713
+ "darkcyan": [0, 139, 139],
1714
+ "darkgoldenrod": [184, 134, 11],
1715
+ "darkgray": [169, 169, 169],
1716
+ "darkgreen": [0, 100, 0],
1717
+ "darkgrey": [169, 169, 169],
1718
+ "darkkhaki": [189, 183, 107],
1719
+ "darkmagenta": [139, 0, 139],
1720
+ "darkolivegreen": [85, 107, 47],
1721
+ "darkorange": [255, 140, 0],
1722
+ "darkorchid": [153, 50, 204],
1723
+ "darkred": [139, 0, 0],
1724
+ "darksalmon": [233, 150, 122],
1725
+ "darkseagreen": [143, 188, 143],
1726
+ "darkslateblue": [72, 61, 139],
1727
+ "darkslategray": [47, 79, 79],
1728
+ "darkslategrey": [47, 79, 79],
1729
+ "darkturquoise": [0, 206, 209],
1730
+ "darkviolet": [148, 0, 211],
1731
+ "deeppink": [255, 20, 147],
1732
+ "deepskyblue": [0, 191, 255],
1733
+ "dimgray": [105, 105, 105],
1734
+ "dimgrey": [105, 105, 105],
1735
+ "dodgerblue": [30, 144, 255],
1736
+ "firebrick": [178, 34, 34],
1737
+ "floralwhite": [255, 250, 240],
1738
+ "forestgreen": [34, 139, 34],
1739
+ "fuchsia": [255, 0, 255],
1740
+ "gainsboro": [220, 220, 220],
1741
+ "ghostwhite": [248, 248, 255],
1742
+ "gold": [255, 215, 0],
1743
+ "goldenrod": [218, 165, 32],
1744
+ "gray": [128, 128, 128],
1745
+ "green": [0, 128, 0],
1746
+ "greenyellow": [173, 255, 47],
1747
+ "grey": [128, 128, 128],
1748
+ "honeydew": [240, 255, 240],
1749
+ "hotpink": [255, 105, 180],
1750
+ "indianred": [205, 92, 92],
1751
+ "indigo": [75, 0, 130],
1752
+ "ivory": [255, 255, 240],
1753
+ "khaki": [240, 230, 140],
1754
+ "lavender": [230, 230, 250],
1755
+ "lavenderblush": [255, 240, 245],
1756
+ "lawngreen": [124, 252, 0],
1757
+ "lemonchiffon": [255, 250, 205],
1758
+ "lightblue": [173, 216, 230],
1759
+ "lightcoral": [240, 128, 128],
1760
+ "lightcyan": [224, 255, 255],
1761
+ "lightgoldenrodyellow": [250, 250, 210],
1762
+ "lightgray": [211, 211, 211],
1763
+ "lightgreen": [144, 238, 144],
1764
+ "lightgrey": [211, 211, 211],
1765
+ "lightpink": [255, 182, 193],
1766
+ "lightsalmon": [255, 160, 122],
1767
+ "lightseagreen": [32, 178, 170],
1768
+ "lightskyblue": [135, 206, 250],
1769
+ "lightslategray": [119, 136, 153],
1770
+ "lightslategrey": [119, 136, 153],
1771
+ "lightsteelblue": [176, 196, 222],
1772
+ "lightyellow": [255, 255, 224],
1773
+ "lime": [0, 255, 0],
1774
+ "limegreen": [50, 205, 50],
1775
+ "linen": [250, 240, 230],
1776
+ "magenta": [255, 0, 255],
1777
+ "maroon": [128, 0, 0],
1778
+ "mediumaquamarine": [102, 205, 170],
1779
+ "mediumblue": [0, 0, 205],
1780
+ "mediumorchid": [186, 85, 211],
1781
+ "mediumpurple": [147, 112, 219],
1782
+ "mediumseagreen": [60, 179, 113],
1783
+ "mediumslateblue": [123, 104, 238],
1784
+ "mediumspringgreen": [0, 250, 154],
1785
+ "mediumturquoise": [72, 209, 204],
1786
+ "mediumvioletred": [199, 21, 133],
1787
+ "midnightblue": [25, 25, 112],
1788
+ "mintcream": [245, 255, 250],
1789
+ "mistyrose": [255, 228, 225],
1790
+ "moccasin": [255, 228, 181],
1791
+ "navajowhite": [255, 222, 173],
1792
+ "navy": [0, 0, 128],
1793
+ "oldlace": [253, 245, 230],
1794
+ "olive": [128, 128, 0],
1795
+ "olivedrab": [107, 142, 35],
1796
+ "orange": [255, 165, 0],
1797
+ "orangered": [255, 69, 0],
1798
+ "orchid": [218, 112, 214],
1799
+ "palegoldenrod": [238, 232, 170],
1800
+ "palegreen": [152, 251, 152],
1801
+ "paleturquoise": [175, 238, 238],
1802
+ "palevioletred": [219, 112, 147],
1803
+ "papayawhip": [255, 239, 213],
1804
+ "peachpuff": [255, 218, 185],
1805
+ "peru": [205, 133, 63],
1806
+ "pink": [255, 192, 203],
1807
+ "plum": [221, 160, 221],
1808
+ "powderblue": [176, 224, 230],
1809
+ "purple": [128, 0, 128],
1810
+ "rebeccapurple": [102, 51, 153],
1811
+ "red": [255, 0, 0],
1812
+ "rosybrown": [188, 143, 143],
1813
+ "royalblue": [65, 105, 225],
1814
+ "saddlebrown": [139, 69, 19],
1815
+ "salmon": [250, 128, 114],
1816
+ "sandybrown": [244, 164, 96],
1817
+ "seagreen": [46, 139, 87],
1818
+ "seashell": [255, 245, 238],
1819
+ "sienna": [160, 82, 45],
1820
+ "silver": [192, 192, 192],
1821
+ "skyblue": [135, 206, 235],
1822
+ "slateblue": [106, 90, 205],
1823
+ "slategray": [112, 128, 144],
1824
+ "slategrey": [112, 128, 144],
1825
+ "snow": [255, 250, 250],
1826
+ "springgreen": [0, 255, 127],
1827
+ "steelblue": [70, 130, 180],
1828
+ "tan": [210, 180, 140],
1829
+ "teal": [0, 128, 128],
1830
+ "thistle": [216, 191, 216],
1831
+ "tomato": [255, 99, 71],
1832
+ "turquoise": [64, 224, 208],
1833
+ "violet": [238, 130, 238],
1834
+ "wheat": [245, 222, 179],
1835
+ "white": [255, 255, 255],
1836
+ "whitesmoke": [245, 245, 245],
1837
+ "yellow": [255, 255, 0],
1838
+ "yellowgreen": [154, 205, 50]
1839
+ };
1840
+ var pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
1841
+ var hexRe$1 = new RegExp(pattern$8, 'i');
1842
+ var float$1 = '-?\\d*(?:\\.\\d+)';
1843
+ var number$1 = "(".concat(float$1, "?)");
1844
+ var percentage$1 = "(".concat(float$1, "?%)");
1845
+ var numberOrPercentage$1 = "(".concat(float$1, "?%?)");
1846
+ var pattern$1$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*".concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1847
+ var hsl3Re$1 = new RegExp(pattern$1$1);
1848
+ var pattern$2$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+".concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1849
+ var hsl4Re$1 = new RegExp(pattern$2$1);
1850
+ var pattern$3$1 = "^\n rgba?\\(\n \\s*".concat(number$1, "\\s*,\n \\s*").concat(number$1, "\\s*,\n \\s*").concat(number$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1851
+ var rgb3NumberRe$1 = new RegExp(pattern$3$1);
1852
+ var pattern$4$1 = "^\n rgba?\\(\n \\s*".concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*,\n \\s*").concat(percentage$1, "\\s*\n (?:,\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
1853
+ var rgb3PercentageRe$1 = new RegExp(pattern$4$1);
1854
+ var pattern$5$1 = "^\n rgba?\\(\n \\s*".concat(number$1, "\n \\s+").concat(number$1, "\n \\s+").concat(number$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
1855
+ var rgb4NumberRe$1 = new RegExp(pattern$5$1);
1856
+ var pattern$6$1 = "^\n rgba?\\(\n \\s*".concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s+").concat(percentage$1, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage$1, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
1857
+ var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
1858
+ var pattern$7$1 = /^transparent$/;
1859
+ var transparentRe$1 = new RegExp(pattern$7$1, 'i');
1860
+
1861
+ var clamp$3 = function clamp$3(num, min, max) {
1862
+ return Math.min(Math.max(min, num), max);
1863
+ };
1864
+ /* 500 => 255, -10 => 0, 128 => 128 */
1865
+
1866
+
1867
+ var parseRGB$1 = function parseRGB$1(num) {
1868
+ var n = num;
1869
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
1870
+ return clamp$3(Math.round(n), 0, 255);
1871
+ };
1872
+ /* 200 => 100, -100 => 0, 50 => 50 */
1873
+
1874
+
1875
+ var parsePercentage$1 = function parsePercentage$1(percentage) {
1876
+ return clamp$3(parseFloat(percentage), 0, 100);
1877
+ };
1878
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
1879
+
1880
+
1881
+ function parseAlpha$1(alpha) {
1882
+ var a = alpha;
1883
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
1884
+ return clamp$3(a, 0, 1);
1885
+ }
1886
+
1887
+ function getHEX$1(hex) {
1888
+ var _hex2Rgb = hexRgb(hex, {
1889
+ format: 'array'
1890
+ }),
1891
+ _hex2Rgb2 = _slicedToArray(_hex2Rgb, 4),
1892
+ r = _hex2Rgb2[0],
1893
+ g = _hex2Rgb2[1],
1894
+ b = _hex2Rgb2[2],
1895
+ a = _hex2Rgb2[3];
1896
+
1897
+ return getRGB$1([null].concat([r, g, b, a]));
1898
+ }
1899
+
1900
+ function getHSL$1(_ref) {
1901
+ var _ref2 = _slicedToArray(_ref, 5),
1902
+ h = _ref2[1],
1903
+ s = _ref2[2],
1904
+ l = _ref2[3],
1905
+ _ref2$ = _ref2[4],
1906
+ a = _ref2$ === void 0 ? 1 : _ref2$;
1907
+
1908
+ var hh = h;
1909
+
1910
+ if (hh.endsWith('turn')) {
1911
+ hh = parseFloat(hh) * 360 / 1;
1912
+ } else if (hh.endsWith('rad')) {
1913
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
1914
+ } else {
1915
+ hh = parseFloat(hh);
1916
+ }
1917
+
1918
+ return {
1919
+ type: 'hsl',
1920
+ values: [hh, parsePercentage$1(s), parsePercentage$1(l)],
1921
+ alpha: parseAlpha$1(a === null ? 1 : a)
1922
+ };
1923
+ }
1924
+
1925
+ function getRGB$1(_ref3) {
1926
+ var _ref4 = _slicedToArray(_ref3, 5),
1927
+ r = _ref4[1],
1928
+ g = _ref4[2],
1929
+ b = _ref4[3],
1930
+ _ref4$ = _ref4[4],
1931
+ a = _ref4$ === void 0 ? 1 : _ref4$;
1932
+
1933
+ return {
1934
+ type: 'rgb',
1935
+ values: [r, g, b].map(parseRGB$1),
1936
+ alpha: parseAlpha$1(a === null ? 1 : a)
1937
+ };
1938
+ }
1939
+ /**
1940
+ * parse-css-color
1941
+ * @version v0.1.2
1942
+ * @link http://github.com/noeldelgado/parse-css-color/
1943
+ * @license MIT
1944
+ */
1945
+
1946
+
1947
+ var parseCSSColor$1 = function parseCSSColor$1(str) {
1948
+ if (typeof str !== 'string') return null;
1949
+ var hex = hexRe$1.exec(str);
1950
+ if (hex) return getHEX$1(hex[0]);
1951
+ var hsl = hsl4Re$1.exec(str) || hsl3Re$1.exec(str);
1952
+ if (hsl) return getHSL$1(hsl);
1953
+ var rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
1954
+ if (rgb) return getRGB$1(rgb);
1955
+ if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
1956
+ var cn = colorName[str.toLowerCase()];
1957
+ if (cn) return getRGB$1([null, cn[0], cn[1], cn[2], 1]);
1958
+ return null;
1959
+ };
1960
+
1961
+ function hsl2rgb(hsl) {
1962
+ var h = hsl[0] / 360,
1963
+ s = hsl[1] / 100,
1964
+ l = hsl[2] / 100,
1965
+ t1,
1966
+ t2,
1967
+ t3,
1968
+ rgb,
1969
+ val;
1970
+
1971
+ if (s == 0) {
1972
+ val = l * 255;
1973
+ return [val, val, val];
1974
+ }
1975
+
1976
+ if (l < 0.5) t2 = l * (1 + s);else t2 = l + s - l * s;
1977
+ t1 = 2 * l - t2;
1978
+ rgb = [0, 0, 0];
1979
+
1980
+ for (var i = 0; i < 3; i++) {
1981
+ t3 = h + 1 / 3 * -(i - 1);
1982
+ t3 < 0 && t3++;
1983
+ t3 > 1 && t3--;
1984
+ if (6 * t3 < 1) val = t1 + (t2 - t1) * 6 * t3;else if (2 * t3 < 1) val = t2;else if (3 * t3 < 2) val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;else val = t1;
1985
+ rgb[i] = val * 255;
1986
+ }
1987
+
1988
+ return rgb;
1989
+ }
1990
+
1991
+ var hsl2rgb_1 = hsl2rgb;
1992
+
1993
+ function clamp$2(val, min, max) {
1994
+ return Math.min(Math.max(val, min), max);
1995
+ }
1996
+
1997
+ var clamp_1 = clamp$2;
1998
+ var clamp$1 = clamp_1;
1999
+
2000
+ function componentToHex(c) {
2001
+ var value = Math.round(clamp$1(c, 0, 255));
2002
+ var hex = value.toString(16);
2003
+ return hex.length == 1 ? "0" + hex : hex;
2004
+ }
2005
+
2006
+ function rgb2hex(rgb) {
2007
+ var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
2008
+ return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
2009
+ }
2010
+
2011
+ var rgb2hex_1 = rgb2hex;
2012
+
2013
+ function rgb2hsl(rgb) {
2014
+ var r = rgb[0] / 255,
2015
+ g = rgb[1] / 255,
2016
+ b = rgb[2] / 255,
2017
+ min = Math.min(r, g, b),
2018
+ max = Math.max(r, g, b),
2019
+ delta = max - min,
2020
+ h,
2021
+ s,
2022
+ l;
2023
+ if (max == min) h = 0;else if (r == max) h = (g - b) / delta;else if (g == max) h = 2 + (b - r) / delta;else if (b == max) h = 4 + (r - g) / delta;
2024
+ h = Math.min(h * 60, 360);
2025
+ if (h < 0) h += 360;
2026
+ l = (min + max) / 2;
2027
+ if (max == min) s = 0;else if (l <= 0.5) s = delta / (max + min);else s = delta / (2 - max - min);
2028
+ return [h, s * 100, l * 100];
2029
+ }
2030
+
2031
+ var rgb2hsl_1 = rgb2hsl;
2032
+ /**
2033
+ * mix-css-color
2034
+ * @version v0.2.0
2035
+ * @link http://github.com/noeldelgado/mix-css-color/
2036
+ * @license MIT
2037
+ */
2038
+
2039
+ function parseColor(color) {
2040
+ var res = parseCSSColor$1(color);
2041
+ if (res === null) return null;
2042
+ if (res.type === 'hsl') res.values = hsl2rgb_1(res.values);
2043
+ return res;
2044
+ }
2045
+ /**
2046
+ * Mix two colors together in variable proportion. Opacity is included in the calculations.
2047
+ * Copyright (c) 2006-2009 Hampton Catlin, Natalie Weizenbaum, and Chris Eppstein
2048
+ * http://sass-lang.com
2049
+ * @see https://github.com/less/less.js/blob/cae5021358a5fca932c32ed071f652403d07def8/lib/less/functions/color.js#L302
2050
+ */
2051
+
2052
+
2053
+ function mix(color1, color2) {
2054
+ var percentage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50;
2055
+ var c1 = parseColor(color1);
2056
+ var c2 = parseColor(color2);
2057
+ if (!c1 || !c2) return null;
2058
+ var p = Math.min(Math.max(0, percentage), 100) / 100.0;
2059
+ var w = p * 2 - 1;
2060
+ var a = c1.alpha - c2.alpha;
2061
+ var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
2062
+ var w2 = 1 - w1;
2063
+
2064
+ var _c1$values$map = c1.values.map(function (c, i) {
2065
+ return Math.round(c1.values[i] * w1 + c2.values[i] * w2);
2066
+ }),
2067
+ _c1$values$map2 = _slicedToArray(_c1$values$map, 3),
2068
+ r = _c1$values$map2[0],
2069
+ g = _c1$values$map2[1],
2070
+ b = _c1$values$map2[2];
2071
+
2072
+ var alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
2073
+ return {
2074
+ hex: rgb2hex_1([r, g, b]),
2075
+ hexa: rgb2hex_1([r, g, b, alpha]),
2076
+ rgba: [r, g, b, alpha],
2077
+ hsla: [].concat(_toConsumableArray$1(rgb2hsl_1([r, g, b]).map(Math.round)), [alpha])
2078
+ };
2079
+ }
2080
+
2081
+ var pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
2082
+ var hexRe = new RegExp(pattern, 'i');
2083
+ var _float = '-?\\d*(?:\\.\\d+)';
2084
+ var number = "(".concat(_float, "?)");
2085
+ var percentage = "(".concat(_float, "?%)");
2086
+ var numberOrPercentage = "(".concat(_float, "?%?)");
2087
+ var pattern$1 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*,\n \\s*".concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2088
+ var hsl3Re = new RegExp(pattern$1);
2089
+ var pattern$2 = "^\n hsla?\\(\n \\s*(-?\\d*(?:\\.\\d+)?(?:deg|rad|turn)?)\\s*\n \\s+".concat(percentage, "\n \\s+").concat(percentage, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2090
+ var hsl4Re = new RegExp(pattern$2);
2091
+ var pattern$3 = "^\n rgba?\\(\n \\s*".concat(number, "\\s*,\n \\s*").concat(number, "\\s*,\n \\s*").concat(number, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2092
+ var rgb3NumberRe = new RegExp(pattern$3);
2093
+ var pattern$4 = "^\n rgba?\\(\n \\s*".concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*,\n \\s*").concat(percentage, "\\s*\n (?:,\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n $\n").replace(/\n|\s/g, '');
2094
+ var rgb3PercentageRe = new RegExp(pattern$4);
2095
+ var pattern$5 = "^\n rgba?\\(\n \\s*".concat(number, "\n \\s+").concat(number, "\n \\s+").concat(number, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
2096
+ var rgb4NumberRe = new RegExp(pattern$5);
2097
+ var pattern$6 = "^\n rgba?\\(\n \\s*".concat(percentage, "\n \\s+").concat(percentage, "\n \\s+").concat(percentage, "\n \\s*(?:\\s*\\/\\s*").concat(numberOrPercentage, "\\s*)?\n \\)\n$\n").replace(/\n|\s/g, '');
2098
+ var rgb4PercentageRe = new RegExp(pattern$6);
2099
+ var pattern$7 = /^transparent$/;
2100
+ var transparentRe = new RegExp(pattern$7, 'i');
2101
+
2102
+ var clamp = function clamp(num, min, max) {
2103
+ return Math.min(Math.max(min, num), max);
2104
+ };
2105
+ /* 500 => 255, -10 => 0, 128 => 128 */
2106
+
2107
+
2108
+ var parseRGB = function parseRGB(num) {
2109
+ var n = num;
2110
+ if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
2111
+ return clamp(Math.round(n), 0, 255);
2112
+ };
2113
+ /* 200 => 100, -100 => 0, 50 => 50 */
2114
+
2115
+
2116
+ var parsePercentage = function parsePercentage(percentage) {
2117
+ return clamp(parseFloat(percentage), 0, 100);
2118
+ };
2119
+ /* '50%' => 5.0, 200 => 1, -10 => 0 */
2120
+
2121
+
2122
+ function parseAlpha(alpha) {
2123
+ var a = alpha;
2124
+ if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
2125
+ return clamp(a, 0, 1);
2126
+ }
2127
+
2128
+ function getHEX(hex) {
2129
+ var _hex2Rgb3 = hexRgb(hex, {
2130
+ format: 'array'
2131
+ }),
2132
+ _hex2Rgb4 = _slicedToArray(_hex2Rgb3, 4),
2133
+ r = _hex2Rgb4[0],
2134
+ g = _hex2Rgb4[1],
2135
+ b = _hex2Rgb4[2],
2136
+ a = _hex2Rgb4[3];
2137
+
2138
+ return getRGB([null].concat([r, g, b, a]));
2139
+ }
2140
+
2141
+ function getHSL(_ref5) {
2142
+ var _ref6 = _slicedToArray(_ref5, 5),
2143
+ h = _ref6[1],
2144
+ s = _ref6[2],
2145
+ l = _ref6[3],
2146
+ _ref6$ = _ref6[4],
2147
+ a = _ref6$ === void 0 ? 1 : _ref6$;
2148
+
2149
+ var hh = h;
2150
+
2151
+ if (hh.endsWith('turn')) {
2152
+ hh = parseFloat(hh) * 360 / 1;
2153
+ } else if (hh.endsWith('rad')) {
2154
+ hh = Math.round(parseFloat(hh) * 180 / Math.PI);
2155
+ } else {
2156
+ hh = parseFloat(hh);
2157
+ }
2158
+
2159
+ return {
2160
+ type: 'hsl',
2161
+ values: [hh, parsePercentage(s), parsePercentage(l)],
2162
+ alpha: parseAlpha(a === null ? 1 : a)
2163
+ };
2164
+ }
2165
+
2166
+ function getRGB(_ref7) {
2167
+ var _ref8 = _slicedToArray(_ref7, 5),
2168
+ r = _ref8[1],
2169
+ g = _ref8[2],
2170
+ b = _ref8[3],
2171
+ _ref8$ = _ref8[4],
2172
+ a = _ref8$ === void 0 ? 1 : _ref8$;
2173
+
2174
+ return {
2175
+ type: 'rgb',
2176
+ values: [r, g, b].map(parseRGB),
2177
+ alpha: parseAlpha(a === null ? 1 : a)
2178
+ };
2179
+ }
2180
+ /**
2181
+ * parse-css-color
2182
+ * @version v0.2.0
2183
+ * @link http://github.com/noeldelgado/parse-css-color/
2184
+ * @license MIT
2185
+ */
2186
+
2187
+
2188
+ var parseCSSColor = function parseCSSColor(str) {
2189
+ if (typeof str !== 'string') return null;
2190
+ var hex = hexRe.exec(str);
2191
+ if (hex) return getHEX(hex[0]);
2192
+ var hsl = hsl4Re.exec(str) || hsl3Re.exec(str);
2193
+ if (hsl) return getHSL(hsl);
2194
+ var rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
2195
+ if (rgb) return getRGB(rgb);
2196
+ if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
2197
+ var cn = colorName[str.toLowerCase()];
2198
+ if (cn) return getRGB([null, cn[0], cn[1], cn[2], 1]);
2199
+ return null;
2200
+ };
2201
+ /**
2202
+ * values.js - Get the tints and shades of a color
2203
+ * @version v2.1.1
2204
+ * @link http://noeldelgado.github.io/values.js/
2205
+ * @license MIT
2206
+ */
2207
+
2208
+
2209
+ var defaultNumberParam = function defaultNumberParam(v, d) {
2210
+ return v === null || isNaN(v) || typeof v === 'string' ? d : v;
2211
+ };
2212
+
2213
+ var Values = /*#__PURE__*/function () {
2214
+ function Values() {
2215
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#000';
2216
+ var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
2217
+ var weight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
2218
+
2219
+ _classCallCheck$1(this, Values);
2220
+
2221
+ var _ref9 = [[0, 0, 0], 1, type, weight];
2222
+ this.rgb = _ref9[0];
2223
+ this.alpha = _ref9[1];
2224
+ this.type = _ref9[2];
2225
+ this.weight = _ref9[3];
2226
+ var c = color === null ? '#000' : color;
2227
+ if (typeof c !== 'string') throw new TypeError("Input should be a string: ".concat(c));
2228
+ var parsed = parseCSSColor(c);
2229
+ if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
2230
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2231
+ }
2232
+
2233
+ _createClass$1(Values, [{
2234
+ key: "hex",
2235
+ get: function get() {
2236
+ return this.hexString().replace(/^#/, '');
2237
+ }
2238
+ }, {
2239
+ key: "setColor",
2240
+ value: function setColor(color) {
2241
+ var parsed = parseCSSColor(color);
2242
+ if (!parsed) return null;
2243
+ return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
2244
+ }
2245
+ }, {
2246
+ key: "tint",
2247
+ value: function tint(weight) {
2248
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2249
+ return new Values("rgb(".concat(mix('#fff', this.rgbString(), w).rgba, ")"), 'tint', w);
2250
+ }
2251
+ }, {
2252
+ key: "shade",
2253
+ value: function shade(weight) {
2254
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
2255
+ return new Values("rgb(".concat(mix('#000', this.rgbString(), w).rgba, ")"), 'shade', w);
2256
+ }
2257
+ }, {
2258
+ key: "tints",
2259
+ value: function tints(weight) {
2260
+ var _this = this;
2261
+
2262
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2263
+ return Array.from({
2264
+ length: 100 / w
2265
+ }, function (_, i) {
2266
+ return _this.tint((i + 1) * w);
2267
+ });
2268
+ }
2269
+ }, {
2270
+ key: "shades",
2271
+ value: function shades(weight) {
2272
+ var _this2 = this;
2273
+
2274
+ var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
2275
+ return Array.from({
2276
+ length: 100 / w
2277
+ }, function (_, i) {
2278
+ return _this2.shade((i + 1) * w);
2279
+ });
2280
+ }
2281
+ }, {
2282
+ key: "all",
2283
+ value: function all() {
2284
+ var weight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
2285
+ return [].concat(_toConsumableArray$1(this.tints(weight).reverse()), [Object.assign(this)], _toConsumableArray$1(this.shades(weight)));
2286
+ }
2287
+ }, {
2288
+ key: "hexString",
2289
+ value: function hexString() {
2290
+ return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha]));
2291
+ }
2292
+ }, {
2293
+ key: "rgbString",
2294
+ value: function rgbString() {
2295
+ var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha])).join(', ');
2296
+ return "".concat(this.alpha >= 1 ? 'rgb' : 'rgba', "(").concat(channels, ")");
2297
+ }
2298
+ }, {
2299
+ key: "getBrightness",
2300
+ value: function getBrightness() {
2301
+ return Math.round(this.rgb.reduce(function (a, b) {
2302
+ return a + b;
2303
+ }) / (255 * 3) * 100);
2304
+ }
2305
+ }, {
2306
+ key: "_setFromRGB",
2307
+ value: function _setFromRGB(_ref10) {
2308
+ var _ref11 = _slicedToArray(_ref10, 4),
2309
+ r = _ref11[0],
2310
+ g = _ref11[1],
2311
+ b = _ref11[2],
2312
+ a = _ref11[3];
2313
+
2314
+ var _ref12 = [[r, g, b], a];
2315
+ this.rgb = _ref12[0];
2316
+ this.alpha = _ref12[1];
2317
+ return this;
2318
+ }
2319
+ }, {
2320
+ key: "_setFromHSL",
2321
+ value: function _setFromHSL(_ref13) {
2322
+ var _ref14 = _slicedToArray(_ref13, 4),
2323
+ h = _ref14[0],
2324
+ s = _ref14[1],
2325
+ l = _ref14[2],
2326
+ a = _ref14[3];
2327
+
2328
+ var _ref15 = [hsl2rgb_1([h, s, l]).map(Math.round), a];
2329
+ this.rgb = _ref15[0];
2330
+ this.alpha = _ref15[1];
2331
+ return this;
2332
+ }
2333
+ }]);
2334
+
2335
+ return Values;
2336
+ }();
2337
+
2338
+ Values.VERSION = 'v2.1.1';
2339
+ var Values$1 = Values;
2340
+ var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95];
2341
+
2342
+ var createColorScales = function createColorScales(base) {
2343
+ var colorValues = new Values$1(base);
2344
+ return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
2345
+ var _objectSpread2$1;
2346
+
2347
+ return _objectSpread2(_objectSpread2({}, acc), {}, (_objectSpread2$1 = {}, _defineProperty$2(_objectSpread2$1, "lighten".concat(step), colorValues.tint(step).hexString()), _defineProperty$2(_objectSpread2$1, "darken".concat(step), colorValues.shade(step).hexString()), _objectSpread2$1));
2348
+ }, {})), {}, {
2349
+ base: colorValues.hexString()
2350
+ });
2351
+ };
2352
+
2353
+ var BASE_COLORS = {
2354
+ antiFlashWhite: '#f1f2f3',
1639
2355
  blue: '#1dbeee',
1640
- blueDark30: '#1485a7',
1641
- blueDark75: '#07303c',
1642
- blueLight30: '#61d2f3',
1643
- blueLight75: '#c7effb',
1644
- blueLight90: '#e8f9fd',
1645
- dodgerBlue: '#4568fb',
1646
- dodgerBlueDark30: '#3049b0',
1647
- dodgerBlueLight30: '#7d95fc',
1648
- dodgerBlueLight75: '#d1d9fe',
1649
- dodgerBlueLight90: '#ecf0ff',
2356
+ blue1: '#5a68e2',
2357
+ nightBlue: '#353957',
2358
+ darkBlue: '#25006e',
2359
+ maasstrichtBlue: '#001f23',
2360
+ ultramarineBlue: '#4568fb',
2361
+ aliceBlue: '#ecf0ff',
2362
+ jordyBlue: '#92abfc',
2363
+ cornflowerBlue: '#5d80f0',
2364
+ paua: '#130066',
1650
2365
  green: '#01b39c',
1651
- greenDark15: '#019885',
1652
- greenDark30: '#017d6d',
1653
- greenDark75: '#002d27',
1654
- greenLight30: '#4dcaba',
1655
- greenLight75: '#c0ece6',
1656
- greenLight90: '#e6f7f5',
2366
+ emerald: '#5ace7d',
2367
+ pineGreen: '#017d6d',
2368
+ honeydew: '#f0fef4',
1657
2369
  grey: '#a3a6ac',
1658
- greyDark15: '#8b8d92',
1659
- greyDark30: '#727478',
1660
- greyDark45: '#5a5b5f',
1661
- greyDark60: '#414245',
1662
- greyDark75: '#292a2b',
1663
- greyLight45: '#ccced1',
1664
- greyLight60: '#dadbde',
1665
- greyLight75: '#e8e9ea',
1666
- greyLight85: '#f1f2f3',
1667
- greyLight90: '#f6f6f7',
1668
- greyLight95: '#fafbfb',
2370
+ currant: '#48000a',
2371
+ sonicSilver: '#737479',
1669
2372
  grotesqueGreen: '#6af293',
1670
- grotesqueGreenDark45: '#3a8551',
1671
- grotesqueGreenLight60: '#c3fad4',
1672
- grotesqueGreenLight75: '#dafce4',
1673
- grotesqueGreenLight90: '#f0fef4',
1674
- orange: '#ffa234',
1675
- orangeDark15: '#d98a2c',
1676
- orangeDark30: '#b37124',
1677
- orangeDark75: '#40290d',
1678
- orangeLight30: '#ffbe71',
1679
- orangeLight75: '#ffe8cc',
1680
- orangeLight90: '#fff6eb',
2373
+ mellowApricot: '#ffbe71',
2374
+ deepSaffron: '#ffa234',
1681
2375
  pink: '#fe56aa',
1682
- pinkDark15: '#cf4991',
1683
- pinkDark30: '#b23c77',
1684
- pinkDark45: '#8c2f5e',
1685
- pinkDark75: '#40162b',
1686
- pinkLight30: '#fe89c4',
1687
- pinkLight45: '#fea2d0',
1688
- pinkLight75: '#fcd5ea',
1689
- pinkLight90: '#ffeef7',
2376
+ hitPink: '#ffad79',
2377
+ apple: '#e3602a',
1690
2378
  purple: '#be83cf',
1691
- purpleDark15: '#a26fb0',
1692
- red: '#de350b',
1693
- redDark15: '#bd2d09',
1694
- redDark30: '#9b2508',
1695
- redDark75: '#380d03',
1696
- redLight15: '#e35330',
1697
- redLight30: '#e87254',
1698
- redLight60: '#f2ae9d',
1699
- redLight75: '#f7cdc2',
1700
- redLight90: '#fcebe7',
2379
+ scarletGum: '#401960',
2380
+ vodka: '#b5c3fd',
2381
+ peach: '#f8ac7d',
2382
+ pastelRed: '#f46363',
2383
+ vermilion: '#de350b',
2384
+ linen: '#fcebe7',
1701
2385
  smalt: '#003580',
1702
- smaltDark75: '#000d20',
1703
- smaltLight30: '#4d72a6',
1704
- smaltLight45: '#7390b9',
1705
- smaltLight75: '#bfcddf',
1706
- smaltLight90: '#e6ebf2',
1707
2386
  violet: '#7622d7',
1708
- violetDark15: '#641db7',
1709
- violetDark30: '#531897',
1710
- violetDark45: '#411376',
1711
- violetDark75: '#1e0936',
1712
- violetLight30: '#9f64e3',
1713
- violetLight60: '#c8a7ef',
1714
- violetLight75: '#ddc8f5',
1715
- violetLight90: '#f1e9fb',
1716
- white: '#ffffff',
2387
+ violet1: '#8505a2',
2388
+ mauve: '#c38cee',
1717
2389
  yellow: '#fadb14',
1718
- yellowDark15: '#d5ba11',
1719
- yellowDark75: '#3f3705',
1720
- yellowLight60: '#fdf1a1',
1721
- yellowLight90: '#fffbe8'
2390
+ seashell: '#ebf4ff',
2391
+ gold: '#ffd500'
1722
2392
  };
2393
+ var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
2394
+ var _ref17 = _slicedToArray(_ref16, 2),
2395
+ key = _ref17[0],
2396
+ value = _ref17[1];
2397
+
2398
+ return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty$2({}, key, createColorScales(value)));
2399
+ }, {});
2400
+ var blue$1 = colorScales.blue,
2401
+ ultramarineBlue$1 = colorScales.ultramarineBlue,
2402
+ green$1 = colorScales.green,
2403
+ grey$2 = colorScales.grey,
2404
+ grotesqueGreen = colorScales.grotesqueGreen,
2405
+ deepSaffron$2 = colorScales.deepSaffron,
2406
+ pink$1 = colorScales.pink,
2407
+ purple$1 = colorScales.purple,
2408
+ vermilion$2 = colorScales.vermilion,
2409
+ smalt = colorScales.smalt,
2410
+ violet$1 = colorScales.violet,
2411
+ yellow$1 = colorScales.yellow;
2412
+ var palette$6 = {
2413
+ black: '#000000',
2414
+ white: '#ffffff',
2415
+ blue: blue$1.base,
2416
+ blueDark30: blue$1.darken30,
2417
+ blueDark75: blue$1.darken75,
2418
+ blueLight30: blue$1.lighten30,
2419
+ blueLight75: blue$1.lighten75,
2420
+ blueLight90: blue$1.lighten90,
2421
+ dodgerBlue: ultramarineBlue$1.base,
2422
+ dodgerBlueDark30: ultramarineBlue$1.darken30,
2423
+ dodgerBlueLight30: ultramarineBlue$1.lighten30,
2424
+ dodgerBlueLight75: ultramarineBlue$1.lighten75,
2425
+ dodgerBlueLight90: ultramarineBlue$1.lighten90,
2426
+ green: green$1.base,
2427
+ greenDark15: green$1.darken15,
2428
+ greenDark30: green$1.darken30,
2429
+ greenDark75: green$1.darken75,
2430
+ greenLight30: green$1.lighten30,
2431
+ greenLight75: green$1.lighten75,
2432
+ greenLight90: green$1.lighten90,
2433
+ grey: grey$2.base,
2434
+ greyDark15: grey$2.darken15,
2435
+ greyDark30: grey$2.darken30,
2436
+ greyDark45: grey$2.darken45,
2437
+ greyDark60: grey$2.darken60,
2438
+ greyDark75: grey$2.darken75,
2439
+ greyLight45: grey$2.lighten45,
2440
+ greyLight60: grey$2.lighten60,
2441
+ greyLight75: grey$2.lighten75,
2442
+ greyLight85: grey$2.lighten85,
2443
+ greyLight90: grey$2.lighten90,
2444
+ greyLight95: grey$2.lighten95,
2445
+ grotesqueGreen: grotesqueGreen.base,
2446
+ grotesqueGreenDark45: grotesqueGreen.darken45,
2447
+ grotesqueGreenLight60: grotesqueGreen.lighten60,
2448
+ grotesqueGreenLight75: grotesqueGreen.lighten75,
2449
+ grotesqueGreenLight90: grotesqueGreen.lighten90,
2450
+ orange: deepSaffron$2.base,
2451
+ orangeDark15: deepSaffron$2.darken15,
2452
+ orangeDark30: deepSaffron$2.darken30,
2453
+ orangeDark75: deepSaffron$2.darken75,
2454
+ orangeLight30: deepSaffron$2.lighten30,
2455
+ orangeLight75: deepSaffron$2.lighten75,
2456
+ orangeLight90: deepSaffron$2.lighten90,
2457
+ pink: pink$1.base,
2458
+ pinkDark15: pink$1.darken15,
2459
+ pinkDark30: pink$1.darken30,
2460
+ pinkDark45: pink$1.darken45,
2461
+ pinkDark75: pink$1.darken75,
2462
+ pinkLight30: pink$1.lighten30,
2463
+ pinkLight45: pink$1.lighten45,
2464
+ pinkLight75: pink$1.lighten75,
2465
+ pinkLight90: pink$1.lighten90,
2466
+ purple: purple$1.base,
2467
+ purpleDark15: purple$1.darken15,
2468
+ red: vermilion$2.base,
2469
+ redDark15: vermilion$2.darken15,
2470
+ redDark30: vermilion$2.darken30,
2471
+ redDark75: vermilion$2.darken75,
2472
+ redLight15: vermilion$2.lighten15,
2473
+ redLight30: vermilion$2.lighten30,
2474
+ redLight60: vermilion$2.lighten60,
2475
+ redLight75: vermilion$2.lighten75,
2476
+ redLight90: vermilion$2.lighten90,
2477
+ smalt: smalt.base,
2478
+ smaltDark75: smalt.darken75,
2479
+ smaltLight30: smalt.lighten30,
2480
+ smaltLight45: smalt.lighten45,
2481
+ smaltLight75: smalt.lighten75,
2482
+ smaltLight90: smalt.lighten90,
2483
+ violet: violet$1.base,
2484
+ violetDark15: violet$1.darken15,
2485
+ violetDark30: violet$1.darken30,
2486
+ violetDark45: violet$1.darken45,
2487
+ violetDark75: violet$1.darken75,
2488
+ violetLight30: violet$1.lighten30,
2489
+ violetLight60: violet$1.lighten60,
2490
+ violetLight75: violet$1.lighten75,
2491
+ violetLight90: violet$1.lighten90,
2492
+ yellow: yellow$1.base,
2493
+ yellowDark15: yellow$1.darken15,
2494
+ yellowDark75: yellow$1.darken75,
2495
+ yellowLight60: yellow$1.lighten60,
2496
+ yellowLight90: yellow$1.lighten90
2497
+ };
2498
+ var maasstrichtBlue = colorScales.maasstrichtBlue,
2499
+ grey$1 = colorScales.grey,
2500
+ pastelRed$1 = colorScales.pastelRed,
2501
+ mellowApricot = colorScales.mellowApricot,
2502
+ emerald$1 = colorScales.emerald,
2503
+ vodka = colorScales.vodka,
2504
+ vermilion$1 = colorScales.vermilion,
2505
+ deepSaffron$1 = colorScales.deepSaffron,
2506
+ pineGreen = colorScales.pineGreen,
2507
+ ultramarineBlue = colorScales.ultramarineBlue,
2508
+ sonicSilver = colorScales.sonicSilver,
2509
+ linen$1 = colorScales.linen,
2510
+ seashell$1 = colorScales.seashell,
2511
+ honeydew$1 = colorScales.honeydew,
2512
+ aliceBlue = colorScales.aliceBlue,
2513
+ antiFlashWhite = colorScales.antiFlashWhite,
2514
+ apple$1 = colorScales.apple;
2515
+ var palette$5 = {
2516
+ black: '#000000',
2517
+ white: '#ffffff',
2518
+ greyLight95: grey$1.lighten95,
2519
+ greyLight90: grey$1.lighten90,
2520
+ greyLight75: grey$1.lighten75,
2521
+ greyLight45: grey$1.lighten45,
2522
+ greyLight30: grey$1.lighten30,
2523
+ grey: grey$1.base,
2524
+ maasstrichtBlueLight90: maasstrichtBlue.lighten90,
2525
+ maasstrichtBlueLight80: maasstrichtBlue.lighten80,
2526
+ maasstrichtBlueLight50: maasstrichtBlue.lighten50,
2527
+ maasstrichtBlueLight30: maasstrichtBlue.lighten30,
2528
+ maasstrichtBlue: maasstrichtBlue.base,
2529
+ pastelRed: pastelRed$1.base,
2530
+ mellowApricot: mellowApricot.base,
2531
+ emerald: emerald$1.base,
2532
+ vodka: vodka.base,
2533
+ vermilion: vermilion$1.base,
2534
+ deepSaffron: deepSaffron$1.base,
2535
+ pineGreen: pineGreen.base,
2536
+ ultramarineBlue: ultramarineBlue.base,
2537
+ sonicSilver: sonicSilver.base,
2538
+ linen: linen$1.base,
2539
+ seashell: seashell$1.base,
2540
+ honeydew: honeydew$1.base,
2541
+ aliceBlue: aliceBlue.base,
2542
+ antiFlashWhite: antiFlashWhite.base,
2543
+ apple: apple$1.base
2544
+ };
2545
+ var emerald = colorScales.emerald,
2546
+ blue1 = colorScales.blue1,
2547
+ nightBlue = colorScales.nightBlue,
2548
+ darkBlue = colorScales.darkBlue,
2549
+ grey$3 = colorScales.grey,
2550
+ deepSaffron = colorScales.deepSaffron,
2551
+ peach = colorScales.peach,
2552
+ vermilion = colorScales.vermilion,
2553
+ pastelRed = colorScales.pastelRed,
2554
+ mauve = colorScales.mauve;
2555
+
2556
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2557
+ nightBlue: nightBlue.base,
2558
+ blueLight60: blue1.lighten60,
2559
+ blue: blue1.base,
2560
+ darkBlue: darkBlue.base,
2561
+ darkBlueDark15: darkBlue.darken15,
2562
+ green: emerald.base,
2563
+ greyDark45: grey$3.darken45,
2564
+ greyDark75: grey$3.darken75,
2565
+ greyLight30: grey$3.lighten30,
2566
+ greyLight45: grey$3.lighten45,
2567
+ greyLight90: grey$3.lighten90,
2568
+ orangeLight30: deepSaffron.lighten30,
2569
+ peach: peach.base,
2570
+ peachLight75: peach.lighten75,
2571
+ red: vermilion.base,
2572
+ pastelRed: pastelRed.base,
2573
+ mauve: mauve.base
2574
+ });
2575
+
2576
+ var apple = colorScales.apple,
2577
+ currant = colorScales.currant;
2578
+
2579
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2580
+ apple: apple.base,
2581
+ currant: currant.base
2582
+ });
2583
+
2584
+ var scarletGum = colorScales.scarletGum,
2585
+ violet1 = colorScales.violet1;
2586
+
2587
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2588
+ scarletGumLight30: scarletGum.lighten30,
2589
+ scarletGumLight50: scarletGum.lighten50,
2590
+ scarletGumLight80: scarletGum.lighten80,
2591
+ scarletGumLight90: scarletGum.lighten90,
2592
+ scarletGum: scarletGum.base,
2593
+ violetLight30: violet1.lighten30,
2594
+ violetLight50: violet1.lighten50,
2595
+ violetLight80: violet1.lighten80,
2596
+ violetLight90: violet1.lighten90,
2597
+ violet: violet1.base
2598
+ });
2599
+
2600
+ var jordyBlue = colorScales.jordyBlue,
2601
+ cornflowerBlue = colorScales.cornflowerBlue,
2602
+ paua = colorScales.paua;
2603
+
2604
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2605
+ jordyBlueLight30: jordyBlue.lighten30,
2606
+ jordyBlueLight50: jordyBlue.lighten50,
2607
+ jordyBlueLight70: jordyBlue.lighten70,
2608
+ jordyBlueLight90: jordyBlue.lighten90,
2609
+ jordyBlue: jordyBlue.base,
2610
+ cornflowerBlue: cornflowerBlue.base,
2611
+ paua: paua.base
2612
+ });
2613
+
2614
+ var gold$1 = colorScales.gold;
2615
+
2616
+ _objectSpread2(_objectSpread2({}, palette$5), {}, {
2617
+ goldLight20: gold$1.lighten20,
2618
+ goldLight50: gold$1.lighten50,
2619
+ goldLight70: gold$1.lighten70,
2620
+ goldLight90: gold$1.lighten90,
2621
+ gold: gold$1.base
2622
+ });
1723
2623
 
1724
2624
  var systemPalette = {
1725
- primary: palette.violet,
1726
- primaryLight: palette.violetLight60,
1727
- primaryDark: palette.purpleDark15,
1728
- primaryBackground: palette.violetLight90,
1729
- secondary: palette.dodgerBlue,
1730
- secondaryLight: palette.dodgerBlueLight75,
1731
- info: palette.dodgerBlue,
1732
- infoMediumLight: palette.blue,
1733
- infoLight: palette.dodgerBlueLight75,
1734
- infoBackground: palette.dodgerBlueLight90,
1735
- success: palette.green,
1736
- successDark: palette.greenDark30,
1737
- successBackground: palette.grotesqueGreenLight90,
1738
- danger: palette.red,
1739
- dangerLight: palette.redLight60,
1740
- dangerBackground: palette.redLight90,
1741
- warning: palette.orange,
1742
- warningDark: palette.orangeDark15,
1743
- warningBackground: palette.orangeLight90,
1744
- platformBackground: palette.white,
1745
- backgroundLight: palette.greyLight95,
1746
- backgroundDark: palette.greyDark75,
1747
- text: palette.greyDark75,
1748
- disabledText: palette.greyDark15,
1749
- disabledLightText: palette.greyLight45,
1750
- invertedText: palette.white,
1751
- outline: palette.greyLight60,
1752
- archived: palette.greyLight45,
1753
- black: palette.black,
1754
- inactiveBackground: palette.greyDark30
2625
+ primary: palette$6.violet,
2626
+ primaryLight: palette$6.violetLight60,
2627
+ primaryDark: palette$6.purpleDark15,
2628
+ primaryBackground: palette$6.violetLight90,
2629
+ secondary: palette$6.dodgerBlue,
2630
+ secondaryLight: palette$6.dodgerBlueLight75,
2631
+ info: palette$6.dodgerBlue,
2632
+ infoMediumLight: palette$5.vodka,
2633
+ infoLight: palette$6.dodgerBlueLight75,
2634
+ infoBackground: palette$6.dodgerBlueLight90,
2635
+ success: palette$6.green,
2636
+ successLight: palette$5.emerald,
2637
+ successDark: palette$6.greenDark30,
2638
+ successBackground: palette$6.grotesqueGreenLight90,
2639
+ danger: palette$6.red,
2640
+ dangerMediumLight: palette$5.apple,
2641
+ dangerLight: palette$6.redLight60,
2642
+ dangerBackground: palette$6.redLight90,
2643
+ warning: palette$6.orange,
2644
+ warningLight: palette$5.mellowApricot,
2645
+ warningDark: palette$6.orangeDark15,
2646
+ warningBackground: palette$6.orangeLight90,
2647
+ platformBackground: palette$6.white,
2648
+ backgroundLight: palette$6.greyLight95,
2649
+ backgroundDark: palette$6.greyDark75,
2650
+ text: palette$6.greyDark75,
2651
+ disabledText: palette$6.greyDark15,
2652
+ disabledLightText: palette$6.greyLight45,
2653
+ invertedText: palette$6.white,
2654
+ outline: palette$6.greyLight60,
2655
+ archivedDark: palette$5.greyLight30,
2656
+ archived: palette$6.greyLight45,
2657
+ black: palette$6.black,
2658
+ inactiveBackground: palette$6.greyDark30,
2659
+ shadow: palette$6.greyLight60
1755
2660
  };
1756
2661
 
1757
2662
  var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
@@ -1828,6 +2733,7 @@ var getSpace = function getSpace(baseSpace) {
1828
2733
  xxsmall: scale(baseSpace * 0.25),
1829
2734
  xsmall: scale(baseSpace * 0.5),
1830
2735
  small: scale(baseSpace),
2736
+ smallMedium: scale(baseSpace) * 1.5,
1831
2737
  medium: scale(baseSpace * 2),
1832
2738
  large: scale(baseSpace * 3),
1833
2739
  xlarge: scale(baseSpace * 4),
@@ -2065,6 +2971,8 @@ var getButtonTheme = function getButtonTheme(theme) {
2065
2971
  pressedPrimary: theme.colors.primaryLight,
2066
2972
  secondary: theme.colors.secondary,
2067
2973
  pressedSecondary: theme.colors.secondaryLight,
2974
+ danger: theme.colors.danger,
2975
+ pressedDanger: theme.colors.dangerLight,
2068
2976
  defaultText: theme.colors.text,
2069
2977
  disabledText: theme.colors.disabledLightText,
2070
2978
  disabledBorder: theme.colors.disabledLightText,
@@ -2085,13 +2993,24 @@ var getButtonTheme = function getButtonTheme(theme) {
2085
2993
 
2086
2994
  var getCardTheme = function getCardTheme(theme) {
2087
2995
  var colors = {
2088
- dataCardIndicator: theme.colors.primaryDark
2996
+ dataCardIndicator: theme.colors.primaryDark,
2997
+ indicator: {
2998
+ archived: theme.colors.archivedDark,
2999
+ info: theme.colors.infoMediumLight,
3000
+ success: theme.colors.successLight,
3001
+ warning: theme.colors.warningLight,
3002
+ danger: theme.colors.dangerMediumLight
3003
+ }
3004
+ };
3005
+ var sizes = {
3006
+ indicatorWidth: theme.space.medium
2089
3007
  };
2090
3008
  var radii = {
2091
- "default": 12
3009
+ "default": theme.radii.large
2092
3010
  };
2093
3011
  return {
2094
3012
  colors: colors,
3013
+ sizes: sizes,
2095
3014
  radii: radii
2096
3015
  };
2097
3016
  };
@@ -2247,7 +3166,8 @@ var getIconTheme = function getIconTheme(theme) {
2247
3166
  danger: theme.colors.danger,
2248
3167
  success: theme.colors.success,
2249
3168
  warning: theme.colors.warning,
2250
- disabledText: theme.colors.disabledText
3169
+ disabledText: theme.colors.disabledText,
3170
+ invertedText: theme.colors.invertedText
2251
3171
  };
2252
3172
  var sizes = {
2253
3173
  xsmall: theme.fontSizes.large,
@@ -2544,11 +3464,40 @@ var getToastTheme = function getToastTheme(theme) {
2544
3464
  };
2545
3465
  };
2546
3466
 
3467
+ var getToolbarTheme = function getToolbarTheme(theme) {
3468
+ var colors = {
3469
+ background: theme.colors.platformBackground,
3470
+ border: theme.colors.outline,
3471
+ primary: theme.colors.primary,
3472
+ info: theme.colors.info,
3473
+ success: theme.colors.success,
3474
+ danger: theme.colors.warning,
3475
+ error: theme.colors.danger,
3476
+ disabled: theme.colors.disabledText
3477
+ };
3478
+ var space = {
3479
+ verticalPadding: theme.space.small,
3480
+ horizontalPadding: theme.space.smallMedium
3481
+ };
3482
+ var borderWidths = {
3483
+ "default": theme.borderWidths.base
3484
+ };
3485
+ return {
3486
+ colors: colors,
3487
+ space: space,
3488
+ borderWidths: borderWidths
3489
+ };
3490
+ };
3491
+
2547
3492
  var getTypographyTheme = function getTypographyTheme(theme) {
2548
3493
  var colors = {
2549
3494
  body: theme.colors.text,
2550
3495
  subdued: theme.colors.disabledText,
2551
- primary: theme.colors.primary
3496
+ primary: theme.colors.primary,
3497
+ info: theme.colors.info,
3498
+ danger: theme.colors.danger,
3499
+ warning: theme.colors.warning,
3500
+ success: theme.colors.success
2552
3501
  };
2553
3502
  var fonts = {
2554
3503
  light: theme.fonts.light,
@@ -2575,6 +3524,53 @@ var getTypographyTheme = function getTypographyTheme(theme) {
2575
3524
  };
2576
3525
  };
2577
3526
 
3527
+ var getListTheme = function getListTheme(theme) {
3528
+ var colors = {
3529
+ checkedListItemContainerBackground: theme.colors.primaryBackground,
3530
+ listItemContainerBackground: theme.colors.platformBackground,
3531
+ leadingStatus: {
3532
+ danger: theme.colors.danger,
3533
+ info: theme.colors.infoLight,
3534
+ success: theme.colors.successDark,
3535
+ warning: theme.colors.warningLight,
3536
+ archived: theme.colors.archived
3537
+ }
3538
+ };
3539
+ var space = {
3540
+ listItemContainerPadding: theme.space.medium,
3541
+ leadingStatusMarginRight: theme.space.small,
3542
+ prefixContainerMarginRight: theme.space.small,
3543
+ suffixContainerMarginLeft: theme.space.small
3544
+ };
3545
+ var radii = {
3546
+ card: theme.radii.medium,
3547
+ cardShadow: theme.radii.base,
3548
+ leadingStatus: theme.radii.rounded
3549
+ };
3550
+ var offsets = {
3551
+ cardShadow: {
3552
+ width: 0,
3553
+ height: 2
3554
+ }
3555
+ };
3556
+ var widths = {
3557
+ leadingStatus: 8
3558
+ };
3559
+ var opacity = {
3560
+ disabled: 0.38,
3561
+ enabled: 1,
3562
+ cardShadow: 1
3563
+ };
3564
+ return {
3565
+ colors: colors,
3566
+ space: space,
3567
+ radii: radii,
3568
+ offsets: offsets,
3569
+ widths: widths,
3570
+ opacity: opacity
3571
+ };
3572
+ };
3573
+
2578
3574
  var getTheme = function getTheme() {
2579
3575
  var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
2580
3576
  var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
@@ -2604,7 +3600,9 @@ var getTheme = function getTheme() {
2604
3600
  tag: getTagTheme(globalTheme),
2605
3601
  textInput: getTextInputTheme(globalTheme),
2606
3602
  toast: getToastTheme(globalTheme),
2607
- typography: getTypographyTheme(globalTheme)
3603
+ toolbar: getToolbarTheme(globalTheme),
3604
+ typography: getTypographyTheme(globalTheme),
3605
+ list: getListTheme(globalTheme)
2608
3606
  }
2609
3607
  });
2610
3608
  };
@@ -6496,7 +7494,7 @@ var getDisplayName = function getDisplayName(primitive) {
6496
7494
 
6497
7495
  var styled = createStyled(ReactNative.StyleSheet);
6498
7496
  var components = ['ActivityIndicator', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'KeyboardAvoidingView', 'ListView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToolbarAndroid', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid'];
6499
- var index$2 = components.reduce(function (acc, comp) {
7497
+ var index$5 = components.reduce(function (acc, comp) {
6500
7498
  return Object.defineProperty(acc, comp, {
6501
7499
  enumerable: true,
6502
7500
  configurable: false,
@@ -14433,9 +15431,10 @@ var COLOR_INTENTS = {
14433
15431
  danger: 'danger',
14434
15432
  success: 'success',
14435
15433
  warning: 'warning',
14436
- 'disabled-text': 'disabledText'
15434
+ 'disabled-text': 'disabledText',
15435
+ 'text-inverted': 'invertedText'
14437
15436
  };
14438
- var StyledHeroIcon = index$2(HeroIcon)(function (_ref) {
15437
+ var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
14439
15438
  var themeIntent = _ref.themeIntent,
14440
15439
  themeSize = _ref.themeSize,
14441
15440
  theme = _ref.theme;
@@ -14467,7 +15466,7 @@ var FONTWEIGHT_MAP = {
14467
15466
  regular: 'regular',
14468
15467
  'semi-bold': 'semiBold'
14469
15468
  };
14470
- var StyledText$3 = index$2(ReactNative.Text)(function (_ref) {
15469
+ var StyledText$3 = index$5(ReactNative.Text)(function (_ref) {
14471
15470
  var themeFontSize = _ref.themeFontSize,
14472
15471
  themeFontWeight = _ref.themeFontWeight,
14473
15472
  themeIntent = _ref.themeIntent,
@@ -14483,7 +15482,7 @@ var StyledText$3 = index$2(ReactNative.Text)(function (_ref) {
14483
15482
  });
14484
15483
  });
14485
15484
 
14486
- var _excluded$c = ["children", "fontSize", "fontWeight", "intent"];
15485
+ var _excluded$d = ["children", "fontSize", "fontWeight", "intent"];
14487
15486
 
14488
15487
  var Text = function Text(_ref) {
14489
15488
  var children = _ref.children,
@@ -14493,7 +15492,7 @@ var Text = function Text(_ref) {
14493
15492
  fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
14494
15493
  _ref$intent = _ref.intent,
14495
15494
  intent = _ref$intent === void 0 ? 'body' : _ref$intent,
14496
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
15495
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$d);
14497
15496
 
14498
15497
  return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$3({}, nativeProps, {
14499
15498
  themeFontSize: fontSize,
@@ -14506,7 +15505,7 @@ var Typography = {
14506
15505
  Text: Text
14507
15506
  };
14508
15507
 
14509
- var Container$2 = index$2(ReactNative.View)(function (_ref) {
15508
+ var Container$2 = index$5(ReactNative.View)(function (_ref) {
14510
15509
  var theme = _ref.theme,
14511
15510
  _ref$themeVariant = _ref.themeVariant,
14512
15511
  themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
@@ -14518,21 +15517,21 @@ var Container$2 = index$2(ReactNative.View)(function (_ref) {
14518
15517
  flexDirection: 'row'
14519
15518
  };
14520
15519
  });
14521
- var IconContainer$1 = index$2(ReactNative.View)(function (_ref2) {
15520
+ var IconContainer$1 = index$5(ReactNative.View)(function (_ref2) {
14522
15521
  var theme = _ref2.theme;
14523
15522
  return {
14524
15523
  alignItems: 'center',
14525
15524
  paddingLeft: theme.__hd__.alert.space.padding
14526
15525
  };
14527
15526
  });
14528
- var TextContainer$1 = index$2(ReactNative.View)(function (_ref3) {
15527
+ var TextContainer$1 = index$5(ReactNative.View)(function (_ref3) {
14529
15528
  var theme = _ref3.theme;
14530
15529
  return {
14531
15530
  paddingHorizontal: theme.__hd__.alert.space.padding,
14532
15531
  flex: 1
14533
15532
  };
14534
15533
  });
14535
- var ContentContainer$1 = index$2(ReactNative.View)(function (_ref4) {
15534
+ var ContentContainer$1 = index$5(ReactNative.View)(function (_ref4) {
14536
15535
  var theme = _ref4.theme,
14537
15536
  showDivider = _ref4.showDivider;
14538
15537
  return {
@@ -14543,7 +15542,7 @@ var ContentContainer$1 = index$2(ReactNative.View)(function (_ref4) {
14543
15542
  flexDirection: 'row'
14544
15543
  };
14545
15544
  });
14546
- var CTAWrapper$1 = index$2(ReactNative.TouchableOpacity)(function (_ref5) {
15545
+ var CTAWrapper$1 = index$5(ReactNative.TouchableOpacity)(function (_ref5) {
14547
15546
  var theme = _ref5.theme;
14548
15547
  return {
14549
15548
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -14601,7 +15600,7 @@ var Alert = function Alert(_ref) {
14601
15600
  })) : null);
14602
15601
  };
14603
15602
 
14604
- var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
15603
+ var StyledPressable = index$5(ReactNative.TouchableOpacity)(function (_ref) {
14605
15604
  var themeSize = _ref.themeSize,
14606
15605
  themeIntent = _ref.themeIntent,
14607
15606
  theme = _ref.theme;
@@ -14614,7 +15613,7 @@ var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
14614
15613
  overflow: 'hidden'
14615
15614
  };
14616
15615
  });
14617
- var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
15616
+ var StyledView$3 = index$5(ReactNative.View)(function (_ref2) {
14618
15617
  var themeSize = _ref2.themeSize,
14619
15618
  themeIntent = _ref2.themeIntent,
14620
15619
  theme = _ref2.theme;
@@ -14627,7 +15626,7 @@ var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
14627
15626
  overflow: 'hidden'
14628
15627
  };
14629
15628
  });
14630
- var StyledTextWrapper = index$2(ReactNative.View)(function () {
15629
+ var StyledTextWrapper = index$5(ReactNative.View)(function () {
14631
15630
  return {
14632
15631
  alignItems: 'center',
14633
15632
  justifyContent: 'center',
@@ -14636,7 +15635,7 @@ var StyledTextWrapper = index$2(ReactNative.View)(function () {
14636
15635
  height: '100%'
14637
15636
  };
14638
15637
  });
14639
- var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
15638
+ var StyledText$2 = index$5(ReactNative.Text)(function (_ref3) {
14640
15639
  var themeSize = _ref3.themeSize,
14641
15640
  themeIntent = _ref3.themeIntent,
14642
15641
  theme = _ref3.theme;
@@ -14646,7 +15645,7 @@ var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
14646
15645
  overflow: 'hidden'
14647
15646
  };
14648
15647
  });
14649
- var StyledImage = index$2(ReactNative.Image)(function (_ref4) {
15648
+ var StyledImage = index$5(ReactNative.Image)(function (_ref4) {
14650
15649
  var themeSize = _ref4.themeSize,
14651
15650
  theme = _ref4.theme;
14652
15651
  return {
@@ -14682,7 +15681,7 @@ var Avatar = function Avatar(_ref) {
14682
15681
  })) : null;
14683
15682
  };
14684
15683
 
14685
- var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
15684
+ var StyledView$2 = index$5(ReactNative.Animated.View)(function (_ref) {
14686
15685
  var themeIntent = _ref.themeIntent,
14687
15686
  themePadding = _ref.themePadding,
14688
15687
  theme = _ref.theme;
@@ -14696,7 +15695,7 @@ var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
14696
15695
  paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
14697
15696
  };
14698
15697
  });
14699
- var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
15698
+ var StyledText$1 = index$5(ReactNative.Text)(function (_ref2) {
14700
15699
  var theme = _ref2.theme;
14701
15700
  return {
14702
15701
  fontFamily: theme.__hd__.badge.fonts["default"],
@@ -14707,7 +15706,7 @@ var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
14707
15706
  textAlign: 'center'
14708
15707
  };
14709
15708
  });
14710
- var StyledStatus = index$2(ReactNative.Animated.View)(function (_ref3) {
15709
+ var StyledStatus = index$5(ReactNative.Animated.View)(function (_ref3) {
14711
15710
  var themeIntent = _ref3.themeIntent,
14712
15711
  theme = _ref3.theme;
14713
15712
  return {
@@ -14721,7 +15720,7 @@ var StyledStatus = index$2(ReactNative.Animated.View)(function (_ref3) {
14721
15720
  };
14722
15721
  });
14723
15722
 
14724
- var _excluded$b = ["children", "visible", "intent", "style", "testID"];
15723
+ var _excluded$c = ["children", "visible", "intent", "style", "testID"];
14725
15724
 
14726
15725
  var Status = function Status(_ref) {
14727
15726
  var children = _ref.children,
@@ -14731,7 +15730,7 @@ var Status = function Status(_ref) {
14731
15730
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14732
15731
  style = _ref.style,
14733
15732
  testID = _ref.testID,
14734
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
15733
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
14735
15734
 
14736
15735
  var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
14737
15736
  opacity = _React$useRef.current;
@@ -14767,7 +15766,7 @@ var Status = function Status(_ref) {
14767
15766
  }));
14768
15767
  };
14769
15768
 
14770
- var _excluded$a = ["content", "visible", "max", "intent", "style", "testID"];
15769
+ var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
14771
15770
  var DEFAULT_MAX_NUMBER = 99;
14772
15771
 
14773
15772
  var getPaddingState = function getPaddingState(content) {
@@ -14784,7 +15783,7 @@ var Badge = function Badge(_ref) {
14784
15783
  intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
14785
15784
  style = _ref.style,
14786
15785
  testID = _ref.testID,
14787
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
15786
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
14788
15787
 
14789
15788
  var _React$useRef = React__default["default"].useRef(new ReactNative.Animated.Value(visible ? 1 : 0)),
14790
15789
  opacity = _React$useRef.current;
@@ -14830,21 +15829,21 @@ var isHeroIcon = function isHeroIcon(x) {
14830
15829
  return IconList.includes(x);
14831
15830
  };
14832
15831
 
14833
- var BottomNavigationTab = index$2(ReactNative.View)(function (_ref) {
15832
+ var BottomNavigationTab = index$5(ReactNative.View)(function (_ref) {
14834
15833
  var themeVisibility = _ref.themeVisibility;
14835
15834
  return {
14836
15835
  flex: 1,
14837
15836
  display: themeVisibility === false ? 'none' : 'flex'
14838
15837
  };
14839
15838
  });
14840
- var BottomNavigationContainer = index$2(ReactNative.View)({
15839
+ var BottomNavigationContainer = index$5(ReactNative.View)({
14841
15840
  flex: 1,
14842
15841
  overflow: 'hidden'
14843
15842
  });
14844
- var ContentWrapper$2 = index$2(ReactNative.View)({
15843
+ var ContentWrapper$2 = index$5(ReactNative.View)({
14845
15844
  flex: 1
14846
15845
  });
14847
- var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
15846
+ var BottomBarWrapper = index$5(ReactNative.View)(function (_ref2) {
14848
15847
  var themeInsets = _ref2.themeInsets,
14849
15848
  theme = _ref2.theme;
14850
15849
  return {
@@ -14860,17 +15859,17 @@ var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
14860
15859
  elevation: theme.__hd__.bottomNavigation.shadows.elevation
14861
15860
  };
14862
15861
  });
14863
- var BottomBar = index$2(ReactNative.View)({
15862
+ var BottomBar = index$5(ReactNative.View)({
14864
15863
  flex: 1,
14865
15864
  flexDirection: 'row',
14866
15865
  overflow: 'hidden',
14867
15866
  alignItems: 'center'
14868
15867
  });
14869
- var BottomBarItem = index$2(ReactNative.View)({
15868
+ var BottomBarItem = index$5(ReactNative.View)({
14870
15869
  flex: 1,
14871
15870
  alignItems: 'center'
14872
15871
  });
14873
- var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
15872
+ var StyledBottomBarText = index$5(Typography.Text)(function (_ref3) {
14874
15873
  var theme = _ref3.theme;
14875
15874
  return {
14876
15875
  marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
@@ -14880,7 +15879,7 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
14880
15879
  var isIOS = ReactNative.Platform.OS === 'ios';
14881
15880
  ReactNative.Platform.OS === 'android';
14882
15881
 
14883
- var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
15882
+ var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
14884
15883
 
14885
15884
  var getInactiveIcon = function getInactiveIcon(icon) {
14886
15885
  var inactiveIcon = "".concat(icon, "-outlined");
@@ -14893,7 +15892,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14893
15892
  renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
14894
15893
  selectedTabKey = _ref.selectedTabKey,
14895
15894
  tabs = _ref.tabs,
14896
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
15895
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
14897
15896
 
14898
15897
  var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
14899
15898
  /**
@@ -14967,7 +15966,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
14967
15966
  }))));
14968
15967
  };
14969
15968
 
14970
- var StyledDivider = index$2(ReactNative.View)(function (_ref) {
15969
+ var StyledDivider = index$5(ReactNative.View)(function (_ref) {
14971
15970
  var themeMarginHorizontal = _ref.themeMarginHorizontal,
14972
15971
  themeMarginVertical = _ref.themeMarginVertical,
14973
15972
  theme = _ref.theme;
@@ -14984,14 +15983,14 @@ var StyledDivider = index$2(ReactNative.View)(function (_ref) {
14984
15983
  }, horizontalMargin), verticalMargin);
14985
15984
  });
14986
15985
 
14987
- var _excluded$8 = ["marginHorizontal", "marginVertical", "style", "testID"];
15986
+ var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
14988
15987
 
14989
15988
  var Divider = function Divider(_ref) {
14990
15989
  var marginHorizontal = _ref.marginHorizontal,
14991
15990
  marginVertical = _ref.marginVertical,
14992
15991
  style = _ref.style,
14993
15992
  testID = _ref.testID,
14994
- nativeProps = _objectWithoutProperties$1(_ref, _excluded$8);
15993
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
14995
15994
 
14996
15995
  return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$3({}, nativeProps, {
14997
15996
  themeMarginHorizontal: marginHorizontal,
@@ -15002,10 +16001,10 @@ var Divider = function Divider(_ref) {
15002
16001
  };
15003
16002
 
15004
16003
  var AnimatedPressable$1 = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15005
- var StyledWrapper$5 = index$2(ReactNative.View)(_objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
16004
+ var StyledWrapper$5 = index$5(ReactNative.View)(_objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15006
16005
  flexDirection: 'column-reverse'
15007
16006
  }));
15008
- var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
16007
+ var StyledBottomSheet = index$5(ReactNative.Animated.View)(function (_ref) {
15009
16008
  var theme = _ref.theme;
15010
16009
  return {
15011
16010
  borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
@@ -15020,21 +16019,21 @@ var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
15020
16019
  maxHeight: '94%'
15021
16020
  };
15022
16021
  });
15023
- var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
16022
+ var StyledBackdrop$2 = index$5(AnimatedPressable$1)(function (_ref2) {
15024
16023
  var theme = _ref2.theme;
15025
16024
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15026
16025
  backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
15027
16026
  opacity: 0.48
15028
16027
  });
15029
16028
  });
15030
- var StyledHeaderWrapper = index$2(ReactNative.View)(function (_ref3) {
16029
+ var StyledHeaderWrapper = index$5(ReactNative.View)(function (_ref3) {
15031
16030
  var theme = _ref3.theme;
15032
16031
  return {
15033
16032
  minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
15034
16033
  flexDirection: 'row'
15035
16034
  };
15036
16035
  });
15037
- var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
16036
+ var StyledHeader = index$5(ReactNative.View)(function (_ref4) {
15038
16037
  var theme = _ref4.theme,
15039
16038
  adjacentIcon = _ref4.adjacentIcon;
15040
16039
  return {
@@ -15045,7 +16044,7 @@ var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
15045
16044
  justifyContent: 'center'
15046
16045
  };
15047
16046
  });
15048
- var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
16047
+ var StyledFooter = index$5(ReactNative.View)(function (_ref5) {
15049
16048
  var theme = _ref5.theme;
15050
16049
  return {
15051
16050
  paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
@@ -15056,7 +16055,7 @@ var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
15056
16055
  flexDirection: 'row'
15057
16056
  };
15058
16057
  });
15059
- var StyledIconWrapper$1 = index$2(ReactNative.View)(function (_ref6) {
16058
+ var StyledIconWrapper$1 = index$5(ReactNative.View)(function (_ref6) {
15060
16059
  var theme = _ref6.theme;
15061
16060
  return {
15062
16061
  alignItems: 'center',
@@ -15077,7 +16076,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
15077
16076
  };
15078
16077
  };
15079
16078
 
15080
- var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
16079
+ var StyledLoadingIndicatorWrapper = index$5(ReactNative.View)(function (_ref) {
15081
16080
  var theme = _ref.theme;
15082
16081
  return {
15083
16082
  flexDirection: 'row',
@@ -15086,7 +16085,7 @@ var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
15086
16085
  paddingVertical: theme.space.xxsmall
15087
16086
  };
15088
16087
  });
15089
- var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
16088
+ var StyledLoadingDot = index$5(ReactNative.View)(function (_ref2) {
15090
16089
  var _ref2$size = _ref2.size,
15091
16090
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15092
16091
  themeVariant = _ref2.themeVariant,
@@ -15097,6 +16096,7 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15097
16096
  case 'basic-transparent':
15098
16097
  case 'filled-primary':
15099
16098
  case 'filled-secondary':
16099
+ case 'filled-danger':
15100
16100
  return {
15101
16101
  backgroundColor: theme.__hd__.button.colors.invertedText
15102
16102
  };
@@ -15106,6 +16106,9 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15106
16106
 
15107
16107
  case 'outlined-secondary':
15108
16108
  return genLoadingIndicatorStyles(theme, 'secondary');
16109
+
16110
+ case 'outlined-danger':
16111
+ return genLoadingIndicatorStyles(theme, 'danger');
15109
16112
  }
15110
16113
  };
15111
16114
 
@@ -15119,7 +16122,7 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
15119
16122
  }, themeStyling());
15120
16123
  });
15121
16124
 
15122
- var _excluded$7 = ["count", "size", "testID", "themeVariant"];
16125
+ var _excluded$8 = ["count", "size", "testID", "themeVariant"];
15123
16126
  var AnimatedLoadingIndicatorWrapper = ReactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
15124
16127
  var AnimatedLoadingDot = ReactNative.Animated.createAnimatedComponent(StyledLoadingDot);
15125
16128
 
@@ -15153,7 +16156,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15153
16156
  size = _ref2$size === void 0 ? 12 : _ref2$size,
15154
16157
  testID = _ref2.testID,
15155
16158
  themeVariant = _ref2.themeVariant,
15156
- nativeProps = _objectWithoutProperties$1(_ref2, _excluded$7);
16159
+ nativeProps = _objectWithoutProperties$1(_ref2, _excluded$8);
15157
16160
 
15158
16161
  var progressAnimation = React.useRef(new ReactNative.Animated.Value(0));
15159
16162
  React.useEffect(function () {
@@ -15190,7 +16193,8 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
15190
16193
 
15191
16194
  var PRESSED_COLORS = {
15192
16195
  primary: 'pressedPrimary',
15193
- secondary: 'pressedSecondary'
16196
+ secondary: 'pressedSecondary',
16197
+ danger: 'pressedDanger'
15194
16198
  };
15195
16199
 
15196
16200
  var genBasicTransparentContainerStyles = function genBasicTransparentContainerStyles(theme, pressed, disabled) {
@@ -15304,7 +16308,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
15304
16308
  }, textColorStyling());
15305
16309
  };
15306
16310
 
15307
- var StyledButtonContainer = index$2(ReactNative.View)(function (_ref) {
16311
+ var StyledButtonContainer = index$5(ReactNative.View)(function (_ref) {
15308
16312
  var _ref$disabled = _ref.disabled,
15309
16313
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
15310
16314
  _ref$pressed = _ref.pressed,
@@ -15322,14 +16326,20 @@ var StyledButtonContainer = index$2(ReactNative.View)(function (_ref) {
15322
16326
  case 'filled-secondary':
15323
16327
  return genFilledContainerStyles(theme, 'secondary', pressed, disabled);
15324
16328
 
16329
+ case 'filled-danger':
16330
+ return genFilledContainerStyles(theme, 'danger', pressed, disabled);
16331
+
15325
16332
  case 'outlined-primary':
15326
16333
  return genOutlineContainerStyles(theme, 'primary', pressed, disabled);
15327
16334
 
15328
16335
  case 'outlined-secondary':
15329
16336
  return genOutlineContainerStyles(theme, 'secondary', pressed, disabled);
16337
+
16338
+ case 'outlined-danger':
16339
+ return genOutlineContainerStyles(theme, 'danger', pressed, disabled);
15330
16340
  }
15331
16341
  });
15332
- var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
16342
+ var StyledButtonText = index$5(Typography.Text)(function (_ref2) {
15333
16343
  var disabled = _ref2.disabled,
15334
16344
  pressed = _ref2.pressed,
15335
16345
  themeVariant = _ref2.themeVariant,
@@ -15346,6 +16356,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15346
16356
 
15347
16357
  case 'filled-primary':
15348
16358
  case 'filled-secondary':
16359
+ case 'filled-danger':
15349
16360
  return {
15350
16361
  fontSize: theme.__hd__.button.fontSize["default"],
15351
16362
  lineHeight: theme.__hd__.button.lineHeight["default"],
@@ -15357,6 +16368,9 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15357
16368
 
15358
16369
  case 'outlined-secondary':
15359
16370
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16371
+
16372
+ case 'outlined-danger':
16373
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15360
16374
  }
15361
16375
  };
15362
16376
 
@@ -15366,7 +16380,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
15366
16380
  fontFamily: theme.__hd__.button.fonts["default"]
15367
16381
  }, themeStyling());
15368
16382
  });
15369
- var StyledButtonIconWrapper = index$2(ReactNative.View)(function (_ref3) {
16383
+ var StyledButtonIconWrapper = index$5(ReactNative.View)(function (_ref3) {
15370
16384
  var themePosition = _ref3.themePosition,
15371
16385
  theme = _ref3.theme;
15372
16386
 
@@ -15382,7 +16396,7 @@ var StyledButtonIconWrapper = index$2(ReactNative.View)(function (_ref3) {
15382
16396
  };
15383
16397
  }
15384
16398
  });
15385
- var StyledButtonIcon = index$2(Icon)(function (_ref4) {
16399
+ var StyledButtonIcon = index$5(Icon)(function (_ref4) {
15386
16400
  var disabled = _ref4.disabled,
15387
16401
  pressed = _ref4.pressed,
15388
16402
  themeVariant = _ref4.themeVariant,
@@ -15397,6 +16411,7 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15397
16411
 
15398
16412
  case 'filled-primary':
15399
16413
  case 'filled-secondary':
16414
+ case 'filled-danger':
15400
16415
  return {
15401
16416
  color: theme.__hd__.button.colors.invertedText
15402
16417
  };
@@ -15406,6 +16421,9 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15406
16421
 
15407
16422
  case 'outlined-secondary':
15408
16423
  return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
16424
+
16425
+ case 'outlined-danger':
16426
+ return genOutlineTextStyles(theme, 'danger', pressed, disabled);
15409
16427
  }
15410
16428
  };
15411
16429
 
@@ -15416,11 +16434,13 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
15416
16434
 
15417
16435
  var FILLED_VARIANTS = {
15418
16436
  primary: 'filled-primary',
15419
- secondary: 'filled-secondary'
16437
+ secondary: 'filled-secondary',
16438
+ danger: 'filled-danger'
15420
16439
  };
15421
16440
  var OUTLINED_VARIANTS = {
15422
16441
  primary: 'outlined-primary',
15423
- secondary: 'outlined-secondary'
16442
+ secondary: 'outlined-secondary',
16443
+ danger: 'outlined-danger'
15424
16444
  };
15425
16445
  var getThemeVariant = function getThemeVariant(variant, intent) {
15426
16446
  switch (variant) {
@@ -15648,15 +16668,46 @@ var BottomSheet = function BottomSheet(_ref) {
15648
16668
  }, footer) : null)));
15649
16669
  };
15650
16670
 
15651
- var StyledCard = index$2(ReactNative.View)(function (_ref) {
15652
- var themeVariant = _ref.themeVariant,
15653
- theme = _ref.theme;
15654
- var sharedStyles = {
16671
+ var StyledDataCard = index$5(ReactNative.View)(function (_ref) {
16672
+ var theme = _ref.theme;
16673
+ return {
15655
16674
  borderRadius: theme.__hd__.card.radii["default"],
15656
- overflow: 'hidden'
16675
+ overflow: 'hidden',
16676
+ flexDirection: 'row'
16677
+ };
16678
+ });
16679
+ var Indicator = index$5(ReactNative.View)(function (_ref2) {
16680
+ var theme = _ref2.theme,
16681
+ themeIntent = _ref2.themeIntent;
16682
+ return {
16683
+ backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
16684
+ width: theme.__hd__.card.sizes.indicatorWidth,
16685
+ height: '100%'
16686
+ };
16687
+ });
16688
+
16689
+ var _excluded$7 = ["intent", "children"];
16690
+
16691
+ var DataCard = function DataCard(_ref) {
16692
+ var _ref$intent = _ref.intent,
16693
+ intent = _ref$intent === void 0 ? 'info' : _ref$intent,
16694
+ children = _ref.children,
16695
+ nativeProps = _objectWithoutProperties$1(_ref, _excluded$7);
16696
+
16697
+ return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
16698
+ themeIntent: intent,
16699
+ testID: "data-card-indicator"
16700
+ }), children);
16701
+ };
16702
+
16703
+ var StyledCard = index$5(ReactNative.View)(function (_ref) {
16704
+ var themeVariant = _ref.themeVariant,
16705
+ theme = _ref.theme;
16706
+ var sharedStyles = {
16707
+ borderRadius: theme.__hd__.card.radii["default"],
16708
+ overflow: 'hidden'
15657
16709
  };
15658
16710
  var dataStyles = {
15659
- flex: 1,
15660
16711
  flexDirection: 'row'
15661
16712
  };
15662
16713
 
@@ -15668,11 +16719,11 @@ var StyledCard = index$2(ReactNative.View)(function (_ref) {
15668
16719
  return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
15669
16720
  }
15670
16721
  });
15671
- var LeftDataCard = index$2(ReactNative.View)(function (_ref2) {
16722
+ var LeftDataCard = index$5(ReactNative.View)(function (_ref2) {
15672
16723
  var theme = _ref2.theme;
15673
16724
  return {
15674
16725
  backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
15675
- width: scale(16),
16726
+ width: theme.__hd__.card.sizes.indicatorWidth,
15676
16727
  height: '100%'
15677
16728
  };
15678
16729
  });
@@ -15692,7 +16743,11 @@ var Card = function Card(_ref) {
15692
16743
  }), children);
15693
16744
  };
15694
16745
 
15695
- var StyledWrapper$4 = index$2(ReactNative.Animated.View)(function () {
16746
+ var index$4 = Object.assign(Card, {
16747
+ Data: DataCard
16748
+ });
16749
+
16750
+ var StyledWrapper$4 = index$5(ReactNative.Animated.View)(function () {
15696
16751
  return {
15697
16752
  margin: 0,
15698
16753
  padding: 0,
@@ -15705,12 +16760,12 @@ var StyledWrapper$4 = index$2(ReactNative.Animated.View)(function () {
15705
16760
  * to use with Animated.timing
15706
16761
  */
15707
16762
 
15708
- var StyledHiddenWrapper = index$2(ReactNative.View)(function () {
16763
+ var StyledHiddenWrapper = index$5(ReactNative.View)(function () {
15709
16764
  return {
15710
16765
  height: ReactNative.Dimensions.get('window').height
15711
16766
  };
15712
16767
  });
15713
- var StyledChildWrapper = index$2(ReactNative.View)(function () {
16768
+ var StyledChildWrapper = index$5(ReactNative.View)(function () {
15714
16769
  return {
15715
16770
  margin: 0,
15716
16771
  padding: 0
@@ -15764,7 +16819,7 @@ var Collapse = function Collapse(_ref) {
15764
16819
  }, children)));
15765
16820
  };
15766
16821
 
15767
- var StyledWrapper$3 = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16822
+ var StyledWrapper$3 = index$5(ReactNative.TouchableOpacity)(function (_ref) {
15768
16823
  var theme = _ref.theme,
15769
16824
  disabled = _ref.disabled;
15770
16825
  return {
@@ -15804,14 +16859,14 @@ var CheckBox = function CheckBox(_ref) {
15804
16859
  }));
15805
16860
  };
15806
16861
 
15807
- var Wrapper$1 = index$2(ReactNative.View)(function () {
16862
+ var Wrapper$1 = index$5(ReactNative.View)(function () {
15808
16863
  return {
15809
16864
  flex: 1,
15810
16865
  flexDirection: 'row',
15811
16866
  justifyContent: 'space-between'
15812
16867
  };
15813
16868
  });
15814
- var Value = index$2(Typography.Text)(function (_ref) {
16869
+ var Value = index$5(Typography.Text)(function (_ref) {
15815
16870
  var theme = _ref.theme;
15816
16871
  return {
15817
16872
  paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
@@ -15847,7 +16902,7 @@ function ContentNavigator(_ref) {
15847
16902
  }
15848
16903
 
15849
16904
  var AnimatedPressable = ReactNative.Animated.createAnimatedComponent(ReactNative.Pressable);
15850
- var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
16905
+ var StyledContainer$1 = index$5(ReactNative.View)(function (_ref) {
15851
16906
  var theme = _ref.theme,
15852
16907
  enableShadow = _ref.enableShadow;
15853
16908
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
@@ -15860,13 +16915,13 @@ var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
15860
16915
  elevation: 9999
15861
16916
  });
15862
16917
  });
15863
- var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
16918
+ var StyledBackdrop$1 = index$5(AnimatedPressable)(function (_ref2) {
15864
16919
  var theme = _ref2.theme;
15865
16920
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
15866
16921
  backgroundColor: theme.__hd__.drawer.colors.backdrop
15867
16922
  });
15868
16923
  });
15869
- var StyledDrawerContainer = index$2(ReactNative.Animated.View)(function (_ref3) {
16924
+ var StyledDrawerContainer = index$5(ReactNative.Animated.View)(function (_ref3) {
15870
16925
  var theme = _ref3.theme,
15871
16926
  enableShadow = _ref3.enableShadow;
15872
16927
  return {
@@ -15936,7 +16991,7 @@ var Drawer = function Drawer(_ref) {
15936
16991
  }, children));
15937
16992
  };
15938
16993
 
15939
- var StyledFABContainer = index$2(ReactNative.TouchableHighlight)(function (_ref) {
16994
+ var StyledFABContainer = index$5(ReactNative.TouchableHighlight)(function (_ref) {
15940
16995
  var theme = _ref.theme;
15941
16996
  return {
15942
16997
  backgroundColor: theme.__hd__.fab.colors.buttonBackground,
@@ -15950,7 +17005,7 @@ var StyledFABContainer = index$2(ReactNative.TouchableHighlight)(function (_ref)
15950
17005
  flexDirection: 'row'
15951
17006
  };
15952
17007
  });
15953
- var StyledFABIcon = index$2(Icon)(function (_ref2) {
17008
+ var StyledFABIcon = index$5(Icon)(function (_ref2) {
15954
17009
  var theme = _ref2.theme;
15955
17010
  return {
15956
17011
  color: theme.__hd__.fab.colors.icon,
@@ -15959,7 +17014,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
15959
17014
  textAlign: 'center'
15960
17015
  };
15961
17016
  });
15962
- var StyledFABText = index$2(ReactNative.Text)(function (_ref3) {
17017
+ var StyledFABText = index$5(ReactNative.Text)(function (_ref3) {
15963
17018
  var theme = _ref3.theme;
15964
17019
  return {
15965
17020
  fontFamily: theme.__hd__.fab.fonts.title,
@@ -16056,7 +17111,7 @@ var FAB = function FAB(_ref3) {
16056
17111
  }));
16057
17112
  };
16058
17113
 
16059
- var StyledActionItem = index$2(ReactNative.TouchableOpacity)(function (_ref) {
17114
+ var StyledActionItem = index$5(ReactNative.TouchableOpacity)(function (_ref) {
16060
17115
  var theme = _ref.theme;
16061
17116
  return {
16062
17117
  paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
@@ -16073,7 +17128,7 @@ var StyledActionItem = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16073
17128
  overflow: 'hidden'
16074
17129
  };
16075
17130
  });
16076
- var StyledActionItemText = index$2(Typography.Text)(function (_ref2) {
17131
+ var StyledActionItemText = index$5(Typography.Text)(function (_ref2) {
16077
17132
  var theme = _ref2.theme;
16078
17133
  return {
16079
17134
  paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
@@ -16098,7 +17153,7 @@ var ActionItem = function ActionItem(_ref) {
16098
17153
  }), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
16099
17154
  };
16100
17155
 
16101
- var StyledContainer = index$2(ReactNative.View)({
17156
+ var StyledContainer = index$5(ReactNative.View)({
16102
17157
  position: 'absolute',
16103
17158
  left: 0,
16104
17159
  right: 0,
@@ -16107,12 +17162,12 @@ var StyledContainer = index$2(ReactNative.View)({
16107
17162
  alignItems: 'flex-end',
16108
17163
  justifyContent: 'flex-end'
16109
17164
  });
16110
- var StyledActionGroupContainer = index$2(ReactNative.Animated.View)({
17165
+ var StyledActionGroupContainer = index$5(ReactNative.Animated.View)({
16111
17166
  alignItems: 'flex-end',
16112
17167
  justifyContent: 'flex-end',
16113
17168
  width: '70%'
16114
17169
  });
16115
- var StyledFAB = index$2(FAB)(function (_ref) {
17170
+ var StyledFAB = index$5(FAB)(function (_ref) {
16116
17171
  var theme = _ref.theme;
16117
17172
  return {
16118
17173
  marginRight: theme.__hd__.fab.space.buttonMarginRight,
@@ -16120,7 +17175,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
16120
17175
  alignSelf: 'flex-end'
16121
17176
  };
16122
17177
  });
16123
- var StyledBackdrop = index$2(ReactNative.Animated.View)(function (_ref2) {
17178
+ var StyledBackdrop = index$5(ReactNative.Animated.View)(function (_ref2) {
16124
17179
  var theme = _ref2.theme;
16125
17180
  return {
16126
17181
  position: 'absolute',
@@ -16131,7 +17186,7 @@ var StyledBackdrop = index$2(ReactNative.Animated.View)(function (_ref2) {
16131
17186
  backgroundColor: theme.__hd__.fab.colors.backdropBackground
16132
17187
  };
16133
17188
  });
16134
- var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
17189
+ var StyledHeaderText = index$5(Typography.Text)(function (_ref3) {
16135
17190
  var theme = _ref3.theme;
16136
17191
  return {
16137
17192
  fontSize: theme.__hd__.fab.fontSizes.header,
@@ -16210,11 +17265,200 @@ var ActionGroup = function ActionGroup(_ref2) {
16210
17265
  }));
16211
17266
  };
16212
17267
 
16213
- var index$1 = Object.assign(FAB, {
17268
+ var index$3 = Object.assign(FAB, {
16214
17269
  ActionGroup: ActionGroup
16215
17270
  });
16216
17271
 
16217
- var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
17272
+ var StyledListItemContainer$1 = index$5(ReactNative.TouchableOpacity)(function (_ref) {
17273
+ var theme = _ref.theme,
17274
+ _ref$themeSelected = _ref.themeSelected,
17275
+ themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
17276
+ _ref$themeVariant = _ref.themeVariant,
17277
+ themeVariant = _ref$themeVariant === void 0 ? 'basic' : _ref$themeVariant;
17278
+ var sharedStyles = {
17279
+ flexDirection: 'row',
17280
+ backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
17281
+ padding: theme.__hd__.list.space.listItemContainerPadding
17282
+ };
17283
+
17284
+ switch (themeVariant) {
17285
+ case 'basic':
17286
+ return sharedStyles;
17287
+
17288
+ case 'card':
17289
+ return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
17290
+ alignItems: 'center',
17291
+ borderRadius: theme.__hd__.list.radii.card,
17292
+ shadowColor: theme.colors.shadow,
17293
+ shadowRadius: theme.__hd__.list.radii.cardShadow,
17294
+ shadowOffset: theme.__hd__.list.offsets.cardShadow,
17295
+ shadowOpacity: theme.__hd__.list.opacity.cardShadow
17296
+ });
17297
+
17298
+ default:
17299
+ return sharedStyles;
17300
+ }
17301
+ });
17302
+ var StyledContentContainer = index$5(ReactNative.View)(function () {
17303
+ return {
17304
+ flexDirection: 'column',
17305
+ flex: 1,
17306
+ flexGrow: 2
17307
+ };
17308
+ });
17309
+ var StyledChildrenContainer = index$5(ReactNative.View)(function () {
17310
+ return {
17311
+ flexDirection: 'column',
17312
+ justifyContent: 'flex-start',
17313
+ alignItems: 'flex-start'
17314
+ };
17315
+ });
17316
+ var StyledLeadingStatus = index$5(ReactNative.View)(function (_ref2) {
17317
+ var theme = _ref2.theme,
17318
+ themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
17319
+ return {
17320
+ width: theme.__hd__.list.widths.leadingStatus,
17321
+ marginRight: theme.__hd__.list.space.leadingStatusMarginRight,
17322
+ borderRadius: theme.__hd__.list.radii.leadingStatus,
17323
+ backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
17324
+ };
17325
+ });
17326
+ var StyledPrefixContainer$1 = index$5(ReactNative.View)(function (_ref3) {
17327
+ var theme = _ref3.theme;
17328
+ return {
17329
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17330
+ };
17331
+ });
17332
+ var StyledSuffixContainer$1 = index$5(ReactNative.View)(function (_ref4) {
17333
+ var theme = _ref4.theme;
17334
+ return {
17335
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17336
+ };
17337
+ });
17338
+ var StyledTitleContainer$1 = index$5(ReactNative.View)(function () {
17339
+ return {
17340
+ flex: 1
17341
+ };
17342
+ });
17343
+
17344
+ var ListItem = function ListItem(_ref) {
17345
+ var prefix = _ref.prefix,
17346
+ suffix = _ref.suffix,
17347
+ title = _ref.title,
17348
+ subtitle = _ref.subtitle,
17349
+ style = _ref.style,
17350
+ testID = _ref.testID,
17351
+ _ref$selected = _ref.selected,
17352
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17353
+ children = _ref.children,
17354
+ leadingStatus = _ref.leadingStatus,
17355
+ _ref$variant = _ref.variant,
17356
+ variant = _ref$variant === void 0 ? 'full-width' : _ref$variant,
17357
+ onPress = _ref.onPress,
17358
+ _ref$disabled = _ref.disabled,
17359
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
17360
+ return /*#__PURE__*/React__default["default"].createElement(StyledListItemContainer$1, {
17361
+ style: style,
17362
+ testID: testID,
17363
+ themeSelected: selected,
17364
+ themeVariant: variant,
17365
+ onPress: onPress,
17366
+ disabled: disabled
17367
+ }, leadingStatus && /*#__PURE__*/React__default["default"].createElement(StyledLeadingStatus, {
17368
+ themeLeadingStatusIntent: leadingStatus,
17369
+ testID: "leadingStatus"
17370
+ }), /*#__PURE__*/React__default["default"].createElement(StyledContentContainer, null, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
17371
+ style: {
17372
+ flexDirection: 'row',
17373
+ alignItems: 'center'
17374
+ }
17375
+ }, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17376
+ icon: prefix
17377
+ }) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17378
+ intent: "body",
17379
+ fontSize: "large",
17380
+ fontWeight: "semi-bold"
17381
+ }, title), subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17382
+ intent: "subdued",
17383
+ fontSize: "small"
17384
+ }, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17385
+ icon: suffix,
17386
+ intent: disabled ? 'disabled-text' : 'primary',
17387
+ size: "small"
17388
+ }) : suffix)), children && /*#__PURE__*/React__default["default"].createElement(StyledChildrenContainer, null, children)));
17389
+ };
17390
+
17391
+ var StyledPrefixContainer = index$5(ReactNative.View)(function (_ref) {
17392
+ var theme = _ref.theme;
17393
+ return {
17394
+ marginRight: theme.__hd__.list.space.prefixContainerMarginRight
17395
+ };
17396
+ });
17397
+ var StyledSuffixContainer = index$5(ReactNative.View)(function (_ref2) {
17398
+ var theme = _ref2.theme;
17399
+ return {
17400
+ marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
17401
+ };
17402
+ });
17403
+ var StyledTitleContainer = index$5(ReactNative.View)(function () {
17404
+ return {
17405
+ flex: 1
17406
+ };
17407
+ });
17408
+ var StyledListItemContainer = index$5(ReactNative.TouchableOpacity)(function (_ref3) {
17409
+ var theme = _ref3.theme,
17410
+ themeSelected = _ref3.themeSelected,
17411
+ themeDisabled = _ref3.themeDisabled;
17412
+ return {
17413
+ alignItems: 'center',
17414
+ flex: 1,
17415
+ flexDirection: 'row',
17416
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option,
17417
+ padding: theme.__hd__.list.space.listItemContainerPadding,
17418
+ opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
17419
+ };
17420
+ });
17421
+
17422
+ var BasicListItem = function BasicListItem(_ref) {
17423
+ var prefix = _ref.prefix,
17424
+ suffix = _ref.suffix,
17425
+ title = _ref.title,
17426
+ subtitle = _ref.subtitle,
17427
+ style = _ref.style,
17428
+ testID = _ref.testID,
17429
+ _ref$selected = _ref.selected,
17430
+ selected = _ref$selected === void 0 ? false : _ref$selected,
17431
+ _ref$disabled = _ref.disabled,
17432
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled,
17433
+ onPress = _ref.onPress;
17434
+ return /*#__PURE__*/React__default["default"].createElement(StyledListItemContainer, {
17435
+ style: style,
17436
+ testID: testID,
17437
+ themeSelected: selected,
17438
+ themeDisabled: disabled,
17439
+ onPress: onPress,
17440
+ disabled: disabled
17441
+ }, prefix && /*#__PURE__*/React__default["default"].createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17442
+ icon: prefix
17443
+ }) : prefix), /*#__PURE__*/React__default["default"].createElement(StyledTitleContainer, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17444
+ intent: "body",
17445
+ fontSize: "large"
17446
+ }, title), subtitle && /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
17447
+ intent: "subdued",
17448
+ fontSize: "small"
17449
+ }, subtitle)), suffix && /*#__PURE__*/React__default["default"].createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__default["default"].createElement(Icon, {
17450
+ icon: suffix,
17451
+ intent: "text",
17452
+ size: "small"
17453
+ }) : suffix));
17454
+ };
17455
+
17456
+ var List = {
17457
+ Item: ListItem,
17458
+ BasicItem: BasicListItem
17459
+ };
17460
+
17461
+ var HalfCircleWrapper = index$5(ReactNative.View)(function (_ref) {
16218
17462
  var theme = _ref.theme;
16219
17463
  return {
16220
17464
  width: theme.__hd__.progress.sizes.radius,
@@ -16222,7 +17466,7 @@ var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
16222
17466
  overflow: 'hidden'
16223
17467
  };
16224
17468
  });
16225
- var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
17469
+ var HalfCircleInnerFG = index$5(ReactNative.View)(function (_ref2) {
16226
17470
  var theme = _ref2.theme,
16227
17471
  themeIntent = _ref2.themeIntent;
16228
17472
  return {
@@ -16232,7 +17476,7 @@ var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
16232
17476
  borderRadius: theme.__hd__.progress.radii["default"]
16233
17477
  };
16234
17478
  });
16235
- var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
17479
+ var HalfCircleInnerBG = index$5(ReactNative.View)(function (_ref3) {
16236
17480
  var theme = _ref3.theme;
16237
17481
  return {
16238
17482
  width: theme.__hd__.progress.sizes.radius * 2,
@@ -16241,7 +17485,7 @@ var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
16241
17485
  borderRadius: theme.__hd__.progress.radii["default"]
16242
17486
  };
16243
17487
  });
16244
- var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
17488
+ var DonutCircle = index$5(ReactNative.View)(function (_ref4) {
16245
17489
  var theme = _ref4.theme;
16246
17490
  return {
16247
17491
  position: 'absolute',
@@ -16256,7 +17500,7 @@ var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
16256
17500
  justifyContent: 'center'
16257
17501
  };
16258
17502
  });
16259
- var StrokeEnd = index$2(ReactNative.View)(function (_ref5) {
17503
+ var StrokeEnd = index$5(ReactNative.View)(function (_ref5) {
16260
17504
  var theme = _ref5.theme,
16261
17505
  themeIntent = _ref5.themeIntent;
16262
17506
  return {
@@ -16387,7 +17631,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
16387
17631
  }, "".concat(value, "%")))));
16388
17632
  };
16389
17633
 
16390
- var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
17634
+ var StyledWrapper$2 = index$5(ReactNative.View)(function (_ref) {
16391
17635
  var theme = _ref.theme;
16392
17636
  return {
16393
17637
  height: theme.__hd__.progress.sizes.barHeight,
@@ -16396,7 +17640,7 @@ var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
16396
17640
  overflow: 'hidden'
16397
17641
  };
16398
17642
  });
16399
- var StyledInner = index$2(ReactNative.Animated.View)(function (_ref2) {
17643
+ var StyledInner = index$5(ReactNative.Animated.View)(function (_ref2) {
16400
17644
  var theme = _ref2.theme,
16401
17645
  themeIntent = _ref2.themeIntent;
16402
17646
  return {
@@ -16466,13 +17710,13 @@ var Progress = {
16466
17710
  Bar: ProgressBar
16467
17711
  };
16468
17712
 
16469
- var StyledView$1 = index$2(ReactNative.View)();
16470
- var StyledSpinnerContainer = index$2(ReactNative.View)({
17713
+ var StyledView$1 = index$5(ReactNative.View)();
17714
+ var StyledSpinnerContainer = index$5(ReactNative.View)({
16471
17715
  height: '100%',
16472
17716
  justifyContent: 'center',
16473
17717
  alignItems: 'center'
16474
17718
  });
16475
- var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
17719
+ var StyledSpinnerRow = index$5(ReactNative.View)(function (_ref) {
16476
17720
  var themePosition = _ref.themePosition,
16477
17721
  theme = _ref.theme;
16478
17722
  return {
@@ -16480,7 +17724,7 @@ var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
16480
17724
  marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
16481
17725
  };
16482
17726
  });
16483
- var StyledSpinnerDot = index$2(ReactNative.View)(function (_ref2) {
17727
+ var StyledSpinnerDot = index$5(ReactNative.View)(function (_ref2) {
16484
17728
  var themePosition = _ref2.themePosition,
16485
17729
  theme = _ref2.theme;
16486
17730
 
@@ -16571,7 +17815,7 @@ var Spinner = function Spinner(_ref) {
16571
17815
  }, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
16572
17816
  };
16573
17817
 
16574
- var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
17818
+ var Wrapper = index$5(ReactNative.TouchableOpacity)(function (_ref) {
16575
17819
  var theme = _ref.theme,
16576
17820
  themeChecked = _ref.themeChecked;
16577
17821
  return {
@@ -16583,7 +17827,7 @@ var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16583
17827
  backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
16584
17828
  };
16585
17829
  });
16586
- var Circle = index$2(ReactNative.View)(function (_ref2) {
17830
+ var Circle = index$5(ReactNative.View)(function (_ref2) {
16587
17831
  var theme = _ref2.theme,
16588
17832
  themeChecked = _ref2.themeChecked;
16589
17833
  return {
@@ -16596,7 +17840,7 @@ var Circle = index$2(ReactNative.View)(function (_ref2) {
16596
17840
  justifyContent: 'center'
16597
17841
  };
16598
17842
  });
16599
- var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
17843
+ var InnerCircle = index$5(ReactNative.View)(function (_ref3) {
16600
17844
  var theme = _ref3.theme;
16601
17845
  return {
16602
17846
  height: theme.__hd__.radio.sizes.innerCircle,
@@ -16605,7 +17849,7 @@ var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
16605
17849
  backgroundColor: theme.__hd__.radio.colors.checkedCircle
16606
17850
  };
16607
17851
  });
16608
- var Spacer$1 = index$2(ReactNative.View)(function (_ref4) {
17852
+ var Spacer$1 = index$5(ReactNative.View)(function (_ref4) {
16609
17853
  var theme = _ref4.theme;
16610
17854
  return {
16611
17855
  marginTop: theme.__hd__.radio.space.groupTopMargin
@@ -16678,7 +17922,7 @@ var CompoundRadio = {
16678
17922
  Group: RadioGroup
16679
17923
  };
16680
17924
 
16681
- var StyledHeading = index$2(ReactNative.View)(function (_ref) {
17925
+ var StyledHeading = index$5(ReactNative.View)(function (_ref) {
16682
17926
  var theme = _ref.theme;
16683
17927
  return {
16684
17928
  paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
@@ -16691,13 +17935,13 @@ var StyledHeading = index$2(ReactNative.View)(function (_ref) {
16691
17935
  justifyContent: 'space-between'
16692
17936
  };
16693
17937
  });
16694
- var StyledIconWrapper = index$2(ReactNative.View)(function (_ref2) {
17938
+ var StyledIconWrapper = index$5(ReactNative.View)(function (_ref2) {
16695
17939
  var theme = _ref2.theme;
16696
17940
  return {
16697
17941
  marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
16698
17942
  };
16699
17943
  });
16700
- var StyledWrapper$1 = index$2(ReactNative.View)(function () {
17944
+ var StyledWrapper$1 = index$5(ReactNative.View)(function () {
16701
17945
  return {
16702
17946
  display: 'flex',
16703
17947
  flexDirection: 'row'
@@ -16742,7 +17986,106 @@ var SectionHeading = function SectionHeading(_ref) {
16742
17986
  }, text)), rightChildren);
16743
17987
  };
16744
17988
 
16745
- var Container$1 = index$2(ReactNative.View)(function (_ref) {
17989
+ var OptionWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref) {
17990
+ var theme = _ref.theme,
17991
+ themeSelected = _ref.themeSelected;
17992
+ return {
17993
+ flexDirection: 'row',
17994
+ justifyContent: 'space-between',
17995
+ alignItems: 'center',
17996
+ borderRadius: theme.__hd__.select.radii.option,
17997
+ padding: theme.__hd__.select.space.optionPadding,
17998
+ backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
17999
+ };
18000
+ });
18001
+ var OptionListWrapper = index$5(ReactNative.View)(function (_ref2) {
18002
+ var theme = _ref2.theme;
18003
+ return {
18004
+ padding: theme.__hd__.select.space.optionListPadding
18005
+ };
18006
+ });
18007
+ var Spacer = index$5(ReactNative.View)(function (_ref3) {
18008
+ var theme = _ref3.theme;
18009
+ return {
18010
+ marginTop: theme.__hd__.select.space.optionListSpacing
18011
+ };
18012
+ });
18013
+ var FooterText = index$5(Typography.Text)(function (_ref4) {
18014
+ var theme = _ref4.theme;
18015
+ return {
18016
+ color: theme.__hd__.select.colors.footerText
18017
+ };
18018
+ });
18019
+
18020
+ var Footer = function Footer(_ref) {
18021
+ var label = _ref.label,
18022
+ onPress = _ref.onPress;
18023
+ return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
18024
+ onPress: onPress
18025
+ }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
18026
+ fontSize: "large",
18027
+ fontWeight: "semi-bold"
18028
+ }, label));
18029
+ };
18030
+
18031
+ var getKey = function getKey(option, index, keyExtractor) {
18032
+ var key = '';
18033
+
18034
+ if (keyExtractor !== undefined) {
18035
+ key = keyExtractor(option, index);
18036
+ } else if (option.key !== undefined) {
18037
+ key = option.key;
18038
+ } else {
18039
+ key = index;
18040
+ }
18041
+
18042
+ return key;
18043
+ };
18044
+
18045
+ var Option$1 = function Option(_ref) {
18046
+ var text = _ref.text,
18047
+ selected = _ref.selected,
18048
+ onPress = _ref.onPress;
18049
+ return /*#__PURE__*/React__default["default"].createElement(OptionWrapper, {
18050
+ themeSelected: selected,
18051
+ onPress: onPress
18052
+ }, /*#__PURE__*/React__default["default"].createElement(ReactNative.View, {
18053
+ style: {
18054
+ flex: 1
18055
+ }
18056
+ }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
18057
+ fontSize: "large"
18058
+ }, text)), selected && /*#__PURE__*/React__default["default"].createElement(Icon, {
18059
+ icon: "checkmark",
18060
+ size: "small"
18061
+ }));
18062
+ };
18063
+
18064
+ var OptionList$1 = function OptionList(_ref) {
18065
+ var value = _ref.value,
18066
+ options = _ref.options,
18067
+ _onPress = _ref.onPress,
18068
+ keyExtractor = _ref.keyExtractor;
18069
+ return /*#__PURE__*/React__default["default"].createElement(OptionListWrapper, null, options.map(function (opt, index) {
18070
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
18071
+ key: getKey(opt, index, keyExtractor)
18072
+ }, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Option$1, {
18073
+ text: opt.text,
18074
+ selected: value.includes(opt.value),
18075
+ onPress: function onPress() {
18076
+ if (value.includes(opt.value)) {
18077
+ _onPress(value.filter(function (val) {
18078
+ return val !== opt.value;
18079
+ }));
18080
+ } else {
18081
+ _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18082
+ }
18083
+ }
18084
+ }));
18085
+ }));
18086
+ };
18087
+
18088
+ var Container$1 = index$5(ReactNative.View)(function (_ref) {
16746
18089
  var theme = _ref.theme;
16747
18090
  return {
16748
18091
  position: 'relative',
@@ -16754,7 +18097,7 @@ var Container$1 = index$2(ReactNative.View)(function (_ref) {
16754
18097
  alignItems: 'center'
16755
18098
  };
16756
18099
  });
16757
- var Label = index$2(Typography.Text)(function (_ref2) {
18100
+ var Label = index$5(Typography.Text)(function (_ref2) {
16758
18101
  var theme = _ref2.theme;
16759
18102
  return {
16760
18103
  position: 'absolute',
@@ -16765,7 +18108,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
16765
18108
  paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
16766
18109
  };
16767
18110
  });
16768
- var StyledTextInput = index$2(ReactNative.TextInput)(function (_ref3) {
18111
+ var StyledTextInput = index$5(ReactNative.TextInput)(function (_ref3) {
16769
18112
  var theme = _ref3.theme;
16770
18113
  return {
16771
18114
  flex: 1,
@@ -16809,49 +18152,75 @@ var TextInput = function TextInput(_ref) {
16809
18152
  }));
16810
18153
  };
16811
18154
 
16812
- var OptionWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
16813
- var theme = _ref.theme,
16814
- themeSelected = _ref.themeSelected;
16815
- return {
16816
- flexDirection: 'row',
16817
- justifyContent: 'space-between',
16818
- alignItems: 'center',
16819
- borderRadius: theme.__hd__.select.radii.option,
16820
- padding: theme.__hd__.select.space.optionPadding,
16821
- backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
16822
- };
16823
- });
16824
- var OptionListWrapper = index$2(ReactNative.View)(function (_ref2) {
16825
- var theme = _ref2.theme;
16826
- return {
16827
- padding: theme.__hd__.select.space.optionListPadding
16828
- };
16829
- });
16830
- var Spacer = index$2(ReactNative.View)(function (_ref3) {
16831
- var theme = _ref3.theme;
16832
- return {
16833
- marginTop: theme.__hd__.select.space.optionListSpacing
16834
- };
16835
- });
16836
- var FooterText = index$2(Typography.Text)(function (_ref4) {
16837
- var theme = _ref4.theme;
16838
- return {
16839
- color: theme.__hd__.select.colors.footerText
16840
- };
16841
- });
18155
+ function MultiSelect(_ref) {
18156
+ var options = _ref.options,
18157
+ value = _ref.value,
18158
+ testID = _ref.testID,
18159
+ style = _ref.style,
18160
+ label = _ref.label,
18161
+ footerLabel = _ref.footerLabel,
18162
+ onConfirm = _ref.onConfirm;
18163
+ var theme = useTheme$1();
16842
18164
 
16843
- function Footer(_ref) {
16844
- var label = _ref.label,
16845
- onPress = _ref.onPress;
18165
+ var _useState = React.useState(false),
18166
+ _useState2 = _slicedToArray(_useState, 2),
18167
+ open = _useState2[0],
18168
+ setOpen = _useState2[1];
18169
+
18170
+ var _useState3 = React.useState(value),
18171
+ _useState4 = _slicedToArray(_useState3, 2),
18172
+ selectingValue = _useState4[0],
18173
+ setSelectingValue = _useState4[1];
18174
+
18175
+ var displayedValue = options.filter(function (opt) {
18176
+ return value.includes(opt.value);
18177
+ }).map(function (opt) {
18178
+ return opt.text;
18179
+ }).join(', ');
16846
18180
  return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
16847
- onPress: onPress
16848
- }, /*#__PURE__*/React__default["default"].createElement(FooterText, {
16849
- fontSize: "large",
16850
- fontWeight: "semi-bold"
16851
- }, label));
18181
+ onPress: function onPress() {
18182
+ return setOpen(true);
18183
+ }
18184
+ }, /*#__PURE__*/React__default["default"].createElement(TextInput, {
18185
+ label: label,
18186
+ value: displayedValue,
18187
+ onPressIn: function onPressIn() {
18188
+ return setOpen(true);
18189
+ },
18190
+ editable: false // when input is not editable on Android, the text color is gray
18191
+ // hence, adding this to make the text color the same as iOS
18192
+ ,
18193
+ textStyle: {
18194
+ color: theme.colors.text
18195
+ },
18196
+ suffix: "arrow-down",
18197
+ multiline: true,
18198
+ style: style,
18199
+ testID: testID
18200
+ }), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
18201
+ open: open,
18202
+ onRequestClose: function onRequestClose() {
18203
+ return setOpen(false);
18204
+ },
18205
+ onDismiss: function onDismiss() {
18206
+ return setSelectingValue(value);
18207
+ },
18208
+ header: label,
18209
+ footer: /*#__PURE__*/React__default["default"].createElement(Footer, {
18210
+ label: footerLabel,
18211
+ onPress: function onPress() {
18212
+ setOpen(false);
18213
+ onConfirm(selectingValue);
18214
+ }
18215
+ })
18216
+ }, /*#__PURE__*/React__default["default"].createElement(OptionList$1, {
18217
+ options: options,
18218
+ value: selectingValue,
18219
+ onPress: setSelectingValue
18220
+ })));
16852
18221
  }
16853
18222
 
16854
- function Option(_ref) {
18223
+ var Option = function Option(_ref) {
16855
18224
  var text = _ref.text,
16856
18225
  selected = _ref.selected,
16857
18226
  onPress = _ref.onPress;
@@ -16864,58 +18233,40 @@ function Option(_ref) {
16864
18233
  }
16865
18234
  }, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
16866
18235
  fontSize: "large"
16867
- }, text)), selected && /*#__PURE__*/React__default["default"].createElement(Icon, {
16868
- icon: "checkmark",
16869
- size: "small"
16870
- }));
16871
- }
16872
-
16873
- function getKey(option, index, keyExtractor) {
16874
- var key = '';
16875
-
16876
- if (keyExtractor !== undefined) {
16877
- key = keyExtractor(option, index);
16878
- } else if (option.key !== undefined) {
16879
- key = option.key;
16880
- } else {
16881
- key = index;
16882
- }
16883
-
16884
- return key;
16885
- }
18236
+ }, text)));
18237
+ };
16886
18238
 
16887
- function OptionList(_ref2) {
16888
- var value = _ref2.value,
16889
- options = _ref2.options,
16890
- _onPress = _ref2.onPress,
16891
- keyExtractor = _ref2.keyExtractor;
18239
+ var OptionList = function OptionList(_ref) {
18240
+ var value = _ref.value,
18241
+ options = _ref.options,
18242
+ _onPress = _ref.onPress,
18243
+ keyExtractor = _ref.keyExtractor;
16892
18244
  return /*#__PURE__*/React__default["default"].createElement(OptionListWrapper, null, options.map(function (opt, index) {
16893
18245
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
16894
18246
  key: getKey(opt, index, keyExtractor)
16895
18247
  }, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Option, {
16896
18248
  text: opt.text,
16897
- selected: value.includes(opt.value),
18249
+ selected: value === opt.value,
16898
18250
  onPress: function onPress() {
16899
- if (value.includes(opt.value)) {
16900
- _onPress(value.filter(function (val) {
16901
- return val !== opt.value;
16902
- }));
18251
+ if (value === opt.value) {
18252
+ _onPress(null);
16903
18253
  } else {
16904
- _onPress([].concat(_toConsumableArray$1(value), [opt.value]));
18254
+ _onPress(opt.value);
16905
18255
  }
16906
18256
  }
16907
18257
  }));
16908
18258
  }));
16909
- }
18259
+ };
18260
+
18261
+ var SingleSelect = function SingleSelect(_ref) {
18262
+ var _options$find;
16910
18263
 
16911
- function MultiSelect(_ref) {
16912
18264
  var options = _ref.options,
16913
18265
  value = _ref.value,
16914
18266
  testID = _ref.testID,
16915
18267
  style = _ref.style,
16916
18268
  label = _ref.label,
16917
- footerLabel = _ref.footerLabel,
16918
- _onPress = _ref.onPress;
18269
+ onConfirm = _ref.onConfirm;
16919
18270
  var theme = useTheme$1();
16920
18271
 
16921
18272
  var _useState = React.useState(false),
@@ -16928,11 +18279,9 @@ function MultiSelect(_ref) {
16928
18279
  selectingValue = _useState4[0],
16929
18280
  setSelectingValue = _useState4[1];
16930
18281
 
16931
- var displayedValue = options.filter(function (opt) {
16932
- return value.includes(opt.value);
16933
- }).map(function (opt) {
16934
- return opt.text;
16935
- }).join(', ');
18282
+ var displayedValue = (_options$find = options.find(function (opt) {
18283
+ return value === opt.value;
18284
+ })) === null || _options$find === void 0 ? void 0 : _options$find.text;
16936
18285
  return /*#__PURE__*/React__default["default"].createElement(ReactNative.TouchableOpacity, {
16937
18286
  onPress: function onPress() {
16938
18287
  return setOpen(true);
@@ -16961,27 +18310,22 @@ function MultiSelect(_ref) {
16961
18310
  onDismiss: function onDismiss() {
16962
18311
  return setSelectingValue(value);
16963
18312
  },
16964
- header: label,
16965
- footer: /*#__PURE__*/React__default["default"].createElement(Footer, {
16966
- label: footerLabel,
16967
- onPress: function onPress() {
16968
- setOpen(false);
16969
-
16970
- _onPress(selectingValue);
16971
- }
16972
- })
18313
+ header: label
16973
18314
  }, /*#__PURE__*/React__default["default"].createElement(OptionList, {
16974
18315
  options: options,
16975
18316
  value: selectingValue,
16976
- onPress: setSelectingValue
18317
+ onPress: function onPress(selectedValue) {
18318
+ setOpen(false);
18319
+ onConfirm(selectedValue);
18320
+ }
16977
18321
  })));
16978
- }
18322
+ };
16979
18323
 
16980
- var CompoundSelect = {
18324
+ var index$2 = Object.assign(SingleSelect, {
16981
18325
  Multi: MultiSelect
16982
- };
18326
+ });
16983
18327
 
16984
- var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
18328
+ var StyledWrapper = index$5(ReactNative.View)(function (_ref) {
16985
18329
  var theme = _ref.theme,
16986
18330
  themeChecked = _ref.themeChecked,
16987
18331
  themeSize = _ref.themeSize;
@@ -16993,7 +18337,7 @@ var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
16993
18337
  backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
16994
18338
  };
16995
18339
  });
16996
- var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
18340
+ var StyledDisabledWrapper = index$5(ReactNative.View)(function (_ref2) {
16997
18341
  var theme = _ref2.theme,
16998
18342
  themeSize = _ref2.themeSize;
16999
18343
  return {
@@ -17006,7 +18350,7 @@ var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
17006
18350
  opacity: 0.8
17007
18351
  };
17008
18352
  });
17009
- var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
18353
+ var StyledThumbWrapper = index$5(ReactNative.View)(function (_ref3) {
17010
18354
  var theme = _ref3.theme,
17011
18355
  themeSize = _ref3.themeSize;
17012
18356
  return {
@@ -17017,7 +18361,7 @@ var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
17017
18361
  justifyContent: 'center'
17018
18362
  };
17019
18363
  });
17020
- var StyledKnot = index$2(ReactNative.Animated.View)(function (_ref4) {
18364
+ var StyledKnot = index$5(ReactNative.Animated.View)(function (_ref4) {
17021
18365
  var theme = _ref4.theme,
17022
18366
  themeSize = _ref4.themeSize;
17023
18367
  return {
@@ -17274,11 +18618,11 @@ var PagerView = /*#__PURE__*/function (_React$Component) {
17274
18618
  }(React__default["default"].Component);
17275
18619
 
17276
18620
  var AnimatedPagerView = ReactNative.Animated.createAnimatedComponent(PagerView);
17277
- var TabContainer$1 = index$2(ReactNative.View)({
18621
+ var TabContainer$1 = index$5(ReactNative.View)({
17278
18622
  flex: 1,
17279
18623
  overflow: 'hidden'
17280
18624
  });
17281
- var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
18625
+ var HeaderTabWrapper$1 = index$5(ReactNative.View)(function (_ref) {
17282
18626
  var theme = _ref.theme,
17283
18627
  themeInsets = _ref.themeInsets;
17284
18628
  return {
@@ -17287,10 +18631,10 @@ var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
17287
18631
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17288
18632
  };
17289
18633
  });
17290
- var HeaderTab = index$2(ReactNative.View)({
18634
+ var HeaderTab = index$5(ReactNative.View)({
17291
18635
  flexDirection: 'row'
17292
18636
  });
17293
- var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
18637
+ var HeaderTabItem$1 = index$5(ReactNative.View)(function (_ref2) {
17294
18638
  var theme = _ref2.theme;
17295
18639
  return {
17296
18640
  flex: 1,
@@ -17298,13 +18642,13 @@ var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
17298
18642
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17299
18643
  };
17300
18644
  });
17301
- var ContentWrapper$1 = index$2(AnimatedPagerView)({
18645
+ var ContentWrapper$1 = index$5(AnimatedPagerView)({
17302
18646
  flex: 1
17303
18647
  });
17304
- var TabScreen$1 = index$2(ReactNative.View)({
18648
+ var TabScreen$1 = index$5(ReactNative.View)({
17305
18649
  flex: 1
17306
18650
  });
17307
- var StyledIndicator = index$2(ReactNative.Animated.View)(function (_ref3) {
18651
+ var StyledIndicator = index$5(ReactNative.Animated.View)(function (_ref3) {
17308
18652
  var theme = _ref3.theme,
17309
18653
  themeWidth = _ref3.themeWidth;
17310
18654
  return {
@@ -17337,17 +18681,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
17337
18681
  });
17338
18682
  };
17339
18683
 
17340
- var TabScreen = index$2(ReactNative.View)({
18684
+ var TabScreen = index$5(ReactNative.View)({
17341
18685
  flex: 1
17342
18686
  });
17343
- var TabContainer = index$2(ReactNative.View)({
18687
+ var TabContainer = index$5(ReactNative.View)({
17344
18688
  flex: 1,
17345
18689
  overflow: 'hidden'
17346
18690
  });
17347
- var ContentWrapper = index$2(PagerView)({
18691
+ var ContentWrapper = index$5(PagerView)({
17348
18692
  flex: 1
17349
18693
  });
17350
- var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
18694
+ var HeaderTabWrapper = index$5(ReactNative.View)(function (_ref) {
17351
18695
  var theme = _ref.theme,
17352
18696
  themeInsets = _ref.themeInsets;
17353
18697
  return {
@@ -17356,21 +18700,21 @@ var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
17356
18700
  borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
17357
18701
  };
17358
18702
  });
17359
- var HeaderTabItem = index$2(ReactNative.Animated.View)(function (_ref2) {
18703
+ var HeaderTabItem = index$5(ReactNative.Animated.View)(function (_ref2) {
17360
18704
  var theme = _ref2.theme;
17361
18705
  return {
17362
18706
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17363
18707
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17364
18708
  };
17365
18709
  });
17366
- var HeaderTabItemOutlineWrapper = index$2(ReactNative.View)(function (_ref3) {
18710
+ var HeaderTabItemOutlineWrapper = index$5(ReactNative.View)(function (_ref3) {
17367
18711
  var theme = _ref3.theme;
17368
18712
  return _objectSpread2({
17369
18713
  paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
17370
18714
  paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
17371
18715
  }, ReactNative.StyleSheet.absoluteFillObject);
17372
18716
  });
17373
- var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
18717
+ var HeaderTabItemOutline = index$5(ReactNative.Animated.View)(function (_ref4) {
17374
18718
  var theme = _ref4.theme,
17375
18719
  themeActive = _ref4.themeActive;
17376
18720
  return {
@@ -17378,7 +18722,7 @@ var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
17378
18722
  backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
17379
18723
  };
17380
18724
  });
17381
- var HeaderTabItemWrapper = index$2(ReactNative.View)(function (_ref5) {
18725
+ var HeaderTabItemWrapper = index$5(ReactNative.View)(function (_ref5) {
17382
18726
  var theme = _ref5.theme;
17383
18727
  return {
17384
18728
  paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
@@ -17689,7 +19033,7 @@ var Tabs = function Tabs(_ref2) {
17689
19033
  })));
17690
19034
  };
17691
19035
 
17692
- var index = Object.assign(Tabs, {
19036
+ var index$1 = Object.assign(Tabs, {
17693
19037
  Scroll: ScrollableTab
17694
19038
  });
17695
19039
 
@@ -17699,7 +19043,7 @@ var BACKGROUND_INTENTS = {
17699
19043
  danger: 'dangerBackground',
17700
19044
  info: 'infoBackground'
17701
19045
  };
17702
- var StyledView = index$2(ReactNative.View)(function (_ref) {
19046
+ var StyledView = index$5(ReactNative.View)(function (_ref) {
17703
19047
  var themeIntent = _ref.themeIntent,
17704
19048
  theme = _ref.theme;
17705
19049
  return {
@@ -17711,7 +19055,7 @@ var StyledView = index$2(ReactNative.View)(function (_ref) {
17711
19055
  backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
17712
19056
  };
17713
19057
  });
17714
- var StyledText = index$2(ReactNative.Text)(function (_ref2) {
19058
+ var StyledText = index$5(ReactNative.Text)(function (_ref2) {
17715
19059
  var themeIntent = _ref2.themeIntent,
17716
19060
  theme = _ref2.theme;
17717
19061
  return {
@@ -17743,7 +19087,7 @@ var Tag = function Tag(_ref) {
17743
19087
  }, content));
17744
19088
  };
17745
19089
 
17746
- var ToastContainerWrapper = index$2(ReactNative.View)(function (_ref) {
19090
+ var ToastContainerWrapper = index$5(ReactNative.View)(function (_ref) {
17747
19091
  var theme = _ref.theme,
17748
19092
  position = _ref.position;
17749
19093
  return _objectSpread2(_objectSpread2({}, ReactNative.StyleSheet.absoluteFillObject), {}, {
@@ -17753,7 +19097,7 @@ var ToastContainerWrapper = index$2(ReactNative.View)(function (_ref) {
17753
19097
  elevation: 9999
17754
19098
  });
17755
19099
  });
17756
- var Container = index$2(ReactNative.Animated.View)(function (_ref2) {
19100
+ var Container = index$5(ReactNative.Animated.View)(function (_ref2) {
17757
19101
  var theme = _ref2.theme,
17758
19102
  themeVariant = _ref2.themeVariant,
17759
19103
  themeIntent = _ref2.themeIntent;
@@ -17764,21 +19108,21 @@ var Container = index$2(ReactNative.Animated.View)(function (_ref2) {
17764
19108
  flexDirection: 'row'
17765
19109
  };
17766
19110
  });
17767
- var IconContainer = index$2(ReactNative.View)(function (_ref3) {
19111
+ var IconContainer = index$5(ReactNative.View)(function (_ref3) {
17768
19112
  var theme = _ref3.theme;
17769
19113
  return {
17770
19114
  alignItems: 'center',
17771
19115
  paddingLeft: theme.__hd__.toast.space.mediumPadding
17772
19116
  };
17773
19117
  });
17774
- var TextContainer = index$2(ReactNative.View)(function (_ref4) {
19118
+ var TextContainer = index$5(ReactNative.View)(function (_ref4) {
17775
19119
  var theme = _ref4.theme;
17776
19120
  return {
17777
19121
  paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
17778
19122
  flex: 1
17779
19123
  };
17780
19124
  });
17781
- var ContentContainer = index$2(ReactNative.View)(function (_ref5) {
19125
+ var ContentContainer = index$5(ReactNative.View)(function (_ref5) {
17782
19126
  var theme = _ref5.theme,
17783
19127
  showDivider = _ref5.showDivider;
17784
19128
  return {
@@ -17789,7 +19133,7 @@ var ContentContainer = index$2(ReactNative.View)(function (_ref5) {
17789
19133
  flexDirection: 'row'
17790
19134
  };
17791
19135
  });
17792
- var CTAWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref6) {
19136
+ var CTAWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref6) {
17793
19137
  var theme = _ref6.theme;
17794
19138
  return {
17795
19139
  paddingHorizontal: theme.__hd__.alert.space.padding,
@@ -18030,31 +19374,131 @@ var Toast = {
18030
19374
  useToast: useToast
18031
19375
  };
18032
19376
 
19377
+ var ToolbarWrapper = index$5(ReactNative.View)(function (_ref) {
19378
+ var theme = _ref.theme;
19379
+ return {
19380
+ position: 'absolute',
19381
+ bottom: 0,
19382
+ left: 0,
19383
+ right: 0,
19384
+ zIndex: 9999,
19385
+ elevation: 9999,
19386
+ width: '100%',
19387
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19388
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19389
+ borderTopWidth: theme.__hd__.toolbar.borderWidths["default"],
19390
+ borderColor: theme.__hd__.toolbar.colors.border,
19391
+ flexDirection: 'row',
19392
+ alignItems: 'center',
19393
+ backgroundColor: theme.__hd__.toolbar.colors.background
19394
+ };
19395
+ });
19396
+ var alignment = {
19397
+ left: 'flex-start',
19398
+ center: 'center',
19399
+ right: 'flex-end'
19400
+ };
19401
+ var ToolbarGroupWrapper = index$5(ReactNative.View)(function (_ref2) {
19402
+ var align = _ref2.align;
19403
+ return {
19404
+ flex: 1,
19405
+ flexDirection: 'row',
19406
+ justifyContent: alignment[align],
19407
+ alignItems: 'center'
19408
+ };
19409
+ });
19410
+ var ToolbarItemWrapper = index$5(ReactNative.TouchableOpacity)(function (_ref3) {
19411
+ var theme = _ref3.theme;
19412
+ return {
19413
+ paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
19414
+ paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
19415
+ alignItems: 'center'
19416
+ };
19417
+ });
19418
+
19419
+ var ToolbarItem = function ToolbarItem(_ref) {
19420
+ var icon = _ref.icon,
19421
+ label = _ref.label,
19422
+ onPress = _ref.onPress,
19423
+ _ref$intent = _ref.intent,
19424
+ intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
19425
+ _ref$disabled = _ref.disabled,
19426
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
19427
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarItemWrapper, {
19428
+ onPress: onPress,
19429
+ disabled: disabled
19430
+ }, icon ? /*#__PURE__*/React__default["default"].createElement(Icon, {
19431
+ icon: icon,
19432
+ size: label ? 'medium' : 'large',
19433
+ intent: disabled ? 'disabled-text' : intent,
19434
+ testID: "toolbar-item-icon-".concat(icon)
19435
+ }) : null, label ? /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
19436
+ fontSize: icon ? 'small' : 'large',
19437
+ fontWeight: "semi-bold",
19438
+ intent: disabled ? 'subdued' : intent
19439
+ }, label) : null);
19440
+ };
19441
+
19442
+ var ToolbarGroup = function ToolbarGroup(_ref) {
19443
+ var _ref$align = _ref.align,
19444
+ align = _ref$align === void 0 ? 'right' : _ref$align,
19445
+ _ref$items = _ref.items,
19446
+ items = _ref$items === void 0 ? [] : _ref$items;
19447
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarGroupWrapper, {
19448
+ align: align
19449
+ }, items.map(function (_ref2) {
19450
+ var label = _ref2.label,
19451
+ icon = _ref2.icon,
19452
+ onPress = _ref2.onPress,
19453
+ disabled = _ref2.disabled,
19454
+ intent = _ref2.intent;
19455
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarItem, {
19456
+ key: "".concat(label, "-").concat(icon),
19457
+ label: label,
19458
+ icon: icon,
19459
+ intent: intent,
19460
+ onPress: onPress,
19461
+ disabled: disabled
19462
+ });
19463
+ }));
19464
+ };
19465
+
19466
+ var Toolbar = function Toolbar(_ref) {
19467
+ var children = _ref.children;
19468
+ return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, null, children);
19469
+ };
19470
+
19471
+ var index = Object.assign(Toolbar, {
19472
+ Group: ToolbarGroup
19473
+ });
19474
+
18033
19475
  exports.Alert = Alert;
18034
19476
  exports.Avatar = Avatar;
18035
19477
  exports.Badge = Badge$1;
18036
19478
  exports.BottomNavigation = BottomNavigation;
18037
19479
  exports.BottomSheet = BottomSheet;
18038
19480
  exports.Button = CompoundButton;
18039
- exports.Card = Card;
19481
+ exports.Card = index$4;
18040
19482
  exports.Checkbox = CheckBox;
18041
19483
  exports.Collapse = Collapse;
18042
19484
  exports.ContentNavigator = ContentNavigator;
18043
19485
  exports.Divider = Divider;
18044
19486
  exports.Drawer = Drawer;
18045
- exports.FAB = index$1;
19487
+ exports.FAB = index$3;
18046
19488
  exports.Icon = Icon;
19489
+ exports.List = List;
18047
19490
  exports.Progress = Progress;
18048
19491
  exports.Radio = CompoundRadio;
18049
19492
  exports.SectionHeading = SectionHeading;
18050
- exports.Select = CompoundSelect;
19493
+ exports.Select = index$2;
18051
19494
  exports.Spinner = Spinner;
18052
19495
  exports.Switch = Switch;
18053
- exports.Tabs = index;
19496
+ exports.Tabs = index$1;
18054
19497
  exports.Tag = Tag;
18055
19498
  exports.TextInput = TextInput;
18056
19499
  exports.ThemeProvider = ThemeProvider;
18057
19500
  exports.Toast = Toast;
19501
+ exports.Toolbar = index;
18058
19502
  exports.Typography = Typography;
18059
19503
  exports.getTheme = getTheme;
18060
19504
  exports.scale = scale;