@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,21 +1,22 @@
|
|
|
1
|
-
import { jsxs as J, Fragment as
|
|
1
|
+
import { jsxs as J, Fragment as yt, jsx as D } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
3
|
+
import h, { useContext as ae, useRef as Z, useMemo as xt, useEffect as me, useState as te, createElement as $t } from "react";
|
|
4
4
|
import "../../../providers/BreakpointThemeProvider.js";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as Et, a as Ot } from "../../../Typography-B2J8CPnt.js";
|
|
6
6
|
import "../../../components/Avatar/styles.js";
|
|
7
7
|
import "../../../components/Badge/styles.js";
|
|
8
8
|
import "../../../components/Breadcrumb/styles.js";
|
|
9
9
|
import "../../../components/Button/styles.js";
|
|
10
10
|
import "../../../components/Card/styles.js";
|
|
11
11
|
import "../../../components/Checkbox/styles.js";
|
|
12
|
+
import "../../../components/DateRangePicker/DateRangePicker.js";
|
|
12
13
|
import "../../../components/ErrorBoundaryFallback/styles.js";
|
|
13
|
-
import "../../../
|
|
14
|
+
import { a as St } from "../../../styles-XuoEGUZZ.js";
|
|
14
15
|
import "../../../components/Layout/Content/styles.js";
|
|
15
16
|
import "../../../components/Message/styles.js";
|
|
16
17
|
import "../../../components/Notification/NotificationBadge/styles.js";
|
|
17
18
|
import "../../../components/Notification/styles.js";
|
|
18
|
-
import { A as
|
|
19
|
+
import { A as Ae } from "../../../styles-DNay6iFa.js";
|
|
19
20
|
import "../../../components/Progress/styles.js";
|
|
20
21
|
import "../../../components/Row/styles.js";
|
|
21
22
|
import "../../../components/Row/RowLabelValue/styles.js";
|
|
@@ -23,167 +24,166 @@ import "../../../components/Row/RowActions/styles.js";
|
|
|
23
24
|
import "../../../components/SegmentedControls/styles.js";
|
|
24
25
|
import "../../../components/Select/styles.js";
|
|
25
26
|
import "../../../components/Switch/styles.js";
|
|
26
|
-
import { a as fe } from "../../../styles-
|
|
27
|
+
import { a as fe } from "../../../styles-Wpm1RiGr.js";
|
|
27
28
|
import "../../../components/Tabs/styles.js";
|
|
28
29
|
import "../../../components/Tile/styles.js";
|
|
29
30
|
import "../../../components/Toast/styles.js";
|
|
30
31
|
import "../../../components/Tooltip/styles.js";
|
|
31
32
|
import "../../global-styles.js";
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import { g as
|
|
38
|
-
import { R as
|
|
39
|
-
import { R as
|
|
40
|
-
import { R as
|
|
41
|
-
import { u as
|
|
42
|
-
import { g as se } from "../../../motion-
|
|
43
|
-
import { R as
|
|
44
|
-
import { i as
|
|
45
|
-
import { u as
|
|
46
|
-
import { K as we } from "../../../KeyCode-
|
|
47
|
-
import { p as
|
|
48
|
-
import { C as
|
|
49
|
-
import { u as Ke } from "../../../useCSSVarCls-
|
|
50
|
-
import { S as
|
|
51
|
-
import { B as qe, c as
|
|
52
|
-
import { u as
|
|
53
|
-
import { g as
|
|
54
|
-
import { K as Ue } from "../../../Keyframes-
|
|
55
|
-
import { i as
|
|
56
|
-
import "../../../
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return /* @__PURE__ */ l.createElement(Le, q({}, n, {
|
|
33
|
+
import { e as q, _ as A, c as z, f as Ee, a as ve, j as Oe, q as Se, d as wt } from "../../../presets-CSXMiWyc.js";
|
|
34
|
+
import { I as Le } from "../../../AntdIcon-DP6hPDqu.js";
|
|
35
|
+
import { R as Nt } from "../../../index-BHCqeC4j.js";
|
|
36
|
+
import { n as k, A as Pt, p as He, a as It, g as Tt, f as N, m as Mt, j as Rt, o as jt, C as ce, Z as Bt, k as Dt, c as zt } from "../../../CSSMotionList-DB0khM6h.js";
|
|
37
|
+
import { b as Ve, a as Ft, d as Ce, C as We, c as _t, e as At, w as Ge, l as Lt } from "../../../index-DCopujxC.js";
|
|
38
|
+
import { g as Ht } from "../../../index-Br3D3cFM.js";
|
|
39
|
+
import { R as Vt } from "../../../CheckCircleFilled-B-wrMduA.js";
|
|
40
|
+
import { R as Wt } from "../../../CloseCircleFilled-WEQ0SaSW.js";
|
|
41
|
+
import { R as Gt } from "../../../ExclamationCircleFilled-x8Sr29BN.js";
|
|
42
|
+
import { u as Kt, z as qt, C as Ut } from "../../../useZIndex-tgX56o1r.js";
|
|
43
|
+
import { g as se } from "../../../motion-C-XpKcZG.js";
|
|
44
|
+
import { R as pe } from "../../../CloseOutlined-DzgBOns1.js";
|
|
45
|
+
import { i as kt, P as Xt } from "../../../index-DRGbc-fW.js";
|
|
46
|
+
import { u as Zt } from "../../../useId-DLf1xVuv.js";
|
|
47
|
+
import { K as we } from "../../../KeyCode-B3vHb2gY.js";
|
|
48
|
+
import { p as be } from "../../../pickAttrs-yFE4_vFd.js";
|
|
49
|
+
import { C as Qt } from "../../../ContextIsolator-CUJnq-4F.js";
|
|
50
|
+
import { u as Ke } from "../../../useCSSVarCls-YfJY1twF.js";
|
|
51
|
+
import { S as Yt } from "../../../Skeleton-CudViN0a.js";
|
|
52
|
+
import { B as qe, c as Jt } from "../../../button-CYVlK7G0.js";
|
|
53
|
+
import { u as he } from "../../../useLocale-BQ3mKRyJ.js";
|
|
54
|
+
import { g as en } from "../../../index-CupwdUIJ.js";
|
|
55
|
+
import { K as Ue } from "../../../Keyframes-CyO2Aeq-.js";
|
|
56
|
+
import { i as tn } from "../../../index-Y0KgiFZb.js";
|
|
57
|
+
import { w as nn } from "../../../DownOutlined-Bv7ua5i8.js";
|
|
58
|
+
var on = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ 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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, rn = function(t, o) {
|
|
59
|
+
return /* @__PURE__ */ l.createElement(Le, q({}, t, {
|
|
60
60
|
ref: o,
|
|
61
|
-
icon:
|
|
61
|
+
icon: on
|
|
62
62
|
}));
|
|
63
|
-
}, ke = /* @__PURE__ */ l.forwardRef(
|
|
63
|
+
}, ke = /* @__PURE__ */ l.forwardRef(rn);
|
|
64
64
|
process.env.NODE_ENV !== "production" && (ke.displayName = "InfoCircleFilled");
|
|
65
|
-
function
|
|
66
|
-
const [e,
|
|
67
|
-
|
|
65
|
+
function an() {
|
|
66
|
+
const [e, t] = l.useState([]), o = l.useCallback((n) => (t((r) => [].concat(k(r), [n])), () => {
|
|
67
|
+
t((r) => r.filter((i) => i !== n));
|
|
68
68
|
}), []);
|
|
69
69
|
return [e, o];
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const ln = new Ue("antFadeIn", {
|
|
72
72
|
"0%": {
|
|
73
73
|
opacity: 0
|
|
74
74
|
},
|
|
75
75
|
"100%": {
|
|
76
76
|
opacity: 1
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
78
|
+
}), sn = new Ue("antFadeOut", {
|
|
79
79
|
"0%": {
|
|
80
80
|
opacity: 1
|
|
81
81
|
},
|
|
82
82
|
"100%": {
|
|
83
83
|
opacity: 0
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
86
|
-
let
|
|
85
|
+
}), cn = function(e) {
|
|
86
|
+
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
87
87
|
const {
|
|
88
88
|
antCls: o
|
|
89
|
-
} = e,
|
|
90
|
-
return [
|
|
89
|
+
} = e, n = `${o}-fade`, r = t ? "&" : "";
|
|
90
|
+
return [kt(n, ln, sn, e.motionDurationMid, t), {
|
|
91
91
|
[`
|
|
92
|
-
${r}${
|
|
93
|
-
${r}${
|
|
92
|
+
${r}${n}-enter,
|
|
93
|
+
${r}${n}-appear
|
|
94
94
|
`]: {
|
|
95
95
|
opacity: 0,
|
|
96
96
|
animationTimingFunction: "linear"
|
|
97
97
|
},
|
|
98
|
-
[`${r}${
|
|
98
|
+
[`${r}${n}-leave`]: {
|
|
99
99
|
animationTimingFunction: "linear"
|
|
100
100
|
}
|
|
101
101
|
}];
|
|
102
|
-
}, le = /* @__PURE__ */
|
|
102
|
+
}, le = /* @__PURE__ */ h.createContext({}), {
|
|
103
103
|
Provider: Xe
|
|
104
104
|
} = le, Ne = () => {
|
|
105
105
|
const {
|
|
106
106
|
autoFocusButton: e,
|
|
107
|
-
cancelButtonProps:
|
|
107
|
+
cancelButtonProps: t,
|
|
108
108
|
cancelTextLocale: o,
|
|
109
|
-
isSilent:
|
|
109
|
+
isSilent: n,
|
|
110
110
|
mergedOkCancel: r,
|
|
111
111
|
rootPrefixCls: i,
|
|
112
112
|
close: d,
|
|
113
113
|
onCancel: c,
|
|
114
114
|
onConfirm: s
|
|
115
115
|
} = ae(le);
|
|
116
|
-
return r ? /* @__PURE__ */
|
|
117
|
-
isSilent:
|
|
116
|
+
return r ? /* @__PURE__ */ h.createElement(Ae, {
|
|
117
|
+
isSilent: n,
|
|
118
118
|
actionFn: c,
|
|
119
119
|
close: function() {
|
|
120
120
|
d == null || d.apply(void 0, arguments), s == null || s(!1);
|
|
121
121
|
},
|
|
122
122
|
autoFocus: e === "cancel",
|
|
123
|
-
buttonProps:
|
|
123
|
+
buttonProps: t,
|
|
124
124
|
prefixCls: `${i}-btn`
|
|
125
125
|
}, o) : null;
|
|
126
126
|
}, Pe = () => {
|
|
127
127
|
const {
|
|
128
128
|
autoFocusButton: e,
|
|
129
|
-
close:
|
|
129
|
+
close: t,
|
|
130
130
|
isSilent: o,
|
|
131
|
-
okButtonProps:
|
|
131
|
+
okButtonProps: n,
|
|
132
132
|
rootPrefixCls: r,
|
|
133
133
|
okTextLocale: i,
|
|
134
134
|
okType: d,
|
|
135
135
|
onConfirm: c,
|
|
136
136
|
onOk: s
|
|
137
137
|
} = ae(le);
|
|
138
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ h.createElement(Ae, {
|
|
139
139
|
isSilent: o,
|
|
140
140
|
type: d || "primary",
|
|
141
141
|
actionFn: s,
|
|
142
142
|
close: function() {
|
|
143
|
-
|
|
143
|
+
t == null || t.apply(void 0, arguments), c == null || c(!0);
|
|
144
144
|
},
|
|
145
145
|
autoFocus: e === "ok",
|
|
146
|
-
buttonProps:
|
|
146
|
+
buttonProps: n,
|
|
147
147
|
prefixCls: `${r}-btn`
|
|
148
148
|
}, i);
|
|
149
149
|
};
|
|
150
|
-
var
|
|
151
|
-
function Ie(e,
|
|
152
|
-
var
|
|
153
|
-
return !
|
|
150
|
+
var Ze = /* @__PURE__ */ l.createContext({});
|
|
151
|
+
function Ie(e, t, o) {
|
|
152
|
+
var n = t;
|
|
153
|
+
return !n && o && (n = "".concat(e, "-").concat(o)), n;
|
|
154
154
|
}
|
|
155
|
-
function Te(e,
|
|
156
|
-
var o = e["page".concat(
|
|
155
|
+
function Te(e, t) {
|
|
156
|
+
var o = e["page".concat(t ? "Y" : "X", "Offset")], n = "scroll".concat(t ? "Top" : "Left");
|
|
157
157
|
if (typeof o != "number") {
|
|
158
158
|
var r = e.document;
|
|
159
|
-
o = r.documentElement[
|
|
159
|
+
o = r.documentElement[n], typeof o != "number" && (o = r.body[n]);
|
|
160
160
|
}
|
|
161
161
|
return o;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
var
|
|
165
|
-
left:
|
|
166
|
-
top:
|
|
167
|
-
},
|
|
163
|
+
function dn(e) {
|
|
164
|
+
var t = e.getBoundingClientRect(), o = {
|
|
165
|
+
left: t.left,
|
|
166
|
+
top: t.top
|
|
167
|
+
}, n = e.ownerDocument, r = n.defaultView || n.parentWindow;
|
|
168
168
|
return o.left += Te(r), o.top += Te(r, !0), o;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
var
|
|
172
|
-
return
|
|
173
|
-
}, function(e,
|
|
174
|
-
var o =
|
|
170
|
+
const un = /* @__PURE__ */ l.memo(function(e) {
|
|
171
|
+
var t = e.children;
|
|
172
|
+
return t;
|
|
173
|
+
}, function(e, t) {
|
|
174
|
+
var o = t.shouldUpdate;
|
|
175
175
|
return !o;
|
|
176
176
|
});
|
|
177
|
-
var
|
|
177
|
+
var fn = {
|
|
178
178
|
width: 0,
|
|
179
179
|
height: 0,
|
|
180
180
|
overflow: "hidden",
|
|
181
181
|
outline: "none"
|
|
182
|
-
},
|
|
182
|
+
}, mn = {
|
|
183
183
|
outline: "none"
|
|
184
|
-
},
|
|
185
|
-
var o = e.prefixCls,
|
|
186
|
-
|
|
184
|
+
}, ye = /* @__PURE__ */ h.forwardRef(function(e, t) {
|
|
185
|
+
var o = e.prefixCls, n = e.className, r = e.style, i = e.title, d = e.ariaId, c = e.footer, s = e.closable, m = e.closeIcon, a = e.onClose, f = e.children, u = e.bodyStyle, v = e.bodyProps, E = e.modalRender, C = e.onMouseDown, p = e.onMouseUp, y = e.holderRef, b = e.visible, P = e.forceRender, O = e.width, I = e.height, S = e.classNames, w = e.styles, L = h.useContext(Ze), B = L.panel, X = Pt(y, B), g = Z(), x = Z();
|
|
186
|
+
h.useImperativeHandle(t, function() {
|
|
187
187
|
return {
|
|
188
188
|
focus: function() {
|
|
189
189
|
var G;
|
|
@@ -203,66 +203,66 @@ var ft = {
|
|
|
203
203
|
});
|
|
204
204
|
var $ = {};
|
|
205
205
|
O !== void 0 && ($.width = O), I !== void 0 && ($.height = I);
|
|
206
|
-
var j = c ? /* @__PURE__ */
|
|
206
|
+
var j = c ? /* @__PURE__ */ h.createElement("div", {
|
|
207
207
|
className: z("".concat(o, "-footer"), S == null ? void 0 : S.footer),
|
|
208
|
-
style:
|
|
209
|
-
}, c) : null, F = i ? /* @__PURE__ */
|
|
208
|
+
style: A({}, w == null ? void 0 : w.footer)
|
|
209
|
+
}, c) : null, F = i ? /* @__PURE__ */ h.createElement("div", {
|
|
210
210
|
className: z("".concat(o, "-header"), S == null ? void 0 : S.header),
|
|
211
|
-
style:
|
|
212
|
-
}, /* @__PURE__ */
|
|
211
|
+
style: A({}, w == null ? void 0 : w.header)
|
|
212
|
+
}, /* @__PURE__ */ h.createElement("div", {
|
|
213
213
|
className: "".concat(o, "-title"),
|
|
214
214
|
id: d
|
|
215
|
-
}, i)) : null, T =
|
|
215
|
+
}, i)) : null, T = xt(function() {
|
|
216
216
|
return Ee(s) === "object" && s !== null ? s : s ? {
|
|
217
|
-
closeIcon: m ?? /* @__PURE__ */
|
|
217
|
+
closeIcon: m ?? /* @__PURE__ */ h.createElement("span", {
|
|
218
218
|
className: "".concat(o, "-close-x")
|
|
219
219
|
})
|
|
220
220
|
} : {};
|
|
221
|
-
}, [s, m, o]), R =
|
|
221
|
+
}, [s, m, o]), R = be(T, !0), K = Ee(s) === "object" && s.disabled, ne = s ? /* @__PURE__ */ h.createElement("button", q({
|
|
222
222
|
type: "button",
|
|
223
223
|
onClick: a,
|
|
224
224
|
"aria-label": "Close"
|
|
225
225
|
}, R, {
|
|
226
226
|
className: "".concat(o, "-close"),
|
|
227
227
|
disabled: K
|
|
228
|
-
}), T.closeIcon) : null,
|
|
228
|
+
}), T.closeIcon) : null, Q = /* @__PURE__ */ h.createElement("div", {
|
|
229
229
|
className: z("".concat(o, "-content"), S == null ? void 0 : S.content),
|
|
230
230
|
style: w == null ? void 0 : w.content
|
|
231
|
-
},
|
|
231
|
+
}, ne, F, /* @__PURE__ */ h.createElement("div", q({
|
|
232
232
|
className: z("".concat(o, "-body"), S == null ? void 0 : S.body),
|
|
233
|
-
style:
|
|
234
|
-
},
|
|
235
|
-
return /* @__PURE__ */
|
|
233
|
+
style: A(A({}, u), w == null ? void 0 : w.body)
|
|
234
|
+
}, v), f), j);
|
|
235
|
+
return /* @__PURE__ */ h.createElement("div", {
|
|
236
236
|
key: "dialog-element",
|
|
237
237
|
role: "dialog",
|
|
238
238
|
"aria-labelledby": i ? d : null,
|
|
239
239
|
"aria-modal": "true",
|
|
240
240
|
ref: X,
|
|
241
|
-
style:
|
|
242
|
-
className: z(o,
|
|
241
|
+
style: A(A({}, r), $),
|
|
242
|
+
className: z(o, n),
|
|
243
243
|
onMouseDown: C,
|
|
244
|
-
onMouseUp:
|
|
245
|
-
}, /* @__PURE__ */
|
|
244
|
+
onMouseUp: p
|
|
245
|
+
}, /* @__PURE__ */ h.createElement("div", {
|
|
246
246
|
ref: g,
|
|
247
247
|
tabIndex: 0,
|
|
248
|
-
style:
|
|
249
|
-
}, /* @__PURE__ */
|
|
250
|
-
shouldUpdate:
|
|
251
|
-
}, E ? E(
|
|
248
|
+
style: mn
|
|
249
|
+
}, /* @__PURE__ */ h.createElement(un, {
|
|
250
|
+
shouldUpdate: b || P
|
|
251
|
+
}, E ? E(Q) : Q)), /* @__PURE__ */ h.createElement("div", {
|
|
252
252
|
tabIndex: 0,
|
|
253
253
|
ref: x,
|
|
254
|
-
style:
|
|
254
|
+
style: fn
|
|
255
255
|
}));
|
|
256
256
|
});
|
|
257
|
-
process.env.NODE_ENV !== "production" && (
|
|
258
|
-
var
|
|
259
|
-
var o = e.prefixCls,
|
|
260
|
-
|
|
257
|
+
process.env.NODE_ENV !== "production" && (ye.displayName = "Panel");
|
|
258
|
+
var Qe = /* @__PURE__ */ l.forwardRef(function(e, t) {
|
|
259
|
+
var o = e.prefixCls, n = e.title, r = e.style, i = e.className, d = e.visible, c = e.forceRender, s = e.destroyOnClose, m = e.motionName, a = e.ariaId, f = e.onVisibleChanged, u = e.mousePosition, v = Z(), E = l.useState(), C = ve(E, 2), p = C[0], y = C[1], b = {};
|
|
260
|
+
p && (b.transformOrigin = p);
|
|
261
261
|
function P() {
|
|
262
|
-
var O =
|
|
263
|
-
|
|
262
|
+
var O = dn(v.current);
|
|
263
|
+
y(u && (u.x || u.y) ? "".concat(u.x - O.left, "px ").concat(u.y - O.top, "px") : "");
|
|
264
264
|
}
|
|
265
|
-
return /* @__PURE__ */ l.createElement(
|
|
265
|
+
return /* @__PURE__ */ l.createElement(He, {
|
|
266
266
|
visible: d,
|
|
267
267
|
onVisibleChanged: f,
|
|
268
268
|
onAppearPrepare: P,
|
|
@@ -270,24 +270,24 @@ var Ze = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
270
270
|
forceRender: c,
|
|
271
271
|
motionName: m,
|
|
272
272
|
removeOnLeave: s,
|
|
273
|
-
ref:
|
|
273
|
+
ref: v
|
|
274
274
|
}, function(O, I) {
|
|
275
275
|
var S = O.className, w = O.style;
|
|
276
|
-
return /* @__PURE__ */ l.createElement(
|
|
277
|
-
ref:
|
|
278
|
-
title:
|
|
276
|
+
return /* @__PURE__ */ l.createElement(ye, q({}, e, {
|
|
277
|
+
ref: t,
|
|
278
|
+
title: n,
|
|
279
279
|
ariaId: a,
|
|
280
280
|
prefixCls: o,
|
|
281
281
|
holderRef: I,
|
|
282
|
-
style:
|
|
282
|
+
style: A(A(A({}, w), r), b),
|
|
283
283
|
className: z(i, S)
|
|
284
284
|
}));
|
|
285
285
|
});
|
|
286
286
|
});
|
|
287
|
-
|
|
288
|
-
var
|
|
289
|
-
var o =
|
|
290
|
-
return /* @__PURE__ */ l.createElement(
|
|
287
|
+
Qe.displayName = "Content";
|
|
288
|
+
var gn = function(t) {
|
|
289
|
+
var o = t.prefixCls, n = t.style, r = t.visible, i = t.maskProps, d = t.motionName, c = t.className;
|
|
290
|
+
return /* @__PURE__ */ l.createElement(He, {
|
|
291
291
|
key: "mask",
|
|
292
292
|
visible: r,
|
|
293
293
|
motionName: d,
|
|
@@ -296,16 +296,16 @@ var gt = function(n) {
|
|
|
296
296
|
var a = s.className, f = s.style;
|
|
297
297
|
return /* @__PURE__ */ l.createElement("div", q({
|
|
298
298
|
ref: m,
|
|
299
|
-
style:
|
|
299
|
+
style: A(A({}, f), n),
|
|
300
300
|
className: z("".concat(o, "-mask"), a, c)
|
|
301
301
|
}, i));
|
|
302
302
|
});
|
|
303
|
-
},
|
|
304
|
-
var o =
|
|
303
|
+
}, vn = function(t) {
|
|
304
|
+
var o = t.prefixCls, n = o === void 0 ? "rc-dialog" : o, r = t.zIndex, i = t.visible, d = i === void 0 ? !1 : i, c = t.keyboard, s = c === void 0 ? !0 : c, m = t.focusTriggerAfterClose, a = m === void 0 ? !0 : m, f = t.wrapStyle, u = t.wrapClassName, v = t.wrapProps, E = t.onClose, C = t.afterOpenChange, p = t.afterClose, y = t.transitionName, b = t.animation, P = t.closable, O = P === void 0 ? !0 : P, I = t.mask, S = I === void 0 ? !0 : I, w = t.maskTransitionName, L = t.maskAnimation, B = t.maskClosable, X = B === void 0 ? !0 : B, g = t.maskStyle, x = t.maskProps, $ = t.rootClassName, j = t.classNames, F = t.styles;
|
|
305
305
|
process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(M) {
|
|
306
|
-
Oe(!(M in
|
|
307
|
-
}), "wrapClassName" in
|
|
308
|
-
var T =
|
|
306
|
+
Oe(!(M in t), "".concat(M, " is deprecated, please use styles instead."));
|
|
307
|
+
}), "wrapClassName" in t && Oe(!1, "wrapClassName is deprecated, please use classNames instead."));
|
|
308
|
+
var T = Z(), R = Z(), K = Z(), ne = l.useState(d), Q = ve(ne, 2), Y = Q[0], G = Q[1], oe = Zt();
|
|
309
309
|
function U() {
|
|
310
310
|
Se(R.current, document.activeElement) || (T.current = document.activeElement);
|
|
311
311
|
}
|
|
@@ -315,7 +315,7 @@ var gt = function(n) {
|
|
|
315
315
|
(M = K.current) === null || M === void 0 || M.focus();
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function H(M) {
|
|
319
319
|
if (M)
|
|
320
320
|
de();
|
|
321
321
|
else {
|
|
@@ -328,16 +328,16 @@ var gt = function(n) {
|
|
|
328
328
|
}
|
|
329
329
|
T.current = null;
|
|
330
330
|
}
|
|
331
|
-
Y && (
|
|
331
|
+
Y && (p == null || p());
|
|
332
332
|
}
|
|
333
333
|
C == null || C(M);
|
|
334
334
|
}
|
|
335
335
|
function _(M) {
|
|
336
336
|
E == null || E(M);
|
|
337
337
|
}
|
|
338
|
-
var V =
|
|
338
|
+
var V = Z(!1), re = Z(), Ct = function() {
|
|
339
339
|
clearTimeout(re.current), V.current = !0;
|
|
340
|
-
},
|
|
340
|
+
}, pt = function() {
|
|
341
341
|
re.current = setTimeout(function() {
|
|
342
342
|
V.current = !1;
|
|
343
343
|
});
|
|
@@ -345,7 +345,7 @@ var gt = function(n) {
|
|
|
345
345
|
X && ($e = function(ue) {
|
|
346
346
|
V.current ? V.current = !1 : R.current === ue.target && _(ue);
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function bt(M) {
|
|
349
349
|
if (s && M.keyCode === we.ESC) {
|
|
350
350
|
M.stopPropagation(), _(M);
|
|
351
351
|
return;
|
|
@@ -359,59 +359,59 @@ var gt = function(n) {
|
|
|
359
359
|
clearTimeout(re.current);
|
|
360
360
|
};
|
|
361
361
|
}, []);
|
|
362
|
-
var
|
|
362
|
+
var ht = A(A(A({
|
|
363
363
|
zIndex: r
|
|
364
364
|
}, f), F == null ? void 0 : F.wrapper), {}, {
|
|
365
365
|
display: Y ? null : "none"
|
|
366
366
|
});
|
|
367
367
|
return /* @__PURE__ */ l.createElement("div", q({
|
|
368
|
-
className: z("".concat(
|
|
369
|
-
},
|
|
368
|
+
className: z("".concat(n, "-root"), $)
|
|
369
|
+
}, be(t, {
|
|
370
370
|
data: !0
|
|
371
|
-
})), /* @__PURE__ */ l.createElement(
|
|
372
|
-
prefixCls:
|
|
371
|
+
})), /* @__PURE__ */ l.createElement(gn, {
|
|
372
|
+
prefixCls: n,
|
|
373
373
|
visible: S && d,
|
|
374
|
-
motionName: Ie(
|
|
375
|
-
style:
|
|
374
|
+
motionName: Ie(n, w, L),
|
|
375
|
+
style: A(A({
|
|
376
376
|
zIndex: r
|
|
377
377
|
}, g), F == null ? void 0 : F.mask),
|
|
378
378
|
maskProps: x,
|
|
379
379
|
className: j == null ? void 0 : j.mask
|
|
380
380
|
}), /* @__PURE__ */ l.createElement("div", q({
|
|
381
381
|
tabIndex: -1,
|
|
382
|
-
onKeyDown:
|
|
383
|
-
className: z("".concat(
|
|
382
|
+
onKeyDown: bt,
|
|
383
|
+
className: z("".concat(n, "-wrap"), u, j == null ? void 0 : j.wrapper),
|
|
384
384
|
ref: R,
|
|
385
385
|
onClick: $e,
|
|
386
|
-
style:
|
|
387
|
-
},
|
|
388
|
-
onMouseDown:
|
|
389
|
-
onMouseUp:
|
|
386
|
+
style: ht
|
|
387
|
+
}, v), /* @__PURE__ */ l.createElement(Qe, q({}, t, {
|
|
388
|
+
onMouseDown: Ct,
|
|
389
|
+
onMouseUp: pt,
|
|
390
390
|
ref: K,
|
|
391
391
|
closable: O,
|
|
392
392
|
ariaId: oe,
|
|
393
|
-
prefixCls:
|
|
393
|
+
prefixCls: n,
|
|
394
394
|
visible: d && Y,
|
|
395
395
|
onClose: _,
|
|
396
|
-
onVisibleChanged:
|
|
397
|
-
motionName: Ie(
|
|
396
|
+
onVisibleChanged: H,
|
|
397
|
+
motionName: Ie(n, y, b)
|
|
398
398
|
}))));
|
|
399
|
-
}, Ye = function(
|
|
400
|
-
var o =
|
|
399
|
+
}, Ye = function(t) {
|
|
400
|
+
var o = t.visible, n = t.getContainer, r = t.forceRender, i = t.destroyOnClose, d = i === void 0 ? !1 : i, c = t.afterClose, s = t.panelRef, m = l.useState(o), a = ve(m, 2), f = a[0], u = a[1], v = l.useMemo(function() {
|
|
401
401
|
return {
|
|
402
402
|
panel: s
|
|
403
403
|
};
|
|
404
404
|
}, [s]);
|
|
405
405
|
return l.useEffect(function() {
|
|
406
406
|
o && u(!0);
|
|
407
|
-
}, [o]), !r && d && !f ? null : /* @__PURE__ */ l.createElement(
|
|
408
|
-
value:
|
|
409
|
-
}, /* @__PURE__ */ l.createElement(
|
|
407
|
+
}, [o]), !r && d && !f ? null : /* @__PURE__ */ l.createElement(Ze.Provider, {
|
|
408
|
+
value: v
|
|
409
|
+
}, /* @__PURE__ */ l.createElement(Xt, {
|
|
410
410
|
open: o || r || f,
|
|
411
411
|
autoDestroy: !1,
|
|
412
|
-
getContainer:
|
|
412
|
+
getContainer: n,
|
|
413
413
|
autoLock: o || f
|
|
414
|
-
}, /* @__PURE__ */ l.createElement(
|
|
414
|
+
}, /* @__PURE__ */ l.createElement(vn, q({}, t, {
|
|
415
415
|
destroyOnClose: d,
|
|
416
416
|
afterClose: function() {
|
|
417
417
|
c == null || c(), u(!1);
|
|
@@ -428,40 +428,40 @@ function Me(e) {
|
|
|
428
428
|
}
|
|
429
429
|
function Re(e) {
|
|
430
430
|
const {
|
|
431
|
-
closable:
|
|
431
|
+
closable: t,
|
|
432
432
|
closeIcon: o
|
|
433
433
|
} = e || {};
|
|
434
|
-
return
|
|
434
|
+
return h.useMemo(() => {
|
|
435
435
|
if (
|
|
436
436
|
// If `closable`, whatever rest be should be true
|
|
437
|
-
!
|
|
437
|
+
!t && (t === !1 || o === !1 || o === null)
|
|
438
438
|
)
|
|
439
439
|
return !1;
|
|
440
|
-
if (
|
|
440
|
+
if (t === void 0 && o === void 0)
|
|
441
441
|
return null;
|
|
442
|
-
let
|
|
442
|
+
let n = {
|
|
443
443
|
closeIcon: typeof o != "boolean" && o !== null ? o : void 0
|
|
444
444
|
};
|
|
445
|
-
return
|
|
446
|
-
}, [
|
|
445
|
+
return t && typeof t == "object" && (n = Object.assign(Object.assign({}, n), t)), n;
|
|
446
|
+
}, [t, o]);
|
|
447
447
|
}
|
|
448
448
|
function je() {
|
|
449
449
|
const e = {};
|
|
450
|
-
for (var
|
|
451
|
-
o[
|
|
450
|
+
for (var t = arguments.length, o = new Array(t), n = 0; n < t; n++)
|
|
451
|
+
o[n] = arguments[n];
|
|
452
452
|
return o.forEach((r) => {
|
|
453
453
|
r && Object.keys(r).forEach((i) => {
|
|
454
454
|
r[i] !== void 0 && (e[i] = r[i]);
|
|
455
455
|
});
|
|
456
456
|
}), e;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
459
|
-
function
|
|
460
|
-
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
461
|
-
const
|
|
462
|
-
closeIcon: /* @__PURE__ */
|
|
463
|
-
}, o), [o]), c =
|
|
464
|
-
return
|
|
458
|
+
const Cn = {};
|
|
459
|
+
function pn(e, t) {
|
|
460
|
+
let o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Cn;
|
|
461
|
+
const n = Re(e), r = Re(t), i = typeof n != "boolean" ? !!(n != null && n.disabled) : !1, d = h.useMemo(() => Object.assign({
|
|
462
|
+
closeIcon: /* @__PURE__ */ h.createElement(pe, null)
|
|
463
|
+
}, o), [o]), c = h.useMemo(() => n === !1 ? !1 : n ? je(d, r, n) : r === !1 ? !1 : r ? je(d, r) : d.closable ? d : !1, [n, r, d]);
|
|
464
|
+
return h.useMemo(() => {
|
|
465
465
|
if (c === !1)
|
|
466
466
|
return [!1, null, i];
|
|
467
467
|
const {
|
|
@@ -472,70 +472,70 @@ function bt(e, n) {
|
|
|
472
472
|
let a = m;
|
|
473
473
|
if (a != null) {
|
|
474
474
|
s && (a = s(m));
|
|
475
|
-
const f =
|
|
476
|
-
Object.keys(f).length && (a = /* @__PURE__ */
|
|
475
|
+
const f = be(c, !0);
|
|
476
|
+
Object.keys(f).length && (a = /* @__PURE__ */ h.isValidElement(a) ? /* @__PURE__ */ h.cloneElement(a, f) : /* @__PURE__ */ h.createElement("span", Object.assign({}, f), a));
|
|
477
477
|
}
|
|
478
478
|
return [!0, a, i];
|
|
479
479
|
}, [c, d]);
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const bn = () => wt() && window.document.documentElement;
|
|
482
482
|
function Be() {
|
|
483
483
|
}
|
|
484
|
-
const
|
|
484
|
+
const hn = /* @__PURE__ */ l.createContext({
|
|
485
485
|
add: Be,
|
|
486
486
|
remove: Be
|
|
487
487
|
});
|
|
488
|
-
function
|
|
489
|
-
const
|
|
490
|
-
return
|
|
488
|
+
function yn(e) {
|
|
489
|
+
const t = l.useContext(hn), o = l.useRef(null);
|
|
490
|
+
return It((r) => {
|
|
491
491
|
if (r) {
|
|
492
492
|
const i = e ? r.querySelector(e) : r;
|
|
493
|
-
|
|
493
|
+
t.add(i), o.current = i;
|
|
494
494
|
} else
|
|
495
|
-
|
|
495
|
+
t.remove(o.current);
|
|
496
496
|
});
|
|
497
497
|
}
|
|
498
498
|
const De = () => {
|
|
499
499
|
const {
|
|
500
500
|
cancelButtonProps: e,
|
|
501
|
-
cancelTextLocale:
|
|
501
|
+
cancelTextLocale: t,
|
|
502
502
|
onCancel: o
|
|
503
503
|
} = ae(le);
|
|
504
|
-
return /* @__PURE__ */
|
|
504
|
+
return /* @__PURE__ */ h.createElement(qe, Object.assign({
|
|
505
505
|
onClick: o
|
|
506
|
-
}, e),
|
|
506
|
+
}, e), t);
|
|
507
507
|
}, ze = () => {
|
|
508
508
|
const {
|
|
509
509
|
confirmLoading: e,
|
|
510
|
-
okButtonProps:
|
|
510
|
+
okButtonProps: t,
|
|
511
511
|
okType: o,
|
|
512
|
-
okTextLocale:
|
|
512
|
+
okTextLocale: n,
|
|
513
513
|
onOk: r
|
|
514
514
|
} = ae(le);
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ h.createElement(qe, Object.assign({}, Jt(o), {
|
|
516
516
|
loading: e,
|
|
517
517
|
onClick: r
|
|
518
|
-
},
|
|
518
|
+
}, t), n);
|
|
519
519
|
};
|
|
520
|
-
function Je(e,
|
|
521
|
-
return /* @__PURE__ */
|
|
520
|
+
function Je(e, t) {
|
|
521
|
+
return /* @__PURE__ */ h.createElement("span", {
|
|
522
522
|
className: `${e}-close-x`
|
|
523
|
-
},
|
|
523
|
+
}, t || /* @__PURE__ */ h.createElement(pe, {
|
|
524
524
|
className: `${e}-close-icon`
|
|
525
525
|
}));
|
|
526
526
|
}
|
|
527
|
-
const
|
|
527
|
+
const et = (e) => {
|
|
528
528
|
const {
|
|
529
|
-
okText:
|
|
529
|
+
okText: t,
|
|
530
530
|
okType: o = "primary",
|
|
531
|
-
cancelText:
|
|
531
|
+
cancelText: n,
|
|
532
532
|
confirmLoading: r,
|
|
533
533
|
onOk: i,
|
|
534
534
|
onCancel: d,
|
|
535
535
|
okButtonProps: c,
|
|
536
536
|
cancelButtonProps: s,
|
|
537
537
|
footer: m
|
|
538
|
-
} = e, [a] =
|
|
538
|
+
} = e, [a] = he("Modal", Ve()), f = t || (a == null ? void 0 : a.okText), u = n || (a == null ? void 0 : a.cancelText), v = {
|
|
539
539
|
confirmLoading: r,
|
|
540
540
|
okButtonProps: c,
|
|
541
541
|
cancelButtonProps: s,
|
|
@@ -544,14 +544,14 @@ const en = (e) => {
|
|
|
544
544
|
okType: o,
|
|
545
545
|
onOk: i,
|
|
546
546
|
onCancel: d
|
|
547
|
-
}, E =
|
|
547
|
+
}, E = h.useMemo(() => v, k(Object.values(v)));
|
|
548
548
|
let C;
|
|
549
|
-
return typeof m == "function" || typeof m > "u" ? (C = /* @__PURE__ */
|
|
549
|
+
return typeof m == "function" || typeof m > "u" ? (C = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(De, null), /* @__PURE__ */ h.createElement(ze, null)), typeof m == "function" && (C = m(C, {
|
|
550
550
|
OkBtn: ze,
|
|
551
551
|
CancelBtn: De
|
|
552
|
-
})), C = /* @__PURE__ */
|
|
552
|
+
})), C = /* @__PURE__ */ h.createElement(Xe, {
|
|
553
553
|
value: E
|
|
554
|
-
}, C)) : C = m, /* @__PURE__ */
|
|
554
|
+
}, C)) : C = m, /* @__PURE__ */ h.createElement(Ft, {
|
|
555
555
|
disabled: !1
|
|
556
556
|
}, C);
|
|
557
557
|
};
|
|
@@ -561,14 +561,14 @@ function Fe(e) {
|
|
|
561
561
|
inset: 0
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const xn = (e) => {
|
|
565
565
|
const {
|
|
566
|
-
componentCls:
|
|
566
|
+
componentCls: t,
|
|
567
567
|
antCls: o
|
|
568
568
|
} = e;
|
|
569
569
|
return [{
|
|
570
|
-
[`${
|
|
571
|
-
[`${
|
|
570
|
+
[`${t}-root`]: {
|
|
571
|
+
[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]: {
|
|
572
572
|
// reset scale avoid mousePosition bug
|
|
573
573
|
transform: "none",
|
|
574
574
|
opacity: 0,
|
|
@@ -578,19 +578,19 @@ const xt = (e) => {
|
|
|
578
578
|
},
|
|
579
579
|
// https://github.com/ant-design/ant-design/issues/37329
|
|
580
580
|
// https://github.com/ant-design/ant-design/issues/40272
|
|
581
|
-
[`${
|
|
581
|
+
[`${t}${o}-zoom-leave ${t}-content`]: {
|
|
582
582
|
pointerEvents: "none"
|
|
583
583
|
},
|
|
584
|
-
[`${
|
|
584
|
+
[`${t}-mask`]: Object.assign(Object.assign({}, Fe("fixed")), {
|
|
585
585
|
zIndex: e.zIndexPopupBase,
|
|
586
586
|
height: "100%",
|
|
587
587
|
backgroundColor: e.colorBgMask,
|
|
588
588
|
pointerEvents: "none",
|
|
589
|
-
[`${
|
|
589
|
+
[`${t}-hidden`]: {
|
|
590
590
|
display: "none"
|
|
591
591
|
}
|
|
592
592
|
}),
|
|
593
|
-
[`${
|
|
593
|
+
[`${t}-wrap`]: Object.assign(Object.assign({}, Fe("fixed")), {
|
|
594
594
|
zIndex: e.zIndexPopupBase,
|
|
595
595
|
overflow: "auto",
|
|
596
596
|
outline: 0,
|
|
@@ -598,20 +598,20 @@ const xt = (e) => {
|
|
|
598
598
|
})
|
|
599
599
|
}
|
|
600
600
|
}, {
|
|
601
|
-
[`${
|
|
601
|
+
[`${t}-root`]: cn(e)
|
|
602
602
|
}];
|
|
603
|
-
}, $
|
|
603
|
+
}, $n = (e) => {
|
|
604
604
|
const {
|
|
605
|
-
componentCls:
|
|
605
|
+
componentCls: t
|
|
606
606
|
} = e;
|
|
607
607
|
return [
|
|
608
608
|
// ======================== Root =========================
|
|
609
609
|
{
|
|
610
|
-
[`${
|
|
611
|
-
[`${
|
|
610
|
+
[`${t}-root`]: {
|
|
611
|
+
[`${t}-wrap-rtl`]: {
|
|
612
612
|
direction: "rtl"
|
|
613
613
|
},
|
|
614
|
-
[`${
|
|
614
|
+
[`${t}-centered`]: {
|
|
615
615
|
textAlign: "center",
|
|
616
616
|
"&::before": {
|
|
617
617
|
display: "inline-block",
|
|
@@ -620,7 +620,7 @@ const xt = (e) => {
|
|
|
620
620
|
verticalAlign: "middle",
|
|
621
621
|
content: '""'
|
|
622
622
|
},
|
|
623
|
-
[
|
|
623
|
+
[t]: {
|
|
624
624
|
top: 0,
|
|
625
625
|
display: "inline-block",
|
|
626
626
|
paddingBottom: 0,
|
|
@@ -629,12 +629,12 @@ const xt = (e) => {
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
[`@media (max-width: ${e.screenSMMax}px)`]: {
|
|
632
|
-
[
|
|
632
|
+
[t]: {
|
|
633
633
|
maxWidth: "calc(100vw - 16px)",
|
|
634
634
|
margin: `${N(e.marginXS)} auto`
|
|
635
635
|
},
|
|
636
|
-
[`${
|
|
637
|
-
[
|
|
636
|
+
[`${t}-centered`]: {
|
|
637
|
+
[t]: {
|
|
638
638
|
flex: 1
|
|
639
639
|
}
|
|
640
640
|
}
|
|
@@ -643,7 +643,7 @@ const xt = (e) => {
|
|
|
643
643
|
},
|
|
644
644
|
// ======================== Modal ========================
|
|
645
645
|
{
|
|
646
|
-
[
|
|
646
|
+
[t]: Object.assign(Object.assign({}, Rt(e)), {
|
|
647
647
|
pointerEvents: "none",
|
|
648
648
|
position: "relative",
|
|
649
649
|
top: 100,
|
|
@@ -651,7 +651,7 @@ const xt = (e) => {
|
|
|
651
651
|
maxWidth: `calc(100vw - ${N(e.calc(e.margin).mul(2).equal())})`,
|
|
652
652
|
margin: "0 auto",
|
|
653
653
|
paddingBottom: e.paddingLG,
|
|
654
|
-
[`${
|
|
654
|
+
[`${t}-title`]: {
|
|
655
655
|
margin: 0,
|
|
656
656
|
color: e.titleColor,
|
|
657
657
|
fontWeight: e.fontWeightStrong,
|
|
@@ -659,7 +659,7 @@ const xt = (e) => {
|
|
|
659
659
|
lineHeight: e.titleLineHeight,
|
|
660
660
|
wordWrap: "break-word"
|
|
661
661
|
},
|
|
662
|
-
[`${
|
|
662
|
+
[`${t}-content`]: {
|
|
663
663
|
position: "relative",
|
|
664
664
|
backgroundColor: e.contentBg,
|
|
665
665
|
backgroundClip: "padding-box",
|
|
@@ -669,7 +669,7 @@ const xt = (e) => {
|
|
|
669
669
|
pointerEvents: "auto",
|
|
670
670
|
padding: e.contentPadding
|
|
671
671
|
},
|
|
672
|
-
[`${
|
|
672
|
+
[`${t}-close`]: Object.assign({
|
|
673
673
|
position: "absolute",
|
|
674
674
|
top: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
|
|
675
675
|
insetInlineEnd: e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),
|
|
@@ -707,8 +707,8 @@ const xt = (e) => {
|
|
|
707
707
|
"&:active": {
|
|
708
708
|
backgroundColor: e.colorBgTextActive
|
|
709
709
|
}
|
|
710
|
-
},
|
|
711
|
-
[`${
|
|
710
|
+
}, jt(e)),
|
|
711
|
+
[`${t}-header`]: {
|
|
712
712
|
color: e.colorText,
|
|
713
713
|
background: e.headerBg,
|
|
714
714
|
borderRadius: `${N(e.borderRadiusLG)} ${N(e.borderRadiusLG)} 0 0`,
|
|
@@ -716,12 +716,12 @@ const xt = (e) => {
|
|
|
716
716
|
padding: e.headerPadding,
|
|
717
717
|
borderBottom: e.headerBorderBottom
|
|
718
718
|
},
|
|
719
|
-
[`${
|
|
719
|
+
[`${t}-body`]: {
|
|
720
720
|
fontSize: e.fontSize,
|
|
721
721
|
lineHeight: e.lineHeight,
|
|
722
722
|
wordWrap: "break-word",
|
|
723
723
|
padding: e.bodyPadding,
|
|
724
|
-
[`${
|
|
724
|
+
[`${t}-body-skeleton`]: {
|
|
725
725
|
width: "100%",
|
|
726
726
|
height: "100%",
|
|
727
727
|
display: "flex",
|
|
@@ -730,7 +730,7 @@ const xt = (e) => {
|
|
|
730
730
|
margin: `${N(e.margin)} auto`
|
|
731
731
|
}
|
|
732
732
|
},
|
|
733
|
-
[`${
|
|
733
|
+
[`${t}-footer`]: {
|
|
734
734
|
textAlign: "end",
|
|
735
735
|
background: e.footerBg,
|
|
736
736
|
marginTop: e.footerMarginTop,
|
|
@@ -741,66 +741,66 @@ const xt = (e) => {
|
|
|
741
741
|
marginInlineStart: e.marginXS
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
|
-
[`${
|
|
744
|
+
[`${t}-open`]: {
|
|
745
745
|
overflow: "hidden"
|
|
746
746
|
}
|
|
747
747
|
})
|
|
748
748
|
},
|
|
749
749
|
// ======================== Pure =========================
|
|
750
750
|
{
|
|
751
|
-
[`${
|
|
751
|
+
[`${t}-pure-panel`]: {
|
|
752
752
|
top: "auto",
|
|
753
753
|
padding: 0,
|
|
754
754
|
display: "flex",
|
|
755
755
|
flexDirection: "column",
|
|
756
|
-
[`${
|
|
757
|
-
${
|
|
758
|
-
${
|
|
756
|
+
[`${t}-content,
|
|
757
|
+
${t}-body,
|
|
758
|
+
${t}-confirm-body-wrapper`]: {
|
|
759
759
|
display: "flex",
|
|
760
760
|
flexDirection: "column",
|
|
761
761
|
flex: "auto"
|
|
762
762
|
},
|
|
763
|
-
[`${
|
|
763
|
+
[`${t}-confirm-body`]: {
|
|
764
764
|
marginBottom: "auto"
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
];
|
|
769
|
-
},
|
|
769
|
+
}, En = (e) => {
|
|
770
770
|
const {
|
|
771
|
-
componentCls:
|
|
771
|
+
componentCls: t
|
|
772
772
|
} = e;
|
|
773
773
|
return {
|
|
774
|
-
[`${
|
|
775
|
-
[`${
|
|
774
|
+
[`${t}-root`]: {
|
|
775
|
+
[`${t}-wrap-rtl`]: {
|
|
776
776
|
direction: "rtl",
|
|
777
|
-
[`${
|
|
777
|
+
[`${t}-confirm-body`]: {
|
|
778
778
|
direction: "rtl"
|
|
779
779
|
}
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
|
-
},
|
|
783
|
+
}, On = (e) => {
|
|
784
784
|
const {
|
|
785
|
-
componentCls:
|
|
786
|
-
} = e, o =
|
|
785
|
+
componentCls: t
|
|
786
|
+
} = e, o = en(e);
|
|
787
787
|
delete o.xs;
|
|
788
|
-
const
|
|
788
|
+
const n = Object.keys(o).map((r) => ({
|
|
789
789
|
[`@media (min-width: ${N(o[r])})`]: {
|
|
790
|
-
width: `var(--${
|
|
790
|
+
width: `var(--${t.replace(".", "")}-${r}-width)`
|
|
791
791
|
}
|
|
792
792
|
}));
|
|
793
793
|
return {
|
|
794
|
-
[`${
|
|
795
|
-
[
|
|
796
|
-
width: `var(--${
|
|
797
|
-
}].concat(k(
|
|
794
|
+
[`${t}-root`]: {
|
|
795
|
+
[t]: [{
|
|
796
|
+
width: `var(--${t.replace(".", "")}-xs-width)`
|
|
797
|
+
}].concat(k(n))
|
|
798
798
|
}
|
|
799
799
|
};
|
|
800
|
-
},
|
|
801
|
-
const
|
|
802
|
-
return
|
|
803
|
-
modalHeaderHeight: e.calc(e.calc(
|
|
800
|
+
}, tt = (e) => {
|
|
801
|
+
const t = e.padding, o = e.fontSizeHeading5, n = e.lineHeightHeading5;
|
|
802
|
+
return Mt(e, {
|
|
803
|
+
modalHeaderHeight: e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),
|
|
804
804
|
modalFooterBorderColorSplit: e.colorSplit,
|
|
805
805
|
modalFooterBorderStyle: e.lineType,
|
|
806
806
|
modalFooterBorderWidth: e.lineWidth,
|
|
@@ -810,7 +810,7 @@ const xt = (e) => {
|
|
|
810
810
|
modalConfirmIconSize: e.fontHeight,
|
|
811
811
|
modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
|
|
812
812
|
});
|
|
813
|
-
},
|
|
813
|
+
}, nt = (e) => ({
|
|
814
814
|
footerBg: "transparent",
|
|
815
815
|
headerBg: e.colorBgElevated,
|
|
816
816
|
titleLineHeight: e.lineHeightHeading5,
|
|
@@ -830,23 +830,23 @@ const xt = (e) => {
|
|
|
830
830
|
confirmBodyPadding: e.wireframe ? `${N(e.padding * 2)} ${N(e.padding * 2)} ${N(e.paddingLG)}` : 0,
|
|
831
831
|
confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
|
|
832
832
|
confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
|
|
833
|
-
}),
|
|
834
|
-
const
|
|
835
|
-
return [$t
|
|
836
|
-
},
|
|
833
|
+
}), ot = Tt("Modal", (e) => {
|
|
834
|
+
const t = tt(e);
|
|
835
|
+
return [$n(t), En(t), xn(t), tn(t, "zoom"), On(t)];
|
|
836
|
+
}, nt, {
|
|
837
837
|
unitless: {
|
|
838
838
|
titleLineHeight: !0
|
|
839
839
|
}
|
|
840
840
|
});
|
|
841
|
-
var
|
|
841
|
+
var Sn = function(e, t) {
|
|
842
842
|
var o = {};
|
|
843
|
-
for (var
|
|
844
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0,
|
|
845
|
-
|
|
843
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
844
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
845
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
846
846
|
return o;
|
|
847
847
|
};
|
|
848
848
|
let ge;
|
|
849
|
-
const
|
|
849
|
+
const wn = (e) => {
|
|
850
850
|
ge = {
|
|
851
851
|
x: e.pageX,
|
|
852
852
|
y: e.pageY
|
|
@@ -854,30 +854,30 @@ const wt = (e) => {
|
|
|
854
854
|
ge = null;
|
|
855
855
|
}, 100);
|
|
856
856
|
};
|
|
857
|
-
|
|
858
|
-
const
|
|
859
|
-
var
|
|
857
|
+
bn() && document.documentElement.addEventListener("click", wn, !0);
|
|
858
|
+
const rt = (e) => {
|
|
859
|
+
var t;
|
|
860
860
|
const {
|
|
861
861
|
getPopupContainer: o,
|
|
862
|
-
getPrefixCls:
|
|
862
|
+
getPrefixCls: n,
|
|
863
863
|
direction: r,
|
|
864
864
|
modal: i
|
|
865
|
-
} = l.useContext(ce), d = (
|
|
865
|
+
} = l.useContext(ce), d = (H) => {
|
|
866
866
|
const {
|
|
867
867
|
onCancel: _
|
|
868
868
|
} = e;
|
|
869
|
-
_ == null || _(
|
|
870
|
-
}, c = (
|
|
869
|
+
_ == null || _(H);
|
|
870
|
+
}, c = (H) => {
|
|
871
871
|
const {
|
|
872
872
|
onOk: _
|
|
873
873
|
} = e;
|
|
874
|
-
_ == null || _(
|
|
874
|
+
_ == null || _(H);
|
|
875
875
|
};
|
|
876
876
|
if (process.env.NODE_ENV !== "production") {
|
|
877
|
-
const
|
|
877
|
+
const H = Ce("Modal");
|
|
878
878
|
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((_) => {
|
|
879
879
|
let [V, re] = _;
|
|
880
|
-
|
|
880
|
+
H.deprecated(!(V in e), V, re);
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
883
|
const {
|
|
@@ -886,41 +886,41 @@ const rn = (e) => {
|
|
|
886
886
|
rootClassName: a,
|
|
887
887
|
open: f,
|
|
888
888
|
wrapClassName: u,
|
|
889
|
-
centered:
|
|
889
|
+
centered: v,
|
|
890
890
|
getContainer: E,
|
|
891
891
|
focusTriggerAfterClose: C = !0,
|
|
892
|
-
style:
|
|
892
|
+
style: p,
|
|
893
893
|
// Deprecated
|
|
894
|
-
visible:
|
|
895
|
-
width:
|
|
894
|
+
visible: y,
|
|
895
|
+
width: b = 520,
|
|
896
896
|
footer: P,
|
|
897
897
|
classNames: O,
|
|
898
898
|
styles: I,
|
|
899
899
|
children: S,
|
|
900
900
|
loading: w
|
|
901
|
-
} = e, L =
|
|
902
|
-
[`${B}-centered`]:
|
|
901
|
+
} = e, L = Sn(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), B = n("modal", s), X = n(), g = Ke(B), [x, $, j] = ot(B, g), F = z(u, {
|
|
902
|
+
[`${B}-centered`]: v ?? (i == null ? void 0 : i.centered),
|
|
903
903
|
[`${B}-wrap-rtl`]: r === "rtl"
|
|
904
|
-
}), T = P !== null && !w ? /* @__PURE__ */ l.createElement(
|
|
904
|
+
}), T = P !== null && !w ? /* @__PURE__ */ l.createElement(et, Object.assign({}, e, {
|
|
905
905
|
onOk: c,
|
|
906
906
|
onCancel: d
|
|
907
|
-
})) : null, [R, K,
|
|
907
|
+
})) : null, [R, K, ne] = pn(Me(e), Me(i), {
|
|
908
908
|
closable: !0,
|
|
909
|
-
closeIcon: /* @__PURE__ */ l.createElement(
|
|
909
|
+
closeIcon: /* @__PURE__ */ l.createElement(pe, {
|
|
910
910
|
className: `${B}-close-icon`
|
|
911
911
|
}),
|
|
912
|
-
closeIconRender: (
|
|
913
|
-
}),
|
|
914
|
-
const
|
|
912
|
+
closeIconRender: (H) => Je(B, H)
|
|
913
|
+
}), Q = yn(`.${B}-content`), [Y, G] = Kt("Modal", L.zIndex), [oe, U] = l.useMemo(() => b && typeof b == "object" ? [void 0, b] : [b, void 0], [b]), de = l.useMemo(() => {
|
|
914
|
+
const H = {};
|
|
915
915
|
return U && Object.keys(U).forEach((_) => {
|
|
916
916
|
const V = U[_];
|
|
917
|
-
V !== void 0 && (
|
|
918
|
-
}),
|
|
917
|
+
V !== void 0 && (H[`--${B}-${_}-width`] = typeof V == "number" ? `${V}px` : V);
|
|
918
|
+
}), H;
|
|
919
919
|
}, [U]);
|
|
920
|
-
return x(/* @__PURE__ */ l.createElement(
|
|
920
|
+
return x(/* @__PURE__ */ l.createElement(Qt, {
|
|
921
921
|
form: !0,
|
|
922
922
|
space: !0
|
|
923
|
-
}, /* @__PURE__ */ l.createElement(
|
|
923
|
+
}, /* @__PURE__ */ l.createElement(qt.Provider, {
|
|
924
924
|
value: G
|
|
925
925
|
}, /* @__PURE__ */ l.createElement(Ye, Object.assign({
|
|
926
926
|
width: oe
|
|
@@ -930,11 +930,11 @@ const rn = (e) => {
|
|
|
930
930
|
prefixCls: B,
|
|
931
931
|
rootClassName: z($, a, j, g),
|
|
932
932
|
footer: T,
|
|
933
|
-
visible: f ??
|
|
934
|
-
mousePosition: (
|
|
933
|
+
visible: f ?? y,
|
|
934
|
+
mousePosition: (t = L.mousePosition) !== null && t !== void 0 ? t : ge,
|
|
935
935
|
onClose: d,
|
|
936
936
|
closable: R && {
|
|
937
|
-
disabled:
|
|
937
|
+
disabled: ne,
|
|
938
938
|
closeIcon: K
|
|
939
939
|
},
|
|
940
940
|
closeIcon: K,
|
|
@@ -942,13 +942,13 @@ const rn = (e) => {
|
|
|
942
942
|
transitionName: se(X, "zoom", e.transitionName),
|
|
943
943
|
maskTransitionName: se(X, "fade", e.maskTransitionName),
|
|
944
944
|
className: z($, m, i == null ? void 0 : i.className),
|
|
945
|
-
style: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.style),
|
|
945
|
+
style: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.style), p), de),
|
|
946
946
|
classNames: Object.assign(Object.assign(Object.assign({}, i == null ? void 0 : i.classNames), O), {
|
|
947
947
|
wrapper: z(F, O == null ? void 0 : O.wrapper)
|
|
948
948
|
}),
|
|
949
949
|
styles: Object.assign(Object.assign({}, i == null ? void 0 : i.styles), I),
|
|
950
|
-
panelRef:
|
|
951
|
-
}), w ? /* @__PURE__ */ l.createElement(
|
|
950
|
+
panelRef: Q
|
|
951
|
+
}), w ? /* @__PURE__ */ l.createElement(Yt, {
|
|
952
952
|
active: !0,
|
|
953
953
|
title: !1,
|
|
954
954
|
paragraph: {
|
|
@@ -956,18 +956,18 @@ const rn = (e) => {
|
|
|
956
956
|
},
|
|
957
957
|
className: `${B}-body-skeleton`
|
|
958
958
|
}) : S))));
|
|
959
|
-
},
|
|
959
|
+
}, Nn = (e) => {
|
|
960
960
|
const {
|
|
961
|
-
componentCls:
|
|
961
|
+
componentCls: t,
|
|
962
962
|
titleFontSize: o,
|
|
963
|
-
titleLineHeight:
|
|
963
|
+
titleLineHeight: n,
|
|
964
964
|
modalConfirmIconSize: r,
|
|
965
965
|
fontSize: i,
|
|
966
966
|
lineHeight: d,
|
|
967
967
|
modalTitleHeight: c,
|
|
968
968
|
fontHeight: s,
|
|
969
969
|
confirmBodyPadding: m
|
|
970
|
-
} = e, a = `${
|
|
970
|
+
} = e, a = `${t}-confirm`;
|
|
971
971
|
return {
|
|
972
972
|
[a]: {
|
|
973
973
|
"&-rtl": {
|
|
@@ -976,8 +976,8 @@ const rn = (e) => {
|
|
|
976
976
|
[`${e.antCls}-modal-header`]: {
|
|
977
977
|
display: "none"
|
|
978
978
|
},
|
|
979
|
-
[`${a}-body-wrapper`]: Object.assign({},
|
|
980
|
-
[`&${
|
|
979
|
+
[`${a}-body-wrapper`]: Object.assign({}, Dt()),
|
|
980
|
+
[`&${t} ${t}-body`]: {
|
|
981
981
|
padding: m
|
|
982
982
|
},
|
|
983
983
|
// ====================== Body ======================
|
|
@@ -1011,7 +1011,7 @@ const rn = (e) => {
|
|
|
1011
1011
|
color: e.colorTextHeading,
|
|
1012
1012
|
fontWeight: e.fontWeightStrong,
|
|
1013
1013
|
fontSize: o,
|
|
1014
|
-
lineHeight:
|
|
1014
|
+
lineHeight: n
|
|
1015
1015
|
},
|
|
1016
1016
|
[`${a}-content`]: {
|
|
1017
1017
|
color: e.colorText,
|
|
@@ -1042,25 +1042,25 @@ const rn = (e) => {
|
|
|
1042
1042
|
color: e.colorSuccess
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
|
-
},
|
|
1046
|
-
const
|
|
1047
|
-
return [
|
|
1048
|
-
},
|
|
1045
|
+
}, Pn = Bt(["Modal", "confirm"], (e) => {
|
|
1046
|
+
const t = tt(e);
|
|
1047
|
+
return [Nn(t)];
|
|
1048
|
+
}, nt, {
|
|
1049
1049
|
// confirm is weak than modal since no conflict here
|
|
1050
1050
|
order: -1e3
|
|
1051
1051
|
});
|
|
1052
|
-
var
|
|
1052
|
+
var In = function(e, t) {
|
|
1053
1053
|
var o = {};
|
|
1054
|
-
for (var
|
|
1055
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0,
|
|
1056
|
-
|
|
1054
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1055
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1056
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1057
1057
|
return o;
|
|
1058
1058
|
};
|
|
1059
|
-
function
|
|
1059
|
+
function at(e) {
|
|
1060
1060
|
const {
|
|
1061
|
-
prefixCls:
|
|
1061
|
+
prefixCls: t,
|
|
1062
1062
|
icon: o,
|
|
1063
|
-
okText:
|
|
1063
|
+
okText: n,
|
|
1064
1064
|
cancelText: r,
|
|
1065
1065
|
confirmPrefixCls: i,
|
|
1066
1066
|
type: d,
|
|
@@ -1068,9 +1068,9 @@ function an(e) {
|
|
|
1068
1068
|
footer: s,
|
|
1069
1069
|
// Legacy for static function usage
|
|
1070
1070
|
locale: m
|
|
1071
|
-
} = e, a =
|
|
1071
|
+
} = e, a = In(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
|
|
1072
1072
|
if (process.env.NODE_ENV !== "production") {
|
|
1073
|
-
const w =
|
|
1073
|
+
const w = Ce("Modal");
|
|
1074
1074
|
process.env.NODE_ENV !== "production" && w(!(typeof o == "string" && o.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`);
|
|
1075
1075
|
}
|
|
1076
1076
|
let f = o;
|
|
@@ -1080,20 +1080,20 @@ function an(e) {
|
|
|
1080
1080
|
f = /* @__PURE__ */ l.createElement(ke, null);
|
|
1081
1081
|
break;
|
|
1082
1082
|
case "success":
|
|
1083
|
-
f = /* @__PURE__ */ l.createElement(
|
|
1083
|
+
f = /* @__PURE__ */ l.createElement(Vt, null);
|
|
1084
1084
|
break;
|
|
1085
1085
|
case "error":
|
|
1086
|
-
f = /* @__PURE__ */ l.createElement(
|
|
1086
|
+
f = /* @__PURE__ */ l.createElement(Wt, null);
|
|
1087
1087
|
break;
|
|
1088
1088
|
default:
|
|
1089
|
-
f = /* @__PURE__ */ l.createElement(
|
|
1089
|
+
f = /* @__PURE__ */ l.createElement(Gt, null);
|
|
1090
1090
|
}
|
|
1091
|
-
const u = c ?? d === "confirm",
|
|
1092
|
-
autoFocusButton:
|
|
1093
|
-
cancelTextLocale:
|
|
1094
|
-
okTextLocale:
|
|
1091
|
+
const u = c ?? d === "confirm", v = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [E] = he("Modal"), C = m || E, p = n || (u ? C == null ? void 0 : C.okText : C == null ? void 0 : C.justOkText), y = r || (C == null ? void 0 : C.cancelText), b = Object.assign({
|
|
1092
|
+
autoFocusButton: v,
|
|
1093
|
+
cancelTextLocale: y,
|
|
1094
|
+
okTextLocale: p,
|
|
1095
1095
|
mergedOkCancel: u
|
|
1096
|
-
}, a), P = l.useMemo(() =>
|
|
1096
|
+
}, a), P = l.useMemo(() => b, k(Object.values(b))), O = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ne, null), /* @__PURE__ */ l.createElement(Pe, null)), I = e.title !== void 0 && e.title !== null, S = `${i}-body`;
|
|
1097
1097
|
return /* @__PURE__ */ l.createElement("div", {
|
|
1098
1098
|
className: `${i}-body-wrapper`
|
|
1099
1099
|
}, /* @__PURE__ */ l.createElement("div", {
|
|
@@ -1113,15 +1113,15 @@ function an(e) {
|
|
|
1113
1113
|
}, typeof s == "function" ? s(O, {
|
|
1114
1114
|
OkBtn: Pe,
|
|
1115
1115
|
CancelBtn: Ne
|
|
1116
|
-
}) : O)) : s, /* @__PURE__ */ l.createElement(
|
|
1117
|
-
prefixCls:
|
|
1116
|
+
}) : O)) : s, /* @__PURE__ */ l.createElement(Pn, {
|
|
1117
|
+
prefixCls: t
|
|
1118
1118
|
}));
|
|
1119
1119
|
}
|
|
1120
|
-
const
|
|
1120
|
+
const lt = (e) => {
|
|
1121
1121
|
const {
|
|
1122
|
-
close:
|
|
1122
|
+
close: t,
|
|
1123
1123
|
zIndex: o,
|
|
1124
|
-
maskStyle:
|
|
1124
|
+
maskStyle: n,
|
|
1125
1125
|
direction: r,
|
|
1126
1126
|
prefixCls: i,
|
|
1127
1127
|
wrapClassName: d,
|
|
@@ -1132,22 +1132,22 @@ const ln = (e) => {
|
|
|
1132
1132
|
styles: f
|
|
1133
1133
|
} = e;
|
|
1134
1134
|
if (process.env.NODE_ENV !== "production") {
|
|
1135
|
-
const O =
|
|
1135
|
+
const O = Ce("Modal");
|
|
1136
1136
|
[["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((I) => {
|
|
1137
1137
|
let [S, w] = I;
|
|
1138
1138
|
O.deprecated(!(S in e), S, w);
|
|
1139
1139
|
});
|
|
1140
1140
|
}
|
|
1141
|
-
const u = `${i}-confirm`,
|
|
1141
|
+
const u = `${i}-confirm`, v = e.width || 416, E = e.style || {}, C = e.mask === void 0 ? !0 : e.mask, p = e.maskClosable === void 0 ? !1 : e.maskClosable, y = z(u, `${u}-${e.type}`, {
|
|
1142
1142
|
[`${u}-rtl`]: r === "rtl"
|
|
1143
|
-
}, e.className), [,
|
|
1144
|
-
return /* @__PURE__ */ l.createElement(
|
|
1145
|
-
className:
|
|
1143
|
+
}, e.className), [, b] = zt(), P = l.useMemo(() => o !== void 0 ? o : b.zIndexPopupBase + Ut, [o, b]);
|
|
1144
|
+
return /* @__PURE__ */ l.createElement(rt, Object.assign({}, e, {
|
|
1145
|
+
className: y,
|
|
1146
1146
|
wrapClassName: z({
|
|
1147
1147
|
[`${u}-centered`]: !!e.centered
|
|
1148
1148
|
}, d),
|
|
1149
1149
|
onCancel: () => {
|
|
1150
|
-
|
|
1150
|
+
t == null || t({
|
|
1151
1151
|
triggerCancel: !0
|
|
1152
1152
|
}), a == null || a(!1);
|
|
1153
1153
|
},
|
|
@@ -1156,346 +1156,346 @@ const ln = (e) => {
|
|
|
1156
1156
|
transitionName: se(c || "", "zoom", e.transitionName),
|
|
1157
1157
|
maskTransitionName: se(c || "", "fade", e.maskTransitionName),
|
|
1158
1158
|
mask: C,
|
|
1159
|
-
maskClosable:
|
|
1159
|
+
maskClosable: p,
|
|
1160
1160
|
style: E,
|
|
1161
1161
|
styles: Object.assign({
|
|
1162
1162
|
body: s,
|
|
1163
|
-
mask:
|
|
1163
|
+
mask: n
|
|
1164
1164
|
}, f),
|
|
1165
|
-
width:
|
|
1165
|
+
width: v,
|
|
1166
1166
|
zIndex: P,
|
|
1167
1167
|
closable: m
|
|
1168
|
-
}), /* @__PURE__ */ l.createElement(
|
|
1168
|
+
}), /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
|
|
1169
1169
|
confirmPrefixCls: u
|
|
1170
1170
|
})));
|
|
1171
1171
|
}, xe = (e) => {
|
|
1172
1172
|
const {
|
|
1173
|
-
rootPrefixCls:
|
|
1173
|
+
rootPrefixCls: t,
|
|
1174
1174
|
iconPrefixCls: o,
|
|
1175
|
-
direction:
|
|
1175
|
+
direction: n,
|
|
1176
1176
|
theme: r
|
|
1177
1177
|
} = e;
|
|
1178
1178
|
return /* @__PURE__ */ l.createElement(We, {
|
|
1179
|
-
prefixCls:
|
|
1179
|
+
prefixCls: t,
|
|
1180
1180
|
iconPrefixCls: o,
|
|
1181
|
-
direction:
|
|
1181
|
+
direction: n,
|
|
1182
1182
|
theme: r
|
|
1183
|
-
}, /* @__PURE__ */ l.createElement(
|
|
1183
|
+
}, /* @__PURE__ */ l.createElement(lt, Object.assign({}, e)));
|
|
1184
1184
|
};
|
|
1185
|
-
process.env.NODE_ENV !== "production" && (
|
|
1185
|
+
process.env.NODE_ENV !== "production" && (lt.displayName = "ConfirmDialog", xe.displayName = "ConfirmDialogWrapper");
|
|
1186
1186
|
const ee = [];
|
|
1187
|
-
let
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1187
|
+
let it = "";
|
|
1188
|
+
function st() {
|
|
1189
|
+
return it;
|
|
1190
1190
|
}
|
|
1191
|
-
const
|
|
1192
|
-
var
|
|
1191
|
+
const Tn = (e) => {
|
|
1192
|
+
var t, o;
|
|
1193
1193
|
const {
|
|
1194
|
-
prefixCls:
|
|
1194
|
+
prefixCls: n,
|
|
1195
1195
|
getContainer: r,
|
|
1196
1196
|
direction: i
|
|
1197
|
-
} = e, d = Ve(), c = ae(ce), s =
|
|
1197
|
+
} = e, d = Ve(), c = ae(ce), s = st() || c.getPrefixCls(), m = n || `${s}-modal`;
|
|
1198
1198
|
let a = r;
|
|
1199
|
-
return a === !1 && (a = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */
|
|
1199
|
+
return a === !1 && (a = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ h.createElement(xe, Object.assign({}, e, {
|
|
1200
1200
|
rootPrefixCls: s,
|
|
1201
1201
|
prefixCls: m,
|
|
1202
1202
|
iconPrefixCls: c.iconPrefixCls,
|
|
1203
1203
|
theme: c.theme,
|
|
1204
1204
|
direction: i ?? c.direction,
|
|
1205
|
-
locale: (o = (
|
|
1205
|
+
locale: (o = (t = c.locale) === null || t === void 0 ? void 0 : t.Modal) !== null && o !== void 0 ? o : d,
|
|
1206
1206
|
getContainer: a
|
|
1207
1207
|
}));
|
|
1208
1208
|
};
|
|
1209
1209
|
function ie(e) {
|
|
1210
|
-
const
|
|
1211
|
-
process.env.NODE_ENV !== "production" && !
|
|
1210
|
+
const t = At();
|
|
1211
|
+
process.env.NODE_ENV !== "production" && !t.holderRender && _t("Modal");
|
|
1212
1212
|
const o = document.createDocumentFragment();
|
|
1213
|
-
let
|
|
1213
|
+
let n = Object.assign(Object.assign({}, e), {
|
|
1214
1214
|
close: s,
|
|
1215
1215
|
open: !0
|
|
1216
1216
|
}), r, i;
|
|
1217
1217
|
function d() {
|
|
1218
|
-
for (var a, f = arguments.length, u = new Array(f),
|
|
1219
|
-
u[
|
|
1220
|
-
if (u.some((
|
|
1218
|
+
for (var a, f = arguments.length, u = new Array(f), v = 0; v < f; v++)
|
|
1219
|
+
u[v] = arguments[v];
|
|
1220
|
+
if (u.some((p) => p == null ? void 0 : p.triggerCancel)) {
|
|
1221
1221
|
var C;
|
|
1222
1222
|
(a = e.onCancel) === null || a === void 0 || (C = a).call.apply(C, [e, () => {
|
|
1223
1223
|
}].concat(k(u.slice(1))));
|
|
1224
1224
|
}
|
|
1225
|
-
for (let
|
|
1226
|
-
if (ee[
|
|
1227
|
-
ee.splice(
|
|
1225
|
+
for (let p = 0; p < ee.length; p++)
|
|
1226
|
+
if (ee[p] === s) {
|
|
1227
|
+
ee.splice(p, 1);
|
|
1228
1228
|
break;
|
|
1229
1229
|
}
|
|
1230
1230
|
i();
|
|
1231
1231
|
}
|
|
1232
1232
|
function c(a) {
|
|
1233
1233
|
clearTimeout(r), r = setTimeout(() => {
|
|
1234
|
-
const f =
|
|
1235
|
-
i =
|
|
1234
|
+
const f = t.getPrefixCls(void 0, st()), u = t.getIconPrefixCls(), v = t.getTheme(), E = /* @__PURE__ */ h.createElement(Tn, Object.assign({}, a));
|
|
1235
|
+
i = Ht()(/* @__PURE__ */ h.createElement(We, {
|
|
1236
1236
|
prefixCls: f,
|
|
1237
1237
|
iconPrefixCls: u,
|
|
1238
|
-
theme:
|
|
1239
|
-
},
|
|
1238
|
+
theme: v
|
|
1239
|
+
}, t.holderRender ? t.holderRender(E) : E), o);
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
1242
|
function s() {
|
|
1243
1243
|
for (var a = arguments.length, f = new Array(a), u = 0; u < a; u++)
|
|
1244
1244
|
f[u] = arguments[u];
|
|
1245
|
-
|
|
1245
|
+
n = Object.assign(Object.assign({}, n), {
|
|
1246
1246
|
open: !1,
|
|
1247
1247
|
afterClose: () => {
|
|
1248
1248
|
typeof e.afterClose == "function" && e.afterClose(), d.apply(this, f);
|
|
1249
1249
|
}
|
|
1250
|
-
}),
|
|
1250
|
+
}), n.visible && delete n.visible, c(n);
|
|
1251
1251
|
}
|
|
1252
1252
|
function m(a) {
|
|
1253
|
-
typeof a == "function" ?
|
|
1253
|
+
typeof a == "function" ? n = a(n) : n = Object.assign(Object.assign({}, n), a), c(n);
|
|
1254
1254
|
}
|
|
1255
|
-
return c(
|
|
1255
|
+
return c(n), ee.push(s), {
|
|
1256
1256
|
destroy: s,
|
|
1257
1257
|
update: m
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function ct(e) {
|
|
1261
1261
|
return Object.assign(Object.assign({}, e), {
|
|
1262
1262
|
type: "warning"
|
|
1263
1263
|
});
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1265
|
+
function dt(e) {
|
|
1266
1266
|
return Object.assign(Object.assign({}, e), {
|
|
1267
1267
|
type: "info"
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function ut(e) {
|
|
1271
1271
|
return Object.assign(Object.assign({}, e), {
|
|
1272
1272
|
type: "success"
|
|
1273
1273
|
});
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1275
|
+
function ft(e) {
|
|
1276
1276
|
return Object.assign(Object.assign({}, e), {
|
|
1277
1277
|
type: "error"
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function mt(e) {
|
|
1281
1281
|
return Object.assign(Object.assign({}, e), {
|
|
1282
1282
|
type: "confirm"
|
|
1283
1283
|
});
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Mn(e) {
|
|
1286
1286
|
let {
|
|
1287
|
-
rootPrefixCls:
|
|
1287
|
+
rootPrefixCls: t
|
|
1288
1288
|
} = e;
|
|
1289
|
-
process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."),
|
|
1289
|
+
process.env.NODE_ENV !== "production" && Ge(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), it = t;
|
|
1290
1290
|
}
|
|
1291
|
-
var
|
|
1291
|
+
var Rn = function(e, t) {
|
|
1292
1292
|
var o = {};
|
|
1293
|
-
for (var
|
|
1294
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0,
|
|
1295
|
-
|
|
1293
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1294
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1295
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1296
1296
|
return o;
|
|
1297
1297
|
};
|
|
1298
|
-
const
|
|
1298
|
+
const jn = (e, t) => {
|
|
1299
1299
|
var o, {
|
|
1300
|
-
afterClose:
|
|
1300
|
+
afterClose: n,
|
|
1301
1301
|
config: r
|
|
1302
|
-
} = e, i =
|
|
1302
|
+
} = e, i = Rn(e, ["afterClose", "config"]);
|
|
1303
1303
|
const [d, c] = l.useState(!0), [s, m] = l.useState(r), {
|
|
1304
1304
|
direction: a,
|
|
1305
1305
|
getPrefixCls: f
|
|
1306
|
-
} = l.useContext(ce), u = f("modal"),
|
|
1307
|
-
var
|
|
1308
|
-
|
|
1306
|
+
} = l.useContext(ce), u = f("modal"), v = f(), E = () => {
|
|
1307
|
+
var b;
|
|
1308
|
+
n(), (b = s.afterClose) === null || b === void 0 || b.call(s);
|
|
1309
1309
|
}, C = function() {
|
|
1310
|
-
var
|
|
1310
|
+
var b;
|
|
1311
1311
|
c(!1);
|
|
1312
1312
|
for (var P = arguments.length, O = new Array(P), I = 0; I < P; I++)
|
|
1313
1313
|
O[I] = arguments[I];
|
|
1314
1314
|
if (O.some((L) => L == null ? void 0 : L.triggerCancel)) {
|
|
1315
1315
|
var w;
|
|
1316
|
-
(
|
|
1316
|
+
(b = s.onCancel) === null || b === void 0 || (w = b).call.apply(w, [s, () => {
|
|
1317
1317
|
}].concat(k(O.slice(1))));
|
|
1318
1318
|
}
|
|
1319
1319
|
};
|
|
1320
|
-
l.useImperativeHandle(
|
|
1320
|
+
l.useImperativeHandle(t, () => ({
|
|
1321
1321
|
destroy: C,
|
|
1322
|
-
update: (
|
|
1323
|
-
m((P) => Object.assign(Object.assign({}, P),
|
|
1322
|
+
update: (b) => {
|
|
1323
|
+
m((P) => Object.assign(Object.assign({}, P), b));
|
|
1324
1324
|
}
|
|
1325
1325
|
}));
|
|
1326
|
-
const
|
|
1326
|
+
const p = (o = s.okCancel) !== null && o !== void 0 ? o : s.type === "confirm", [y] = he("Modal", Lt.Modal);
|
|
1327
1327
|
return /* @__PURE__ */ l.createElement(xe, Object.assign({
|
|
1328
1328
|
prefixCls: u,
|
|
1329
|
-
rootPrefixCls:
|
|
1329
|
+
rootPrefixCls: v
|
|
1330
1330
|
}, s, {
|
|
1331
1331
|
close: C,
|
|
1332
1332
|
open: d,
|
|
1333
1333
|
afterClose: E,
|
|
1334
|
-
okText: s.okText || (
|
|
1334
|
+
okText: s.okText || (p ? y == null ? void 0 : y.okText : y == null ? void 0 : y.justOkText),
|
|
1335
1335
|
direction: s.direction || a,
|
|
1336
|
-
cancelText: s.cancelText || (
|
|
1336
|
+
cancelText: s.cancelText || (y == null ? void 0 : y.cancelText)
|
|
1337
1337
|
}, i));
|
|
1338
|
-
},
|
|
1338
|
+
}, Bn = /* @__PURE__ */ l.forwardRef(jn);
|
|
1339
1339
|
let _e = 0;
|
|
1340
|
-
const
|
|
1341
|
-
const [o,
|
|
1342
|
-
return l.useImperativeHandle(
|
|
1343
|
-
patchElement:
|
|
1340
|
+
const Dn = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, t) => {
|
|
1341
|
+
const [o, n] = an();
|
|
1342
|
+
return l.useImperativeHandle(t, () => ({
|
|
1343
|
+
patchElement: n
|
|
1344
1344
|
}), []), /* @__PURE__ */ l.createElement(l.Fragment, null, o);
|
|
1345
1345
|
}));
|
|
1346
|
-
function
|
|
1347
|
-
const e = l.useRef(null), [
|
|
1346
|
+
function zn() {
|
|
1347
|
+
const e = l.useRef(null), [t, o] = l.useState([]);
|
|
1348
1348
|
l.useEffect(() => {
|
|
1349
|
-
|
|
1349
|
+
t.length && (k(t).forEach((d) => {
|
|
1350
1350
|
d();
|
|
1351
1351
|
}), o([]));
|
|
1352
|
-
}, [
|
|
1353
|
-
const
|
|
1352
|
+
}, [t]);
|
|
1353
|
+
const n = l.useCallback((i) => function(c) {
|
|
1354
1354
|
var s;
|
|
1355
1355
|
_e += 1;
|
|
1356
1356
|
const m = /* @__PURE__ */ l.createRef();
|
|
1357
1357
|
let a;
|
|
1358
|
-
const f = new Promise((
|
|
1359
|
-
a =
|
|
1358
|
+
const f = new Promise((p) => {
|
|
1359
|
+
a = p;
|
|
1360
1360
|
});
|
|
1361
|
-
let u = !1,
|
|
1362
|
-
const E = /* @__PURE__ */ l.createElement(
|
|
1361
|
+
let u = !1, v;
|
|
1362
|
+
const E = /* @__PURE__ */ l.createElement(Bn, {
|
|
1363
1363
|
key: `modal-${_e}`,
|
|
1364
1364
|
config: i(c),
|
|
1365
1365
|
ref: m,
|
|
1366
1366
|
afterClose: () => {
|
|
1367
|
-
|
|
1367
|
+
v == null || v();
|
|
1368
1368
|
},
|
|
1369
1369
|
isSilent: () => u,
|
|
1370
|
-
onConfirm: (
|
|
1371
|
-
a(
|
|
1370
|
+
onConfirm: (p) => {
|
|
1371
|
+
a(p);
|
|
1372
1372
|
}
|
|
1373
1373
|
});
|
|
1374
|
-
return
|
|
1374
|
+
return v = (s = e.current) === null || s === void 0 ? void 0 : s.patchElement(E), v && ee.push(v), {
|
|
1375
1375
|
destroy: () => {
|
|
1376
|
-
function
|
|
1377
|
-
var
|
|
1378
|
-
(
|
|
1376
|
+
function p() {
|
|
1377
|
+
var y;
|
|
1378
|
+
(y = m.current) === null || y === void 0 || y.destroy();
|
|
1379
1379
|
}
|
|
1380
|
-
m.current ?
|
|
1380
|
+
m.current ? p() : o((y) => [].concat(k(y), [p]));
|
|
1381
1381
|
},
|
|
1382
|
-
update: (
|
|
1383
|
-
function
|
|
1384
|
-
var
|
|
1385
|
-
(
|
|
1382
|
+
update: (p) => {
|
|
1383
|
+
function y() {
|
|
1384
|
+
var b;
|
|
1385
|
+
(b = m.current) === null || b === void 0 || b.update(p);
|
|
1386
1386
|
}
|
|
1387
|
-
m.current ?
|
|
1387
|
+
m.current ? y() : o((b) => [].concat(k(b), [y]));
|
|
1388
1388
|
},
|
|
1389
|
-
then: (
|
|
1389
|
+
then: (p) => (u = !0, f.then(p))
|
|
1390
1390
|
};
|
|
1391
1391
|
}, []);
|
|
1392
1392
|
return [l.useMemo(() => ({
|
|
1393
|
-
info:
|
|
1394
|
-
success:
|
|
1395
|
-
error:
|
|
1396
|
-
warning:
|
|
1397
|
-
confirm:
|
|
1398
|
-
}), []), /* @__PURE__ */ l.createElement(
|
|
1393
|
+
info: n(dt),
|
|
1394
|
+
success: n(ut),
|
|
1395
|
+
error: n(ft),
|
|
1396
|
+
warning: n(ct),
|
|
1397
|
+
confirm: n(mt)
|
|
1398
|
+
}), []), /* @__PURE__ */ l.createElement(Dn, {
|
|
1399
1399
|
key: "modal-holder",
|
|
1400
1400
|
ref: e
|
|
1401
1401
|
})];
|
|
1402
1402
|
}
|
|
1403
|
-
var
|
|
1403
|
+
var Fn = function(e, t) {
|
|
1404
1404
|
var o = {};
|
|
1405
|
-
for (var
|
|
1406
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0,
|
|
1407
|
-
|
|
1405
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1406
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, n = Object.getOwnPropertySymbols(e); r < n.length; r++)
|
|
1407
|
+
t.indexOf(n[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[r]) && (o[n[r]] = e[n[r]]);
|
|
1408
1408
|
return o;
|
|
1409
1409
|
};
|
|
1410
|
-
const
|
|
1410
|
+
const _n = (e) => {
|
|
1411
1411
|
const {
|
|
1412
|
-
prefixCls:
|
|
1412
|
+
prefixCls: t,
|
|
1413
1413
|
className: o,
|
|
1414
|
-
closeIcon:
|
|
1414
|
+
closeIcon: n,
|
|
1415
1415
|
closable: r,
|
|
1416
1416
|
type: i,
|
|
1417
1417
|
title: d,
|
|
1418
1418
|
children: c,
|
|
1419
1419
|
footer: s
|
|
1420
|
-
} = e, m =
|
|
1420
|
+
} = e, m = Fn(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
|
|
1421
1421
|
getPrefixCls: a
|
|
1422
|
-
} = l.useContext(ce), f = a(), u =
|
|
1423
|
-
let
|
|
1424
|
-
return i ?
|
|
1422
|
+
} = l.useContext(ce), f = a(), u = t || a("modal"), v = Ke(f), [E, C, p] = ot(u, v), y = `${u}-confirm`;
|
|
1423
|
+
let b = {};
|
|
1424
|
+
return i ? b = {
|
|
1425
1425
|
closable: r ?? !1,
|
|
1426
1426
|
title: "",
|
|
1427
1427
|
footer: "",
|
|
1428
|
-
children: /* @__PURE__ */ l.createElement(
|
|
1428
|
+
children: /* @__PURE__ */ l.createElement(at, Object.assign({}, e, {
|
|
1429
1429
|
prefixCls: u,
|
|
1430
|
-
confirmPrefixCls:
|
|
1430
|
+
confirmPrefixCls: y,
|
|
1431
1431
|
rootPrefixCls: f,
|
|
1432
1432
|
content: c
|
|
1433
1433
|
}))
|
|
1434
|
-
} :
|
|
1434
|
+
} : b = {
|
|
1435
1435
|
closable: r ?? !0,
|
|
1436
1436
|
title: d,
|
|
1437
|
-
footer: s !== null && /* @__PURE__ */ l.createElement(
|
|
1437
|
+
footer: s !== null && /* @__PURE__ */ l.createElement(et, Object.assign({}, e)),
|
|
1438
1438
|
children: c
|
|
1439
|
-
}, E(/* @__PURE__ */ l.createElement(
|
|
1439
|
+
}, E(/* @__PURE__ */ l.createElement(ye, Object.assign({
|
|
1440
1440
|
prefixCls: u,
|
|
1441
|
-
className: z(C, `${u}-pure-panel`, i &&
|
|
1441
|
+
className: z(C, `${u}-pure-panel`, i && y, i && `${y}-${i}`, o, p, v)
|
|
1442
1442
|
}, m, {
|
|
1443
|
-
closeIcon: Je(u,
|
|
1443
|
+
closeIcon: Je(u, n),
|
|
1444
1444
|
closable: r
|
|
1445
|
-
},
|
|
1446
|
-
},
|
|
1447
|
-
function
|
|
1448
|
-
return ie(
|
|
1445
|
+
}, b)));
|
|
1446
|
+
}, An = nn(_n);
|
|
1447
|
+
function gt(e) {
|
|
1448
|
+
return ie(ct(e));
|
|
1449
1449
|
}
|
|
1450
|
-
const W =
|
|
1451
|
-
W.useModal =
|
|
1452
|
-
W.info = function(
|
|
1453
|
-
return ie(
|
|
1450
|
+
const W = rt;
|
|
1451
|
+
W.useModal = zn;
|
|
1452
|
+
W.info = function(t) {
|
|
1453
|
+
return ie(dt(t));
|
|
1454
1454
|
};
|
|
1455
|
-
W.success = function(
|
|
1456
|
-
return ie(
|
|
1455
|
+
W.success = function(t) {
|
|
1456
|
+
return ie(ut(t));
|
|
1457
1457
|
};
|
|
1458
|
-
W.error = function(
|
|
1459
|
-
return ie(
|
|
1458
|
+
W.error = function(t) {
|
|
1459
|
+
return ie(ft(t));
|
|
1460
1460
|
};
|
|
1461
|
-
W.warning =
|
|
1462
|
-
W.warn =
|
|
1463
|
-
W.confirm = function(
|
|
1464
|
-
return ie(
|
|
1461
|
+
W.warning = gt;
|
|
1462
|
+
W.warn = gt;
|
|
1463
|
+
W.confirm = function(t) {
|
|
1464
|
+
return ie(mt(t));
|
|
1465
1465
|
};
|
|
1466
1466
|
W.destroyAll = function() {
|
|
1467
1467
|
for (; ee.length; ) {
|
|
1468
|
-
const
|
|
1469
|
-
|
|
1468
|
+
const t = ee.pop();
|
|
1469
|
+
t && t();
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
|
-
W.config =
|
|
1473
|
-
W._InternalPanelDoNotUseOrYouWillBeFired =
|
|
1472
|
+
W.config = Mn;
|
|
1473
|
+
W._InternalPanelDoNotUseOrYouWillBeFired = An;
|
|
1474
1474
|
process.env.NODE_ENV !== "production" && (W.displayName = "Modal");
|
|
1475
|
-
var
|
|
1476
|
-
return /* @__PURE__ */ l.createElement(Le, q({},
|
|
1475
|
+
var Ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z" } }] }, name: "minus", theme: "outlined" }, Hn = function(t, o) {
|
|
1476
|
+
return /* @__PURE__ */ l.createElement(Le, q({}, t, {
|
|
1477
1477
|
ref: o,
|
|
1478
|
-
icon:
|
|
1478
|
+
icon: Ln
|
|
1479
1479
|
}));
|
|
1480
|
-
},
|
|
1481
|
-
process.env.NODE_ENV !== "production" && (
|
|
1480
|
+
}, vt = /* @__PURE__ */ l.forwardRef(Hn);
|
|
1481
|
+
process.env.NODE_ENV !== "production" && (vt.displayName = "MinusOutlined");
|
|
1482
1482
|
const Ko = () => {
|
|
1483
|
-
const { theme: e } =
|
|
1483
|
+
const { theme: e } = Et(), [t, o] = te(!1), [n, r] = te({ key: "", value: null }), [i, d] = te([]), [c, s] = te(""), [m, a] = te(!0), [f, u] = te([]);
|
|
1484
1484
|
if (me(() => {
|
|
1485
1485
|
e && (console.log("Theme changed, updating tree data:", e), u(O(e)));
|
|
1486
1486
|
}, [e]), !e)
|
|
1487
1487
|
return null;
|
|
1488
|
-
const
|
|
1488
|
+
const v = () => {
|
|
1489
1489
|
d([]), a(!1);
|
|
1490
1490
|
}, E = () => {
|
|
1491
|
-
console.log("resetting"), s(""),
|
|
1491
|
+
console.log("resetting"), s(""), v(), u(O(e));
|
|
1492
1492
|
}, C = (g, x) => {
|
|
1493
1493
|
const $ = [], j = (F, T) => {
|
|
1494
1494
|
for (const R of F)
|
|
1495
1495
|
R.children && (R.children.some((K) => K.key === T) && $.push(R.key), j(R.children, T));
|
|
1496
1496
|
};
|
|
1497
1497
|
return j(x, g), $;
|
|
1498
|
-
},
|
|
1498
|
+
}, p = (g, x) => {
|
|
1499
1499
|
let $ = [];
|
|
1500
1500
|
const j = (F) => {
|
|
1501
1501
|
F.forEach((T) => {
|
|
@@ -1508,7 +1508,7 @@ const Ko = () => {
|
|
|
1508
1508
|
});
|
|
1509
1509
|
};
|
|
1510
1510
|
return j(g), [...new Set($)];
|
|
1511
|
-
},
|
|
1511
|
+
}, y = (g) => {
|
|
1512
1512
|
if (!g.trim()) {
|
|
1513
1513
|
E();
|
|
1514
1514
|
return;
|
|
@@ -1516,11 +1516,11 @@ const Ko = () => {
|
|
|
1516
1516
|
if (g.length >= 3) {
|
|
1517
1517
|
const x = O(e);
|
|
1518
1518
|
u(x);
|
|
1519
|
-
const $ =
|
|
1519
|
+
const $ = p(x, g);
|
|
1520
1520
|
d($), s(g), a(!0);
|
|
1521
1521
|
} else
|
|
1522
|
-
|
|
1523
|
-
},
|
|
1522
|
+
v(), s(g);
|
|
1523
|
+
}, b = (g) => {
|
|
1524
1524
|
d(g), a(!1);
|
|
1525
1525
|
}, P = (g) => `${g}_${Math.floor(Math.random() * 983423219)}`, O = (g) => {
|
|
1526
1526
|
const x = [];
|
|
@@ -1564,14 +1564,14 @@ const Ko = () => {
|
|
|
1564
1564
|
] }) : /* @__PURE__ */ J("p", { children: [
|
|
1565
1565
|
/* @__PURE__ */ D("strong", { children: "Value:" }),
|
|
1566
1566
|
" ",
|
|
1567
|
-
String(
|
|
1567
|
+
String(n.value)
|
|
1568
1568
|
] }), L = (g) => g.map((x) => {
|
|
1569
1569
|
const $ = x.title.toLowerCase().indexOf(c.toLowerCase()), j = x.title.substring(0, $), F = x.title.substring($, $ + c.length), T = x.title.substring($ + c.length), R = $ > -1 ? /* @__PURE__ */ J("span", { children: [
|
|
1570
1570
|
j,
|
|
1571
1571
|
/* @__PURE__ */ D("span", { style: { color: "#f50" }, children: F }),
|
|
1572
1572
|
T
|
|
1573
1573
|
] }) : /* @__PURE__ */ D("span", { children: x.title });
|
|
1574
|
-
return x.children ? /* @__PURE__ */ D(fe.TreeNode, { title: R, children: L(x.children) }, x.key) : /* @__PURE__ */
|
|
1574
|
+
return x.children ? /* @__PURE__ */ D(fe.TreeNode, { title: R, children: L(x.children) }, x.key) : /* @__PURE__ */ $t(
|
|
1575
1575
|
fe.TreeNode,
|
|
1576
1576
|
{
|
|
1577
1577
|
...x,
|
|
@@ -1581,19 +1581,19 @@ const Ko = () => {
|
|
|
1581
1581
|
);
|
|
1582
1582
|
}), B = e.mode.charAt(0).toUpperCase() + e.mode.slice(1), X = (g) => {
|
|
1583
1583
|
const x = g.target.value;
|
|
1584
|
-
s(x), x ? x.length < 3 &&
|
|
1584
|
+
s(x), x ? x.length < 3 && v() : E();
|
|
1585
1585
|
};
|
|
1586
|
-
return /* @__PURE__ */ J(
|
|
1587
|
-
/* @__PURE__ */ D("div", { style: { margin: "16px 0px" }, children: /* @__PURE__ */ J(
|
|
1586
|
+
return /* @__PURE__ */ J(yt, { children: [
|
|
1587
|
+
/* @__PURE__ */ D("div", { style: { margin: "16px 0px" }, children: /* @__PURE__ */ J(Ot, { variant: "heading2", children: [
|
|
1588
1588
|
B,
|
|
1589
1589
|
" Mode"
|
|
1590
1590
|
] }) }),
|
|
1591
1591
|
/* @__PURE__ */ D(
|
|
1592
|
-
|
|
1592
|
+
St.Search,
|
|
1593
1593
|
{
|
|
1594
1594
|
style: { marginBottom: 8, width: 300 },
|
|
1595
1595
|
placeholder: "Search token (min 3 characters)...",
|
|
1596
|
-
onSearch:
|
|
1596
|
+
onSearch: y,
|
|
1597
1597
|
allowClear: !0,
|
|
1598
1598
|
onChange: X,
|
|
1599
1599
|
value: c
|
|
@@ -1605,10 +1605,10 @@ const Ko = () => {
|
|
|
1605
1605
|
selectable: !1,
|
|
1606
1606
|
expandedKeys: i,
|
|
1607
1607
|
autoExpandParent: m,
|
|
1608
|
-
onExpand:
|
|
1608
|
+
onExpand: b,
|
|
1609
1609
|
switcherIcon: (g) => {
|
|
1610
1610
|
const { expanded: x } = g;
|
|
1611
|
-
return x ? /* @__PURE__ */ D(
|
|
1611
|
+
return x ? /* @__PURE__ */ D(vt, {}) : /* @__PURE__ */ D(Nt, {});
|
|
1612
1612
|
},
|
|
1613
1613
|
children: L(f.length > 0 ? f : I)
|
|
1614
1614
|
}
|
|
@@ -1617,7 +1617,7 @@ const Ko = () => {
|
|
|
1617
1617
|
W,
|
|
1618
1618
|
{
|
|
1619
1619
|
title: "Properties",
|
|
1620
|
-
open:
|
|
1620
|
+
open: t,
|
|
1621
1621
|
onOk: () => o(!1),
|
|
1622
1622
|
onCancel: () => o(!1),
|
|
1623
1623
|
width: 300,
|
|
@@ -1637,9 +1637,9 @@ const Ko = () => {
|
|
|
1637
1637
|
/* @__PURE__ */ D("div", { children: /* @__PURE__ */ J("p", { children: [
|
|
1638
1638
|
/* @__PURE__ */ D("strong", { children: "Token:" }),
|
|
1639
1639
|
" ",
|
|
1640
|
-
|
|
1640
|
+
n.key
|
|
1641
1641
|
] }) }),
|
|
1642
|
-
/* @__PURE__ */ D("div", { children: w(
|
|
1642
|
+
/* @__PURE__ */ D("div", { children: w(n.value) })
|
|
1643
1643
|
] })
|
|
1644
1644
|
}
|
|
1645
1645
|
)
|