magic-pill 8.1.0 → 9.0.0-next.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/CHANGELOG.md +38 -0
- package/MIGRATING.md +224 -0
- package/README.md +309 -257
- package/dist/MagicPill/MagicPill.d.mts +27 -0
- package/dist/MagicPill/MagicPill.d.ts +27 -0
- package/dist/MagicPill/MagicPill.js +2 -0
- package/dist/MagicPill/MagicPill.js.map +1 -0
- package/dist/MagicPill/MagicPill.mjs +2 -0
- package/dist/MagicPill/MagicPill.mjs.map +1 -0
- package/dist/MagicPill/choreography.js +2 -0
- package/dist/MagicPill/choreography.js.map +1 -0
- package/dist/MagicPill/choreography.mjs +2 -0
- package/dist/MagicPill/choreography.mjs.map +1 -0
- package/dist/Pill/Pill.d.mts +7 -0
- package/dist/Pill/Pill.d.ts +7 -0
- package/dist/Pill/Pill.js +2 -0
- package/dist/Pill/Pill.js.map +1 -0
- package/dist/Pill/Pill.mjs +2 -0
- package/dist/Pill/Pill.mjs.map +1 -0
- package/dist/Pill/PillAction.d.mts +7 -0
- package/dist/Pill/PillAction.d.ts +7 -0
- package/dist/Pill/PillAction.js +2 -0
- package/dist/Pill/PillAction.js.map +1 -0
- package/dist/Pill/PillAction.mjs +2 -0
- package/dist/Pill/PillAction.mjs.map +1 -0
- package/dist/Pill/PillContext.d.mts +3 -0
- package/dist/Pill/PillContext.d.ts +3 -0
- package/dist/Pill/PillContext.js +2 -0
- package/dist/Pill/PillContext.js.map +1 -0
- package/dist/Pill/PillContext.mjs +2 -0
- package/dist/Pill/PillContext.mjs.map +1 -0
- package/dist/Pill/PillPanel.d.mts +9 -0
- package/dist/Pill/PillPanel.d.ts +9 -0
- package/dist/Pill/PillPanel.js +2 -0
- package/dist/Pill/PillPanel.js.map +1 -0
- package/dist/Pill/PillPanel.mjs +2 -0
- package/dist/Pill/PillPanel.mjs.map +1 -0
- package/dist/Pill/parts.d.mts +10 -0
- package/dist/Pill/parts.d.ts +10 -0
- package/dist/Pill/parts.js +2 -0
- package/dist/Pill/parts.js.map +1 -0
- package/dist/Pill/parts.mjs +2 -0
- package/dist/Pill/parts.mjs.map +1 -0
- package/dist/Pill/types.d.mts +88 -0
- package/dist/Pill/types.d.ts +88 -0
- package/dist/PillNavbar/PillNavbar.d.mts +31 -0
- package/dist/PillNavbar/PillNavbar.d.ts +31 -0
- package/dist/PillNavbar/PillNavbar.js +2 -0
- package/dist/PillNavbar/PillNavbar.js.map +1 -0
- package/dist/PillNavbar/PillNavbar.mjs +2 -0
- package/dist/PillNavbar/PillNavbar.mjs.map +1 -0
- package/dist/PillNavbar/matchPath.d.mts +2 -0
- package/dist/PillNavbar/matchPath.d.ts +2 -0
- package/dist/PillNavbar/matchPath.js +2 -0
- package/dist/PillNavbar/matchPath.js.map +1 -0
- package/dist/PillNavbar/matchPath.mjs +2 -0
- package/dist/PillNavbar/matchPath.mjs.map +1 -0
- package/dist/PillNotification/PillNotification.d.mts +51 -0
- package/dist/PillNotification/PillNotification.d.ts +51 -0
- package/dist/PillNotification/PillNotification.js +2 -0
- package/dist/PillNotification/PillNotification.js.map +1 -0
- package/dist/PillNotification/PillNotification.mjs +2 -0
- package/dist/PillNotification/PillNotification.mjs.map +1 -0
- package/dist/icons/ArrowIcon.d.mts +4 -0
- package/dist/icons/ArrowIcon.d.ts +4 -0
- package/dist/icons/ArrowIcon.js +2 -0
- package/dist/icons/ArrowIcon.js.map +1 -0
- package/dist/icons/ArrowIcon.mjs +2 -0
- package/dist/icons/ArrowIcon.mjs.map +1 -0
- package/dist/icons/BoxIcon.d.mts +4 -0
- package/dist/icons/BoxIcon.d.ts +4 -0
- package/dist/icons/BoxIcon.js +2 -0
- package/dist/icons/BoxIcon.js.map +1 -0
- package/dist/icons/BoxIcon.mjs +2 -0
- package/dist/icons/BoxIcon.mjs.map +1 -0
- package/dist/icons/CheckIcon.d.mts +4 -0
- package/dist/icons/CheckIcon.d.ts +4 -0
- package/dist/icons/CheckIcon.js +2 -0
- package/dist/icons/CheckIcon.js.map +1 -0
- package/dist/icons/CheckIcon.mjs +2 -0
- package/dist/icons/CheckIcon.mjs.map +1 -0
- package/dist/icons/CloseIcon.d.mts +4 -0
- package/dist/icons/CloseIcon.d.ts +4 -0
- package/dist/icons/CloseIcon.js +2 -0
- package/dist/icons/CloseIcon.js.map +1 -0
- package/dist/icons/CloseIcon.mjs +2 -0
- package/dist/icons/CloseIcon.mjs.map +1 -0
- package/dist/icons/CouponIcon.d.mts +4 -0
- package/dist/icons/CouponIcon.d.ts +4 -0
- package/dist/icons/CouponIcon.js +2 -0
- package/dist/icons/CouponIcon.js.map +1 -0
- package/dist/icons/CouponIcon.mjs +2 -0
- package/dist/icons/CouponIcon.mjs.map +1 -0
- package/dist/icons/DocumentIcon.d.mts +4 -0
- package/dist/icons/DocumentIcon.d.ts +4 -0
- package/dist/icons/DocumentIcon.js +2 -0
- package/dist/icons/DocumentIcon.js.map +1 -0
- package/dist/icons/DocumentIcon.mjs +2 -0
- package/dist/icons/DocumentIcon.mjs.map +1 -0
- package/dist/icons/HelpIcon.d.mts +4 -0
- package/dist/icons/HelpIcon.d.ts +4 -0
- package/dist/icons/HelpIcon.js +2 -0
- package/dist/icons/HelpIcon.js.map +1 -0
- package/dist/icons/HelpIcon.mjs +2 -0
- package/dist/icons/HelpIcon.mjs.map +1 -0
- package/dist/icons/InfoIcon.d.mts +4 -0
- package/dist/icons/InfoIcon.d.ts +4 -0
- package/dist/icons/InfoIcon.js +2 -0
- package/dist/icons/InfoIcon.js.map +1 -0
- package/dist/icons/InfoIcon.mjs +2 -0
- package/dist/icons/InfoIcon.mjs.map +1 -0
- package/dist/icons/MailIcon.d.mts +4 -0
- package/dist/icons/MailIcon.d.ts +4 -0
- package/dist/icons/MailIcon.js +2 -0
- package/dist/icons/MailIcon.js.map +1 -0
- package/dist/icons/MailIcon.mjs +2 -0
- package/dist/icons/MailIcon.mjs.map +1 -0
- package/dist/icons/PhoneIcon.d.mts +4 -0
- package/dist/icons/PhoneIcon.d.ts +4 -0
- package/dist/icons/PhoneIcon.js +2 -0
- package/dist/icons/PhoneIcon.js.map +1 -0
- package/dist/icons/PhoneIcon.mjs +2 -0
- package/dist/icons/PhoneIcon.mjs.map +1 -0
- package/dist/icons/PlusIcon.d.mts +4 -0
- package/dist/icons/PlusIcon.d.ts +4 -0
- package/dist/icons/PlusIcon.js +2 -0
- package/dist/icons/PlusIcon.js.map +1 -0
- package/dist/icons/PlusIcon.mjs +2 -0
- package/dist/icons/PlusIcon.mjs.map +1 -0
- package/dist/icons/UndoIcon.d.mts +4 -0
- package/dist/icons/UndoIcon.d.ts +4 -0
- package/dist/icons/UndoIcon.js +2 -0
- package/dist/icons/UndoIcon.js.map +1 -0
- package/dist/icons/UndoIcon.mjs +2 -0
- package/dist/icons/UndoIcon.mjs.map +1 -0
- package/dist/icons/types.d.mts +3 -0
- package/dist/icons/types.d.ts +3 -0
- package/dist/index.d.mts +25 -8
- package/dist/index.d.ts +25 -9
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/store/store.d.mts +63 -0
- package/dist/store/store.d.ts +63 -0
- package/dist/store/store.js +2 -0
- package/dist/store/store.js.map +1 -0
- package/dist/store/store.mjs +2 -0
- package/dist/store/store.mjs.map +1 -0
- package/dist/store/usePillQueue.d.mts +6 -0
- package/dist/store/usePillQueue.d.ts +6 -0
- package/dist/store/usePillQueue.js +2 -0
- package/dist/store/usePillQueue.js.map +1 -0
- package/dist/store/usePillQueue.mjs +2 -0
- package/dist/store/usePillQueue.mjs.map +1 -0
- package/dist/styles.css +427 -0
- package/dist/utils/react.js +2 -0
- package/dist/utils/react.js.map +1 -0
- package/dist/utils/react.mjs +2 -0
- package/dist/utils/react.mjs.map +1 -0
- package/dist/utils/url.js +2 -0
- package/dist/utils/url.js.map +1 -0
- package/dist/utils/url.mjs +2 -0
- package/dist/utils/url.mjs.map +1 -0
- package/package.json +5 -3
- package/dist/MagicPill.d.mts +0 -6
- package/dist/MagicPill.d.ts +0 -7
- package/dist/MagicPill.js +0 -2
- package/dist/MagicPill.js.map +0 -1
- package/dist/MagicPill.mjs +0 -2
- package/dist/MagicPill.mjs.map +0 -1
- package/dist/Navbar/Navbar.js +0 -2
- package/dist/Navbar/Navbar.js.map +0 -1
- package/dist/Navbar/Navbar.mjs +0 -2
- package/dist/Navbar/Navbar.mjs.map +0 -1
- package/dist/Notification/Notification.js +0 -2
- package/dist/Notification/Notification.js.map +0 -1
- package/dist/Notification/Notification.mjs +0 -2
- package/dist/Notification/Notification.mjs.map +0 -1
- package/dist/defaultPillData.d.mts +0 -2
- package/dist/defaultPillData.d.ts +0 -3
- package/dist/defaultPillData.js +0 -7
- package/dist/defaultPillData.js.map +0 -1
- package/dist/defaultPillData.mjs +0 -7
- package/dist/defaultPillData.mjs.map +0 -1
- package/dist/icons/arrow_label.js +0 -2
- package/dist/icons/arrow_label.js.map +0 -1
- package/dist/icons/arrow_label.mjs +0 -2
- package/dist/icons/arrow_label.mjs.map +0 -1
- package/dist/icons/box_label.js +0 -2
- package/dist/icons/box_label.js.map +0 -1
- package/dist/icons/box_label.mjs +0 -2
- package/dist/icons/box_label.mjs.map +0 -1
- package/dist/icons/checkmark.js +0 -2
- package/dist/icons/checkmark.js.map +0 -1
- package/dist/icons/checkmark.mjs +0 -2
- package/dist/icons/checkmark.mjs.map +0 -1
- package/dist/icons/checkmark_label.js +0 -2
- package/dist/icons/checkmark_label.js.map +0 -1
- package/dist/icons/checkmark_label.mjs +0 -2
- package/dist/icons/checkmark_label.mjs.map +0 -1
- package/dist/icons/coupon.js +0 -2
- package/dist/icons/coupon.js.map +0 -1
- package/dist/icons/coupon.mjs +0 -2
- package/dist/icons/coupon.mjs.map +0 -1
- package/dist/icons/cross_label.js +0 -2
- package/dist/icons/cross_label.js.map +0 -1
- package/dist/icons/cross_label.mjs +0 -2
- package/dist/icons/cross_label.mjs.map +0 -1
- package/dist/icons/info.js +0 -2
- package/dist/icons/info.js.map +0 -1
- package/dist/icons/info.mjs +0 -2
- package/dist/icons/info.mjs.map +0 -1
- package/dist/icons/info_label.js +0 -2
- package/dist/icons/info_label.js.map +0 -1
- package/dist/icons/info_label.mjs +0 -2
- package/dist/icons/info_label.mjs.map +0 -1
- package/dist/icons/mail_label.js +0 -2
- package/dist/icons/mail_label.js.map +0 -1
- package/dist/icons/mail_label.mjs +0 -2
- package/dist/icons/mail_label.mjs.map +0 -1
- package/dist/icons/plus_label.js +0 -2
- package/dist/icons/plus_label.js.map +0 -1
- package/dist/icons/plus_label.mjs +0 -2
- package/dist/icons/plus_label.mjs.map +0 -1
- package/dist/icons/questionmark.js +0 -2
- package/dist/icons/questionmark.js.map +0 -1
- package/dist/icons/questionmark.mjs +0 -2
- package/dist/icons/questionmark.mjs.map +0 -1
- package/dist/icons/quotation_label.js +0 -2
- package/dist/icons/quotation_label.js.map +0 -1
- package/dist/icons/quotation_label.mjs +0 -2
- package/dist/icons/quotation_label.mjs.map +0 -1
- package/dist/icons/tel_label.js +0 -2
- package/dist/icons/tel_label.js.map +0 -1
- package/dist/icons/tel_label.mjs +0 -2
- package/dist/icons/tel_label.mjs.map +0 -1
- package/dist/icons/undo_label.js +0 -2
- package/dist/icons/undo_label.js.map +0 -1
- package/dist/icons/undo_label.mjs +0 -2
- package/dist/icons/undo_label.mjs.map +0 -1
- package/dist/magicpill.css +0 -315
- package/dist/types/index.d.ts +0 -4
- package/dist/types/magicPill.d.mts +0 -50
- package/dist/types/magicPill.d.ts +0 -50
- package/dist/types/navbar.d.mts +0 -27
- package/dist/types/navbar.d.ts +0 -28
- package/dist/types/notification.d.mts +0 -140
- package/dist/types/notification.d.ts +0 -141
- package/dist/utils/handlers.d.mts +0 -20
- package/dist/utils/handlers.d.ts +0 -21
- package/dist/utils/handlers.js +0 -2
- package/dist/utils/handlers.js.map +0 -1
- package/dist/utils/handlers.mjs +0 -2
- package/dist/utils/handlers.mjs.map +0 -1
- package/dist/utils/icons.d.mts +0 -20
- package/dist/utils/icons.d.ts +0 -20
- package/dist/utils/icons.js +0 -2
- package/dist/utils/icons.js.map +0 -1
- package/dist/utils/icons.mjs +0 -2
- package/dist/utils/icons.mjs.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 43 27`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=CouponIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CouponIcon.js","names":["react_jsx_runtime","CouponIcon","props"],"sources":["../../src/icons/CouponIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `coupon`): drawn in `currentColor`, decorative by default. */\nconst CouponIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 43 27\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z\" />\n </svg>\n);\n\nexport default CouponIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAcC,GAClB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,+mCAAinC,CAAA,CACtnC,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 43 27`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=CouponIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CouponIcon.mjs","names":["jsx","CouponIcon","props"],"sources":["../../src/icons/CouponIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `coupon`): drawn in `currentColor`, decorative by default. */\nconst CouponIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 43 27\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.804932 4.11207C0.804932 1.94314 2.56319 0.184875 4.73212 0.184875H38.7678C40.9367 0.184875 42.695 1.94314 42.695 4.11207V8.03925C42.695 8.76223 42.1089 9.34832 41.3859 9.34832C39.217 9.34832 37.4587 11.1066 37.4587 13.2755C37.4587 15.4444 39.217 17.2027 41.3859 17.2027C42.1089 17.2027 42.695 17.7888 42.695 18.5118V22.4389C42.695 24.6079 40.9367 26.3661 38.7678 26.3661H4.73212C2.56319 26.3661 0.804932 24.6079 0.804932 22.4389V18.5118C0.804932 17.7888 1.39102 17.2027 2.11399 17.2027C4.28292 17.2027 6.04118 15.4444 6.04118 13.2755C6.04118 11.1066 4.28292 9.34832 2.11399 9.34832C1.39102 9.34832 0.804932 8.76223 0.804932 8.03925V4.11207ZM11.2774 1.49394V4.11207H13.8956V1.49394H11.2774ZM13.8956 9.34832V6.73019H11.2774V9.34832H13.8956ZM32.2224 9.34832V6.73019H29.6043V9.34832H32.2224ZM29.6043 4.11207H32.2224V1.49394H29.6043V4.11207ZM13.8956 11.9664H11.2774V14.5846H13.8956V11.9664ZM32.2224 14.5846V11.9664H29.6043V14.5846H32.2224ZM13.8956 17.2027H11.2774V19.8208H13.8956V17.2027ZM32.2224 19.8208V17.2027H29.6043V19.8208H32.2224ZM11.2774 22.4389V25.0571H13.8956V22.4389H11.2774ZM29.6043 25.0571H32.2224V22.4389H29.6043V25.0571Z\" />\n </svg>\n);\n\nexport default CouponIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAcC,GAClBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,+mCAAinC,CAAA,CACtnC,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 21 26`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=DocumentIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentIcon.js","names":["react_jsx_runtime","DocumentIcon","props"],"sources":["../../src/icons/DocumentIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `quotation_label`): drawn in `currentColor`, decorative by default. */\nconst DocumentIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 21 26\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z\" />\n </svg>\n);\n\nexport default DocumentIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAgBC,GACpB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,ifAAmf,CAAA,CACxf,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 21 26`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=DocumentIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentIcon.mjs","names":["jsx","DocumentIcon","props"],"sources":["../../src/icons/DocumentIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `quotation_label`): drawn in `currentColor`, decorative by default. */\nconst DocumentIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 21 26\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M12.5453 0H3.98136C2.19417 0 0.745361 1.44881 0.745361 3.236V22.652C0.745361 24.4392 2.19417 25.888 3.98136 25.888H16.9254C18.7126 25.888 20.1614 24.4392 20.1614 22.652V7.6161C20.1614 7.18698 19.9909 6.77544 19.6875 6.472L13.6894 0.473901C13.3859 0.170467 12.9744 0 12.5453 0ZM12.8804 5.663V2.427L17.7344 7.281H14.4984C13.6048 7.281 12.8804 6.5566 12.8804 5.663ZM2.36336 14.562H18.5434V16.18H7.21736V19.416H18.5434V21.034H7.21736V24.27H5.59936V21.034H2.36336V19.416H5.59936V16.18H2.36336V14.562Z\" />\n </svg>\n);\n\nexport default DocumentIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAgBC,GACpBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,ifAAmf,CAAA,CACxf,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 30`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=HelpIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpIcon.js","names":["react_jsx_runtime","HelpIcon","props"],"sources":["../../src/icons/HelpIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `questionmark`): drawn in `currentColor`, decorative by default. */\nconst HelpIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 16 30\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z\" />\n </svg>\n);\n\nexport default HelpIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAYC,GAChB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,o5CAAs5C,CAAA,CAC35C,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 30`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=HelpIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HelpIcon.mjs","names":["jsx","HelpIcon","props"],"sources":["../../src/icons/HelpIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `questionmark`): drawn in `currentColor`, decorative by default. */\nconst HelpIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 16 30\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M8.36496 18.7176C7.18591 19.2934 6.18509 19.5813 5.3625 19.5813C3.33344 19.5813 2.31891 18.8547 2.31891 17.4015C2.31891 16.5789 2.55198 15.7563 3.01812 14.9337C3.48425 14.0837 4.04635 13.3159 4.70443 12.6304C5.38992 11.9175 6.07541 11.2183 6.76091 10.5328C7.4464 9.81991 8.02221 9.05216 8.48835 8.22957C8.95448 7.40698 9.18755 6.58439 9.18755 5.7618C9.18755 4.58275 8.54319 3.99323 7.25446 3.99323C6.59639 3.99323 5.93831 4.28113 5.28024 4.85695C4.62217 5.40534 4.15603 6.14567 3.88184 7.07794C1.66084 6.80375 0.550342 6.00858 0.550342 4.69243C0.550342 3.4037 1.30438 2.37547 2.81247 1.60771C4.34797 0.812541 6.11654 0.414955 8.11818 0.414955C9.92788 0.414955 11.5594 0.812541 13.0126 1.60771C14.4658 2.37547 15.1925 3.60935 15.1925 5.30937C15.1925 6.48842 14.9457 7.5715 14.4521 8.55861C13.986 9.5183 13.4102 10.3409 12.7247 11.0264C12.0666 11.7119 11.3948 12.3699 10.7093 13.0006C10.0239 13.6313 9.43433 14.3442 8.94077 15.1393C8.47464 15.9071 8.24157 16.716 8.24157 17.566C8.24157 17.9224 8.2827 18.3063 8.36496 18.7176ZM4.00523 29.4113C3.12779 29.4113 2.40117 29.1234 1.82536 28.5476C1.24954 27.9718 0.961638 27.2314 0.961638 26.3266C0.961638 25.2572 1.35922 24.2838 2.15439 23.4064C2.94957 22.5289 3.90926 22.0902 5.03346 22.0902C5.88347 22.0902 6.59639 22.4056 7.1722 23.0362C7.77543 23.6394 8.07705 24.3935 8.07705 25.2983C8.07705 26.3403 7.66576 27.2863 6.84317 28.1363C6.02057 28.9863 5.07459 29.4113 4.00523 29.4113Z\" />\n </svg>\n);\n\nexport default HelpIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAYC,GAChBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,o5CAAs5C,CAAA,CAC35C,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 11 31`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=InfoIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoIcon.js","names":["react_jsx_runtime","InfoIcon","props"],"sources":["../../src/icons/InfoIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `info`): drawn in `currentColor`, decorative by default. */\nconst InfoIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 11 31\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z\" />\n </svg>\n);\n\nexport default InfoIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAYC,GAChB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,g+BAAk+B,CAAA,CACv+B,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 11 31`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=InfoIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfoIcon.mjs","names":["jsx","InfoIcon","props"],"sources":["../../src/icons/InfoIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `info`): drawn in `currentColor`, decorative by default. */\nconst InfoIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 11 31\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M5.51383 9.94016C7.59773 9.94016 8.63967 11.1741 8.63967 13.6418C8.63967 14.7386 8.33806 16.6854 7.73482 19.4822C7.13159 22.279 6.82997 24.0065 6.82997 24.6645C6.82997 25.7613 7.26869 26.5839 8.14612 27.1323C7.76224 28.1743 7.18643 28.9694 6.41868 29.5178C5.67835 30.0388 4.85575 30.2993 3.9509 30.2993C1.62023 30.2993 0.454891 29.0517 0.454891 26.5565C0.454891 25.2678 0.756508 23.2387 1.35974 20.4693C1.99039 17.6999 2.30572 15.9725 2.30572 15.287C2.30572 14.108 1.88072 13.4636 1.0307 13.3539C1.1678 12.3942 1.64765 11.5853 2.47024 10.9273C3.32025 10.2692 4.33478 9.94016 5.51383 9.94016ZM6.08964 8.0482C5.04769 8.0482 4.25252 7.74659 3.70413 7.14335C3.18315 6.5127 2.92266 5.75866 2.92266 4.88123C2.92266 3.81186 3.27912 2.86588 3.99203 2.04329C4.73237 1.19328 5.71947 0.768273 6.95336 0.768273C7.96789 0.768273 8.74935 1.09731 9.29775 1.75538C9.84614 2.41345 10.1203 3.19492 10.1203 4.09977C10.1203 5.16914 9.76388 6.10141 9.05097 6.89658C8.36548 7.66433 7.37837 8.0482 6.08964 8.0482Z\" />\n </svg>\n);\n\nexport default InfoIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAYC,GAChBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,g+BAAk+B,CAAA,CACv+B,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 20`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=MailIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MailIcon.js","names":["react_jsx_runtime","MailIcon","props"],"sources":["../../src/icons/MailIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `mail_label`): drawn in `currentColor`, decorative by default. */\nconst MailIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 20\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z\" />\n </svg>\n);\n\nexport default MailIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAYC,GAChB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,0bAA4b,CAAA,CACjc,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 20`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=MailIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MailIcon.mjs","names":["jsx","MailIcon","props"],"sources":["../../src/icons/MailIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `mail_label`): drawn in `currentColor`, decorative by default. */\nconst MailIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 20\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.701567 2.7527C1.02864 1.31171 2.31737 0.236 3.85734 0.236H23.2733C24.8133 0.236 26.102 1.31171 26.4291 2.7527L13.5653 10.6139L0.701567 2.7527ZM0.621338 4.59988V16.0934L10.0109 10.338L0.621338 4.59988ZM11.5613 11.2854L0.931785 17.8008C1.45073 18.8952 2.56565 19.652 3.85734 19.652H23.2733C24.565 19.652 25.6799 18.8952 26.1989 17.8008L15.5694 11.2854L13.5653 12.5101L11.5613 11.2854ZM17.1198 10.338L26.5093 16.0934V4.59988L17.1198 10.338Z\" />\n </svg>\n);\n\nexport default MailIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAYC,GAChBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,0bAA4b,CAAA,CACjc,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 26`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=PhoneIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneIcon.js","names":["react_jsx_runtime","PhoneIcon","props"],"sources":["../../src/icons/PhoneIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `tel_label`): drawn in `currentColor`, decorative by default. */\nconst PhoneIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 26\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z\" />\n </svg>\n);\n\nexport default PhoneIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAaC,GACjB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,kmBAAomB,CAAA,CAC/oB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 26`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=PhoneIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PhoneIcon.mjs","names":["jsx","PhoneIcon","props"],"sources":["../../src/icons/PhoneIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `tel_label`): drawn in `currentColor`, decorative by default. */\nconst PhoneIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 26\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3.78296 0.826921C4.9837 -0.37382 6.96512 -0.250462 8.00765 1.08994L10.9099 4.82136C11.4425 5.50612 11.6307 6.39771 11.4203 7.2393L10.5348 10.7812C10.4413 11.1551 10.5509 11.5507 10.8234 11.8232L14.7982 15.798C15.0707 16.0705 15.4663 16.1801 15.8402 16.0866L19.3821 15.2011C20.2237 14.9907 21.1153 15.1789 21.8 15.7115L25.5315 18.6138C26.8719 19.6563 26.9952 21.6377 25.7945 22.8384L24.1216 24.5113C22.9247 25.7082 21.1346 26.2337 19.4662 25.6472C15.3238 24.1908 11.4355 21.8064 8.12521 18.4962C4.81496 15.1859 2.4306 11.2976 0.974218 7.1552C0.38766 5.48684 0.913207 3.69668 2.11007 2.49981L3.78296 0.826921Z\" />\n </svg>\n);\n\nexport default PhoneIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAaC,GACjBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,kmBAAomB,CAAA,CAC/oB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 28`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{d:`M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=PlusIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlusIcon.js","names":["react_jsx_runtime","PlusIcon","props"],"sources":["../../src/icons/PlusIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `plus_label`): drawn in `currentColor`, decorative by default. */\nconst PlusIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 28\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z\" />\n </svg>\n);\n\nexport default PlusIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAYC,GAChB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,EAAE,0hBAA4hB,CAAA,CACjiB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 27 28`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{d:`M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=PlusIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlusIcon.mjs","names":["jsx","PlusIcon","props"],"sources":["../../src/icons/PlusIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `plus_label`): drawn in `currentColor`, decorative by default. */\nconst PlusIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 27 28\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path d=\"M0.8045 14.7234C0.357701 14.7234 -0.00450093 14.3612 -0.00450059 13.9144C-0.00450082 13.4676 0.357702 13.1054 0.8045 13.1054L12.5806 13.1054L12.5806 1.32934C12.5806 0.882544 12.9428 0.520341 13.3896 0.52034C13.8364 0.520341 14.1986 0.882543 14.1986 1.32934L14.1986 13.1054L25.9747 13.1054C26.4215 13.1054 26.7837 13.4676 26.7837 13.9144C26.7837 14.3612 26.4215 14.7234 25.9747 14.7234H14.1986L14.1986 26.4995C14.1986 26.9463 13.8364 27.3085 13.3896 27.3085C12.9428 27.3085 12.5806 26.9463 12.5806 26.4995L12.5806 14.7234L0.8045 14.7234Z\" />\n </svg>\n);\n\nexport default PlusIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAYC,GAChBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,EAAE,0hBAA4hB,CAAA,CACjiB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let e=require("react/jsx-runtime");const t=t=>/* @__PURE__ */ (0,e.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 25`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ (0,e.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z`})});module.exports=t;
|
|
2
|
+
//# sourceMappingURL=UndoIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UndoIcon.js","names":["react_jsx_runtime","UndoIcon","props"],"sources":["../../src/icons/UndoIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `undo_label`): drawn in `currentColor`, decorative by default. */\nconst UndoIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 25\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z\" />\n </svg>\n);\n\nexport default UndoIcon;\n"],"mappings":"A,mCAGA,MAAMC,EAAYC,GAChB,iBAAA,EAAAF,EAAA,IAAA,CAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAA,iBAAA,EAAAF,EAAA,IAAA,CAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,6gBAA+gB,CAAA,CAC1jB,CAAA,E"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";const t=t=>/* @__PURE__ */ e(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 24 25`,fill:`currentColor`,"aria-hidden":`true`,focusable:`false`,xmlns:`http://www.w3.org/2000/svg`,...t,children:/* @__PURE__ */ e(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z`})});export{t as default};
|
|
2
|
+
//# sourceMappingURL=UndoIcon.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UndoIcon.mjs","names":["jsx","UndoIcon","props"],"sources":["../../src/icons/UndoIcon.tsx"],"sourcesContent":["import type { IconProps } from \"./types\";\n\n/** v9 icon (from `undo_label`): drawn in `currentColor`, decorative by default. */\nconst UndoIcon = (props: IconProps) => (\n <svg width=\"1em\" height=\"1em\" viewBox=\"0 0 24 25\" fill=\"currentColor\" aria-hidden=\"true\" focusable=\"false\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M0.85896 7.85305C0.543026 7.53712 0.543026 7.02489 0.85896 6.70895L7.33096 0.236954C7.64689 -0.0789795 8.15912 -0.0789795 8.47506 0.236954C8.79099 0.552889 8.79099 1.06512 8.47506 1.38105L3.38411 6.472H19.229C21.463 6.472 23.274 8.28301 23.274 10.517V23.461C23.274 23.9078 22.9118 24.27 22.465 24.27C22.0182 24.27 21.656 23.9078 21.656 23.461V10.517C21.656 9.17661 20.5694 8.09 19.229 8.09H3.38411L8.47506 13.181C8.79099 13.4969 8.79099 14.0091 8.47506 14.3251C8.15912 14.641 7.64689 14.641 7.33096 14.3251L0.85896 7.85305Z\" />\n </svg>\n);\n\nexport default UndoIcon;\n"],"mappings":"A,wCAGA,MAAMC,EAAYC,GAChBF,kBAAC,MAAD,CAAK,MAAM,MAAM,OAAO,MAAM,QAAQ,YAAY,KAAK,eAAe,cAAY,OAAO,UAAU,QAAQ,MAAM,6BAA6B,GAAIE,EAChJ,SAAAF,kBAAC,OAAD,CAAM,SAAS,UAAU,SAAS,UAAU,EAAE,6gBAA+gB,CAAA,CAC1jB,CAAA,E"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import Pill from "./Pill/Pill.mjs";
|
|
2
|
+
import { PillActions, PillDivider, PillIcon, PillMessage } from "./Pill/parts.mjs";
|
|
3
|
+
import PillAction from "./Pill/PillAction.mjs";
|
|
4
|
+
import { PillPanel, PillPanelTrigger } from "./Pill/PillPanel.mjs";
|
|
5
|
+
import { usePill } from "./Pill/PillContext.mjs";
|
|
6
|
+
import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPlacement, PillPresence, PillProps, PillVariant } from "./Pill/types.mjs";
|
|
7
|
+
import { NotificationAction, NotificationPanel, PillNotification, PillNotificationClassNames, PillNotificationProps } from "./PillNotification/PillNotification.mjs";
|
|
8
|
+
import { NavItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.mjs";
|
|
9
|
+
import MagicPill, { MagicPillProps } from "./MagicPill/MagicPill.mjs";
|
|
10
|
+
import { DismissReason, NotifyInput, NotifyOptions, NotifyRenderOptions, PillController, PillQueueState, QueuedNotification, pill } from "./store/store.mjs";
|
|
11
|
+
import { usePillQueue } from "./store/usePillQueue.mjs";
|
|
12
|
+
import ArrowIcon from "./icons/ArrowIcon.mjs";
|
|
13
|
+
import BoxIcon from "./icons/BoxIcon.mjs";
|
|
14
|
+
import CheckIcon from "./icons/CheckIcon.mjs";
|
|
15
|
+
import CloseIcon from "./icons/CloseIcon.mjs";
|
|
16
|
+
import CouponIcon from "./icons/CouponIcon.mjs";
|
|
17
|
+
import DocumentIcon from "./icons/DocumentIcon.mjs";
|
|
18
|
+
import HelpIcon from "./icons/HelpIcon.mjs";
|
|
19
|
+
import InfoIcon from "./icons/InfoIcon.mjs";
|
|
20
|
+
import MailIcon from "./icons/MailIcon.mjs";
|
|
21
|
+
import PhoneIcon from "./icons/PhoneIcon.mjs";
|
|
22
|
+
import PlusIcon from "./icons/PlusIcon.mjs";
|
|
23
|
+
import UndoIcon from "./icons/UndoIcon.mjs";
|
|
24
|
+
import { IconProps } from "./icons/types.mjs";
|
|
25
|
+
export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, type DismissReason, DocumentIcon, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, type PillContextValue, type PillController, PillDivider, PillIcon, type PillLinkActionProps, PillMessage, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, type PillVariant, PlusIcon, type QueuedNotification, UndoIcon, pill, usePill, usePillQueue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,25 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import Pill from "./Pill/Pill.js";
|
|
2
|
+
import { PillActions, PillDivider, PillIcon, PillMessage } from "./Pill/parts.js";
|
|
3
|
+
import PillAction from "./Pill/PillAction.js";
|
|
4
|
+
import { PillPanel, PillPanelTrigger } from "./Pill/PillPanel.js";
|
|
5
|
+
import { usePill } from "./Pill/PillContext.js";
|
|
6
|
+
import { LinkComponent, PillActionProps, PillButtonActionProps, PillContextValue, PillLinkActionProps, PillOrientation, PillPanelProps, PillPlacement, PillPresence, PillProps, PillVariant } from "./Pill/types.js";
|
|
7
|
+
import { NotificationAction, NotificationPanel, PillNotification, PillNotificationClassNames, PillNotificationProps } from "./PillNotification/PillNotification.js";
|
|
8
|
+
import { NavItem, PillNavbar, PillNavbarProps } from "./PillNavbar/PillNavbar.js";
|
|
9
|
+
import MagicPill, { MagicPillProps } from "./MagicPill/MagicPill.js";
|
|
10
|
+
import { DismissReason, NotifyInput, NotifyOptions, NotifyRenderOptions, PillController, PillQueueState, QueuedNotification, pill } from "./store/store.js";
|
|
11
|
+
import { usePillQueue } from "./store/usePillQueue.js";
|
|
12
|
+
import ArrowIcon from "./icons/ArrowIcon.js";
|
|
13
|
+
import BoxIcon from "./icons/BoxIcon.js";
|
|
14
|
+
import CheckIcon from "./icons/CheckIcon.js";
|
|
15
|
+
import CloseIcon from "./icons/CloseIcon.js";
|
|
16
|
+
import CouponIcon from "./icons/CouponIcon.js";
|
|
17
|
+
import DocumentIcon from "./icons/DocumentIcon.js";
|
|
18
|
+
import HelpIcon from "./icons/HelpIcon.js";
|
|
19
|
+
import InfoIcon from "./icons/InfoIcon.js";
|
|
20
|
+
import MailIcon from "./icons/MailIcon.js";
|
|
21
|
+
import PhoneIcon from "./icons/PhoneIcon.js";
|
|
22
|
+
import PlusIcon from "./icons/PlusIcon.js";
|
|
23
|
+
import UndoIcon from "./icons/UndoIcon.js";
|
|
24
|
+
import { IconProps } from "./icons/types.js";
|
|
25
|
+
export { ArrowIcon, BoxIcon, CheckIcon, CloseIcon, CouponIcon, type DismissReason, DocumentIcon, HelpIcon, type IconProps, InfoIcon, type LinkComponent, MagicPill, type MagicPillProps, MailIcon, type NavItem, type NotificationAction, type NotificationPanel, type NotifyInput, type NotifyOptions, type NotifyRenderOptions, PhoneIcon, Pill, PillAction, type PillActionProps, PillActions, type PillButtonActionProps, type PillContextValue, type PillController, PillDivider, PillIcon, type PillLinkActionProps, PillMessage, PillNavbar, type PillNavbarProps, PillNotification, type PillNotificationClassNames, type PillNotificationProps, type PillOrientation, PillPanel, type PillPanelProps, PillPanelTrigger, type PillPlacement, type PillPresence, type PillProps, type PillQueueState, type PillVariant, PlusIcon, type QueuedNotification, UndoIcon, pill, usePill, usePillQueue };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./Pill/Pill.js"),t=require("./Pill/parts.js"),n=require("./Pill/PillAction.js"),r=require("./Pill/PillPanel.js"),i=require("./Pill/PillContext.js"),a=require("./PillNotification/PillNotification.js"),o=require("./PillNavbar/PillNavbar.js"),s=require("./MagicPill/MagicPill.js"),c=require("./store/store.js"),l=require("./store/usePillQueue.js"),u=require("./icons/ArrowIcon.js"),d=require("./icons/BoxIcon.js"),f=require("./icons/CheckIcon.js"),p=require("./icons/CloseIcon.js"),m=require("./icons/CouponIcon.js"),h=require("./icons/DocumentIcon.js"),g=require("./icons/HelpIcon.js"),_=require("./icons/InfoIcon.js"),v=require("./icons/MailIcon.js"),y=require("./icons/PhoneIcon.js"),b=require("./icons/PlusIcon.js"),x=require("./icons/UndoIcon.js");exports.ArrowIcon=u,exports.BoxIcon=d,exports.CheckIcon=f,exports.CloseIcon=p,exports.CouponIcon=m,exports.DocumentIcon=h,exports.HelpIcon=g,exports.InfoIcon=_,exports.MagicPill=s,exports.MailIcon=v,exports.PhoneIcon=y,exports.Pill=e,exports.PillAction=n,exports.PillActions=t.PillActions,exports.PillDivider=t.PillDivider,exports.PillIcon=t.PillIcon,exports.PillMessage=t.PillMessage,exports.PillNavbar=o.PillNavbar,exports.PillNotification=a.PillNotification,exports.PillPanel=r.PillPanel,exports.PillPanelTrigger=r.PillPanelTrigger,exports.PlusIcon=b,exports.UndoIcon=x,exports.pill=c.pill,exports.usePill=i.usePill,exports.usePillQueue=l.usePillQueue;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./
|
|
1
|
+
import e from"./Pill/Pill.mjs";import{PillActions as t,PillDivider as n,PillIcon as r,PillMessage as i}from"./Pill/parts.mjs";import a from"./Pill/PillAction.mjs";import{PillPanel as o,PillPanelTrigger as s}from"./Pill/PillPanel.mjs";import{usePill as c}from"./Pill/PillContext.mjs";import{PillNotification as l}from"./PillNotification/PillNotification.mjs";import{PillNavbar as u}from"./PillNavbar/PillNavbar.mjs";import d from"./MagicPill/MagicPill.mjs";import{pill as f}from"./store/store.mjs";import{usePillQueue as p}from"./store/usePillQueue.mjs";import m from"./icons/ArrowIcon.mjs";import h from"./icons/BoxIcon.mjs";import g from"./icons/CheckIcon.mjs";import _ from"./icons/CloseIcon.mjs";import v from"./icons/CouponIcon.mjs";import y from"./icons/DocumentIcon.mjs";import b from"./icons/HelpIcon.mjs";import x from"./icons/InfoIcon.mjs";import S from"./icons/MailIcon.mjs";import C from"./icons/PhoneIcon.mjs";import w from"./icons/PlusIcon.mjs";import T from"./icons/UndoIcon.mjs";export{m as ArrowIcon,h as BoxIcon,g as CheckIcon,_ as CloseIcon,v as CouponIcon,y as DocumentIcon,b as HelpIcon,x as InfoIcon,d as MagicPill,S as MailIcon,C as PhoneIcon,e as Pill,a as PillAction,t as PillActions,n as PillDivider,r as PillIcon,i as PillMessage,u as PillNavbar,l as PillNotification,o as PillPanel,s as PillPanelTrigger,w as PlusIcon,T as UndoIcon,f as pill,c as usePill,p as usePillQueue};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { PillVariant } from "../Pill/types.mjs";
|
|
3
|
+
import { PillNotificationProps } from "../PillNotification/PillNotification.mjs";
|
|
4
|
+
export type DismissReason = "timeout" | "action" | "dismissed" | "cleared";
|
|
5
|
+
interface NotifyCommon {
|
|
6
|
+
/**
|
|
7
|
+
* Reusing the id of a queued or visible notification updates it in place
|
|
8
|
+
* (e.g. "Saving…" → "Saved") instead of queueing a new one.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
variant?: PillVariant;
|
|
12
|
+
/**
|
|
13
|
+
* Milliseconds the notification stays once fully shown. Default: the host's
|
|
14
|
+
* `duration` (5000). `Infinity` keeps it until dismissed. The countdown
|
|
15
|
+
* pauses on hover, focus, an open panel and a hidden browser tab, and
|
|
16
|
+
* starts again from the full duration afterwards.
|
|
17
|
+
*/
|
|
18
|
+
duration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* What screen readers announce. Default: the text of the message (or of the
|
|
21
|
+
* whole pill for a `render` notification). `false` announces nothing.
|
|
22
|
+
*/
|
|
23
|
+
announce?: string | false;
|
|
24
|
+
onDismiss?: (id: string, reason: DismissReason) => void;
|
|
25
|
+
}
|
|
26
|
+
/** The built-in notification template, as data. */
|
|
27
|
+
export interface NotifyOptions extends NotifyCommon, Omit<PillNotificationProps, "linkComponent" | "classNames"> {
|
|
28
|
+
render?: undefined;
|
|
29
|
+
}
|
|
30
|
+
/** Your own template, with the queue, timing and animation of the host. */
|
|
31
|
+
export interface NotifyRenderOptions extends NotifyCommon {
|
|
32
|
+
render: (notification: {
|
|
33
|
+
id: string;
|
|
34
|
+
dismiss: () => void;
|
|
35
|
+
}) => ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export type NotifyInput = NotifyOptions | NotifyRenderOptions;
|
|
38
|
+
export interface QueuedNotification {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly input: NotifyInput;
|
|
41
|
+
}
|
|
42
|
+
export interface PillQueueState {
|
|
43
|
+
/** The notification the pill shows (or is about to show). */
|
|
44
|
+
readonly current: QueuedNotification | null;
|
|
45
|
+
/** The ones waiting behind it, first in, first out. */
|
|
46
|
+
readonly queued: readonly QueuedNotification[];
|
|
47
|
+
}
|
|
48
|
+
export interface PillController {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/**
|
|
51
|
+
* Queue a notification (first in, first out). Returns its id.
|
|
52
|
+
* Calls made before the host mounts are kept and shown once it mounts.
|
|
53
|
+
*/
|
|
54
|
+
notify: (input: NotifyInput) => string;
|
|
55
|
+
update: (id: string, patch: Partial<NotifyOptions>) => void;
|
|
56
|
+
/** Dismiss one notification, or the visible one when called without an id. */
|
|
57
|
+
dismiss: (id?: string) => void;
|
|
58
|
+
/** Empty the queue and dismiss the visible notification. */
|
|
59
|
+
clear: () => void;
|
|
60
|
+
}
|
|
61
|
+
/** Control the <MagicPill> with this name (default "main") from anywhere. */
|
|
62
|
+
export declare function pill(name?: string): PillController;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { PillVariant } from "../Pill/types.js";
|
|
3
|
+
import { PillNotificationProps } from "../PillNotification/PillNotification.js";
|
|
4
|
+
export type DismissReason = "timeout" | "action" | "dismissed" | "cleared";
|
|
5
|
+
interface NotifyCommon {
|
|
6
|
+
/**
|
|
7
|
+
* Reusing the id of a queued or visible notification updates it in place
|
|
8
|
+
* (e.g. "Saving…" → "Saved") instead of queueing a new one.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
variant?: PillVariant;
|
|
12
|
+
/**
|
|
13
|
+
* Milliseconds the notification stays once fully shown. Default: the host's
|
|
14
|
+
* `duration` (5000). `Infinity` keeps it until dismissed. The countdown
|
|
15
|
+
* pauses on hover, focus, an open panel and a hidden browser tab, and
|
|
16
|
+
* starts again from the full duration afterwards.
|
|
17
|
+
*/
|
|
18
|
+
duration?: number;
|
|
19
|
+
/**
|
|
20
|
+
* What screen readers announce. Default: the text of the message (or of the
|
|
21
|
+
* whole pill for a `render` notification). `false` announces nothing.
|
|
22
|
+
*/
|
|
23
|
+
announce?: string | false;
|
|
24
|
+
onDismiss?: (id: string, reason: DismissReason) => void;
|
|
25
|
+
}
|
|
26
|
+
/** The built-in notification template, as data. */
|
|
27
|
+
export interface NotifyOptions extends NotifyCommon, Omit<PillNotificationProps, "linkComponent" | "classNames"> {
|
|
28
|
+
render?: undefined;
|
|
29
|
+
}
|
|
30
|
+
/** Your own template, with the queue, timing and animation of the host. */
|
|
31
|
+
export interface NotifyRenderOptions extends NotifyCommon {
|
|
32
|
+
render: (notification: {
|
|
33
|
+
id: string;
|
|
34
|
+
dismiss: () => void;
|
|
35
|
+
}) => ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export type NotifyInput = NotifyOptions | NotifyRenderOptions;
|
|
38
|
+
export interface QueuedNotification {
|
|
39
|
+
readonly id: string;
|
|
40
|
+
readonly input: NotifyInput;
|
|
41
|
+
}
|
|
42
|
+
export interface PillQueueState {
|
|
43
|
+
/** The notification the pill shows (or is about to show). */
|
|
44
|
+
readonly current: QueuedNotification | null;
|
|
45
|
+
/** The ones waiting behind it, first in, first out. */
|
|
46
|
+
readonly queued: readonly QueuedNotification[];
|
|
47
|
+
}
|
|
48
|
+
export interface PillController {
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/**
|
|
51
|
+
* Queue a notification (first in, first out). Returns its id.
|
|
52
|
+
* Calls made before the host mounts are kept and shown once it mounts.
|
|
53
|
+
*/
|
|
54
|
+
notify: (input: NotifyInput) => string;
|
|
55
|
+
update: (id: string, patch: Partial<NotifyOptions>) => void;
|
|
56
|
+
/** Dismiss one notification, or the visible one when called without an id. */
|
|
57
|
+
dismiss: (id?: string) => void;
|
|
58
|
+
/** Empty the queue and dismiss the visible notification. */
|
|
59
|
+
clear: () => void;
|
|
60
|
+
}
|
|
61
|
+
/** Control the <MagicPill> with this name (default "main") from anywhere. */
|
|
62
|
+
export declare function pill(name?: string): PillController;
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const e=require("../utils/react.js"),t=Object.freeze({current:null,queued:Object.freeze([])});let n=0;const r=()=>typeof document>`u`;function i(i){let a=[],o=t,s=0,c=/* @__PURE__ */ new Set,l=e=>{a=e,o=e.length===0?t:{current:e[0],queued:e.slice(1)},c.forEach(e=>e())},u=(e,t)=>l(a.map(n=>n.id===e?{id:e,input:t}:n));return{getState:()=>o,subscribe(e){return c.add(e),()=>c.delete(e)},notify(t){let o=t.id??`mp-${++n}`;return r()?(e.devWarn(`pill("${i}").notify() was called on the server and does nothing: call it from client code.`),o):(a.some(e=>e.id===o)?u(o,t):l([...a,{id:o,input:t}]),o)},update(e,t){let n=a.find(t=>t.id===e);n&&u(e,{...n.input,...t})},dismiss(e,t){let n=e===void 0?a[0]:a.find(t=>t.id===e);n&&(l(a.filter(e=>e!==n)),n.input.onDismiss?.(n.id,t))},clear(){let e=a;e.length!==0&&(l([]),e.forEach(e=>e.input.onDismiss?.(e.id,`cleared`)))},registerHost(){return s+=1,s>1&&e.devWarn(`Several <MagicPill name="${i}"> are mounted. Give each one its own name.`),()=>{--s}}}}const a=/* @__PURE__ */ new Map;function o(e){let t=a.get(e);return t||(t=i(e),a.set(e,t)),t}const s=/* @__PURE__ */ new Map;exports.EMPTY_STATE=t,exports.getStore=o,exports.pill=function(e=`main`){let t=s.get(e);if(!t){let n=o(e);t=Object.freeze({name:e,notify:e=>n.notify(e),update:(e,t)=>n.update(e,t),dismiss:e=>n.dismiss(e,`dismissed`),clear:()=>n.clear()}),s.set(e,t)}return t};
|
|
2
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","names":["devWarn","require_react","EMPTY_STATE","lastId","isServer","createStore","name","items","state","hosts","listeners","commit","next","listener","replace","id","input","item","patch","queued","reason","dismissed","stores","getStore","store","controllers","controller"],"sources":["../../src/store/store.ts"],"sourcesContent":["// No \"use client\" and no React: the store and pill() can be imported from any\n// module and called from anywhere on the client, including outside React.\nimport type { ReactNode } from \"react\";\n\nimport type { PillVariant } from \"../Pill/types\";\nimport type { PillNotificationProps } from \"../PillNotification/PillNotification\";\nimport { devWarn } from \"../utils/react\";\n\nexport type DismissReason = \"timeout\" | \"action\" | \"dismissed\" | \"cleared\";\n\ninterface NotifyCommon {\n /**\n * Reusing the id of a queued or visible notification updates it in place\n * (e.g. \"Saving…\" → \"Saved\") instead of queueing a new one.\n */\n id?: string;\n variant?: PillVariant;\n /**\n * Milliseconds the notification stays once fully shown. Default: the host's\n * `duration` (5000). `Infinity` keeps it until dismissed. The countdown\n * pauses on hover, focus, an open panel and a hidden browser tab, and\n * starts again from the full duration afterwards.\n */\n duration?: number;\n /**\n * What screen readers announce. Default: the text of the message (or of the\n * whole pill for a `render` notification). `false` announces nothing.\n */\n announce?: string | false;\n onDismiss?: (id: string, reason: DismissReason) => void;\n}\n\n/** The built-in notification template, as data. */\nexport interface NotifyOptions extends NotifyCommon, Omit<PillNotificationProps, \"linkComponent\" | \"classNames\"> {\n render?: undefined;\n}\n\n/** Your own template, with the queue, timing and animation of the host. */\nexport interface NotifyRenderOptions extends NotifyCommon {\n render: (notification: { id: string; dismiss: () => void }) => ReactNode;\n}\n\nexport type NotifyInput = NotifyOptions | NotifyRenderOptions;\n\nexport interface QueuedNotification {\n readonly id: string;\n readonly input: NotifyInput;\n}\n\nexport interface PillQueueState {\n /** The notification the pill shows (or is about to show). */\n readonly current: QueuedNotification | null;\n /** The ones waiting behind it, first in, first out. */\n readonly queued: readonly QueuedNotification[];\n}\n\nexport interface PillController {\n readonly name: string;\n /**\n * Queue a notification (first in, first out). Returns its id.\n * Calls made before the host mounts are kept and shown once it mounts.\n */\n notify: (input: NotifyInput) => string;\n update: (id: string, patch: Partial<NotifyOptions>) => void;\n /** Dismiss one notification, or the visible one when called without an id. */\n dismiss: (id?: string) => void;\n /** Empty the queue and dismiss the visible notification. */\n clear: () => void;\n}\n\n/** One named pill's queue. Internal: the host uses more than the controller exposes. */\nexport interface PillStore {\n getState: () => PillQueueState;\n subscribe: (listener: () => void) => () => void;\n notify: (input: NotifyInput) => string;\n update: (id: string, patch: Partial<NotifyOptions>) => void;\n dismiss: (id: string | undefined, reason: DismissReason) => void;\n clear: () => void;\n /** Counts mounted hosts, to warn about two hosts with the same name. Returns the cleanup. */\n registerHost: () => () => void;\n}\n\nexport const EMPTY_STATE: PillQueueState = Object.freeze({ current: null, queued: Object.freeze([]) });\n\nlet lastId = 0;\n\n// On the server, a module-level queue would be shared by every request\nconst isServer = () => typeof document === \"undefined\";\n\nfunction createStore(name: string): PillStore {\n let items: readonly QueuedNotification[] = [];\n let state: PillQueueState = EMPTY_STATE;\n let hosts = 0;\n const listeners = new Set<() => void>();\n\n const commit = (next: readonly QueuedNotification[]) => {\n items = next;\n state = next.length === 0 ? EMPTY_STATE : { current: next[0], queued: next.slice(1) };\n listeners.forEach((listener) => listener());\n };\n\n const replace = (id: string, input: NotifyInput) =>\n commit(items.map((item) => (item.id === id ? { id, input } : item)));\n\n return {\n getState: () => state,\n\n subscribe(listener) {\n listeners.add(listener);\n return () => listeners.delete(listener);\n },\n\n notify(input) {\n const id = input.id ?? `mp-${++lastId}`;\n if (isServer()) {\n devWarn(`pill(\"${name}\").notify() was called on the server and does nothing: call it from client code.`);\n return id;\n }\n if (items.some((item) => item.id === id)) {\n replace(id, input);\n } else {\n commit([...items, { id, input }]);\n }\n return id;\n },\n\n update(id, patch) {\n const item = items.find((queued) => queued.id === id);\n if (item) {\n replace(id, { ...item.input, ...patch } as NotifyInput);\n }\n },\n\n dismiss(id, reason) {\n const item = id === undefined ? items[0] : items.find((queued) => queued.id === id);\n if (!item) return;\n commit(items.filter((queued) => queued !== item));\n item.input.onDismiss?.(item.id, reason);\n },\n\n clear() {\n const dismissed = items;\n if (dismissed.length === 0) return;\n commit([]);\n dismissed.forEach((item) => item.input.onDismiss?.(item.id, \"cleared\"));\n },\n\n registerHost() {\n hosts += 1;\n if (hosts > 1) {\n devWarn(`Several <MagicPill name=\"${name}\"> are mounted. Give each one its own name.`);\n }\n return () => {\n hosts -= 1;\n };\n },\n };\n}\n\nconst stores = new Map<string, PillStore>();\n\n/** The store of the pill with this name, created on first use. */\nexport function getStore(name: string): PillStore {\n let store = stores.get(name);\n if (!store) {\n store = createStore(name);\n stores.set(name, store);\n }\n return store;\n}\n\nconst controllers = new Map<string, PillController>();\n\n/** Control the <MagicPill> with this name (default \"main\") from anywhere. */\nexport function pill(name = \"main\"): PillController {\n let controller = controllers.get(name);\n if (!controller) {\n const store = getStore(name);\n controller = Object.freeze({\n name,\n notify: (input: NotifyInput) => store.notify(input),\n update: (id: string, patch: Partial<NotifyOptions>) => store.update(id, patch),\n dismiss: (id?: string) => store.dismiss(id, \"dismissed\"),\n clear: () => store.clear(),\n });\n controllers.set(name, controller);\n }\n return controller;\n}\n\n/** Tests only: forget every store. */\nexport function resetStores(): void {\n stores.clear();\n controllers.clear();\n}\n"],"mappings":"A,qCAkFaE,EAA8B,OAAO,OAAO,CAAE,QAAS,KAAM,OAAQ,OAAO,OAAO,CAAC,CAAC,CAAE,CAAC,EAErG,IAAIC,EAAS,EAGb,MAAMC,MAAiB,OAAO,SAAa,IAE3C,SAASC,EAAYC,EAAyB,CAC5C,IAAIC,EAAuC,CAAC,EACxCC,EAAwBN,EACxBO,EAAQ,EACNC,kBAAY,IAAI,IAEhBC,EAAUC,GAAwC,CACtDL,EAAQK,EACRJ,EAAQI,EAAK,SAAW,EAAIV,EAAc,CAAE,QAASU,EAAK,GAAI,OAAQA,EAAK,MAAM,CAAC,CAAE,EACpFF,EAAU,QAASG,GAAaA,EAAS,CAAC,CAC5C,EAEMC,GAAWC,EAAYC,IAC3BL,EAAOJ,EAAM,IAAKU,GAAUA,EAAK,KAAOF,EAAK,CAAEA,KAAIC,OAAM,EAAIC,CAAK,CAAC,EAErE,MAAO,CACL,aAAgBT,EAEhB,UAAUK,EAAU,CAElB,OADAH,EAAU,IAAIG,CAAQ,MACTH,EAAU,OAAOG,CAAQ,CACxC,EAEA,OAAOG,EAAO,CACZ,IAAMD,EAAKC,EAAM,IAAM,MAAM,EAAEb,IAU/B,OATIC,EAAS,GACXJ,EAAAA,QAAQ,SAASM,EAAK,iFAAiF,EAChGS,IAELR,EAAM,KAAMU,GAASA,EAAK,KAAOF,CAAE,EACrCD,EAAQC,EAAIC,CAAK,EAEjBL,EAAO,CAAC,GAAGJ,EAAO,CAAEQ,KAAIC,OAAM,CAAC,CAAC,EAE3BD,EACT,EAEA,OAAOA,EAAIG,EAAO,CAChB,IAAMD,EAAOV,EAAM,KAAMY,GAAWA,EAAO,KAAOJ,CAAE,EAChDE,GACFH,EAAQC,EAAI,CAAE,GAAGE,EAAK,MAAO,GAAGC,CAAM,CAAgB,CAE1D,EAEA,QAAQH,EAAIK,EAAQ,CAClB,IAAMH,EAAOF,IAAO,IAAA,GAAYR,EAAM,GAAKA,EAAM,KAAMY,GAAWA,EAAO,KAAOJ,CAAE,EAC7EE,IACLN,EAAOJ,EAAM,OAAQY,GAAWA,IAAWF,CAAI,CAAC,EAChDA,EAAK,MAAM,YAAYA,EAAK,GAAIG,CAAM,EACxC,EAEA,OAAQ,CACN,IAAMC,EAAYd,EACdc,EAAU,SAAW,IACzBV,EAAO,CAAC,CAAC,EACTU,EAAU,QAASJ,GAASA,EAAK,MAAM,YAAYA,EAAK,GAAI,SAAS,CAAC,EACxE,EAEA,cAAe,CAKb,MAJAR,IAAS,EACLA,EAAQ,GACVT,EAAAA,QAAQ,4BAA4BM,EAAK,4CAA4C,MAE1E,CACXG,GACF,CACF,CACF,CACF,CAEA,MAAMa,kBAAS,IAAI,IAGnB,SAAgBC,EAASjB,EAAyB,CAChD,IAAIkB,EAAQF,EAAO,IAAIhB,CAAI,EAK3B,OAJKkB,IACHA,EAAQnB,EAAYC,CAAI,EACxBgB,EAAO,IAAIhB,EAAMkB,CAAK,GAEjBA,CACT,CAEA,MAAMC,kBAAc,IAAI,I,sDAGxB,SAAqBnB,EAAO,OAAwB,CAClD,IAAIoB,EAAaD,EAAY,IAAInB,CAAI,EACrC,GAAI,CAACoB,EAAY,CACf,IAAMF,EAAQD,EAASjB,CAAI,EAC3BoB,EAAa,OAAO,OAAO,CACzBpB,OACA,OAASU,GAAuBQ,EAAM,OAAOR,CAAK,EAClD,QAASD,EAAYG,IAAkCM,EAAM,OAAOT,EAAIG,CAAK,EAC7E,QAAUH,GAAgBS,EAAM,QAAQT,EAAI,WAAW,EACvD,UAAaS,EAAM,MAAM,CAC3B,CAAC,EACDC,EAAY,IAAInB,EAAMoB,CAAU,CAClC,CACA,OAAOA,CACT"}
|