@televet/kibble-ui 1.14.10 → 1.15.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/build/components/Forms/Button/button.component.d.ts +1 -1
- package/build/components/Overlay/Modal/components/ModalCloseButton/modalCloseButton.component.d.ts +1 -1
- package/build/components/Overlay/Popover/components/PopoverBody/popoverBody.component.d.ts +2 -0
- package/build/components/Overlay/Popover/components/PopoverCloseButton/popoverCloseButton.component.d.ts +2 -0
- package/build/components/Overlay/Popover/components/PopoverFooter/popoverFooter.component.d.ts +4 -0
- package/build/components/Overlay/Popover/components/PopoverFooterButtons/popoverFooterButtons.component.d.ts +11 -0
- package/build/components/Overlay/Popover/components/PopoverHeader/popoverHeader.component.d.ts +7 -0
- package/build/components/Overlay/Popover/index.d.ts +8 -0
- package/build/components/Overlay/Popover/popover.component.d.ts +14 -0
- package/build/components/Overlay/Popover/popover.config.d.ts +2 -0
- package/build/components/Overlay/Popover/popover.types.d.ts +6 -0
- package/build/components/Overlay/index.d.ts +1 -0
- package/build/index.js +867 -791
- package/build/index.js.map +1 -1
- package/build/theme/theme.types.d.ts +2 -0
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1582,6 +1582,8 @@ var Icon = React.forwardRef(function (_a, ref) {
|
|
|
1582
1582
|
});
|
|
1583
1583
|
Icon.displayName = 'Icon';
|
|
1584
1584
|
|
|
1585
|
+
var useAdaptiveColor = function (color) { return react.useColorModeValue(color.light, color.dark); };
|
|
1586
|
+
|
|
1585
1587
|
var camelCaseToLabel = function (s) {
|
|
1586
1588
|
return s.replace(/([A-Z])/g, ' $1').replace(/^\w/, function (c) { return c.toUpperCase(); });
|
|
1587
1589
|
};
|
|
@@ -1619,810 +1621,390 @@ var toTitleCase = function (s) {
|
|
|
1619
1621
|
.join('');
|
|
1620
1622
|
};
|
|
1621
1623
|
|
|
1622
|
-
var
|
|
1623
|
-
var _a =
|
|
1624
|
-
var
|
|
1625
|
-
var
|
|
1626
|
-
var
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1624
|
+
var Tooltip = function (_a) {
|
|
1625
|
+
var children = _a.children, label = _a.label, _b = _a.openDelay, openDelay = _b === void 0 ? 350 : _b, _c = _a.placement, placement = _c === void 0 ? 'top' : _c, _d = _a.titleCaseLabel, titleCaseLabel = _d === void 0 ? true : _d, rest = __rest(_a, ["children", "label", "openDelay", "placement", "titleCaseLabel"]);
|
|
1626
|
+
var components = useTheme().components;
|
|
1627
|
+
var bg = useAdaptiveColor(components.Tooltip.color);
|
|
1628
|
+
var l = titleCaseLabel ? toTitleCase(label.toLowerCase()) : label;
|
|
1629
|
+
return (React__default["default"].createElement(react.Tooltip, __assign({ hasArrow: true, arrowSize: 10, label: l, bg: bg, openDelay: openDelay, placement: placement }, rest), children));
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
var TooltipGlobalStyle = {
|
|
1633
|
+
'[id^=tooltip]': {
|
|
1634
|
+
padding: '4px 8px 4px 8px !important',
|
|
1635
|
+
borderRadius: '4px !important',
|
|
1636
|
+
},
|
|
1637
|
+
};
|
|
1638
|
+
var TooltipConfig = {
|
|
1639
|
+
color: { light: semanticColors.background.dark, dark: semanticColors.background.light },
|
|
1640
|
+
baseStyle: {
|
|
1641
|
+
zIndex: 'tooltipExtra',
|
|
1642
|
+
},
|
|
1643
|
+
};
|
|
1644
|
+
|
|
1645
|
+
exports.AvatarVariant = void 0;
|
|
1646
|
+
(function (AvatarVariant) {
|
|
1647
|
+
AvatarVariant["Green"] = "green";
|
|
1648
|
+
AvatarVariant["Red"] = "red";
|
|
1649
|
+
AvatarVariant["Blue"] = "blue";
|
|
1650
|
+
AvatarVariant["Comet"] = "comet";
|
|
1651
|
+
AvatarVariant["Number"] = "number";
|
|
1652
|
+
AvatarVariant["Dashed"] = "dashed";
|
|
1653
|
+
AvatarVariant["Image"] = "image";
|
|
1654
|
+
})(exports.AvatarVariant || (exports.AvatarVariant = {}));
|
|
1655
|
+
var getAvatarVariant = function (charCode) {
|
|
1656
|
+
if (charCode >= 65 && charCode <= 71) {
|
|
1657
|
+
return exports.AvatarVariant.Blue;
|
|
1648
1658
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1659
|
+
else if (charCode >= 72 && charCode <= 77) {
|
|
1660
|
+
return exports.AvatarVariant.Red;
|
|
1661
|
+
}
|
|
1662
|
+
else if (charCode >= 78 && charCode <= 84) {
|
|
1663
|
+
return exports.AvatarVariant.Green;
|
|
1664
|
+
}
|
|
1665
|
+
else {
|
|
1666
|
+
return exports.AvatarVariant.Comet;
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
var Avatar = function (_a) {
|
|
1670
|
+
var name = _a.name, src = _a.src, _b = _a.isClinic, isClinic = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.showTooltip, showTooltip = _d === void 0 ? true : _d, _e = _a.tooltipPlacement, tooltipPlacement = _e === void 0 ? 'bottom' : _e, style = _a.style, handleClick = _a.handleClick, showRemoveButton = _a.showRemoveButton, handleRemoveButtonClick = _a.handleRemoveButtonClick, variant = _a.variant, tooltipText = _a.tooltipText, rest = __rest(_a, ["name", "src", "isClinic", "size", "showTooltip", "tooltipPlacement", "style", "handleClick", "showRemoveButton", "handleRemoveButtonClick", "variant", "tooltipText"]);
|
|
1671
|
+
var theme = useTheme();
|
|
1672
|
+
var _f = __read(React.useState(!!src), 2), isSrcValid = _f[0], setIsSrcValid = _f[1];
|
|
1673
|
+
var _g = __read(React.useState(false), 2), isHoveringAvatar = _g[0], setIsHoveringAvatar = _g[1];
|
|
1674
|
+
var _h = __read(React.useState(false), 2), isHoveringRemoveButton = _h[0], setIsHoveringRemoveButton = _h[1];
|
|
1675
|
+
var shouldHideRemoveButton = size === 'xs' || variant === exports.AvatarVariant.Dashed || variant === exports.AvatarVariant.Number;
|
|
1676
|
+
var _variant = isClinic ? 'comet' : getAvatarVariant(name.charCodeAt(0));
|
|
1677
|
+
if (isSrcValid) {
|
|
1678
|
+
_variant = 'image';
|
|
1679
|
+
}
|
|
1680
|
+
var avatarDynamicStyles = __assign({ cursor: handleClick ? 'pointer' : 'auto' }, style);
|
|
1681
|
+
var avatarMarkup = (React__default["default"].createElement(react.Avatar, __assign({}, rest, { name: name, src: src, size: size, style: avatarDynamicStyles, variant: variant || _variant, onClick: handleClick, onError: function () { return setIsSrcValid(false); }, onMouseEnter: function () { return setIsHoveringAvatar(true); }, onMouseLeave: function () { return setIsHoveringAvatar(false); } }), showRemoveButton && isHoveringAvatar && !shouldHideRemoveButton && (React__default["default"].createElement(react.Box, { backgroundColor: theme.colors.white, borderRadius: "9999px", cursor: "pointer", position: "absolute", top: "-4px", right: "-4px", onClick: handleRemoveButtonClick, onMouseEnter: function () { return setIsHoveringRemoveButton(true); }, onMouseLeave: function () { return setIsHoveringRemoveButton(false); } },
|
|
1682
|
+
React__default["default"].createElement(Icon, { name: "closeCircle", size: isHoveringRemoveButton ? 'sm' : 'xs', color: "default" })))));
|
|
1683
|
+
if (showTooltip) {
|
|
1684
|
+
return (React__default["default"].createElement(Tooltip, { label: tooltipText || name, placement: tooltipPlacement }, avatarMarkup));
|
|
1685
|
+
}
|
|
1686
|
+
return avatarMarkup;
|
|
1687
|
+
};
|
|
1652
1688
|
|
|
1653
|
-
var
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1689
|
+
var AvatarGroup = function (_a) {
|
|
1690
|
+
var avatars = _a.avatars, _b = _a.max, max = _b === void 0 ? 3 : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, handleAddButtonClick = _a.handleAddButtonClick, _d = _a.showAddButton, showAddButton = _d === void 0 ? true : _d, addButtonTooltipText = _a.addButtonTooltipText, _e = _a.showRemoveAvatarButton, showRemoveAvatarButton = _e === void 0 ? false : _e, handleRemoveButtonClick = _a.handleRemoveButtonClick;
|
|
1691
|
+
var mergedNames = React.useMemo(function () { return avatars.map(function (avatar) { return avatar.name; }).join(', '); }, [avatars]);
|
|
1692
|
+
var spacing = size === 'lg' || size === 'md' ? -2 : -1;
|
|
1693
|
+
return (React__default["default"].createElement(react.AvatarGroup, { size: size, spacing: spacing },
|
|
1694
|
+
avatars.length > max ? (React__default["default"].createElement(Avatar, { name: "".concat(avatars.length), size: size, variant: exports.AvatarVariant.Number, tooltipText: mergedNames })) : (avatars.map(function (avatar) { return (React__default["default"].createElement(Avatar, __assign({}, avatar, { key: avatar.name, size: size, showRemoveButton: showRemoveAvatarButton, handleRemoveButtonClick: handleRemoveButtonClick }))); })),
|
|
1695
|
+
showAddButton && (React__default["default"].createElement(Avatar, { name: "", variant: exports.AvatarVariant.Dashed, icon: React__default["default"].createElement(Icon, { name: "plus", color: "subtle", size: size }), onClick: handleAddButtonClick, tooltipText: addButtonTooltipText, size: size }))));
|
|
1696
|
+
};
|
|
1697
|
+
|
|
1698
|
+
var AvatarConfig = {
|
|
1699
|
+
baseStyle: {
|
|
1700
|
+
container: {
|
|
1701
|
+
backgroundColor: coreColors.white,
|
|
1702
|
+
borderWidth: '2px',
|
|
1703
|
+
boxShadow: "0 0 0 1px ".concat(coreColors.white),
|
|
1704
|
+
_hover: {
|
|
1705
|
+
backgroundColor: coreColors.gray[50],
|
|
1706
|
+
zIndex: 2,
|
|
1707
|
+
},
|
|
1708
|
+
_active: {
|
|
1709
|
+
backgroundColor: coreColors.gray[100],
|
|
1710
|
+
},
|
|
1662
1711
|
},
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
default: colors.teal['400'],
|
|
1666
|
-
hover: colors.teal['300'],
|
|
1667
|
-
active: colors.teal['100'],
|
|
1668
|
-
border: colors.transparent,
|
|
1712
|
+
label: {
|
|
1713
|
+
paddingTop: '1px',
|
|
1669
1714
|
},
|
|
1670
1715
|
},
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1716
|
+
sizes: {
|
|
1717
|
+
xs: {
|
|
1718
|
+
container: {
|
|
1719
|
+
height: '24px',
|
|
1720
|
+
width: '24px',
|
|
1721
|
+
},
|
|
1722
|
+
label: {
|
|
1723
|
+
fontSize: '12px',
|
|
1724
|
+
fontWeight: '600',
|
|
1725
|
+
lineHeight: '18px',
|
|
1726
|
+
},
|
|
1679
1727
|
},
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1728
|
+
sm: {
|
|
1729
|
+
container: {
|
|
1730
|
+
height: '32px',
|
|
1731
|
+
width: '32px',
|
|
1732
|
+
},
|
|
1733
|
+
label: {
|
|
1734
|
+
fontSize: '14px',
|
|
1735
|
+
fontWeight: '400',
|
|
1736
|
+
lineHeight: '24px',
|
|
1737
|
+
paddingTop: 0,
|
|
1738
|
+
},
|
|
1686
1739
|
},
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1740
|
+
md: {
|
|
1741
|
+
container: {
|
|
1742
|
+
height: '36px',
|
|
1743
|
+
width: '36px',
|
|
1744
|
+
},
|
|
1745
|
+
label: {
|
|
1746
|
+
fontSize: '16px',
|
|
1747
|
+
fontWeight: '400',
|
|
1748
|
+
lineHeight: '24px',
|
|
1749
|
+
},
|
|
1696
1750
|
},
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1751
|
+
lg: {
|
|
1752
|
+
container: {
|
|
1753
|
+
height: '40px',
|
|
1754
|
+
width: '40px',
|
|
1755
|
+
},
|
|
1756
|
+
label: {
|
|
1757
|
+
fontSize: '16px',
|
|
1758
|
+
fontWeight: '400',
|
|
1759
|
+
lineHeight: '24px',
|
|
1760
|
+
},
|
|
1703
1761
|
},
|
|
1704
1762
|
},
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
},
|
|
1714
|
-
dark: {
|
|
1715
|
-
content: colors.red['300'],
|
|
1716
|
-
default: colors.transparent,
|
|
1717
|
-
hover: colors.whiteAlpha['300'],
|
|
1718
|
-
active: colors.whiteAlpha['400'],
|
|
1719
|
-
border: colors.red['300'],
|
|
1763
|
+
variants: {
|
|
1764
|
+
red: {
|
|
1765
|
+
container: {
|
|
1766
|
+
borderColor: coreColors.red[300],
|
|
1767
|
+
},
|
|
1768
|
+
label: {
|
|
1769
|
+
color: coreColors.red[300],
|
|
1770
|
+
},
|
|
1720
1771
|
},
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
active: colors.gray['100'],
|
|
1729
|
-
border: colors.border.light.default,
|
|
1772
|
+
green: {
|
|
1773
|
+
container: {
|
|
1774
|
+
borderColor: coreColors.green[400],
|
|
1775
|
+
},
|
|
1776
|
+
label: {
|
|
1777
|
+
color: coreColors.green[400],
|
|
1778
|
+
},
|
|
1730
1779
|
},
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1780
|
+
blue: {
|
|
1781
|
+
container: {
|
|
1782
|
+
borderColor: coreColors.blue[300],
|
|
1783
|
+
},
|
|
1784
|
+
label: {
|
|
1785
|
+
color: coreColors.blue[300],
|
|
1786
|
+
},
|
|
1737
1787
|
},
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
active: colors.whiteAlpha['400'],
|
|
1753
|
-
border: colors.whiteAlpha['500'],
|
|
1754
|
-
},
|
|
1755
|
-
},
|
|
1756
|
-
tertiary: {
|
|
1757
|
-
variant: 'solid',
|
|
1758
|
-
light: {
|
|
1759
|
-
content: colors.text.light.default,
|
|
1760
|
-
default: colors.gray['100'],
|
|
1761
|
-
hover: colors.gray['200'],
|
|
1762
|
-
active: colors.gray['300'],
|
|
1763
|
-
border: colors.transparent,
|
|
1764
|
-
},
|
|
1765
|
-
dark: {
|
|
1766
|
-
content: colors.text.dark.headline,
|
|
1767
|
-
default: colors.whiteAlpha[200],
|
|
1768
|
-
hover: colors.whiteAlpha[300],
|
|
1769
|
-
active: colors.whiteAlpha[400],
|
|
1770
|
-
border: colors.transparent,
|
|
1771
|
-
},
|
|
1772
|
-
},
|
|
1773
|
-
tertiaryDestructive: {
|
|
1774
|
-
variant: 'solid',
|
|
1775
|
-
light: {
|
|
1776
|
-
content: colors.text.light.error,
|
|
1777
|
-
default: colors.red['100'],
|
|
1778
|
-
hover: colors.red['200'],
|
|
1779
|
-
active: colors.red['300'],
|
|
1780
|
-
border: colors.transparent,
|
|
1781
|
-
},
|
|
1782
|
-
dark: {
|
|
1783
|
-
content: colors.red['300'],
|
|
1784
|
-
default: colors.whiteAlpha['200'],
|
|
1785
|
-
hover: colors.whiteAlpha['300'],
|
|
1786
|
-
active: colors.whiteAlpha['400'],
|
|
1787
|
-
border: colors.transparent,
|
|
1788
|
-
},
|
|
1789
|
-
},
|
|
1790
|
-
ghost: {
|
|
1791
|
-
variant: 'ghost',
|
|
1792
|
-
light: {
|
|
1793
|
-
content: colors.text.light.link,
|
|
1794
|
-
default: colors.transparent,
|
|
1795
|
-
hover: colors.teal['100'],
|
|
1796
|
-
active: colors.teal['200'],
|
|
1797
|
-
border: colors.transparent,
|
|
1798
|
-
},
|
|
1799
|
-
dark: {
|
|
1800
|
-
content: colors.teal['400'],
|
|
1801
|
-
default: colors.transparent,
|
|
1802
|
-
hover: colors.whiteAlpha['300'],
|
|
1803
|
-
active: colors.whiteAlpha['400'],
|
|
1804
|
-
border: colors.transparent,
|
|
1805
|
-
},
|
|
1806
|
-
},
|
|
1807
|
-
ghostNeutral: {
|
|
1808
|
-
variant: 'ghost',
|
|
1809
|
-
light: {
|
|
1810
|
-
content: colors.text.light.default,
|
|
1811
|
-
default: colors.transparent,
|
|
1812
|
-
hover: colors.blackAlpha['100'],
|
|
1813
|
-
active: colors.blackAlpha['200'],
|
|
1814
|
-
border: colors.transparent,
|
|
1788
|
+
comet: {
|
|
1789
|
+
container: {
|
|
1790
|
+
backgroundColor: coreColors.comet[50],
|
|
1791
|
+
borderColor: coreColors.comet[400],
|
|
1792
|
+
_hover: {
|
|
1793
|
+
backgroundColor: coreColors.comet[100],
|
|
1794
|
+
},
|
|
1795
|
+
_active: {
|
|
1796
|
+
backgroundColor: coreColors.comet[200],
|
|
1797
|
+
},
|
|
1798
|
+
},
|
|
1799
|
+
label: {
|
|
1800
|
+
color: coreColors.comet[800],
|
|
1801
|
+
},
|
|
1815
1802
|
},
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1803
|
+
number: {
|
|
1804
|
+
container: {
|
|
1805
|
+
backgroundColor: coreColors.blue[800],
|
|
1806
|
+
border: 0,
|
|
1807
|
+
_hover: {
|
|
1808
|
+
backgroundColor: coreColors.blue[800], // 700
|
|
1809
|
+
},
|
|
1810
|
+
_active: {
|
|
1811
|
+
backgroundColor: coreColors.blue[800], // 600
|
|
1812
|
+
},
|
|
1813
|
+
},
|
|
1814
|
+
label: {
|
|
1815
|
+
color: coreColors.white,
|
|
1816
|
+
},
|
|
1822
1817
|
},
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1818
|
+
dashed: {
|
|
1819
|
+
container: {
|
|
1820
|
+
backgroundColor: coreColors.transparent,
|
|
1821
|
+
border: '1px dashed',
|
|
1822
|
+
borderColor: semanticColors.border.dark,
|
|
1823
|
+
boxShadow: 0,
|
|
1824
|
+
_hover: {
|
|
1825
|
+
backgroundColor: coreColors.blackAlpha[100],
|
|
1826
|
+
zIndex: 0,
|
|
1827
|
+
},
|
|
1828
|
+
_active: {
|
|
1829
|
+
backgroundColor: coreColors.blackAlpha[200],
|
|
1830
|
+
},
|
|
1831
|
+
},
|
|
1832
|
+
label: {
|
|
1833
|
+
color: adaptiveColors.icon.light.subtle,
|
|
1834
|
+
},
|
|
1832
1835
|
},
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1836
|
+
image: {
|
|
1837
|
+
container: {
|
|
1838
|
+
border: 0,
|
|
1839
|
+
_hover: {
|
|
1840
|
+
backgroundColor: coreColors.black,
|
|
1841
|
+
img: { opacity: 0.94 },
|
|
1842
|
+
},
|
|
1843
|
+
_active: {
|
|
1844
|
+
backgroundColor: coreColors.black,
|
|
1845
|
+
img: { opacity: 0.92 },
|
|
1846
|
+
},
|
|
1847
|
+
},
|
|
1839
1848
|
},
|
|
1840
1849
|
},
|
|
1841
|
-
};
|
|
1842
|
-
var ButtonSizeConfig = {
|
|
1843
|
-
lg: {
|
|
1844
|
-
p: '0 20px',
|
|
1845
|
-
},
|
|
1846
|
-
md: {
|
|
1847
|
-
p: '0 16px',
|
|
1848
|
-
},
|
|
1849
|
-
sm: {
|
|
1850
|
-
p: '0 12px',
|
|
1851
|
-
},
|
|
1852
|
-
xs: {
|
|
1853
|
-
p: '0 8px',
|
|
1854
|
-
},
|
|
1855
1850
|
};
|
|
1856
1851
|
|
|
1857
|
-
var
|
|
1858
|
-
|
|
1859
|
-
|
|
1852
|
+
var _path$k, _path2$7;
|
|
1853
|
+
|
|
1854
|
+
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
1855
|
+
|
|
1856
|
+
var SvgTeal = function SvgTeal(props) {
|
|
1857
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
1858
|
+
viewBox: "0 0 200 44",
|
|
1859
|
+
fill: "none",
|
|
1860
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1861
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1862
|
+
d: "M176.773 35.166c-2.461 4.878-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.135 2.149h-21.749c.313 3.49 3.49 5.996 7.115 5.996 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM192.482 3.929v8.682H200v7.205h-7.518v10.875c0 3.178 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.894v7.563c-1.298.671-3.311 1.208-6.131 1.208-6.221 0-10.069-3.849-10.069-10.427V19.86h-4.207v-7.205h4.207V3.974h8.727v-.045ZM139.047.035c-3.715.18-6.713 3.178-6.892 6.892-.179 4.162 3.133 7.564 7.205 7.564h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.862 4.744-8.951.895-1.79 1.253-2.327 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.396h-.045L117.521.037h-10.696l17.23 33.52 4.878 9.442 4.922-9.622-4.833-9.98Z",
|
|
1863
|
+
fill: "#050E5F"
|
|
1864
|
+
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1865
|
+
d: "M0 .26h31.193v8.413H20.139v33.564h-9.04V8.673H0V.259ZM58.537 35.166c-2.462 4.879-7.25 7.877-13.74 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.029-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.388 6.355-3.58l7.385 2.863Zm-7.564-11.009c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.64-6.668 5.46h13.246ZM73.216.26v41.977h-8.772V.26h8.772ZM107.675 35.166c-2.461 4.879-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.029-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.388 6.355-3.58l7.384 2.863Zm-7.518-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247Z",
|
|
1866
|
+
fill: "#39ADC3"
|
|
1867
|
+
})));
|
|
1860
1868
|
};
|
|
1861
1869
|
|
|
1862
|
-
var
|
|
1863
|
-
|
|
1864
|
-
|
|
1870
|
+
var _path$j;
|
|
1871
|
+
|
|
1872
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
1873
|
+
|
|
1874
|
+
var SvgTealIcon = function SvgTealIcon(props) {
|
|
1875
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
1876
|
+
viewBox: "0 0 56 60",
|
|
1877
|
+
fill: "none",
|
|
1878
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1879
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1880
|
+
d: "M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",
|
|
1881
|
+
fill: "#39ADC3"
|
|
1882
|
+
})));
|
|
1865
1883
|
};
|
|
1866
1884
|
|
|
1867
|
-
|
|
1868
|
-
(function (AlertVariant) {
|
|
1869
|
-
AlertVariant["Error"] = "error";
|
|
1870
|
-
AlertVariant["Warning"] = "warning";
|
|
1871
|
-
AlertVariant["Success"] = "success";
|
|
1872
|
-
AlertVariant["Info"] = "info";
|
|
1873
|
-
})(exports.AlertVariant || (exports.AlertVariant = {}));
|
|
1874
|
-
exports.AlertStatusIcon = void 0;
|
|
1875
|
-
(function (AlertStatusIcon) {
|
|
1876
|
-
AlertStatusIcon["error"] = "warningSign";
|
|
1877
|
-
AlertStatusIcon["warning"] = "warningSign";
|
|
1878
|
-
AlertStatusIcon["success"] = "checkmark";
|
|
1879
|
-
AlertStatusIcon["info"] = "infoCircleOutlined";
|
|
1880
|
-
})(exports.AlertStatusIcon || (exports.AlertStatusIcon = {}));
|
|
1885
|
+
var _path$i;
|
|
1881
1886
|
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
1888
|
+
|
|
1889
|
+
var SvgBlack = function SvgBlack(props) {
|
|
1890
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
1891
|
+
viewBox: "0 0 200 44",
|
|
1892
|
+
fill: "none",
|
|
1893
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1894
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1895
|
+
d: "M0 .23h31.193v8.414H20.139V42.21h-9.04V8.644H0V.231ZM58.537 35.138c-2.462 4.878-7.25 7.876-13.74 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.387 6.355-3.58l7.385 2.864Zm-7.564-11.01c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.641-6.669 5.46h13.247ZM73.216.23V42.21h-8.772V.23h8.772ZM107.675 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.22 0-15.708-6.4-15.708-15.574 0-8.95 6.578-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.03-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.518-11.01c-.358-3.177-3.044-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM176.773 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.135 2.148h-21.749c.313 3.49 3.49 5.997 7.115 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.01c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM192.482 3.9v8.682H200v7.206h-7.518v10.875c0 3.177 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.895v7.563c-1.298.671-3.311 1.209-6.131 1.209-6.221 0-10.069-3.85-10.069-10.428v-12.71h-4.207v-7.205h4.207V3.945h8.727V3.9ZM139.047.007c-3.715.179-6.713 3.177-6.892 6.892-.179 4.162 3.133 7.563 7.205 7.563h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.861 4.744-8.95.895-1.79 1.253-2.328 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.368h-.045L117.521.007h-10.696l17.23 33.52 4.878 9.442 4.922-9.621-4.833-9.98Z",
|
|
1896
|
+
fill: "#000"
|
|
1897
|
+
})));
|
|
1887
1898
|
};
|
|
1888
1899
|
|
|
1889
|
-
var
|
|
1890
|
-
variants: {
|
|
1891
|
-
regular: {
|
|
1892
|
-
fontWeight: fontWeights.normal,
|
|
1893
|
-
},
|
|
1894
|
-
semibold: {
|
|
1895
|
-
fontWeight: fontWeights.semibold,
|
|
1896
|
-
},
|
|
1897
|
-
},
|
|
1898
|
-
sizes: {
|
|
1899
|
-
xs: {
|
|
1900
|
-
fontSize: '12px',
|
|
1901
|
-
lineHeight: '150%',
|
|
1902
|
-
},
|
|
1903
|
-
sm: {
|
|
1904
|
-
fontSize: '14px',
|
|
1905
|
-
lineHeight: '150%',
|
|
1906
|
-
},
|
|
1907
|
-
md: {
|
|
1908
|
-
fontSize: '16px',
|
|
1909
|
-
lineHeight: '150%',
|
|
1910
|
-
},
|
|
1911
|
-
lg: {
|
|
1912
|
-
fontSize: '18px',
|
|
1913
|
-
lineHeight: '150%',
|
|
1914
|
-
},
|
|
1915
|
-
xl: {
|
|
1916
|
-
fontSize: '20px',
|
|
1917
|
-
lineHeight: '150%',
|
|
1918
|
-
},
|
|
1919
|
-
'2xl': {
|
|
1920
|
-
fontSize: '24px',
|
|
1921
|
-
lineHeight: '150%',
|
|
1922
|
-
},
|
|
1923
|
-
'3xl': {
|
|
1924
|
-
fontSize: '30px',
|
|
1925
|
-
lineHeight: '150%',
|
|
1926
|
-
},
|
|
1927
|
-
'4xl': {
|
|
1928
|
-
fontSize: '36px',
|
|
1929
|
-
lineHeight: '150%',
|
|
1930
|
-
},
|
|
1931
|
-
'5xl': {
|
|
1932
|
-
fontSize: '48px',
|
|
1933
|
-
lineHeight: '150%',
|
|
1934
|
-
},
|
|
1935
|
-
'6xl': {
|
|
1936
|
-
fontSize: '60px',
|
|
1937
|
-
lineHeight: '150%',
|
|
1938
|
-
},
|
|
1939
|
-
},
|
|
1940
|
-
};
|
|
1900
|
+
var _path$h;
|
|
1941
1901
|
|
|
1942
|
-
function
|
|
1943
|
-
// Initialize state with undefined width/height so server and client renders match
|
|
1944
|
-
// Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/
|
|
1945
|
-
var _a = __read(React.useState({
|
|
1946
|
-
width: undefined,
|
|
1947
|
-
height: undefined,
|
|
1948
|
-
}), 2), windowSize = _a[0], setWindowSize = _a[1];
|
|
1949
|
-
React.useEffect(function () {
|
|
1950
|
-
// Handler to call on window resize
|
|
1951
|
-
function handleResize() {
|
|
1952
|
-
// Set window width/height to state
|
|
1953
|
-
setWindowSize({
|
|
1954
|
-
width: window.innerWidth,
|
|
1955
|
-
height: window.innerHeight,
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
// Add event listener
|
|
1959
|
-
window.addEventListener('resize', handleResize);
|
|
1960
|
-
// Call handler right away so state gets updated with initial window size
|
|
1961
|
-
handleResize();
|
|
1962
|
-
// Remove event listener on cleanup
|
|
1963
|
-
return function () { return window.removeEventListener('resize', handleResize); };
|
|
1964
|
-
}, []); // Empty array ensures that effect is only run on mount
|
|
1965
|
-
return windowSize;
|
|
1966
|
-
}
|
|
1902
|
+
function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
1967
1903
|
|
|
1968
|
-
var
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
return false;
|
|
1978
|
-
}, []);
|
|
1979
|
-
React.useEffect(function () {
|
|
1980
|
-
// if size of window changes, or if title length changes, check if text is overflowing
|
|
1981
|
-
var isOverFlowing = onCheckTextOverFlowing(textRef);
|
|
1982
|
-
setIsTextOverFlowing(isOverFlowing);
|
|
1983
|
-
}, [size, text, onCheckTextOverFlowing, textRef]);
|
|
1984
|
-
return isTextOverFlowing;
|
|
1904
|
+
var SvgBlackIcon = function SvgBlackIcon(props) {
|
|
1905
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
1906
|
+
viewBox: "0 0 56 60",
|
|
1907
|
+
fill: "none",
|
|
1908
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1909
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1910
|
+
d: "M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.5 1.253-2.522 1.765-3.245 1.765-5.255ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",
|
|
1911
|
+
fill: "#000"
|
|
1912
|
+
})));
|
|
1985
1913
|
};
|
|
1986
1914
|
|
|
1987
|
-
var
|
|
1988
|
-
var _b = _a.status, status = _b === void 0 ? exports.AlertVariant.Success : _b, _c = _a.showIcon, showIcon = _c === void 0 ? true : _c, iconProps = _a.iconProps, _d = _a.showButton, showButton = _d === void 0 ? false : _d, buttonProps = _a.buttonProps, buttonTitle = _a.buttonTitle, alertTitle = _a.alertTitle, titleProps = _a.titleProps, description = _a.description, descriptionProps = _a.descriptionProps, _e = _a.showCloseButton, showCloseButton = _e === void 0 ? true : _e, onClose = _a.onClose, rest = __rest(_a, ["status", "showIcon", "iconProps", "showButton", "buttonProps", "buttonTitle", "alertTitle", "titleProps", "description", "descriptionProps", "showCloseButton", "onClose"]);
|
|
1989
|
-
var titleRef = React.useRef(null);
|
|
1990
|
-
var isTitleOverflowing = useOverflowingText(alertTitle, titleRef);
|
|
1991
|
-
var showButtonInline = showButton && !description && !isTitleOverflowing;
|
|
1992
|
-
var showButtonBottom = (showButton && description) || (showButton && !description && isTitleOverflowing);
|
|
1993
|
-
return (React__default["default"].createElement(react.Alert, __assign({ justifyContent: "space-between", overflow: "visible", variant: status, pl: 3, pr: showCloseButton ? 2 : 3 }, rest),
|
|
1994
|
-
React__default["default"].createElement(react.HStack, { justifyContent: "space-between", w: "100%" },
|
|
1995
|
-
showIcon && (React__default["default"].createElement(react.Flex, { alignSelf: "flex-start" },
|
|
1996
|
-
React__default["default"].createElement(AlertIcon, __assign({ status: status, name: (iconProps === null || iconProps === void 0 ? void 0 : iconProps.name) || exports.AlertStatusIcon[status] }, iconProps)))),
|
|
1997
|
-
React__default["default"].createElement(react.Flex, __assign({ width: "100%", flexDirection: "column" }, (showIcon && { ml: 2 })),
|
|
1998
|
-
React__default["default"].createElement(react.Flex, { alignItems: "flex-start", w: "100%", justifyContent: "space-between" },
|
|
1999
|
-
React__default["default"].createElement(react.Box, { ref: titleRef },
|
|
2000
|
-
React__default["default"].createElement(Text, __assign({ size: "md", variant: "semibold" }, titleProps), alertTitle)),
|
|
2001
|
-
React__default["default"].createElement(react.Flex, { alignItems: "center" },
|
|
2002
|
-
showButtonInline && (React__default["default"].createElement(AlertButton, __assign({ alignment: "right", status: status }, buttonProps, { pairedWithCloseButton: showCloseButton }), buttonTitle)),
|
|
2003
|
-
showCloseButton && React__default["default"].createElement(Button, { variant: "ghostNeutral", iconName: "close", size: "xs", onClick: onClose }))),
|
|
2004
|
-
description && (React__default["default"].createElement(Text, __assign({ size: "md" }, descriptionProps), description)),
|
|
2005
|
-
React__default["default"].createElement(react.Box, null, showButtonBottom && (React__default["default"].createElement(AlertButton, __assign({ alignment: "bottom", status: status }, buttonProps), buttonTitle)))))));
|
|
2006
|
-
};
|
|
1915
|
+
var _path$g;
|
|
2007
1916
|
|
|
2008
|
-
var
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
backgroundColor: colors.background.info,
|
|
2020
|
-
},
|
|
2021
|
-
},
|
|
2022
|
-
success: {
|
|
2023
|
-
container: {
|
|
2024
|
-
backgroundColor: colors.background.success,
|
|
2025
|
-
},
|
|
2026
|
-
},
|
|
2027
|
-
warning: {
|
|
2028
|
-
container: {
|
|
2029
|
-
backgroundColor: colors.background.warning,
|
|
2030
|
-
},
|
|
2031
|
-
},
|
|
2032
|
-
error: {
|
|
2033
|
-
container: {
|
|
2034
|
-
backgroundColor: colors.background.error,
|
|
2035
|
-
},
|
|
2036
|
-
},
|
|
2037
|
-
},
|
|
1917
|
+
function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
1918
|
+
|
|
1919
|
+
var SvgWhite = function SvgWhite(props) {
|
|
1920
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
1921
|
+
viewBox: "0 0 200 44",
|
|
1922
|
+
fill: "none",
|
|
1923
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1924
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1925
|
+
d: "M0 .245h31.193v8.413H20.139v33.565h-9.04V8.66H0V.245ZM58.537 35.152c-2.462 4.878-7.25 7.877-13.74 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.134 2.148h-21.75c.313 3.491 3.49 5.997 7.115 5.997 3.223 0 4.968-1.387 6.355-3.58l7.385 2.864Zm-7.564-11.009c-.358-3.178-3.043-5.46-6.578-5.46-3.491 0-6.31 2.64-6.669 5.46h13.247ZM73.216.245v41.978h-8.772V.245h8.772ZM107.675 35.152c-2.461 4.878-7.25 7.877-13.739 7.877-9.22 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.842 0 1.03-.044 1.79-.134 2.148H86.82c.314 3.491 3.491 5.997 7.116 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.518-11.009c-.358-3.178-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM176.773 35.152c-2.461 4.878-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.135 2.148h-21.749c.313 3.491 3.49 5.997 7.115 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.009c-.358-3.178-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM192.482 3.915v8.682H200v7.205h-7.518v10.875c0 3.177 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.895v7.563c-1.298.672-3.311 1.209-6.131 1.209-6.22 0-10.069-3.849-10.069-10.428v-12.71h-4.207v-7.204h4.207V3.959h8.727v-.044ZM139.047.021c-3.715.18-6.713 3.178-6.892 6.892-.179 4.162 3.133 7.563 7.205 7.563h.179l.134 5.236c0 .493.716.672.94.224 0 0 4.699-8.86 4.744-8.95.895-1.79 1.253-2.328 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.382h-.045L117.521.022h-10.696l17.23 33.52 4.878 9.442 4.922-9.622-4.833-9.98Z",
|
|
1926
|
+
fill: "#fff"
|
|
1927
|
+
})));
|
|
2038
1928
|
};
|
|
2039
1929
|
|
|
2040
|
-
var
|
|
1930
|
+
var _path$f;
|
|
2041
1931
|
|
|
2042
|
-
|
|
2043
|
-
var children = _a.children, label = _a.label, _b = _a.openDelay, openDelay = _b === void 0 ? 350 : _b, _c = _a.placement, placement = _c === void 0 ? 'top' : _c, _d = _a.titleCaseLabel, titleCaseLabel = _d === void 0 ? true : _d, rest = __rest(_a, ["children", "label", "openDelay", "placement", "titleCaseLabel"]);
|
|
2044
|
-
var components = useTheme().components;
|
|
2045
|
-
var bg = useAdaptiveColor(components.Tooltip.color);
|
|
2046
|
-
var l = titleCaseLabel ? toTitleCase(label.toLowerCase()) : label;
|
|
2047
|
-
return (React__default["default"].createElement(react.Tooltip, __assign({ hasArrow: true, arrowSize: 10, label: l, bg: bg, openDelay: openDelay, placement: placement }, rest), children));
|
|
2048
|
-
};
|
|
1932
|
+
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
2049
1933
|
|
|
2050
|
-
var
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
zIndex: 'tooltipExtra',
|
|
2060
|
-
},
|
|
1934
|
+
var SvgWhiteIcon = function SvgWhiteIcon(props) {
|
|
1935
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
1936
|
+
viewBox: "0 0 56 60",
|
|
1937
|
+
fill: "none",
|
|
1938
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1939
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1940
|
+
d: "M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",
|
|
1941
|
+
fill: "#fff"
|
|
1942
|
+
})));
|
|
2061
1943
|
};
|
|
2062
1944
|
|
|
2063
|
-
|
|
2064
|
-
(function (AvatarVariant) {
|
|
2065
|
-
AvatarVariant["Green"] = "green";
|
|
2066
|
-
AvatarVariant["Red"] = "red";
|
|
2067
|
-
AvatarVariant["Blue"] = "blue";
|
|
2068
|
-
AvatarVariant["Comet"] = "comet";
|
|
2069
|
-
AvatarVariant["Number"] = "number";
|
|
2070
|
-
AvatarVariant["Dashed"] = "dashed";
|
|
2071
|
-
AvatarVariant["Image"] = "image";
|
|
2072
|
-
})(exports.AvatarVariant || (exports.AvatarVariant = {}));
|
|
2073
|
-
var getAvatarVariant = function (charCode) {
|
|
2074
|
-
if (charCode >= 65 && charCode <= 71) {
|
|
2075
|
-
return exports.AvatarVariant.Blue;
|
|
2076
|
-
}
|
|
2077
|
-
else if (charCode >= 72 && charCode <= 77) {
|
|
2078
|
-
return exports.AvatarVariant.Red;
|
|
2079
|
-
}
|
|
2080
|
-
else if (charCode >= 78 && charCode <= 84) {
|
|
2081
|
-
return exports.AvatarVariant.Green;
|
|
2082
|
-
}
|
|
2083
|
-
else {
|
|
2084
|
-
return exports.AvatarVariant.Comet;
|
|
2085
|
-
}
|
|
2086
|
-
};
|
|
2087
|
-
var Avatar = function (_a) {
|
|
2088
|
-
var name = _a.name, src = _a.src, _b = _a.isClinic, isClinic = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, _d = _a.showTooltip, showTooltip = _d === void 0 ? true : _d, _e = _a.tooltipPlacement, tooltipPlacement = _e === void 0 ? 'bottom' : _e, style = _a.style, handleClick = _a.handleClick, showRemoveButton = _a.showRemoveButton, handleRemoveButtonClick = _a.handleRemoveButtonClick, variant = _a.variant, tooltipText = _a.tooltipText, rest = __rest(_a, ["name", "src", "isClinic", "size", "showTooltip", "tooltipPlacement", "style", "handleClick", "showRemoveButton", "handleRemoveButtonClick", "variant", "tooltipText"]);
|
|
2089
|
-
var theme = useTheme();
|
|
2090
|
-
var _f = __read(React.useState(!!src), 2), isSrcValid = _f[0], setIsSrcValid = _f[1];
|
|
2091
|
-
var _g = __read(React.useState(false), 2), isHoveringAvatar = _g[0], setIsHoveringAvatar = _g[1];
|
|
2092
|
-
var _h = __read(React.useState(false), 2), isHoveringRemoveButton = _h[0], setIsHoveringRemoveButton = _h[1];
|
|
2093
|
-
var shouldHideRemoveButton = size === 'xs' || variant === exports.AvatarVariant.Dashed || variant === exports.AvatarVariant.Number;
|
|
2094
|
-
var _variant = isClinic ? 'comet' : getAvatarVariant(name.charCodeAt(0));
|
|
2095
|
-
if (isSrcValid) {
|
|
2096
|
-
_variant = 'image';
|
|
2097
|
-
}
|
|
2098
|
-
var avatarDynamicStyles = __assign({ cursor: handleClick ? 'pointer' : 'auto' }, style);
|
|
2099
|
-
var avatarMarkup = (React__default["default"].createElement(react.Avatar, __assign({}, rest, { name: name, src: src, size: size, style: avatarDynamicStyles, variant: variant || _variant, onClick: handleClick, onError: function () { return setIsSrcValid(false); }, onMouseEnter: function () { return setIsHoveringAvatar(true); }, onMouseLeave: function () { return setIsHoveringAvatar(false); } }), showRemoveButton && isHoveringAvatar && !shouldHideRemoveButton && (React__default["default"].createElement(react.Box, { backgroundColor: theme.colors.white, borderRadius: "9999px", cursor: "pointer", position: "absolute", top: "-4px", right: "-4px", onClick: handleRemoveButtonClick, onMouseEnter: function () { return setIsHoveringRemoveButton(true); }, onMouseLeave: function () { return setIsHoveringRemoveButton(false); } },
|
|
2100
|
-
React__default["default"].createElement(Icon, { name: "closeCircle", size: isHoveringRemoveButton ? 'sm' : 'xs', color: "default" })))));
|
|
2101
|
-
if (showTooltip) {
|
|
2102
|
-
return (React__default["default"].createElement(Tooltip, { label: tooltipText || name, placement: tooltipPlacement }, avatarMarkup));
|
|
2103
|
-
}
|
|
2104
|
-
return avatarMarkup;
|
|
2105
|
-
};
|
|
1945
|
+
var _path$e, _path2$6, _path3$5, _path4$4, _path5$4;
|
|
2106
1946
|
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
1947
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
1948
|
+
|
|
1949
|
+
var SvgNewYears = function SvgNewYears(props) {
|
|
1950
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
1951
|
+
viewBox: "0 0 87 73",
|
|
1952
|
+
fill: "none",
|
|
1953
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1954
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1955
|
+
d: "M11.704 21.272c7.54.486 13.941 2.812 19.312 7.679 2.604 2.325 4.503 5.191 5.859 8.436.325.811.596 1.676.65 2.542v.54c0 .163-.108.271-.162.38-.217.27-.38.215-.542-.055-1.41-2.38-3.093-4.488-4.991-6.49-2.658-2.703-5.75-4.866-9.114-6.651-3.31-1.73-6.78-3.082-10.416-3.894-.976-.216-1.953-.27-2.929-.378-.488-.054-.976-.108-1.465-.216-.108 0-.27-.055-.38-.109-.27-.108-.488-.27-.542-.54 0-.325.217-.487.488-.595a15.99 15.99 0 0 1 1.52-.433c.976-.054 2.006-.108 2.712-.216ZM20.438 34.954c3.146.054 5.696.486 8.083 1.514 1.627.703 3.037 1.73 4.122 3.082.163.217.326.487.489.703a.415.415 0 0 1-.055.541c-.162.162-.325.162-.488.108-.325-.108-.65-.216-1.03-.324-1.9-.703-3.798-1.298-5.805-1.623a34.268 34.268 0 0 0-2.333-.27c-5.153-.162-9.981.973-14.592 3.299-1.41.703-2.659 1.676-3.798 2.758-1.085.973-2.115 2-3.146 2.974-.326.27-.597.595-.922.865-.272.27-.543.27-.76.108-.217-.162-.271-.378-.108-.703.38-.703.76-1.351 1.193-2 .163-.27.38-.541.543-.866.488-.865 1.085-1.568 1.79-2.27 3.743-4.003 8.354-6.436 13.725-7.572 1.193-.216 2.386-.324 3.092-.324ZM79.349 20.947c-.109 0-.271-.054-.434-.108-1.41-.432-2.875-.811-4.34-.973-1.899-.217-3.797-.217-5.642-.217-1.573.054-3.146.109-4.665.487-3.363.757-6.401 2.217-8.951 4.543-1.085.973-2.17 2.055-3.2 3.028-.814.757-1.628 1.514-2.333 2.434l-.109.108c-.162.162-.325.27-.596.162-.218-.162-.218-.379-.163-.595.217-.487.434-1.027.76-1.46.921-1.244 1.844-2.488 2.874-3.677 3.472-4.002 7.758-6.598 12.966-7.68 2.061-.432 4.122-.648 6.184-.486 2.061.108 4.014.595 5.804 1.568.868.433 1.574 1.082 2.279 1.677.217.162.325.378.217.703-.054.324-.271.486-.651.486ZM65.082 44.471c-.055.27-.217.433-.489.325-.162-.054-.325-.216-.488-.325-.38-.324-.76-.703-1.139-1.027-2.061-1.785-4.286-3.19-6.944-3.894-2.875-.757-5.696-.757-8.571-.162-1.682.324-3.31.973-4.828 1.676-.054.054-.108.109-.163.109-.163 0-.325 0-.38-.109-.054-.108-.054-.27 0-.432.055-.163.218-.27.326-.379.76-.757 1.736-1.298 2.712-1.784a19.8 19.8 0 0 1 7.487-1.623c3.146-.054 5.967 1.028 8.408 2.975 1.14.919 2.17 1.892 3.092 3.028.217.27.434.487.597.757.108.27.217.595.38.865Z",
|
|
1956
|
+
fill: "#2A2A2B"
|
|
1957
|
+
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1958
|
+
d: "M65.678 25.165c2.387-.054 4.666.27 6.781 1.244 2.604 1.19 4.557 3.083 5.696 5.733.109.162.163.378.163.594.054.27-.163.487-.434.379a2.543 2.543 0 0 1-.542-.27c-.217-.217-.434-.487-.651-.758-1.953-2.595-4.611-4.11-7.65-4.92-1.898-.487-3.85-.542-5.804-.487-1.953.054-3.906.324-5.804.865-.326.108-.597.216-.922.27-.163.054-.326.054-.489.054-.217-.054-.325-.27-.163-.432.109-.108.218-.163.38-.27.977-.542 2.062-.866 3.147-1.136 2.115-.541 4.231-.866 6.292-.866ZM8.273 60.2c.054-.324.108-.649.217-.973.542-2.38 1.573-4.597 2.875-6.706 1.898-3.028 4.123-5.786 6.943-8.058.76-.595 1.574-1.081 2.387-1.568.272-.162.651-.216.977-.325.217-.053.38 0 .488.217.109.216 0 .378-.163.486-.27.217-.596.487-.868.704-3.417 2.433-6.075 5.462-8.3 8.977-1.41 2.163-2.44 4.542-3.254 6.976-.055.216-.163.432-.272.649-.108.216-.217.378-.488.378-.217 0-.325-.216-.38-.54-.162-.055-.162-.163-.162-.217ZM38.448 28.302v2.325c0 .163 0 .325-.054.487 0 .216-.054.433-.326.433-.271 0-.325-.217-.38-.433-.054-.162-.054-.27-.108-.433-.108-4.326-1.03-8.598-2.007-12.816-.705-3.083-1.628-6.165-2.604-9.194 0-.054-.054-.162-.054-.216-.054-.162 0-.324.217-.432.162-.109.325 0 .434.108.054.054.108.162.162.27.109.27.272.487.38.757 1.03 2.812 2.116 5.678 2.821 8.599.922 3.515 1.465 6.976 1.519 10.545ZM39.099 23.435c-.217-.325-.163-.595-.054-.92.217-.81.434-1.568.705-2.325.542-1.838 1.356-3.623 2.278-5.354 2.116-3.785 5.046-6.651 8.897-8.652h.054c.38-.162.543-.216.651 0 .109.324-.108.433-.325.54-.38.271-.76.541-1.194.812-3.905 2.596-6.726 6.057-8.734 10.275-.759 1.622-1.302 3.299-1.844 5.029-.054.216-.054.487-.434.595Z",
|
|
1959
|
+
fill: "#2A2A2B"
|
|
1960
|
+
})), _path3$5 || (_path3$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1961
|
+
d: "M43.439 38.144c-.217-.162-.271-.378-.163-.595a4.93 4.93 0 0 1 .434-.703c.705-.973 1.573-1.784 2.55-2.487 2.604-1.839 5.533-3.029 8.625-3.786a28.751 28.751 0 0 1 8.029-.81c4.557.215 8.245 2.108 11.23 5.515 2.332 2.65 3.96 5.678 5.044 8.977.489 1.514.814 3.083 1.14 4.65 0 .109.054.217 0 .325-.055.163-.163.325-.272.379-.108.054-.325-.054-.434-.162-.108-.055-.162-.217-.217-.325-.922-1.514-1.79-3.082-2.766-4.542-2.93-4.435-6.727-7.788-11.718-9.735a20.929 20.929 0 0 0-9.276-1.46c-2.93.217-5.696.974-8.3 2.326-1.248.649-2.496 1.298-3.58 2.217-.055.054-.218.108-.326.216ZM39.804 37.874c.163-4.11 1.14-8.004 3.038-11.627 1.845-3.57 4.231-6.652 6.998-9.572 3.2-3.353 6.89-6.165 10.85-8.598 1.464-.866 2.983-1.569 4.61-2.001.11 0 .218-.108.272-.054.163.054.325.162.434.27a.352.352 0 0 1-.109.487 1.181 1.181 0 0 0-.27.216c-3.527 2.11-6.89 4.435-9.82 7.355-.705.703-1.464 1.352-2.224 2.055-.65.649-1.302 1.243-1.898 1.947a174.684 174.684 0 0 0-3.96 4.92c-2.659 3.57-4.503 7.572-5.805 11.844-.543 1.73-.922 3.46-1.41 5.191-.055.108-.055.27-.11.379-.053.054-.162.162-.216.162-.054 0-.163-.108-.217-.162-.054-.162-.109-.325-.109-.487 0-.757 0-1.514-.054-2.325ZM15.013 13.268c3.689.108 7.378.811 10.85 2.325 2.603 1.136 4.773 2.867 6.726 4.922.489.54.977 1.135 1.41 1.73.435.54.706 1.19.869 1.893.054.108.054.216.054.324 0 .217-.054.379-.271.433-.217.054-.272-.108-.326-.216-1.248-1.839-2.82-3.3-4.665-4.489-.434-.27-.922-.54-1.41-.757-2.17-1.027-4.395-1.947-6.782-2.433a35.731 35.731 0 0 0-6.78-.812c-.814 0-1.574.109-2.388.163-1.627.162-3.2.324-4.828.486-1.085.163-2.17.379-3.254.541-.326.054-.651.054-1.031.108-.109 0-.271 0-.38-.054-.434-.108-.542-.54-.217-.811.109-.108.217-.162.326-.27 1.41-.974 2.983-1.623 4.665-2.055 1.844-.433 3.743-.812 5.696-.974.488-.054 1.085-.054 1.736-.054Z",
|
|
1962
|
+
fill: "#B78D5C"
|
|
1963
|
+
})), _path4$4 || (_path4$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1964
|
+
d: "M77.83 65.24v.65a.37.37 0 0 1-.38.378c-.217 0-.325-.162-.38-.325 0-.054 0-.108-.054-.216-.054-.379-.054-.703-.163-1.082-.759-2.92-1.139-5.948-2.115-8.814a41.035 41.035 0 0 0-3.906-8.599c-1.194-2-2.658-3.785-4.34-5.462-.054-.054-.163-.108-.163-.162-.054-.108-.162-.27-.108-.379.054-.216.271-.27.488-.216.326.108.651.216.922.379.922.54 1.682 1.19 2.441 1.892 1.845 1.84 3.255 4.002 4.394 6.273 1.465 2.92 2.388 6.003 2.876 9.248.108.811.162 1.676.217 2.542.108 1.027.217 2 .27 3.028-.053.324 0 .595 0 .865ZM82.064 39.553l-2.008-1.406 2.333-.703.76-2.38 1.41 2.001H87l-1.465 1.947.814 2.326-2.333-.758-2.007 1.46.055-2.487ZM9.399 29.42l1.578-2.058.79 2.417 2.663.715-2.269 1.432.099 2.506L9.99 33l-2.564.806.887-2.327-1.677-2.058H9.4ZM10.481 2.38l2.984.054L15.146 0l.868 2.812 2.875.811-2.44 1.73.108 2.975-2.387-1.73-2.821.973.922-2.812-1.79-2.38ZM40.075 4.294l-1.627-1.298 2.061-.487.76-2 1.085 1.838 2.115.108-1.41 1.568.543 2.055-1.953-.81-1.736 1.135.162-2.11ZM74.4 12.32l-1.247-.866-1.41.486.488-1.405-.922-1.244h1.519l.868-1.244.434 1.46 1.464.433-1.247.865.054 1.514Z",
|
|
1965
|
+
fill: "#B78D5C"
|
|
1966
|
+
})), _path5$4 || (_path5$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1967
|
+
d: "m30.056 13.268 16.109 31.939h.057l6.802 13.639L46.1 72l-6.859-12.91-24.228-45.822h15.043Zm30.129.008c2.59-.108 5.11.913 6.984 2.828 1.874 1.92 2.94 4.564 2.96 7.338 0 2.024-.474 2.783-1.656 5.305-.055.133-6.253 12.631-6.253 12.631a.642.642 0 0 1-.707.29.697.697 0 0 1-.503-.606l-.177-7.39h-.236c-5.162-.037-9.36-4.46-9.472-9.984-.112-5.52 3.904-10.135 9.06-10.41v-.002Z",
|
|
1968
|
+
fill: "#39ADC3"
|
|
1969
|
+
})));
|
|
2114
1970
|
};
|
|
2115
1971
|
|
|
2116
|
-
var
|
|
2117
|
-
baseStyle: {
|
|
2118
|
-
container: {
|
|
2119
|
-
backgroundColor: coreColors.white,
|
|
2120
|
-
borderWidth: '2px',
|
|
2121
|
-
boxShadow: "0 0 0 1px ".concat(coreColors.white),
|
|
2122
|
-
_hover: {
|
|
2123
|
-
backgroundColor: coreColors.gray[50],
|
|
2124
|
-
zIndex: 2,
|
|
2125
|
-
},
|
|
2126
|
-
_active: {
|
|
2127
|
-
backgroundColor: coreColors.gray[100],
|
|
2128
|
-
},
|
|
2129
|
-
},
|
|
2130
|
-
label: {
|
|
2131
|
-
paddingTop: '1px',
|
|
2132
|
-
},
|
|
2133
|
-
},
|
|
2134
|
-
sizes: {
|
|
2135
|
-
xs: {
|
|
2136
|
-
container: {
|
|
2137
|
-
height: '24px',
|
|
2138
|
-
width: '24px',
|
|
2139
|
-
},
|
|
2140
|
-
label: {
|
|
2141
|
-
fontSize: '12px',
|
|
2142
|
-
fontWeight: '600',
|
|
2143
|
-
lineHeight: '18px',
|
|
2144
|
-
},
|
|
2145
|
-
},
|
|
2146
|
-
sm: {
|
|
2147
|
-
container: {
|
|
2148
|
-
height: '32px',
|
|
2149
|
-
width: '32px',
|
|
2150
|
-
},
|
|
2151
|
-
label: {
|
|
2152
|
-
fontSize: '14px',
|
|
2153
|
-
fontWeight: '400',
|
|
2154
|
-
lineHeight: '24px',
|
|
2155
|
-
paddingTop: 0,
|
|
2156
|
-
},
|
|
2157
|
-
},
|
|
2158
|
-
md: {
|
|
2159
|
-
container: {
|
|
2160
|
-
height: '36px',
|
|
2161
|
-
width: '36px',
|
|
2162
|
-
},
|
|
2163
|
-
label: {
|
|
2164
|
-
fontSize: '16px',
|
|
2165
|
-
fontWeight: '400',
|
|
2166
|
-
lineHeight: '24px',
|
|
2167
|
-
},
|
|
2168
|
-
},
|
|
2169
|
-
lg: {
|
|
2170
|
-
container: {
|
|
2171
|
-
height: '40px',
|
|
2172
|
-
width: '40px',
|
|
2173
|
-
},
|
|
2174
|
-
label: {
|
|
2175
|
-
fontSize: '16px',
|
|
2176
|
-
fontWeight: '400',
|
|
2177
|
-
lineHeight: '24px',
|
|
2178
|
-
},
|
|
2179
|
-
},
|
|
2180
|
-
},
|
|
2181
|
-
variants: {
|
|
2182
|
-
red: {
|
|
2183
|
-
container: {
|
|
2184
|
-
borderColor: coreColors.red[300],
|
|
2185
|
-
},
|
|
2186
|
-
label: {
|
|
2187
|
-
color: coreColors.red[300],
|
|
2188
|
-
},
|
|
2189
|
-
},
|
|
2190
|
-
green: {
|
|
2191
|
-
container: {
|
|
2192
|
-
borderColor: coreColors.green[400],
|
|
2193
|
-
},
|
|
2194
|
-
label: {
|
|
2195
|
-
color: coreColors.green[400],
|
|
2196
|
-
},
|
|
2197
|
-
},
|
|
2198
|
-
blue: {
|
|
2199
|
-
container: {
|
|
2200
|
-
borderColor: coreColors.blue[300],
|
|
2201
|
-
},
|
|
2202
|
-
label: {
|
|
2203
|
-
color: coreColors.blue[300],
|
|
2204
|
-
},
|
|
2205
|
-
},
|
|
2206
|
-
comet: {
|
|
2207
|
-
container: {
|
|
2208
|
-
backgroundColor: coreColors.comet[50],
|
|
2209
|
-
borderColor: coreColors.comet[400],
|
|
2210
|
-
_hover: {
|
|
2211
|
-
backgroundColor: coreColors.comet[100],
|
|
2212
|
-
},
|
|
2213
|
-
_active: {
|
|
2214
|
-
backgroundColor: coreColors.comet[200],
|
|
2215
|
-
},
|
|
2216
|
-
},
|
|
2217
|
-
label: {
|
|
2218
|
-
color: coreColors.comet[800],
|
|
2219
|
-
},
|
|
2220
|
-
},
|
|
2221
|
-
number: {
|
|
2222
|
-
container: {
|
|
2223
|
-
backgroundColor: coreColors.blue[800],
|
|
2224
|
-
border: 0,
|
|
2225
|
-
_hover: {
|
|
2226
|
-
backgroundColor: coreColors.blue[800], // 700
|
|
2227
|
-
},
|
|
2228
|
-
_active: {
|
|
2229
|
-
backgroundColor: coreColors.blue[800], // 600
|
|
2230
|
-
},
|
|
2231
|
-
},
|
|
2232
|
-
label: {
|
|
2233
|
-
color: coreColors.white,
|
|
2234
|
-
},
|
|
2235
|
-
},
|
|
2236
|
-
dashed: {
|
|
2237
|
-
container: {
|
|
2238
|
-
backgroundColor: coreColors.transparent,
|
|
2239
|
-
border: '1px dashed',
|
|
2240
|
-
borderColor: semanticColors.border.dark,
|
|
2241
|
-
boxShadow: 0,
|
|
2242
|
-
_hover: {
|
|
2243
|
-
backgroundColor: coreColors.blackAlpha[100],
|
|
2244
|
-
zIndex: 0,
|
|
2245
|
-
},
|
|
2246
|
-
_active: {
|
|
2247
|
-
backgroundColor: coreColors.blackAlpha[200],
|
|
2248
|
-
},
|
|
2249
|
-
},
|
|
2250
|
-
label: {
|
|
2251
|
-
color: adaptiveColors.icon.light.subtle,
|
|
2252
|
-
},
|
|
2253
|
-
},
|
|
2254
|
-
image: {
|
|
2255
|
-
container: {
|
|
2256
|
-
border: 0,
|
|
2257
|
-
_hover: {
|
|
2258
|
-
backgroundColor: coreColors.black,
|
|
2259
|
-
img: { opacity: 0.94 },
|
|
2260
|
-
},
|
|
2261
|
-
_active: {
|
|
2262
|
-
backgroundColor: coreColors.black,
|
|
2263
|
-
img: { opacity: 0.92 },
|
|
2264
|
-
},
|
|
2265
|
-
},
|
|
2266
|
-
},
|
|
2267
|
-
},
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
var _path$k, _path2$7;
|
|
2271
|
-
|
|
2272
|
-
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
2273
|
-
|
|
2274
|
-
var SvgTeal = function SvgTeal(props) {
|
|
2275
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
2276
|
-
viewBox: "0 0 200 44",
|
|
2277
|
-
fill: "none",
|
|
2278
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2279
|
-
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2280
|
-
d: "M176.773 35.166c-2.461 4.878-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.135 2.149h-21.749c.313 3.49 3.49 5.996 7.115 5.996 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM192.482 3.929v8.682H200v7.205h-7.518v10.875c0 3.178 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.894v7.563c-1.298.671-3.311 1.208-6.131 1.208-6.221 0-10.069-3.849-10.069-10.427V19.86h-4.207v-7.205h4.207V3.974h8.727v-.045ZM139.047.035c-3.715.18-6.713 3.178-6.892 6.892-.179 4.162 3.133 7.564 7.205 7.564h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.862 4.744-8.951.895-1.79 1.253-2.327 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.396h-.045L117.521.037h-10.696l17.23 33.52 4.878 9.442 4.922-9.622-4.833-9.98Z",
|
|
2281
|
-
fill: "#050E5F"
|
|
2282
|
-
})), _path2$7 || (_path2$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2283
|
-
d: "M0 .26h31.193v8.413H20.139v33.564h-9.04V8.673H0V.259ZM58.537 35.166c-2.462 4.879-7.25 7.877-13.74 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.029-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.388 6.355-3.58l7.385 2.863Zm-7.564-11.009c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.64-6.668 5.46h13.246ZM73.216.26v41.977h-8.772V.26h8.772ZM107.675 35.166c-2.461 4.879-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.029-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.388 6.355-3.58l7.384 2.863Zm-7.518-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247Z",
|
|
2284
|
-
fill: "#39ADC3"
|
|
2285
|
-
})));
|
|
2286
|
-
};
|
|
2287
|
-
|
|
2288
|
-
var _path$j;
|
|
2289
|
-
|
|
2290
|
-
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
2291
|
-
|
|
2292
|
-
var SvgTealIcon = function SvgTealIcon(props) {
|
|
2293
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
2294
|
-
viewBox: "0 0 56 60",
|
|
2295
|
-
fill: "none",
|
|
2296
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2297
|
-
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2298
|
-
d: "M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",
|
|
2299
|
-
fill: "#39ADC3"
|
|
2300
|
-
})));
|
|
2301
|
-
};
|
|
2302
|
-
|
|
2303
|
-
var _path$i;
|
|
2304
|
-
|
|
2305
|
-
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
2306
|
-
|
|
2307
|
-
var SvgBlack = function SvgBlack(props) {
|
|
2308
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
|
|
2309
|
-
viewBox: "0 0 200 44",
|
|
2310
|
-
fill: "none",
|
|
2311
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2312
|
-
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2313
|
-
d: "M0 .23h31.193v8.414H20.139V42.21h-9.04V8.644H0V.231ZM58.537 35.138c-2.462 4.878-7.25 7.876-13.74 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.387 6.355-3.58l7.385 2.864Zm-7.564-11.01c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.641-6.669 5.46h13.247ZM73.216.23V42.21h-8.772V.23h8.772ZM107.675 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.22 0-15.708-6.4-15.708-15.574 0-8.95 6.578-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.03-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.518-11.01c-.358-3.177-3.044-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM176.773 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.135 2.148h-21.749c.313 3.49 3.49 5.997 7.115 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.01c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM192.482 3.9v8.682H200v7.206h-7.518v10.875c0 3.177 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.895v7.563c-1.298.671-3.311 1.209-6.131 1.209-6.221 0-10.069-3.85-10.069-10.428v-12.71h-4.207v-7.205h4.207V3.945h8.727V3.9ZM139.047.007c-3.715.179-6.713 3.177-6.892 6.892-.179 4.162 3.133 7.563 7.205 7.563h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.861 4.744-8.95.895-1.79 1.253-2.328 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.368h-.045L117.521.007h-10.696l17.23 33.52 4.878 9.442 4.922-9.621-4.833-9.98Z",
|
|
2314
|
-
fill: "#000"
|
|
2315
|
-
})));
|
|
2316
|
-
};
|
|
2317
|
-
|
|
2318
|
-
var _path$h;
|
|
1972
|
+
var _path$d;
|
|
2319
1973
|
|
|
2320
|
-
function _extends$
|
|
1974
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
2321
1975
|
|
|
2322
|
-
var
|
|
2323
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2324
|
-
viewBox: "0 0 56
|
|
1976
|
+
var SvgValentines = function SvgValentines(props) {
|
|
1977
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
1978
|
+
viewBox: "0 0 56 62",
|
|
2325
1979
|
fill: "none",
|
|
2326
1980
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2327
|
-
}, props), _path$
|
|
2328
|
-
d: "
|
|
2329
|
-
fill: "#
|
|
1981
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1982
|
+
d: "M31.833 34.604h-.059L15.343 1.944H0L24.711 48.8 31.707 62l7.062-13.45-6.936-13.946ZM46.61 0c-2.361.054-4.474 1.159-5.894 3.008C39.36 1.21 37.337.074 34.953.032c-4.113.065-7.48 3.282-7.456 7.312-.004 5.65 13.193 16.049 13.193 16.049S54.018 12.978 54 7.232C53.998 3.298 50.747.03 46.61 0Z",
|
|
1983
|
+
fill: "#ff617c"
|
|
2330
1984
|
})));
|
|
2331
1985
|
};
|
|
2332
1986
|
|
|
2333
|
-
var _path$
|
|
1987
|
+
var _path$c;
|
|
2334
1988
|
|
|
2335
|
-
function _extends$
|
|
1989
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
2336
1990
|
|
|
2337
|
-
var
|
|
2338
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2339
|
-
viewBox: "0 0
|
|
1991
|
+
var SvgStPatricks = function SvgStPatricks(props) {
|
|
1992
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
1993
|
+
viewBox: "0 0 62 65",
|
|
2340
1994
|
fill: "none",
|
|
2341
1995
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2342
|
-
}, props), _path$
|
|
2343
|
-
d: "
|
|
2344
|
-
fill: "#
|
|
1996
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
1997
|
+
d: "m49.802 10.47.604-.88c4.449-6.453-2.87-12.721-7.721-7.439-6.568-2.84-10.72 5.88-4.047 9.956l.908.556.002.002 1.313.804c-.566-.172-1.122-.339-1.64-.494l-1.02-.306c-7.48-2.263-11.155 6.666-4.661 9.676-.662 7.154 8.873 8.433 10.672.796l.246-1.038v-.002c.265-1.11.57-2.392.833-3.592.516 2.091 1.054 4.871 1.135 6.914.126 3.17-.941 7.183-.941 7.183.017.72.962.95 1.313.316l.425-.847c2.241-4.446 3.12-9.742.727-14.037.848.938 1.788 1.935 2.598 2.795l.73.776c5.354 5.709 12.976-.195 8.847-6.058 4.128-5.873-3.492-11.757-8.846-6.035l-.73.778c-.763.81-1.639 1.742-2.446 2.632.585-.832 1.175-1.692 1.699-2.456ZM30.738 37.679h.018l6.721 13.915L30.633 65 0 5.133h14.809l15.929 32.581v-.035Z",
|
|
1998
|
+
fill: "#5CC098"
|
|
2345
1999
|
})));
|
|
2346
2000
|
};
|
|
2347
2001
|
|
|
2348
|
-
var _path$
|
|
2002
|
+
var _path$b, _g$6;
|
|
2349
2003
|
|
|
2350
|
-
function _extends$
|
|
2004
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
2351
2005
|
|
|
2352
|
-
var
|
|
2353
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
2354
|
-
viewBox: "0 0 56 60",
|
|
2355
|
-
fill: "none",
|
|
2356
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2357
|
-
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2358
|
-
d: "M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",
|
|
2359
|
-
fill: "#fff"
|
|
2360
|
-
})));
|
|
2361
|
-
};
|
|
2362
|
-
|
|
2363
|
-
var _path$e, _path2$6, _path3$5, _path4$4, _path5$4;
|
|
2364
|
-
|
|
2365
|
-
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
2366
|
-
|
|
2367
|
-
var SvgNewYears = function SvgNewYears(props) {
|
|
2368
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
2369
|
-
viewBox: "0 0 87 73",
|
|
2370
|
-
fill: "none",
|
|
2371
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2372
|
-
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2373
|
-
d: "M11.704 21.272c7.54.486 13.941 2.812 19.312 7.679 2.604 2.325 4.503 5.191 5.859 8.436.325.811.596 1.676.65 2.542v.54c0 .163-.108.271-.162.38-.217.27-.38.215-.542-.055-1.41-2.38-3.093-4.488-4.991-6.49-2.658-2.703-5.75-4.866-9.114-6.651-3.31-1.73-6.78-3.082-10.416-3.894-.976-.216-1.953-.27-2.929-.378-.488-.054-.976-.108-1.465-.216-.108 0-.27-.055-.38-.109-.27-.108-.488-.27-.542-.54 0-.325.217-.487.488-.595a15.99 15.99 0 0 1 1.52-.433c.976-.054 2.006-.108 2.712-.216ZM20.438 34.954c3.146.054 5.696.486 8.083 1.514 1.627.703 3.037 1.73 4.122 3.082.163.217.326.487.489.703a.415.415 0 0 1-.055.541c-.162.162-.325.162-.488.108-.325-.108-.65-.216-1.03-.324-1.9-.703-3.798-1.298-5.805-1.623a34.268 34.268 0 0 0-2.333-.27c-5.153-.162-9.981.973-14.592 3.299-1.41.703-2.659 1.676-3.798 2.758-1.085.973-2.115 2-3.146 2.974-.326.27-.597.595-.922.865-.272.27-.543.27-.76.108-.217-.162-.271-.378-.108-.703.38-.703.76-1.351 1.193-2 .163-.27.38-.541.543-.866.488-.865 1.085-1.568 1.79-2.27 3.743-4.003 8.354-6.436 13.725-7.572 1.193-.216 2.386-.324 3.092-.324ZM79.349 20.947c-.109 0-.271-.054-.434-.108-1.41-.432-2.875-.811-4.34-.973-1.899-.217-3.797-.217-5.642-.217-1.573.054-3.146.109-4.665.487-3.363.757-6.401 2.217-8.951 4.543-1.085.973-2.17 2.055-3.2 3.028-.814.757-1.628 1.514-2.333 2.434l-.109.108c-.162.162-.325.27-.596.162-.218-.162-.218-.379-.163-.595.217-.487.434-1.027.76-1.46.921-1.244 1.844-2.488 2.874-3.677 3.472-4.002 7.758-6.598 12.966-7.68 2.061-.432 4.122-.648 6.184-.486 2.061.108 4.014.595 5.804 1.568.868.433 1.574 1.082 2.279 1.677.217.162.325.378.217.703-.054.324-.271.486-.651.486ZM65.082 44.471c-.055.27-.217.433-.489.325-.162-.054-.325-.216-.488-.325-.38-.324-.76-.703-1.139-1.027-2.061-1.785-4.286-3.19-6.944-3.894-2.875-.757-5.696-.757-8.571-.162-1.682.324-3.31.973-4.828 1.676-.054.054-.108.109-.163.109-.163 0-.325 0-.38-.109-.054-.108-.054-.27 0-.432.055-.163.218-.27.326-.379.76-.757 1.736-1.298 2.712-1.784a19.8 19.8 0 0 1 7.487-1.623c3.146-.054 5.967 1.028 8.408 2.975 1.14.919 2.17 1.892 3.092 3.028.217.27.434.487.597.757.108.27.217.595.38.865Z",
|
|
2374
|
-
fill: "#2A2A2B"
|
|
2375
|
-
})), _path2$6 || (_path2$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2376
|
-
d: "M65.678 25.165c2.387-.054 4.666.27 6.781 1.244 2.604 1.19 4.557 3.083 5.696 5.733.109.162.163.378.163.594.054.27-.163.487-.434.379a2.543 2.543 0 0 1-.542-.27c-.217-.217-.434-.487-.651-.758-1.953-2.595-4.611-4.11-7.65-4.92-1.898-.487-3.85-.542-5.804-.487-1.953.054-3.906.324-5.804.865-.326.108-.597.216-.922.27-.163.054-.326.054-.489.054-.217-.054-.325-.27-.163-.432.109-.108.218-.163.38-.27.977-.542 2.062-.866 3.147-1.136 2.115-.541 4.231-.866 6.292-.866ZM8.273 60.2c.054-.324.108-.649.217-.973.542-2.38 1.573-4.597 2.875-6.706 1.898-3.028 4.123-5.786 6.943-8.058.76-.595 1.574-1.081 2.387-1.568.272-.162.651-.216.977-.325.217-.053.38 0 .488.217.109.216 0 .378-.163.486-.27.217-.596.487-.868.704-3.417 2.433-6.075 5.462-8.3 8.977-1.41 2.163-2.44 4.542-3.254 6.976-.055.216-.163.432-.272.649-.108.216-.217.378-.488.378-.217 0-.325-.216-.38-.54-.162-.055-.162-.163-.162-.217ZM38.448 28.302v2.325c0 .163 0 .325-.054.487 0 .216-.054.433-.326.433-.271 0-.325-.217-.38-.433-.054-.162-.054-.27-.108-.433-.108-4.326-1.03-8.598-2.007-12.816-.705-3.083-1.628-6.165-2.604-9.194 0-.054-.054-.162-.054-.216-.054-.162 0-.324.217-.432.162-.109.325 0 .434.108.054.054.108.162.162.27.109.27.272.487.38.757 1.03 2.812 2.116 5.678 2.821 8.599.922 3.515 1.465 6.976 1.519 10.545ZM39.099 23.435c-.217-.325-.163-.595-.054-.92.217-.81.434-1.568.705-2.325.542-1.838 1.356-3.623 2.278-5.354 2.116-3.785 5.046-6.651 8.897-8.652h.054c.38-.162.543-.216.651 0 .109.324-.108.433-.325.54-.38.271-.76.541-1.194.812-3.905 2.596-6.726 6.057-8.734 10.275-.759 1.622-1.302 3.299-1.844 5.029-.054.216-.054.487-.434.595Z",
|
|
2377
|
-
fill: "#2A2A2B"
|
|
2378
|
-
})), _path3$5 || (_path3$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2379
|
-
d: "M43.439 38.144c-.217-.162-.271-.378-.163-.595a4.93 4.93 0 0 1 .434-.703c.705-.973 1.573-1.784 2.55-2.487 2.604-1.839 5.533-3.029 8.625-3.786a28.751 28.751 0 0 1 8.029-.81c4.557.215 8.245 2.108 11.23 5.515 2.332 2.65 3.96 5.678 5.044 8.977.489 1.514.814 3.083 1.14 4.65 0 .109.054.217 0 .325-.055.163-.163.325-.272.379-.108.054-.325-.054-.434-.162-.108-.055-.162-.217-.217-.325-.922-1.514-1.79-3.082-2.766-4.542-2.93-4.435-6.727-7.788-11.718-9.735a20.929 20.929 0 0 0-9.276-1.46c-2.93.217-5.696.974-8.3 2.326-1.248.649-2.496 1.298-3.58 2.217-.055.054-.218.108-.326.216ZM39.804 37.874c.163-4.11 1.14-8.004 3.038-11.627 1.845-3.57 4.231-6.652 6.998-9.572 3.2-3.353 6.89-6.165 10.85-8.598 1.464-.866 2.983-1.569 4.61-2.001.11 0 .218-.108.272-.054.163.054.325.162.434.27a.352.352 0 0 1-.109.487 1.181 1.181 0 0 0-.27.216c-3.527 2.11-6.89 4.435-9.82 7.355-.705.703-1.464 1.352-2.224 2.055-.65.649-1.302 1.243-1.898 1.947a174.684 174.684 0 0 0-3.96 4.92c-2.659 3.57-4.503 7.572-5.805 11.844-.543 1.73-.922 3.46-1.41 5.191-.055.108-.055.27-.11.379-.053.054-.162.162-.216.162-.054 0-.163-.108-.217-.162-.054-.162-.109-.325-.109-.487 0-.757 0-1.514-.054-2.325ZM15.013 13.268c3.689.108 7.378.811 10.85 2.325 2.603 1.136 4.773 2.867 6.726 4.922.489.54.977 1.135 1.41 1.73.435.54.706 1.19.869 1.893.054.108.054.216.054.324 0 .217-.054.379-.271.433-.217.054-.272-.108-.326-.216-1.248-1.839-2.82-3.3-4.665-4.489-.434-.27-.922-.54-1.41-.757-2.17-1.027-4.395-1.947-6.782-2.433a35.731 35.731 0 0 0-6.78-.812c-.814 0-1.574.109-2.388.163-1.627.162-3.2.324-4.828.486-1.085.163-2.17.379-3.254.541-.326.054-.651.054-1.031.108-.109 0-.271 0-.38-.054-.434-.108-.542-.54-.217-.811.109-.108.217-.162.326-.27 1.41-.974 2.983-1.623 4.665-2.055 1.844-.433 3.743-.812 5.696-.974.488-.054 1.085-.054 1.736-.054Z",
|
|
2380
|
-
fill: "#B78D5C"
|
|
2381
|
-
})), _path4$4 || (_path4$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2382
|
-
d: "M77.83 65.24v.65a.37.37 0 0 1-.38.378c-.217 0-.325-.162-.38-.325 0-.054 0-.108-.054-.216-.054-.379-.054-.703-.163-1.082-.759-2.92-1.139-5.948-2.115-8.814a41.035 41.035 0 0 0-3.906-8.599c-1.194-2-2.658-3.785-4.34-5.462-.054-.054-.163-.108-.163-.162-.054-.108-.162-.27-.108-.379.054-.216.271-.27.488-.216.326.108.651.216.922.379.922.54 1.682 1.19 2.441 1.892 1.845 1.84 3.255 4.002 4.394 6.273 1.465 2.92 2.388 6.003 2.876 9.248.108.811.162 1.676.217 2.542.108 1.027.217 2 .27 3.028-.053.324 0 .595 0 .865ZM82.064 39.553l-2.008-1.406 2.333-.703.76-2.38 1.41 2.001H87l-1.465 1.947.814 2.326-2.333-.758-2.007 1.46.055-2.487ZM9.399 29.42l1.578-2.058.79 2.417 2.663.715-2.269 1.432.099 2.506L9.99 33l-2.564.806.887-2.327-1.677-2.058H9.4ZM10.481 2.38l2.984.054L15.146 0l.868 2.812 2.875.811-2.44 1.73.108 2.975-2.387-1.73-2.821.973.922-2.812-1.79-2.38ZM40.075 4.294l-1.627-1.298 2.061-.487.76-2 1.085 1.838 2.115.108-1.41 1.568.543 2.055-1.953-.81-1.736 1.135.162-2.11ZM74.4 12.32l-1.247-.866-1.41.486.488-1.405-.922-1.244h1.519l.868-1.244.434 1.46 1.464.433-1.247.865.054 1.514Z",
|
|
2383
|
-
fill: "#B78D5C"
|
|
2384
|
-
})), _path5$4 || (_path5$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2385
|
-
d: "m30.056 13.268 16.109 31.939h.057l6.802 13.639L46.1 72l-6.859-12.91-24.228-45.822h15.043Zm30.129.008c2.59-.108 5.11.913 6.984 2.828 1.874 1.92 2.94 4.564 2.96 7.338 0 2.024-.474 2.783-1.656 5.305-.055.133-6.253 12.631-6.253 12.631a.642.642 0 0 1-.707.29.697.697 0 0 1-.503-.606l-.177-7.39h-.236c-5.162-.037-9.36-4.46-9.472-9.984-.112-5.52 3.904-10.135 9.06-10.41v-.002Z",
|
|
2386
|
-
fill: "#39ADC3"
|
|
2387
|
-
})));
|
|
2388
|
-
};
|
|
2389
|
-
|
|
2390
|
-
var _path$d;
|
|
2391
|
-
|
|
2392
|
-
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
2393
|
-
|
|
2394
|
-
var SvgValentines = function SvgValentines(props) {
|
|
2395
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
2396
|
-
viewBox: "0 0 56 62",
|
|
2397
|
-
fill: "none",
|
|
2398
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2399
|
-
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2400
|
-
d: "M31.833 34.604h-.059L15.343 1.944H0L24.711 48.8 31.707 62l7.062-13.45-6.936-13.946ZM46.61 0c-2.361.054-4.474 1.159-5.894 3.008C39.36 1.21 37.337.074 34.953.032c-4.113.065-7.48 3.282-7.456 7.312-.004 5.65 13.193 16.049 13.193 16.049S54.018 12.978 54 7.232C53.998 3.298 50.747.03 46.61 0Z",
|
|
2401
|
-
fill: "#ff617c"
|
|
2402
|
-
})));
|
|
2403
|
-
};
|
|
2404
|
-
|
|
2405
|
-
var _path$c;
|
|
2406
|
-
|
|
2407
|
-
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
2408
|
-
|
|
2409
|
-
var SvgStPatricks = function SvgStPatricks(props) {
|
|
2410
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
2411
|
-
viewBox: "0 0 62 65",
|
|
2412
|
-
fill: "none",
|
|
2413
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2414
|
-
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
2415
|
-
d: "m49.802 10.47.604-.88c4.449-6.453-2.87-12.721-7.721-7.439-6.568-2.84-10.72 5.88-4.047 9.956l.908.556.002.002 1.313.804c-.566-.172-1.122-.339-1.64-.494l-1.02-.306c-7.48-2.263-11.155 6.666-4.661 9.676-.662 7.154 8.873 8.433 10.672.796l.246-1.038v-.002c.265-1.11.57-2.392.833-3.592.516 2.091 1.054 4.871 1.135 6.914.126 3.17-.941 7.183-.941 7.183.017.72.962.95 1.313.316l.425-.847c2.241-4.446 3.12-9.742.727-14.037.848.938 1.788 1.935 2.598 2.795l.73.776c5.354 5.709 12.976-.195 8.847-6.058 4.128-5.873-3.492-11.757-8.846-6.035l-.73.778c-.763.81-1.639 1.742-2.446 2.632.585-.832 1.175-1.692 1.699-2.456ZM30.738 37.679h.018l6.721 13.915L30.633 65 0 5.133h14.809l15.929 32.581v-.035Z",
|
|
2416
|
-
fill: "#5CC098"
|
|
2417
|
-
})));
|
|
2418
|
-
};
|
|
2419
|
-
|
|
2420
|
-
var _path$b, _g$6;
|
|
2421
|
-
|
|
2422
|
-
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
2423
|
-
|
|
2424
|
-
var SvgEaster1 = function SvgEaster1(props) {
|
|
2425
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
2006
|
+
var SvgEaster1 = function SvgEaster1(props) {
|
|
2007
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
2426
2008
|
viewBox: "0 0 56 60",
|
|
2427
2009
|
fill: "none",
|
|
2428
2010
|
xmlns: "http://www.w3.org/2000/svg"
|
|
@@ -3621,50 +3203,468 @@ var SvgChristmas = function SvgChristmas(props) {
|
|
|
3621
3203
|
})));
|
|
3622
3204
|
};
|
|
3623
3205
|
|
|
3624
|
-
var holidaysLogoIconMap = {
|
|
3625
|
-
newYears: SvgNewYears,
|
|
3626
|
-
valentines: SvgValentines,
|
|
3627
|
-
stPatricks: SvgStPatricks,
|
|
3628
|
-
easter1: SvgEaster1,
|
|
3629
|
-
easter2: SvgEaster2,
|
|
3630
|
-
easter3: SvgEaster3,
|
|
3631
|
-
easter4: SvgEaster4,
|
|
3632
|
-
easter5: SvgEaster5,
|
|
3633
|
-
easter6: SvgEaster6,
|
|
3634
|
-
mothersDay: SvgMothersDay,
|
|
3635
|
-
memorialDay: SvgMemorialDay,
|
|
3636
|
-
fathersDay: SvgFathersDay,
|
|
3637
|
-
halloween: SvgHalloween,
|
|
3638
|
-
thanksgiving: SvgThanksgiving,
|
|
3639
|
-
christmas: SvgChristmas,
|
|
3640
|
-
};
|
|
3641
|
-
var logoIconMap = {
|
|
3642
|
-
black: SvgBlackIcon,
|
|
3643
|
-
white: SvgWhiteIcon,
|
|
3644
|
-
teal: SvgTealIcon,
|
|
3645
|
-
};
|
|
3646
|
-
var fullLogoMap = {
|
|
3647
|
-
black: SvgBlack,
|
|
3648
|
-
white: SvgWhite,
|
|
3649
|
-
teal: SvgTeal,
|
|
3206
|
+
var holidaysLogoIconMap = {
|
|
3207
|
+
newYears: SvgNewYears,
|
|
3208
|
+
valentines: SvgValentines,
|
|
3209
|
+
stPatricks: SvgStPatricks,
|
|
3210
|
+
easter1: SvgEaster1,
|
|
3211
|
+
easter2: SvgEaster2,
|
|
3212
|
+
easter3: SvgEaster3,
|
|
3213
|
+
easter4: SvgEaster4,
|
|
3214
|
+
easter5: SvgEaster5,
|
|
3215
|
+
easter6: SvgEaster6,
|
|
3216
|
+
mothersDay: SvgMothersDay,
|
|
3217
|
+
memorialDay: SvgMemorialDay,
|
|
3218
|
+
fathersDay: SvgFathersDay,
|
|
3219
|
+
halloween: SvgHalloween,
|
|
3220
|
+
thanksgiving: SvgThanksgiving,
|
|
3221
|
+
christmas: SvgChristmas,
|
|
3222
|
+
};
|
|
3223
|
+
var logoIconMap = {
|
|
3224
|
+
black: SvgBlackIcon,
|
|
3225
|
+
white: SvgWhiteIcon,
|
|
3226
|
+
teal: SvgTealIcon,
|
|
3227
|
+
};
|
|
3228
|
+
var fullLogoMap = {
|
|
3229
|
+
black: SvgBlack,
|
|
3230
|
+
white: SvgWhite,
|
|
3231
|
+
teal: SvgTeal,
|
|
3232
|
+
};
|
|
3233
|
+
|
|
3234
|
+
var Logo = function (_a) {
|
|
3235
|
+
var _b = _a.type, type = _b === void 0 ? 'full' : _b, _c = _a.color, color = _c === void 0 ? 'teal' : _c, holiday = _a.holiday, height = _a.height, width = _a.width, handleClick = _a.handleClick;
|
|
3236
|
+
var LogoComponent;
|
|
3237
|
+
var style = { height: height, width: width };
|
|
3238
|
+
if (holiday) {
|
|
3239
|
+
LogoComponent = holidaysLogoIconMap[holiday];
|
|
3240
|
+
}
|
|
3241
|
+
else if (type === 'icon') {
|
|
3242
|
+
LogoComponent = logoIconMap[color];
|
|
3243
|
+
}
|
|
3244
|
+
else {
|
|
3245
|
+
LogoComponent = fullLogoMap[color];
|
|
3246
|
+
}
|
|
3247
|
+
return React__default["default"].createElement(LogoComponent, { style: style, onClick: handleClick });
|
|
3248
|
+
};
|
|
3249
|
+
Logo.displayName = 'Logo';
|
|
3250
|
+
|
|
3251
|
+
var Button = React.forwardRef(function (props, ref) {
|
|
3252
|
+
var _a = useTheme(), components = _a.components, fontWeights = _a.fontWeights, radii = _a.radii;
|
|
3253
|
+
var _b = components.Button[props.variant || 'primary'], variant = _b.variant, light = _b.light, dark = _b.dark;
|
|
3254
|
+
var modeColor = props.darkMode ? dark : light;
|
|
3255
|
+
var bg = react.useColorModeValue(modeColor.default, dark.default);
|
|
3256
|
+
var color = react.useColorModeValue(modeColor.content, dark.content);
|
|
3257
|
+
var borderColor = react.useColorModeValue(modeColor.border, dark.border);
|
|
3258
|
+
var p = __assign(__assign({}, props), { variant: variant, bg: bg, color: color, borderColor: borderColor });
|
|
3259
|
+
var hoverClass = {
|
|
3260
|
+
bg: react.useColorModeValue(modeColor.hover, dark.hover),
|
|
3261
|
+
};
|
|
3262
|
+
var activeClass = {
|
|
3263
|
+
bg: react.useColorModeValue(modeColor.active, dark.active),
|
|
3264
|
+
transform: 'scale(0.98)',
|
|
3265
|
+
};
|
|
3266
|
+
var iconName = p.iconName; p.darkMode; var iconPosition = p.iconPosition, domProps = __rest(p, ["iconName", "darkMode", "iconPosition"]);
|
|
3267
|
+
if (iconName) {
|
|
3268
|
+
var ButtonIcon = React__default["default"].createElement(Icon, { size: p.size || 'md', name: iconName });
|
|
3269
|
+
if (!domProps.children) {
|
|
3270
|
+
var label = camelCaseToLabel(iconName);
|
|
3271
|
+
return (React__default["default"].createElement(react.IconButton, __assign({ ref: ref, _hover: hoverClass, _active: activeClass, "aria-label": label, icon: ButtonIcon, size: p.size || 'md' }, domProps)));
|
|
3272
|
+
}
|
|
3273
|
+
else {
|
|
3274
|
+
var position = iconPosition === 'right' ? 'rightIcon' : 'leftIcon';
|
|
3275
|
+
domProps[position] = ButtonIcon;
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
return (React__default["default"].createElement(react.Button, __assign({ fontWeight: fontWeights.semibold, ref: ref, _hover: hoverClass, _active: activeClass, size: p.size || 'md', iconSpacing: domProps.size === 'sm' || domProps.size === 'xs' ? '4px' : '8px', borderRadius: radii.base }, domProps), domProps.children));
|
|
3279
|
+
});
|
|
3280
|
+
Button.displayName = 'Button';
|
|
3281
|
+
|
|
3282
|
+
var ButtonVariantConfig = {
|
|
3283
|
+
primary: {
|
|
3284
|
+
variant: 'solid',
|
|
3285
|
+
light: {
|
|
3286
|
+
content: colors.text.dark.headline,
|
|
3287
|
+
default: colors.teal['600'],
|
|
3288
|
+
hover: colors.teal['700'],
|
|
3289
|
+
active: colors.teal['800'],
|
|
3290
|
+
border: colors.transparent,
|
|
3291
|
+
},
|
|
3292
|
+
dark: {
|
|
3293
|
+
content: colors.text.light.headline,
|
|
3294
|
+
default: colors.teal['400'],
|
|
3295
|
+
hover: colors.teal['300'],
|
|
3296
|
+
active: colors.teal['100'],
|
|
3297
|
+
border: colors.transparent,
|
|
3298
|
+
},
|
|
3299
|
+
},
|
|
3300
|
+
primaryDestructive: {
|
|
3301
|
+
variant: 'solid',
|
|
3302
|
+
light: {
|
|
3303
|
+
content: colors.text.dark.headline,
|
|
3304
|
+
default: colors.red['500'],
|
|
3305
|
+
hover: colors.red['600'],
|
|
3306
|
+
active: colors.red['700'],
|
|
3307
|
+
border: colors.transparent,
|
|
3308
|
+
},
|
|
3309
|
+
dark: {
|
|
3310
|
+
content: colors.text.light.headline,
|
|
3311
|
+
default: colors.red['200'],
|
|
3312
|
+
hover: colors.red['100'],
|
|
3313
|
+
active: colors.red['50'],
|
|
3314
|
+
border: colors.transparent,
|
|
3315
|
+
},
|
|
3316
|
+
},
|
|
3317
|
+
secondary: {
|
|
3318
|
+
variant: 'outline',
|
|
3319
|
+
light: {
|
|
3320
|
+
content: colors.text.light.default,
|
|
3321
|
+
default: colors.transparent,
|
|
3322
|
+
hover: colors.blackAlpha['100'],
|
|
3323
|
+
active: colors.blackAlpha['200'],
|
|
3324
|
+
border: colors.border.light.heavy,
|
|
3325
|
+
},
|
|
3326
|
+
dark: {
|
|
3327
|
+
content: colors.white,
|
|
3328
|
+
default: colors.transparent,
|
|
3329
|
+
hover: colors.whiteAlpha['300'],
|
|
3330
|
+
active: colors.whiteAlpha['400'],
|
|
3331
|
+
border: colors.white,
|
|
3332
|
+
},
|
|
3333
|
+
},
|
|
3334
|
+
secondaryDestructive: {
|
|
3335
|
+
variant: 'outline',
|
|
3336
|
+
light: {
|
|
3337
|
+
content: colors.text.light.error,
|
|
3338
|
+
default: colors.transparent,
|
|
3339
|
+
hover: colors.blackAlpha['50'],
|
|
3340
|
+
active: colors.blackAlpha['100'],
|
|
3341
|
+
border: colors.border.light.error,
|
|
3342
|
+
},
|
|
3343
|
+
dark: {
|
|
3344
|
+
content: colors.red['300'],
|
|
3345
|
+
default: colors.transparent,
|
|
3346
|
+
hover: colors.whiteAlpha['300'],
|
|
3347
|
+
active: colors.whiteAlpha['400'],
|
|
3348
|
+
border: colors.red['300'],
|
|
3349
|
+
},
|
|
3350
|
+
},
|
|
3351
|
+
secondarySubtle: {
|
|
3352
|
+
variant: 'outline',
|
|
3353
|
+
light: {
|
|
3354
|
+
content: colors.text.light.default,
|
|
3355
|
+
default: colors.white,
|
|
3356
|
+
hover: colors.gray['50'],
|
|
3357
|
+
active: colors.gray['100'],
|
|
3358
|
+
border: colors.border.light.default,
|
|
3359
|
+
},
|
|
3360
|
+
dark: {
|
|
3361
|
+
content: colors.text.dark.default,
|
|
3362
|
+
default: colors.transparent,
|
|
3363
|
+
hover: colors.whiteAlpha['300'],
|
|
3364
|
+
active: colors.whiteAlpha['400'],
|
|
3365
|
+
border: colors.text.dark.default,
|
|
3366
|
+
},
|
|
3367
|
+
},
|
|
3368
|
+
secondarySubtleDestructive: {
|
|
3369
|
+
variant: 'outline',
|
|
3370
|
+
light: {
|
|
3371
|
+
content: colors.text.light.error,
|
|
3372
|
+
default: colors.white,
|
|
3373
|
+
hover: colors.red['50'],
|
|
3374
|
+
active: colors.red['100'],
|
|
3375
|
+
border: colors.border.light.default,
|
|
3376
|
+
},
|
|
3377
|
+
dark: {
|
|
3378
|
+
content: colors.red['300'],
|
|
3379
|
+
default: colors.transparent,
|
|
3380
|
+
hover: colors.whiteAlpha['300'],
|
|
3381
|
+
active: colors.whiteAlpha['400'],
|
|
3382
|
+
border: colors.whiteAlpha['500'],
|
|
3383
|
+
},
|
|
3384
|
+
},
|
|
3385
|
+
tertiary: {
|
|
3386
|
+
variant: 'solid',
|
|
3387
|
+
light: {
|
|
3388
|
+
content: colors.text.light.default,
|
|
3389
|
+
default: colors.gray['100'],
|
|
3390
|
+
hover: colors.gray['200'],
|
|
3391
|
+
active: colors.gray['300'],
|
|
3392
|
+
border: colors.transparent,
|
|
3393
|
+
},
|
|
3394
|
+
dark: {
|
|
3395
|
+
content: colors.text.dark.headline,
|
|
3396
|
+
default: colors.whiteAlpha[200],
|
|
3397
|
+
hover: colors.whiteAlpha[300],
|
|
3398
|
+
active: colors.whiteAlpha[400],
|
|
3399
|
+
border: colors.transparent,
|
|
3400
|
+
},
|
|
3401
|
+
},
|
|
3402
|
+
tertiaryDestructive: {
|
|
3403
|
+
variant: 'solid',
|
|
3404
|
+
light: {
|
|
3405
|
+
content: colors.text.light.error,
|
|
3406
|
+
default: colors.red['100'],
|
|
3407
|
+
hover: colors.red['200'],
|
|
3408
|
+
active: colors.red['300'],
|
|
3409
|
+
border: colors.transparent,
|
|
3410
|
+
},
|
|
3411
|
+
dark: {
|
|
3412
|
+
content: colors.red['300'],
|
|
3413
|
+
default: colors.whiteAlpha['200'],
|
|
3414
|
+
hover: colors.whiteAlpha['300'],
|
|
3415
|
+
active: colors.whiteAlpha['400'],
|
|
3416
|
+
border: colors.transparent,
|
|
3417
|
+
},
|
|
3418
|
+
},
|
|
3419
|
+
ghost: {
|
|
3420
|
+
variant: 'ghost',
|
|
3421
|
+
light: {
|
|
3422
|
+
content: colors.text.light.link,
|
|
3423
|
+
default: colors.transparent,
|
|
3424
|
+
hover: colors.teal['100'],
|
|
3425
|
+
active: colors.teal['200'],
|
|
3426
|
+
border: colors.transparent,
|
|
3427
|
+
},
|
|
3428
|
+
dark: {
|
|
3429
|
+
content: colors.teal['400'],
|
|
3430
|
+
default: colors.transparent,
|
|
3431
|
+
hover: colors.whiteAlpha['300'],
|
|
3432
|
+
active: colors.whiteAlpha['400'],
|
|
3433
|
+
border: colors.transparent,
|
|
3434
|
+
},
|
|
3435
|
+
},
|
|
3436
|
+
ghostNeutral: {
|
|
3437
|
+
variant: 'ghost',
|
|
3438
|
+
light: {
|
|
3439
|
+
content: colors.text.light.default,
|
|
3440
|
+
default: colors.transparent,
|
|
3441
|
+
hover: colors.blackAlpha['100'],
|
|
3442
|
+
active: colors.blackAlpha['200'],
|
|
3443
|
+
border: colors.transparent,
|
|
3444
|
+
},
|
|
3445
|
+
dark: {
|
|
3446
|
+
content: colors.text.dark.headline,
|
|
3447
|
+
default: colors.transparent,
|
|
3448
|
+
hover: colors.whiteAlpha['300'],
|
|
3449
|
+
active: colors.whiteAlpha['400'],
|
|
3450
|
+
border: colors.transparent,
|
|
3451
|
+
},
|
|
3452
|
+
},
|
|
3453
|
+
ghostDestructive: {
|
|
3454
|
+
variant: 'ghost',
|
|
3455
|
+
light: {
|
|
3456
|
+
content: colors.text.light.error,
|
|
3457
|
+
default: colors.transparent,
|
|
3458
|
+
hover: colors.red['100'],
|
|
3459
|
+
active: colors.red['200'],
|
|
3460
|
+
border: colors.transparent,
|
|
3461
|
+
},
|
|
3462
|
+
dark: {
|
|
3463
|
+
content: colors.red['300'],
|
|
3464
|
+
default: colors.transparent,
|
|
3465
|
+
hover: colors.whiteAlpha['300'],
|
|
3466
|
+
active: colors.whiteAlpha['400'],
|
|
3467
|
+
border: colors.transparent,
|
|
3468
|
+
},
|
|
3469
|
+
},
|
|
3470
|
+
};
|
|
3471
|
+
var ButtonSizeConfig = {
|
|
3472
|
+
lg: {
|
|
3473
|
+
p: '0 20px',
|
|
3474
|
+
},
|
|
3475
|
+
md: {
|
|
3476
|
+
p: '0 16px',
|
|
3477
|
+
},
|
|
3478
|
+
sm: {
|
|
3479
|
+
p: '0 12px',
|
|
3480
|
+
},
|
|
3481
|
+
xs: {
|
|
3482
|
+
p: '0 8px',
|
|
3483
|
+
},
|
|
3484
|
+
};
|
|
3485
|
+
|
|
3486
|
+
var AlertButton = function (_a) {
|
|
3487
|
+
var status = _a.status, alignment = _a.alignment, _b = _a.variant, variant = _b === void 0 ? 'secondary' : _b, _c = _a.size, size = _c === void 0 ? 'xs' : _c, _d = _a.pairedWithCloseButton, pairedWithCloseButton = _d === void 0 ? false : _d, rest = __rest(_a, ["status", "alignment", "variant", "size", "pairedWithCloseButton"]);
|
|
3488
|
+
return (React__default["default"].createElement(Button, __assign({ backgroundColor: "semanticColors.background.".concat(status), size: size, variant: variant }, rest, (alignment === 'bottom' && { mt: 2, mb: 1 }), (alignment === 'right' && pairedWithCloseButton && { mr: 2 })), rest.children));
|
|
3650
3489
|
};
|
|
3651
3490
|
|
|
3652
|
-
var
|
|
3653
|
-
var
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3491
|
+
var AlertIcon = function (_a) {
|
|
3492
|
+
var status = _a.status, rest = __rest(_a, ["status"]);
|
|
3493
|
+
return React__default["default"].createElement(Icon, __assign({ color: status === 'info' ? 'active' : status, size: "lg" }, rest));
|
|
3494
|
+
};
|
|
3495
|
+
|
|
3496
|
+
exports.AlertVariant = void 0;
|
|
3497
|
+
(function (AlertVariant) {
|
|
3498
|
+
AlertVariant["Error"] = "error";
|
|
3499
|
+
AlertVariant["Warning"] = "warning";
|
|
3500
|
+
AlertVariant["Success"] = "success";
|
|
3501
|
+
AlertVariant["Info"] = "info";
|
|
3502
|
+
})(exports.AlertVariant || (exports.AlertVariant = {}));
|
|
3503
|
+
exports.AlertStatusIcon = void 0;
|
|
3504
|
+
(function (AlertStatusIcon) {
|
|
3505
|
+
AlertStatusIcon["error"] = "warningSign";
|
|
3506
|
+
AlertStatusIcon["warning"] = "warningSign";
|
|
3507
|
+
AlertStatusIcon["success"] = "checkmark";
|
|
3508
|
+
AlertStatusIcon["info"] = "infoCircleOutlined";
|
|
3509
|
+
})(exports.AlertStatusIcon || (exports.AlertStatusIcon = {}));
|
|
3510
|
+
|
|
3511
|
+
var Text = function (_a) {
|
|
3512
|
+
var children = _a.children, _b = _a.variant, variant = _b === void 0 ? 'regular' : _b, _c = _a.as, as = _c === void 0 ? 'span' : _c, color = _a.color, _d = _a.colorToken, colorToken = _d === void 0 ? 'default' : _d, _e = _a.darkMode, darkMode = _e === void 0 ? false : _e, rest = __rest(_a, ["children", "variant", "as", "color", "colorToken", "darkMode"]);
|
|
3513
|
+
var colors = useTheme().colors;
|
|
3514
|
+
var adaptiveColor = useAdaptiveColorMap(colors.text, colorToken, darkMode);
|
|
3515
|
+
return (React__default["default"].createElement(react.Text, __assign({ variant: variant, as: as, color: color || adaptiveColor }, rest), children));
|
|
3516
|
+
};
|
|
3517
|
+
|
|
3518
|
+
var TextConfig = {
|
|
3519
|
+
variants: {
|
|
3520
|
+
regular: {
|
|
3521
|
+
fontWeight: fontWeights.normal,
|
|
3522
|
+
},
|
|
3523
|
+
semibold: {
|
|
3524
|
+
fontWeight: fontWeights.semibold,
|
|
3525
|
+
},
|
|
3526
|
+
},
|
|
3527
|
+
sizes: {
|
|
3528
|
+
xs: {
|
|
3529
|
+
fontSize: '12px',
|
|
3530
|
+
lineHeight: '150%',
|
|
3531
|
+
},
|
|
3532
|
+
sm: {
|
|
3533
|
+
fontSize: '14px',
|
|
3534
|
+
lineHeight: '150%',
|
|
3535
|
+
},
|
|
3536
|
+
md: {
|
|
3537
|
+
fontSize: '16px',
|
|
3538
|
+
lineHeight: '150%',
|
|
3539
|
+
},
|
|
3540
|
+
lg: {
|
|
3541
|
+
fontSize: '18px',
|
|
3542
|
+
lineHeight: '150%',
|
|
3543
|
+
},
|
|
3544
|
+
xl: {
|
|
3545
|
+
fontSize: '20px',
|
|
3546
|
+
lineHeight: '150%',
|
|
3547
|
+
},
|
|
3548
|
+
'2xl': {
|
|
3549
|
+
fontSize: '24px',
|
|
3550
|
+
lineHeight: '150%',
|
|
3551
|
+
},
|
|
3552
|
+
'3xl': {
|
|
3553
|
+
fontSize: '30px',
|
|
3554
|
+
lineHeight: '150%',
|
|
3555
|
+
},
|
|
3556
|
+
'4xl': {
|
|
3557
|
+
fontSize: '36px',
|
|
3558
|
+
lineHeight: '150%',
|
|
3559
|
+
},
|
|
3560
|
+
'5xl': {
|
|
3561
|
+
fontSize: '48px',
|
|
3562
|
+
lineHeight: '150%',
|
|
3563
|
+
},
|
|
3564
|
+
'6xl': {
|
|
3565
|
+
fontSize: '60px',
|
|
3566
|
+
lineHeight: '150%',
|
|
3567
|
+
},
|
|
3568
|
+
},
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
function useWindowSize() {
|
|
3572
|
+
// Initialize state with undefined width/height so server and client renders match
|
|
3573
|
+
// Learn more here: https://joshwcomeau.com/react/the-perils-of-rehydration/
|
|
3574
|
+
var _a = __read(React.useState({
|
|
3575
|
+
width: undefined,
|
|
3576
|
+
height: undefined,
|
|
3577
|
+
}), 2), windowSize = _a[0], setWindowSize = _a[1];
|
|
3578
|
+
React.useEffect(function () {
|
|
3579
|
+
// Handler to call on window resize
|
|
3580
|
+
function handleResize() {
|
|
3581
|
+
// Set window width/height to state
|
|
3582
|
+
setWindowSize({
|
|
3583
|
+
width: window.innerWidth,
|
|
3584
|
+
height: window.innerHeight,
|
|
3585
|
+
});
|
|
3586
|
+
}
|
|
3587
|
+
// Add event listener
|
|
3588
|
+
window.addEventListener('resize', handleResize);
|
|
3589
|
+
// Call handler right away so state gets updated with initial window size
|
|
3590
|
+
handleResize();
|
|
3591
|
+
// Remove event listener on cleanup
|
|
3592
|
+
return function () { return window.removeEventListener('resize', handleResize); };
|
|
3593
|
+
}, []); // Empty array ensures that effect is only run on mount
|
|
3594
|
+
return windowSize;
|
|
3595
|
+
}
|
|
3596
|
+
|
|
3597
|
+
var useOverflowingText = function (text, textRef) {
|
|
3598
|
+
var size = useWindowSize();
|
|
3599
|
+
var _a = __read(React.useState(false), 2), isTextOverFlowing = _a[0], setIsTextOverFlowing = _a[1];
|
|
3600
|
+
var onCheckTextOverFlowing = React.useCallback(function (containerRefValue) {
|
|
3601
|
+
var _a;
|
|
3602
|
+
if (containerRefValue && containerRefValue.current) {
|
|
3603
|
+
var lines = (_a = containerRefValue.current) === null || _a === void 0 ? void 0 : _a.children[0].getClientRects().length;
|
|
3604
|
+
return lines > 1;
|
|
3605
|
+
}
|
|
3606
|
+
return false;
|
|
3607
|
+
}, []);
|
|
3608
|
+
React.useEffect(function () {
|
|
3609
|
+
// if size of window changes, or if title length changes, check if text is overflowing
|
|
3610
|
+
var isOverFlowing = onCheckTextOverFlowing(textRef);
|
|
3611
|
+
setIsTextOverFlowing(isOverFlowing);
|
|
3612
|
+
}, [size, text, onCheckTextOverFlowing, textRef]);
|
|
3613
|
+
return isTextOverFlowing;
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
var Alert = function (_a) {
|
|
3617
|
+
var _b = _a.status, status = _b === void 0 ? exports.AlertVariant.Success : _b, _c = _a.showIcon, showIcon = _c === void 0 ? true : _c, iconProps = _a.iconProps, _d = _a.showButton, showButton = _d === void 0 ? false : _d, buttonProps = _a.buttonProps, buttonTitle = _a.buttonTitle, alertTitle = _a.alertTitle, titleProps = _a.titleProps, description = _a.description, descriptionProps = _a.descriptionProps, _e = _a.showCloseButton, showCloseButton = _e === void 0 ? true : _e, onClose = _a.onClose, rest = __rest(_a, ["status", "showIcon", "iconProps", "showButton", "buttonProps", "buttonTitle", "alertTitle", "titleProps", "description", "descriptionProps", "showCloseButton", "onClose"]);
|
|
3618
|
+
var titleRef = React.useRef(null);
|
|
3619
|
+
var isTitleOverflowing = useOverflowingText(alertTitle, titleRef);
|
|
3620
|
+
var showButtonInline = showButton && !description && !isTitleOverflowing;
|
|
3621
|
+
var showButtonBottom = (showButton && description) || (showButton && !description && isTitleOverflowing);
|
|
3622
|
+
return (React__default["default"].createElement(react.Alert, __assign({ justifyContent: "space-between", overflow: "visible", variant: status, pl: 3, pr: showCloseButton ? 2 : 3 }, rest),
|
|
3623
|
+
React__default["default"].createElement(react.HStack, { justifyContent: "space-between", w: "100%" },
|
|
3624
|
+
showIcon && (React__default["default"].createElement(react.Flex, { alignSelf: "flex-start" },
|
|
3625
|
+
React__default["default"].createElement(AlertIcon, __assign({ status: status, name: (iconProps === null || iconProps === void 0 ? void 0 : iconProps.name) || exports.AlertStatusIcon[status] }, iconProps)))),
|
|
3626
|
+
React__default["default"].createElement(react.Flex, __assign({ width: "100%", flexDirection: "column" }, (showIcon && { ml: 2 })),
|
|
3627
|
+
React__default["default"].createElement(react.Flex, { alignItems: "flex-start", w: "100%", justifyContent: "space-between" },
|
|
3628
|
+
React__default["default"].createElement(react.Box, { ref: titleRef },
|
|
3629
|
+
React__default["default"].createElement(Text, __assign({ size: "md", variant: "semibold" }, titleProps), alertTitle)),
|
|
3630
|
+
React__default["default"].createElement(react.Flex, { alignItems: "center" },
|
|
3631
|
+
showButtonInline && (React__default["default"].createElement(AlertButton, __assign({ alignment: "right", status: status }, buttonProps, { pairedWithCloseButton: showCloseButton }), buttonTitle)),
|
|
3632
|
+
showCloseButton && React__default["default"].createElement(Button, { variant: "ghostNeutral", iconName: "close", size: "xs", onClick: onClose }))),
|
|
3633
|
+
description && (React__default["default"].createElement(Text, __assign({ size: "md" }, descriptionProps), description)),
|
|
3634
|
+
React__default["default"].createElement(react.Box, null, showButtonBottom && (React__default["default"].createElement(AlertButton, __assign({ alignment: "bottom", status: status }, buttonProps), buttonTitle)))))));
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
var AlertConfig = {
|
|
3638
|
+
baseStyle: {
|
|
3639
|
+
container: {
|
|
3640
|
+
borderRadius: radii.md,
|
|
3641
|
+
width: 'inherit',
|
|
3642
|
+
py: 2,
|
|
3643
|
+
},
|
|
3644
|
+
},
|
|
3645
|
+
variants: {
|
|
3646
|
+
info: {
|
|
3647
|
+
container: {
|
|
3648
|
+
backgroundColor: colors.background.info,
|
|
3649
|
+
},
|
|
3650
|
+
},
|
|
3651
|
+
success: {
|
|
3652
|
+
container: {
|
|
3653
|
+
backgroundColor: colors.background.success,
|
|
3654
|
+
},
|
|
3655
|
+
},
|
|
3656
|
+
warning: {
|
|
3657
|
+
container: {
|
|
3658
|
+
backgroundColor: colors.background.warning,
|
|
3659
|
+
},
|
|
3660
|
+
},
|
|
3661
|
+
error: {
|
|
3662
|
+
container: {
|
|
3663
|
+
backgroundColor: colors.background.error,
|
|
3664
|
+
},
|
|
3665
|
+
},
|
|
3666
|
+
},
|
|
3667
|
+
};
|
|
3668
3668
|
|
|
3669
3669
|
var notificationCounterSize = {
|
|
3670
3670
|
xs: 'sm',
|
|
@@ -13106,9 +13106,9 @@ var ModalHeader = function (_a) {
|
|
|
13106
13106
|
};
|
|
13107
13107
|
|
|
13108
13108
|
var ModalCloseButton = function (_a) {
|
|
13109
|
-
var _b = _a.right, right = _b === void 0 ? 2 : _b, _c = _a.
|
|
13109
|
+
var _b = _a.right, right = _b === void 0 ? 2 : _b, _c = _a.top, top = _c === void 0 ? 2 : _c, _d = _a.size, size = _d === void 0 ? 'md' : _d, rest = __rest(_a, ["right", "top", "size"]);
|
|
13110
13110
|
var onClose = react.useModalContext().onClose;
|
|
13111
|
-
return (React__default["default"].createElement(Button, __assign({ variant: "ghostNeutral", onClick: onClose, iconName: "close", position: "absolute", right: right, top:
|
|
13111
|
+
return (React__default["default"].createElement(Button, __assign({ variant: "ghostNeutral", onClick: onClose, iconName: "close", position: "absolute", right: right, top: top, size: size }, rest)));
|
|
13112
13112
|
};
|
|
13113
13113
|
|
|
13114
13114
|
var ModalBody = function (_a) {
|
|
@@ -13137,6 +13137,70 @@ var ModalFooterButtons = function (_a) {
|
|
|
13137
13137
|
React__default["default"].createElement(Button, { onClick: onSubmit, isLoading: isLoading, isDisabled: isDisabled, variant: isDestructive ? 'primaryDestructive' : 'primary' }, submitText))));
|
|
13138
13138
|
};
|
|
13139
13139
|
|
|
13140
|
+
var Popover = function (_a) {
|
|
13141
|
+
var children = _a.children, popoverTrigger = _a.popoverTrigger, darkMode = _a.darkMode, _b = _a.allowEscape, allowEscape = _b === void 0 ? true : _b, _c = _a.size, size = _c === void 0 ? 'sm' : _c, _d = _a.shadow, shadow = _d === void 0 ? 'md' : _d, rest = __rest(_a, ["children", "popoverTrigger", "darkMode", "allowEscape", "size", "shadow"]);
|
|
13142
|
+
var _e = useTheme(), colors = _e.colors, components = _e.components;
|
|
13143
|
+
var width = components.Popover[size].width;
|
|
13144
|
+
var adaptiveBackground = useAdaptiveColor(colors.background);
|
|
13145
|
+
var bg = !darkMode ? adaptiveBackground : colors.background.dark;
|
|
13146
|
+
return (React__default["default"].createElement(react.Popover, __assign({}, rest, { closeOnBlur: allowEscape, closeOnEsc: allowEscape }),
|
|
13147
|
+
React__default["default"].createElement(react.PopoverTrigger, null, popoverTrigger),
|
|
13148
|
+
withDarkMode$1(React__default["default"].createElement(react.PopoverContent, { width: width, bg: bg, shadow: shadow },
|
|
13149
|
+
React__default["default"].createElement(react.PopoverArrow, { bg: bg }),
|
|
13150
|
+
React__default["default"].createElement(Text, { size: "sm" }, children)), !!darkMode)));
|
|
13151
|
+
};
|
|
13152
|
+
|
|
13153
|
+
var popover_component = /*#__PURE__*/Object.freeze({
|
|
13154
|
+
__proto__: null,
|
|
13155
|
+
Popover: Popover
|
|
13156
|
+
});
|
|
13157
|
+
|
|
13158
|
+
var PopoverConfig = {
|
|
13159
|
+
xs: { width: 160 },
|
|
13160
|
+
sm: { width: 200 },
|
|
13161
|
+
md: { width: 260 },
|
|
13162
|
+
lg: { width: 320 },
|
|
13163
|
+
xl: { width: 480 },
|
|
13164
|
+
};
|
|
13165
|
+
|
|
13166
|
+
var PopoverBody = function (_a) {
|
|
13167
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
13168
|
+
return (React__default["default"].createElement(react.PopoverBody, __assign({ pb: 3, pt: 0 }, rest), children));
|
|
13169
|
+
};
|
|
13170
|
+
|
|
13171
|
+
var PopoverFooter = function (_a) {
|
|
13172
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
13173
|
+
return (React__default["default"].createElement(react.PopoverFooter, __assign({}, rest, { pb: 3, pt: 0, borderTop: 0 }), children));
|
|
13174
|
+
};
|
|
13175
|
+
|
|
13176
|
+
var PopoverCloseButton = function (_a) {
|
|
13177
|
+
var _b = _a.size, size = _b === void 0 ? 'xs' : _b, rest = __rest(_a, ["size"]);
|
|
13178
|
+
var onClose = react.usePopoverContext().onClose;
|
|
13179
|
+
return (React__default["default"].createElement(Button, __assign({ variant: "ghostNeutral", onClick: onClose, iconName: "close", position: "absolute", right: 1, top: 1, size: size }, rest)));
|
|
13180
|
+
};
|
|
13181
|
+
|
|
13182
|
+
var PopoverHeader = function (_a) {
|
|
13183
|
+
var _b = _a.size, size = _b === void 0 ? 'sm' : _b, color = _a.color, colorToken = _a.colorToken, children = _a.children, rest = __rest(_a, ["size", "color", "colorToken", "children"]);
|
|
13184
|
+
return (React__default["default"].createElement(react.PopoverHeader, __assign({ px: 3, pt: 3, pb: 1, borderBottom: 0 }, rest),
|
|
13185
|
+
React__default["default"].createElement(Heading, { size: size, colorToken: colorToken, color: color }, children)));
|
|
13186
|
+
};
|
|
13187
|
+
|
|
13188
|
+
var PopoverFooterButtons = function (_a) {
|
|
13189
|
+
var _b = _a.submitText, submitText = _b === void 0 ? 'Submit' : _b, isLoading = _a.isLoading, isDisabled = _a.isDisabled, isDestructive = _a.isDestructive; _a.children; var onSubmit = _a.onSubmit, _c = _a.allowCancel, allowCancel = _c === void 0 ? true : _c, onCancel = _a.onCancel, rest = __rest(_a, ["submitText", "isLoading", "isDisabled", "isDestructive", "children", "onSubmit", "allowCancel", "onCancel"]);
|
|
13190
|
+
var onClose = react.usePopoverContext().onClose;
|
|
13191
|
+
var handleCancel = function () {
|
|
13192
|
+
if (onCancel) {
|
|
13193
|
+
onCancel();
|
|
13194
|
+
}
|
|
13195
|
+
onClose();
|
|
13196
|
+
};
|
|
13197
|
+
return (React__default["default"].createElement(PopoverFooter, __assign({}, rest),
|
|
13198
|
+
React__default["default"].createElement(react.Flex, { w: "100%" },
|
|
13199
|
+
allowCancel && (React__default["default"].createElement(Button, { variant: "tertiary", size: "sm", onClick: handleCancel }, "Cancel")),
|
|
13200
|
+
React__default["default"].createElement(react.Spacer, null),
|
|
13201
|
+
React__default["default"].createElement(Button, { onClick: onSubmit, isLoading: isLoading, isDisabled: isDisabled, size: "sm", variant: isDestructive ? 'primaryDestructive' : 'primary' }, submitText))));
|
|
13202
|
+
};
|
|
13203
|
+
|
|
13140
13204
|
// @ts-ignore
|
|
13141
13205
|
var theme = react.extendTheme({
|
|
13142
13206
|
styles: {
|
|
@@ -13175,6 +13239,7 @@ var theme = react.extendTheme({
|
|
|
13175
13239
|
Avatar: AvatarConfig,
|
|
13176
13240
|
Alert: AlertConfig,
|
|
13177
13241
|
Menu: MenuConfig,
|
|
13242
|
+
Popover: PopoverConfig,
|
|
13178
13243
|
Tag: TagConfig,
|
|
13179
13244
|
Tabs: TabsConfig,
|
|
13180
13245
|
Radio: RadioConfig,
|
|
@@ -15978,6 +16043,10 @@ Object.defineProperty(exports, 'useDisclosure', {
|
|
|
15978
16043
|
enumerable: true,
|
|
15979
16044
|
get: function () { return react.useDisclosure; }
|
|
15980
16045
|
});
|
|
16046
|
+
Object.defineProperty(exports, 'usePopoverContext', {
|
|
16047
|
+
enumerable: true,
|
|
16048
|
+
get: function () { return react.usePopoverContext; }
|
|
16049
|
+
});
|
|
15981
16050
|
Object.defineProperty(exports, 'useRadio', {
|
|
15982
16051
|
enumerable: true,
|
|
15983
16052
|
get: function () { return react.useRadio; }
|
|
@@ -15996,6 +16065,7 @@ exports.AvatarGroup = AvatarGroup;
|
|
|
15996
16065
|
exports.BetaDatePicker = BetaDatePicker;
|
|
15997
16066
|
exports.BetaMenu = BetaMenu;
|
|
15998
16067
|
exports.BetaModal = modal_component;
|
|
16068
|
+
exports.BetaPopover = popover_component;
|
|
15999
16069
|
exports.Button = Button;
|
|
16000
16070
|
exports.ButtonSizeConfig = ButtonSizeConfig;
|
|
16001
16071
|
exports.ButtonVariantConfig = ButtonVariantConfig;
|
|
@@ -16018,6 +16088,12 @@ exports.ModalFooter = ModalFooter;
|
|
|
16018
16088
|
exports.ModalFooterButtons = ModalFooterButtons;
|
|
16019
16089
|
exports.ModalHeader = ModalHeader;
|
|
16020
16090
|
exports.NotificationCounter = NotificationCounter;
|
|
16091
|
+
exports.PopoverBody = PopoverBody;
|
|
16092
|
+
exports.PopoverCloseButton = PopoverCloseButton;
|
|
16093
|
+
exports.PopoverConfig = PopoverConfig;
|
|
16094
|
+
exports.PopoverFooter = PopoverFooter;
|
|
16095
|
+
exports.PopoverFooterButtons = PopoverFooterButtons;
|
|
16096
|
+
exports.PopoverHeader = PopoverHeader;
|
|
16021
16097
|
exports.Radio = Radio;
|
|
16022
16098
|
exports.RadioConfig = RadioConfig;
|
|
16023
16099
|
exports.RadioGroup = WrappedRadioGroup;
|