@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.
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +1775 -333
- package/lib/index.js +1780 -336
- package/package.json +4 -8
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/index.tsx +3 -1
- package/src/components/Button/StyledButton.tsx +15 -2
- package/src/components/Button/__tests__/Button.spec.tsx +2 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
- package/src/components/Card/DataCard/StyledDataCard.tsx +18 -0
- package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +96 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +151 -0
- package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
- package/src/components/Card/DataCard/index.tsx +35 -0
- package/src/components/Card/StyledCard.tsx +1 -3
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
- package/src/components/Card/index.tsx +7 -2
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/Icon/HeroIcon/index.tsx +3 -1
- package/src/components/Icon/index.tsx +3 -2
- package/src/components/List/BasicListItem.tsx +98 -0
- package/src/components/List/ListItem.tsx +142 -0
- package/src/components/List/StyledBasicListItem.tsx +34 -0
- package/src/components/List/StyledListItem.tsx +82 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
- package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
- package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
- package/src/components/List/index.tsx +14 -0
- package/src/components/SectionHeading/index.tsx +1 -1
- package/src/components/Select/Footer.tsx +13 -0
- package/src/components/Select/MultiSelect/Option.tsx +25 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
- package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
- package/src/components/Select/MultiSelect/index.tsx +8 -7
- package/src/components/Select/SingleSelect/Option.tsx +23 -0
- package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
- package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
- package/src/components/Select/SingleSelect/index.tsx +89 -0
- package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
- package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
- package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
- package/src/components/Select/helpers.tsx +18 -0
- package/src/components/Select/index.tsx +4 -3
- package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +2 -2
- package/src/components/Toolbar/StyledToolbar.tsx +42 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
- package/src/components/Toolbar/ToolbarItem.tsx +57 -0
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
- package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
- package/src/components/Toolbar/index.tsx +18 -0
- package/src/components/Typography/Text/StyledText.tsx +8 -1
- package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
- package/src/components/Typography/Text/index.tsx +9 -2
- package/src/index.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +83 -3
- package/src/theme/components/button.ts +2 -0
- package/src/theme/components/card.ts +13 -2
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/list.ts +46 -0
- package/src/theme/components/toolbar.ts +27 -0
- package/src/theme/components/typography.ts +4 -0
- package/src/theme/global/colors.ts +9 -2
- package/src/theme/global/space.ts +2 -0
- package/src/theme/index.ts +6 -0
- package/tsconfig.json +1 -2
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
- package/types/components/{Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts → Card/DataCard/__tests__/StyledDataCard.spec.d.ts} +0 -0
- package/types/components/Card/DataCard/__tests__/index.spec.d.ts +1 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/index.d.ts +7 -3
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Collapse/index.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +2 -2
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +51 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/types/components/List/__tests__/BasicListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/ListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/StyledListItem.spec.d.ts +1 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/SectionHeading/index.d.ts +1 -1
- package/types/components/Select/{MultiSelect/Footer.d.ts → Footer.d.ts} +2 -2
- package/types/components/Select/MultiSelect/Option.d.ts +6 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
- package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/index.d.ts +4 -4
- package/types/components/Select/SingleSelect/Option.d.ts +6 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
- package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +35 -0
- package/types/components/Select/{MultiSelect/StyledMultiSelect.d.ts → StyledSelect.d.ts} +1 -1
- package/types/components/Select/__tests__/StyledSelect.spec.d.ts +1 -0
- package/types/components/Select/helpers.d.ts +2 -0
- package/types/components/Select/index.d.ts +3 -3
- package/types/components/Select/{MultiSelect/types.d.ts → types.d.ts} +0 -0
- package/types/components/Switch/index.d.ts +1 -1
- package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
- package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +1 -0
- package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +1 -0
- package/types/components/Toolbar/index.d.ts +11 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +2 -2
- package/types/index.d.ts +3 -1
- package/types/theme/components/button.d.ts +2 -0
- package/types/theme/components/card.d.ts +10 -0
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/components/list.d.ts +40 -0
- package/types/theme/components/toolbar.d.ts +21 -0
- package/types/theme/components/typography.d.ts +4 -0
- package/types/theme/global/colors.d.ts +5 -0
- package/types/theme/global/index.d.ts +5 -0
- package/types/theme/global/space.d.ts +1 -0
- package/types/theme/index.d.ts +4 -0
- package/playground/.detoxrc.json +0 -49
- package/playground/.prettierrc.json +0 -8
- package/playground/.turbo/turbo-type-check.log +0 -7
- package/playground/app.json +0 -9
- package/playground/babel.config.js +0 -63
- package/playground/e2e/config.json +0 -9
- package/playground/e2e/environment.js +0 -23
- package/playground/e2e/firstTest.e2e.js +0 -16
- package/playground/expoEntry.js +0 -5
- package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
- package/playground/fonts/hero-icons.ttf +0 -0
- package/playground/index.js +0 -7
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
- package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/playground/ios/Podfile +0 -49
- package/playground/ios/Podfile.lock +0 -478
- package/playground/ios/Podfile.properties.json +0 -3
- package/playground/metro.config.js +0 -24
- package/playground/package.json +0 -63
- package/playground/src/Alert.tsx +0 -80
- package/playground/src/App.tsx +0 -210
- package/playground/src/Avatar.tsx +0 -102
- package/playground/src/Badge.tsx +0 -187
- package/playground/src/BottomNavigation.tsx +0 -72
- package/playground/src/BottomSheet.tsx +0 -43
- package/playground/src/Button.tsx +0 -170
- package/playground/src/Card.tsx +0 -342
- package/playground/src/Checkbox.tsx +0 -55
- package/playground/src/Collapse.tsx +0 -99
- package/playground/src/ContentNavigator.tsx +0 -58
- package/playground/src/Divider.tsx +0 -13
- package/playground/src/Drawer.tsx +0 -32
- package/playground/src/FAB.tsx +0 -66
- package/playground/src/Icon.tsx +0 -144
- package/playground/src/IconButton.tsx +0 -78
- package/playground/src/MultipleThemes.tsx +0 -34
- package/playground/src/Progress.tsx +0 -95
- package/playground/src/Radio.tsx +0 -25
- package/playground/src/SectionHeading.tsx +0 -68
- package/playground/src/Select.tsx +0 -32
- package/playground/src/Spinner.tsx +0 -19
- package/playground/src/Switch.tsx +0 -80
- package/playground/src/Tabs.tsx +0 -136
- package/playground/src/Tag.tsx +0 -45
- package/playground/src/TextInput.tsx +0 -14
- package/playground/src/Toast.tsx +0 -114
- package/playground/src/Typography.tsx +0 -23
- package/playground/tsconfig.json +0 -21
- package/src/components/Select/MultiSelect/Footer.tsx +0 -15
package/es/index.js
CHANGED
|
@@ -1607,124 +1607,1029 @@ var scale$1 = {
|
|
|
1607
1607
|
radius: BASE_RADIUS
|
|
1608
1608
|
};
|
|
1609
1609
|
|
|
1610
|
-
var
|
|
1611
|
-
|
|
1610
|
+
var hexCharacters = 'a-f\\d';
|
|
1611
|
+
var match3or4Hex = "#?[".concat(hexCharacters, "]{3}[").concat(hexCharacters, "]?");
|
|
1612
|
+
var match6or8Hex = "#?[".concat(hexCharacters, "]{6}([").concat(hexCharacters, "]{2})?");
|
|
1613
|
+
var nonHexChars = new RegExp("[^#".concat(hexCharacters, "]"), 'gi');
|
|
1614
|
+
var validHexSize = new RegExp("^".concat(match3or4Hex, "$|^").concat(match6or8Hex, "$"), 'i');
|
|
1615
|
+
|
|
1616
|
+
var hexRgb = function hexRgb(hex) {
|
|
1617
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1618
|
+
|
|
1619
|
+
if (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {
|
|
1620
|
+
throw new TypeError('Expected a valid hex string');
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
hex = hex.replace(/^#/, '');
|
|
1624
|
+
var alphaFromHex = 1;
|
|
1625
|
+
|
|
1626
|
+
if (hex.length === 8) {
|
|
1627
|
+
alphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;
|
|
1628
|
+
hex = hex.slice(0, 6);
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
if (hex.length === 4) {
|
|
1632
|
+
alphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;
|
|
1633
|
+
hex = hex.slice(0, 3);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
if (hex.length === 3) {
|
|
1637
|
+
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
var number = Number.parseInt(hex, 16);
|
|
1641
|
+
var red = number >> 16;
|
|
1642
|
+
var green = number >> 8 & 255;
|
|
1643
|
+
var blue = number & 255;
|
|
1644
|
+
var alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;
|
|
1645
|
+
|
|
1646
|
+
if (options.format === 'array') {
|
|
1647
|
+
return [red, green, blue, alpha];
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
if (options.format === 'css') {
|
|
1651
|
+
var alphaString = alpha === 1 ? '' : " / ".concat(Number((alpha * 100).toFixed(2)), "%");
|
|
1652
|
+
return "rgb(".concat(red, " ").concat(green, " ").concat(blue).concat(alphaString, ")");
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
return {
|
|
1656
|
+
red: red,
|
|
1657
|
+
green: green,
|
|
1658
|
+
blue: blue,
|
|
1659
|
+
alpha: alpha
|
|
1660
|
+
};
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
var colorName = {
|
|
1664
|
+
"aliceblue": [240, 248, 255],
|
|
1665
|
+
"antiquewhite": [250, 235, 215],
|
|
1666
|
+
"aqua": [0, 255, 255],
|
|
1667
|
+
"aquamarine": [127, 255, 212],
|
|
1668
|
+
"azure": [240, 255, 255],
|
|
1669
|
+
"beige": [245, 245, 220],
|
|
1670
|
+
"bisque": [255, 228, 196],
|
|
1671
|
+
"black": [0, 0, 0],
|
|
1672
|
+
"blanchedalmond": [255, 235, 205],
|
|
1673
|
+
"blue": [0, 0, 255],
|
|
1674
|
+
"blueviolet": [138, 43, 226],
|
|
1675
|
+
"brown": [165, 42, 42],
|
|
1676
|
+
"burlywood": [222, 184, 135],
|
|
1677
|
+
"cadetblue": [95, 158, 160],
|
|
1678
|
+
"chartreuse": [127, 255, 0],
|
|
1679
|
+
"chocolate": [210, 105, 30],
|
|
1680
|
+
"coral": [255, 127, 80],
|
|
1681
|
+
"cornflowerblue": [100, 149, 237],
|
|
1682
|
+
"cornsilk": [255, 248, 220],
|
|
1683
|
+
"crimson": [220, 20, 60],
|
|
1684
|
+
"cyan": [0, 255, 255],
|
|
1685
|
+
"darkblue": [0, 0, 139],
|
|
1686
|
+
"darkcyan": [0, 139, 139],
|
|
1687
|
+
"darkgoldenrod": [184, 134, 11],
|
|
1688
|
+
"darkgray": [169, 169, 169],
|
|
1689
|
+
"darkgreen": [0, 100, 0],
|
|
1690
|
+
"darkgrey": [169, 169, 169],
|
|
1691
|
+
"darkkhaki": [189, 183, 107],
|
|
1692
|
+
"darkmagenta": [139, 0, 139],
|
|
1693
|
+
"darkolivegreen": [85, 107, 47],
|
|
1694
|
+
"darkorange": [255, 140, 0],
|
|
1695
|
+
"darkorchid": [153, 50, 204],
|
|
1696
|
+
"darkred": [139, 0, 0],
|
|
1697
|
+
"darksalmon": [233, 150, 122],
|
|
1698
|
+
"darkseagreen": [143, 188, 143],
|
|
1699
|
+
"darkslateblue": [72, 61, 139],
|
|
1700
|
+
"darkslategray": [47, 79, 79],
|
|
1701
|
+
"darkslategrey": [47, 79, 79],
|
|
1702
|
+
"darkturquoise": [0, 206, 209],
|
|
1703
|
+
"darkviolet": [148, 0, 211],
|
|
1704
|
+
"deeppink": [255, 20, 147],
|
|
1705
|
+
"deepskyblue": [0, 191, 255],
|
|
1706
|
+
"dimgray": [105, 105, 105],
|
|
1707
|
+
"dimgrey": [105, 105, 105],
|
|
1708
|
+
"dodgerblue": [30, 144, 255],
|
|
1709
|
+
"firebrick": [178, 34, 34],
|
|
1710
|
+
"floralwhite": [255, 250, 240],
|
|
1711
|
+
"forestgreen": [34, 139, 34],
|
|
1712
|
+
"fuchsia": [255, 0, 255],
|
|
1713
|
+
"gainsboro": [220, 220, 220],
|
|
1714
|
+
"ghostwhite": [248, 248, 255],
|
|
1715
|
+
"gold": [255, 215, 0],
|
|
1716
|
+
"goldenrod": [218, 165, 32],
|
|
1717
|
+
"gray": [128, 128, 128],
|
|
1718
|
+
"green": [0, 128, 0],
|
|
1719
|
+
"greenyellow": [173, 255, 47],
|
|
1720
|
+
"grey": [128, 128, 128],
|
|
1721
|
+
"honeydew": [240, 255, 240],
|
|
1722
|
+
"hotpink": [255, 105, 180],
|
|
1723
|
+
"indianred": [205, 92, 92],
|
|
1724
|
+
"indigo": [75, 0, 130],
|
|
1725
|
+
"ivory": [255, 255, 240],
|
|
1726
|
+
"khaki": [240, 230, 140],
|
|
1727
|
+
"lavender": [230, 230, 250],
|
|
1728
|
+
"lavenderblush": [255, 240, 245],
|
|
1729
|
+
"lawngreen": [124, 252, 0],
|
|
1730
|
+
"lemonchiffon": [255, 250, 205],
|
|
1731
|
+
"lightblue": [173, 216, 230],
|
|
1732
|
+
"lightcoral": [240, 128, 128],
|
|
1733
|
+
"lightcyan": [224, 255, 255],
|
|
1734
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
1735
|
+
"lightgray": [211, 211, 211],
|
|
1736
|
+
"lightgreen": [144, 238, 144],
|
|
1737
|
+
"lightgrey": [211, 211, 211],
|
|
1738
|
+
"lightpink": [255, 182, 193],
|
|
1739
|
+
"lightsalmon": [255, 160, 122],
|
|
1740
|
+
"lightseagreen": [32, 178, 170],
|
|
1741
|
+
"lightskyblue": [135, 206, 250],
|
|
1742
|
+
"lightslategray": [119, 136, 153],
|
|
1743
|
+
"lightslategrey": [119, 136, 153],
|
|
1744
|
+
"lightsteelblue": [176, 196, 222],
|
|
1745
|
+
"lightyellow": [255, 255, 224],
|
|
1746
|
+
"lime": [0, 255, 0],
|
|
1747
|
+
"limegreen": [50, 205, 50],
|
|
1748
|
+
"linen": [250, 240, 230],
|
|
1749
|
+
"magenta": [255, 0, 255],
|
|
1750
|
+
"maroon": [128, 0, 0],
|
|
1751
|
+
"mediumaquamarine": [102, 205, 170],
|
|
1752
|
+
"mediumblue": [0, 0, 205],
|
|
1753
|
+
"mediumorchid": [186, 85, 211],
|
|
1754
|
+
"mediumpurple": [147, 112, 219],
|
|
1755
|
+
"mediumseagreen": [60, 179, 113],
|
|
1756
|
+
"mediumslateblue": [123, 104, 238],
|
|
1757
|
+
"mediumspringgreen": [0, 250, 154],
|
|
1758
|
+
"mediumturquoise": [72, 209, 204],
|
|
1759
|
+
"mediumvioletred": [199, 21, 133],
|
|
1760
|
+
"midnightblue": [25, 25, 112],
|
|
1761
|
+
"mintcream": [245, 255, 250],
|
|
1762
|
+
"mistyrose": [255, 228, 225],
|
|
1763
|
+
"moccasin": [255, 228, 181],
|
|
1764
|
+
"navajowhite": [255, 222, 173],
|
|
1765
|
+
"navy": [0, 0, 128],
|
|
1766
|
+
"oldlace": [253, 245, 230],
|
|
1767
|
+
"olive": [128, 128, 0],
|
|
1768
|
+
"olivedrab": [107, 142, 35],
|
|
1769
|
+
"orange": [255, 165, 0],
|
|
1770
|
+
"orangered": [255, 69, 0],
|
|
1771
|
+
"orchid": [218, 112, 214],
|
|
1772
|
+
"palegoldenrod": [238, 232, 170],
|
|
1773
|
+
"palegreen": [152, 251, 152],
|
|
1774
|
+
"paleturquoise": [175, 238, 238],
|
|
1775
|
+
"palevioletred": [219, 112, 147],
|
|
1776
|
+
"papayawhip": [255, 239, 213],
|
|
1777
|
+
"peachpuff": [255, 218, 185],
|
|
1778
|
+
"peru": [205, 133, 63],
|
|
1779
|
+
"pink": [255, 192, 203],
|
|
1780
|
+
"plum": [221, 160, 221],
|
|
1781
|
+
"powderblue": [176, 224, 230],
|
|
1782
|
+
"purple": [128, 0, 128],
|
|
1783
|
+
"rebeccapurple": [102, 51, 153],
|
|
1784
|
+
"red": [255, 0, 0],
|
|
1785
|
+
"rosybrown": [188, 143, 143],
|
|
1786
|
+
"royalblue": [65, 105, 225],
|
|
1787
|
+
"saddlebrown": [139, 69, 19],
|
|
1788
|
+
"salmon": [250, 128, 114],
|
|
1789
|
+
"sandybrown": [244, 164, 96],
|
|
1790
|
+
"seagreen": [46, 139, 87],
|
|
1791
|
+
"seashell": [255, 245, 238],
|
|
1792
|
+
"sienna": [160, 82, 45],
|
|
1793
|
+
"silver": [192, 192, 192],
|
|
1794
|
+
"skyblue": [135, 206, 235],
|
|
1795
|
+
"slateblue": [106, 90, 205],
|
|
1796
|
+
"slategray": [112, 128, 144],
|
|
1797
|
+
"slategrey": [112, 128, 144],
|
|
1798
|
+
"snow": [255, 250, 250],
|
|
1799
|
+
"springgreen": [0, 255, 127],
|
|
1800
|
+
"steelblue": [70, 130, 180],
|
|
1801
|
+
"tan": [210, 180, 140],
|
|
1802
|
+
"teal": [0, 128, 128],
|
|
1803
|
+
"thistle": [216, 191, 216],
|
|
1804
|
+
"tomato": [255, 99, 71],
|
|
1805
|
+
"turquoise": [64, 224, 208],
|
|
1806
|
+
"violet": [238, 130, 238],
|
|
1807
|
+
"wheat": [245, 222, 179],
|
|
1808
|
+
"white": [255, 255, 255],
|
|
1809
|
+
"whitesmoke": [245, 245, 245],
|
|
1810
|
+
"yellow": [255, 255, 0],
|
|
1811
|
+
"yellowgreen": [154, 205, 50]
|
|
1812
|
+
};
|
|
1813
|
+
var pattern$8 = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
|
|
1814
|
+
var hexRe$1 = new RegExp(pattern$8, 'i');
|
|
1815
|
+
var float$1 = '-?\\d*(?:\\.\\d+)';
|
|
1816
|
+
var number$1 = "(".concat(float$1, "?)");
|
|
1817
|
+
var percentage$1 = "(".concat(float$1, "?%)");
|
|
1818
|
+
var numberOrPercentage$1 = "(".concat(float$1, "?%?)");
|
|
1819
|
+
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, '');
|
|
1820
|
+
var hsl3Re$1 = new RegExp(pattern$1$1);
|
|
1821
|
+
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, '');
|
|
1822
|
+
var hsl4Re$1 = new RegExp(pattern$2$1);
|
|
1823
|
+
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, '');
|
|
1824
|
+
var rgb3NumberRe$1 = new RegExp(pattern$3$1);
|
|
1825
|
+
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, '');
|
|
1826
|
+
var rgb3PercentageRe$1 = new RegExp(pattern$4$1);
|
|
1827
|
+
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, '');
|
|
1828
|
+
var rgb4NumberRe$1 = new RegExp(pattern$5$1);
|
|
1829
|
+
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, '');
|
|
1830
|
+
var rgb4PercentageRe$1 = new RegExp(pattern$6$1);
|
|
1831
|
+
var pattern$7$1 = /^transparent$/;
|
|
1832
|
+
var transparentRe$1 = new RegExp(pattern$7$1, 'i');
|
|
1833
|
+
|
|
1834
|
+
var clamp$3 = function clamp$3(num, min, max) {
|
|
1835
|
+
return Math.min(Math.max(min, num), max);
|
|
1836
|
+
};
|
|
1837
|
+
/* 500 => 255, -10 => 0, 128 => 128 */
|
|
1838
|
+
|
|
1839
|
+
|
|
1840
|
+
var parseRGB$1 = function parseRGB$1(num) {
|
|
1841
|
+
var n = num;
|
|
1842
|
+
if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
|
|
1843
|
+
return clamp$3(Math.round(n), 0, 255);
|
|
1844
|
+
};
|
|
1845
|
+
/* 200 => 100, -100 => 0, 50 => 50 */
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
var parsePercentage$1 = function parsePercentage$1(percentage) {
|
|
1849
|
+
return clamp$3(parseFloat(percentage), 0, 100);
|
|
1850
|
+
};
|
|
1851
|
+
/* '50%' => 5.0, 200 => 1, -10 => 0 */
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
function parseAlpha$1(alpha) {
|
|
1855
|
+
var a = alpha;
|
|
1856
|
+
if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
|
|
1857
|
+
return clamp$3(a, 0, 1);
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
function getHEX$1(hex) {
|
|
1861
|
+
var _hex2Rgb = hexRgb(hex, {
|
|
1862
|
+
format: 'array'
|
|
1863
|
+
}),
|
|
1864
|
+
_hex2Rgb2 = _slicedToArray(_hex2Rgb, 4),
|
|
1865
|
+
r = _hex2Rgb2[0],
|
|
1866
|
+
g = _hex2Rgb2[1],
|
|
1867
|
+
b = _hex2Rgb2[2],
|
|
1868
|
+
a = _hex2Rgb2[3];
|
|
1869
|
+
|
|
1870
|
+
return getRGB$1([null].concat([r, g, b, a]));
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
function getHSL$1(_ref) {
|
|
1874
|
+
var _ref2 = _slicedToArray(_ref, 5),
|
|
1875
|
+
h = _ref2[1],
|
|
1876
|
+
s = _ref2[2],
|
|
1877
|
+
l = _ref2[3],
|
|
1878
|
+
_ref2$ = _ref2[4],
|
|
1879
|
+
a = _ref2$ === void 0 ? 1 : _ref2$;
|
|
1880
|
+
|
|
1881
|
+
var hh = h;
|
|
1882
|
+
|
|
1883
|
+
if (hh.endsWith('turn')) {
|
|
1884
|
+
hh = parseFloat(hh) * 360 / 1;
|
|
1885
|
+
} else if (hh.endsWith('rad')) {
|
|
1886
|
+
hh = Math.round(parseFloat(hh) * 180 / Math.PI);
|
|
1887
|
+
} else {
|
|
1888
|
+
hh = parseFloat(hh);
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
return {
|
|
1892
|
+
type: 'hsl',
|
|
1893
|
+
values: [hh, parsePercentage$1(s), parsePercentage$1(l)],
|
|
1894
|
+
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
function getRGB$1(_ref3) {
|
|
1899
|
+
var _ref4 = _slicedToArray(_ref3, 5),
|
|
1900
|
+
r = _ref4[1],
|
|
1901
|
+
g = _ref4[2],
|
|
1902
|
+
b = _ref4[3],
|
|
1903
|
+
_ref4$ = _ref4[4],
|
|
1904
|
+
a = _ref4$ === void 0 ? 1 : _ref4$;
|
|
1905
|
+
|
|
1906
|
+
return {
|
|
1907
|
+
type: 'rgb',
|
|
1908
|
+
values: [r, g, b].map(parseRGB$1),
|
|
1909
|
+
alpha: parseAlpha$1(a === null ? 1 : a)
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* parse-css-color
|
|
1914
|
+
* @version v0.1.2
|
|
1915
|
+
* @link http://github.com/noeldelgado/parse-css-color/
|
|
1916
|
+
* @license MIT
|
|
1917
|
+
*/
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
var parseCSSColor$1 = function parseCSSColor$1(str) {
|
|
1921
|
+
if (typeof str !== 'string') return null;
|
|
1922
|
+
var hex = hexRe$1.exec(str);
|
|
1923
|
+
if (hex) return getHEX$1(hex[0]);
|
|
1924
|
+
var hsl = hsl4Re$1.exec(str) || hsl3Re$1.exec(str);
|
|
1925
|
+
if (hsl) return getHSL$1(hsl);
|
|
1926
|
+
var rgb = rgb4NumberRe$1.exec(str) || rgb4PercentageRe$1.exec(str) || rgb3NumberRe$1.exec(str) || rgb3PercentageRe$1.exec(str);
|
|
1927
|
+
if (rgb) return getRGB$1(rgb);
|
|
1928
|
+
if (transparentRe$1.exec(str)) return getRGB$1([null, 0, 0, 0, 0]);
|
|
1929
|
+
var cn = colorName[str.toLowerCase()];
|
|
1930
|
+
if (cn) return getRGB$1([null, cn[0], cn[1], cn[2], 1]);
|
|
1931
|
+
return null;
|
|
1932
|
+
};
|
|
1933
|
+
|
|
1934
|
+
function hsl2rgb(hsl) {
|
|
1935
|
+
var h = hsl[0] / 360,
|
|
1936
|
+
s = hsl[1] / 100,
|
|
1937
|
+
l = hsl[2] / 100,
|
|
1938
|
+
t1,
|
|
1939
|
+
t2,
|
|
1940
|
+
t3,
|
|
1941
|
+
rgb,
|
|
1942
|
+
val;
|
|
1943
|
+
|
|
1944
|
+
if (s == 0) {
|
|
1945
|
+
val = l * 255;
|
|
1946
|
+
return [val, val, val];
|
|
1947
|
+
}
|
|
1948
|
+
|
|
1949
|
+
if (l < 0.5) t2 = l * (1 + s);else t2 = l + s - l * s;
|
|
1950
|
+
t1 = 2 * l - t2;
|
|
1951
|
+
rgb = [0, 0, 0];
|
|
1952
|
+
|
|
1953
|
+
for (var i = 0; i < 3; i++) {
|
|
1954
|
+
t3 = h + 1 / 3 * -(i - 1);
|
|
1955
|
+
t3 < 0 && t3++;
|
|
1956
|
+
t3 > 1 && t3--;
|
|
1957
|
+
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;
|
|
1958
|
+
rgb[i] = val * 255;
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
return rgb;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
var hsl2rgb_1 = hsl2rgb;
|
|
1965
|
+
|
|
1966
|
+
function clamp$2(val, min, max) {
|
|
1967
|
+
return Math.min(Math.max(val, min), max);
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
var clamp_1 = clamp$2;
|
|
1971
|
+
var clamp$1 = clamp_1;
|
|
1972
|
+
|
|
1973
|
+
function componentToHex(c) {
|
|
1974
|
+
var value = Math.round(clamp$1(c, 0, 255));
|
|
1975
|
+
var hex = value.toString(16);
|
|
1976
|
+
return hex.length == 1 ? "0" + hex : hex;
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
function rgb2hex(rgb) {
|
|
1980
|
+
var alpha = rgb.length === 4 ? componentToHex(rgb[3] * 255) : "";
|
|
1981
|
+
return "#" + componentToHex(rgb[0]) + componentToHex(rgb[1]) + componentToHex(rgb[2]) + alpha;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
var rgb2hex_1 = rgb2hex;
|
|
1985
|
+
|
|
1986
|
+
function rgb2hsl(rgb) {
|
|
1987
|
+
var r = rgb[0] / 255,
|
|
1988
|
+
g = rgb[1] / 255,
|
|
1989
|
+
b = rgb[2] / 255,
|
|
1990
|
+
min = Math.min(r, g, b),
|
|
1991
|
+
max = Math.max(r, g, b),
|
|
1992
|
+
delta = max - min,
|
|
1993
|
+
h,
|
|
1994
|
+
s,
|
|
1995
|
+
l;
|
|
1996
|
+
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;
|
|
1997
|
+
h = Math.min(h * 60, 360);
|
|
1998
|
+
if (h < 0) h += 360;
|
|
1999
|
+
l = (min + max) / 2;
|
|
2000
|
+
if (max == min) s = 0;else if (l <= 0.5) s = delta / (max + min);else s = delta / (2 - max - min);
|
|
2001
|
+
return [h, s * 100, l * 100];
|
|
2002
|
+
}
|
|
2003
|
+
|
|
2004
|
+
var rgb2hsl_1 = rgb2hsl;
|
|
2005
|
+
/**
|
|
2006
|
+
* mix-css-color
|
|
2007
|
+
* @version v0.2.0
|
|
2008
|
+
* @link http://github.com/noeldelgado/mix-css-color/
|
|
2009
|
+
* @license MIT
|
|
2010
|
+
*/
|
|
2011
|
+
|
|
2012
|
+
function parseColor(color) {
|
|
2013
|
+
var res = parseCSSColor$1(color);
|
|
2014
|
+
if (res === null) return null;
|
|
2015
|
+
if (res.type === 'hsl') res.values = hsl2rgb_1(res.values);
|
|
2016
|
+
return res;
|
|
2017
|
+
}
|
|
2018
|
+
/**
|
|
2019
|
+
* Mix two colors together in variable proportion. Opacity is included in the calculations.
|
|
2020
|
+
* Copyright (c) 2006-2009 Hampton Catlin, Natalie Weizenbaum, and Chris Eppstein
|
|
2021
|
+
* http://sass-lang.com
|
|
2022
|
+
* @see https://github.com/less/less.js/blob/cae5021358a5fca932c32ed071f652403d07def8/lib/less/functions/color.js#L302
|
|
2023
|
+
*/
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
function mix(color1, color2) {
|
|
2027
|
+
var percentage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50;
|
|
2028
|
+
var c1 = parseColor(color1);
|
|
2029
|
+
var c2 = parseColor(color2);
|
|
2030
|
+
if (!c1 || !c2) return null;
|
|
2031
|
+
var p = Math.min(Math.max(0, percentage), 100) / 100.0;
|
|
2032
|
+
var w = p * 2 - 1;
|
|
2033
|
+
var a = c1.alpha - c2.alpha;
|
|
2034
|
+
var w1 = ((w * a === -1 ? w : (w + a) / (1 + w * a)) + 1) / 2.0;
|
|
2035
|
+
var w2 = 1 - w1;
|
|
2036
|
+
|
|
2037
|
+
var _c1$values$map = c1.values.map(function (c, i) {
|
|
2038
|
+
return Math.round(c1.values[i] * w1 + c2.values[i] * w2);
|
|
2039
|
+
}),
|
|
2040
|
+
_c1$values$map2 = _slicedToArray(_c1$values$map, 3),
|
|
2041
|
+
r = _c1$values$map2[0],
|
|
2042
|
+
g = _c1$values$map2[1],
|
|
2043
|
+
b = _c1$values$map2[2];
|
|
2044
|
+
|
|
2045
|
+
var alpha = parseFloat((c1.alpha * p + c2.alpha * (1 - p)).toFixed(8));
|
|
2046
|
+
return {
|
|
2047
|
+
hex: rgb2hex_1([r, g, b]),
|
|
2048
|
+
hexa: rgb2hex_1([r, g, b, alpha]),
|
|
2049
|
+
rgba: [r, g, b, alpha],
|
|
2050
|
+
hsla: [].concat(_toConsumableArray$1(rgb2hsl_1([r, g, b]).map(Math.round)), [alpha])
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
var pattern = /^#([a-f0-9]{3,4}|[a-f0-9]{4}(?:[a-f0-9]{2}){1,2})\b$/;
|
|
2055
|
+
var hexRe = new RegExp(pattern, 'i');
|
|
2056
|
+
var _float = '-?\\d*(?:\\.\\d+)';
|
|
2057
|
+
var number = "(".concat(_float, "?)");
|
|
2058
|
+
var percentage = "(".concat(_float, "?%)");
|
|
2059
|
+
var numberOrPercentage = "(".concat(_float, "?%?)");
|
|
2060
|
+
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, '');
|
|
2061
|
+
var hsl3Re = new RegExp(pattern$1);
|
|
2062
|
+
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, '');
|
|
2063
|
+
var hsl4Re = new RegExp(pattern$2);
|
|
2064
|
+
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, '');
|
|
2065
|
+
var rgb3NumberRe = new RegExp(pattern$3);
|
|
2066
|
+
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, '');
|
|
2067
|
+
var rgb3PercentageRe = new RegExp(pattern$4);
|
|
2068
|
+
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, '');
|
|
2069
|
+
var rgb4NumberRe = new RegExp(pattern$5);
|
|
2070
|
+
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, '');
|
|
2071
|
+
var rgb4PercentageRe = new RegExp(pattern$6);
|
|
2072
|
+
var pattern$7 = /^transparent$/;
|
|
2073
|
+
var transparentRe = new RegExp(pattern$7, 'i');
|
|
2074
|
+
|
|
2075
|
+
var clamp = function clamp(num, min, max) {
|
|
2076
|
+
return Math.min(Math.max(min, num), max);
|
|
2077
|
+
};
|
|
2078
|
+
/* 500 => 255, -10 => 0, 128 => 128 */
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
var parseRGB = function parseRGB(num) {
|
|
2082
|
+
var n = num;
|
|
2083
|
+
if (typeof n !== 'number') n = n.endsWith('%') ? parseFloat(n) * 255 / 100 : parseFloat(n);
|
|
2084
|
+
return clamp(Math.round(n), 0, 255);
|
|
2085
|
+
};
|
|
2086
|
+
/* 200 => 100, -100 => 0, 50 => 50 */
|
|
2087
|
+
|
|
2088
|
+
|
|
2089
|
+
var parsePercentage = function parsePercentage(percentage) {
|
|
2090
|
+
return clamp(parseFloat(percentage), 0, 100);
|
|
2091
|
+
};
|
|
2092
|
+
/* '50%' => 5.0, 200 => 1, -10 => 0 */
|
|
2093
|
+
|
|
2094
|
+
|
|
2095
|
+
function parseAlpha(alpha) {
|
|
2096
|
+
var a = alpha;
|
|
2097
|
+
if (typeof a !== 'number') a = a.endsWith('%') ? parseFloat(a) / 100 : parseFloat(a);
|
|
2098
|
+
return clamp(a, 0, 1);
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
function getHEX(hex) {
|
|
2102
|
+
var _hex2Rgb3 = hexRgb(hex, {
|
|
2103
|
+
format: 'array'
|
|
2104
|
+
}),
|
|
2105
|
+
_hex2Rgb4 = _slicedToArray(_hex2Rgb3, 4),
|
|
2106
|
+
r = _hex2Rgb4[0],
|
|
2107
|
+
g = _hex2Rgb4[1],
|
|
2108
|
+
b = _hex2Rgb4[2],
|
|
2109
|
+
a = _hex2Rgb4[3];
|
|
2110
|
+
|
|
2111
|
+
return getRGB([null].concat([r, g, b, a]));
|
|
2112
|
+
}
|
|
2113
|
+
|
|
2114
|
+
function getHSL(_ref5) {
|
|
2115
|
+
var _ref6 = _slicedToArray(_ref5, 5),
|
|
2116
|
+
h = _ref6[1],
|
|
2117
|
+
s = _ref6[2],
|
|
2118
|
+
l = _ref6[3],
|
|
2119
|
+
_ref6$ = _ref6[4],
|
|
2120
|
+
a = _ref6$ === void 0 ? 1 : _ref6$;
|
|
2121
|
+
|
|
2122
|
+
var hh = h;
|
|
2123
|
+
|
|
2124
|
+
if (hh.endsWith('turn')) {
|
|
2125
|
+
hh = parseFloat(hh) * 360 / 1;
|
|
2126
|
+
} else if (hh.endsWith('rad')) {
|
|
2127
|
+
hh = Math.round(parseFloat(hh) * 180 / Math.PI);
|
|
2128
|
+
} else {
|
|
2129
|
+
hh = parseFloat(hh);
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
return {
|
|
2133
|
+
type: 'hsl',
|
|
2134
|
+
values: [hh, parsePercentage(s), parsePercentage(l)],
|
|
2135
|
+
alpha: parseAlpha(a === null ? 1 : a)
|
|
2136
|
+
};
|
|
2137
|
+
}
|
|
2138
|
+
|
|
2139
|
+
function getRGB(_ref7) {
|
|
2140
|
+
var _ref8 = _slicedToArray(_ref7, 5),
|
|
2141
|
+
r = _ref8[1],
|
|
2142
|
+
g = _ref8[2],
|
|
2143
|
+
b = _ref8[3],
|
|
2144
|
+
_ref8$ = _ref8[4],
|
|
2145
|
+
a = _ref8$ === void 0 ? 1 : _ref8$;
|
|
2146
|
+
|
|
2147
|
+
return {
|
|
2148
|
+
type: 'rgb',
|
|
2149
|
+
values: [r, g, b].map(parseRGB),
|
|
2150
|
+
alpha: parseAlpha(a === null ? 1 : a)
|
|
2151
|
+
};
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* parse-css-color
|
|
2155
|
+
* @version v0.2.0
|
|
2156
|
+
* @link http://github.com/noeldelgado/parse-css-color/
|
|
2157
|
+
* @license MIT
|
|
2158
|
+
*/
|
|
2159
|
+
|
|
2160
|
+
|
|
2161
|
+
var parseCSSColor = function parseCSSColor(str) {
|
|
2162
|
+
if (typeof str !== 'string') return null;
|
|
2163
|
+
var hex = hexRe.exec(str);
|
|
2164
|
+
if (hex) return getHEX(hex[0]);
|
|
2165
|
+
var hsl = hsl4Re.exec(str) || hsl3Re.exec(str);
|
|
2166
|
+
if (hsl) return getHSL(hsl);
|
|
2167
|
+
var rgb = rgb4NumberRe.exec(str) || rgb4PercentageRe.exec(str) || rgb3NumberRe.exec(str) || rgb3PercentageRe.exec(str);
|
|
2168
|
+
if (rgb) return getRGB(rgb);
|
|
2169
|
+
if (transparentRe.exec(str)) return getRGB([null, 0, 0, 0, 0]);
|
|
2170
|
+
var cn = colorName[str.toLowerCase()];
|
|
2171
|
+
if (cn) return getRGB([null, cn[0], cn[1], cn[2], 1]);
|
|
2172
|
+
return null;
|
|
2173
|
+
};
|
|
2174
|
+
/**
|
|
2175
|
+
* values.js - Get the tints and shades of a color
|
|
2176
|
+
* @version v2.1.1
|
|
2177
|
+
* @link http://noeldelgado.github.io/values.js/
|
|
2178
|
+
* @license MIT
|
|
2179
|
+
*/
|
|
2180
|
+
|
|
2181
|
+
|
|
2182
|
+
var defaultNumberParam = function defaultNumberParam(v, d) {
|
|
2183
|
+
return v === null || isNaN(v) || typeof v === 'string' ? d : v;
|
|
2184
|
+
};
|
|
2185
|
+
|
|
2186
|
+
var Values = /*#__PURE__*/function () {
|
|
2187
|
+
function Values() {
|
|
2188
|
+
var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '#000';
|
|
2189
|
+
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'base';
|
|
2190
|
+
var weight = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
2191
|
+
|
|
2192
|
+
_classCallCheck$1(this, Values);
|
|
2193
|
+
|
|
2194
|
+
var _ref9 = [[0, 0, 0], 1, type, weight];
|
|
2195
|
+
this.rgb = _ref9[0];
|
|
2196
|
+
this.alpha = _ref9[1];
|
|
2197
|
+
this.type = _ref9[2];
|
|
2198
|
+
this.weight = _ref9[3];
|
|
2199
|
+
var c = color === null ? '#000' : color;
|
|
2200
|
+
if (typeof c !== 'string') throw new TypeError("Input should be a string: ".concat(c));
|
|
2201
|
+
var parsed = parseCSSColor(c);
|
|
2202
|
+
if (!parsed) throw new Error("Unable to parse color from string: ".concat(c));
|
|
2203
|
+
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2206
|
+
_createClass$1(Values, [{
|
|
2207
|
+
key: "hex",
|
|
2208
|
+
get: function get() {
|
|
2209
|
+
return this.hexString().replace(/^#/, '');
|
|
2210
|
+
}
|
|
2211
|
+
}, {
|
|
2212
|
+
key: "setColor",
|
|
2213
|
+
value: function setColor(color) {
|
|
2214
|
+
var parsed = parseCSSColor(color);
|
|
2215
|
+
if (!parsed) return null;
|
|
2216
|
+
return this["_setFrom".concat(parsed.type.toUpperCase())]([].concat(_toConsumableArray$1(parsed.values), [parsed.alpha]));
|
|
2217
|
+
}
|
|
2218
|
+
}, {
|
|
2219
|
+
key: "tint",
|
|
2220
|
+
value: function tint(weight) {
|
|
2221
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
|
|
2222
|
+
return new Values("rgb(".concat(mix('#fff', this.rgbString(), w).rgba, ")"), 'tint', w);
|
|
2223
|
+
}
|
|
2224
|
+
}, {
|
|
2225
|
+
key: "shade",
|
|
2226
|
+
value: function shade(weight) {
|
|
2227
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 50);
|
|
2228
|
+
return new Values("rgb(".concat(mix('#000', this.rgbString(), w).rgba, ")"), 'shade', w);
|
|
2229
|
+
}
|
|
2230
|
+
}, {
|
|
2231
|
+
key: "tints",
|
|
2232
|
+
value: function tints(weight) {
|
|
2233
|
+
var _this = this;
|
|
2234
|
+
|
|
2235
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
|
|
2236
|
+
return Array.from({
|
|
2237
|
+
length: 100 / w
|
|
2238
|
+
}, function (_, i) {
|
|
2239
|
+
return _this.tint((i + 1) * w);
|
|
2240
|
+
});
|
|
2241
|
+
}
|
|
2242
|
+
}, {
|
|
2243
|
+
key: "shades",
|
|
2244
|
+
value: function shades(weight) {
|
|
2245
|
+
var _this2 = this;
|
|
2246
|
+
|
|
2247
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultNumberParam(weight, 10);
|
|
2248
|
+
return Array.from({
|
|
2249
|
+
length: 100 / w
|
|
2250
|
+
}, function (_, i) {
|
|
2251
|
+
return _this2.shade((i + 1) * w);
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2254
|
+
}, {
|
|
2255
|
+
key: "all",
|
|
2256
|
+
value: function all() {
|
|
2257
|
+
var weight = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 10;
|
|
2258
|
+
return [].concat(_toConsumableArray$1(this.tints(weight).reverse()), [Object.assign(this)], _toConsumableArray$1(this.shades(weight)));
|
|
2259
|
+
}
|
|
2260
|
+
}, {
|
|
2261
|
+
key: "hexString",
|
|
2262
|
+
value: function hexString() {
|
|
2263
|
+
return rgb2hex_1(this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha]));
|
|
2264
|
+
}
|
|
2265
|
+
}, {
|
|
2266
|
+
key: "rgbString",
|
|
2267
|
+
value: function rgbString() {
|
|
2268
|
+
var channels = (this.alpha >= 1 ? this.rgb : [].concat(_toConsumableArray$1(this.rgb), [this.alpha])).join(', ');
|
|
2269
|
+
return "".concat(this.alpha >= 1 ? 'rgb' : 'rgba', "(").concat(channels, ")");
|
|
2270
|
+
}
|
|
2271
|
+
}, {
|
|
2272
|
+
key: "getBrightness",
|
|
2273
|
+
value: function getBrightness() {
|
|
2274
|
+
return Math.round(this.rgb.reduce(function (a, b) {
|
|
2275
|
+
return a + b;
|
|
2276
|
+
}) / (255 * 3) * 100);
|
|
2277
|
+
}
|
|
2278
|
+
}, {
|
|
2279
|
+
key: "_setFromRGB",
|
|
2280
|
+
value: function _setFromRGB(_ref10) {
|
|
2281
|
+
var _ref11 = _slicedToArray(_ref10, 4),
|
|
2282
|
+
r = _ref11[0],
|
|
2283
|
+
g = _ref11[1],
|
|
2284
|
+
b = _ref11[2],
|
|
2285
|
+
a = _ref11[3];
|
|
2286
|
+
|
|
2287
|
+
var _ref12 = [[r, g, b], a];
|
|
2288
|
+
this.rgb = _ref12[0];
|
|
2289
|
+
this.alpha = _ref12[1];
|
|
2290
|
+
return this;
|
|
2291
|
+
}
|
|
2292
|
+
}, {
|
|
2293
|
+
key: "_setFromHSL",
|
|
2294
|
+
value: function _setFromHSL(_ref13) {
|
|
2295
|
+
var _ref14 = _slicedToArray(_ref13, 4),
|
|
2296
|
+
h = _ref14[0],
|
|
2297
|
+
s = _ref14[1],
|
|
2298
|
+
l = _ref14[2],
|
|
2299
|
+
a = _ref14[3];
|
|
2300
|
+
|
|
2301
|
+
var _ref15 = [hsl2rgb_1([h, s, l]).map(Math.round), a];
|
|
2302
|
+
this.rgb = _ref15[0];
|
|
2303
|
+
this.alpha = _ref15[1];
|
|
2304
|
+
return this;
|
|
2305
|
+
}
|
|
2306
|
+
}]);
|
|
2307
|
+
|
|
2308
|
+
return Values;
|
|
2309
|
+
}();
|
|
2310
|
+
|
|
2311
|
+
Values.VERSION = 'v2.1.1';
|
|
2312
|
+
var Values$1 = Values;
|
|
2313
|
+
var STEPS = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95];
|
|
2314
|
+
|
|
2315
|
+
var createColorScales = function createColorScales(base) {
|
|
2316
|
+
var colorValues = new Values$1(base);
|
|
2317
|
+
return _objectSpread2(_objectSpread2({}, STEPS.reduce(function (acc, step) {
|
|
2318
|
+
var _objectSpread2$1;
|
|
2319
|
+
|
|
2320
|
+
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));
|
|
2321
|
+
}, {})), {}, {
|
|
2322
|
+
base: colorValues.hexString()
|
|
2323
|
+
});
|
|
2324
|
+
};
|
|
2325
|
+
|
|
2326
|
+
var BASE_COLORS = {
|
|
2327
|
+
antiFlashWhite: '#f1f2f3',
|
|
1612
2328
|
blue: '#1dbeee',
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
dodgerBlueLight90: '#ecf0ff',
|
|
2329
|
+
blue1: '#5a68e2',
|
|
2330
|
+
nightBlue: '#353957',
|
|
2331
|
+
darkBlue: '#25006e',
|
|
2332
|
+
maasstrichtBlue: '#001f23',
|
|
2333
|
+
ultramarineBlue: '#4568fb',
|
|
2334
|
+
aliceBlue: '#ecf0ff',
|
|
2335
|
+
jordyBlue: '#92abfc',
|
|
2336
|
+
cornflowerBlue: '#5d80f0',
|
|
2337
|
+
paua: '#130066',
|
|
1623
2338
|
green: '#01b39c',
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
greenLight30: '#4dcaba',
|
|
1628
|
-
greenLight75: '#c0ece6',
|
|
1629
|
-
greenLight90: '#e6f7f5',
|
|
2339
|
+
emerald: '#5ace7d',
|
|
2340
|
+
pineGreen: '#017d6d',
|
|
2341
|
+
honeydew: '#f0fef4',
|
|
1630
2342
|
grey: '#a3a6ac',
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
greyDark45: '#5a5b5f',
|
|
1634
|
-
greyDark60: '#414245',
|
|
1635
|
-
greyDark75: '#292a2b',
|
|
1636
|
-
greyLight45: '#ccced1',
|
|
1637
|
-
greyLight60: '#dadbde',
|
|
1638
|
-
greyLight75: '#e8e9ea',
|
|
1639
|
-
greyLight85: '#f1f2f3',
|
|
1640
|
-
greyLight90: '#f6f6f7',
|
|
1641
|
-
greyLight95: '#fafbfb',
|
|
2343
|
+
currant: '#48000a',
|
|
2344
|
+
sonicSilver: '#737479',
|
|
1642
2345
|
grotesqueGreen: '#6af293',
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
grotesqueGreenLight75: '#dafce4',
|
|
1646
|
-
grotesqueGreenLight90: '#f0fef4',
|
|
1647
|
-
orange: '#ffa234',
|
|
1648
|
-
orangeDark15: '#d98a2c',
|
|
1649
|
-
orangeDark30: '#b37124',
|
|
1650
|
-
orangeDark75: '#40290d',
|
|
1651
|
-
orangeLight30: '#ffbe71',
|
|
1652
|
-
orangeLight75: '#ffe8cc',
|
|
1653
|
-
orangeLight90: '#fff6eb',
|
|
2346
|
+
mellowApricot: '#ffbe71',
|
|
2347
|
+
deepSaffron: '#ffa234',
|
|
1654
2348
|
pink: '#fe56aa',
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
pinkDark45: '#8c2f5e',
|
|
1658
|
-
pinkDark75: '#40162b',
|
|
1659
|
-
pinkLight30: '#fe89c4',
|
|
1660
|
-
pinkLight45: '#fea2d0',
|
|
1661
|
-
pinkLight75: '#fcd5ea',
|
|
1662
|
-
pinkLight90: '#ffeef7',
|
|
2349
|
+
hitPink: '#ffad79',
|
|
2350
|
+
apple: '#e3602a',
|
|
1663
2351
|
purple: '#be83cf',
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
redLight30: '#e87254',
|
|
1671
|
-
redLight60: '#f2ae9d',
|
|
1672
|
-
redLight75: '#f7cdc2',
|
|
1673
|
-
redLight90: '#fcebe7',
|
|
2352
|
+
scarletGum: '#401960',
|
|
2353
|
+
vodka: '#b5c3fd',
|
|
2354
|
+
peach: '#f8ac7d',
|
|
2355
|
+
pastelRed: '#f46363',
|
|
2356
|
+
vermilion: '#de350b',
|
|
2357
|
+
linen: '#fcebe7',
|
|
1674
2358
|
smalt: '#003580',
|
|
1675
|
-
smaltDark75: '#000d20',
|
|
1676
|
-
smaltLight30: '#4d72a6',
|
|
1677
|
-
smaltLight45: '#7390b9',
|
|
1678
|
-
smaltLight75: '#bfcddf',
|
|
1679
|
-
smaltLight90: '#e6ebf2',
|
|
1680
2359
|
violet: '#7622d7',
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
violetDark45: '#411376',
|
|
1684
|
-
violetDark75: '#1e0936',
|
|
1685
|
-
violetLight30: '#9f64e3',
|
|
1686
|
-
violetLight60: '#c8a7ef',
|
|
1687
|
-
violetLight75: '#ddc8f5',
|
|
1688
|
-
violetLight90: '#f1e9fb',
|
|
1689
|
-
white: '#ffffff',
|
|
2360
|
+
violet1: '#8505a2',
|
|
2361
|
+
mauve: '#c38cee',
|
|
1690
2362
|
yellow: '#fadb14',
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
yellowLight60: '#fdf1a1',
|
|
1694
|
-
yellowLight90: '#fffbe8'
|
|
2363
|
+
seashell: '#ebf4ff',
|
|
2364
|
+
gold: '#ffd500'
|
|
1695
2365
|
};
|
|
2366
|
+
var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
2367
|
+
var _ref17 = _slicedToArray(_ref16, 2),
|
|
2368
|
+
key = _ref17[0],
|
|
2369
|
+
value = _ref17[1];
|
|
2370
|
+
|
|
2371
|
+
return _objectSpread2(_objectSpread2({}, acc), {}, _defineProperty$2({}, key, createColorScales(value)));
|
|
2372
|
+
}, {});
|
|
2373
|
+
var blue$1 = colorScales.blue,
|
|
2374
|
+
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
2375
|
+
green$1 = colorScales.green,
|
|
2376
|
+
grey$2 = colorScales.grey,
|
|
2377
|
+
grotesqueGreen = colorScales.grotesqueGreen,
|
|
2378
|
+
deepSaffron$2 = colorScales.deepSaffron,
|
|
2379
|
+
pink$1 = colorScales.pink,
|
|
2380
|
+
purple$1 = colorScales.purple,
|
|
2381
|
+
vermilion$2 = colorScales.vermilion,
|
|
2382
|
+
smalt = colorScales.smalt,
|
|
2383
|
+
violet$1 = colorScales.violet,
|
|
2384
|
+
yellow$1 = colorScales.yellow;
|
|
2385
|
+
var palette$6 = {
|
|
2386
|
+
black: '#000000',
|
|
2387
|
+
white: '#ffffff',
|
|
2388
|
+
blue: blue$1.base,
|
|
2389
|
+
blueDark30: blue$1.darken30,
|
|
2390
|
+
blueDark75: blue$1.darken75,
|
|
2391
|
+
blueLight30: blue$1.lighten30,
|
|
2392
|
+
blueLight75: blue$1.lighten75,
|
|
2393
|
+
blueLight90: blue$1.lighten90,
|
|
2394
|
+
dodgerBlue: ultramarineBlue$1.base,
|
|
2395
|
+
dodgerBlueDark30: ultramarineBlue$1.darken30,
|
|
2396
|
+
dodgerBlueLight30: ultramarineBlue$1.lighten30,
|
|
2397
|
+
dodgerBlueLight75: ultramarineBlue$1.lighten75,
|
|
2398
|
+
dodgerBlueLight90: ultramarineBlue$1.lighten90,
|
|
2399
|
+
green: green$1.base,
|
|
2400
|
+
greenDark15: green$1.darken15,
|
|
2401
|
+
greenDark30: green$1.darken30,
|
|
2402
|
+
greenDark75: green$1.darken75,
|
|
2403
|
+
greenLight30: green$1.lighten30,
|
|
2404
|
+
greenLight75: green$1.lighten75,
|
|
2405
|
+
greenLight90: green$1.lighten90,
|
|
2406
|
+
grey: grey$2.base,
|
|
2407
|
+
greyDark15: grey$2.darken15,
|
|
2408
|
+
greyDark30: grey$2.darken30,
|
|
2409
|
+
greyDark45: grey$2.darken45,
|
|
2410
|
+
greyDark60: grey$2.darken60,
|
|
2411
|
+
greyDark75: grey$2.darken75,
|
|
2412
|
+
greyLight45: grey$2.lighten45,
|
|
2413
|
+
greyLight60: grey$2.lighten60,
|
|
2414
|
+
greyLight75: grey$2.lighten75,
|
|
2415
|
+
greyLight85: grey$2.lighten85,
|
|
2416
|
+
greyLight90: grey$2.lighten90,
|
|
2417
|
+
greyLight95: grey$2.lighten95,
|
|
2418
|
+
grotesqueGreen: grotesqueGreen.base,
|
|
2419
|
+
grotesqueGreenDark45: grotesqueGreen.darken45,
|
|
2420
|
+
grotesqueGreenLight60: grotesqueGreen.lighten60,
|
|
2421
|
+
grotesqueGreenLight75: grotesqueGreen.lighten75,
|
|
2422
|
+
grotesqueGreenLight90: grotesqueGreen.lighten90,
|
|
2423
|
+
orange: deepSaffron$2.base,
|
|
2424
|
+
orangeDark15: deepSaffron$2.darken15,
|
|
2425
|
+
orangeDark30: deepSaffron$2.darken30,
|
|
2426
|
+
orangeDark75: deepSaffron$2.darken75,
|
|
2427
|
+
orangeLight30: deepSaffron$2.lighten30,
|
|
2428
|
+
orangeLight75: deepSaffron$2.lighten75,
|
|
2429
|
+
orangeLight90: deepSaffron$2.lighten90,
|
|
2430
|
+
pink: pink$1.base,
|
|
2431
|
+
pinkDark15: pink$1.darken15,
|
|
2432
|
+
pinkDark30: pink$1.darken30,
|
|
2433
|
+
pinkDark45: pink$1.darken45,
|
|
2434
|
+
pinkDark75: pink$1.darken75,
|
|
2435
|
+
pinkLight30: pink$1.lighten30,
|
|
2436
|
+
pinkLight45: pink$1.lighten45,
|
|
2437
|
+
pinkLight75: pink$1.lighten75,
|
|
2438
|
+
pinkLight90: pink$1.lighten90,
|
|
2439
|
+
purple: purple$1.base,
|
|
2440
|
+
purpleDark15: purple$1.darken15,
|
|
2441
|
+
red: vermilion$2.base,
|
|
2442
|
+
redDark15: vermilion$2.darken15,
|
|
2443
|
+
redDark30: vermilion$2.darken30,
|
|
2444
|
+
redDark75: vermilion$2.darken75,
|
|
2445
|
+
redLight15: vermilion$2.lighten15,
|
|
2446
|
+
redLight30: vermilion$2.lighten30,
|
|
2447
|
+
redLight60: vermilion$2.lighten60,
|
|
2448
|
+
redLight75: vermilion$2.lighten75,
|
|
2449
|
+
redLight90: vermilion$2.lighten90,
|
|
2450
|
+
smalt: smalt.base,
|
|
2451
|
+
smaltDark75: smalt.darken75,
|
|
2452
|
+
smaltLight30: smalt.lighten30,
|
|
2453
|
+
smaltLight45: smalt.lighten45,
|
|
2454
|
+
smaltLight75: smalt.lighten75,
|
|
2455
|
+
smaltLight90: smalt.lighten90,
|
|
2456
|
+
violet: violet$1.base,
|
|
2457
|
+
violetDark15: violet$1.darken15,
|
|
2458
|
+
violetDark30: violet$1.darken30,
|
|
2459
|
+
violetDark45: violet$1.darken45,
|
|
2460
|
+
violetDark75: violet$1.darken75,
|
|
2461
|
+
violetLight30: violet$1.lighten30,
|
|
2462
|
+
violetLight60: violet$1.lighten60,
|
|
2463
|
+
violetLight75: violet$1.lighten75,
|
|
2464
|
+
violetLight90: violet$1.lighten90,
|
|
2465
|
+
yellow: yellow$1.base,
|
|
2466
|
+
yellowDark15: yellow$1.darken15,
|
|
2467
|
+
yellowDark75: yellow$1.darken75,
|
|
2468
|
+
yellowLight60: yellow$1.lighten60,
|
|
2469
|
+
yellowLight90: yellow$1.lighten90
|
|
2470
|
+
};
|
|
2471
|
+
var maasstrichtBlue = colorScales.maasstrichtBlue,
|
|
2472
|
+
grey$1 = colorScales.grey,
|
|
2473
|
+
pastelRed$1 = colorScales.pastelRed,
|
|
2474
|
+
mellowApricot = colorScales.mellowApricot,
|
|
2475
|
+
emerald$1 = colorScales.emerald,
|
|
2476
|
+
vodka = colorScales.vodka,
|
|
2477
|
+
vermilion$1 = colorScales.vermilion,
|
|
2478
|
+
deepSaffron$1 = colorScales.deepSaffron,
|
|
2479
|
+
pineGreen = colorScales.pineGreen,
|
|
2480
|
+
ultramarineBlue = colorScales.ultramarineBlue,
|
|
2481
|
+
sonicSilver = colorScales.sonicSilver,
|
|
2482
|
+
linen$1 = colorScales.linen,
|
|
2483
|
+
seashell$1 = colorScales.seashell,
|
|
2484
|
+
honeydew$1 = colorScales.honeydew,
|
|
2485
|
+
aliceBlue = colorScales.aliceBlue,
|
|
2486
|
+
antiFlashWhite = colorScales.antiFlashWhite,
|
|
2487
|
+
apple$1 = colorScales.apple;
|
|
2488
|
+
var palette$5 = {
|
|
2489
|
+
black: '#000000',
|
|
2490
|
+
white: '#ffffff',
|
|
2491
|
+
greyLight95: grey$1.lighten95,
|
|
2492
|
+
greyLight90: grey$1.lighten90,
|
|
2493
|
+
greyLight75: grey$1.lighten75,
|
|
2494
|
+
greyLight45: grey$1.lighten45,
|
|
2495
|
+
greyLight30: grey$1.lighten30,
|
|
2496
|
+
grey: grey$1.base,
|
|
2497
|
+
maasstrichtBlueLight90: maasstrichtBlue.lighten90,
|
|
2498
|
+
maasstrichtBlueLight80: maasstrichtBlue.lighten80,
|
|
2499
|
+
maasstrichtBlueLight50: maasstrichtBlue.lighten50,
|
|
2500
|
+
maasstrichtBlueLight30: maasstrichtBlue.lighten30,
|
|
2501
|
+
maasstrichtBlue: maasstrichtBlue.base,
|
|
2502
|
+
pastelRed: pastelRed$1.base,
|
|
2503
|
+
mellowApricot: mellowApricot.base,
|
|
2504
|
+
emerald: emerald$1.base,
|
|
2505
|
+
vodka: vodka.base,
|
|
2506
|
+
vermilion: vermilion$1.base,
|
|
2507
|
+
deepSaffron: deepSaffron$1.base,
|
|
2508
|
+
pineGreen: pineGreen.base,
|
|
2509
|
+
ultramarineBlue: ultramarineBlue.base,
|
|
2510
|
+
sonicSilver: sonicSilver.base,
|
|
2511
|
+
linen: linen$1.base,
|
|
2512
|
+
seashell: seashell$1.base,
|
|
2513
|
+
honeydew: honeydew$1.base,
|
|
2514
|
+
aliceBlue: aliceBlue.base,
|
|
2515
|
+
antiFlashWhite: antiFlashWhite.base,
|
|
2516
|
+
apple: apple$1.base
|
|
2517
|
+
};
|
|
2518
|
+
var emerald = colorScales.emerald,
|
|
2519
|
+
blue1 = colorScales.blue1,
|
|
2520
|
+
nightBlue = colorScales.nightBlue,
|
|
2521
|
+
darkBlue = colorScales.darkBlue,
|
|
2522
|
+
grey$3 = colorScales.grey,
|
|
2523
|
+
deepSaffron = colorScales.deepSaffron,
|
|
2524
|
+
peach = colorScales.peach,
|
|
2525
|
+
vermilion = colorScales.vermilion,
|
|
2526
|
+
pastelRed = colorScales.pastelRed,
|
|
2527
|
+
mauve = colorScales.mauve;
|
|
2528
|
+
|
|
2529
|
+
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2530
|
+
nightBlue: nightBlue.base,
|
|
2531
|
+
blueLight60: blue1.lighten60,
|
|
2532
|
+
blue: blue1.base,
|
|
2533
|
+
darkBlue: darkBlue.base,
|
|
2534
|
+
darkBlueDark15: darkBlue.darken15,
|
|
2535
|
+
green: emerald.base,
|
|
2536
|
+
greyDark45: grey$3.darken45,
|
|
2537
|
+
greyDark75: grey$3.darken75,
|
|
2538
|
+
greyLight30: grey$3.lighten30,
|
|
2539
|
+
greyLight45: grey$3.lighten45,
|
|
2540
|
+
greyLight90: grey$3.lighten90,
|
|
2541
|
+
orangeLight30: deepSaffron.lighten30,
|
|
2542
|
+
peach: peach.base,
|
|
2543
|
+
peachLight75: peach.lighten75,
|
|
2544
|
+
red: vermilion.base,
|
|
2545
|
+
pastelRed: pastelRed.base,
|
|
2546
|
+
mauve: mauve.base
|
|
2547
|
+
});
|
|
2548
|
+
|
|
2549
|
+
var apple = colorScales.apple,
|
|
2550
|
+
currant = colorScales.currant;
|
|
2551
|
+
|
|
2552
|
+
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2553
|
+
apple: apple.base,
|
|
2554
|
+
currant: currant.base
|
|
2555
|
+
});
|
|
2556
|
+
|
|
2557
|
+
var scarletGum = colorScales.scarletGum,
|
|
2558
|
+
violet1 = colorScales.violet1;
|
|
2559
|
+
|
|
2560
|
+
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2561
|
+
scarletGumLight30: scarletGum.lighten30,
|
|
2562
|
+
scarletGumLight50: scarletGum.lighten50,
|
|
2563
|
+
scarletGumLight80: scarletGum.lighten80,
|
|
2564
|
+
scarletGumLight90: scarletGum.lighten90,
|
|
2565
|
+
scarletGum: scarletGum.base,
|
|
2566
|
+
violetLight30: violet1.lighten30,
|
|
2567
|
+
violetLight50: violet1.lighten50,
|
|
2568
|
+
violetLight80: violet1.lighten80,
|
|
2569
|
+
violetLight90: violet1.lighten90,
|
|
2570
|
+
violet: violet1.base
|
|
2571
|
+
});
|
|
2572
|
+
|
|
2573
|
+
var jordyBlue = colorScales.jordyBlue,
|
|
2574
|
+
cornflowerBlue = colorScales.cornflowerBlue,
|
|
2575
|
+
paua = colorScales.paua;
|
|
2576
|
+
|
|
2577
|
+
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2578
|
+
jordyBlueLight30: jordyBlue.lighten30,
|
|
2579
|
+
jordyBlueLight50: jordyBlue.lighten50,
|
|
2580
|
+
jordyBlueLight70: jordyBlue.lighten70,
|
|
2581
|
+
jordyBlueLight90: jordyBlue.lighten90,
|
|
2582
|
+
jordyBlue: jordyBlue.base,
|
|
2583
|
+
cornflowerBlue: cornflowerBlue.base,
|
|
2584
|
+
paua: paua.base
|
|
2585
|
+
});
|
|
2586
|
+
|
|
2587
|
+
var gold$1 = colorScales.gold;
|
|
2588
|
+
|
|
2589
|
+
_objectSpread2(_objectSpread2({}, palette$5), {}, {
|
|
2590
|
+
goldLight20: gold$1.lighten20,
|
|
2591
|
+
goldLight50: gold$1.lighten50,
|
|
2592
|
+
goldLight70: gold$1.lighten70,
|
|
2593
|
+
goldLight90: gold$1.lighten90,
|
|
2594
|
+
gold: gold$1.base
|
|
2595
|
+
});
|
|
1696
2596
|
|
|
1697
2597
|
var systemPalette = {
|
|
1698
|
-
primary: palette.violet,
|
|
1699
|
-
primaryLight: palette.violetLight60,
|
|
1700
|
-
primaryDark: palette.purpleDark15,
|
|
1701
|
-
primaryBackground: palette.violetLight90,
|
|
1702
|
-
secondary: palette.dodgerBlue,
|
|
1703
|
-
secondaryLight: palette.dodgerBlueLight75,
|
|
1704
|
-
info: palette.dodgerBlue,
|
|
1705
|
-
infoMediumLight: palette.
|
|
1706
|
-
infoLight: palette.dodgerBlueLight75,
|
|
1707
|
-
infoBackground: palette.dodgerBlueLight90,
|
|
1708
|
-
success: palette.green,
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
2598
|
+
primary: palette$6.violet,
|
|
2599
|
+
primaryLight: palette$6.violetLight60,
|
|
2600
|
+
primaryDark: palette$6.purpleDark15,
|
|
2601
|
+
primaryBackground: palette$6.violetLight90,
|
|
2602
|
+
secondary: palette$6.dodgerBlue,
|
|
2603
|
+
secondaryLight: palette$6.dodgerBlueLight75,
|
|
2604
|
+
info: palette$6.dodgerBlue,
|
|
2605
|
+
infoMediumLight: palette$5.vodka,
|
|
2606
|
+
infoLight: palette$6.dodgerBlueLight75,
|
|
2607
|
+
infoBackground: palette$6.dodgerBlueLight90,
|
|
2608
|
+
success: palette$6.green,
|
|
2609
|
+
successLight: palette$5.emerald,
|
|
2610
|
+
successDark: palette$6.greenDark30,
|
|
2611
|
+
successBackground: palette$6.grotesqueGreenLight90,
|
|
2612
|
+
danger: palette$6.red,
|
|
2613
|
+
dangerMediumLight: palette$5.apple,
|
|
2614
|
+
dangerLight: palette$6.redLight60,
|
|
2615
|
+
dangerBackground: palette$6.redLight90,
|
|
2616
|
+
warning: palette$6.orange,
|
|
2617
|
+
warningLight: palette$5.mellowApricot,
|
|
2618
|
+
warningDark: palette$6.orangeDark15,
|
|
2619
|
+
warningBackground: palette$6.orangeLight90,
|
|
2620
|
+
platformBackground: palette$6.white,
|
|
2621
|
+
backgroundLight: palette$6.greyLight95,
|
|
2622
|
+
backgroundDark: palette$6.greyDark75,
|
|
2623
|
+
text: palette$6.greyDark75,
|
|
2624
|
+
disabledText: palette$6.greyDark15,
|
|
2625
|
+
disabledLightText: palette$6.greyLight45,
|
|
2626
|
+
invertedText: palette$6.white,
|
|
2627
|
+
outline: palette$6.greyLight60,
|
|
2628
|
+
archivedDark: palette$5.greyLight30,
|
|
2629
|
+
archived: palette$6.greyLight45,
|
|
2630
|
+
black: palette$6.black,
|
|
2631
|
+
inactiveBackground: palette$6.greyDark30,
|
|
2632
|
+
shadow: palette$6.greyLight60
|
|
1728
2633
|
};
|
|
1729
2634
|
|
|
1730
2635
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -1801,6 +2706,7 @@ var getSpace = function getSpace(baseSpace) {
|
|
|
1801
2706
|
xxsmall: scale(baseSpace * 0.25),
|
|
1802
2707
|
xsmall: scale(baseSpace * 0.5),
|
|
1803
2708
|
small: scale(baseSpace),
|
|
2709
|
+
smallMedium: scale(baseSpace) * 1.5,
|
|
1804
2710
|
medium: scale(baseSpace * 2),
|
|
1805
2711
|
large: scale(baseSpace * 3),
|
|
1806
2712
|
xlarge: scale(baseSpace * 4),
|
|
@@ -2038,6 +2944,8 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2038
2944
|
pressedPrimary: theme.colors.primaryLight,
|
|
2039
2945
|
secondary: theme.colors.secondary,
|
|
2040
2946
|
pressedSecondary: theme.colors.secondaryLight,
|
|
2947
|
+
danger: theme.colors.danger,
|
|
2948
|
+
pressedDanger: theme.colors.dangerLight,
|
|
2041
2949
|
defaultText: theme.colors.text,
|
|
2042
2950
|
disabledText: theme.colors.disabledLightText,
|
|
2043
2951
|
disabledBorder: theme.colors.disabledLightText,
|
|
@@ -2058,13 +2966,24 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
2058
2966
|
|
|
2059
2967
|
var getCardTheme = function getCardTheme(theme) {
|
|
2060
2968
|
var colors = {
|
|
2061
|
-
dataCardIndicator: theme.colors.primaryDark
|
|
2969
|
+
dataCardIndicator: theme.colors.primaryDark,
|
|
2970
|
+
indicator: {
|
|
2971
|
+
archived: theme.colors.archivedDark,
|
|
2972
|
+
info: theme.colors.infoMediumLight,
|
|
2973
|
+
success: theme.colors.successLight,
|
|
2974
|
+
warning: theme.colors.warningLight,
|
|
2975
|
+
danger: theme.colors.dangerMediumLight
|
|
2976
|
+
}
|
|
2977
|
+
};
|
|
2978
|
+
var sizes = {
|
|
2979
|
+
indicatorWidth: theme.space.medium
|
|
2062
2980
|
};
|
|
2063
2981
|
var radii = {
|
|
2064
|
-
"default":
|
|
2982
|
+
"default": theme.radii.large
|
|
2065
2983
|
};
|
|
2066
2984
|
return {
|
|
2067
2985
|
colors: colors,
|
|
2986
|
+
sizes: sizes,
|
|
2068
2987
|
radii: radii
|
|
2069
2988
|
};
|
|
2070
2989
|
};
|
|
@@ -2220,7 +3139,8 @@ var getIconTheme = function getIconTheme(theme) {
|
|
|
2220
3139
|
danger: theme.colors.danger,
|
|
2221
3140
|
success: theme.colors.success,
|
|
2222
3141
|
warning: theme.colors.warning,
|
|
2223
|
-
disabledText: theme.colors.disabledText
|
|
3142
|
+
disabledText: theme.colors.disabledText,
|
|
3143
|
+
invertedText: theme.colors.invertedText
|
|
2224
3144
|
};
|
|
2225
3145
|
var sizes = {
|
|
2226
3146
|
xsmall: theme.fontSizes.large,
|
|
@@ -2517,11 +3437,40 @@ var getToastTheme = function getToastTheme(theme) {
|
|
|
2517
3437
|
};
|
|
2518
3438
|
};
|
|
2519
3439
|
|
|
3440
|
+
var getToolbarTheme = function getToolbarTheme(theme) {
|
|
3441
|
+
var colors = {
|
|
3442
|
+
background: theme.colors.platformBackground,
|
|
3443
|
+
border: theme.colors.outline,
|
|
3444
|
+
primary: theme.colors.primary,
|
|
3445
|
+
info: theme.colors.info,
|
|
3446
|
+
success: theme.colors.success,
|
|
3447
|
+
danger: theme.colors.warning,
|
|
3448
|
+
error: theme.colors.danger,
|
|
3449
|
+
disabled: theme.colors.disabledText
|
|
3450
|
+
};
|
|
3451
|
+
var space = {
|
|
3452
|
+
verticalPadding: theme.space.small,
|
|
3453
|
+
horizontalPadding: theme.space.smallMedium
|
|
3454
|
+
};
|
|
3455
|
+
var borderWidths = {
|
|
3456
|
+
"default": theme.borderWidths.base
|
|
3457
|
+
};
|
|
3458
|
+
return {
|
|
3459
|
+
colors: colors,
|
|
3460
|
+
space: space,
|
|
3461
|
+
borderWidths: borderWidths
|
|
3462
|
+
};
|
|
3463
|
+
};
|
|
3464
|
+
|
|
2520
3465
|
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2521
3466
|
var colors = {
|
|
2522
3467
|
body: theme.colors.text,
|
|
2523
3468
|
subdued: theme.colors.disabledText,
|
|
2524
|
-
primary: theme.colors.primary
|
|
3469
|
+
primary: theme.colors.primary,
|
|
3470
|
+
info: theme.colors.info,
|
|
3471
|
+
danger: theme.colors.danger,
|
|
3472
|
+
warning: theme.colors.warning,
|
|
3473
|
+
success: theme.colors.success
|
|
2525
3474
|
};
|
|
2526
3475
|
var fonts = {
|
|
2527
3476
|
light: theme.fonts.light,
|
|
@@ -2548,6 +3497,53 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
2548
3497
|
};
|
|
2549
3498
|
};
|
|
2550
3499
|
|
|
3500
|
+
var getListTheme = function getListTheme(theme) {
|
|
3501
|
+
var colors = {
|
|
3502
|
+
checkedListItemContainerBackground: theme.colors.primaryBackground,
|
|
3503
|
+
listItemContainerBackground: theme.colors.platformBackground,
|
|
3504
|
+
leadingStatus: {
|
|
3505
|
+
danger: theme.colors.danger,
|
|
3506
|
+
info: theme.colors.infoLight,
|
|
3507
|
+
success: theme.colors.successDark,
|
|
3508
|
+
warning: theme.colors.warningLight,
|
|
3509
|
+
archived: theme.colors.archived
|
|
3510
|
+
}
|
|
3511
|
+
};
|
|
3512
|
+
var space = {
|
|
3513
|
+
listItemContainerPadding: theme.space.medium,
|
|
3514
|
+
leadingStatusMarginRight: theme.space.small,
|
|
3515
|
+
prefixContainerMarginRight: theme.space.small,
|
|
3516
|
+
suffixContainerMarginLeft: theme.space.small
|
|
3517
|
+
};
|
|
3518
|
+
var radii = {
|
|
3519
|
+
card: theme.radii.medium,
|
|
3520
|
+
cardShadow: theme.radii.base,
|
|
3521
|
+
leadingStatus: theme.radii.rounded
|
|
3522
|
+
};
|
|
3523
|
+
var offsets = {
|
|
3524
|
+
cardShadow: {
|
|
3525
|
+
width: 0,
|
|
3526
|
+
height: 2
|
|
3527
|
+
}
|
|
3528
|
+
};
|
|
3529
|
+
var widths = {
|
|
3530
|
+
leadingStatus: 8
|
|
3531
|
+
};
|
|
3532
|
+
var opacity = {
|
|
3533
|
+
disabled: 0.38,
|
|
3534
|
+
enabled: 1,
|
|
3535
|
+
cardShadow: 1
|
|
3536
|
+
};
|
|
3537
|
+
return {
|
|
3538
|
+
colors: colors,
|
|
3539
|
+
space: space,
|
|
3540
|
+
radii: radii,
|
|
3541
|
+
offsets: offsets,
|
|
3542
|
+
widths: widths,
|
|
3543
|
+
opacity: opacity
|
|
3544
|
+
};
|
|
3545
|
+
};
|
|
3546
|
+
|
|
2551
3547
|
var getTheme = function getTheme() {
|
|
2552
3548
|
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
2553
3549
|
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
|
|
@@ -2577,7 +3573,9 @@ var getTheme = function getTheme() {
|
|
|
2577
3573
|
tag: getTagTheme(globalTheme),
|
|
2578
3574
|
textInput: getTextInputTheme(globalTheme),
|
|
2579
3575
|
toast: getToastTheme(globalTheme),
|
|
2580
|
-
|
|
3576
|
+
toolbar: getToolbarTheme(globalTheme),
|
|
3577
|
+
typography: getTypographyTheme(globalTheme),
|
|
3578
|
+
list: getListTheme(globalTheme)
|
|
2581
3579
|
}
|
|
2582
3580
|
});
|
|
2583
3581
|
};
|
|
@@ -6469,7 +7467,7 @@ var getDisplayName = function getDisplayName(primitive) {
|
|
|
6469
7467
|
|
|
6470
7468
|
var styled = createStyled(StyleSheet$1);
|
|
6471
7469
|
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'];
|
|
6472
|
-
var index$
|
|
7470
|
+
var index$5 = components.reduce(function (acc, comp) {
|
|
6473
7471
|
return Object.defineProperty(acc, comp, {
|
|
6474
7472
|
enumerable: true,
|
|
6475
7473
|
configurable: false,
|
|
@@ -14406,9 +15404,10 @@ var COLOR_INTENTS = {
|
|
|
14406
15404
|
danger: 'danger',
|
|
14407
15405
|
success: 'success',
|
|
14408
15406
|
warning: 'warning',
|
|
14409
|
-
'disabled-text': 'disabledText'
|
|
15407
|
+
'disabled-text': 'disabledText',
|
|
15408
|
+
'text-inverted': 'invertedText'
|
|
14410
15409
|
};
|
|
14411
|
-
var StyledHeroIcon = index$
|
|
15410
|
+
var StyledHeroIcon = index$5(HeroIcon)(function (_ref) {
|
|
14412
15411
|
var themeIntent = _ref.themeIntent,
|
|
14413
15412
|
themeSize = _ref.themeSize,
|
|
14414
15413
|
theme = _ref.theme;
|
|
@@ -14440,7 +15439,7 @@ var FONTWEIGHT_MAP = {
|
|
|
14440
15439
|
regular: 'regular',
|
|
14441
15440
|
'semi-bold': 'semiBold'
|
|
14442
15441
|
};
|
|
14443
|
-
var StyledText$3 = index$
|
|
15442
|
+
var StyledText$3 = index$5(Text$1)(function (_ref) {
|
|
14444
15443
|
var themeFontSize = _ref.themeFontSize,
|
|
14445
15444
|
themeFontWeight = _ref.themeFontWeight,
|
|
14446
15445
|
themeIntent = _ref.themeIntent,
|
|
@@ -14456,7 +15455,7 @@ var StyledText$3 = index$2(Text$1)(function (_ref) {
|
|
|
14456
15455
|
});
|
|
14457
15456
|
});
|
|
14458
15457
|
|
|
14459
|
-
var _excluded$
|
|
15458
|
+
var _excluded$d = ["children", "fontSize", "fontWeight", "intent"];
|
|
14460
15459
|
|
|
14461
15460
|
var Text = function Text(_ref) {
|
|
14462
15461
|
var children = _ref.children,
|
|
@@ -14466,7 +15465,7 @@ var Text = function Text(_ref) {
|
|
|
14466
15465
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
14467
15466
|
_ref$intent = _ref.intent,
|
|
14468
15467
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
14469
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
15468
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$d);
|
|
14470
15469
|
|
|
14471
15470
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$3({}, nativeProps, {
|
|
14472
15471
|
themeFontSize: fontSize,
|
|
@@ -14479,7 +15478,7 @@ var Typography = {
|
|
|
14479
15478
|
Text: Text
|
|
14480
15479
|
};
|
|
14481
15480
|
|
|
14482
|
-
var Container$2 = index$
|
|
15481
|
+
var Container$2 = index$5(View)(function (_ref) {
|
|
14483
15482
|
var theme = _ref.theme,
|
|
14484
15483
|
_ref$themeVariant = _ref.themeVariant,
|
|
14485
15484
|
themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
|
|
@@ -14491,21 +15490,21 @@ var Container$2 = index$2(View)(function (_ref) {
|
|
|
14491
15490
|
flexDirection: 'row'
|
|
14492
15491
|
};
|
|
14493
15492
|
});
|
|
14494
|
-
var IconContainer$1 = index$
|
|
15493
|
+
var IconContainer$1 = index$5(View)(function (_ref2) {
|
|
14495
15494
|
var theme = _ref2.theme;
|
|
14496
15495
|
return {
|
|
14497
15496
|
alignItems: 'center',
|
|
14498
15497
|
paddingLeft: theme.__hd__.alert.space.padding
|
|
14499
15498
|
};
|
|
14500
15499
|
});
|
|
14501
|
-
var TextContainer$1 = index$
|
|
15500
|
+
var TextContainer$1 = index$5(View)(function (_ref3) {
|
|
14502
15501
|
var theme = _ref3.theme;
|
|
14503
15502
|
return {
|
|
14504
15503
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
14505
15504
|
flex: 1
|
|
14506
15505
|
};
|
|
14507
15506
|
});
|
|
14508
|
-
var ContentContainer$1 = index$
|
|
15507
|
+
var ContentContainer$1 = index$5(View)(function (_ref4) {
|
|
14509
15508
|
var theme = _ref4.theme,
|
|
14510
15509
|
showDivider = _ref4.showDivider;
|
|
14511
15510
|
return {
|
|
@@ -14516,7 +15515,7 @@ var ContentContainer$1 = index$2(View)(function (_ref4) {
|
|
|
14516
15515
|
flexDirection: 'row'
|
|
14517
15516
|
};
|
|
14518
15517
|
});
|
|
14519
|
-
var CTAWrapper$1 = index$
|
|
15518
|
+
var CTAWrapper$1 = index$5(TouchableOpacity)(function (_ref5) {
|
|
14520
15519
|
var theme = _ref5.theme;
|
|
14521
15520
|
return {
|
|
14522
15521
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
@@ -14574,7 +15573,7 @@ var Alert = function Alert(_ref) {
|
|
|
14574
15573
|
})) : null);
|
|
14575
15574
|
};
|
|
14576
15575
|
|
|
14577
|
-
var StyledPressable = index$
|
|
15576
|
+
var StyledPressable = index$5(TouchableOpacity)(function (_ref) {
|
|
14578
15577
|
var themeSize = _ref.themeSize,
|
|
14579
15578
|
themeIntent = _ref.themeIntent,
|
|
14580
15579
|
theme = _ref.theme;
|
|
@@ -14587,7 +15586,7 @@ var StyledPressable = index$2(TouchableOpacity)(function (_ref) {
|
|
|
14587
15586
|
overflow: 'hidden'
|
|
14588
15587
|
};
|
|
14589
15588
|
});
|
|
14590
|
-
var StyledView$3 = index$
|
|
15589
|
+
var StyledView$3 = index$5(View)(function (_ref2) {
|
|
14591
15590
|
var themeSize = _ref2.themeSize,
|
|
14592
15591
|
themeIntent = _ref2.themeIntent,
|
|
14593
15592
|
theme = _ref2.theme;
|
|
@@ -14600,7 +15599,7 @@ var StyledView$3 = index$2(View)(function (_ref2) {
|
|
|
14600
15599
|
overflow: 'hidden'
|
|
14601
15600
|
};
|
|
14602
15601
|
});
|
|
14603
|
-
var StyledTextWrapper = index$
|
|
15602
|
+
var StyledTextWrapper = index$5(View)(function () {
|
|
14604
15603
|
return {
|
|
14605
15604
|
alignItems: 'center',
|
|
14606
15605
|
justifyContent: 'center',
|
|
@@ -14609,7 +15608,7 @@ var StyledTextWrapper = index$2(View)(function () {
|
|
|
14609
15608
|
height: '100%'
|
|
14610
15609
|
};
|
|
14611
15610
|
});
|
|
14612
|
-
var StyledText$2 = index$
|
|
15611
|
+
var StyledText$2 = index$5(Text$1)(function (_ref3) {
|
|
14613
15612
|
var themeSize = _ref3.themeSize,
|
|
14614
15613
|
themeIntent = _ref3.themeIntent,
|
|
14615
15614
|
theme = _ref3.theme;
|
|
@@ -14619,7 +15618,7 @@ var StyledText$2 = index$2(Text$1)(function (_ref3) {
|
|
|
14619
15618
|
overflow: 'hidden'
|
|
14620
15619
|
};
|
|
14621
15620
|
});
|
|
14622
|
-
var StyledImage = index$
|
|
15621
|
+
var StyledImage = index$5(Image)(function (_ref4) {
|
|
14623
15622
|
var themeSize = _ref4.themeSize,
|
|
14624
15623
|
theme = _ref4.theme;
|
|
14625
15624
|
return {
|
|
@@ -14655,7 +15654,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14655
15654
|
})) : null;
|
|
14656
15655
|
};
|
|
14657
15656
|
|
|
14658
|
-
var StyledView$2 = index$
|
|
15657
|
+
var StyledView$2 = index$5(Animated.View)(function (_ref) {
|
|
14659
15658
|
var themeIntent = _ref.themeIntent,
|
|
14660
15659
|
themePadding = _ref.themePadding,
|
|
14661
15660
|
theme = _ref.theme;
|
|
@@ -14669,7 +15668,7 @@ var StyledView$2 = index$2(Animated.View)(function (_ref) {
|
|
|
14669
15668
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
14670
15669
|
};
|
|
14671
15670
|
});
|
|
14672
|
-
var StyledText$1 = index$
|
|
15671
|
+
var StyledText$1 = index$5(Text$1)(function (_ref2) {
|
|
14673
15672
|
var theme = _ref2.theme;
|
|
14674
15673
|
return {
|
|
14675
15674
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
@@ -14680,7 +15679,7 @@ var StyledText$1 = index$2(Text$1)(function (_ref2) {
|
|
|
14680
15679
|
textAlign: 'center'
|
|
14681
15680
|
};
|
|
14682
15681
|
});
|
|
14683
|
-
var StyledStatus = index$
|
|
15682
|
+
var StyledStatus = index$5(Animated.View)(function (_ref3) {
|
|
14684
15683
|
var themeIntent = _ref3.themeIntent,
|
|
14685
15684
|
theme = _ref3.theme;
|
|
14686
15685
|
return {
|
|
@@ -14694,7 +15693,7 @@ var StyledStatus = index$2(Animated.View)(function (_ref3) {
|
|
|
14694
15693
|
};
|
|
14695
15694
|
});
|
|
14696
15695
|
|
|
14697
|
-
var _excluded$
|
|
15696
|
+
var _excluded$c = ["children", "visible", "intent", "style", "testID"];
|
|
14698
15697
|
|
|
14699
15698
|
var Status = function Status(_ref) {
|
|
14700
15699
|
var children = _ref.children,
|
|
@@ -14704,7 +15703,7 @@ var Status = function Status(_ref) {
|
|
|
14704
15703
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14705
15704
|
style = _ref.style,
|
|
14706
15705
|
testID = _ref.testID,
|
|
14707
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
15706
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$c);
|
|
14708
15707
|
|
|
14709
15708
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
14710
15709
|
opacity = _React$useRef.current;
|
|
@@ -14740,7 +15739,7 @@ var Status = function Status(_ref) {
|
|
|
14740
15739
|
}));
|
|
14741
15740
|
};
|
|
14742
15741
|
|
|
14743
|
-
var _excluded$
|
|
15742
|
+
var _excluded$b = ["content", "visible", "max", "intent", "style", "testID"];
|
|
14744
15743
|
var DEFAULT_MAX_NUMBER = 99;
|
|
14745
15744
|
|
|
14746
15745
|
var getPaddingState = function getPaddingState(content) {
|
|
@@ -14757,7 +15756,7 @@ var Badge = function Badge(_ref) {
|
|
|
14757
15756
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14758
15757
|
style = _ref.style,
|
|
14759
15758
|
testID = _ref.testID,
|
|
14760
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
15759
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$b);
|
|
14761
15760
|
|
|
14762
15761
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
14763
15762
|
opacity = _React$useRef.current;
|
|
@@ -14803,21 +15802,21 @@ var isHeroIcon = function isHeroIcon(x) {
|
|
|
14803
15802
|
return IconList.includes(x);
|
|
14804
15803
|
};
|
|
14805
15804
|
|
|
14806
|
-
var BottomNavigationTab = index$
|
|
15805
|
+
var BottomNavigationTab = index$5(View)(function (_ref) {
|
|
14807
15806
|
var themeVisibility = _ref.themeVisibility;
|
|
14808
15807
|
return {
|
|
14809
15808
|
flex: 1,
|
|
14810
15809
|
display: themeVisibility === false ? 'none' : 'flex'
|
|
14811
15810
|
};
|
|
14812
15811
|
});
|
|
14813
|
-
var BottomNavigationContainer = index$
|
|
15812
|
+
var BottomNavigationContainer = index$5(View)({
|
|
14814
15813
|
flex: 1,
|
|
14815
15814
|
overflow: 'hidden'
|
|
14816
15815
|
});
|
|
14817
|
-
var ContentWrapper$2 = index$
|
|
15816
|
+
var ContentWrapper$2 = index$5(View)({
|
|
14818
15817
|
flex: 1
|
|
14819
15818
|
});
|
|
14820
|
-
var BottomBarWrapper = index$
|
|
15819
|
+
var BottomBarWrapper = index$5(View)(function (_ref2) {
|
|
14821
15820
|
var themeInsets = _ref2.themeInsets,
|
|
14822
15821
|
theme = _ref2.theme;
|
|
14823
15822
|
return {
|
|
@@ -14833,17 +15832,17 @@ var BottomBarWrapper = index$2(View)(function (_ref2) {
|
|
|
14833
15832
|
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
14834
15833
|
};
|
|
14835
15834
|
});
|
|
14836
|
-
var BottomBar = index$
|
|
15835
|
+
var BottomBar = index$5(View)({
|
|
14837
15836
|
flex: 1,
|
|
14838
15837
|
flexDirection: 'row',
|
|
14839
15838
|
overflow: 'hidden',
|
|
14840
15839
|
alignItems: 'center'
|
|
14841
15840
|
});
|
|
14842
|
-
var BottomBarItem = index$
|
|
15841
|
+
var BottomBarItem = index$5(View)({
|
|
14843
15842
|
flex: 1,
|
|
14844
15843
|
alignItems: 'center'
|
|
14845
15844
|
});
|
|
14846
|
-
var StyledBottomBarText = index$
|
|
15845
|
+
var StyledBottomBarText = index$5(Typography.Text)(function (_ref3) {
|
|
14847
15846
|
var theme = _ref3.theme;
|
|
14848
15847
|
return {
|
|
14849
15848
|
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop
|
|
@@ -14853,7 +15852,7 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
|
|
|
14853
15852
|
var isIOS = Platform.OS === 'ios';
|
|
14854
15853
|
Platform.OS === 'android';
|
|
14855
15854
|
|
|
14856
|
-
var _excluded$
|
|
15855
|
+
var _excluded$a = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
14857
15856
|
|
|
14858
15857
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
14859
15858
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
@@ -14866,7 +15865,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14866
15865
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
14867
15866
|
selectedTabKey = _ref.selectedTabKey,
|
|
14868
15867
|
tabs = _ref.tabs,
|
|
14869
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
15868
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$a);
|
|
14870
15869
|
|
|
14871
15870
|
var insets = useSafeAreaInsets();
|
|
14872
15871
|
/**
|
|
@@ -14940,7 +15939,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14940
15939
|
}))));
|
|
14941
15940
|
};
|
|
14942
15941
|
|
|
14943
|
-
var StyledDivider = index$
|
|
15942
|
+
var StyledDivider = index$5(View)(function (_ref) {
|
|
14944
15943
|
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
14945
15944
|
themeMarginVertical = _ref.themeMarginVertical,
|
|
14946
15945
|
theme = _ref.theme;
|
|
@@ -14957,14 +15956,14 @@ var StyledDivider = index$2(View)(function (_ref) {
|
|
|
14957
15956
|
}, horizontalMargin), verticalMargin);
|
|
14958
15957
|
});
|
|
14959
15958
|
|
|
14960
|
-
var _excluded$
|
|
15959
|
+
var _excluded$9 = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
14961
15960
|
|
|
14962
15961
|
var Divider = function Divider(_ref) {
|
|
14963
15962
|
var marginHorizontal = _ref.marginHorizontal,
|
|
14964
15963
|
marginVertical = _ref.marginVertical,
|
|
14965
15964
|
style = _ref.style,
|
|
14966
15965
|
testID = _ref.testID,
|
|
14967
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded$
|
|
15966
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$9);
|
|
14968
15967
|
|
|
14969
15968
|
return /*#__PURE__*/React.createElement(StyledDivider, _extends$3({}, nativeProps, {
|
|
14970
15969
|
themeMarginHorizontal: marginHorizontal,
|
|
@@ -14975,10 +15974,10 @@ var Divider = function Divider(_ref) {
|
|
|
14975
15974
|
};
|
|
14976
15975
|
|
|
14977
15976
|
var AnimatedPressable$1 = Animated.createAnimatedComponent(Pressable);
|
|
14978
|
-
var StyledWrapper$5 = index$
|
|
15977
|
+
var StyledWrapper$5 = index$5(View)(_objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14979
15978
|
flexDirection: 'column-reverse'
|
|
14980
15979
|
}));
|
|
14981
|
-
var StyledBottomSheet = index$
|
|
15980
|
+
var StyledBottomSheet = index$5(Animated.View)(function (_ref) {
|
|
14982
15981
|
var theme = _ref.theme;
|
|
14983
15982
|
return {
|
|
14984
15983
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
@@ -14993,21 +15992,21 @@ var StyledBottomSheet = index$2(Animated.View)(function (_ref) {
|
|
|
14993
15992
|
maxHeight: '94%'
|
|
14994
15993
|
};
|
|
14995
15994
|
});
|
|
14996
|
-
var StyledBackdrop$2 = index$
|
|
15995
|
+
var StyledBackdrop$2 = index$5(AnimatedPressable$1)(function (_ref2) {
|
|
14997
15996
|
var theme = _ref2.theme;
|
|
14998
15997
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
14999
15998
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
15000
15999
|
opacity: 0.48
|
|
15001
16000
|
});
|
|
15002
16001
|
});
|
|
15003
|
-
var StyledHeaderWrapper = index$
|
|
16002
|
+
var StyledHeaderWrapper = index$5(View)(function (_ref3) {
|
|
15004
16003
|
var theme = _ref3.theme;
|
|
15005
16004
|
return {
|
|
15006
16005
|
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
15007
16006
|
flexDirection: 'row'
|
|
15008
16007
|
};
|
|
15009
16008
|
});
|
|
15010
|
-
var StyledHeader = index$
|
|
16009
|
+
var StyledHeader = index$5(View)(function (_ref4) {
|
|
15011
16010
|
var theme = _ref4.theme,
|
|
15012
16011
|
adjacentIcon = _ref4.adjacentIcon;
|
|
15013
16012
|
return {
|
|
@@ -15018,7 +16017,7 @@ var StyledHeader = index$2(View)(function (_ref4) {
|
|
|
15018
16017
|
justifyContent: 'center'
|
|
15019
16018
|
};
|
|
15020
16019
|
});
|
|
15021
|
-
var StyledFooter = index$
|
|
16020
|
+
var StyledFooter = index$5(View)(function (_ref5) {
|
|
15022
16021
|
var theme = _ref5.theme;
|
|
15023
16022
|
return {
|
|
15024
16023
|
paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
|
|
@@ -15029,7 +16028,7 @@ var StyledFooter = index$2(View)(function (_ref5) {
|
|
|
15029
16028
|
flexDirection: 'row'
|
|
15030
16029
|
};
|
|
15031
16030
|
});
|
|
15032
|
-
var StyledIconWrapper$1 = index$
|
|
16031
|
+
var StyledIconWrapper$1 = index$5(View)(function (_ref6) {
|
|
15033
16032
|
var theme = _ref6.theme;
|
|
15034
16033
|
return {
|
|
15035
16034
|
alignItems: 'center',
|
|
@@ -15050,7 +16049,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
|
|
|
15050
16049
|
};
|
|
15051
16050
|
};
|
|
15052
16051
|
|
|
15053
|
-
var StyledLoadingIndicatorWrapper = index$
|
|
16052
|
+
var StyledLoadingIndicatorWrapper = index$5(View)(function (_ref) {
|
|
15054
16053
|
var theme = _ref.theme;
|
|
15055
16054
|
return {
|
|
15056
16055
|
flexDirection: 'row',
|
|
@@ -15059,7 +16058,7 @@ var StyledLoadingIndicatorWrapper = index$2(View)(function (_ref) {
|
|
|
15059
16058
|
paddingVertical: theme.space.xxsmall
|
|
15060
16059
|
};
|
|
15061
16060
|
});
|
|
15062
|
-
var StyledLoadingDot = index$
|
|
16061
|
+
var StyledLoadingDot = index$5(View)(function (_ref2) {
|
|
15063
16062
|
var _ref2$size = _ref2.size,
|
|
15064
16063
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15065
16064
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15070,6 +16069,7 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
|
|
|
15070
16069
|
case 'basic-transparent':
|
|
15071
16070
|
case 'filled-primary':
|
|
15072
16071
|
case 'filled-secondary':
|
|
16072
|
+
case 'filled-danger':
|
|
15073
16073
|
return {
|
|
15074
16074
|
backgroundColor: theme.__hd__.button.colors.invertedText
|
|
15075
16075
|
};
|
|
@@ -15079,6 +16079,9 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
|
|
|
15079
16079
|
|
|
15080
16080
|
case 'outlined-secondary':
|
|
15081
16081
|
return genLoadingIndicatorStyles(theme, 'secondary');
|
|
16082
|
+
|
|
16083
|
+
case 'outlined-danger':
|
|
16084
|
+
return genLoadingIndicatorStyles(theme, 'danger');
|
|
15082
16085
|
}
|
|
15083
16086
|
};
|
|
15084
16087
|
|
|
@@ -15092,7 +16095,7 @@ var StyledLoadingDot = index$2(View)(function (_ref2) {
|
|
|
15092
16095
|
}, themeStyling());
|
|
15093
16096
|
});
|
|
15094
16097
|
|
|
15095
|
-
var _excluded$
|
|
16098
|
+
var _excluded$8 = ["count", "size", "testID", "themeVariant"];
|
|
15096
16099
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
15097
16100
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
15098
16101
|
|
|
@@ -15126,7 +16129,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15126
16129
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15127
16130
|
testID = _ref2.testID,
|
|
15128
16131
|
themeVariant = _ref2.themeVariant,
|
|
15129
|
-
nativeProps = _objectWithoutProperties$1(_ref2, _excluded$
|
|
16132
|
+
nativeProps = _objectWithoutProperties$1(_ref2, _excluded$8);
|
|
15130
16133
|
|
|
15131
16134
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
15132
16135
|
useEffect(function () {
|
|
@@ -15163,7 +16166,8 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15163
16166
|
|
|
15164
16167
|
var PRESSED_COLORS = {
|
|
15165
16168
|
primary: 'pressedPrimary',
|
|
15166
|
-
secondary: 'pressedSecondary'
|
|
16169
|
+
secondary: 'pressedSecondary',
|
|
16170
|
+
danger: 'pressedDanger'
|
|
15167
16171
|
};
|
|
15168
16172
|
|
|
15169
16173
|
var genBasicTransparentContainerStyles = function genBasicTransparentContainerStyles(theme, pressed, disabled) {
|
|
@@ -15277,7 +16281,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
|
|
|
15277
16281
|
}, textColorStyling());
|
|
15278
16282
|
};
|
|
15279
16283
|
|
|
15280
|
-
var StyledButtonContainer = index$
|
|
16284
|
+
var StyledButtonContainer = index$5(View)(function (_ref) {
|
|
15281
16285
|
var _ref$disabled = _ref.disabled,
|
|
15282
16286
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15283
16287
|
_ref$pressed = _ref.pressed,
|
|
@@ -15295,14 +16299,20 @@ var StyledButtonContainer = index$2(View)(function (_ref) {
|
|
|
15295
16299
|
case 'filled-secondary':
|
|
15296
16300
|
return genFilledContainerStyles(theme, 'secondary', pressed, disabled);
|
|
15297
16301
|
|
|
16302
|
+
case 'filled-danger':
|
|
16303
|
+
return genFilledContainerStyles(theme, 'danger', pressed, disabled);
|
|
16304
|
+
|
|
15298
16305
|
case 'outlined-primary':
|
|
15299
16306
|
return genOutlineContainerStyles(theme, 'primary', pressed, disabled);
|
|
15300
16307
|
|
|
15301
16308
|
case 'outlined-secondary':
|
|
15302
16309
|
return genOutlineContainerStyles(theme, 'secondary', pressed, disabled);
|
|
16310
|
+
|
|
16311
|
+
case 'outlined-danger':
|
|
16312
|
+
return genOutlineContainerStyles(theme, 'danger', pressed, disabled);
|
|
15303
16313
|
}
|
|
15304
16314
|
});
|
|
15305
|
-
var StyledButtonText = index$
|
|
16315
|
+
var StyledButtonText = index$5(Typography.Text)(function (_ref2) {
|
|
15306
16316
|
var disabled = _ref2.disabled,
|
|
15307
16317
|
pressed = _ref2.pressed,
|
|
15308
16318
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15319,6 +16329,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
|
|
|
15319
16329
|
|
|
15320
16330
|
case 'filled-primary':
|
|
15321
16331
|
case 'filled-secondary':
|
|
16332
|
+
case 'filled-danger':
|
|
15322
16333
|
return {
|
|
15323
16334
|
fontSize: theme.__hd__.button.fontSize["default"],
|
|
15324
16335
|
lineHeight: theme.__hd__.button.lineHeight["default"],
|
|
@@ -15330,6 +16341,9 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
|
|
|
15330
16341
|
|
|
15331
16342
|
case 'outlined-secondary':
|
|
15332
16343
|
return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
|
|
16344
|
+
|
|
16345
|
+
case 'outlined-danger':
|
|
16346
|
+
return genOutlineTextStyles(theme, 'danger', pressed, disabled);
|
|
15333
16347
|
}
|
|
15334
16348
|
};
|
|
15335
16349
|
|
|
@@ -15339,7 +16353,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
|
|
|
15339
16353
|
fontFamily: theme.__hd__.button.fonts["default"]
|
|
15340
16354
|
}, themeStyling());
|
|
15341
16355
|
});
|
|
15342
|
-
var StyledButtonIconWrapper = index$
|
|
16356
|
+
var StyledButtonIconWrapper = index$5(View)(function (_ref3) {
|
|
15343
16357
|
var themePosition = _ref3.themePosition,
|
|
15344
16358
|
theme = _ref3.theme;
|
|
15345
16359
|
|
|
@@ -15355,7 +16369,7 @@ var StyledButtonIconWrapper = index$2(View)(function (_ref3) {
|
|
|
15355
16369
|
};
|
|
15356
16370
|
}
|
|
15357
16371
|
});
|
|
15358
|
-
var StyledButtonIcon = index$
|
|
16372
|
+
var StyledButtonIcon = index$5(Icon)(function (_ref4) {
|
|
15359
16373
|
var disabled = _ref4.disabled,
|
|
15360
16374
|
pressed = _ref4.pressed,
|
|
15361
16375
|
themeVariant = _ref4.themeVariant,
|
|
@@ -15370,6 +16384,7 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
|
|
|
15370
16384
|
|
|
15371
16385
|
case 'filled-primary':
|
|
15372
16386
|
case 'filled-secondary':
|
|
16387
|
+
case 'filled-danger':
|
|
15373
16388
|
return {
|
|
15374
16389
|
color: theme.__hd__.button.colors.invertedText
|
|
15375
16390
|
};
|
|
@@ -15379,6 +16394,9 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
|
|
|
15379
16394
|
|
|
15380
16395
|
case 'outlined-secondary':
|
|
15381
16396
|
return genOutlineTextStyles(theme, 'secondary', pressed, disabled);
|
|
16397
|
+
|
|
16398
|
+
case 'outlined-danger':
|
|
16399
|
+
return genOutlineTextStyles(theme, 'danger', pressed, disabled);
|
|
15382
16400
|
}
|
|
15383
16401
|
};
|
|
15384
16402
|
|
|
@@ -15389,11 +16407,13 @@ var StyledButtonIcon = index$2(Icon)(function (_ref4) {
|
|
|
15389
16407
|
|
|
15390
16408
|
var FILLED_VARIANTS = {
|
|
15391
16409
|
primary: 'filled-primary',
|
|
15392
|
-
secondary: 'filled-secondary'
|
|
16410
|
+
secondary: 'filled-secondary',
|
|
16411
|
+
danger: 'filled-danger'
|
|
15393
16412
|
};
|
|
15394
16413
|
var OUTLINED_VARIANTS = {
|
|
15395
16414
|
primary: 'outlined-primary',
|
|
15396
|
-
secondary: 'outlined-secondary'
|
|
16415
|
+
secondary: 'outlined-secondary',
|
|
16416
|
+
danger: 'outlined-danger'
|
|
15397
16417
|
};
|
|
15398
16418
|
var getThemeVariant = function getThemeVariant(variant, intent) {
|
|
15399
16419
|
switch (variant) {
|
|
@@ -15621,15 +16641,46 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15621
16641
|
}, footer) : null)));
|
|
15622
16642
|
};
|
|
15623
16643
|
|
|
15624
|
-
var
|
|
15625
|
-
var
|
|
15626
|
-
|
|
15627
|
-
var sharedStyles = {
|
|
16644
|
+
var StyledDataCard = index$5(View)(function (_ref) {
|
|
16645
|
+
var theme = _ref.theme;
|
|
16646
|
+
return {
|
|
15628
16647
|
borderRadius: theme.__hd__.card.radii["default"],
|
|
15629
|
-
overflow: 'hidden'
|
|
16648
|
+
overflow: 'hidden',
|
|
16649
|
+
flexDirection: 'row'
|
|
16650
|
+
};
|
|
16651
|
+
});
|
|
16652
|
+
var Indicator = index$5(View)(function (_ref2) {
|
|
16653
|
+
var theme = _ref2.theme,
|
|
16654
|
+
themeIntent = _ref2.themeIntent;
|
|
16655
|
+
return {
|
|
16656
|
+
backgroundColor: theme.__hd__.card.colors.indicator[themeIntent],
|
|
16657
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
16658
|
+
height: '100%'
|
|
16659
|
+
};
|
|
16660
|
+
});
|
|
16661
|
+
|
|
16662
|
+
var _excluded$7 = ["intent", "children"];
|
|
16663
|
+
|
|
16664
|
+
var DataCard = function DataCard(_ref) {
|
|
16665
|
+
var _ref$intent = _ref.intent,
|
|
16666
|
+
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
16667
|
+
children = _ref.children,
|
|
16668
|
+
nativeProps = _objectWithoutProperties$1(_ref, _excluded$7);
|
|
16669
|
+
|
|
16670
|
+
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
16671
|
+
themeIntent: intent,
|
|
16672
|
+
testID: "data-card-indicator"
|
|
16673
|
+
}), children);
|
|
16674
|
+
};
|
|
16675
|
+
|
|
16676
|
+
var StyledCard = index$5(View)(function (_ref) {
|
|
16677
|
+
var themeVariant = _ref.themeVariant,
|
|
16678
|
+
theme = _ref.theme;
|
|
16679
|
+
var sharedStyles = {
|
|
16680
|
+
borderRadius: theme.__hd__.card.radii["default"],
|
|
16681
|
+
overflow: 'hidden'
|
|
15630
16682
|
};
|
|
15631
16683
|
var dataStyles = {
|
|
15632
|
-
flex: 1,
|
|
15633
16684
|
flexDirection: 'row'
|
|
15634
16685
|
};
|
|
15635
16686
|
|
|
@@ -15641,11 +16692,11 @@ var StyledCard = index$2(View)(function (_ref) {
|
|
|
15641
16692
|
return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
|
|
15642
16693
|
}
|
|
15643
16694
|
});
|
|
15644
|
-
var LeftDataCard = index$
|
|
16695
|
+
var LeftDataCard = index$5(View)(function (_ref2) {
|
|
15645
16696
|
var theme = _ref2.theme;
|
|
15646
16697
|
return {
|
|
15647
16698
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
15648
|
-
width:
|
|
16699
|
+
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
15649
16700
|
height: '100%'
|
|
15650
16701
|
};
|
|
15651
16702
|
});
|
|
@@ -15665,7 +16716,11 @@ var Card = function Card(_ref) {
|
|
|
15665
16716
|
}), children);
|
|
15666
16717
|
};
|
|
15667
16718
|
|
|
15668
|
-
var
|
|
16719
|
+
var index$4 = Object.assign(Card, {
|
|
16720
|
+
Data: DataCard
|
|
16721
|
+
});
|
|
16722
|
+
|
|
16723
|
+
var StyledWrapper$4 = index$5(Animated.View)(function () {
|
|
15669
16724
|
return {
|
|
15670
16725
|
margin: 0,
|
|
15671
16726
|
padding: 0,
|
|
@@ -15678,12 +16733,12 @@ var StyledWrapper$4 = index$2(Animated.View)(function () {
|
|
|
15678
16733
|
* to use with Animated.timing
|
|
15679
16734
|
*/
|
|
15680
16735
|
|
|
15681
|
-
var StyledHiddenWrapper = index$
|
|
16736
|
+
var StyledHiddenWrapper = index$5(View)(function () {
|
|
15682
16737
|
return {
|
|
15683
16738
|
height: Dimensions.get('window').height
|
|
15684
16739
|
};
|
|
15685
16740
|
});
|
|
15686
|
-
var StyledChildWrapper = index$
|
|
16741
|
+
var StyledChildWrapper = index$5(View)(function () {
|
|
15687
16742
|
return {
|
|
15688
16743
|
margin: 0,
|
|
15689
16744
|
padding: 0
|
|
@@ -15737,7 +16792,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15737
16792
|
}, children)));
|
|
15738
16793
|
};
|
|
15739
16794
|
|
|
15740
|
-
var StyledWrapper$3 = index$
|
|
16795
|
+
var StyledWrapper$3 = index$5(TouchableOpacity)(function (_ref) {
|
|
15741
16796
|
var theme = _ref.theme,
|
|
15742
16797
|
disabled = _ref.disabled;
|
|
15743
16798
|
return {
|
|
@@ -15777,14 +16832,14 @@ var CheckBox = function CheckBox(_ref) {
|
|
|
15777
16832
|
}));
|
|
15778
16833
|
};
|
|
15779
16834
|
|
|
15780
|
-
var Wrapper$1 = index$
|
|
16835
|
+
var Wrapper$1 = index$5(View)(function () {
|
|
15781
16836
|
return {
|
|
15782
16837
|
flex: 1,
|
|
15783
16838
|
flexDirection: 'row',
|
|
15784
16839
|
justifyContent: 'space-between'
|
|
15785
16840
|
};
|
|
15786
16841
|
});
|
|
15787
|
-
var Value = index$
|
|
16842
|
+
var Value = index$5(Typography.Text)(function (_ref) {
|
|
15788
16843
|
var theme = _ref.theme;
|
|
15789
16844
|
return {
|
|
15790
16845
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
@@ -15820,7 +16875,7 @@ function ContentNavigator(_ref) {
|
|
|
15820
16875
|
}
|
|
15821
16876
|
|
|
15822
16877
|
var AnimatedPressable = Animated.createAnimatedComponent(Pressable);
|
|
15823
|
-
var StyledContainer$1 = index$
|
|
16878
|
+
var StyledContainer$1 = index$5(View)(function (_ref) {
|
|
15824
16879
|
var theme = _ref.theme,
|
|
15825
16880
|
enableShadow = _ref.enableShadow;
|
|
15826
16881
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -15833,13 +16888,13 @@ var StyledContainer$1 = index$2(View)(function (_ref) {
|
|
|
15833
16888
|
elevation: 9999
|
|
15834
16889
|
});
|
|
15835
16890
|
});
|
|
15836
|
-
var StyledBackdrop$1 = index$
|
|
16891
|
+
var StyledBackdrop$1 = index$5(AnimatedPressable)(function (_ref2) {
|
|
15837
16892
|
var theme = _ref2.theme;
|
|
15838
16893
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
15839
16894
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
15840
16895
|
});
|
|
15841
16896
|
});
|
|
15842
|
-
var StyledDrawerContainer = index$
|
|
16897
|
+
var StyledDrawerContainer = index$5(Animated.View)(function (_ref3) {
|
|
15843
16898
|
var theme = _ref3.theme,
|
|
15844
16899
|
enableShadow = _ref3.enableShadow;
|
|
15845
16900
|
return {
|
|
@@ -15909,7 +16964,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
15909
16964
|
}, children));
|
|
15910
16965
|
};
|
|
15911
16966
|
|
|
15912
|
-
var StyledFABContainer = index$
|
|
16967
|
+
var StyledFABContainer = index$5(TouchableHighlight)(function (_ref) {
|
|
15913
16968
|
var theme = _ref.theme;
|
|
15914
16969
|
return {
|
|
15915
16970
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -15923,7 +16978,7 @@ var StyledFABContainer = index$2(TouchableHighlight)(function (_ref) {
|
|
|
15923
16978
|
flexDirection: 'row'
|
|
15924
16979
|
};
|
|
15925
16980
|
});
|
|
15926
|
-
var StyledFABIcon = index$
|
|
16981
|
+
var StyledFABIcon = index$5(Icon)(function (_ref2) {
|
|
15927
16982
|
var theme = _ref2.theme;
|
|
15928
16983
|
return {
|
|
15929
16984
|
color: theme.__hd__.fab.colors.icon,
|
|
@@ -15932,7 +16987,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
|
|
|
15932
16987
|
textAlign: 'center'
|
|
15933
16988
|
};
|
|
15934
16989
|
});
|
|
15935
|
-
var StyledFABText = index$
|
|
16990
|
+
var StyledFABText = index$5(Text$1)(function (_ref3) {
|
|
15936
16991
|
var theme = _ref3.theme;
|
|
15937
16992
|
return {
|
|
15938
16993
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -16029,7 +17084,7 @@ var FAB = function FAB(_ref3) {
|
|
|
16029
17084
|
}));
|
|
16030
17085
|
};
|
|
16031
17086
|
|
|
16032
|
-
var StyledActionItem = index$
|
|
17087
|
+
var StyledActionItem = index$5(TouchableOpacity)(function (_ref) {
|
|
16033
17088
|
var theme = _ref.theme;
|
|
16034
17089
|
return {
|
|
16035
17090
|
paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
|
|
@@ -16046,7 +17101,7 @@ var StyledActionItem = index$2(TouchableOpacity)(function (_ref) {
|
|
|
16046
17101
|
overflow: 'hidden'
|
|
16047
17102
|
};
|
|
16048
17103
|
});
|
|
16049
|
-
var StyledActionItemText = index$
|
|
17104
|
+
var StyledActionItemText = index$5(Typography.Text)(function (_ref2) {
|
|
16050
17105
|
var theme = _ref2.theme;
|
|
16051
17106
|
return {
|
|
16052
17107
|
paddingLeft: theme.__hd__.fab.space.actionItemTextPaddingLeft,
|
|
@@ -16071,7 +17126,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
16071
17126
|
}), /*#__PURE__*/React.createElement(StyledActionItemText, null, title));
|
|
16072
17127
|
};
|
|
16073
17128
|
|
|
16074
|
-
var StyledContainer = index$
|
|
17129
|
+
var StyledContainer = index$5(View)({
|
|
16075
17130
|
position: 'absolute',
|
|
16076
17131
|
left: 0,
|
|
16077
17132
|
right: 0,
|
|
@@ -16080,12 +17135,12 @@ var StyledContainer = index$2(View)({
|
|
|
16080
17135
|
alignItems: 'flex-end',
|
|
16081
17136
|
justifyContent: 'flex-end'
|
|
16082
17137
|
});
|
|
16083
|
-
var StyledActionGroupContainer = index$
|
|
17138
|
+
var StyledActionGroupContainer = index$5(Animated.View)({
|
|
16084
17139
|
alignItems: 'flex-end',
|
|
16085
17140
|
justifyContent: 'flex-end',
|
|
16086
17141
|
width: '70%'
|
|
16087
17142
|
});
|
|
16088
|
-
var StyledFAB = index$
|
|
17143
|
+
var StyledFAB = index$5(FAB)(function (_ref) {
|
|
16089
17144
|
var theme = _ref.theme;
|
|
16090
17145
|
return {
|
|
16091
17146
|
marginRight: theme.__hd__.fab.space.buttonMarginRight,
|
|
@@ -16093,7 +17148,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
|
|
|
16093
17148
|
alignSelf: 'flex-end'
|
|
16094
17149
|
};
|
|
16095
17150
|
});
|
|
16096
|
-
var StyledBackdrop = index$
|
|
17151
|
+
var StyledBackdrop = index$5(Animated.View)(function (_ref2) {
|
|
16097
17152
|
var theme = _ref2.theme;
|
|
16098
17153
|
return {
|
|
16099
17154
|
position: 'absolute',
|
|
@@ -16104,7 +17159,7 @@ var StyledBackdrop = index$2(Animated.View)(function (_ref2) {
|
|
|
16104
17159
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground
|
|
16105
17160
|
};
|
|
16106
17161
|
});
|
|
16107
|
-
var StyledHeaderText = index$
|
|
17162
|
+
var StyledHeaderText = index$5(Typography.Text)(function (_ref3) {
|
|
16108
17163
|
var theme = _ref3.theme;
|
|
16109
17164
|
return {
|
|
16110
17165
|
fontSize: theme.__hd__.fab.fontSizes.header,
|
|
@@ -16183,11 +17238,200 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
16183
17238
|
}));
|
|
16184
17239
|
};
|
|
16185
17240
|
|
|
16186
|
-
var index$
|
|
17241
|
+
var index$3 = Object.assign(FAB, {
|
|
16187
17242
|
ActionGroup: ActionGroup
|
|
16188
17243
|
});
|
|
16189
17244
|
|
|
16190
|
-
var
|
|
17245
|
+
var StyledListItemContainer$1 = index$5(TouchableOpacity)(function (_ref) {
|
|
17246
|
+
var theme = _ref.theme,
|
|
17247
|
+
_ref$themeSelected = _ref.themeSelected,
|
|
17248
|
+
themeSelected = _ref$themeSelected === void 0 ? false : _ref$themeSelected,
|
|
17249
|
+
_ref$themeVariant = _ref.themeVariant,
|
|
17250
|
+
themeVariant = _ref$themeVariant === void 0 ? 'basic' : _ref$themeVariant;
|
|
17251
|
+
var sharedStyles = {
|
|
17252
|
+
flexDirection: 'row',
|
|
17253
|
+
backgroundColor: themeSelected ? theme.__hd__.list.colors.checkedListItemContainerBackground : theme.__hd__.list.colors.listItemContainerBackground,
|
|
17254
|
+
padding: theme.__hd__.list.space.listItemContainerPadding
|
|
17255
|
+
};
|
|
17256
|
+
|
|
17257
|
+
switch (themeVariant) {
|
|
17258
|
+
case 'basic':
|
|
17259
|
+
return sharedStyles;
|
|
17260
|
+
|
|
17261
|
+
case 'card':
|
|
17262
|
+
return _objectSpread2(_objectSpread2({}, sharedStyles), {}, {
|
|
17263
|
+
alignItems: 'center',
|
|
17264
|
+
borderRadius: theme.__hd__.list.radii.card,
|
|
17265
|
+
shadowColor: theme.colors.shadow,
|
|
17266
|
+
shadowRadius: theme.__hd__.list.radii.cardShadow,
|
|
17267
|
+
shadowOffset: theme.__hd__.list.offsets.cardShadow,
|
|
17268
|
+
shadowOpacity: theme.__hd__.list.opacity.cardShadow
|
|
17269
|
+
});
|
|
17270
|
+
|
|
17271
|
+
default:
|
|
17272
|
+
return sharedStyles;
|
|
17273
|
+
}
|
|
17274
|
+
});
|
|
17275
|
+
var StyledContentContainer = index$5(View)(function () {
|
|
17276
|
+
return {
|
|
17277
|
+
flexDirection: 'column',
|
|
17278
|
+
flex: 1,
|
|
17279
|
+
flexGrow: 2
|
|
17280
|
+
};
|
|
17281
|
+
});
|
|
17282
|
+
var StyledChildrenContainer = index$5(View)(function () {
|
|
17283
|
+
return {
|
|
17284
|
+
flexDirection: 'column',
|
|
17285
|
+
justifyContent: 'flex-start',
|
|
17286
|
+
alignItems: 'flex-start'
|
|
17287
|
+
};
|
|
17288
|
+
});
|
|
17289
|
+
var StyledLeadingStatus = index$5(View)(function (_ref2) {
|
|
17290
|
+
var theme = _ref2.theme,
|
|
17291
|
+
themeLeadingStatusIntent = _ref2.themeLeadingStatusIntent;
|
|
17292
|
+
return {
|
|
17293
|
+
width: theme.__hd__.list.widths.leadingStatus,
|
|
17294
|
+
marginRight: theme.__hd__.list.space.leadingStatusMarginRight,
|
|
17295
|
+
borderRadius: theme.__hd__.list.radii.leadingStatus,
|
|
17296
|
+
backgroundColor: theme.__hd__.list.colors.leadingStatus[themeLeadingStatusIntent]
|
|
17297
|
+
};
|
|
17298
|
+
});
|
|
17299
|
+
var StyledPrefixContainer$1 = index$5(View)(function (_ref3) {
|
|
17300
|
+
var theme = _ref3.theme;
|
|
17301
|
+
return {
|
|
17302
|
+
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
17303
|
+
};
|
|
17304
|
+
});
|
|
17305
|
+
var StyledSuffixContainer$1 = index$5(View)(function (_ref4) {
|
|
17306
|
+
var theme = _ref4.theme;
|
|
17307
|
+
return {
|
|
17308
|
+
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
17309
|
+
};
|
|
17310
|
+
});
|
|
17311
|
+
var StyledTitleContainer$1 = index$5(View)(function () {
|
|
17312
|
+
return {
|
|
17313
|
+
flex: 1
|
|
17314
|
+
};
|
|
17315
|
+
});
|
|
17316
|
+
|
|
17317
|
+
var ListItem = function ListItem(_ref) {
|
|
17318
|
+
var prefix = _ref.prefix,
|
|
17319
|
+
suffix = _ref.suffix,
|
|
17320
|
+
title = _ref.title,
|
|
17321
|
+
subtitle = _ref.subtitle,
|
|
17322
|
+
style = _ref.style,
|
|
17323
|
+
testID = _ref.testID,
|
|
17324
|
+
_ref$selected = _ref.selected,
|
|
17325
|
+
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
17326
|
+
children = _ref.children,
|
|
17327
|
+
leadingStatus = _ref.leadingStatus,
|
|
17328
|
+
_ref$variant = _ref.variant,
|
|
17329
|
+
variant = _ref$variant === void 0 ? 'full-width' : _ref$variant,
|
|
17330
|
+
onPress = _ref.onPress,
|
|
17331
|
+
_ref$disabled = _ref.disabled,
|
|
17332
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
17333
|
+
return /*#__PURE__*/React.createElement(StyledListItemContainer$1, {
|
|
17334
|
+
style: style,
|
|
17335
|
+
testID: testID,
|
|
17336
|
+
themeSelected: selected,
|
|
17337
|
+
themeVariant: variant,
|
|
17338
|
+
onPress: onPress,
|
|
17339
|
+
disabled: disabled
|
|
17340
|
+
}, leadingStatus && /*#__PURE__*/React.createElement(StyledLeadingStatus, {
|
|
17341
|
+
themeLeadingStatusIntent: leadingStatus,
|
|
17342
|
+
testID: "leadingStatus"
|
|
17343
|
+
}), /*#__PURE__*/React.createElement(StyledContentContainer, null, /*#__PURE__*/React.createElement(View, {
|
|
17344
|
+
style: {
|
|
17345
|
+
flexDirection: 'row',
|
|
17346
|
+
alignItems: 'center'
|
|
17347
|
+
}
|
|
17348
|
+
}, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
17349
|
+
icon: prefix
|
|
17350
|
+
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
17351
|
+
intent: "body",
|
|
17352
|
+
fontSize: "large",
|
|
17353
|
+
fontWeight: "semi-bold"
|
|
17354
|
+
}, title), subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
17355
|
+
intent: "subdued",
|
|
17356
|
+
fontSize: "small"
|
|
17357
|
+
}, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
17358
|
+
icon: suffix,
|
|
17359
|
+
intent: disabled ? 'disabled-text' : 'primary',
|
|
17360
|
+
size: "small"
|
|
17361
|
+
}) : suffix)), children && /*#__PURE__*/React.createElement(StyledChildrenContainer, null, children)));
|
|
17362
|
+
};
|
|
17363
|
+
|
|
17364
|
+
var StyledPrefixContainer = index$5(View)(function (_ref) {
|
|
17365
|
+
var theme = _ref.theme;
|
|
17366
|
+
return {
|
|
17367
|
+
marginRight: theme.__hd__.list.space.prefixContainerMarginRight
|
|
17368
|
+
};
|
|
17369
|
+
});
|
|
17370
|
+
var StyledSuffixContainer = index$5(View)(function (_ref2) {
|
|
17371
|
+
var theme = _ref2.theme;
|
|
17372
|
+
return {
|
|
17373
|
+
marginLeft: theme.__hd__.list.space.suffixContainerMarginLeft
|
|
17374
|
+
};
|
|
17375
|
+
});
|
|
17376
|
+
var StyledTitleContainer = index$5(View)(function () {
|
|
17377
|
+
return {
|
|
17378
|
+
flex: 1
|
|
17379
|
+
};
|
|
17380
|
+
});
|
|
17381
|
+
var StyledListItemContainer = index$5(TouchableOpacity)(function (_ref3) {
|
|
17382
|
+
var theme = _ref3.theme,
|
|
17383
|
+
themeSelected = _ref3.themeSelected,
|
|
17384
|
+
themeDisabled = _ref3.themeDisabled;
|
|
17385
|
+
return {
|
|
17386
|
+
alignItems: 'center',
|
|
17387
|
+
flex: 1,
|
|
17388
|
+
flexDirection: 'row',
|
|
17389
|
+
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option,
|
|
17390
|
+
padding: theme.__hd__.list.space.listItemContainerPadding,
|
|
17391
|
+
opacity: themeDisabled ? theme.__hd__.list.opacity.disabled : theme.__hd__.list.opacity.enabled
|
|
17392
|
+
};
|
|
17393
|
+
});
|
|
17394
|
+
|
|
17395
|
+
var BasicListItem = function BasicListItem(_ref) {
|
|
17396
|
+
var prefix = _ref.prefix,
|
|
17397
|
+
suffix = _ref.suffix,
|
|
17398
|
+
title = _ref.title,
|
|
17399
|
+
subtitle = _ref.subtitle,
|
|
17400
|
+
style = _ref.style,
|
|
17401
|
+
testID = _ref.testID,
|
|
17402
|
+
_ref$selected = _ref.selected,
|
|
17403
|
+
selected = _ref$selected === void 0 ? false : _ref$selected,
|
|
17404
|
+
_ref$disabled = _ref.disabled,
|
|
17405
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
17406
|
+
onPress = _ref.onPress;
|
|
17407
|
+
return /*#__PURE__*/React.createElement(StyledListItemContainer, {
|
|
17408
|
+
style: style,
|
|
17409
|
+
testID: testID,
|
|
17410
|
+
themeSelected: selected,
|
|
17411
|
+
themeDisabled: disabled,
|
|
17412
|
+
onPress: onPress,
|
|
17413
|
+
disabled: disabled
|
|
17414
|
+
}, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
17415
|
+
icon: prefix
|
|
17416
|
+
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
17417
|
+
intent: "body",
|
|
17418
|
+
fontSize: "large"
|
|
17419
|
+
}, title), subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
17420
|
+
intent: "subdued",
|
|
17421
|
+
fontSize: "small"
|
|
17422
|
+
}, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
17423
|
+
icon: suffix,
|
|
17424
|
+
intent: "text",
|
|
17425
|
+
size: "small"
|
|
17426
|
+
}) : suffix));
|
|
17427
|
+
};
|
|
17428
|
+
|
|
17429
|
+
var List = {
|
|
17430
|
+
Item: ListItem,
|
|
17431
|
+
BasicItem: BasicListItem
|
|
17432
|
+
};
|
|
17433
|
+
|
|
17434
|
+
var HalfCircleWrapper = index$5(View)(function (_ref) {
|
|
16191
17435
|
var theme = _ref.theme;
|
|
16192
17436
|
return {
|
|
16193
17437
|
width: theme.__hd__.progress.sizes.radius,
|
|
@@ -16195,7 +17439,7 @@ var HalfCircleWrapper = index$2(View)(function (_ref) {
|
|
|
16195
17439
|
overflow: 'hidden'
|
|
16196
17440
|
};
|
|
16197
17441
|
});
|
|
16198
|
-
var HalfCircleInnerFG = index$
|
|
17442
|
+
var HalfCircleInnerFG = index$5(View)(function (_ref2) {
|
|
16199
17443
|
var theme = _ref2.theme,
|
|
16200
17444
|
themeIntent = _ref2.themeIntent;
|
|
16201
17445
|
return {
|
|
@@ -16205,7 +17449,7 @@ var HalfCircleInnerFG = index$2(View)(function (_ref2) {
|
|
|
16205
17449
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16206
17450
|
};
|
|
16207
17451
|
});
|
|
16208
|
-
var HalfCircleInnerBG = index$
|
|
17452
|
+
var HalfCircleInnerBG = index$5(View)(function (_ref3) {
|
|
16209
17453
|
var theme = _ref3.theme;
|
|
16210
17454
|
return {
|
|
16211
17455
|
width: theme.__hd__.progress.sizes.radius * 2,
|
|
@@ -16214,7 +17458,7 @@ var HalfCircleInnerBG = index$2(View)(function (_ref3) {
|
|
|
16214
17458
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16215
17459
|
};
|
|
16216
17460
|
});
|
|
16217
|
-
var DonutCircle = index$
|
|
17461
|
+
var DonutCircle = index$5(View)(function (_ref4) {
|
|
16218
17462
|
var theme = _ref4.theme;
|
|
16219
17463
|
return {
|
|
16220
17464
|
position: 'absolute',
|
|
@@ -16229,7 +17473,7 @@ var DonutCircle = index$2(View)(function (_ref4) {
|
|
|
16229
17473
|
justifyContent: 'center'
|
|
16230
17474
|
};
|
|
16231
17475
|
});
|
|
16232
|
-
var StrokeEnd = index$
|
|
17476
|
+
var StrokeEnd = index$5(View)(function (_ref5) {
|
|
16233
17477
|
var theme = _ref5.theme,
|
|
16234
17478
|
themeIntent = _ref5.themeIntent;
|
|
16235
17479
|
return {
|
|
@@ -16360,7 +17604,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16360
17604
|
}, "".concat(value, "%")))));
|
|
16361
17605
|
};
|
|
16362
17606
|
|
|
16363
|
-
var StyledWrapper$2 = index$
|
|
17607
|
+
var StyledWrapper$2 = index$5(View)(function (_ref) {
|
|
16364
17608
|
var theme = _ref.theme;
|
|
16365
17609
|
return {
|
|
16366
17610
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
@@ -16369,7 +17613,7 @@ var StyledWrapper$2 = index$2(View)(function (_ref) {
|
|
|
16369
17613
|
overflow: 'hidden'
|
|
16370
17614
|
};
|
|
16371
17615
|
});
|
|
16372
|
-
var StyledInner = index$
|
|
17616
|
+
var StyledInner = index$5(Animated.View)(function (_ref2) {
|
|
16373
17617
|
var theme = _ref2.theme,
|
|
16374
17618
|
themeIntent = _ref2.themeIntent;
|
|
16375
17619
|
return {
|
|
@@ -16439,13 +17683,13 @@ var Progress = {
|
|
|
16439
17683
|
Bar: ProgressBar
|
|
16440
17684
|
};
|
|
16441
17685
|
|
|
16442
|
-
var StyledView$1 = index$
|
|
16443
|
-
var StyledSpinnerContainer = index$
|
|
17686
|
+
var StyledView$1 = index$5(View)();
|
|
17687
|
+
var StyledSpinnerContainer = index$5(View)({
|
|
16444
17688
|
height: '100%',
|
|
16445
17689
|
justifyContent: 'center',
|
|
16446
17690
|
alignItems: 'center'
|
|
16447
17691
|
});
|
|
16448
|
-
var StyledSpinnerRow = index$
|
|
17692
|
+
var StyledSpinnerRow = index$5(View)(function (_ref) {
|
|
16449
17693
|
var themePosition = _ref.themePosition,
|
|
16450
17694
|
theme = _ref.theme;
|
|
16451
17695
|
return {
|
|
@@ -16453,7 +17697,7 @@ var StyledSpinnerRow = index$2(View)(function (_ref) {
|
|
|
16453
17697
|
marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
|
|
16454
17698
|
};
|
|
16455
17699
|
});
|
|
16456
|
-
var StyledSpinnerDot = index$
|
|
17700
|
+
var StyledSpinnerDot = index$5(View)(function (_ref2) {
|
|
16457
17701
|
var themePosition = _ref2.themePosition,
|
|
16458
17702
|
theme = _ref2.theme;
|
|
16459
17703
|
|
|
@@ -16544,7 +17788,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
16544
17788
|
}, /*#__PURE__*/React.createElement(AnimatedSpinner, null)));
|
|
16545
17789
|
};
|
|
16546
17790
|
|
|
16547
|
-
var Wrapper = index$
|
|
17791
|
+
var Wrapper = index$5(TouchableOpacity)(function (_ref) {
|
|
16548
17792
|
var theme = _ref.theme,
|
|
16549
17793
|
themeChecked = _ref.themeChecked;
|
|
16550
17794
|
return {
|
|
@@ -16556,7 +17800,7 @@ var Wrapper = index$2(TouchableOpacity)(function (_ref) {
|
|
|
16556
17800
|
backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
|
|
16557
17801
|
};
|
|
16558
17802
|
});
|
|
16559
|
-
var Circle = index$
|
|
17803
|
+
var Circle = index$5(View)(function (_ref2) {
|
|
16560
17804
|
var theme = _ref2.theme,
|
|
16561
17805
|
themeChecked = _ref2.themeChecked;
|
|
16562
17806
|
return {
|
|
@@ -16569,7 +17813,7 @@ var Circle = index$2(View)(function (_ref2) {
|
|
|
16569
17813
|
justifyContent: 'center'
|
|
16570
17814
|
};
|
|
16571
17815
|
});
|
|
16572
|
-
var InnerCircle = index$
|
|
17816
|
+
var InnerCircle = index$5(View)(function (_ref3) {
|
|
16573
17817
|
var theme = _ref3.theme;
|
|
16574
17818
|
return {
|
|
16575
17819
|
height: theme.__hd__.radio.sizes.innerCircle,
|
|
@@ -16578,7 +17822,7 @@ var InnerCircle = index$2(View)(function (_ref3) {
|
|
|
16578
17822
|
backgroundColor: theme.__hd__.radio.colors.checkedCircle
|
|
16579
17823
|
};
|
|
16580
17824
|
});
|
|
16581
|
-
var Spacer$1 = index$
|
|
17825
|
+
var Spacer$1 = index$5(View)(function (_ref4) {
|
|
16582
17826
|
var theme = _ref4.theme;
|
|
16583
17827
|
return {
|
|
16584
17828
|
marginTop: theme.__hd__.radio.space.groupTopMargin
|
|
@@ -16651,7 +17895,7 @@ var CompoundRadio = {
|
|
|
16651
17895
|
Group: RadioGroup
|
|
16652
17896
|
};
|
|
16653
17897
|
|
|
16654
|
-
var StyledHeading = index$
|
|
17898
|
+
var StyledHeading = index$5(View)(function (_ref) {
|
|
16655
17899
|
var theme = _ref.theme;
|
|
16656
17900
|
return {
|
|
16657
17901
|
paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
|
|
@@ -16664,13 +17908,13 @@ var StyledHeading = index$2(View)(function (_ref) {
|
|
|
16664
17908
|
justifyContent: 'space-between'
|
|
16665
17909
|
};
|
|
16666
17910
|
});
|
|
16667
|
-
var StyledIconWrapper = index$
|
|
17911
|
+
var StyledIconWrapper = index$5(View)(function (_ref2) {
|
|
16668
17912
|
var theme = _ref2.theme;
|
|
16669
17913
|
return {
|
|
16670
17914
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
16671
17915
|
};
|
|
16672
17916
|
});
|
|
16673
|
-
var StyledWrapper$1 = index$
|
|
17917
|
+
var StyledWrapper$1 = index$5(View)(function () {
|
|
16674
17918
|
return {
|
|
16675
17919
|
display: 'flex',
|
|
16676
17920
|
flexDirection: 'row'
|
|
@@ -16715,7 +17959,106 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16715
17959
|
}, text)), rightChildren);
|
|
16716
17960
|
};
|
|
16717
17961
|
|
|
16718
|
-
var
|
|
17962
|
+
var OptionWrapper = index$5(TouchableOpacity)(function (_ref) {
|
|
17963
|
+
var theme = _ref.theme,
|
|
17964
|
+
themeSelected = _ref.themeSelected;
|
|
17965
|
+
return {
|
|
17966
|
+
flexDirection: 'row',
|
|
17967
|
+
justifyContent: 'space-between',
|
|
17968
|
+
alignItems: 'center',
|
|
17969
|
+
borderRadius: theme.__hd__.select.radii.option,
|
|
17970
|
+
padding: theme.__hd__.select.space.optionPadding,
|
|
17971
|
+
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
|
|
17972
|
+
};
|
|
17973
|
+
});
|
|
17974
|
+
var OptionListWrapper = index$5(View)(function (_ref2) {
|
|
17975
|
+
var theme = _ref2.theme;
|
|
17976
|
+
return {
|
|
17977
|
+
padding: theme.__hd__.select.space.optionListPadding
|
|
17978
|
+
};
|
|
17979
|
+
});
|
|
17980
|
+
var Spacer = index$5(View)(function (_ref3) {
|
|
17981
|
+
var theme = _ref3.theme;
|
|
17982
|
+
return {
|
|
17983
|
+
marginTop: theme.__hd__.select.space.optionListSpacing
|
|
17984
|
+
};
|
|
17985
|
+
});
|
|
17986
|
+
var FooterText = index$5(Typography.Text)(function (_ref4) {
|
|
17987
|
+
var theme = _ref4.theme;
|
|
17988
|
+
return {
|
|
17989
|
+
color: theme.__hd__.select.colors.footerText
|
|
17990
|
+
};
|
|
17991
|
+
});
|
|
17992
|
+
|
|
17993
|
+
var Footer = function Footer(_ref) {
|
|
17994
|
+
var label = _ref.label,
|
|
17995
|
+
onPress = _ref.onPress;
|
|
17996
|
+
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
17997
|
+
onPress: onPress
|
|
17998
|
+
}, /*#__PURE__*/React.createElement(FooterText, {
|
|
17999
|
+
fontSize: "large",
|
|
18000
|
+
fontWeight: "semi-bold"
|
|
18001
|
+
}, label));
|
|
18002
|
+
};
|
|
18003
|
+
|
|
18004
|
+
var getKey = function getKey(option, index, keyExtractor) {
|
|
18005
|
+
var key = '';
|
|
18006
|
+
|
|
18007
|
+
if (keyExtractor !== undefined) {
|
|
18008
|
+
key = keyExtractor(option, index);
|
|
18009
|
+
} else if (option.key !== undefined) {
|
|
18010
|
+
key = option.key;
|
|
18011
|
+
} else {
|
|
18012
|
+
key = index;
|
|
18013
|
+
}
|
|
18014
|
+
|
|
18015
|
+
return key;
|
|
18016
|
+
};
|
|
18017
|
+
|
|
18018
|
+
var Option$1 = function Option(_ref) {
|
|
18019
|
+
var text = _ref.text,
|
|
18020
|
+
selected = _ref.selected,
|
|
18021
|
+
onPress = _ref.onPress;
|
|
18022
|
+
return /*#__PURE__*/React.createElement(OptionWrapper, {
|
|
18023
|
+
themeSelected: selected,
|
|
18024
|
+
onPress: onPress
|
|
18025
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
18026
|
+
style: {
|
|
18027
|
+
flex: 1
|
|
18028
|
+
}
|
|
18029
|
+
}, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
18030
|
+
fontSize: "large"
|
|
18031
|
+
}, text)), selected && /*#__PURE__*/React.createElement(Icon, {
|
|
18032
|
+
icon: "checkmark",
|
|
18033
|
+
size: "small"
|
|
18034
|
+
}));
|
|
18035
|
+
};
|
|
18036
|
+
|
|
18037
|
+
var OptionList$1 = function OptionList(_ref) {
|
|
18038
|
+
var value = _ref.value,
|
|
18039
|
+
options = _ref.options,
|
|
18040
|
+
_onPress = _ref.onPress,
|
|
18041
|
+
keyExtractor = _ref.keyExtractor;
|
|
18042
|
+
return /*#__PURE__*/React.createElement(OptionListWrapper, null, options.map(function (opt, index) {
|
|
18043
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
18044
|
+
key: getKey(opt, index, keyExtractor)
|
|
18045
|
+
}, index !== 0 && /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Option$1, {
|
|
18046
|
+
text: opt.text,
|
|
18047
|
+
selected: value.includes(opt.value),
|
|
18048
|
+
onPress: function onPress() {
|
|
18049
|
+
if (value.includes(opt.value)) {
|
|
18050
|
+
_onPress(value.filter(function (val) {
|
|
18051
|
+
return val !== opt.value;
|
|
18052
|
+
}));
|
|
18053
|
+
} else {
|
|
18054
|
+
_onPress([].concat(_toConsumableArray$1(value), [opt.value]));
|
|
18055
|
+
}
|
|
18056
|
+
}
|
|
18057
|
+
}));
|
|
18058
|
+
}));
|
|
18059
|
+
};
|
|
18060
|
+
|
|
18061
|
+
var Container$1 = index$5(View)(function (_ref) {
|
|
16719
18062
|
var theme = _ref.theme;
|
|
16720
18063
|
return {
|
|
16721
18064
|
position: 'relative',
|
|
@@ -16727,7 +18070,7 @@ var Container$1 = index$2(View)(function (_ref) {
|
|
|
16727
18070
|
alignItems: 'center'
|
|
16728
18071
|
};
|
|
16729
18072
|
});
|
|
16730
|
-
var Label = index$
|
|
18073
|
+
var Label = index$5(Typography.Text)(function (_ref2) {
|
|
16731
18074
|
var theme = _ref2.theme;
|
|
16732
18075
|
return {
|
|
16733
18076
|
position: 'absolute',
|
|
@@ -16738,7 +18081,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
|
|
|
16738
18081
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
16739
18082
|
};
|
|
16740
18083
|
});
|
|
16741
|
-
var StyledTextInput = index$
|
|
18084
|
+
var StyledTextInput = index$5(TextInput$1)(function (_ref3) {
|
|
16742
18085
|
var theme = _ref3.theme;
|
|
16743
18086
|
return {
|
|
16744
18087
|
flex: 1,
|
|
@@ -16782,49 +18125,75 @@ var TextInput = function TextInput(_ref) {
|
|
|
16782
18125
|
}));
|
|
16783
18126
|
};
|
|
16784
18127
|
|
|
16785
|
-
|
|
16786
|
-
var
|
|
16787
|
-
|
|
16788
|
-
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16792
|
-
|
|
16793
|
-
|
|
16794
|
-
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
|
|
16795
|
-
};
|
|
16796
|
-
});
|
|
16797
|
-
var OptionListWrapper = index$2(View)(function (_ref2) {
|
|
16798
|
-
var theme = _ref2.theme;
|
|
16799
|
-
return {
|
|
16800
|
-
padding: theme.__hd__.select.space.optionListPadding
|
|
16801
|
-
};
|
|
16802
|
-
});
|
|
16803
|
-
var Spacer = index$2(View)(function (_ref3) {
|
|
16804
|
-
var theme = _ref3.theme;
|
|
16805
|
-
return {
|
|
16806
|
-
marginTop: theme.__hd__.select.space.optionListSpacing
|
|
16807
|
-
};
|
|
16808
|
-
});
|
|
16809
|
-
var FooterText = index$2(Typography.Text)(function (_ref4) {
|
|
16810
|
-
var theme = _ref4.theme;
|
|
16811
|
-
return {
|
|
16812
|
-
color: theme.__hd__.select.colors.footerText
|
|
16813
|
-
};
|
|
16814
|
-
});
|
|
18128
|
+
function MultiSelect(_ref) {
|
|
18129
|
+
var options = _ref.options,
|
|
18130
|
+
value = _ref.value,
|
|
18131
|
+
testID = _ref.testID,
|
|
18132
|
+
style = _ref.style,
|
|
18133
|
+
label = _ref.label,
|
|
18134
|
+
footerLabel = _ref.footerLabel,
|
|
18135
|
+
onConfirm = _ref.onConfirm;
|
|
18136
|
+
var theme = useTheme$1();
|
|
16815
18137
|
|
|
16816
|
-
|
|
16817
|
-
|
|
16818
|
-
|
|
18138
|
+
var _useState = useState(false),
|
|
18139
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18140
|
+
open = _useState2[0],
|
|
18141
|
+
setOpen = _useState2[1];
|
|
18142
|
+
|
|
18143
|
+
var _useState3 = useState(value),
|
|
18144
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18145
|
+
selectingValue = _useState4[0],
|
|
18146
|
+
setSelectingValue = _useState4[1];
|
|
18147
|
+
|
|
18148
|
+
var displayedValue = options.filter(function (opt) {
|
|
18149
|
+
return value.includes(opt.value);
|
|
18150
|
+
}).map(function (opt) {
|
|
18151
|
+
return opt.text;
|
|
18152
|
+
}).join(', ');
|
|
16819
18153
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
16820
|
-
onPress: onPress
|
|
16821
|
-
|
|
16822
|
-
|
|
16823
|
-
|
|
16824
|
-
|
|
18154
|
+
onPress: function onPress() {
|
|
18155
|
+
return setOpen(true);
|
|
18156
|
+
}
|
|
18157
|
+
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
18158
|
+
label: label,
|
|
18159
|
+
value: displayedValue,
|
|
18160
|
+
onPressIn: function onPressIn() {
|
|
18161
|
+
return setOpen(true);
|
|
18162
|
+
},
|
|
18163
|
+
editable: false // when input is not editable on Android, the text color is gray
|
|
18164
|
+
// hence, adding this to make the text color the same as iOS
|
|
18165
|
+
,
|
|
18166
|
+
textStyle: {
|
|
18167
|
+
color: theme.colors.text
|
|
18168
|
+
},
|
|
18169
|
+
suffix: "arrow-down",
|
|
18170
|
+
multiline: true,
|
|
18171
|
+
style: style,
|
|
18172
|
+
testID: testID
|
|
18173
|
+
}), /*#__PURE__*/React.createElement(BottomSheet, {
|
|
18174
|
+
open: open,
|
|
18175
|
+
onRequestClose: function onRequestClose() {
|
|
18176
|
+
return setOpen(false);
|
|
18177
|
+
},
|
|
18178
|
+
onDismiss: function onDismiss() {
|
|
18179
|
+
return setSelectingValue(value);
|
|
18180
|
+
},
|
|
18181
|
+
header: label,
|
|
18182
|
+
footer: /*#__PURE__*/React.createElement(Footer, {
|
|
18183
|
+
label: footerLabel,
|
|
18184
|
+
onPress: function onPress() {
|
|
18185
|
+
setOpen(false);
|
|
18186
|
+
onConfirm(selectingValue);
|
|
18187
|
+
}
|
|
18188
|
+
})
|
|
18189
|
+
}, /*#__PURE__*/React.createElement(OptionList$1, {
|
|
18190
|
+
options: options,
|
|
18191
|
+
value: selectingValue,
|
|
18192
|
+
onPress: setSelectingValue
|
|
18193
|
+
})));
|
|
16825
18194
|
}
|
|
16826
18195
|
|
|
16827
|
-
function Option(_ref) {
|
|
18196
|
+
var Option = function Option(_ref) {
|
|
16828
18197
|
var text = _ref.text,
|
|
16829
18198
|
selected = _ref.selected,
|
|
16830
18199
|
onPress = _ref.onPress;
|
|
@@ -16837,58 +18206,40 @@ function Option(_ref) {
|
|
|
16837
18206
|
}
|
|
16838
18207
|
}, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
16839
18208
|
fontSize: "large"
|
|
16840
|
-
}, text))
|
|
16841
|
-
|
|
16842
|
-
size: "small"
|
|
16843
|
-
}));
|
|
16844
|
-
}
|
|
16845
|
-
|
|
16846
|
-
function getKey(option, index, keyExtractor) {
|
|
16847
|
-
var key = '';
|
|
16848
|
-
|
|
16849
|
-
if (keyExtractor !== undefined) {
|
|
16850
|
-
key = keyExtractor(option, index);
|
|
16851
|
-
} else if (option.key !== undefined) {
|
|
16852
|
-
key = option.key;
|
|
16853
|
-
} else {
|
|
16854
|
-
key = index;
|
|
16855
|
-
}
|
|
16856
|
-
|
|
16857
|
-
return key;
|
|
16858
|
-
}
|
|
18209
|
+
}, text)));
|
|
18210
|
+
};
|
|
16859
18211
|
|
|
16860
|
-
function OptionList(
|
|
16861
|
-
var value =
|
|
16862
|
-
options =
|
|
16863
|
-
_onPress =
|
|
16864
|
-
keyExtractor =
|
|
18212
|
+
var OptionList = function OptionList(_ref) {
|
|
18213
|
+
var value = _ref.value,
|
|
18214
|
+
options = _ref.options,
|
|
18215
|
+
_onPress = _ref.onPress,
|
|
18216
|
+
keyExtractor = _ref.keyExtractor;
|
|
16865
18217
|
return /*#__PURE__*/React.createElement(OptionListWrapper, null, options.map(function (opt, index) {
|
|
16866
18218
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16867
18219
|
key: getKey(opt, index, keyExtractor)
|
|
16868
18220
|
}, index !== 0 && /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(Option, {
|
|
16869
18221
|
text: opt.text,
|
|
16870
|
-
selected: value
|
|
18222
|
+
selected: value === opt.value,
|
|
16871
18223
|
onPress: function onPress() {
|
|
16872
|
-
if (value
|
|
16873
|
-
_onPress(
|
|
16874
|
-
return val !== opt.value;
|
|
16875
|
-
}));
|
|
18224
|
+
if (value === opt.value) {
|
|
18225
|
+
_onPress(null);
|
|
16876
18226
|
} else {
|
|
16877
|
-
_onPress(
|
|
18227
|
+
_onPress(opt.value);
|
|
16878
18228
|
}
|
|
16879
18229
|
}
|
|
16880
18230
|
}));
|
|
16881
18231
|
}));
|
|
16882
|
-
}
|
|
18232
|
+
};
|
|
18233
|
+
|
|
18234
|
+
var SingleSelect = function SingleSelect(_ref) {
|
|
18235
|
+
var _options$find;
|
|
16883
18236
|
|
|
16884
|
-
function MultiSelect(_ref) {
|
|
16885
18237
|
var options = _ref.options,
|
|
16886
18238
|
value = _ref.value,
|
|
16887
18239
|
testID = _ref.testID,
|
|
16888
18240
|
style = _ref.style,
|
|
16889
18241
|
label = _ref.label,
|
|
16890
|
-
|
|
16891
|
-
_onPress = _ref.onPress;
|
|
18242
|
+
onConfirm = _ref.onConfirm;
|
|
16892
18243
|
var theme = useTheme$1();
|
|
16893
18244
|
|
|
16894
18245
|
var _useState = useState(false),
|
|
@@ -16901,11 +18252,9 @@ function MultiSelect(_ref) {
|
|
|
16901
18252
|
selectingValue = _useState4[0],
|
|
16902
18253
|
setSelectingValue = _useState4[1];
|
|
16903
18254
|
|
|
16904
|
-
var displayedValue = options.
|
|
16905
|
-
return value
|
|
16906
|
-
})
|
|
16907
|
-
return opt.text;
|
|
16908
|
-
}).join(', ');
|
|
18255
|
+
var displayedValue = (_options$find = options.find(function (opt) {
|
|
18256
|
+
return value === opt.value;
|
|
18257
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.text;
|
|
16909
18258
|
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
16910
18259
|
onPress: function onPress() {
|
|
16911
18260
|
return setOpen(true);
|
|
@@ -16934,27 +18283,22 @@ function MultiSelect(_ref) {
|
|
|
16934
18283
|
onDismiss: function onDismiss() {
|
|
16935
18284
|
return setSelectingValue(value);
|
|
16936
18285
|
},
|
|
16937
|
-
header: label
|
|
16938
|
-
footer: /*#__PURE__*/React.createElement(Footer, {
|
|
16939
|
-
label: footerLabel,
|
|
16940
|
-
onPress: function onPress() {
|
|
16941
|
-
setOpen(false);
|
|
16942
|
-
|
|
16943
|
-
_onPress(selectingValue);
|
|
16944
|
-
}
|
|
16945
|
-
})
|
|
18286
|
+
header: label
|
|
16946
18287
|
}, /*#__PURE__*/React.createElement(OptionList, {
|
|
16947
18288
|
options: options,
|
|
16948
18289
|
value: selectingValue,
|
|
16949
|
-
onPress:
|
|
18290
|
+
onPress: function onPress(selectedValue) {
|
|
18291
|
+
setOpen(false);
|
|
18292
|
+
onConfirm(selectedValue);
|
|
18293
|
+
}
|
|
16950
18294
|
})));
|
|
16951
|
-
}
|
|
18295
|
+
};
|
|
16952
18296
|
|
|
16953
|
-
var
|
|
18297
|
+
var index$2 = Object.assign(SingleSelect, {
|
|
16954
18298
|
Multi: MultiSelect
|
|
16955
|
-
};
|
|
18299
|
+
});
|
|
16956
18300
|
|
|
16957
|
-
var StyledWrapper = index$
|
|
18301
|
+
var StyledWrapper = index$5(View)(function (_ref) {
|
|
16958
18302
|
var theme = _ref.theme,
|
|
16959
18303
|
themeChecked = _ref.themeChecked,
|
|
16960
18304
|
themeSize = _ref.themeSize;
|
|
@@ -16966,7 +18310,7 @@ var StyledWrapper = index$2(View)(function (_ref) {
|
|
|
16966
18310
|
backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
|
|
16967
18311
|
};
|
|
16968
18312
|
});
|
|
16969
|
-
var StyledDisabledWrapper = index$
|
|
18313
|
+
var StyledDisabledWrapper = index$5(View)(function (_ref2) {
|
|
16970
18314
|
var theme = _ref2.theme,
|
|
16971
18315
|
themeSize = _ref2.themeSize;
|
|
16972
18316
|
return {
|
|
@@ -16979,7 +18323,7 @@ var StyledDisabledWrapper = index$2(View)(function (_ref2) {
|
|
|
16979
18323
|
opacity: 0.8
|
|
16980
18324
|
};
|
|
16981
18325
|
});
|
|
16982
|
-
var StyledThumbWrapper = index$
|
|
18326
|
+
var StyledThumbWrapper = index$5(View)(function (_ref3) {
|
|
16983
18327
|
var theme = _ref3.theme,
|
|
16984
18328
|
themeSize = _ref3.themeSize;
|
|
16985
18329
|
return {
|
|
@@ -16990,7 +18334,7 @@ var StyledThumbWrapper = index$2(View)(function (_ref3) {
|
|
|
16990
18334
|
justifyContent: 'center'
|
|
16991
18335
|
};
|
|
16992
18336
|
});
|
|
16993
|
-
var StyledKnot = index$
|
|
18337
|
+
var StyledKnot = index$5(Animated.View)(function (_ref4) {
|
|
16994
18338
|
var theme = _ref4.theme,
|
|
16995
18339
|
themeSize = _ref4.themeSize;
|
|
16996
18340
|
return {
|
|
@@ -17247,11 +18591,11 @@ var PagerView = /*#__PURE__*/function (_React$Component) {
|
|
|
17247
18591
|
}(React.Component);
|
|
17248
18592
|
|
|
17249
18593
|
var AnimatedPagerView = Animated.createAnimatedComponent(PagerView);
|
|
17250
|
-
var TabContainer$1 = index$
|
|
18594
|
+
var TabContainer$1 = index$5(View)({
|
|
17251
18595
|
flex: 1,
|
|
17252
18596
|
overflow: 'hidden'
|
|
17253
18597
|
});
|
|
17254
|
-
var HeaderTabWrapper$1 = index$
|
|
18598
|
+
var HeaderTabWrapper$1 = index$5(View)(function (_ref) {
|
|
17255
18599
|
var theme = _ref.theme,
|
|
17256
18600
|
themeInsets = _ref.themeInsets;
|
|
17257
18601
|
return {
|
|
@@ -17260,10 +18604,10 @@ var HeaderTabWrapper$1 = index$2(View)(function (_ref) {
|
|
|
17260
18604
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
17261
18605
|
};
|
|
17262
18606
|
});
|
|
17263
|
-
var HeaderTab = index$
|
|
18607
|
+
var HeaderTab = index$5(View)({
|
|
17264
18608
|
flexDirection: 'row'
|
|
17265
18609
|
});
|
|
17266
|
-
var HeaderTabItem$1 = index$
|
|
18610
|
+
var HeaderTabItem$1 = index$5(View)(function (_ref2) {
|
|
17267
18611
|
var theme = _ref2.theme;
|
|
17268
18612
|
return {
|
|
17269
18613
|
flex: 1,
|
|
@@ -17271,13 +18615,13 @@ var HeaderTabItem$1 = index$2(View)(function (_ref2) {
|
|
|
17271
18615
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
17272
18616
|
};
|
|
17273
18617
|
});
|
|
17274
|
-
var ContentWrapper$1 = index$
|
|
18618
|
+
var ContentWrapper$1 = index$5(AnimatedPagerView)({
|
|
17275
18619
|
flex: 1
|
|
17276
18620
|
});
|
|
17277
|
-
var TabScreen$1 = index$
|
|
18621
|
+
var TabScreen$1 = index$5(View)({
|
|
17278
18622
|
flex: 1
|
|
17279
18623
|
});
|
|
17280
|
-
var StyledIndicator = index$
|
|
18624
|
+
var StyledIndicator = index$5(Animated.View)(function (_ref3) {
|
|
17281
18625
|
var theme = _ref3.theme,
|
|
17282
18626
|
themeWidth = _ref3.themeWidth;
|
|
17283
18627
|
return {
|
|
@@ -17310,17 +18654,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17310
18654
|
});
|
|
17311
18655
|
};
|
|
17312
18656
|
|
|
17313
|
-
var TabScreen = index$
|
|
18657
|
+
var TabScreen = index$5(View)({
|
|
17314
18658
|
flex: 1
|
|
17315
18659
|
});
|
|
17316
|
-
var TabContainer = index$
|
|
18660
|
+
var TabContainer = index$5(View)({
|
|
17317
18661
|
flex: 1,
|
|
17318
18662
|
overflow: 'hidden'
|
|
17319
18663
|
});
|
|
17320
|
-
var ContentWrapper = index$
|
|
18664
|
+
var ContentWrapper = index$5(PagerView)({
|
|
17321
18665
|
flex: 1
|
|
17322
18666
|
});
|
|
17323
|
-
var HeaderTabWrapper = index$
|
|
18667
|
+
var HeaderTabWrapper = index$5(View)(function (_ref) {
|
|
17324
18668
|
var theme = _ref.theme,
|
|
17325
18669
|
themeInsets = _ref.themeInsets;
|
|
17326
18670
|
return {
|
|
@@ -17329,21 +18673,21 @@ var HeaderTabWrapper = index$2(View)(function (_ref) {
|
|
|
17329
18673
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
17330
18674
|
};
|
|
17331
18675
|
});
|
|
17332
|
-
var HeaderTabItem = index$
|
|
18676
|
+
var HeaderTabItem = index$5(Animated.View)(function (_ref2) {
|
|
17333
18677
|
var theme = _ref2.theme;
|
|
17334
18678
|
return {
|
|
17335
18679
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
17336
18680
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
17337
18681
|
};
|
|
17338
18682
|
});
|
|
17339
|
-
var HeaderTabItemOutlineWrapper = index$
|
|
18683
|
+
var HeaderTabItemOutlineWrapper = index$5(View)(function (_ref3) {
|
|
17340
18684
|
var theme = _ref3.theme;
|
|
17341
18685
|
return _objectSpread2({
|
|
17342
18686
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
17343
18687
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
17344
18688
|
}, StyleSheet$1.absoluteFillObject);
|
|
17345
18689
|
});
|
|
17346
|
-
var HeaderTabItemOutline = index$
|
|
18690
|
+
var HeaderTabItemOutline = index$5(Animated.View)(function (_ref4) {
|
|
17347
18691
|
var theme = _ref4.theme,
|
|
17348
18692
|
themeActive = _ref4.themeActive;
|
|
17349
18693
|
return {
|
|
@@ -17351,7 +18695,7 @@ var HeaderTabItemOutline = index$2(Animated.View)(function (_ref4) {
|
|
|
17351
18695
|
backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
|
|
17352
18696
|
};
|
|
17353
18697
|
});
|
|
17354
|
-
var HeaderTabItemWrapper = index$
|
|
18698
|
+
var HeaderTabItemWrapper = index$5(View)(function (_ref5) {
|
|
17355
18699
|
var theme = _ref5.theme;
|
|
17356
18700
|
return {
|
|
17357
18701
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
@@ -17662,7 +19006,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17662
19006
|
})));
|
|
17663
19007
|
};
|
|
17664
19008
|
|
|
17665
|
-
var index = Object.assign(Tabs, {
|
|
19009
|
+
var index$1 = Object.assign(Tabs, {
|
|
17666
19010
|
Scroll: ScrollableTab
|
|
17667
19011
|
});
|
|
17668
19012
|
|
|
@@ -17672,7 +19016,7 @@ var BACKGROUND_INTENTS = {
|
|
|
17672
19016
|
danger: 'dangerBackground',
|
|
17673
19017
|
info: 'infoBackground'
|
|
17674
19018
|
};
|
|
17675
|
-
var StyledView = index$
|
|
19019
|
+
var StyledView = index$5(View)(function (_ref) {
|
|
17676
19020
|
var themeIntent = _ref.themeIntent,
|
|
17677
19021
|
theme = _ref.theme;
|
|
17678
19022
|
return {
|
|
@@ -17684,7 +19028,7 @@ var StyledView = index$2(View)(function (_ref) {
|
|
|
17684
19028
|
backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
|
|
17685
19029
|
};
|
|
17686
19030
|
});
|
|
17687
|
-
var StyledText = index$
|
|
19031
|
+
var StyledText = index$5(Text$1)(function (_ref2) {
|
|
17688
19032
|
var themeIntent = _ref2.themeIntent,
|
|
17689
19033
|
theme = _ref2.theme;
|
|
17690
19034
|
return {
|
|
@@ -17716,7 +19060,7 @@ var Tag = function Tag(_ref) {
|
|
|
17716
19060
|
}, content));
|
|
17717
19061
|
};
|
|
17718
19062
|
|
|
17719
|
-
var ToastContainerWrapper = index$
|
|
19063
|
+
var ToastContainerWrapper = index$5(View)(function (_ref) {
|
|
17720
19064
|
var theme = _ref.theme,
|
|
17721
19065
|
position = _ref.position;
|
|
17722
19066
|
return _objectSpread2(_objectSpread2({}, StyleSheet$1.absoluteFillObject), {}, {
|
|
@@ -17726,7 +19070,7 @@ var ToastContainerWrapper = index$2(View)(function (_ref) {
|
|
|
17726
19070
|
elevation: 9999
|
|
17727
19071
|
});
|
|
17728
19072
|
});
|
|
17729
|
-
var Container = index$
|
|
19073
|
+
var Container = index$5(Animated.View)(function (_ref2) {
|
|
17730
19074
|
var theme = _ref2.theme,
|
|
17731
19075
|
themeVariant = _ref2.themeVariant,
|
|
17732
19076
|
themeIntent = _ref2.themeIntent;
|
|
@@ -17737,21 +19081,21 @@ var Container = index$2(Animated.View)(function (_ref2) {
|
|
|
17737
19081
|
flexDirection: 'row'
|
|
17738
19082
|
};
|
|
17739
19083
|
});
|
|
17740
|
-
var IconContainer = index$
|
|
19084
|
+
var IconContainer = index$5(View)(function (_ref3) {
|
|
17741
19085
|
var theme = _ref3.theme;
|
|
17742
19086
|
return {
|
|
17743
19087
|
alignItems: 'center',
|
|
17744
19088
|
paddingLeft: theme.__hd__.toast.space.mediumPadding
|
|
17745
19089
|
};
|
|
17746
19090
|
});
|
|
17747
|
-
var TextContainer = index$
|
|
19091
|
+
var TextContainer = index$5(View)(function (_ref4) {
|
|
17748
19092
|
var theme = _ref4.theme;
|
|
17749
19093
|
return {
|
|
17750
19094
|
paddingHorizontal: theme.__hd__.toast.space.mediumPadding,
|
|
17751
19095
|
flex: 1
|
|
17752
19096
|
};
|
|
17753
19097
|
});
|
|
17754
|
-
var ContentContainer = index$
|
|
19098
|
+
var ContentContainer = index$5(View)(function (_ref5) {
|
|
17755
19099
|
var theme = _ref5.theme,
|
|
17756
19100
|
showDivider = _ref5.showDivider;
|
|
17757
19101
|
return {
|
|
@@ -17762,7 +19106,7 @@ var ContentContainer = index$2(View)(function (_ref5) {
|
|
|
17762
19106
|
flexDirection: 'row'
|
|
17763
19107
|
};
|
|
17764
19108
|
});
|
|
17765
|
-
var CTAWrapper = index$
|
|
19109
|
+
var CTAWrapper = index$5(TouchableOpacity)(function (_ref6) {
|
|
17766
19110
|
var theme = _ref6.theme;
|
|
17767
19111
|
return {
|
|
17768
19112
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
@@ -18003,4 +19347,102 @@ var Toast = {
|
|
|
18003
19347
|
useToast: useToast
|
|
18004
19348
|
};
|
|
18005
19349
|
|
|
18006
|
-
|
|
19350
|
+
var ToolbarWrapper = index$5(View)(function (_ref) {
|
|
19351
|
+
var theme = _ref.theme;
|
|
19352
|
+
return {
|
|
19353
|
+
position: 'absolute',
|
|
19354
|
+
bottom: 0,
|
|
19355
|
+
left: 0,
|
|
19356
|
+
right: 0,
|
|
19357
|
+
zIndex: 9999,
|
|
19358
|
+
elevation: 9999,
|
|
19359
|
+
width: '100%',
|
|
19360
|
+
paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
|
|
19361
|
+
paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
|
|
19362
|
+
borderTopWidth: theme.__hd__.toolbar.borderWidths["default"],
|
|
19363
|
+
borderColor: theme.__hd__.toolbar.colors.border,
|
|
19364
|
+
flexDirection: 'row',
|
|
19365
|
+
alignItems: 'center',
|
|
19366
|
+
backgroundColor: theme.__hd__.toolbar.colors.background
|
|
19367
|
+
};
|
|
19368
|
+
});
|
|
19369
|
+
var alignment = {
|
|
19370
|
+
left: 'flex-start',
|
|
19371
|
+
center: 'center',
|
|
19372
|
+
right: 'flex-end'
|
|
19373
|
+
};
|
|
19374
|
+
var ToolbarGroupWrapper = index$5(View)(function (_ref2) {
|
|
19375
|
+
var align = _ref2.align;
|
|
19376
|
+
return {
|
|
19377
|
+
flex: 1,
|
|
19378
|
+
flexDirection: 'row',
|
|
19379
|
+
justifyContent: alignment[align],
|
|
19380
|
+
alignItems: 'center'
|
|
19381
|
+
};
|
|
19382
|
+
});
|
|
19383
|
+
var ToolbarItemWrapper = index$5(TouchableOpacity)(function (_ref3) {
|
|
19384
|
+
var theme = _ref3.theme;
|
|
19385
|
+
return {
|
|
19386
|
+
paddingVertical: theme.__hd__.toolbar.space.verticalPadding,
|
|
19387
|
+
paddingHorizontal: theme.__hd__.toolbar.space.horizontalPadding,
|
|
19388
|
+
alignItems: 'center'
|
|
19389
|
+
};
|
|
19390
|
+
});
|
|
19391
|
+
|
|
19392
|
+
var ToolbarItem = function ToolbarItem(_ref) {
|
|
19393
|
+
var icon = _ref.icon,
|
|
19394
|
+
label = _ref.label,
|
|
19395
|
+
onPress = _ref.onPress,
|
|
19396
|
+
_ref$intent = _ref.intent,
|
|
19397
|
+
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
19398
|
+
_ref$disabled = _ref.disabled,
|
|
19399
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
19400
|
+
return /*#__PURE__*/React.createElement(ToolbarItemWrapper, {
|
|
19401
|
+
onPress: onPress,
|
|
19402
|
+
disabled: disabled
|
|
19403
|
+
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
19404
|
+
icon: icon,
|
|
19405
|
+
size: label ? 'medium' : 'large',
|
|
19406
|
+
intent: disabled ? 'disabled-text' : intent,
|
|
19407
|
+
testID: "toolbar-item-icon-".concat(icon)
|
|
19408
|
+
}) : null, label ? /*#__PURE__*/React.createElement(Typography.Text, {
|
|
19409
|
+
fontSize: icon ? 'small' : 'large',
|
|
19410
|
+
fontWeight: "semi-bold",
|
|
19411
|
+
intent: disabled ? 'subdued' : intent
|
|
19412
|
+
}, label) : null);
|
|
19413
|
+
};
|
|
19414
|
+
|
|
19415
|
+
var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
19416
|
+
var _ref$align = _ref.align,
|
|
19417
|
+
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
19418
|
+
_ref$items = _ref.items,
|
|
19419
|
+
items = _ref$items === void 0 ? [] : _ref$items;
|
|
19420
|
+
return /*#__PURE__*/React.createElement(ToolbarGroupWrapper, {
|
|
19421
|
+
align: align
|
|
19422
|
+
}, items.map(function (_ref2) {
|
|
19423
|
+
var label = _ref2.label,
|
|
19424
|
+
icon = _ref2.icon,
|
|
19425
|
+
onPress = _ref2.onPress,
|
|
19426
|
+
disabled = _ref2.disabled,
|
|
19427
|
+
intent = _ref2.intent;
|
|
19428
|
+
return /*#__PURE__*/React.createElement(ToolbarItem, {
|
|
19429
|
+
key: "".concat(label, "-").concat(icon),
|
|
19430
|
+
label: label,
|
|
19431
|
+
icon: icon,
|
|
19432
|
+
intent: intent,
|
|
19433
|
+
onPress: onPress,
|
|
19434
|
+
disabled: disabled
|
|
19435
|
+
});
|
|
19436
|
+
}));
|
|
19437
|
+
};
|
|
19438
|
+
|
|
19439
|
+
var Toolbar = function Toolbar(_ref) {
|
|
19440
|
+
var children = _ref.children;
|
|
19441
|
+
return /*#__PURE__*/React.createElement(ToolbarWrapper, null, children);
|
|
19442
|
+
};
|
|
19443
|
+
|
|
19444
|
+
var index = Object.assign(Toolbar, {
|
|
19445
|
+
Group: ToolbarGroup
|
|
19446
|
+
});
|
|
19447
|
+
|
|
19448
|
+
export { Alert, Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet, CompoundButton as Button, index$4 as Card, CheckBox as Checkbox, Collapse, ContentNavigator, Divider, Drawer, index$3 as FAB, Icon, List, Progress, CompoundRadio as Radio, SectionHeading, index$2 as Select, Spinner, Switch, index$1 as Tabs, Tag, TextInput, ThemeProvider, Toast, index as Toolbar, Typography, getTheme, scale, theme, useTheme };
|