@gobolt/genesis 0.1.2 → 0.1.5
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/README.md +7 -7
- package/dist/{AntdIcon-nCNB0J1E.js → AntdIcon-DP6hPDqu.js} +40 -39
- package/dist/CSSMotionList-DB0khM6h.js +22193 -0
- package/dist/{CheckCircleFilled-BKgizvyl.js → CheckCircleFilled-B-wrMduA.js} +2 -2
- package/dist/{CheckOutlined-cEBrx_Ag.js → CheckOutlined-DTEHi_xG.js} +2 -2
- package/dist/{ClockCircleOutlined-BaXQuLIn.js → ClockCircleOutlined-DGGcYjVd.js} +2 -2
- package/dist/{CloseCircleFilled-B9e7yFwo.js → CloseCircleFilled-WEQ0SaSW.js} +2 -2
- package/dist/{CloseOutlined-ogxnm7Oy.js → CloseOutlined-DzgBOns1.js} +2 -2
- package/dist/{Compact-Du9689ax.js → Compact-DFcWZrNo.js} +49 -49
- package/dist/Context-2_suFYDs.js +5 -0
- package/dist/{ContextIsolator-BmfhJgG0.js → ContextIsolator-CUJnq-4F.js} +2 -2
- package/dist/{DownOutlined-Dcq69ZKM.js → DownOutlined-Bv7ua5i8.js} +23 -22
- package/dist/EllipsisOutlined-BodkguEc.js +1118 -0
- package/dist/{ExclamationCircleFilled-BHELVsTg.js → ExclamationCircleFilled-x8Sr29BN.js} +2 -2
- package/dist/Input--qsU-6vp.js +424 -0
- package/dist/KeyCode-B3vHb2gY.js +155 -0
- package/dist/{Keyframes-C9_aCDvn.js → Keyframes-CyO2Aeq-.js} +7 -7
- package/dist/{LoadingOutlined-C1qu6ymP.js → LoadingOutlined-DOi5EGOl.js} +2 -2
- package/dist/{MinusCircleOutlined-Shz0RRQV.js → MinusCircleOutlined-BcKxYRyN.js} +2 -2
- package/dist/{Overflow-DWf4XIal.js → Overflow-CVbsx7Gn.js} +95 -95
- package/dist/{SearchOutlined-DNj-7b_h.js → SearchOutlined-DJ3uHFwq.js} +2 -2
- package/dist/{Skeleton-BVN4pcVe.js → Skeleton-CudViN0a.js} +166 -163
- package/dist/TextArea-CHo3cxKw.js +404 -0
- package/dist/{Typography-CoZ5qD-t.js → Typography-B2J8CPnt.js} +263 -247
- package/dist/_baseIsEqual-VdxFOa4v.js +1084 -0
- package/dist/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +1 -1
- package/dist/{asyncToGenerator-CKP9bEZn.js → asyncToGenerator-CVBdSr4C.js} +27 -27
- package/dist/button-CYVlK7G0.js +1430 -0
- package/dist/components/Avatar/Avatar.js +8 -7
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +0 -1
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.d.ts +1 -2
- package/dist/components/Avatar/styles.js +161 -159
- package/dist/components/Badge/Badge.js +8 -7
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +0 -1
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Badge/styles.d.ts +0 -1
- package/dist/components/Badge/styles.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +0 -1
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +0 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +3 -3
- package/dist/components/Breadcrumb/styles.d.ts +0 -1
- package/dist/components/Breadcrumb/styles.js +58 -58
- package/dist/components/Button/Button.d.ts +0 -1
- package/dist/components/Button/__stories__/Button.stories.d.ts +0 -1
- package/dist/components/Button/__tests__/Button.test.js +5 -4
- package/dist/components/Button/styles.d.ts +0 -1
- package/dist/components/Button/styles.js +2 -2
- package/dist/components/Card/__stories__/Card.stories.d.ts +0 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.d.ts +0 -1
- package/dist/components/Card/styles.js +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/__stories__/Checkbox.stories.d.ts +0 -1
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +16 -15
- package/dist/components/Checkbox/styles.d.ts +3 -4
- package/dist/components/Checkbox/styles.js +2 -2
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +222 -223
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +13 -12
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +0 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +10 -9
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +72 -74
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/Dashboard/styles.d.ts +0 -1
- package/dist/components/Dashboard/styles.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -1
- package/dist/components/DatePicker/DatePicker.js +1 -1
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +0 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +0 -1
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/components/ErrorBoundary/ErrorBoundary.js +8 -7
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +0 -1
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -20
- package/dist/components/ErrorBoundary/styles.d.ts +0 -1
- package/dist/components/ErrorBoundary/styles.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +16 -15
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +13 -13
- package/dist/components/Form/Form.d.ts +0 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/Form.stories.d.ts +0 -1
- package/dist/components/Form/__stories__/FormStory.js +11 -10
- package/dist/components/Form/__tests__/form.test.js +7 -6
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.d.ts +0 -1
- package/dist/components/Form/styles.js +10 -2
- package/dist/components/FormBrandon/Form.d.ts +25 -0
- package/dist/components/FormBrandon/Form.js +18 -0
- package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +6 -0
- package/dist/components/FormBrandon/__stories__/FormStory.d.ts +1 -0
- package/dist/components/FormBrandon/__stories__/FormStory.js +172 -0
- package/dist/components/FormBrandon/__tests__/form.test.js +19 -0
- package/dist/components/FormBrandon/index.d.ts +2 -0
- package/dist/components/FormBrandon/index.js +4 -0
- package/dist/components/FormBrandon/styles.d.ts +2 -0
- package/dist/components/FormBrandon/styles.js +13 -0
- package/dist/components/Glyph/Glyph.js +2 -2
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +0 -1
- package/dist/components/Glyph/styles.d.ts +0 -1
- package/dist/components/Glyph/styles.js +1 -1
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +9 -10
- package/dist/components/Input/__stories__/Input.stories.d.ts +0 -1
- package/dist/components/Input/__tests__/Input.test.js +21 -20
- package/dist/components/Input/styles.d.ts +5 -6
- package/dist/components/Input/styles.js +4 -119
- package/dist/components/Layout/Content/Content.d.ts +0 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +14 -13
- package/dist/components/Layout/Content/styles.d.ts +0 -1
- package/dist/components/Layout/Content/styles.js +1 -1
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +0 -1
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +0 -1
- package/dist/components/Layout/MainLayout/styles.js +1 -1
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +0 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.d.ts +0 -1
- package/dist/components/Message/Message.js +13 -12
- package/dist/components/Message/__stories__/Message.stories.d.ts +0 -1
- package/dist/components/Message/__tests__/Message.test.js +6 -5
- package/dist/components/Message/styles.js +1 -1
- package/dist/components/Notification/Notification.js +122 -55
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +2 -2
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +0 -1
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +4 -4
- package/dist/components/Notification/NotificationBadge/styles.js +1 -1
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +0 -1
- package/dist/components/Notification/__tests__/Notification.test.js +3 -3
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/Popover.js +14 -11
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +0 -1
- package/dist/components/Popover/__tests__/Popover.test.js +19 -26
- package/dist/components/Popover/styles.d.ts +0 -1
- package/dist/components/Popover/styles.js +2 -2
- package/dist/components/Progress/Progress.js +29 -27
- package/dist/components/Progress/Progress.util.d.ts +0 -1
- package/dist/components/Progress/Progress.util.js +8 -7
- package/dist/components/Progress/ProgressText.d.ts +0 -1
- package/dist/components/Progress/ProgressText.js +8 -7
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +0 -1
- package/dist/components/Progress/__tests__/Progress.test.js +4 -4
- package/dist/components/Progress/styles.d.ts +0 -1
- package/dist/components/Progress/styles.js +217 -214
- package/dist/components/Radio/Radio.d.ts +0 -1
- package/dist/components/Radio/Radio.js +9 -8
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +0 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +8 -7
- package/dist/components/Row/Row.d.ts +0 -1
- package/dist/components/Row/Row.js +29 -26
- package/dist/components/Row/RowActions/RowActions.js +8 -7
- package/dist/components/Row/RowActions/styles.js +1 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +0 -1
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +7 -6
- package/dist/components/Row/RowLabelValue/styles.js +2 -2
- package/dist/components/Row/__stories__/Row.stories.d.ts +0 -1
- package/dist/components/Row/__tests__/Row.test.js +3 -3
- package/dist/components/Row/styles.d.ts +0 -1
- package/dist/components/Row/styles.js +1 -1
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +0 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.d.ts +1 -2
- package/dist/components/SegmentedControls/styles.js +214 -203
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +10 -11
- package/dist/components/Select/__stories__/Select.stories.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.test.js +49 -10754
- package/dist/components/Select/styles.d.ts +0 -1
- package/dist/components/Select/styles.js +2 -2
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +0 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +0 -1
- package/dist/components/Switch/__tests__/Switch.test.js +3 -3
- package/dist/components/Switch/styles.d.ts +0 -1
- package/dist/components/Switch/styles.js +74 -74
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.d.ts +0 -1
- package/dist/components/Table/__mocks__/table-mocks.js +10 -9
- package/dist/components/Table/__stories__/Table.stories.d.ts +0 -1
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.d.ts +0 -1
- package/dist/components/Table/styles.js +2 -2
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +0 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +3 -3
- package/dist/components/Tabs/styles.d.ts +0 -1
- package/dist/components/Tabs/styles.js +2 -2
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +0 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Tile/styles.d.ts +0 -1
- package/dist/components/Tile/styles.js +1 -1
- package/dist/components/Toast/Toast.d.ts +0 -1
- package/dist/components/Toast/Toast.js +9 -8
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +0 -1
- package/dist/components/Toast/__tests__/Toast.test.js +6 -5
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +8 -7
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.d.ts +0 -1
- package/dist/components/Tooltip/styles.js +2 -2
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +0 -1
- package/dist/components/Typography/__tests__/Typography.test.js +14 -13
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +0 -1
- package/dist/components/Typography/styles.js +2 -2
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +46 -48
- package/dist/{context-DIFtNa4d.js → context-CQfFkrkv.js} +285 -278
- package/dist/{dropdown-Dp_PTQ2u.js → dropdown-BlRB2LxQ.js} +492 -491
- package/dist/{generateCategoricalChart-7ceYaiZ2.js → generateCategoricalChart-CqByWmje.js} +7189 -6383
- package/dist/genesis/GenesisThemeBreakdown.d.ts +0 -1
- package/dist/genesis/GenesisThemeBreakdown.js +9 -8
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -1
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +0 -1
- package/dist/genesis/{labs/Lab.stories.d.ts → Lab.stories.d.ts} +0 -1
- package/dist/genesis/styles.d.ts +0 -1
- package/dist/genesis/styles.js +3 -3
- package/dist/{iconBase-LROS5hdG.js → iconBase-DSKTHwal.js} +9 -9
- package/dist/index-B7FXyiY_.js +104 -0
- package/dist/{index-B_1Ge8na.js → index-BHCqeC4j.js} +190 -183
- package/dist/index-BZ050Dyl.js +292 -0
- package/dist/{index-BpZSuIUV.js → index-Br3D3cFM.js} +23 -23
- package/dist/{index-DOsPeIWJ.js → index-Bxbr727t.js} +260 -265
- package/dist/index-C2K1BzmJ.js +3400 -0
- package/dist/{styles-D1vKDy9V.js → index-CupwdUIJ.js} +596 -603
- package/dist/{index-BQM5OniU.js → index-CzMIlMTV.js} +111 -111
- package/dist/index-DCopujxC.js +772 -0
- package/dist/index-DRGbc-fW.js +780 -0
- package/dist/index-DavB5GQ3.js +5221 -0
- package/dist/index-RAH9f-qb.js +540 -0
- package/dist/{index-BPVue1Yd.js → index-RtWhGOwR.js} +152 -150
- package/dist/index-Y0KgiFZb.js +909 -0
- package/dist/{index-DRGX1Wem.js → index-sX7KZ-nU.js} +414 -402
- package/dist/index.js +53 -55
- package/dist/interface/appointment.d.ts +0 -1
- package/dist/interface/appointmentV2.d.ts +0 -1
- package/dist/interface/appointmentsState.d.ts +0 -1
- package/dist/interface/deliveryPartner.d.ts +0 -1
- package/dist/interface/route.d.ts +0 -1
- package/dist/interface/routeAnalysis.d.ts +0 -1
- package/dist/interface/routeAutomationJob.d.ts +0 -1
- package/dist/interface/routeAutomationLog.d.ts +0 -1
- package/dist/interface/serviceArea.d.ts +0 -1
- package/dist/interface/vehicle.d.ts +0 -1
- package/dist/{magic-string.es-BKBb7z-1.js → magic-string.es-D4UQQyt0.js} +265 -264
- package/dist/{motion-CUN72xsH.js → motion-C-XpKcZG.js} +6 -5
- package/dist/{pickAttrs-CleuMJFR.js → pickAttrs-yFE4_vFd.js} +1 -1
- package/dist/{presets-Djh_L_6R.js → presets-CSXMiWyc.js} +176 -176
- package/dist/providers/BreakpointThemeProvider.d.ts +0 -1
- package/dist/providers/BreakpointThemeProvider.js +5 -5
- package/dist/providers/GenesisProvider.d.ts +0 -1
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.d.ts +0 -1
- package/dist/providers/ToastProvider.js +10 -9
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +0 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.d.ts +0 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/{roundedArrow-DI_Q-xdU.js → roundedArrow-BxPlu4Hq.js} +2 -2
- package/dist/setup-aZdxWCJq.js +13976 -0
- package/dist/setup.types-CgFq66QX.js +9261 -0
- package/dist/shadow-9lsz-71t.js +13 -0
- package/dist/statusUtils-Kj9kMuVg.js +15 -0
- package/dist/{styleChecker-Cotu61d0.js → styleChecker-CSH9LQtm.js} +3 -3
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-C47QHsU4.js} +371 -304
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +11 -10
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +0 -1
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +9 -8
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/design-tokens/typography-tokens/TypographyTokens.stories.d.ts +0 -1
- package/dist/styles/global-styles.d.ts +0 -1
- package/dist/styles/global-styles.js +1 -1
- package/dist/styles/theme/genesis-theme.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +285 -337
- package/dist/styles/theme/genesis-theme.test.d.ts +1 -0
- package/dist/styles/theme/genesis-theme.test.js +69 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +488 -488
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +0 -1
- package/dist/styles-DNay6iFa.js +292 -0
- package/dist/styles-Wpm1RiGr.js +9212 -0
- package/dist/styles-XuoEGUZZ.js +549 -0
- package/dist/test/setup.d.ts +0 -1
- package/dist/test/setup.js +35 -35
- package/dist/test/setup.types.d.ts +0 -1
- package/dist/test/setup.types.js +1 -1
- package/dist/{toArray-U3Az44CO.js → toArray-D5kvYi_U.js} +1 -1
- package/dist/useBreakpoint-ByLol0R9.js +88 -0
- package/dist/useCSSVarCls-YfJY1twF.js +10 -0
- package/dist/{useIcons-Ck4JP1m9.js → useIcons-CoxuumP_.js} +16 -16
- package/dist/{useId-D2tzlufo.js → useId-DLf1xVuv.js} +3 -3
- package/dist/useLocale-BQ3mKRyJ.js +16 -0
- package/dist/{useMergedState-D6toxSxh.js → useMergedState-D1-TbeEv.js} +2 -2
- package/dist/useSize-Ct1guc-z.js +9 -0
- package/dist/useVariants-C6UAAu9f.js +19 -0
- package/dist/{useZIndex-DhyHuZTN.js → useZIndex-tgX56o1r.js} +7 -6
- package/dist/utils/icon-util.js +48 -44
- package/dist/vi.B5EKKJdE-BsDIxc7v.js +14087 -0
- package/package.json +45 -24
- package/dist/EllipsisOutlined-DGMph0Bj.js +0 -1115
- package/dist/KeyCode-DM2sFh3-.js +0 -517
- package/dist/TextArea-Bkf9hh7l.js +0 -708
- package/dist/_baseIsEqual-L0-w1QRI.js +0 -598
- package/dist/button-BwqpCxVM.js +0 -1406
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/index-BRUI9igj.js +0 -11
- package/dist/index-BbTV2Cw5.js +0 -22638
- package/dist/index-BeGv28kJ.js +0 -5173
- package/dist/index-BvOLXELm.js +0 -102
- package/dist/index-CLSrpQRW.js +0 -416
- package/dist/index-CbVOl2U6.js +0 -288
- package/dist/index-D0U6r5O7.js +0 -780
- package/dist/index-DEu2PVzQ.js +0 -538
- package/dist/index-DLdU7Tpd.js +0 -183
- package/dist/index-DNQ-jnBx.js +0 -3321
- package/dist/index-DWjq9XYj.js +0 -899
- package/dist/responsiveObserver-dCkpy7Cb.js +0 -73
- package/dist/setup-DwHFLWUb.js +0 -24713
- package/dist/setup.types-dBtAXXGp.js +0 -8824
- package/dist/shadow-BoMGMNn3.js +0 -13
- package/dist/styles-CWdUpZom.js +0 -289
- package/dist/styles-qerRs7Rn.js +0 -9196
- package/dist/useBreakpoint-TkMv121M.js +0 -22
- package/dist/useCSSVarCls-Dau77fzS.js +0 -11
- package/dist/useLocale-CTfNpakL.js +0 -16
- package/dist/useSize-DSq4r6zy.js +0 -9
- package/dist/useVariants-DrLzUVLU.js +0 -30
- package/dist/utils/getAppointmentColor.d.ts +0 -4
- package/dist/utils/getAppointmentColor.js +0 -91
- package/dist/utils/isAllEnglishString.d.ts +0 -1
- package/dist/utils/isAllEnglishString.js +0 -8
- package/dist/utils/isAllEnglishString.test.js +0 -8
- package/dist/utils/parseAddress.d.ts +0 -3
- package/dist/utils/parseAddress.js +0 -19
- /package/dist/{utils/isAllEnglishString.test.d.ts → components/FormBrandon/__tests__/form.test.d.ts} +0 -0
|
@@ -1,77 +1,90 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Headline as
|
|
3
|
-
import { useBreakpoint as
|
|
1
|
+
import { jsxs as K, jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { Headline as It, Text as Et, Paragraph as Ct } from "./components/Typography/styles.js";
|
|
3
|
+
import { useBreakpoint as Lt } from "./providers/BreakpointThemeProvider.js";
|
|
4
4
|
import * as ut from "react";
|
|
5
|
-
import b, { useState as B, useRef as M,
|
|
6
|
-
import { c as S } from "./clsx-OuTLNxxd.js";
|
|
5
|
+
import b, { useState as B, useRef as M, useLayoutEffect as pt, useEffect as X, useSyncExternalStore as Rt, isValidElement as q, cloneElement as st } from "react";
|
|
7
6
|
import "./components/Avatar/styles.js";
|
|
8
7
|
import "./components/Badge/styles.js";
|
|
9
|
-
import { n as mt, d as
|
|
8
|
+
import { n as mt, d as Ot } from "./styled-components.browser.esm-C47QHsU4.js";
|
|
10
9
|
import "./components/Breadcrumb/styles.js";
|
|
11
10
|
import "./components/Button/styles.js";
|
|
12
11
|
import "./components/Card/styles.js";
|
|
13
12
|
import "./components/Checkbox/styles.js";
|
|
13
|
+
import "./components/DateRangePicker/DateRangePicker.js";
|
|
14
14
|
import "./components/ErrorBoundaryFallback/styles.js";
|
|
15
|
-
import {
|
|
16
|
-
import "./
|
|
15
|
+
import { Form as J } from "./components/Form/styles.js";
|
|
16
|
+
import "./styles-XuoEGUZZ.js";
|
|
17
17
|
import "./components/Layout/Content/styles.js";
|
|
18
18
|
import "./components/Message/styles.js";
|
|
19
19
|
import "./components/Notification/NotificationBadge/styles.js";
|
|
20
20
|
import "./components/Notification/styles.js";
|
|
21
|
-
import "./styles-
|
|
21
|
+
import "./styles-DNay6iFa.js";
|
|
22
22
|
import "./components/Progress/styles.js";
|
|
23
|
-
import "./
|
|
24
|
-
import { TYPOGRAPHY_VARIANT as F, SIZE as ct, STATE as R, TYPE as Ot } from "./constants/index.js";
|
|
23
|
+
import { TYPOGRAPHY_VARIANT as F, SIZE as ct, STATE as R, TYPE as $t } from "./constants/index.js";
|
|
25
24
|
import "./components/Row/styles.js";
|
|
25
|
+
import "./styles/global-styles.js";
|
|
26
26
|
import "./components/Row/RowLabelValue/styles.js";
|
|
27
27
|
import "./components/Row/RowActions/styles.js";
|
|
28
28
|
import "./components/SegmentedControls/styles.js";
|
|
29
29
|
import "./components/Select/styles.js";
|
|
30
30
|
import "./components/Switch/styles.js";
|
|
31
|
-
import "./styles-
|
|
31
|
+
import "./styles-Wpm1RiGr.js";
|
|
32
32
|
import "./components/Tabs/styles.js";
|
|
33
33
|
import "./components/Tile/styles.js";
|
|
34
|
-
import { ToastRow as
|
|
34
|
+
import { ToastRow as zt, ToastContent as Pt, ToastCloseButton as Nt } from "./components/Toast/styles.js";
|
|
35
35
|
import "./components/Tooltip/styles.js";
|
|
36
|
-
import
|
|
36
|
+
import At from "./components/Radio/states/RadioChecked.js";
|
|
37
37
|
import St from "./components/Radio/states/RadioCheckedHover.js";
|
|
38
38
|
import ft from "./components/Radio/states/RadioCheckedFocussed.js";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import { R as
|
|
46
|
-
import { R as
|
|
47
|
-
import {
|
|
48
|
-
import { I as
|
|
49
|
-
var
|
|
50
|
-
return /* @__PURE__ */ ut.createElement(
|
|
39
|
+
import Bt from "./components/Radio/states/RadioCheckedDisabled.js";
|
|
40
|
+
import Mt from "./components/Radio/states/RadioUnchecked.js";
|
|
41
|
+
import Dt from "./components/Radio/states/RadioUncheckedHover.js";
|
|
42
|
+
import Ft from "./components/Radio/states/RadioUncheckedFocussed.js";
|
|
43
|
+
import Ht from "./components/Radio/states/RadioUncheckedDisabled.js";
|
|
44
|
+
import Xt from "./components/Button/Button.js";
|
|
45
|
+
import { R as Ut } from "./CloseOutlined-DzgBOns1.js";
|
|
46
|
+
import { R as Wt, a as Yt, b as jt, c as Kt } from "./MinusCircleOutlined-BcKxYRyN.js";
|
|
47
|
+
import { e as qt } from "./presets-CSXMiWyc.js";
|
|
48
|
+
import { I as Qt } from "./AntdIcon-DP6hPDqu.js";
|
|
49
|
+
var Vt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, name: "check-circle", theme: "outlined" }, Gt = function(e, o) {
|
|
50
|
+
return /* @__PURE__ */ ut.createElement(Qt, qt({}, e, {
|
|
51
51
|
ref: o,
|
|
52
|
-
icon:
|
|
52
|
+
icon: Vt
|
|
53
53
|
}));
|
|
54
|
-
}, yt = /* @__PURE__ */ ut.forwardRef(
|
|
54
|
+
}, yt = /* @__PURE__ */ ut.forwardRef(Gt);
|
|
55
55
|
process.env.NODE_ENV !== "production" && (yt.displayName = "CheckCircleOutlined");
|
|
56
|
-
function
|
|
56
|
+
function _t(t) {
|
|
57
|
+
var e, o, a = "";
|
|
58
|
+
if (typeof t == "string" || typeof t == "number") a += t;
|
|
59
|
+
else if (typeof t == "object") if (Array.isArray(t)) {
|
|
60
|
+
var r = t.length;
|
|
61
|
+
for (e = 0; e < r; e++) t[e] && (o = _t(t[e])) && (a && (a += " "), a += o);
|
|
62
|
+
} else for (o in t) t[o] && (a && (a += " "), a += o);
|
|
63
|
+
return a;
|
|
64
|
+
}
|
|
65
|
+
function A() {
|
|
66
|
+
for (var t, e, o = 0, a = "", r = arguments.length; o < r; o++) (t = arguments[o]) && (e = _t(t)) && (a && (a += " "), a += e);
|
|
67
|
+
return a;
|
|
68
|
+
}
|
|
69
|
+
function Zt(t) {
|
|
57
70
|
if (typeof document > "u") return;
|
|
58
71
|
let e = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
|
|
59
72
|
o.type = "text/css", e.firstChild ? e.insertBefore(o, e.firstChild) : e.appendChild(o), o.styleSheet ? o.styleSheet.cssText = t : o.appendChild(document.createTextNode(t));
|
|
60
73
|
}
|
|
61
|
-
Gt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
74
|
+
Zt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
62
75
|
`);
|
|
63
|
-
var U = (t) => typeof t == "number" && !isNaN(t),
|
|
64
|
-
function
|
|
65
|
-
let { scrollHeight:
|
|
76
|
+
var U = (t) => typeof t == "number" && !isNaN(t), S = (t) => typeof t == "string", z = (t) => typeof t == "function", Jt = (t) => S(t) || U(t), tt = (t) => S(t) || z(t) ? t : null, te = (t, e) => t === !1 || U(t) && t > 0 ? t : e, et = (t) => q(t) || S(t) || z(t) || U(t);
|
|
77
|
+
function ee(t, e, o = 300) {
|
|
78
|
+
let { scrollHeight: a, style: r } = t;
|
|
66
79
|
requestAnimationFrame(() => {
|
|
67
|
-
|
|
68
|
-
|
|
80
|
+
r.minHeight = "initial", r.height = a + "px", r.transition = `all ${o}ms`, requestAnimationFrame(() => {
|
|
81
|
+
r.height = "0", r.padding = "0", r.margin = "0", setTimeout(e, o);
|
|
69
82
|
});
|
|
70
83
|
});
|
|
71
84
|
}
|
|
72
|
-
function
|
|
73
|
-
return function({ children: n, position:
|
|
74
|
-
let k = o ? `${t}--${
|
|
85
|
+
function oe({ enter: t, exit: e, appendPosition: o = !1, collapse: a = !0, collapseDuration: r = 300 }) {
|
|
86
|
+
return function({ children: n, position: s, preventExitTransition: f, done: c, nodeRef: d, isIn: u, playToast: x }) {
|
|
87
|
+
let k = o ? `${t}--${s}` : t, I = o ? `${e}--${s}` : e, E = M(0);
|
|
75
88
|
return pt(() => {
|
|
76
89
|
let m = d.current, g = k.split(" "), _ = (i) => {
|
|
77
90
|
i.target === d.current && (x(), m.removeEventListener("animationend", _), m.removeEventListener("animationcancel", _), E.current === 0 && i.type !== "animationcancel" && m.classList.remove(...g));
|
|
@@ -79,35 +92,35 @@ function ee({ enter: t, exit: e, appendPosition: o = !1, collapse: s = !0, colla
|
|
|
79
92
|
m.classList.add(...g), m.addEventListener("animationend", _), m.addEventListener("animationcancel", _);
|
|
80
93
|
}, []), X(() => {
|
|
81
94
|
let m = d.current, g = () => {
|
|
82
|
-
m.removeEventListener("animationend", g),
|
|
95
|
+
m.removeEventListener("animationend", g), a ? ee(m, c, r) : c();
|
|
83
96
|
};
|
|
84
97
|
u || (f ? g() : (E.current = 1, m.className += ` ${I}`, m.addEventListener("animationend", g)));
|
|
85
98
|
}, [u]), b.createElement(b.Fragment, null, n);
|
|
86
99
|
};
|
|
87
100
|
}
|
|
88
101
|
function dt(t, e) {
|
|
89
|
-
return { content:
|
|
102
|
+
return { content: gt(t.content, t.props), containerId: t.props.containerId, id: t.props.toastId, theme: t.props.theme, type: t.props.type, data: t.props.data || {}, isLoading: t.props.isLoading, icon: t.props.icon, reason: t.removalReason, status: e };
|
|
90
103
|
}
|
|
91
|
-
function
|
|
92
|
-
return q(t) && !
|
|
104
|
+
function gt(t, e, o = !1) {
|
|
105
|
+
return q(t) && !S(t.type) ? st(t, { closeToast: e.closeToast, toastProps: e, data: e.data, isPaused: o }) : z(t) ? t({ closeToast: e.closeToast, toastProps: e, data: e.data, isPaused: o }) : t;
|
|
93
106
|
}
|
|
94
|
-
function
|
|
95
|
-
return b.createElement("button", { className: `Toastify__close-button Toastify__close-button--${e}`, type: "button", onClick: (
|
|
96
|
-
|
|
107
|
+
function ae({ closeToast: t, theme: e, ariaLabel: o = "close" }) {
|
|
108
|
+
return b.createElement("button", { className: `Toastify__close-button Toastify__close-button--${e}`, type: "button", onClick: (a) => {
|
|
109
|
+
a.stopPropagation(), t(!0);
|
|
97
110
|
}, "aria-label": o }, b.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, b.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
98
111
|
}
|
|
99
|
-
function
|
|
100
|
-
let x =
|
|
101
|
-
|
|
102
|
-
let I =
|
|
112
|
+
function re({ delay: t, isRunning: e, closeToast: o, type: a = "default", hide: r, className: n, controlledProgress: s, progress: f, rtl: c, isIn: d, theme: u }) {
|
|
113
|
+
let x = r || s && f === 0, k = { animationDuration: `${t}ms`, animationPlayState: e ? "running" : "paused" };
|
|
114
|
+
s && (k.transform = `scaleX(${f})`);
|
|
115
|
+
let I = A("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${u}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": c }), E = z(n) ? n({ rtl: c, type: a, defaultClassName: I }) : A(I, n), m = { [s && f >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && f < 1 ? null : () => {
|
|
103
116
|
d && o();
|
|
104
117
|
} };
|
|
105
|
-
return b.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": x }, b.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${u} Toastify__progress-bar--${
|
|
118
|
+
return b.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": x }, b.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${u} Toastify__progress-bar--${a}` }), b.createElement("div", { role: "progressbar", "aria-hidden": x ? "true" : "false", "aria-label": "notification timer", className: E, style: k, ...m }));
|
|
106
119
|
}
|
|
107
|
-
var
|
|
108
|
-
function
|
|
109
|
-
let
|
|
110
|
-
|
|
120
|
+
var se = 1, vt = () => `${se++}`;
|
|
121
|
+
function ne(t, e, o) {
|
|
122
|
+
let a = 1, r = 0, n = [], s = [], f = e, c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), u = (i) => (d.add(i), () => d.delete(i)), x = () => {
|
|
123
|
+
s = Array.from(c.values()), d.forEach((i) => i());
|
|
111
124
|
}, k = ({ containerId: i, toastId: l, updateId: p }) => {
|
|
112
125
|
let w = i ? i !== t : t !== 1, L = c.has(l) && p == null;
|
|
113
126
|
return w || L;
|
|
@@ -127,7 +140,7 @@ function se(t, e, o) {
|
|
|
127
140
|
}
|
|
128
141
|
x();
|
|
129
142
|
}, g = () => {
|
|
130
|
-
|
|
143
|
+
r -= n.length, n = [];
|
|
131
144
|
}, _ = (i) => {
|
|
132
145
|
var l, p;
|
|
133
146
|
let { toastId: w, updateId: L } = i.props, y = L == null;
|
|
@@ -136,13 +149,13 @@ function se(t, e, o) {
|
|
|
136
149
|
return { id: t, props: f, observe: u, toggle: I, removeToast: m, toasts: c, clearQueue: g, buildToast: (i, l) => {
|
|
137
150
|
if (k(l)) return;
|
|
138
151
|
let { toastId: p, updateId: w, data: L, staleId: y, delay: T } = l, O = w == null;
|
|
139
|
-
O &&
|
|
140
|
-
let P = { ...f, style: f.toastStyle, key:
|
|
152
|
+
O && r++;
|
|
153
|
+
let P = { ...f, style: f.toastStyle, key: a++, ...Object.fromEntries(Object.entries(l).filter(([N, Y]) => Y != null)), toastId: p, updateId: w, data: L, isIn: !1, className: tt(l.className || f.toastClassName), progressClassName: tt(l.progressClassName || f.progressClassName), autoClose: l.isLoading ? !1 : te(l.autoClose, f.autoClose), closeToast(N) {
|
|
141
154
|
c.get(p).removalReason = N, m(p);
|
|
142
155
|
}, deleteToast() {
|
|
143
156
|
let N = c.get(p);
|
|
144
157
|
if (N != null) {
|
|
145
|
-
if (o(dt(N, "removed")), c.delete(p),
|
|
158
|
+
if (o(dt(N, "removed")), c.delete(p), r--, r < 0 && (r = 0), n.length > 0) {
|
|
146
159
|
_(n.shift());
|
|
147
160
|
return;
|
|
148
161
|
}
|
|
@@ -151,7 +164,7 @@ function se(t, e, o) {
|
|
|
151
164
|
} };
|
|
152
165
|
P.closeButton = f.closeButton, l.closeButton === !1 || et(l.closeButton) ? P.closeButton = l.closeButton : l.closeButton === !0 && (P.closeButton = et(f.closeButton) ? f.closeButton : !0);
|
|
153
166
|
let $ = { content: i, props: P, staleId: y };
|
|
154
|
-
f.limit && f.limit > 0 &&
|
|
167
|
+
f.limit && f.limit > 0 && r > f.limit && O ? n.push($) : U(T) ? setTimeout(() => {
|
|
155
168
|
_($);
|
|
156
169
|
}, T) : _($);
|
|
157
170
|
}, setProps(i) {
|
|
@@ -162,30 +175,30 @@ function se(t, e, o) {
|
|
|
162
175
|
}, isToastActive: (i) => {
|
|
163
176
|
var l;
|
|
164
177
|
return (l = c.get(i)) == null ? void 0 : l.isActive;
|
|
165
|
-
}, getSnapshot: () =>
|
|
178
|
+
}, getSnapshot: () => s };
|
|
166
179
|
}
|
|
167
|
-
var C = /* @__PURE__ */ new Map(), H = [], ot = /* @__PURE__ */ new Set(),
|
|
168
|
-
function
|
|
169
|
-
H.forEach((t) =>
|
|
180
|
+
var C = /* @__PURE__ */ new Map(), H = [], ot = /* @__PURE__ */ new Set(), ie = (t) => ot.forEach((e) => e(t)), ht = () => C.size > 0;
|
|
181
|
+
function le() {
|
|
182
|
+
H.forEach((t) => Tt(t.content, t.options)), H = [];
|
|
170
183
|
}
|
|
171
|
-
var
|
|
184
|
+
var ce = (t, { containerId: e }) => {
|
|
172
185
|
var o;
|
|
173
186
|
return (o = C.get(e || 1)) == null ? void 0 : o.toasts.get(t);
|
|
174
187
|
};
|
|
175
|
-
function
|
|
188
|
+
function bt(t, e) {
|
|
176
189
|
var o;
|
|
177
190
|
if (e) return !!((o = C.get(e)) != null && o.isToastActive(t));
|
|
178
|
-
let
|
|
179
|
-
return C.forEach((
|
|
180
|
-
|
|
181
|
-
}),
|
|
191
|
+
let a = !1;
|
|
192
|
+
return C.forEach((r) => {
|
|
193
|
+
r.isToastActive(t) && (a = !0);
|
|
194
|
+
}), a;
|
|
182
195
|
}
|
|
183
|
-
function
|
|
196
|
+
function fe(t) {
|
|
184
197
|
if (!ht()) {
|
|
185
198
|
H = H.filter((e) => t != null && e.options.toastId !== t);
|
|
186
199
|
return;
|
|
187
200
|
}
|
|
188
|
-
if (t == null ||
|
|
201
|
+
if (t == null || Jt(t)) C.forEach((e) => {
|
|
189
202
|
e.removeToast(t);
|
|
190
203
|
});
|
|
191
204
|
else if (t && ("containerId" in t || "id" in t)) {
|
|
@@ -195,110 +208,110 @@ function ce(t) {
|
|
|
195
208
|
});
|
|
196
209
|
}
|
|
197
210
|
}
|
|
198
|
-
var
|
|
211
|
+
var de = (t = {}) => {
|
|
199
212
|
C.forEach((e) => {
|
|
200
213
|
e.props.limit && (!t.containerId || e.id === t.containerId) && e.clearQueue();
|
|
201
214
|
});
|
|
202
215
|
};
|
|
203
|
-
function
|
|
216
|
+
function Tt(t, e) {
|
|
204
217
|
et(t) && (ht() || H.push({ content: t, options: e }), C.forEach((o) => {
|
|
205
218
|
o.buildToast(t, e);
|
|
206
219
|
}));
|
|
207
220
|
}
|
|
208
|
-
function
|
|
221
|
+
function ue(t) {
|
|
209
222
|
var e;
|
|
210
223
|
(e = C.get(t.containerId || 1)) == null || e.setToggle(t.id, t.fn);
|
|
211
224
|
}
|
|
212
|
-
function
|
|
225
|
+
function xt(t, e) {
|
|
213
226
|
C.forEach((o) => {
|
|
214
227
|
(e == null || !(e != null && e.containerId) || (e == null ? void 0 : e.containerId) === o.id) && o.toggle(t, e == null ? void 0 : e.id);
|
|
215
228
|
});
|
|
216
229
|
}
|
|
217
|
-
function
|
|
230
|
+
function pe(t) {
|
|
218
231
|
let e = t.containerId || 1;
|
|
219
232
|
return { subscribe(o) {
|
|
220
|
-
let
|
|
221
|
-
C.set(e,
|
|
222
|
-
let
|
|
223
|
-
return
|
|
224
|
-
|
|
233
|
+
let a = ne(e, t, ie);
|
|
234
|
+
C.set(e, a);
|
|
235
|
+
let r = a.observe(o);
|
|
236
|
+
return le(), () => {
|
|
237
|
+
r(), C.delete(e);
|
|
225
238
|
};
|
|
226
239
|
}, setProps(o) {
|
|
227
|
-
var
|
|
228
|
-
(
|
|
240
|
+
var a;
|
|
241
|
+
(a = C.get(e)) == null || a.setProps(o);
|
|
229
242
|
}, getSnapshot() {
|
|
230
243
|
var o;
|
|
231
244
|
return (o = C.get(e)) == null ? void 0 : o.getSnapshot();
|
|
232
245
|
} };
|
|
233
246
|
}
|
|
234
|
-
function
|
|
247
|
+
function me(t) {
|
|
235
248
|
return ot.add(t), () => {
|
|
236
249
|
ot.delete(t);
|
|
237
250
|
};
|
|
238
251
|
}
|
|
239
|
-
function
|
|
240
|
-
return t && (
|
|
252
|
+
function ye(t) {
|
|
253
|
+
return t && (S(t.toastId) || U(t.toastId)) ? t.toastId : vt();
|
|
241
254
|
}
|
|
242
255
|
function W(t, e) {
|
|
243
|
-
return
|
|
256
|
+
return Tt(t, e), e.toastId;
|
|
244
257
|
}
|
|
245
258
|
function Q(t, e) {
|
|
246
|
-
return { ...e, type: e && e.type || t, toastId:
|
|
259
|
+
return { ...e, type: e && e.type || t, toastId: ye(e) };
|
|
247
260
|
}
|
|
248
261
|
function V(t) {
|
|
249
262
|
return (e, o) => W(e, Q(t, o));
|
|
250
263
|
}
|
|
251
|
-
function
|
|
264
|
+
function h(t, e) {
|
|
252
265
|
return W(t, Q("default", e));
|
|
253
266
|
}
|
|
254
|
-
|
|
255
|
-
function
|
|
267
|
+
h.loading = (t, e) => W(t, Q("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...e }));
|
|
268
|
+
function _e(t, { pending: e, error: o, success: a }, r) {
|
|
256
269
|
let n;
|
|
257
|
-
e && (n =
|
|
258
|
-
let
|
|
270
|
+
e && (n = S(e) ? h.loading(e, r) : h.loading(e.render, { ...r, ...e }));
|
|
271
|
+
let s = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, f = (d, u, x) => {
|
|
259
272
|
if (u == null) {
|
|
260
|
-
|
|
273
|
+
h.dismiss(n);
|
|
261
274
|
return;
|
|
262
275
|
}
|
|
263
|
-
let k = { type: d, ...
|
|
264
|
-
return n ?
|
|
276
|
+
let k = { type: d, ...s, ...r, data: x }, I = S(u) ? { render: u } : u;
|
|
277
|
+
return n ? h.update(n, { ...k, ...I }) : h(I.render, { ...k, ...I }), x;
|
|
265
278
|
}, c = z(t) ? t() : t;
|
|
266
|
-
return c.then((d) => f("success",
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
function
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
let o =
|
|
279
|
+
return c.then((d) => f("success", a, d)).catch((d) => f("error", o, d)), c;
|
|
280
|
+
}
|
|
281
|
+
h.promise = _e;
|
|
282
|
+
h.success = V("success");
|
|
283
|
+
h.info = V("info");
|
|
284
|
+
h.error = V("error");
|
|
285
|
+
h.warning = V("warning");
|
|
286
|
+
h.warn = h.warning;
|
|
287
|
+
h.dark = (t, e) => W(t, Q("default", { theme: "dark", ...e }));
|
|
288
|
+
function ge(t) {
|
|
289
|
+
fe(t);
|
|
290
|
+
}
|
|
291
|
+
h.dismiss = ge;
|
|
292
|
+
h.clearWaitingQueue = de;
|
|
293
|
+
h.isActive = bt;
|
|
294
|
+
h.update = (t, e = {}) => {
|
|
295
|
+
let o = ce(t, e);
|
|
283
296
|
if (o) {
|
|
284
|
-
let { props:
|
|
297
|
+
let { props: a, content: r } = o, n = { delay: 100, ...a, ...e, toastId: e.toastId || t, updateId: vt() };
|
|
285
298
|
n.toastId !== t && (n.staleId = t);
|
|
286
|
-
let
|
|
287
|
-
delete n.render, W(
|
|
299
|
+
let s = n.render || r;
|
|
300
|
+
delete n.render, W(s, n);
|
|
288
301
|
}
|
|
289
302
|
};
|
|
290
|
-
|
|
291
|
-
|
|
303
|
+
h.done = (t) => {
|
|
304
|
+
h.update(t, { progress: 1 });
|
|
292
305
|
};
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
function
|
|
306
|
+
h.onChange = me;
|
|
307
|
+
h.play = (t) => xt(!0, t);
|
|
308
|
+
h.pause = (t) => xt(!1, t);
|
|
309
|
+
function ve(t) {
|
|
297
310
|
var e;
|
|
298
|
-
let { subscribe: o, getSnapshot:
|
|
299
|
-
|
|
300
|
-
let n = (e =
|
|
301
|
-
function
|
|
311
|
+
let { subscribe: o, getSnapshot: a, setProps: r } = M(pe(t)).current;
|
|
312
|
+
r(t);
|
|
313
|
+
let n = (e = Rt(o, a, a)) == null ? void 0 : e.slice();
|
|
314
|
+
function s(f) {
|
|
302
315
|
if (!n) return [];
|
|
303
316
|
let c = /* @__PURE__ */ new Map();
|
|
304
317
|
return t.newestOnTop && n.reverse(), n.forEach((d) => {
|
|
@@ -306,11 +319,11 @@ function ge(t) {
|
|
|
306
319
|
c.has(u) || c.set(u, []), c.get(u).push(d);
|
|
307
320
|
}), Array.from(c, (d) => f(d[0], d[1]));
|
|
308
321
|
}
|
|
309
|
-
return { getToastToRender:
|
|
322
|
+
return { getToastToRender: s, isToastActive: bt, count: n == null ? void 0 : n.length };
|
|
310
323
|
}
|
|
311
324
|
function he(t) {
|
|
312
|
-
let [e, o] = B(!1), [
|
|
313
|
-
|
|
325
|
+
let [e, o] = B(!1), [a, r] = B(!1), n = M(null), s = M({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: f, pauseOnHover: c, closeToast: d, onClick: u, closeOnClick: x } = t;
|
|
326
|
+
ue({ id: t.toastId, containerId: t.containerId, fn: o }), X(() => {
|
|
314
327
|
if (t.pauseOnFocusLoss) return k(), () => {
|
|
315
328
|
I();
|
|
316
329
|
};
|
|
@@ -325,7 +338,7 @@ function he(t) {
|
|
|
325
338
|
if (t.draggable === !0 || t.draggable === y.pointerType) {
|
|
326
339
|
i();
|
|
327
340
|
let T = n.current;
|
|
328
|
-
|
|
341
|
+
s.canCloseOnClick = !0, s.canDrag = !0, T.style.transition = "none", t.draggableDirection === "x" ? (s.start = y.clientX, s.removalDistance = T.offsetWidth * (t.draggablePercent / 100)) : (s.start = y.clientY, s.removalDistance = T.offsetHeight * (t.draggablePercent === 80 ? t.draggablePercent * 1.5 : t.draggablePercent) / 100);
|
|
329
342
|
}
|
|
330
343
|
}
|
|
331
344
|
function m(y) {
|
|
@@ -339,25 +352,25 @@ function he(t) {
|
|
|
339
352
|
o(!1);
|
|
340
353
|
}
|
|
341
354
|
function i() {
|
|
342
|
-
|
|
355
|
+
s.didMove = !1, document.addEventListener("pointermove", p), document.addEventListener("pointerup", w);
|
|
343
356
|
}
|
|
344
357
|
function l() {
|
|
345
358
|
document.removeEventListener("pointermove", p), document.removeEventListener("pointerup", w);
|
|
346
359
|
}
|
|
347
360
|
function p(y) {
|
|
348
361
|
let T = n.current;
|
|
349
|
-
if (
|
|
350
|
-
|
|
351
|
-
let O = t.draggableDirection === "x" ? `${
|
|
352
|
-
T.style.transform = `translate3d(${O},0)`, T.style.opacity = `${1 - Math.abs(
|
|
362
|
+
if (s.canDrag && T) {
|
|
363
|
+
s.didMove = !0, e && _(), t.draggableDirection === "x" ? s.delta = y.clientX - s.start : s.delta = y.clientY - s.start, s.start !== y.clientX && (s.canCloseOnClick = !1);
|
|
364
|
+
let O = t.draggableDirection === "x" ? `${s.delta}px, var(--y)` : `0, calc(${s.delta}px + var(--y))`;
|
|
365
|
+
T.style.transform = `translate3d(${O},0)`, T.style.opacity = `${1 - Math.abs(s.delta / s.removalDistance)}`;
|
|
353
366
|
}
|
|
354
367
|
}
|
|
355
368
|
function w() {
|
|
356
369
|
l();
|
|
357
370
|
let y = n.current;
|
|
358
|
-
if (
|
|
359
|
-
if (
|
|
360
|
-
|
|
371
|
+
if (s.canDrag && s.didMove && y) {
|
|
372
|
+
if (s.canDrag = !1, Math.abs(s.delta) > s.removalDistance) {
|
|
373
|
+
r(!0), t.closeToast(!0), t.collapseAll();
|
|
361
374
|
return;
|
|
362
375
|
}
|
|
363
376
|
y.style.transition = "transform 0.2s, opacity 0.2s", y.style.removeProperty("transform"), y.style.removeProperty("opacity");
|
|
@@ -365,87 +378,87 @@ function he(t) {
|
|
|
365
378
|
}
|
|
366
379
|
let L = { onPointerDown: E, onPointerUp: m };
|
|
367
380
|
return f && c && (L.onMouseEnter = _, t.stacked || (L.onMouseLeave = g)), x && (L.onClick = (y) => {
|
|
368
|
-
u && u(y),
|
|
369
|
-
}), { playToast: g, pauseToast: _, isRunning: e, preventExitTransition:
|
|
381
|
+
u && u(y), s.canCloseOnClick && d(!0);
|
|
382
|
+
}), { playToast: g, pauseToast: _, isRunning: e, preventExitTransition: a, toastRef: n, eventHandlers: L };
|
|
370
383
|
}
|
|
371
|
-
var
|
|
372
|
-
function
|
|
384
|
+
var be = typeof window < "u" ? pt : X, G = ({ theme: t, type: e, isLoading: o, ...a }) => b.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${e})`, ...a });
|
|
385
|
+
function Te(t) {
|
|
373
386
|
return b.createElement(G, { ...t }, b.createElement("path", { d: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z" }));
|
|
374
387
|
}
|
|
375
|
-
function
|
|
388
|
+
function xe(t) {
|
|
376
389
|
return b.createElement(G, { ...t }, b.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
377
390
|
}
|
|
378
|
-
function
|
|
391
|
+
function ke(t) {
|
|
379
392
|
return b.createElement(G, { ...t }, b.createElement("path", { d: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z" }));
|
|
380
393
|
}
|
|
381
|
-
function
|
|
394
|
+
function we(t) {
|
|
382
395
|
return b.createElement(G, { ...t }, b.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
383
396
|
}
|
|
384
|
-
function
|
|
397
|
+
function Ie() {
|
|
385
398
|
return b.createElement("div", { className: "Toastify__spinner" });
|
|
386
399
|
}
|
|
387
|
-
var at = { info:
|
|
388
|
-
function
|
|
389
|
-
let
|
|
390
|
-
return
|
|
391
|
-
}
|
|
392
|
-
var
|
|
393
|
-
let { isRunning: e, preventExitTransition: o, toastRef:
|
|
394
|
-
return
|
|
395
|
-
},
|
|
396
|
-
function
|
|
397
|
-
let e = {
|
|
400
|
+
var at = { info: xe, warning: Te, success: ke, error: we, spinner: Ie }, Ee = (t) => t in at;
|
|
401
|
+
function Ce({ theme: t, type: e, isLoading: o, icon: a }) {
|
|
402
|
+
let r = null, n = { theme: t, type: e };
|
|
403
|
+
return a === !1 || (z(a) ? r = a({ ...n, isLoading: o }) : q(a) ? r = st(a, n) : o ? r = at.spinner() : Ee(e) && (r = at[e](n))), r;
|
|
404
|
+
}
|
|
405
|
+
var Le = (t) => {
|
|
406
|
+
let { isRunning: e, preventExitTransition: o, toastRef: a, eventHandlers: r, playToast: n } = he(t), { closeButton: s, children: f, autoClose: c, onClick: d, type: u, hideProgressBar: x, closeToast: k, transition: I, position: E, className: m, style: g, progressClassName: _, updateId: i, role: l, progress: p, rtl: w, toastId: L, deleteToast: y, isIn: T, isLoading: O, closeOnClick: P, theme: $, ariaLabel: N } = t, Y = A("Toastify__toast", `Toastify__toast-theme--${$}`, `Toastify__toast--${u}`, { "Toastify__toast--rtl": w }, { "Toastify__toast--close-on-click": P }), wt = z(m) ? m({ rtl: w, position: E, type: u, defaultClassName: Y }) : A(Y, m), it = Ce(t), lt = !!p || !c, Z = { closeToast: k, type: u, theme: $ }, j = null;
|
|
407
|
+
return s === !1 || (z(s) ? j = s(Z) : q(s) ? j = st(s, Z) : j = ae(Z)), b.createElement(I, { isIn: T, done: y, position: E, preventExitTransition: o, nodeRef: a, playToast: n }, b.createElement("div", { id: L, tabIndex: 0, onClick: d, "data-in": T, className: wt, ...r, style: g, ref: a, ...T && { role: l, "aria-label": N } }, it != null && b.createElement("div", { className: A("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !O }) }, it), gt(f, t, !e), j, !t.customProgressBar && b.createElement(re, { ...i && !lt ? { key: `p-${i}` } : {}, rtl: w, theme: $, delay: c, isRunning: e, isIn: T, closeToast: k, hide: x, type: u, className: _, controlledProgress: lt, progress: p || 0 })));
|
|
408
|
+
}, Re = (t, e = !1) => ({ enter: `Toastify--animate Toastify__${t}-enter`, exit: `Toastify--animate Toastify__${t}-exit`, appendPosition: e }), Oe = oe(Re("bounce", !0)), $e = { position: "top-right", transition: Oe, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (t) => t.altKey && t.code === "KeyT" };
|
|
409
|
+
function ze(t) {
|
|
410
|
+
let e = { ...$e, ...t }, o = t.stacked, [a, r] = B(!0), n = M(null), { getToastToRender: s, isToastActive: f, count: c } = ve(e), { className: d, style: u, rtl: x, containerId: k, hotKeys: I } = e;
|
|
398
411
|
function E(g) {
|
|
399
|
-
let _ =
|
|
400
|
-
return z(d) ? d({ position: g, rtl: x, defaultClassName: _ }) :
|
|
412
|
+
let _ = A("Toastify__toast-container", `Toastify__toast-container--${g}`, { "Toastify__toast-container--rtl": x });
|
|
413
|
+
return z(d) ? d({ position: g, rtl: x, defaultClassName: _ }) : A(_, tt(d));
|
|
401
414
|
}
|
|
402
415
|
function m() {
|
|
403
|
-
o && (
|
|
416
|
+
o && (r(!0), h.play());
|
|
404
417
|
}
|
|
405
|
-
return
|
|
418
|
+
return be(() => {
|
|
406
419
|
var g;
|
|
407
420
|
if (o) {
|
|
408
421
|
let _ = n.current.querySelectorAll('[data-in="true"]'), i = 12, l = (g = e.position) == null ? void 0 : g.includes("top"), p = 0, w = 0;
|
|
409
422
|
Array.from(_).reverse().forEach((L, y) => {
|
|
410
423
|
let T = L;
|
|
411
|
-
T.classList.add("Toastify__toast--stacked"), y > 0 && (T.dataset.collapsed = `${
|
|
412
|
-
let O = p * (
|
|
413
|
-
T.style.setProperty("--y", `${l ? O : O * -1}px`), T.style.setProperty("--g", `${i}`), T.style.setProperty("--s", `${1 - (
|
|
424
|
+
T.classList.add("Toastify__toast--stacked"), y > 0 && (T.dataset.collapsed = `${a}`), T.dataset.pos || (T.dataset.pos = l ? "top" : "bot");
|
|
425
|
+
let O = p * (a ? 0.2 : 1) + (a ? 0 : i * y);
|
|
426
|
+
T.style.setProperty("--y", `${l ? O : O * -1}px`), T.style.setProperty("--g", `${i}`), T.style.setProperty("--s", `${1 - (a ? w : 0)}`), p += T.offsetHeight, w += 0.025;
|
|
414
427
|
});
|
|
415
428
|
}
|
|
416
|
-
}, [
|
|
429
|
+
}, [a, c, o]), X(() => {
|
|
417
430
|
function g(_) {
|
|
418
431
|
var i;
|
|
419
432
|
let l = n.current;
|
|
420
|
-
I(_) && ((i = l.querySelector('[tabIndex="0"]')) == null || i.focus(),
|
|
433
|
+
I(_) && ((i = l.querySelector('[tabIndex="0"]')) == null || i.focus(), r(!1), h.pause()), _.key === "Escape" && (document.activeElement === l || l != null && l.contains(document.activeElement)) && (r(!0), h.play());
|
|
421
434
|
}
|
|
422
435
|
return document.addEventListener("keydown", g), () => {
|
|
423
436
|
document.removeEventListener("keydown", g);
|
|
424
437
|
};
|
|
425
438
|
}, [I]), b.createElement("section", { ref: n, className: "Toastify", id: k, onMouseEnter: () => {
|
|
426
|
-
o && (
|
|
427
|
-
}, onMouseLeave: m, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": e["aria-label"] },
|
|
439
|
+
o && (r(!1), h.pause());
|
|
440
|
+
}, onMouseLeave: m, "aria-live": "polite", "aria-atomic": "false", "aria-relevant": "additions text", "aria-label": e["aria-label"] }, s((g, _) => {
|
|
428
441
|
let i = _.length ? { ...u } : { ...u, pointerEvents: "none" };
|
|
429
|
-
return b.createElement("div", { tabIndex: -1, className: E(g), "data-stacked": o, style: i, key: `c-${g}` }, _.map(({ content: l, props: p }) => b.createElement(
|
|
442
|
+
return b.createElement("div", { tabIndex: -1, className: E(g), "data-stacked": o, style: i, key: `c-${g}` }, _.map(({ content: l, props: p }) => b.createElement(Le, { ...p, stacked: o, collapseAll: m, isIn: f(p.toastId, p.containerId), key: `t-${p.key}` }, l)));
|
|
430
443
|
}));
|
|
431
444
|
}
|
|
432
|
-
const
|
|
445
|
+
const kt = b.createContext(
|
|
433
446
|
void 0
|
|
434
|
-
),
|
|
435
|
-
const e = mt(), o = (
|
|
436
|
-
|
|
437
|
-
|
|
447
|
+
), Pe = ({ closeToast: t, toastProps: e, message: o, state: a, action: r }) => /* @__PURE__ */ v(De, { message: o, state: a, close: t, action: r }), No = ({ children: t }) => {
|
|
448
|
+
const e = mt(), o = (a, r, n) => {
|
|
449
|
+
h.success((s) => /* @__PURE__ */ v(
|
|
450
|
+
Pe,
|
|
438
451
|
{
|
|
439
|
-
message:
|
|
440
|
-
state:
|
|
452
|
+
message: a,
|
|
453
|
+
state: r,
|
|
441
454
|
action: n,
|
|
442
|
-
...
|
|
455
|
+
...s
|
|
443
456
|
}
|
|
444
457
|
));
|
|
445
458
|
};
|
|
446
|
-
return /* @__PURE__ */
|
|
447
|
-
/* @__PURE__ */
|
|
448
|
-
|
|
459
|
+
return /* @__PURE__ */ K(kt.Provider, { value: { show: o }, children: [
|
|
460
|
+
/* @__PURE__ */ v(
|
|
461
|
+
ze,
|
|
449
462
|
{
|
|
450
463
|
closeButton: !1,
|
|
451
464
|
closeOnClick: !1,
|
|
@@ -477,25 +490,28 @@ const xt = b.createContext(
|
|
|
477
490
|
),
|
|
478
491
|
t
|
|
479
492
|
] });
|
|
480
|
-
},
|
|
481
|
-
const t = b.useContext(
|
|
493
|
+
}, Ne = () => {
|
|
494
|
+
const t = b.useContext(kt);
|
|
482
495
|
if (t === void 0)
|
|
483
496
|
throw new Error("useToast must be used within a ToastProvider");
|
|
484
497
|
return t;
|
|
485
498
|
}, nt = () => {
|
|
486
|
-
const t =
|
|
499
|
+
const t = Lt(), e = mt(), o = Ne();
|
|
487
500
|
return {
|
|
488
501
|
breakpoint: t,
|
|
489
502
|
theme: e,
|
|
490
503
|
toast: o
|
|
491
504
|
};
|
|
492
|
-
},
|
|
493
|
-
({ children: t, ...e }) =>
|
|
505
|
+
}, Ae = J.Item, Ao = Object.assign(
|
|
506
|
+
({ children: t, ...e }) => {
|
|
507
|
+
const { breakpoint: o } = nt();
|
|
508
|
+
return /* @__PURE__ */ v(J, { role: "form", ...e, children: t });
|
|
509
|
+
},
|
|
494
510
|
{
|
|
495
|
-
Item:
|
|
511
|
+
Item: Ae,
|
|
496
512
|
useForm: J.useForm
|
|
497
513
|
}
|
|
498
|
-
), Se =
|
|
514
|
+
), Se = Ot.div`
|
|
499
515
|
outline: none;
|
|
500
516
|
display: flex;
|
|
501
517
|
align-items: center;
|
|
@@ -503,37 +519,37 @@ const xt = b.createContext(
|
|
|
503
519
|
cursor: ${({ $isDisabled: t }) => t ? "not-allowed" : "pointer"};
|
|
504
520
|
pointer-events: ${({ $isDisabled: t }) => t ? "none" : "auto"};
|
|
505
521
|
position: relative;
|
|
506
|
-
`, So = ({ id: t, label: e, selectedId: o, onChange:
|
|
507
|
-
const [n,
|
|
522
|
+
`, So = ({ id: t, label: e, selectedId: o, onChange: a, isDisabled: r }) => {
|
|
523
|
+
const [n, s] = B(!1), [f, c] = B(!1), [d, u] = B(!1), x = M(null);
|
|
508
524
|
X(() => {
|
|
509
|
-
|
|
525
|
+
s(o === t);
|
|
510
526
|
}, [o, t]);
|
|
511
527
|
const k = () => {
|
|
512
|
-
|
|
528
|
+
r || a(t);
|
|
513
529
|
};
|
|
514
|
-
return /* @__PURE__ */
|
|
530
|
+
return /* @__PURE__ */ K(
|
|
515
531
|
Se,
|
|
516
532
|
{
|
|
517
533
|
ref: x,
|
|
518
|
-
$isDisabled:
|
|
534
|
+
$isDisabled: r,
|
|
519
535
|
onFocus: (m) => {
|
|
520
|
-
|
|
536
|
+
r || m.target !== x.current || u(!0);
|
|
521
537
|
},
|
|
522
538
|
onBlur: () => {
|
|
523
|
-
|
|
539
|
+
r || u(!1);
|
|
524
540
|
},
|
|
525
|
-
onMouseEnter: () => !
|
|
541
|
+
onMouseEnter: () => !r && c(!0),
|
|
526
542
|
onMouseLeave: () => c(!1),
|
|
527
543
|
onClick: k,
|
|
528
544
|
onKeyDown: (m) => {
|
|
529
|
-
|
|
545
|
+
r || (m.key === "Enter" || m.key === " ") && (m.preventDefault(), k());
|
|
530
546
|
},
|
|
531
|
-
tabIndex:
|
|
547
|
+
tabIndex: r ? -1 : 0,
|
|
532
548
|
role: "radio",
|
|
533
549
|
"aria-checked": n,
|
|
534
|
-
"aria-disabled":
|
|
550
|
+
"aria-disabled": r,
|
|
535
551
|
children: [
|
|
536
|
-
/* @__PURE__ */
|
|
552
|
+
/* @__PURE__ */ v(
|
|
537
553
|
"div",
|
|
538
554
|
{
|
|
539
555
|
style: {
|
|
@@ -544,10 +560,10 @@ const xt = b.createContext(
|
|
|
544
560
|
height: 26,
|
|
545
561
|
pointerEvents: "none"
|
|
546
562
|
},
|
|
547
|
-
children: n ?
|
|
563
|
+
children: n ? r ? /* @__PURE__ */ v(Bt, {}) : d ? /* @__PURE__ */ v(ft, {}) : d ? /* @__PURE__ */ v(ft, {}) : f ? /* @__PURE__ */ v(St, {}) : /* @__PURE__ */ v(At, {}) : d ? /* @__PURE__ */ v(Ft, {}) : f ? /* @__PURE__ */ v(Dt, {}) : r ? /* @__PURE__ */ v(Ht, {}) : /* @__PURE__ */ v(Mt, {})
|
|
548
564
|
}
|
|
549
565
|
),
|
|
550
|
-
e && /* @__PURE__ */
|
|
566
|
+
e && /* @__PURE__ */ v(
|
|
551
567
|
rt,
|
|
552
568
|
{
|
|
553
569
|
variant: F.label1,
|
|
@@ -558,7 +574,7 @@ const xt = b.createContext(
|
|
|
558
574
|
]
|
|
559
575
|
}
|
|
560
576
|
);
|
|
561
|
-
},
|
|
577
|
+
}, Be = (t, e) => {
|
|
562
578
|
switch (t) {
|
|
563
579
|
case R.error:
|
|
564
580
|
return e.colors.status.error.onsurface;
|
|
@@ -572,34 +588,34 @@ const xt = b.createContext(
|
|
|
572
588
|
default:
|
|
573
589
|
return e.colors.status.info.onsurface;
|
|
574
590
|
}
|
|
575
|
-
}, D = 22,
|
|
591
|
+
}, D = 22, Me = (t, e) => {
|
|
576
592
|
switch (t) {
|
|
577
593
|
case R.warning:
|
|
578
|
-
return /* @__PURE__ */
|
|
594
|
+
return /* @__PURE__ */ v(Kt, { style: { color: e, fontSize: D } });
|
|
579
595
|
case R.error:
|
|
580
|
-
return /* @__PURE__ */
|
|
596
|
+
return /* @__PURE__ */ v(jt, { style: { color: e, fontSize: D } });
|
|
581
597
|
case R.success:
|
|
582
|
-
return /* @__PURE__ */
|
|
598
|
+
return /* @__PURE__ */ v(yt, { style: { color: e, fontSize: D } });
|
|
583
599
|
case R.generic:
|
|
584
|
-
return /* @__PURE__ */
|
|
600
|
+
return /* @__PURE__ */ v(Yt, { style: { color: e, fontSize: D } });
|
|
585
601
|
case R.info:
|
|
586
602
|
default:
|
|
587
|
-
return /* @__PURE__ */
|
|
603
|
+
return /* @__PURE__ */ v(Wt, { style: { color: e, fontSize: D } });
|
|
588
604
|
}
|
|
589
|
-
},
|
|
605
|
+
}, De = ({
|
|
590
606
|
state: t = R.info,
|
|
591
607
|
message: e,
|
|
592
608
|
action: o,
|
|
593
|
-
close:
|
|
594
|
-
size:
|
|
609
|
+
close: a,
|
|
610
|
+
size: r = ct.standard
|
|
595
611
|
}) => {
|
|
596
|
-
const { theme: n } = nt(),
|
|
612
|
+
const { theme: n } = nt(), s = Be(t, n);
|
|
597
613
|
n.colors.interactive.utility.border, n.colors.interactive.utility.onsurface;
|
|
598
|
-
const f =
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
/* @__PURE__ */
|
|
601
|
-
|
|
602
|
-
/* @__PURE__ */
|
|
614
|
+
const f = r === ct.small ? F.body1 : F.body2;
|
|
615
|
+
return /* @__PURE__ */ K(zt, { state: t, size: r, children: [
|
|
616
|
+
/* @__PURE__ */ K(Pt, { state: t, size: r, children: [
|
|
617
|
+
Me(t, s),
|
|
618
|
+
/* @__PURE__ */ v(
|
|
603
619
|
rt,
|
|
604
620
|
{
|
|
605
621
|
variant: f,
|
|
@@ -609,14 +625,14 @@ const xt = b.createContext(
|
|
|
609
625
|
}
|
|
610
626
|
)
|
|
611
627
|
] }),
|
|
612
|
-
o ? /* @__PURE__ */
|
|
613
|
-
|
|
628
|
+
o ? /* @__PURE__ */ v(
|
|
629
|
+
Xt,
|
|
614
630
|
{
|
|
615
631
|
themeType: "utility",
|
|
616
632
|
size: "small",
|
|
617
633
|
onClick: o.onClick,
|
|
618
634
|
style: { position: "relative", zIndex: 1, pointerEvents: "all" },
|
|
619
|
-
children: /* @__PURE__ */
|
|
635
|
+
children: /* @__PURE__ */ v(
|
|
620
636
|
rt,
|
|
621
637
|
{
|
|
622
638
|
variant: F.body3,
|
|
@@ -626,16 +642,16 @@ const xt = b.createContext(
|
|
|
626
642
|
)
|
|
627
643
|
}
|
|
628
644
|
) : null,
|
|
629
|
-
|
|
645
|
+
a ? /* @__PURE__ */ v(Nt, { onClick: a, children: /* @__PURE__ */ v(Ut, { style: { fontSize: 18 } }) }) : null
|
|
630
646
|
] });
|
|
631
647
|
}, rt = ({
|
|
632
648
|
children: t,
|
|
633
|
-
themeType: e =
|
|
649
|
+
themeType: e = $t.secondary,
|
|
634
650
|
variant: o = F.body1,
|
|
635
|
-
state:
|
|
636
|
-
color:
|
|
651
|
+
state: a = R.active,
|
|
652
|
+
color: r,
|
|
637
653
|
isText: n = !1,
|
|
638
|
-
isFullWidth:
|
|
654
|
+
isFullWidth: s,
|
|
639
655
|
style: f,
|
|
640
656
|
isDisabled: c,
|
|
641
657
|
...d
|
|
@@ -643,16 +659,16 @@ const xt = b.createContext(
|
|
|
643
659
|
const { breakpoint: u } = nt();
|
|
644
660
|
if (o.startsWith("display") || o.startsWith("heading")) {
|
|
645
661
|
const x = o.split("heading")[1] || o.split("display")[1];
|
|
646
|
-
return /* @__PURE__ */
|
|
647
|
-
|
|
662
|
+
return /* @__PURE__ */ v(
|
|
663
|
+
It,
|
|
648
664
|
{
|
|
649
|
-
state:
|
|
665
|
+
state: a,
|
|
650
666
|
$themeType: e,
|
|
651
667
|
variant: o,
|
|
652
668
|
breakpoint: u,
|
|
653
|
-
color:
|
|
669
|
+
color: r,
|
|
654
670
|
level: parseInt(x),
|
|
655
|
-
$isFullWidth:
|
|
671
|
+
$isFullWidth: s,
|
|
656
672
|
style: f,
|
|
657
673
|
disabled: c,
|
|
658
674
|
...d,
|
|
@@ -660,29 +676,29 @@ const xt = b.createContext(
|
|
|
660
676
|
}
|
|
661
677
|
);
|
|
662
678
|
}
|
|
663
|
-
return n ? /* @__PURE__ */
|
|
664
|
-
|
|
679
|
+
return n ? /* @__PURE__ */ v(
|
|
680
|
+
Et,
|
|
665
681
|
{
|
|
666
|
-
state:
|
|
682
|
+
state: a,
|
|
667
683
|
$themeType: e,
|
|
668
684
|
variant: o,
|
|
669
685
|
breakpoint: u,
|
|
670
|
-
color:
|
|
671
|
-
$isFullWidth:
|
|
686
|
+
color: r,
|
|
687
|
+
$isFullWidth: s,
|
|
672
688
|
style: f,
|
|
673
689
|
disabled: c,
|
|
674
690
|
...d,
|
|
675
691
|
children: t
|
|
676
692
|
}
|
|
677
|
-
) : /* @__PURE__ */
|
|
678
|
-
|
|
693
|
+
) : /* @__PURE__ */ v(
|
|
694
|
+
Ct,
|
|
679
695
|
{
|
|
680
|
-
state:
|
|
696
|
+
state: a,
|
|
681
697
|
$themeType: e,
|
|
682
698
|
variant: o,
|
|
683
699
|
breakpoint: u,
|
|
684
|
-
color:
|
|
685
|
-
$isFullWidth:
|
|
700
|
+
color: r,
|
|
701
|
+
$isFullWidth: s,
|
|
686
702
|
style: f,
|
|
687
703
|
disabled: c,
|
|
688
704
|
...d,
|
|
@@ -691,15 +707,15 @@ const xt = b.createContext(
|
|
|
691
707
|
);
|
|
692
708
|
};
|
|
693
709
|
export {
|
|
694
|
-
|
|
710
|
+
Ao as F,
|
|
695
711
|
yt as R,
|
|
696
|
-
|
|
712
|
+
De as T,
|
|
697
713
|
rt as a,
|
|
698
714
|
So as b,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
715
|
+
No as c,
|
|
716
|
+
Ae as d,
|
|
717
|
+
kt as e,
|
|
718
|
+
Ne as f,
|
|
703
719
|
Se as g,
|
|
704
720
|
nt as u
|
|
705
721
|
};
|