@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
|
@@ -17,22 +17,36 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
20
32
|
import * as React from "react";
|
|
21
|
-
import React__default, { useCallback, useState, useEffect, useRef, useMemo, createContext, useContext } from "react";
|
|
33
|
+
import React__default, { useCallback, useState, useEffect, useRef, isValidElement, cloneElement, Children, useMemo, createContext, useContext } from "react";
|
|
34
|
+
import { $ as $5dc95899b306f630$export$c9058316764c140e } from "./mergeRefs-CCV6itCY.mjs";
|
|
22
35
|
import { C as Close } from "./Close-Cq6Q6MN6.mjs";
|
|
23
36
|
import { C as CheckCircle } from "./CheckCircle-C9h2PNWU.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-
|
|
37
|
+
import { d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, c as $bdb11010cef70236$export$f680877a34711e37, b as $bdb11010cef70236$export$b4cc09c592e8fdb8, a as $8ae05eaa5c114e9c$export$7f54fc3180508a52, $ as $3ef42575df84b30b$export$9d1611c77c2fe928 } from "./mergeProps-DRsiQq2k.mjs";
|
|
38
|
+
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-SC1Py3Uf.mjs";
|
|
26
39
|
import { createPortal } from "react-dom";
|
|
40
|
+
import { q as $507fabe10e71c6fb$export$630ff653c5ada6a9, s as $7215afc6de606d6b$export$de79e2c695e052f3 } from "./useFocusVisible-CQ1e0o7u.mjs";
|
|
41
|
+
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-BgSjulWP.mjs";
|
|
42
|
+
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-BBXJy5NT.mjs";
|
|
27
43
|
import { s as shimExports } from "./index-DOQwYO8h.mjs";
|
|
28
44
|
import { I as Icon } from "./Icon-0SN9dbwU.mjs";
|
|
29
45
|
import { T as Text } from "./Text-BYGcKHR7.mjs";
|
|
30
46
|
import { classNames, variationName } from "../utilities/css.mjs";
|
|
31
|
-
import { U as UnstyledButton } from "./UnstyledButton-
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import { $ as $9ab94262bd0047c7$export$420e68273165f4ec } from "./useFocusWithin-DMidhx8C.mjs";
|
|
35
|
-
import { $ as $6179b936705e76d3$export$ae780daf29e6d456 } from "./useHover-DpEGMvo6.mjs";
|
|
47
|
+
import { U as UnstyledButton } from "./UnstyledButton-D0_XmlIu.mjs";
|
|
48
|
+
import { _ as _inheritsLoose, T as TransitionGroupContext, P as PropTypes, C as CSSTransition } from "./CSSTransition-C4FQrt4m.mjs";
|
|
49
|
+
import { a as _extends, _ as _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose-COdxq1Ge.mjs";
|
|
36
50
|
function $77b352cf12efcf73$export$84726ef35ca2129a(queue) {
|
|
37
51
|
let subscribe = useCallback((fn) => queue.subscribe(fn), [
|
|
38
52
|
queue
|
|
@@ -1090,7 +1104,7 @@ var __spreadValues2 = (a, b) => {
|
|
|
1090
1104
|
}
|
|
1091
1105
|
return a;
|
|
1092
1106
|
};
|
|
1093
|
-
var
|
|
1107
|
+
var __objRest2 = (source, exclude) => {
|
|
1094
1108
|
var target = {};
|
|
1095
1109
|
for (var prop in source) if (__hasOwnProp2.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
|
|
1096
1110
|
if (source != null && __getOwnPropSymbols2) for (var prop of __getOwnPropSymbols2(source)) {
|
|
@@ -1099,7 +1113,7 @@ var __objRest = (source, exclude) => {
|
|
|
1099
1113
|
return target;
|
|
1100
1114
|
};
|
|
1101
1115
|
const CurrencyExchange = (_a) => {
|
|
1102
|
-
var _b = _a, { title, titleId } = _b, props =
|
|
1116
|
+
var _b = _a, { title, titleId } = _b, props = __objRest2(_b, ["title", "titleId"]);
|
|
1103
1117
|
return React.createElement("svg", __spreadValues2({
|
|
1104
1118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1105
1119
|
viewBox: "0 -960 960 960",
|
|
@@ -1110,19 +1124,249 @@ const CurrencyExchange = (_a) => {
|
|
|
1110
1124
|
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"
|
|
1111
1125
|
}));
|
|
1112
1126
|
};
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1127
|
+
function _assertThisInitialized(e) {
|
|
1128
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1129
|
+
return e;
|
|
1130
|
+
}
|
|
1131
|
+
function getChildMapping(children, mapFn) {
|
|
1132
|
+
var mapper = function mapper2(child) {
|
|
1133
|
+
return mapFn && isValidElement(child) ? mapFn(child) : child;
|
|
1134
|
+
};
|
|
1135
|
+
var result = /* @__PURE__ */ Object.create(null);
|
|
1136
|
+
if (children) Children.map(children, function(c) {
|
|
1137
|
+
return c;
|
|
1138
|
+
}).forEach(function(child) {
|
|
1139
|
+
result[child.key] = mapper(child);
|
|
1140
|
+
});
|
|
1141
|
+
return result;
|
|
1142
|
+
}
|
|
1143
|
+
function mergeChildMappings(prev, next) {
|
|
1144
|
+
prev = prev || {};
|
|
1145
|
+
next = next || {};
|
|
1146
|
+
function getValueForKey(key) {
|
|
1147
|
+
return key in next ? next[key] : prev[key];
|
|
1148
|
+
}
|
|
1149
|
+
var nextKeysPending = /* @__PURE__ */ Object.create(null);
|
|
1150
|
+
var pendingKeys = [];
|
|
1151
|
+
for (var prevKey in prev) {
|
|
1152
|
+
if (prevKey in next) {
|
|
1153
|
+
if (pendingKeys.length) {
|
|
1154
|
+
nextKeysPending[prevKey] = pendingKeys;
|
|
1155
|
+
pendingKeys = [];
|
|
1156
|
+
}
|
|
1157
|
+
} else {
|
|
1158
|
+
pendingKeys.push(prevKey);
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
var i;
|
|
1162
|
+
var childMapping = {};
|
|
1163
|
+
for (var nextKey in next) {
|
|
1164
|
+
if (nextKeysPending[nextKey]) {
|
|
1165
|
+
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
|
1166
|
+
var pendingNextKey = nextKeysPending[nextKey][i];
|
|
1167
|
+
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
childMapping[nextKey] = getValueForKey(nextKey);
|
|
1171
|
+
}
|
|
1172
|
+
for (i = 0; i < pendingKeys.length; i++) {
|
|
1173
|
+
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
|
1174
|
+
}
|
|
1175
|
+
return childMapping;
|
|
1176
|
+
}
|
|
1177
|
+
function getProp(child, prop, props) {
|
|
1178
|
+
return props[prop] != null ? props[prop] : child.props[prop];
|
|
1179
|
+
}
|
|
1180
|
+
function getInitialChildMapping(props, onExited) {
|
|
1181
|
+
return getChildMapping(props.children, function(child) {
|
|
1182
|
+
return cloneElement(child, {
|
|
1183
|
+
onExited: onExited.bind(null, child),
|
|
1184
|
+
in: true,
|
|
1185
|
+
appear: getProp(child, "appear", props),
|
|
1186
|
+
enter: getProp(child, "enter", props),
|
|
1187
|
+
exit: getProp(child, "exit", props)
|
|
1188
|
+
});
|
|
1189
|
+
});
|
|
1190
|
+
}
|
|
1191
|
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
1192
|
+
var nextChildMapping = getChildMapping(nextProps.children);
|
|
1193
|
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
1194
|
+
Object.keys(children).forEach(function(key) {
|
|
1195
|
+
var child = children[key];
|
|
1196
|
+
if (!isValidElement(child)) return;
|
|
1197
|
+
var hasPrev = key in prevChildMapping;
|
|
1198
|
+
var hasNext = key in nextChildMapping;
|
|
1199
|
+
var prevChild = prevChildMapping[key];
|
|
1200
|
+
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
1201
|
+
if (hasNext && (!hasPrev || isLeaving)) {
|
|
1202
|
+
children[key] = cloneElement(child, {
|
|
1203
|
+
onExited: onExited.bind(null, child),
|
|
1204
|
+
in: true,
|
|
1205
|
+
exit: getProp(child, "exit", nextProps),
|
|
1206
|
+
enter: getProp(child, "enter", nextProps)
|
|
1207
|
+
});
|
|
1208
|
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
1209
|
+
children[key] = cloneElement(child, {
|
|
1210
|
+
in: false
|
|
1211
|
+
});
|
|
1212
|
+
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
1213
|
+
children[key] = cloneElement(child, {
|
|
1214
|
+
onExited: onExited.bind(null, child),
|
|
1215
|
+
in: prevChild.props.in,
|
|
1216
|
+
exit: getProp(child, "exit", nextProps),
|
|
1217
|
+
enter: getProp(child, "enter", nextProps)
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
});
|
|
1221
|
+
return children;
|
|
1222
|
+
}
|
|
1223
|
+
var values = Object.values || function(obj) {
|
|
1224
|
+
return Object.keys(obj).map(function(k) {
|
|
1225
|
+
return obj[k];
|
|
1226
|
+
});
|
|
1227
|
+
};
|
|
1228
|
+
var defaultProps = {
|
|
1229
|
+
component: "div",
|
|
1230
|
+
childFactory: function childFactory(child) {
|
|
1231
|
+
return child;
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
1235
|
+
_inheritsLoose(TransitionGroup2, _React$Component);
|
|
1236
|
+
function TransitionGroup2(props, context) {
|
|
1237
|
+
var _this;
|
|
1238
|
+
_this = _React$Component.call(this, props, context) || this;
|
|
1239
|
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
|
|
1240
|
+
_this.state = {
|
|
1241
|
+
contextValue: {
|
|
1242
|
+
isMounting: true
|
|
1243
|
+
},
|
|
1244
|
+
handleExited,
|
|
1245
|
+
firstRender: true
|
|
1246
|
+
};
|
|
1247
|
+
return _this;
|
|
1248
|
+
}
|
|
1249
|
+
var _proto = TransitionGroup2.prototype;
|
|
1250
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
1251
|
+
this.mounted = true;
|
|
1252
|
+
this.setState({
|
|
1253
|
+
contextValue: {
|
|
1254
|
+
isMounting: false
|
|
1255
|
+
}
|
|
1256
|
+
});
|
|
1257
|
+
};
|
|
1258
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
1259
|
+
this.mounted = false;
|
|
1260
|
+
};
|
|
1261
|
+
TransitionGroup2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
|
1262
|
+
var prevChildMapping = _ref.children, handleExited = _ref.handleExited, firstRender = _ref.firstRender;
|
|
1263
|
+
return {
|
|
1264
|
+
children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
|
|
1265
|
+
firstRender: false
|
|
1266
|
+
};
|
|
1267
|
+
};
|
|
1268
|
+
_proto.handleExited = function handleExited(child, node) {
|
|
1269
|
+
var currentChildMapping = getChildMapping(this.props.children);
|
|
1270
|
+
if (child.key in currentChildMapping) return;
|
|
1271
|
+
if (child.props.onExited) {
|
|
1272
|
+
child.props.onExited(node);
|
|
1273
|
+
}
|
|
1274
|
+
if (this.mounted) {
|
|
1275
|
+
this.setState(function(state) {
|
|
1276
|
+
var children = _extends({}, state.children);
|
|
1277
|
+
delete children[child.key];
|
|
1278
|
+
return {
|
|
1279
|
+
children
|
|
1280
|
+
};
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1284
|
+
_proto.render = function render() {
|
|
1285
|
+
var _this$props = this.props, Component = _this$props.component, childFactory2 = _this$props.childFactory, props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
|
1286
|
+
var contextValue = this.state.contextValue;
|
|
1287
|
+
var children = values(this.state.children).map(childFactory2);
|
|
1288
|
+
delete props.appear;
|
|
1289
|
+
delete props.enter;
|
|
1290
|
+
delete props.exit;
|
|
1291
|
+
if (Component === null) {
|
|
1292
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
1293
|
+
value: contextValue
|
|
1294
|
+
}, children);
|
|
1295
|
+
}
|
|
1296
|
+
return /* @__PURE__ */ React__default.createElement(TransitionGroupContext.Provider, {
|
|
1297
|
+
value: contextValue
|
|
1298
|
+
}, /* @__PURE__ */ React__default.createElement(Component, props, children));
|
|
1299
|
+
};
|
|
1300
|
+
return TransitionGroup2;
|
|
1301
|
+
}(React__default.Component);
|
|
1302
|
+
TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1303
|
+
/**
|
|
1304
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
1305
|
+
* behavior by providing a `component` prop.
|
|
1306
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
1307
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
1308
|
+
* borks your css styles.
|
|
1309
|
+
*/
|
|
1310
|
+
component: PropTypes.any,
|
|
1311
|
+
/**
|
|
1312
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
1313
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
1314
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
1315
|
+
* with our `<Fade>` example.
|
|
1316
|
+
*
|
|
1317
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
1318
|
+
* children, sometimes you may want to have a single transition child with
|
|
1319
|
+
* content that you want to be transitioned out and in when you change it
|
|
1320
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
1321
|
+
* the transition child as you change its content, this will cause
|
|
1322
|
+
* `TransitionGroup` to transition the child out and back in.
|
|
1323
|
+
*/
|
|
1324
|
+
children: PropTypes.node,
|
|
1325
|
+
/**
|
|
1326
|
+
* A convenience prop that enables or disables appear animations
|
|
1327
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1328
|
+
* on individual children Transitions.
|
|
1329
|
+
*/
|
|
1330
|
+
appear: PropTypes.bool,
|
|
1331
|
+
/**
|
|
1332
|
+
* A convenience prop that enables or disables enter animations
|
|
1333
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1334
|
+
* on individual children Transitions.
|
|
1335
|
+
*/
|
|
1336
|
+
enter: PropTypes.bool,
|
|
1337
|
+
/**
|
|
1338
|
+
* A convenience prop that enables or disables exit animations
|
|
1339
|
+
* for all children. Note that specifying this will override any defaults set
|
|
1340
|
+
* on individual children Transitions.
|
|
1341
|
+
*/
|
|
1342
|
+
exit: PropTypes.bool,
|
|
1343
|
+
/**
|
|
1344
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
|
1345
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
1346
|
+
* child the element has already been removed and not accessible to the consumer.
|
|
1347
|
+
*
|
|
1348
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
1349
|
+
* to wrap every child, even the ones that are leaving.
|
|
1350
|
+
*
|
|
1351
|
+
* @type Function(child: ReactElement) -> ReactElement
|
|
1352
|
+
*/
|
|
1353
|
+
childFactory: PropTypes.func
|
|
1354
|
+
} : {};
|
|
1355
|
+
TransitionGroup.defaultProps = defaultProps;
|
|
1356
|
+
const statusPromotional = "_statusPromotional_1xl7t_4";
|
|
1357
|
+
const statusSuccess = "_statusSuccess_1xl7t_9";
|
|
1358
|
+
const statusNeutral = "_statusNeutral_1xl7t_14";
|
|
1359
|
+
const statusWarning = "_statusWarning_1xl7t_19";
|
|
1360
|
+
const statusError = "_statusError_1xl7t_24";
|
|
1361
|
+
const typeToast = "_typeToast_1xl7t_29";
|
|
1362
|
+
const typeAlert = "_typeAlert_1xl7t_33";
|
|
1363
|
+
const Notification$1 = "_Notification_1xl7t_38";
|
|
1364
|
+
const iconText = "_iconText_1xl7t_55";
|
|
1365
|
+
const closeButtonContainer = "_closeButtonContainer_1xl7t_61";
|
|
1366
|
+
const closeButton = "_closeButton_1xl7t_61";
|
|
1367
|
+
const region = "_region_1xl7t_74";
|
|
1368
|
+
const container = "_container_1xl7t_81";
|
|
1369
|
+
const styles$1 = {
|
|
1126
1370
|
statusPromotional,
|
|
1127
1371
|
statusSuccess,
|
|
1128
1372
|
statusNeutral,
|
|
@@ -1132,26 +1376,91 @@ const styles = {
|
|
|
1132
1376
|
typeAlert,
|
|
1133
1377
|
Notification: Notification$1,
|
|
1134
1378
|
iconText,
|
|
1379
|
+
closeButtonContainer,
|
|
1135
1380
|
closeButton,
|
|
1136
1381
|
region,
|
|
1137
1382
|
container
|
|
1138
1383
|
};
|
|
1384
|
+
const appear = "_appear_9o3cj_1";
|
|
1385
|
+
const enter = "_enter_9o3cj_2";
|
|
1386
|
+
const appearActive = "_appearActive_9o3cj_7";
|
|
1387
|
+
const enterActive = "_enterActive_9o3cj_8";
|
|
1388
|
+
const exit = "_exit_9o3cj_14";
|
|
1389
|
+
const exitActive = "_exitActive_9o3cj_22";
|
|
1390
|
+
const styles = {
|
|
1391
|
+
appear,
|
|
1392
|
+
enter,
|
|
1393
|
+
appearActive,
|
|
1394
|
+
enterActive,
|
|
1395
|
+
exit,
|
|
1396
|
+
exitActive
|
|
1397
|
+
};
|
|
1398
|
+
function NotificationTransition(_a) {
|
|
1399
|
+
var _b = _a, { children, transitionKey, onTransitionPendingChange = () => {
|
|
1400
|
+
} } = _b, transitionGroupProps = __objRest(_b, ["children", "transitionKey", "onTransitionPendingChange"]);
|
|
1401
|
+
const nodeRef = React__default.useRef(null);
|
|
1402
|
+
const transitionEndListener = useCallback((done) => {
|
|
1403
|
+
if (nodeRef.current) {
|
|
1404
|
+
nodeRef.current.addEventListener("transitionend", done, false);
|
|
1405
|
+
}
|
|
1406
|
+
}, []);
|
|
1407
|
+
return React__default.createElement(CSSTransition, __spreadProps(__spreadValues({}, transitionGroupProps), {
|
|
1408
|
+
key: transitionKey,
|
|
1409
|
+
appear: true,
|
|
1410
|
+
nodeRef,
|
|
1411
|
+
unmountOnExit: true,
|
|
1412
|
+
addEndListener: transitionEndListener,
|
|
1413
|
+
classNames: {
|
|
1414
|
+
appear: styles.appear,
|
|
1415
|
+
appearActive: styles.appearActive,
|
|
1416
|
+
enter: styles.enter,
|
|
1417
|
+
enterActive: styles.enterActive,
|
|
1418
|
+
exit: styles.exit,
|
|
1419
|
+
exitActive: styles.exitActive
|
|
1420
|
+
},
|
|
1421
|
+
onEnter: () => {
|
|
1422
|
+
onTransitionPendingChange(true);
|
|
1423
|
+
},
|
|
1424
|
+
onExited: () => {
|
|
1425
|
+
onTransitionPendingChange(false);
|
|
1426
|
+
}
|
|
1427
|
+
}), children({
|
|
1428
|
+
nodeRef
|
|
1429
|
+
}));
|
|
1430
|
+
}
|
|
1431
|
+
function useNotificationTransitionTracking() {
|
|
1432
|
+
const [transitionsPending, setTransitionsPending] = useState(0);
|
|
1433
|
+
const onTransitionPendingChange = (isTransitionPending) => {
|
|
1434
|
+
setTransitionsPending((prev) => isTransitionPending ? prev + 1 : prev - 1);
|
|
1435
|
+
};
|
|
1436
|
+
return {
|
|
1437
|
+
isTransitionPending: transitionsPending > 0,
|
|
1438
|
+
onTransitionPendingChange
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1139
1441
|
function NotificationRegion(props) {
|
|
1140
|
-
const { state } = props;
|
|
1442
|
+
const { state, onTransitionPendingChange } = props;
|
|
1141
1443
|
const ref = React__default.useRef(null);
|
|
1142
1444
|
const { regionProps } = $6cc546b19ee7130a$export$b8cbbb20a51697de(props, state, ref);
|
|
1143
1445
|
return React__default.createElement("div", __spreadProps(__spreadValues({}, regionProps), {
|
|
1144
1446
|
ref,
|
|
1145
|
-
className: styles.region
|
|
1146
|
-
}),
|
|
1447
|
+
className: styles$1.region
|
|
1448
|
+
}), React__default.createElement(TransitionGroup, {
|
|
1449
|
+
component: null
|
|
1450
|
+
}, state.visibleToasts.map((toast) => React__default.createElement(NotificationTransition, {
|
|
1147
1451
|
key: toast.key,
|
|
1452
|
+
transitionKey: toast.key,
|
|
1453
|
+
onTransitionPendingChange
|
|
1454
|
+
}, ({ nodeRef }) => React__default.createElement(Notification, {
|
|
1455
|
+
ref: nodeRef,
|
|
1148
1456
|
toast,
|
|
1149
1457
|
state
|
|
1150
|
-
})));
|
|
1458
|
+
})))));
|
|
1151
1459
|
}
|
|
1152
1460
|
function NotificationContainer(props) {
|
|
1153
1461
|
const { getContainer = null, position = "fixed", offset, state } = props;
|
|
1154
|
-
const
|
|
1462
|
+
const { isTransitionPending, onTransitionPendingChange } = useNotificationTransitionTracking();
|
|
1463
|
+
const showNotifications = state.visibleToasts.length > 0 || isTransitionPending;
|
|
1155
1464
|
let requestFailed = false;
|
|
1156
1465
|
let container2 = null;
|
|
1157
1466
|
if (showNotifications && getContainer) {
|
|
@@ -1172,10 +1481,11 @@ function NotificationContainer(props) {
|
|
|
1172
1481
|
};
|
|
1173
1482
|
const containerStyles = __spreadValues(__spreadValues({}, positionStyleProps), positionProps);
|
|
1174
1483
|
return React__default.createElement(React__default.Fragment, null, showNotifications ? createPortal(React__default.createElement("div", {
|
|
1175
|
-
className: styles.container,
|
|
1484
|
+
className: styles$1.container,
|
|
1176
1485
|
style: containerStyles
|
|
1177
1486
|
}, React__default.createElement(NotificationRegion, {
|
|
1178
|
-
state
|
|
1487
|
+
state,
|
|
1488
|
+
onTransitionPendingChange
|
|
1179
1489
|
})), container2 != null ? container2 : document.body) : null);
|
|
1180
1490
|
}
|
|
1181
1491
|
const TOAST_TIMEOUT_DURATION = 4e3;
|
|
@@ -1247,7 +1557,7 @@ function useNotificationState() {
|
|
|
1247
1557
|
closeActiveNotification: () => queue.closeActiveNotification()
|
|
1248
1558
|
});
|
|
1249
1559
|
}
|
|
1250
|
-
|
|
1560
|
+
const Notification = React__default.forwardRef((props, forwardedRef) => {
|
|
1251
1561
|
const ref = useRef(null);
|
|
1252
1562
|
const { state, toast: notification } = props;
|
|
1253
1563
|
const { type = "toast", message, status = "success", hasIcon = true, onDismiss } = notification.content;
|
|
@@ -1265,22 +1575,25 @@ function Notification(props) {
|
|
|
1265
1575
|
onPress: handleDismiss
|
|
1266
1576
|
});
|
|
1267
1577
|
return React__default.createElement("div", __spreadProps(__spreadValues({}, notificationPropsWithAdjustedAriaRole), {
|
|
1268
|
-
ref,
|
|
1269
|
-
className: classNames(styles.Notification, styles[variationName("status", status)], styles[variationName("type", type)])
|
|
1578
|
+
ref: $5dc95899b306f630$export$c9058316764c140e(ref, forwardedRef),
|
|
1579
|
+
className: classNames(styles$1.Notification, styles$1[variationName("status", status)], styles$1[variationName("type", type)])
|
|
1270
1580
|
}), React__default.createElement("div", {
|
|
1271
|
-
className: styles.iconText
|
|
1581
|
+
className: styles$1.iconText
|
|
1272
1582
|
}, hasIcon && React__default.createElement(Icon, {
|
|
1273
1583
|
size: "lg",
|
|
1274
1584
|
symbol: getStatusIcon(status)
|
|
1275
1585
|
}), React__default.createElement("div", __spreadValues({}, titleProps), React__default.createElement(Text, {
|
|
1276
1586
|
weight: "semibold"
|
|
1277
|
-
}, message))), type === "alert" && React__default.createElement(
|
|
1278
|
-
className:
|
|
1587
|
+
}, message))), type === "alert" && React__default.createElement("span", {
|
|
1588
|
+
className: styles$1.closeButtonContainer
|
|
1589
|
+
}, React__default.createElement(UnstyledButton, __spreadProps(__spreadValues({}, closeButtonPropsWithDismiss), {
|
|
1590
|
+
className: styles$1.closeButton
|
|
1279
1591
|
}), React__default.createElement(Icon, {
|
|
1280
1592
|
size: "md",
|
|
1281
1593
|
symbol: Close
|
|
1282
|
-
})));
|
|
1283
|
-
}
|
|
1594
|
+
}))));
|
|
1595
|
+
});
|
|
1596
|
+
Notification.displayName = "Notification";
|
|
1284
1597
|
function getStatusIcon(status) {
|
|
1285
1598
|
switch (status) {
|
|
1286
1599
|
case "promotional":
|
|
@@ -32,10 +32,10 @@ var __objRest = (source, exclude) => {
|
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
34
|
const useControlledState = require("./useControlledState-mnKBd6Uc.js");
|
|
35
|
-
const
|
|
35
|
+
const focusSafely = require("./focusSafely-CucekFxc.js");
|
|
36
36
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
37
37
|
const useObjectRef = require("./useObjectRef-BOGMJ5vM.js");
|
|
38
|
-
const FocusScope = require("./FocusScope-
|
|
38
|
+
const FocusScope = require("./FocusScope-DxiwSl55.js");
|
|
39
39
|
const ReactDOM = require("react-dom");
|
|
40
40
|
function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
41
41
|
let [isOpen, setOpen] = useControlledState.$458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
@@ -66,33 +66,33 @@ function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
|
66
66
|
const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /* @__PURE__ */ React.forwardRef((_a, ref) => {
|
|
67
67
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
68
68
|
let isRegistered = React.useRef(false);
|
|
69
|
-
let prevContext = React.useContext(
|
|
69
|
+
let prevContext = React.useContext(focusSafely.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);
|
|
70
70
|
ref = useObjectRef.$df56164dff5785e2$export$4338b53315abf666(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
|
|
71
|
-
let context
|
|
71
|
+
let context = mergeProps.$3ef42575df84b30b$export$9d1611c77c2fe928(prevContext || {}, __spreadProps(__spreadValues({}, props), {
|
|
72
72
|
ref,
|
|
73
73
|
register() {
|
|
74
74
|
isRegistered.current = true;
|
|
75
75
|
if (prevContext) prevContext.register();
|
|
76
76
|
}
|
|
77
77
|
}));
|
|
78
|
-
|
|
78
|
+
focusSafely.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(prevContext, ref);
|
|
79
79
|
React.useEffect(() => {
|
|
80
80
|
if (!isRegistered.current) {
|
|
81
81
|
console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component.");
|
|
82
82
|
isRegistered.current = true;
|
|
83
83
|
}
|
|
84
84
|
}, []);
|
|
85
|
-
return /* @__PURE__ */ React.createElement(
|
|
86
|
-
value: context
|
|
85
|
+
return /* @__PURE__ */ React.createElement(focusSafely.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
|
|
86
|
+
value: context
|
|
87
87
|
}, children);
|
|
88
88
|
});
|
|
89
89
|
function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({ children }) {
|
|
90
|
-
let context
|
|
90
|
+
let context = React.useMemo(() => ({
|
|
91
91
|
register: () => {
|
|
92
92
|
}
|
|
93
93
|
}), []);
|
|
94
|
-
return /* @__PURE__ */ React.createElement(
|
|
95
|
-
value: context
|
|
94
|
+
return /* @__PURE__ */ React.createElement(focusSafely.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider, {
|
|
95
|
+
value: context
|
|
96
96
|
}, children);
|
|
97
97
|
}
|
|
98
98
|
const $dd149f63282afbbf$export$f6211563215e3b37 = /* @__PURE__ */ new WeakMap();
|
|
@@ -31,10 +31,10 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
};
|
|
32
32
|
import React__default, { useCallback, useMemo, useRef, useContext, useEffect, createContext, useState } from "react";
|
|
33
33
|
import { $ as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useControlledState-CFWhSD5C.mjs";
|
|
34
|
-
import { b as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./
|
|
35
|
-
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928,
|
|
34
|
+
import { b as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, a as $e7801be82b4b2a53$export$4debdb1a3f0fa79e } from "./focusSafely-psnzsNzD.mjs";
|
|
35
|
+
import { $ as $3ef42575df84b30b$export$9d1611c77c2fe928, e as $b5e257d569688ac6$export$535bd6ca7f90a273, d as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c } from "./mergeProps-DRsiQq2k.mjs";
|
|
36
36
|
import { $ as $df56164dff5785e2$export$4338b53315abf666 } from "./useObjectRef-wU82Pkgx.mjs";
|
|
37
|
-
import { c as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-
|
|
37
|
+
import { c as $9bf71ea28793e738$export$20e40289641fbbb6 } from "./FocusScope-CQhiv02m.mjs";
|
|
38
38
|
import ReactDOM from "react-dom";
|
|
39
39
|
function $fc909762b330b746$export$61c6a8c84e605fb6(props) {
|
|
40
40
|
let [isOpen, setOpen] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isOpen, props.defaultOpen || false, props.onOpenChange);
|
|
@@ -31,10 +31,10 @@ var __objRest = (source, exclude) => {
|
|
|
31
31
|
return target;
|
|
32
32
|
};
|
|
33
33
|
const React = require("react");
|
|
34
|
-
const Button = require("./Button-
|
|
34
|
+
const Button = require("./Button-D9a9VZzF.js");
|
|
35
35
|
const utils = require("./utils-CY9C69XV.js");
|
|
36
36
|
const ReactDOM = require("react-dom");
|
|
37
|
-
const useFocusable = require("./useFocusable-
|
|
37
|
+
const useFocusable = require("./useFocusable-DRHM1otK.js");
|
|
38
38
|
const mergeProps = require("./mergeProps-6pKCnMWU.js");
|
|
39
39
|
const index = require("./index-6ObXAT_4.js");
|
|
40
40
|
const mergeRefs = require("./mergeRefs-CQsNYO0P.js");
|
|
@@ -43,22 +43,22 @@ const useObjectRef = require("./useObjectRef-BOGMJ5vM.js");
|
|
|
43
43
|
const useListState = require("./useListState-CKHwm7j_.js");
|
|
44
44
|
const context = require("./context-BQfsEeih.js");
|
|
45
45
|
const useCollator = require("./useCollator-DpGidudE.js");
|
|
46
|
-
const useSelectableList = require("./useSelectableList-
|
|
47
|
-
const useListBoxSection = require("./useListBoxSection-
|
|
48
|
-
const useFocusRing = require("./useFocusRing-
|
|
49
|
-
const FocusScope = require("./FocusScope-
|
|
50
|
-
const useHover = require("./useHover-
|
|
46
|
+
const useSelectableList = require("./useSelectableList-F9Rfjy4j.js");
|
|
47
|
+
const useListBoxSection = require("./useListBoxSection-u2FxpXWK.js");
|
|
48
|
+
const useFocusRing = require("./useFocusRing-CtLKOxxD.js");
|
|
49
|
+
const FocusScope = require("./FocusScope-DxiwSl55.js");
|
|
50
|
+
const useHover = require("./useHover-BCKoTdS5.js");
|
|
51
51
|
const useField = require("./useField-MeTEdBhD.js");
|
|
52
|
-
const useFocusWithin = require("./useFocusWithin-
|
|
53
|
-
const useHighlightSelectionDescription = require("./useHighlightSelectionDescription-
|
|
54
|
-
const useHasTabbableChild = require("./useHasTabbableChild-
|
|
55
|
-
const usePress = require("./usePress-
|
|
52
|
+
const useFocusWithin = require("./useFocusWithin-T1vqkUYN.js");
|
|
53
|
+
const useHighlightSelectionDescription = require("./useHighlightSelectionDescription-B49pg43a.js");
|
|
54
|
+
const useHasTabbableChild = require("./useHasTabbableChild-DSm3UrCF.js");
|
|
55
|
+
const usePress = require("./usePress-DchxjERD.js");
|
|
56
56
|
const scrollIntoView = require("./scrollIntoView-CzFYIYQT.js");
|
|
57
|
-
const useFocusVisible = require("./useFocusVisible-
|
|
57
|
+
const useFocusVisible = require("./useFocusVisible-CLoIPL6T.js");
|
|
58
58
|
const getScrollParent = require("./getScrollParent-DNz2ReWu.js");
|
|
59
|
-
const focusSafely = require("./focusSafely-
|
|
59
|
+
const focusSafely = require("./focusSafely-CucekFxc.js");
|
|
60
60
|
const SelectionManager = require("./SelectionManager-px2R7S_e.js");
|
|
61
|
-
const useSelectableItem = require("./useSelectableItem-
|
|
61
|
+
const useSelectableItem = require("./useSelectableItem-CxOGkw0W.js");
|
|
62
62
|
const useLocalizedStringFormatter = require("./useLocalizedStringFormatter-C3ZwxPrF.js");
|
|
63
63
|
const Close = require("./Close-BQ2IlPyf.js");
|
|
64
64
|
const Icon = require("./Icon-W8F9w-jS.js");
|