@easypost/easy-ui 1.0.0-alpha.74 → 1.0.0-alpha.76
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/Button/index.js +1 -1
- package/Button/index.mjs +1 -1
- package/CHANGELOG.md +20 -0
- package/Calendar/index.js +1 -1
- package/Calendar/index.mjs +1 -1
- package/CheckableCard/index.js +1 -1
- package/CheckableCard/index.mjs +1 -1
- package/Checkbox/index.js +1 -1
- package/Checkbox/index.mjs +1 -1
- package/CodeBlock/index.js +6 -6
- package/CodeBlock/index.mjs +7 -7
- package/CodeSnippet/index.js +1 -1
- package/CodeSnippet/index.mjs +1 -1
- package/DataGrid/index.js +36 -25
- package/DataGrid/index.mjs +35 -24
- package/DataGrid/types.d.ts +96 -0
- package/DataGrid/types.d.ts.map +1 -0
- package/DatePicker/index.js +7 -7
- package/DatePicker/index.mjs +12 -12
- package/DateRangePicker/index.js +7 -7
- package/DateRangePicker/index.mjs +12 -12
- package/Drawer/index.js +7 -1693
- package/Drawer/index.mjs +5 -1691
- package/DropdownButton/index.js +1 -1
- package/DropdownButton/index.mjs +1 -1
- package/FocusedProductLayout/index.js +3 -3
- package/FocusedProductLayout/index.mjs +3 -3
- package/ForgeLayout/index.js +10 -10
- package/ForgeLayout/index.mjs +11 -11
- package/IconButton/index.js +1 -1
- package/IconButton/index.mjs +1 -1
- package/InputField/index.js +1 -1
- package/InputField/index.mjs +1 -1
- package/KebabButton/KebabButton.d.ts.map +1 -1
- package/KebabButton/index.js +1 -1
- package/KebabButton/index.mjs +1 -1
- package/Menu/index.js +1 -1
- package/Menu/index.mjs +1 -1
- package/Modal/index.js +5 -5
- package/Modal/index.mjs +5 -5
- package/MultiSelect/index.js +30 -30
- package/MultiSelect/index.mjs +24 -24
- package/NexusLayout/index.js +5 -5
- package/NexusLayout/index.mjs +6 -6
- package/Notification/Notification.d.ts +12 -1
- package/Notification/Notification.d.ts.map +1 -1
- package/Notification/NotificationContainer.d.ts.map +1 -1
- package/Notification/NotificationRegion.d.ts +7 -2
- package/Notification/NotificationRegion.d.ts.map +1 -1
- package/Notification/NotificationTransition.d.ts +29 -0
- package/Notification/NotificationTransition.d.ts.map +1 -0
- package/Notification/index.js +1 -1
- package/Notification/index.mjs +1 -1
- package/Pagination/index.js +2 -2
- package/Pagination/index.mjs +2 -2
- package/PillGroup/index.js +1 -1
- package/PillGroup/index.mjs +1 -1
- package/ProductLayout/index.js +8 -8
- package/ProductLayout/index.mjs +8 -8
- package/Provider/index.js +2 -2
- package/Provider/index.mjs +2 -2
- package/RadioButtonGroup/index.js +4 -4
- package/RadioButtonGroup/index.mjs +7 -7
- package/RadioGroup/index.js +1 -1
- package/RadioGroup/index.mjs +1 -1
- package/RangeCalendar/index.js +1 -1
- package/RangeCalendar/index.mjs +1 -1
- package/SearchNav/index.js +4 -4
- package/SearchNav/index.mjs +4 -4
- package/Select/index.js +2 -2
- package/Select/index.mjs +2 -2
- package/SelectorErrorTooltip/index.js +1 -1
- package/SelectorErrorTooltip/index.mjs +1 -1
- package/Spinner/index.mjs +1 -1
- package/SplitToggleCard/index.js +1 -1
- package/SplitToggleCard/index.mjs +1 -1
- package/Stepper/index.js +1 -1
- package/Stepper/index.mjs +1 -1
- package/TabNav/index.js +1 -1
- package/TabNav/index.mjs +1 -1
- package/TabPanels/index.js +5 -5
- package/TabPanels/index.mjs +8 -8
- package/Tabs/index.js +1 -1
- package/Tabs/index.mjs +1 -1
- package/TextField/index.js +1 -1
- package/TextField/index.mjs +1 -1
- package/Textarea/index.js +1 -1
- package/Textarea/index.mjs +1 -1
- package/Toggle/index.js +1 -1
- package/Toggle/index.mjs +1 -1
- package/Tooltip/index.js +1 -1
- package/Tooltip/index.mjs +1 -1
- package/UnstyledButton/index.js +1 -1
- package/UnstyledButton/index.mjs +1 -1
- package/VerticalNav/index.js +2 -2
- package/VerticalNav/index.mjs +3 -3
- package/__chunks__/{Button-DhaXhFT-.mjs → Button-CSNMWizI.mjs} +5 -5
- package/__chunks__/{Button-E5WMp4Zg.js → Button-D9a9VZzF.js} +3 -3
- package/__chunks__/{Button-BP4wFAxx.js → Button-DA6XfGLP.js} +1 -1
- package/__chunks__/{Button-Cltfedkl.mjs → Button-cjD7z6sK.mjs} +1 -1
- package/__chunks__/CSSTransition-BXyX0mUc.js +1689 -0
- package/__chunks__/CSSTransition-C4FQrt4m.mjs +1690 -0
- package/__chunks__/{Calendar-4bRks2Gi.mjs → Calendar-B4BCW9t8.mjs} +2 -2
- package/__chunks__/{Calendar-B1PZJFWH.js → Calendar-BGIbWVyN.js} +1 -1
- package/__chunks__/{CalendarBase-Do4GSgxd.js → CalendarBase-BgzOdHfS.js} +5 -6
- package/__chunks__/{CalendarBase-B3wrkkDS.mjs → CalendarBase-C_AQ7bu5.mjs} +9 -10
- package/__chunks__/{Checkbox-BWiWcRta.mjs → Checkbox-BMBM6doF.mjs} +7 -7
- package/__chunks__/{Checkbox-DlGXuABy.js → Checkbox-DEmP9BGE.js} +6 -6
- package/__chunks__/{CodeSnippet-BUoVXuUr.mjs → CodeSnippet-B6KCRlKQ.mjs} +47 -60
- package/__chunks__/{CodeSnippet-odGPao5O.js → CodeSnippet-BBZpDbHX.js} +47 -60
- package/__chunks__/{DatePickerBase-CphayrFl.mjs → DatePickerBase-VNenwOmb.mjs} +18 -18
- package/__chunks__/{DatePickerBase-CV6eQTsD.js → DatePickerBase-WNWiVJoF.js} +12 -12
- package/__chunks__/{Dialog-Bn6AgWyj.js → Dialog-Dde11Vfw.js} +7 -7
- package/__chunks__/{Dialog-CpCJycIv.mjs → Dialog-E2U6mUFU.mjs} +10 -10
- package/__chunks__/{FocusScope-Dg66t-dG.mjs → FocusScope-CQhiv02m.mjs} +3 -4
- package/__chunks__/{FocusScope-CL3-fUEU.js → FocusScope-DxiwSl55.js} +32 -33
- package/__chunks__/{HelpMenu-Bpe3QdoK.mjs → HelpMenu-Bed-PzGS.mjs} +2 -2
- package/__chunks__/{HelpMenu-BsRNOEFK.js → HelpMenu-CTNmYcKm.js} +2 -2
- package/__chunks__/{InputField-DlJu_e99.js → InputField-Bb98b1MA.js} +3 -3
- package/__chunks__/{InputField-BcEdR4h5.mjs → InputField-Dm5yHcWV.mjs} +3 -3
- package/__chunks__/{KebabButton-uoFD_mgV.js → KebabButton-B9eYB6ZD.js} +2 -19
- package/__chunks__/{KebabButton-B98kLaDH.mjs → KebabButton-gf3gFlb0.mjs} +4 -21
- package/__chunks__/{Menu-DKoRZfeR.js → Menu-BVTFMAX-.js} +12 -12
- package/__chunks__/{Menu-BpTzrm6c.mjs → Menu-DJS86zDM.mjs} +13 -13
- package/__chunks__/{Notification-fsBr9yzr.js → Notification-B_dzUkJq.js} +353 -40
- package/__chunks__/{Notification-Br5D4KA8.mjs → Notification-C-_hCM1v.mjs} +351 -38
- package/__chunks__/{Overlay-CwRnK9dm.js → Overlay-BqaNlC3s.js} +10 -10
- package/__chunks__/{Overlay-BtkNBEyr.mjs → Overlay-CG-kKp6T.mjs} +3 -3
- package/__chunks__/{PillGroup-DQxoRceT.js → PillGroup-D-VEy6sn.js} +14 -14
- package/__chunks__/{PillGroup-Bwtq0W9U.mjs → PillGroup-DZtHC3NK.mjs} +21 -21
- package/__chunks__/{RadioGroup-DHvuOAI0.js → RadioGroup-CDmT0FW5.js} +8 -8
- package/__chunks__/{RadioGroup-iTWNHb_4.mjs → RadioGroup-ppUojVMB.mjs} +12 -12
- package/__chunks__/{RangeCalendar-CV64PgSa.js → RangeCalendar-B5UtHhmt.js} +1 -1
- package/__chunks__/{RangeCalendar-W6F-KXKF.mjs → RangeCalendar-rMPxj6HM.mjs} +3 -3
- package/__chunks__/{SelectOverlay-D5Df5qbg.mjs → SelectOverlay-CG2jyYZ_.mjs} +13 -13
- package/__chunks__/{SelectOverlay-snHhT9xQ.js → SelectOverlay-DgDBimW8.js} +9 -9
- package/__chunks__/{SelectorErrorTooltip-ZTlArMnH.js → SelectorErrorTooltip-BfKzfYpQ.js} +1 -1
- package/__chunks__/{SelectorErrorTooltip-D78wZKLX.mjs → SelectorErrorTooltip-Dkuaiq7N.mjs} +1 -1
- package/__chunks__/{Spinner-fkGldbX3.mjs → Spinner-C4B8utkI.mjs} +3 -3
- package/__chunks__/{Stepper-BUH1axEj.mjs → Stepper-Dbvg5Wn_.mjs} +3 -3
- package/__chunks__/{Stepper-DLfdtbvv.js → Stepper-lFftpFos.js} +2 -2
- package/__chunks__/{TabNav-CKEi-DUF.mjs → TabNav-CNAVzfBp.mjs} +1 -1
- package/__chunks__/{TabNav-BUwzxG3g.js → TabNav-D6mXxhua.js} +1 -1
- package/__chunks__/{Tabs--FBVp-tw.js → Tabs-9z2E6ZhV.js} +2 -2
- package/__chunks__/{Tabs-C7OfCIBi.mjs → Tabs-Chw75GHi.mjs} +3 -3
- package/__chunks__/{TextField-DJ5YAdLq.js → TextField-Co8OtDnO.js} +1 -1
- package/__chunks__/{TextField-BWEZbXZ-.mjs → TextField-HXNCIy4W.mjs} +1 -1
- package/__chunks__/{Toggle-DdKkOwZq.js → Toggle-C1cAD3ld.js} +3 -3
- package/__chunks__/{Toggle-CgRXkhDq.mjs → Toggle-Dm0_ZvLs.mjs} +4 -4
- package/__chunks__/{Tooltip-b45ajKHN.js → Tooltip-C9bST6SD.js} +5 -5
- package/__chunks__/{Tooltip-2wr2yp_C.mjs → Tooltip-DzWQUbuB.mjs} +6 -6
- package/__chunks__/{UnstyledButton-aKk2POM3.mjs → UnstyledButton-D0_XmlIu.mjs} +2 -2
- package/__chunks__/{UnstyledButton-BNciIRwZ.js → UnstyledButton-d3ChgECf.js} +1 -1
- package/__chunks__/{VisuallyHidden-BW8z0u63.mjs → VisuallyHidden-Buyb8r_B.mjs} +2 -2
- package/__chunks__/{VisuallyHidden-CxznJ2eH.js → VisuallyHidden-Cl5AQsPA.js} +1 -1
- package/__chunks__/{ariaHideOutside-CCOx7fIt.js → ariaHideOutside-7ae_6If3.js} +5 -5
- package/__chunks__/{ariaHideOutside-BWTlv_g_.mjs → ariaHideOutside-b0UviP2F.mjs} +4 -4
- package/__chunks__/{context-BZH2zfKM.mjs → context-C5QKMZmh.mjs} +1 -1
- package/__chunks__/{context-B-dkBtcD.js → focusSafely-CucekFxc.js} +12 -0
- package/__chunks__/{context-ClcSNaYl.mjs → focusSafely-psnzsNzD.mjs} +15 -3
- package/__chunks__/{mergeProps-C4OYS8Nd.mjs → mergeProps-DRsiQq2k.mjs} +5 -5
- package/__chunks__/objectWithoutPropertiesLoose-C4Mip8ZU.js +21 -0
- package/__chunks__/objectWithoutPropertiesLoose-COdxq1Ge.mjs +22 -0
- package/__chunks__/{scrollIntoView-1v0vfaIN.mjs → scrollIntoView-DSPpbfzY.mjs} +1 -1
- package/__chunks__/{useButton-B8EwIeGA.mjs → useButton-Doz4-YMS.mjs} +3 -3
- package/__chunks__/{useButton-BUzZ-5VB.js → useButton-SSooC6Sc.js} +2 -2
- package/__chunks__/{useCollator-CYCg6wMz.mjs → useCollator-DiblLehW.mjs} +1 -1
- package/__chunks__/{useDialog-mJmFmECS.mjs → useDialog-B6qJASRh.mjs} +3 -3
- package/__chunks__/{useDialog-BkTg_V3k.js → useDialog-CmV1awNZ.js} +2 -2
- package/__chunks__/{useEvent-DUet8f_n.mjs → useEvent-BR4RE1uc.mjs} +1 -1
- package/__chunks__/{useField-CQfJ37Nt.mjs → useField-D71RzzwQ.mjs} +2 -2
- package/__chunks__/{useFilter-D3MAuO1e.mjs → useFilter-Cd0PVtCe.mjs} +1 -1
- package/__chunks__/{useFocus-BR2JUcSC.mjs → useFocus-BL_s_3zv.mjs} +1 -1
- package/__chunks__/{useFocus-CMM1E_s1.js → useFocus-Da6IfenG.js} +5 -5
- package/__chunks__/{useFocusRing-BbxvDonI.mjs → useFocusRing-4hM0Ggs3.mjs} +3 -3
- package/__chunks__/{useFocusRing-BTr2SNa0.js → useFocusRing-CtLKOxxD.js} +3 -3
- package/__chunks__/{utils-DTjlhnVc.js → useFocusVisible-CLoIPL6T.js} +181 -3
- package/__chunks__/{utils-_T25xnBK.mjs → useFocusVisible-CQ1e0o7u.mjs} +201 -24
- package/__chunks__/{useFocusWithin-DMidhx8C.mjs → useFocusWithin-BgSjulWP.mjs} +1 -1
- package/__chunks__/{useFocusWithin-B1KKdipT.js → useFocusWithin-T1vqkUYN.js} +8 -8
- package/__chunks__/{useFocusable-BQyiLqbY.mjs → useFocusable-C-Ge2Ht4.mjs} +3 -4
- package/__chunks__/{useFocusable-6aWd3xB2.js → useFocusable-DRHM1otK.js} +5 -6
- package/__chunks__/{useFormReset-DwIsbrAk.mjs → useFormReset-BUBASXJO.mjs} +1 -1
- package/__chunks__/{useFormValidation-SckXeoUZ.mjs → useFormValidation-Crn66hAu.mjs} +2 -2
- package/__chunks__/{useFormValidation-BqUyj3MW.js → useFormValidation-DaCYT2Ut.js} +1 -1
- package/__chunks__/{useHasTabbableChild-BkKbzCwx.mjs → useHasTabbableChild-DQC24yLO.mjs} +2 -2
- package/__chunks__/{useHasTabbableChild-OzJPDs7u.js → useHasTabbableChild-DSm3UrCF.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-DDHTMZiR.js → useHighlightSelectionDescription-B49pg43a.js} +1 -1
- package/__chunks__/{useHighlightSelectionDescription-C3ZHe657.mjs → useHighlightSelectionDescription-BGq4guwQ.mjs} +4 -4
- package/__chunks__/{useHover-DpEGMvo6.mjs → useHover-BBXJy5NT.mjs} +1 -1
- package/__chunks__/{useHover-NuBBFo1D.js → useHover-BCKoTdS5.js} +4 -4
- package/__chunks__/{useLabel-B3S3Miea.mjs → useLabel-CMWuiLM0.mjs} +2 -2
- package/__chunks__/{useLabels-ClfID0sX.mjs → useLabels-DCSAqT2C.mjs} +1 -1
- package/__chunks__/{useLink-DyvPn11c.js → useLink-DihQM2-s.js} +2 -2
- package/__chunks__/{useLink-WThPkjA2.mjs → useLink-Dmu5rS4r.mjs} +3 -3
- package/__chunks__/{useListBoxSection-8W_ApdBB.mjs → useListBoxSection-CpQ4pADf.mjs} +8 -9
- package/__chunks__/{useListBoxSection-rWvzEd35.js → useListBoxSection-u2FxpXWK.js} +7 -8
- package/__chunks__/{useLocalizedStringFormatter-BhtDVRd3.mjs → useLocalizedStringFormatter-SC1Py3Uf.mjs} +1 -1
- package/__chunks__/{useMenuTrigger-D1J5fKGN.mjs → useMenuTrigger-BlLkvrnl.mjs} +5 -5
- package/__chunks__/{useMenuTrigger-BVkF1AqM.js → useMenuTrigger-Dq7mhK38.js} +4 -4
- package/__chunks__/{useMenuTriggerState-BtbgVHYJ.mjs → useMenuTriggerState-C-zvqrX2.mjs} +1 -1
- package/__chunks__/{useMenuTriggerState-Skj7UUPq.js → useMenuTriggerState-DmsfK2RH.js} +1 -1
- package/__chunks__/{useModalOverlay-USYfWlZ0.mjs → useModalOverlay-BlCaGnUr.mjs} +3 -3
- package/__chunks__/{useModalOverlay-VZIDHsXZ.js → useModalOverlay-C_b9YfI9.js} +2 -2
- package/__chunks__/{useOverlayPosition-4b_rkosH.js → useOverlayPosition-BIRVQjJL.js} +3 -3
- package/__chunks__/{useOverlayPosition-vVuqBjvk.mjs → useOverlayPosition-D8MX_oIt.mjs} +4 -4
- package/__chunks__/{useOverlayTrigger-Df2Gw0ns.js → useOverlayTrigger-BJJgq7LS.js} +1 -1
- package/__chunks__/{useOverlayTrigger-C_ezbQv8.mjs → useOverlayTrigger-Coc4zW72.mjs} +2 -2
- package/__chunks__/{usePress-CMfwAyab.mjs → usePress-BH70cn5g.mjs} +3 -3
- package/__chunks__/{usePress-BkfhIu8i.js → usePress-DchxjERD.js} +53 -53
- package/__chunks__/{useSelectableItem-DyTPlPnm.js → useSelectableItem-CxOGkw0W.js} +12 -13
- package/__chunks__/{useSelectableItem-DR0zbOkr.mjs → useSelectableItem-Xr4pjjqP.mjs} +8 -9
- package/__chunks__/{useSelectableList-CPXWkbh2.mjs → useSelectableList-D7mL6j6I.mjs} +2 -2
- package/__chunks__/{useSelectableList-CORVRfbM.js → useSelectableList-F9Rfjy4j.js} +1 -1
- package/__chunks__/{useTextField-BMdTAdta.mjs → useTextField-Dn8JlzYF.mjs} +6 -6
- package/__chunks__/{useTextField-CLVShmFK.js → useTextField-USpUKriF.js} +4 -4
- package/__chunks__/{useToggle-XRd89s8O.mjs → useToggle-BlKdU7Ta.mjs} +4 -4
- package/__chunks__/{useToggle-ARrVy-Wa.js → useToggle-CRkaTfEP.js} +2 -2
- package/__chunks__/{utilities-9S1EwfZA.mjs → utilities-BB2zmROs.mjs} +6 -6
- package/__chunks__/{utilities-1DzM5WE1.js → utilities-x6Aiy1EG.js} +3 -3
- package/__chunks__/{utils-VVmFE3B0.mjs → utils-CwzguevQ.mjs} +1 -1
- package/package.json +2 -2
- package/style.css +195 -164
- package/__chunks__/focusSafely-DLX4i5KV.js +0 -15
- package/__chunks__/focusSafely-MpYXzuLP.mjs +0 -16
- package/__chunks__/objectWithoutPropertiesLoose-3GpnIKeG.js +0 -29
- package/__chunks__/objectWithoutPropertiesLoose-ij10PUAf.mjs +0 -30
- package/__chunks__/useFocusVisible-DFYEx6se.js +0 -182
- package/__chunks__/useFocusVisible-D_XXcaLm.mjs +0 -183
|
@@ -18,21 +18,35 @@ var __spreadValues = (a, b) => {
|
|
|
18
18
|
return a;
|
|
19
19
|
};
|
|
20
20
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
21
|
+
var __objRest = (source, exclude) => {
|
|
22
|
+
var target = {};
|
|
23
|
+
for (var prop in source)
|
|
24
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
25
|
+
target[prop] = source[prop];
|
|
26
|
+
if (source != null && __getOwnPropSymbols)
|
|
27
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
28
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
}
|
|
31
|
+
return target;
|
|
32
|
+
};
|
|
21
33
|
const React = require("react");
|
|
34
|
+
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
22
35
|
const Close = require("./Close-BQ2IlPyf.js");
|
|
23
36
|
const CheckCircle = require("./CheckCircle-lgmtkEe6.js");
|
|
24
37
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
25
38
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-C3ZwxPrF.js");
|
|
26
39
|
const ReactDOM = require("react-dom");
|
|
40
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
41
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
42
|
+
const useHover = require("./useHover-BCKoTdS5.js");
|
|
27
43
|
const index = require("./index-6ObXAT_4.js");
|
|
28
44
|
const Icon = require("./Icon-W8F9w-jS.js");
|
|
29
45
|
const Text = require("./Text-DZ601qf9.js");
|
|
30
46
|
const utilities_css = require("../utilities/css.js");
|
|
31
|
-
const UnstyledButton = require("./UnstyledButton-
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const useFocusWithin = require("./useFocusWithin-B1KKdipT.js");
|
|
35
|
-
const useHover = require("./useHover-NuBBFo1D.js");
|
|
47
|
+
const UnstyledButton = require("./UnstyledButton-d3ChgECf.js");
|
|
48
|
+
const CSSTransition = require("./CSSTransition-BXyX0mUc.js");
|
|
49
|
+
const objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose-C4Mip8ZU.js");
|
|
36
50
|
function _interopNamespaceDefault(e) {
|
|
37
51
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
38
52
|
if (e) {
|
|
@@ -895,7 +909,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
895
909
|
let removedFocusedToastIndex = allToasts.findIndex((t) => t.i === focusedToast.current && t.isRemoved);
|
|
896
910
|
if (removedFocusedToastIndex > -1) {
|
|
897
911
|
var _lastFocused_current;
|
|
898
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected))
|
|
912
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer" && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected)) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
899
913
|
else {
|
|
900
914
|
let i = 0;
|
|
901
915
|
let nextToast;
|
|
@@ -912,8 +926,8 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
912
926
|
i++;
|
|
913
927
|
}
|
|
914
928
|
if (prevToast === void 0 && nextToast === void 0) prevToast = 0;
|
|
915
|
-
if (prevToast >= 0 && prevToast < toasts.current.length)
|
|
916
|
-
else if (nextToast >= 0 && nextToast < toasts.current.length)
|
|
929
|
+
if (prevToast >= 0 && prevToast < toasts.current.length) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(toasts.current[prevToast]);
|
|
930
|
+
else if (nextToast >= 0 && nextToast < toasts.current.length) useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(toasts.current[nextToast]);
|
|
917
931
|
}
|
|
918
932
|
}
|
|
919
933
|
prevVisibleToasts.current = state.visibleToasts;
|
|
@@ -938,7 +952,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
938
952
|
React.useEffect(() => {
|
|
939
953
|
var _lastFocused_current;
|
|
940
954
|
if (state.visibleToasts.length === 0 && ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected)) {
|
|
941
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer")
|
|
955
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer") useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
942
956
|
else lastFocused.current.focus();
|
|
943
957
|
lastFocused.current = null;
|
|
944
958
|
}
|
|
@@ -950,7 +964,7 @@ function $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref) {
|
|
|
950
964
|
return () => {
|
|
951
965
|
var _lastFocused_current;
|
|
952
966
|
if ((_lastFocused_current = lastFocused.current) === null || _lastFocused_current === void 0 ? void 0 : _lastFocused_current.isConnected) {
|
|
953
|
-
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer")
|
|
967
|
+
if (useFocusVisible.$507fabe10e71c6fb$export$630ff653c5ada6a9() === "pointer") useFocusVisible.$7215afc6de606d6b$export$de79e2c695e052f3(lastFocused.current);
|
|
954
968
|
else lastFocused.current.focus();
|
|
955
969
|
lastFocused.current = null;
|
|
956
970
|
}
|
|
@@ -1107,7 +1121,7 @@ var __spreadValues2 = (a, b) => {
|
|
|
1107
1121
|
}
|
|
1108
1122
|
return a;
|
|
1109
1123
|
};
|
|
1110
|
-
var
|
|
1124
|
+
var __objRest2 = (source, exclude) => {
|
|
1111
1125
|
var target = {};
|
|
1112
1126
|
for (var prop in source) if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1113
1127
|
if (source != null && __getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(source)) {
|
|
@@ -1116,7 +1130,7 @@ var __objRest = (source, exclude) => {
|
|
|
1116
1130
|
return target;
|
|
1117
1131
|
};
|
|
1118
1132
|
const CurrencyExchange = (_a) => {
|
|
1119
|
-
var _b = _a, { title, titleId } = _b, props =
|
|
1133
|
+
var _b = _a, { title, titleId } = _b, props = __objRest2(_b, ["title", "titleId"]);
|
|
1120
1134
|
return React__namespace.createElement("svg", __spreadValues2({
|
|
1121
1135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1122
1136
|
viewBox: "0 -960 960 960",
|
|
@@ -1127,19 +1141,249 @@ const CurrencyExchange = (_a) => {
|
|
|
1127
1141
|
d: "M480-60q-117 0-219.65-68.89-102.66-68.88-156.89-166.19v141.23H58.08v-220h220v45.39H136.85q45.61 91.23 142.03 157.15 96.43 65.92 201.12 65.92 75.69 0 142.88-28.26 67.2-28.27 117.73-77.47 50.54-49.19 80.93-115.99 30.38-66.81 32.69-142.89h45.38q-1.92 85.23-35.65 159.85-33.73 74.61-90.46 130.38Q716.77-124 641.19-92 565.61-60 480-60Zm-23.23-142.62v-52.07q-42.31-10.85-72.23-34.85T334-356.46l39.85-14.31q14.3 37.23 44.61 58.46 30.31 21.23 68.16 21.23 39.61 0 68.8-19.88 29.2-19.89 29.2-56.89 0-34.15-23.66-55.88-23.65-21.73-90.27-48.96-62.69-25-91.73-52.46-29.04-27.47-29.04-74.16 0-40.92 28.85-71.15 28.85-30.23 80-37.23v-49.08h43.84v49.08q34.93 3.23 62.16 21.69Q592-667.54 609-635.62L571.38-618Q556-643.69 534-657.31q-22-13.61-52-13.61-40.15 0-64.38 19.92-24.24 19.92-24.24 51.69 0 32.77 22.93 51.39 22.92 18.61 84.77 43 69.77 28.23 98.19 58.3 28.42 30.08 28.42 78.77 0 26.16-9.96 46.77-9.96 20.62-26.85 35.04-16.88 14.42-40.11 22.96-23.23 8.54-50.16 10.39v50.07h-43.84ZM60.39-490q2.69-87.15 36.8-161.96 34.12-74.81 91.23-130.19 57.12-55.39 132.12-86.62Q395.54-900 480-900q115.85 0 219.65 69.08 103.81 69.08 156.89 167.54v-142.77h45.38v220h-220v-45.39h141.23q-44.46-89.3-140.57-156.19-96.12-66.88-202.58-66.88-74.15 0-141.35 27.88-67.19 27.88-117.92 76.69-50.73 48.81-81.69 115.62-30.96 66.8-33.27 144.42H60.39Z"
|
|
1128
1142
|
}));
|
|
1129
1143
|
};
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1144
|
+
function _assertThisInitialized(e) {
|
|
1145
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1146
|
+
return e;
|
|
1147
|
+
}
|
|
1148
|
+
function getChildMapping(children, mapFn) {
|
|
1149
|
+
var mapper = function mapper2(child) {
|
|
1150
|
+
return mapFn && React.isValidElement(child) ? mapFn(child) : child;
|
|
1151
|
+
};
|
|
1152
|
+
var result = /* @__PURE__ */ Object.create(null);
|
|
1153
|
+
if (children) React.Children.map(children, function(c) {
|
|
1154
|
+
return c;
|
|
1155
|
+
}).forEach(function(child) {
|
|
1156
|
+
result[child.key] = mapper(child);
|
|
1157
|
+
});
|
|
1158
|
+
return result;
|
|
1159
|
+
}
|
|
1160
|
+
function mergeChildMappings(prev, next) {
|
|
1161
|
+
prev = prev || {};
|
|
1162
|
+
next = next || {};
|
|
1163
|
+
function getValueForKey(key) {
|
|
1164
|
+
return key in next ? next[key] : prev[key];
|
|
1165
|
+
}
|
|
1166
|
+
var nextKeysPending = /* @__PURE__ */ Object.create(null);
|
|
1167
|
+
var pendingKeys = [];
|
|
1168
|
+
for (var prevKey in prev) {
|
|
1169
|
+
if (prevKey in next) {
|
|
1170
|
+
if (pendingKeys.length) {
|
|
1171
|
+
nextKeysPending[prevKey] = pendingKeys;
|
|
1172
|
+
pendingKeys = [];
|
|
1173
|
+
}
|
|
1174
|
+
} else {
|
|
1175
|
+
pendingKeys.push(prevKey);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
var i;
|
|
1179
|
+
var childMapping = {};
|
|
1180
|
+
for (var nextKey in next) {
|
|
1181
|
+
if (nextKeysPending[nextKey]) {
|
|
1182
|
+
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
|
1183
|
+
var pendingNextKey = nextKeysPending[nextKey][i];
|
|
1184
|
+
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
childMapping[nextKey] = getValueForKey(nextKey);
|
|
1188
|
+
}
|
|
1189
|
+
for (i = 0; i < pendingKeys.length; i++) {
|
|
1190
|
+
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
1191
|
+
}
|
|
1192
|
+
return childMapping;
|
|
1193
|
+
}
|
|
1194
|
+
function getProp(child, prop, props) {
|
|
1195
|
+
return props[prop] != null ? props[prop] : child.props[prop];
|
|
1196
|
+
}
|
|
1197
|
+
function getInitialChildMapping(props, onExited) {
|
|
1198
|
+
return getChildMapping(props.children, function(child) {
|
|
1199
|
+
return React.cloneElement(child, {
|
|
1200
|
+
onExited: onExited.bind(null, child),
|
|
1201
|
+
in: true,
|
|
1202
|
+
appear: getProp(child, "appear", props),
|
|
1203
|
+
enter: getProp(child, "enter", props),
|
|
1204
|
+
exit: getProp(child, "exit", props)
|
|
1205
|
+
});
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
1209
|
+
var nextChildMapping = getChildMapping(nextProps.children);
|
|
1210
|
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
1211
|
+
Object.keys(children).forEach(function(key) {
|
|
1212
|
+
var child = children[key];
|
|
1213
|
+
if (!React.isValidElement(child)) return;
|
|
1214
|
+
var hasPrev = key in prevChildMapping;
|
|
1215
|
+
var hasNext = key in nextChildMapping;
|
|
1216
|
+
var prevChild = prevChildMapping[key];
|
|
1217
|
+
var isLeaving = React.isValidElement(prevChild) && !prevChild.props.in;
|
|
1218
|
+
if (hasNext && (!hasPrev || isLeaving)) {
|
|
1219
|
+
children[key] = React.cloneElement(child, {
|
|
1220
|
+
onExited: onExited.bind(null, child),
|
|
1221
|
+
in: true,
|
|
1222
|
+
exit: getProp(child, "exit", nextProps),
|
|
1223
|
+
enter: getProp(child, "enter", nextProps)
|
|
1224
|
+
});
|
|
1225
|
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
1226
|
+
children[key] = React.cloneElement(child, {
|
|
1227
|
+
in: false
|
|
1228
|
+
});
|
|
1229
|
+
} else if (hasNext && hasPrev && React.isValidElement(prevChild)) {
|
|
1230
|
+
children[key] = React.cloneElement(child, {
|
|
1231
|
+
onExited: onExited.bind(null, child),
|
|
1232
|
+
in: prevChild.props.in,
|
|
1233
|
+
exit: getProp(child, "exit", nextProps),
|
|
1234
|
+
enter: getProp(child, "enter", nextProps)
|
|
1235
|
+
});
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
return children;
|
|
1239
|
+
}
|
|
1240
|
+
var values = Object.values || function(obj) {
|
|
1241
|
+
return Object.keys(obj).map(function(k) {
|
|
1242
|
+
return obj[k];
|
|
1243
|
+
});
|
|
1244
|
+
};
|
|
1245
|
+
var defaultProps = {
|
|
1246
|
+
component: "div",
|
|
1247
|
+
childFactory: function childFactory(child) {
|
|
1248
|
+
return child;
|
|
1249
|
+
}
|
|
1250
|
+
};
|
|
1251
|
+
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
1252
|
+
CSSTransition._inheritsLoose(TransitionGroup2, _React$Component);
|
|
1253
|
+
function TransitionGroup2(props, context) {
|
|
1254
|
+
var _this;
|
|
1255
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
1256
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
1257
|
+
_this.state = {
|
|
1258
|
+
contextValue: {
|
|
1259
|
+
isMounting: true
|
|
1260
|
+
},
|
|
1261
|
+
handleExited,
|
|
1262
|
+
firstRender: true
|
|
1263
|
+
};
|
|
1264
|
+
return _this;
|
|
1265
|
+
}
|
|
1266
|
+
var _proto = TransitionGroup2.prototype;
|
|
1267
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
1268
|
+
this.mounted = true;
|
|
1269
|
+
this.setState({
|
|
1270
|
+
contextValue: {
|
|
1271
|
+
isMounting: false
|
|
1272
|
+
}
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
1276
|
+
this.mounted = false;
|
|
1277
|
+
};
|
|
1278
|
+
TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
|
1279
|
+
var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
|
|
1280
|
+
return {
|
|
1281
|
+
children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
|
|
1282
|
+
firstRender: false
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
_proto.handleExited = function handleExited(child, node) {
|
|
1286
|
+
var currentChildMapping = getChildMapping(this.props.children);
|
|
1287
|
+
if (child.key in currentChildMapping) return;
|
|
1288
|
+
if (child.props.onExited) {
|
|
1289
|
+
child.props.onExited(node);
|
|
1290
|
+
}
|
|
1291
|
+
if (this.mounted) {
|
|
1292
|
+
this.setState(function(state) {
|
|
1293
|
+
var children = objectWithoutPropertiesLoose._extends({}, state.children);
|
|
1294
|
+
delete children[child.key];
|
|
1295
|
+
return {
|
|
1296
|
+
children
|
|
1297
|
+
};
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
_proto.render = function render() {
|
|
1302
|
+
var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = objectWithoutPropertiesLoose._objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
1303
|
+
var contextValue = this.state.contextValue;
|
|
1304
|
+
var children = values(this.state.children).map(childFactory2);
|
|
1305
|
+
delete props.appear;
|
|
1306
|
+
delete props.enter;
|
|
1307
|
+
delete props.exit;
|
|
1308
|
+
if (Component === null) {
|
|
1309
|
+
return /* @__PURE__ */ React.createElement(CSSTransition.TransitionGroupContext.Provider, {
|
|
1310
|
+
value: contextValue
|
|
1311
|
+
}, children);
|
|
1312
|
+
}
|
|
1313
|
+
return /* @__PURE__ */ React.createElement(CSSTransition.TransitionGroupContext.Provider, {
|
|
1314
|
+
value: contextValue
|
|
1315
|
+
}, /* @__PURE__ */ React.createElement(Component, props, children));
|
|
1316
|
+
};
|
|
1317
|
+
return TransitionGroup2;
|
|
1318
|
+
}(React.Component);
|
|
1319
|
+
TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1320
|
+
/**
|
|
1321
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
1322
|
+
* behavior by providing a `component` prop.
|
|
1323
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
1324
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
1325
|
+
* borks your css styles.
|
|
1326
|
+
*/
|
|
1327
|
+
component: CSSTransition.PropTypes.any,
|
|
1328
|
+
/**
|
|
1329
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
1330
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
1331
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
1332
|
+
* with our `<Fade>` example.
|
|
1333
|
+
*
|
|
1334
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
1335
|
+
* children, sometimes you may want to have a single transition child with
|
|
1336
|
+
* content that you want to be transitioned out and in when you change it
|
|
1337
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
1338
|
+
* the transition child as you change its content, this will cause
|
|
1339
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
1340
|
+
*/
|
|
1341
|
+
children: CSSTransition.PropTypes.node,
|
|
1342
|
+
/**
|
|
1343
|
+
* A convenience prop that enables or disables appear animations
|
|
1344
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1345
|
+
* on individual children Transitions.
|
|
1346
|
+
*/
|
|
1347
|
+
appear: CSSTransition.PropTypes.bool,
|
|
1348
|
+
/**
|
|
1349
|
+
* A convenience prop that enables or disables enter animations
|
|
1350
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1351
|
+
* on individual children Transitions.
|
|
1352
|
+
*/
|
|
1353
|
+
enter: CSSTransition.PropTypes.bool,
|
|
1354
|
+
/**
|
|
1355
|
+
* A convenience prop that enables or disables exit animations
|
|
1356
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1357
|
+
* on individual children Transitions.
|
|
1358
|
+
*/
|
|
1359
|
+
exit: CSSTransition.PropTypes.bool,
|
|
1360
|
+
/**
|
|
1361
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
1362
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
1363
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
1364
|
+
*
|
|
1365
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
1366
|
+
* to wrap every child, even the ones that are leaving.
|
|
1367
|
+
*
|
|
1368
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
1369
|
+
*/
|
|
1370
|
+
childFactory: CSSTransition.PropTypes.func
|
|
1371
|
+
} : {};
|
|
1372
|
+
TransitionGroup.defaultProps = defaultProps;
|
|
1373
|
+
const statusPromotional = "_statusPromotional_1xl7t_4";
|
|
1374
|
+
const statusSuccess = "_statusSuccess_1xl7t_9";
|
|
1375
|
+
const statusNeutral = "_statusNeutral_1xl7t_14";
|
|
1376
|
+
const statusWarning = "_statusWarning_1xl7t_19";
|
|
1377
|
+
const statusError = "_statusError_1xl7t_24";
|
|
1378
|
+
const typeToast = "_typeToast_1xl7t_29";
|
|
1379
|
+
const typeAlert = "_typeAlert_1xl7t_33";
|
|
1380
|
+
const Notification$1 = "_Notification_1xl7t_38";
|
|
1381
|
+
const iconText = "_iconText_1xl7t_55";
|
|
1382
|
+
const closeButtonContainer = "_closeButtonContainer_1xl7t_61";
|
|
1383
|
+
const closeButton = "_closeButton_1xl7t_61";
|
|
1384
|
+
const region = "_region_1xl7t_74";
|
|
1385
|
+
const container = "_container_1xl7t_81";
|
|
1386
|
+
const styles$1 = {
|
|
1143
1387
|
statusPromotional,
|
|
1144
1388
|
statusSuccess,
|
|
1145
1389
|
statusNeutral,
|
|
@@ -1149,26 +1393,91 @@ const styles = {
|
|
|
1149
1393
|
typeAlert,
|
|
1150
1394
|
Notification: Notification$1,
|
|
1151
1395
|
iconText,
|
|
1396
|
+
closeButtonContainer,
|
|
1152
1397
|
closeButton,
|
|
1153
1398
|
region,
|
|
1154
1399
|
container
|
|
1155
1400
|
};
|
|
1401
|
+
const appear = "_appear_9o3cj_1";
|
|
1402
|
+
const enter = "_enter_9o3cj_2";
|
|
1403
|
+
const appearActive = "_appearActive_9o3cj_7";
|
|
1404
|
+
const enterActive = "_enterActive_9o3cj_8";
|
|
1405
|
+
const exit = "_exit_9o3cj_14";
|
|
1406
|
+
const exitActive = "_exitActive_9o3cj_22";
|
|
1407
|
+
const styles = {
|
|
1408
|
+
appear,
|
|
1409
|
+
enter,
|
|
1410
|
+
appearActive,
|
|
1411
|
+
enterActive,
|
|
1412
|
+
exit,
|
|
1413
|
+
exitActive
|
|
1414
|
+
};
|
|
1415
|
+
function NotificationTransition(_a) {
|
|
1416
|
+
var _b = _a, { children, transitionKey, onTransitionPendingChange = () => {
|
|
1417
|
+
} } = _b, transitionGroupProps = __objRest(_b, ["children", "transitionKey", "onTransitionPendingChange"]);
|
|
1418
|
+
const nodeRef = React.useRef(null);
|
|
1419
|
+
const transitionEndListener = React.useCallback((done) => {
|
|
1420
|
+
if (nodeRef.current) {
|
|
1421
|
+
nodeRef.current.addEventListener("transitionend", done, false);
|
|
1422
|
+
}
|
|
1423
|
+
}, []);
|
|
1424
|
+
return React.createElement(CSSTransition.CSSTransition, __spreadProps(__spreadValues({}, transitionGroupProps), {
|
|
1425
|
+
key: transitionKey,
|
|
1426
|
+
appear: true,
|
|
1427
|
+
nodeRef,
|
|
1428
|
+
unmountOnExit: true,
|
|
1429
|
+
addEndListener: transitionEndListener,
|
|
1430
|
+
classNames: {
|
|
1431
|
+
appear: styles.appear,
|
|
1432
|
+
appearActive: styles.appearActive,
|
|
1433
|
+
enter: styles.enter,
|
|
1434
|
+
enterActive: styles.enterActive,
|
|
1435
|
+
exit: styles.exit,
|
|
1436
|
+
exitActive: styles.exitActive
|
|
1437
|
+
},
|
|
1438
|
+
onEnter: () => {
|
|
1439
|
+
onTransitionPendingChange(true);
|
|
1440
|
+
},
|
|
1441
|
+
onExited: () => {
|
|
1442
|
+
onTransitionPendingChange(false);
|
|
1443
|
+
}
|
|
1444
|
+
}), children({
|
|
1445
|
+
nodeRef
|
|
1446
|
+
}));
|
|
1447
|
+
}
|
|
1448
|
+
function useNotificationTransitionTracking() {
|
|
1449
|
+
const [transitionsPending, setTransitionsPending] = React.useState(0);
|
|
1450
|
+
const onTransitionPendingChange = (isTransitionPending) => {
|
|
1451
|
+
setTransitionsPending((prev) => isTransitionPending ? prev + 1 : prev - 1);
|
|
1452
|
+
};
|
|
1453
|
+
return {
|
|
1454
|
+
isTransitionPending: transitionsPending > 0,
|
|
1455
|
+
onTransitionPendingChange
|
|
1456
|
+
};
|
|
1457
|
+
}
|
|
1156
1458
|
function NotificationRegion(props) {
|
|
1157
|
-
const { state } = props;
|
|
1459
|
+
const { state, onTransitionPendingChange } = props;
|
|
1158
1460
|
const ref = React.useRef(null);
|
|
1159
1461
|
const { regionProps } = $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref);
|
|
1160
1462
|
return React.createElement("div", __spreadProps(__spreadValues({}, regionProps), {
|
|
1161
1463
|
ref,
|
|
1162
|
-
className: styles.region
|
|
1163
|
-
}),
|
|
1464
|
+
className: styles$1.region
|
|
1465
|
+
}), React.createElement(TransitionGroup, {
|
|
1466
|
+
component: null
|
|
1467
|
+
}, state.visibleToasts.map((toast) => React.createElement(NotificationTransition, {
|
|
1164
1468
|
key: toast.key,
|
|
1469
|
+
transitionKey: toast.key,
|
|
1470
|
+
onTransitionPendingChange
|
|
1471
|
+
}, ({ nodeRef }) => React.createElement(Notification, {
|
|
1472
|
+
ref: nodeRef,
|
|
1165
1473
|
toast,
|
|
1166
1474
|
state
|
|
1167
|
-
})));
|
|
1475
|
+
})))));
|
|
1168
1476
|
}
|
|
1169
1477
|
function NotificationContainer(props) {
|
|
1170
1478
|
const { getContainer = null, position = "fixed", offset, state } = props;
|
|
1171
|
-
const
|
|
1479
|
+
const { isTransitionPending, onTransitionPendingChange } = useNotificationTransitionTracking();
|
|
1480
|
+
const showNotifications = state.visibleToasts.length > 0 || isTransitionPending;
|
|
1172
1481
|
let requestFailed = false;
|
|
1173
1482
|
let container2 = null;
|
|
1174
1483
|
if (showNotifications && getContainer) {
|
|
@@ -1189,10 +1498,11 @@ function NotificationContainer(props) {
|
|
|
1189
1498
|
};
|
|
1190
1499
|
const containerStyles = __spreadValues(__spreadValues({}, positionStyleProps), positionProps);
|
|
1191
1500
|
return React.createElement(React.Fragment, null, showNotifications ? ReactDOM.createPortal(React.createElement("div", {
|
|
1192
|
-
className: styles.container,
|
|
1501
|
+
className: styles$1.container,
|
|
1193
1502
|
style: containerStyles
|
|
1194
1503
|
}, React.createElement(NotificationRegion, {
|
|
1195
|
-
state
|
|
1504
|
+
state,
|
|
1505
|
+
onTransitionPendingChange
|
|
1196
1506
|
})), container2 != null ? container2 : document.body) : null);
|
|
1197
1507
|
}
|
|
1198
1508
|
const TOAST_TIMEOUT_DURATION = 4e3;
|
|
@@ -1264,7 +1574,7 @@ function useNotificationState() {
|
|
|
1264
1574
|
closeActiveNotification: () => queue.closeActiveNotification()
|
|
1265
1575
|
});
|
|
1266
1576
|
}
|
|
1267
|
-
|
|
1577
|
+
const Notification = React.forwardRef((props, forwardedRef) => {
|
|
1268
1578
|
const ref = React.useRef(null);
|
|
1269
1579
|
const { state, toast: notification } = props;
|
|
1270
1580
|
const { type = "toast", message, status = "success", hasIcon = true, onDismiss } = notification.content;
|
|
@@ -1282,22 +1592,25 @@ function Notification(props) {
|
|
|
1282
1592
|
onPress: handleDismiss
|
|
1283
1593
|
});
|
|
1284
1594
|
return React.createElement("div", __spreadProps(__spreadValues({}, notificationPropsWithAdjustedAriaRole), {
|
|
1285
|
-
ref,
|
|
1286
|
-
className: utilities_css.classNames(styles.Notification, styles[utilities_css.variationName("status", status)], styles[utilities_css.variationName("type", type)])
|
|
1595
|
+
ref: mergeRefs.$5dc95899b306f630$export$c9058316764c140e(ref, forwardedRef),
|
|
1596
|
+
className: utilities_css.classNames(styles$1.Notification, styles$1[utilities_css.variationName("status", status)], styles$1[utilities_css.variationName("type", type)])
|
|
1287
1597
|
}), React.createElement("div", {
|
|
1288
|
-
className: styles.iconText
|
|
1598
|
+
className: styles$1.iconText
|
|
1289
1599
|
}, hasIcon && React.createElement(Icon.Icon, {
|
|
1290
1600
|
size: "lg",
|
|
1291
1601
|
symbol: getStatusIcon(status)
|
|
1292
1602
|
}), React.createElement("div", __spreadValues({}, titleProps), React.createElement(Text.Text, {
|
|
1293
1603
|
weight: "semibold"
|
|
1294
|
-
}, message))), type === "alert" && React.createElement(
|
|
1295
|
-
className:
|
|
1604
|
+
}, message))), type === "alert" && React.createElement("span", {
|
|
1605
|
+
className: styles$1.closeButtonContainer
|
|
1606
|
+
}, React.createElement(UnstyledButton.UnstyledButton, __spreadProps(__spreadValues({}, closeButtonPropsWithDismiss), {
|
|
1607
|
+
className: styles$1.closeButton
|
|
1296
1608
|
}), React.createElement(Icon.Icon, {
|
|
1297
1609
|
size: "md",
|
|
1298
1610
|
symbol: Close.Close
|
|
1299
|
-
})));
|
|
1300
|
-
}
|
|
1611
|
+
}))));
|
|
1612
|
+
});
|
|
1613
|
+
Notification.displayName = "Notification";
|
|
1301
1614
|
function getStatusIcon(status) {
|
|
1302
1615
|
switch (status) {
|
|
1303
1616
|
case "promotional":
|