@gobolt/genesis 0.1.1 → 0.1.3
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 +8 -8
- 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 +33 -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-BjIR5S0o.js +0 -24731
- 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,1115 +0,0 @@
|
|
|
1
|
-
import { g as te, a as $, e as de, d as L, b as w, _ as k, w as we, f as Gt } from "./presets-Djh_L_6R.js";
|
|
2
|
-
import { T as et } from "./index-D0U6r5O7.js";
|
|
3
|
-
import { F as xe, t as nt, A as tt, z as rt, Z as qt, $ as at, o as Me, B as Yt, x as Xt, y as Zt, e as Jt, _ as Qt, s as er, G as nr } from "./index-BbTV2Cw5.js";
|
|
4
|
-
import * as t from "react";
|
|
5
|
-
import J, { forwardRef as tr, useMemo as rr, useRef as Xe, useCallback as Re, useImperativeHandle as ar } from "react";
|
|
6
|
-
import { K as ie } from "./KeyCode-DM2sFh3-.js";
|
|
7
|
-
import { F as Te } from "./Overflow-DWf4XIal.js";
|
|
8
|
-
import { u as Ze } from "./useMergedState-D6toxSxh.js";
|
|
9
|
-
import { i as ir } from "./isVisible-D3-B85BJ.js";
|
|
10
|
-
import { o as Sn } from "./omit-B_u6A-HL.js";
|
|
11
|
-
import { t as or } from "./toArray-U3Az44CO.js";
|
|
12
|
-
import { I as lr } from "./AntdIcon-nCNB0J1E.js";
|
|
13
|
-
var ur = ie.ESC, sr = ie.TAB;
|
|
14
|
-
function cr(e) {
|
|
15
|
-
var r = e.visible, a = e.triggerRef, n = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, l = t.useRef(!1), u = function() {
|
|
16
|
-
if (r) {
|
|
17
|
-
var c, f;
|
|
18
|
-
(c = a.current) === null || c === void 0 || (f = c.focus) === null || f === void 0 || f.call(c), n == null || n(!1);
|
|
19
|
-
}
|
|
20
|
-
}, d = function() {
|
|
21
|
-
var c;
|
|
22
|
-
return (c = o.current) !== null && c !== void 0 && c.focus ? (o.current.focus(), l.current = !0, !0) : !1;
|
|
23
|
-
}, s = function(c) {
|
|
24
|
-
switch (c.keyCode) {
|
|
25
|
-
case ur:
|
|
26
|
-
u();
|
|
27
|
-
break;
|
|
28
|
-
case sr: {
|
|
29
|
-
var f = !1;
|
|
30
|
-
l.current || (f = d()), f ? c.preventDefault() : u();
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
t.useEffect(function() {
|
|
36
|
-
return r ? (window.addEventListener("keydown", s), i && xe(d, 3), function() {
|
|
37
|
-
window.removeEventListener("keydown", s), l.current = !1;
|
|
38
|
-
}) : function() {
|
|
39
|
-
l.current = !1;
|
|
40
|
-
};
|
|
41
|
-
}, [r]);
|
|
42
|
-
}
|
|
43
|
-
var fr = /* @__PURE__ */ tr(function(e, r) {
|
|
44
|
-
var a = e.overlay, n = e.arrow, i = e.prefixCls, o = rr(function() {
|
|
45
|
-
var u;
|
|
46
|
-
return typeof a == "function" ? u = a() : u = a, u;
|
|
47
|
-
}, [a]), l = nt(r, tt(o));
|
|
48
|
-
return /* @__PURE__ */ J.createElement(J.Fragment, null, n && /* @__PURE__ */ J.createElement("div", {
|
|
49
|
-
className: "".concat(i, "-arrow")
|
|
50
|
-
}), /* @__PURE__ */ J.cloneElement(o, {
|
|
51
|
-
ref: rt(o) ? l : void 0
|
|
52
|
-
}));
|
|
53
|
-
}), Se = {
|
|
54
|
-
adjustX: 1,
|
|
55
|
-
adjustY: 1
|
|
56
|
-
}, Ee = [0, 0], dr = {
|
|
57
|
-
topLeft: {
|
|
58
|
-
points: ["bl", "tl"],
|
|
59
|
-
overflow: Se,
|
|
60
|
-
offset: [0, -4],
|
|
61
|
-
targetOffset: Ee
|
|
62
|
-
},
|
|
63
|
-
top: {
|
|
64
|
-
points: ["bc", "tc"],
|
|
65
|
-
overflow: Se,
|
|
66
|
-
offset: [0, -4],
|
|
67
|
-
targetOffset: Ee
|
|
68
|
-
},
|
|
69
|
-
topRight: {
|
|
70
|
-
points: ["br", "tr"],
|
|
71
|
-
overflow: Se,
|
|
72
|
-
offset: [0, -4],
|
|
73
|
-
targetOffset: Ee
|
|
74
|
-
},
|
|
75
|
-
bottomLeft: {
|
|
76
|
-
points: ["tl", "bl"],
|
|
77
|
-
overflow: Se,
|
|
78
|
-
offset: [0, 4],
|
|
79
|
-
targetOffset: Ee
|
|
80
|
-
},
|
|
81
|
-
bottom: {
|
|
82
|
-
points: ["tc", "bc"],
|
|
83
|
-
overflow: Se,
|
|
84
|
-
offset: [0, 4],
|
|
85
|
-
targetOffset: Ee
|
|
86
|
-
},
|
|
87
|
-
bottomRight: {
|
|
88
|
-
points: ["tr", "br"],
|
|
89
|
-
overflow: Se,
|
|
90
|
-
offset: [0, 4],
|
|
91
|
-
targetOffset: Ee
|
|
92
|
-
}
|
|
93
|
-
}, vr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
94
|
-
function mr(e, r) {
|
|
95
|
-
var a, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, u = e.transitionName, d = e.animation, s = e.align, g = e.placement, c = g === void 0 ? "bottomLeft" : g, f = e.placements, b = f === void 0 ? dr : f, h = e.getPopupContainer, S = e.showAction, C = e.hideAction, I = e.overlayClassName, P = e.overlayStyle, v = e.visible, m = e.trigger, y = m === void 0 ? ["hover"] : m, p = e.autoFocus, R = e.overlay, _ = e.children, E = e.onVisibleChange, W = te(e, vr), O = J.useState(), K = $(O, 2), j = K[0], B = K[1], H = "visible" in e ? v : j, Y = J.useRef(null), T = J.useRef(null), q = J.useRef(null);
|
|
96
|
-
J.useImperativeHandle(r, function() {
|
|
97
|
-
return Y.current;
|
|
98
|
-
});
|
|
99
|
-
var V = function(D) {
|
|
100
|
-
B(D), E == null || E(D);
|
|
101
|
-
};
|
|
102
|
-
cr({
|
|
103
|
-
visible: H,
|
|
104
|
-
triggerRef: q,
|
|
105
|
-
onVisibleChange: V,
|
|
106
|
-
autoFocus: p,
|
|
107
|
-
overlayRef: T
|
|
108
|
-
});
|
|
109
|
-
var Q = function(D) {
|
|
110
|
-
var ne = e.onOverlayClick;
|
|
111
|
-
B(!1), ne && ne(D);
|
|
112
|
-
}, oe = function() {
|
|
113
|
-
return /* @__PURE__ */ J.createElement(fr, {
|
|
114
|
-
ref: T,
|
|
115
|
-
overlay: R,
|
|
116
|
-
prefixCls: l,
|
|
117
|
-
arrow: i
|
|
118
|
-
});
|
|
119
|
-
}, le = function() {
|
|
120
|
-
return typeof R == "function" ? oe : oe();
|
|
121
|
-
}, se = function() {
|
|
122
|
-
var D = e.minOverlayWidthMatchTrigger, ne = e.alignPoint;
|
|
123
|
-
return "minOverlayWidthMatchTrigger" in e ? D : !ne;
|
|
124
|
-
}, ce = function() {
|
|
125
|
-
var D = e.openClassName;
|
|
126
|
-
return D !== void 0 ? D : "".concat(l, "-open");
|
|
127
|
-
}, F = /* @__PURE__ */ J.cloneElement(_, {
|
|
128
|
-
className: de((a = _.props) === null || a === void 0 ? void 0 : a.className, H && ce()),
|
|
129
|
-
ref: rt(_) ? nt(q, tt(_)) : void 0
|
|
130
|
-
}), z = C;
|
|
131
|
-
return !z && y.indexOf("contextMenu") !== -1 && (z = ["click"]), /* @__PURE__ */ J.createElement(et, L({
|
|
132
|
-
builtinPlacements: b
|
|
133
|
-
}, W, {
|
|
134
|
-
prefixCls: l,
|
|
135
|
-
ref: Y,
|
|
136
|
-
popupClassName: de(I, w({}, "".concat(l, "-show-arrow"), i)),
|
|
137
|
-
popupStyle: P,
|
|
138
|
-
action: y,
|
|
139
|
-
showAction: S,
|
|
140
|
-
hideAction: z,
|
|
141
|
-
popupPlacement: c,
|
|
142
|
-
popupAlign: s,
|
|
143
|
-
popupTransitionName: u,
|
|
144
|
-
popupAnimation: d,
|
|
145
|
-
popupVisible: H,
|
|
146
|
-
stretch: se() ? "minWidth" : "",
|
|
147
|
-
popup: le(),
|
|
148
|
-
onPopupVisibleChange: V,
|
|
149
|
-
onPopupClick: Q,
|
|
150
|
-
getPopupContainer: h
|
|
151
|
-
}), F);
|
|
152
|
-
}
|
|
153
|
-
const ca = /* @__PURE__ */ J.forwardRef(mr);
|
|
154
|
-
var it = /* @__PURE__ */ t.createContext(null);
|
|
155
|
-
function ot(e, r) {
|
|
156
|
-
return e === void 0 ? null : "".concat(e, "-").concat(r);
|
|
157
|
-
}
|
|
158
|
-
function lt(e) {
|
|
159
|
-
var r = t.useContext(it);
|
|
160
|
-
return ot(r, e);
|
|
161
|
-
}
|
|
162
|
-
var pr = ["children", "locked"], ae = /* @__PURE__ */ t.createContext(null);
|
|
163
|
-
function gr(e, r) {
|
|
164
|
-
var a = k({}, e);
|
|
165
|
-
return Object.keys(r).forEach(function(n) {
|
|
166
|
-
var i = r[n];
|
|
167
|
-
i !== void 0 && (a[n] = i);
|
|
168
|
-
}), a;
|
|
169
|
-
}
|
|
170
|
-
function Ve(e) {
|
|
171
|
-
var r = e.children, a = e.locked, n = te(e, pr), i = t.useContext(ae), o = qt(function() {
|
|
172
|
-
return gr(i, n);
|
|
173
|
-
}, [i, n], function(l, u) {
|
|
174
|
-
return !a && (l[0] !== u[0] || !at(l[1], u[1], !0));
|
|
175
|
-
});
|
|
176
|
-
return /* @__PURE__ */ t.createElement(ae.Provider, {
|
|
177
|
-
value: o
|
|
178
|
-
}, r);
|
|
179
|
-
}
|
|
180
|
-
var hr = [], ut = /* @__PURE__ */ t.createContext(null);
|
|
181
|
-
function nn() {
|
|
182
|
-
return t.useContext(ut);
|
|
183
|
-
}
|
|
184
|
-
var st = /* @__PURE__ */ t.createContext(hr);
|
|
185
|
-
function Fe(e) {
|
|
186
|
-
var r = t.useContext(st);
|
|
187
|
-
return t.useMemo(function() {
|
|
188
|
-
return e !== void 0 ? [].concat(Me(r), [e]) : r;
|
|
189
|
-
}, [r, e]);
|
|
190
|
-
}
|
|
191
|
-
var ct = /* @__PURE__ */ t.createContext(null), En = /* @__PURE__ */ t.createContext({});
|
|
192
|
-
function qn(e) {
|
|
193
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
194
|
-
if (ir(e)) {
|
|
195
|
-
var a = e.nodeName.toLowerCase(), n = (
|
|
196
|
-
// Focusable element
|
|
197
|
-
["input", "select", "textarea", "button"].includes(a) || // Editable element
|
|
198
|
-
e.isContentEditable || // Anchor with href element
|
|
199
|
-
a === "a" && !!e.getAttribute("href")
|
|
200
|
-
), i = e.getAttribute("tabindex"), o = Number(i), l = null;
|
|
201
|
-
return i && !Number.isNaN(o) ? l = o : n && l === null && (l = 0), n && e.disabled && (l = null), l !== null && (l >= 0 || r && l < 0);
|
|
202
|
-
}
|
|
203
|
-
return !1;
|
|
204
|
-
}
|
|
205
|
-
function Cr(e) {
|
|
206
|
-
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Me(e.querySelectorAll("*")).filter(function(n) {
|
|
207
|
-
return qn(n, r);
|
|
208
|
-
});
|
|
209
|
-
return qn(e, r) && a.unshift(e), a;
|
|
210
|
-
}
|
|
211
|
-
var Cn = ie.LEFT, bn = ie.RIGHT, yn = ie.UP, Je = ie.DOWN, Qe = ie.ENTER, ft = ie.ESC, De = ie.HOME, $e = ie.END, Yn = [yn, Je, Cn, bn];
|
|
212
|
-
function br(e, r, a, n) {
|
|
213
|
-
var i, o = "prev", l = "next", u = "children", d = "parent";
|
|
214
|
-
if (e === "inline" && n === Qe)
|
|
215
|
-
return {
|
|
216
|
-
inlineTrigger: !0
|
|
217
|
-
};
|
|
218
|
-
var s = w(w({}, yn, o), Je, l), g = w(w(w(w({}, Cn, a ? l : o), bn, a ? o : l), Je, u), Qe, u), c = w(w(w(w(w(w({}, yn, o), Je, l), Qe, u), ft, d), Cn, a ? u : d), bn, a ? d : u), f = {
|
|
219
|
-
inline: s,
|
|
220
|
-
horizontal: g,
|
|
221
|
-
vertical: c,
|
|
222
|
-
inlineSub: s,
|
|
223
|
-
horizontalSub: c,
|
|
224
|
-
verticalSub: c
|
|
225
|
-
}, b = (i = f["".concat(e).concat(r ? "" : "Sub")]) === null || i === void 0 ? void 0 : i[n];
|
|
226
|
-
switch (b) {
|
|
227
|
-
case o:
|
|
228
|
-
return {
|
|
229
|
-
offset: -1,
|
|
230
|
-
sibling: !0
|
|
231
|
-
};
|
|
232
|
-
case l:
|
|
233
|
-
return {
|
|
234
|
-
offset: 1,
|
|
235
|
-
sibling: !0
|
|
236
|
-
};
|
|
237
|
-
case d:
|
|
238
|
-
return {
|
|
239
|
-
offset: -1,
|
|
240
|
-
sibling: !1
|
|
241
|
-
};
|
|
242
|
-
case u:
|
|
243
|
-
return {
|
|
244
|
-
offset: 1,
|
|
245
|
-
sibling: !1
|
|
246
|
-
};
|
|
247
|
-
default:
|
|
248
|
-
return null;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
function yr(e) {
|
|
252
|
-
for (var r = e; r; ) {
|
|
253
|
-
if (r.getAttribute("data-menu-list"))
|
|
254
|
-
return r;
|
|
255
|
-
r = r.parentElement;
|
|
256
|
-
}
|
|
257
|
-
return null;
|
|
258
|
-
}
|
|
259
|
-
function Mr(e, r) {
|
|
260
|
-
for (var a = e || document.activeElement; a; ) {
|
|
261
|
-
if (r.has(a))
|
|
262
|
-
return a;
|
|
263
|
-
a = a.parentElement;
|
|
264
|
-
}
|
|
265
|
-
return null;
|
|
266
|
-
}
|
|
267
|
-
function xn(e, r) {
|
|
268
|
-
var a = Cr(e, !0);
|
|
269
|
-
return a.filter(function(n) {
|
|
270
|
-
return r.has(n);
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
function Xn(e, r, a) {
|
|
274
|
-
var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
|
|
275
|
-
if (!e)
|
|
276
|
-
return null;
|
|
277
|
-
var i = xn(e, r), o = i.length, l = i.findIndex(function(u) {
|
|
278
|
-
return a === u;
|
|
279
|
-
});
|
|
280
|
-
return n < 0 ? l === -1 ? l = o - 1 : l -= 1 : n > 0 && (l += 1), l = (l + o) % o, i[l];
|
|
281
|
-
}
|
|
282
|
-
var Mn = function(r, a) {
|
|
283
|
-
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
284
|
-
return r.forEach(function(l) {
|
|
285
|
-
var u = document.querySelector("[data-menu-id='".concat(ot(a, l), "']"));
|
|
286
|
-
u && (n.add(u), o.set(u, l), i.set(l, u));
|
|
287
|
-
}), {
|
|
288
|
-
elements: n,
|
|
289
|
-
key2element: i,
|
|
290
|
-
element2key: o
|
|
291
|
-
};
|
|
292
|
-
};
|
|
293
|
-
function Ir(e, r, a, n, i, o, l, u, d, s) {
|
|
294
|
-
var g = t.useRef(), c = t.useRef();
|
|
295
|
-
c.current = r;
|
|
296
|
-
var f = function() {
|
|
297
|
-
xe.cancel(g.current);
|
|
298
|
-
};
|
|
299
|
-
return t.useEffect(function() {
|
|
300
|
-
return function() {
|
|
301
|
-
f();
|
|
302
|
-
};
|
|
303
|
-
}, []), function(b) {
|
|
304
|
-
var h = b.which;
|
|
305
|
-
if ([].concat(Yn, [Qe, ft, De, $e]).includes(h)) {
|
|
306
|
-
var S = o(), C = Mn(S, n), I = C, P = I.elements, v = I.key2element, m = I.element2key, y = v.get(r), p = Mr(y, P), R = m.get(p), _ = br(e, l(R, !0).length === 1, a, h);
|
|
307
|
-
if (!_ && h !== De && h !== $e)
|
|
308
|
-
return;
|
|
309
|
-
(Yn.includes(h) || [De, $e].includes(h)) && b.preventDefault();
|
|
310
|
-
var E = function(T) {
|
|
311
|
-
if (T) {
|
|
312
|
-
var q = T, V = T.querySelector("a");
|
|
313
|
-
V != null && V.getAttribute("href") && (q = V);
|
|
314
|
-
var Q = m.get(T);
|
|
315
|
-
u(Q), f(), g.current = xe(function() {
|
|
316
|
-
c.current === Q && q.focus();
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
if ([De, $e].includes(h) || _.sibling || !p) {
|
|
321
|
-
var W;
|
|
322
|
-
!p || e === "inline" ? W = i.current : W = yr(p);
|
|
323
|
-
var O, K = xn(W, P);
|
|
324
|
-
h === De ? O = K[0] : h === $e ? O = K[K.length - 1] : O = Xn(W, P, p, _.offset), E(O);
|
|
325
|
-
} else if (_.inlineTrigger)
|
|
326
|
-
d(R);
|
|
327
|
-
else if (_.offset > 0)
|
|
328
|
-
d(R, !0), f(), g.current = xe(function() {
|
|
329
|
-
C = Mn(S, n);
|
|
330
|
-
var Y = p.getAttribute("aria-controls"), T = document.getElementById(Y), q = Xn(T, C.elements);
|
|
331
|
-
E(q);
|
|
332
|
-
}, 5);
|
|
333
|
-
else if (_.offset < 0) {
|
|
334
|
-
var j = l(R, !0), B = j[j.length - 2], H = v.get(B);
|
|
335
|
-
d(B, !1), E(H);
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
s == null || s(b);
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function Rr(e) {
|
|
342
|
-
Promise.resolve().then(e);
|
|
343
|
-
}
|
|
344
|
-
var wn = "__RC_UTIL_PATH_SPLIT__", Zn = function(r) {
|
|
345
|
-
return r.join(wn);
|
|
346
|
-
}, Sr = function(r) {
|
|
347
|
-
return r.split(wn);
|
|
348
|
-
}, In = "rc-menu-more";
|
|
349
|
-
function Er() {
|
|
350
|
-
var e = t.useState({}), r = $(e, 2), a = r[1], n = Xe(/* @__PURE__ */ new Map()), i = Xe(/* @__PURE__ */ new Map()), o = t.useState([]), l = $(o, 2), u = l[0], d = l[1], s = Xe(0), g = Xe(!1), c = function() {
|
|
351
|
-
g.current || a({});
|
|
352
|
-
}, f = Re(function(v, m) {
|
|
353
|
-
process.env.NODE_ENV !== "production" && we(!n.current.has(v), "Duplicated key '".concat(v, "' used in Menu by path [").concat(m.join(" > "), "]"));
|
|
354
|
-
var y = Zn(m);
|
|
355
|
-
i.current.set(y, v), n.current.set(v, y), s.current += 1;
|
|
356
|
-
var p = s.current;
|
|
357
|
-
Rr(function() {
|
|
358
|
-
p === s.current && c();
|
|
359
|
-
});
|
|
360
|
-
}, []), b = Re(function(v, m) {
|
|
361
|
-
var y = Zn(m);
|
|
362
|
-
i.current.delete(y), n.current.delete(v);
|
|
363
|
-
}, []), h = Re(function(v) {
|
|
364
|
-
d(v);
|
|
365
|
-
}, []), S = Re(function(v, m) {
|
|
366
|
-
var y = n.current.get(v) || "", p = Sr(y);
|
|
367
|
-
return m && u.includes(p[0]) && p.unshift(In), p;
|
|
368
|
-
}, [u]), C = Re(function(v, m) {
|
|
369
|
-
return v.filter(function(y) {
|
|
370
|
-
return y !== void 0;
|
|
371
|
-
}).some(function(y) {
|
|
372
|
-
var p = S(y, !0);
|
|
373
|
-
return p.includes(m);
|
|
374
|
-
});
|
|
375
|
-
}, [S]), I = function() {
|
|
376
|
-
var m = Me(n.current.keys());
|
|
377
|
-
return u.length && m.push(In), m;
|
|
378
|
-
}, P = Re(function(v) {
|
|
379
|
-
var m = "".concat(n.current.get(v)).concat(wn), y = /* @__PURE__ */ new Set();
|
|
380
|
-
return Me(i.current.keys()).forEach(function(p) {
|
|
381
|
-
p.startsWith(m) && y.add(i.current.get(p));
|
|
382
|
-
}), y;
|
|
383
|
-
}, []);
|
|
384
|
-
return t.useEffect(function() {
|
|
385
|
-
return function() {
|
|
386
|
-
g.current = !0;
|
|
387
|
-
};
|
|
388
|
-
}, []), {
|
|
389
|
-
// Register
|
|
390
|
-
registerPath: f,
|
|
391
|
-
unregisterPath: b,
|
|
392
|
-
refreshOverflowKeys: h,
|
|
393
|
-
// Util
|
|
394
|
-
isSubPathKey: C,
|
|
395
|
-
getKeyPath: S,
|
|
396
|
-
getKeys: I,
|
|
397
|
-
getSubPathKeys: P
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
function Le(e) {
|
|
401
|
-
var r = t.useRef(e);
|
|
402
|
-
r.current = e;
|
|
403
|
-
var a = t.useCallback(function() {
|
|
404
|
-
for (var n, i = arguments.length, o = new Array(i), l = 0; l < i; l++)
|
|
405
|
-
o[l] = arguments[l];
|
|
406
|
-
return (n = r.current) === null || n === void 0 ? void 0 : n.call.apply(n, [r].concat(o));
|
|
407
|
-
}, []);
|
|
408
|
-
return e ? a : void 0;
|
|
409
|
-
}
|
|
410
|
-
var xr = Math.random().toFixed(5).toString().slice(2), Jn = 0;
|
|
411
|
-
function wr(e) {
|
|
412
|
-
var r = Ze(e, {
|
|
413
|
-
value: e
|
|
414
|
-
}), a = $(r, 2), n = a[0], i = a[1];
|
|
415
|
-
return t.useEffect(function() {
|
|
416
|
-
Jn += 1;
|
|
417
|
-
var o = process.env.NODE_ENV === "test" ? "test" : "".concat(xr, "-").concat(Jn);
|
|
418
|
-
i("rc-menu-uuid-".concat(o));
|
|
419
|
-
}, []), n;
|
|
420
|
-
}
|
|
421
|
-
function dt(e, r, a, n) {
|
|
422
|
-
var i = t.useContext(ae), o = i.activeKey, l = i.onActive, u = i.onInactive, d = {
|
|
423
|
-
active: o === e
|
|
424
|
-
};
|
|
425
|
-
return r || (d.onMouseEnter = function(s) {
|
|
426
|
-
a == null || a({
|
|
427
|
-
key: e,
|
|
428
|
-
domEvent: s
|
|
429
|
-
}), l(e);
|
|
430
|
-
}, d.onMouseLeave = function(s) {
|
|
431
|
-
n == null || n({
|
|
432
|
-
key: e,
|
|
433
|
-
domEvent: s
|
|
434
|
-
}), u(e);
|
|
435
|
-
}), d;
|
|
436
|
-
}
|
|
437
|
-
function vt(e) {
|
|
438
|
-
var r = t.useContext(ae), a = r.mode, n = r.rtl, i = r.inlineIndent;
|
|
439
|
-
if (a !== "inline")
|
|
440
|
-
return null;
|
|
441
|
-
var o = e;
|
|
442
|
-
return n ? {
|
|
443
|
-
paddingRight: o * i
|
|
444
|
-
} : {
|
|
445
|
-
paddingLeft: o * i
|
|
446
|
-
};
|
|
447
|
-
}
|
|
448
|
-
function mt(e) {
|
|
449
|
-
var r = e.icon, a = e.props, n = e.children, i;
|
|
450
|
-
return r === null || r === !1 ? null : (typeof r == "function" ? i = /* @__PURE__ */ t.createElement(r, k({}, a)) : typeof r != "boolean" && (i = r), i || n || null);
|
|
451
|
-
}
|
|
452
|
-
var Pr = ["item"];
|
|
453
|
-
function en(e) {
|
|
454
|
-
var r = e.item, a = te(e, Pr);
|
|
455
|
-
return Object.defineProperty(a, "item", {
|
|
456
|
-
get: function() {
|
|
457
|
-
return we(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), r;
|
|
458
|
-
}
|
|
459
|
-
}), a;
|
|
460
|
-
}
|
|
461
|
-
var Nr = ["title", "attribute", "elementRef"], _r = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Kr = ["active"], Or = /* @__PURE__ */ function(e) {
|
|
462
|
-
Xt(a, e);
|
|
463
|
-
var r = Zt(a);
|
|
464
|
-
function a() {
|
|
465
|
-
return Jt(this, a), r.apply(this, arguments);
|
|
466
|
-
}
|
|
467
|
-
return Qt(a, [{
|
|
468
|
-
key: "render",
|
|
469
|
-
value: function() {
|
|
470
|
-
var i = this.props, o = i.title, l = i.attribute, u = i.elementRef, d = te(i, Nr), s = Sn(d, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
471
|
-
return we(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ t.createElement(Te.Item, L({}, l, {
|
|
472
|
-
title: typeof o == "string" ? o : void 0
|
|
473
|
-
}, s, {
|
|
474
|
-
ref: u
|
|
475
|
-
}));
|
|
476
|
-
}
|
|
477
|
-
}]), a;
|
|
478
|
-
}(t.Component), Ar = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
479
|
-
var a = e.style, n = e.className, i = e.eventKey, o = e.warnKey, l = e.disabled, u = e.itemIcon, d = e.children, s = e.role, g = e.onMouseEnter, c = e.onMouseLeave, f = e.onClick, b = e.onKeyDown, h = e.onFocus, S = te(e, _r), C = lt(i), I = t.useContext(ae), P = I.prefixCls, v = I.onItemClick, m = I.disabled, y = I.overflowDisabled, p = I.itemIcon, R = I.selectedKeys, _ = I.onActive, E = t.useContext(En), W = E._internalRenderMenuItem, O = "".concat(P, "-item"), K = t.useRef(), j = t.useRef(), B = m || l, H = Yt(r, j), Y = Fe(i);
|
|
480
|
-
process.env.NODE_ENV !== "production" && o && we(!1, "MenuItem should not leave undefined `key`.");
|
|
481
|
-
var T = function(G) {
|
|
482
|
-
return {
|
|
483
|
-
key: i,
|
|
484
|
-
// Note: For legacy code is reversed which not like other antd component
|
|
485
|
-
keyPath: Me(Y).reverse(),
|
|
486
|
-
item: K.current,
|
|
487
|
-
domEvent: G
|
|
488
|
-
};
|
|
489
|
-
}, q = u || p, V = dt(i, B, g, c), Q = V.active, oe = te(V, Kr), le = R.includes(i), se = vt(Y.length), ce = function(G) {
|
|
490
|
-
if (!B) {
|
|
491
|
-
var ue = T(G);
|
|
492
|
-
f == null || f(en(ue)), v(ue);
|
|
493
|
-
}
|
|
494
|
-
}, F = function(G) {
|
|
495
|
-
if (b == null || b(G), G.which === ie.ENTER) {
|
|
496
|
-
var ue = T(G);
|
|
497
|
-
f == null || f(en(ue)), v(ue);
|
|
498
|
-
}
|
|
499
|
-
}, z = function(G) {
|
|
500
|
-
_(i), h == null || h(G);
|
|
501
|
-
}, ee = {};
|
|
502
|
-
e.role === "option" && (ee["aria-selected"] = le);
|
|
503
|
-
var D = /* @__PURE__ */ t.createElement(Or, L({
|
|
504
|
-
ref: K,
|
|
505
|
-
elementRef: H,
|
|
506
|
-
role: s === null ? "none" : s || "menuitem",
|
|
507
|
-
tabIndex: l ? null : -1,
|
|
508
|
-
"data-menu-id": y && C ? null : C
|
|
509
|
-
}, Sn(S, ["extra"]), oe, ee, {
|
|
510
|
-
component: "li",
|
|
511
|
-
"aria-disabled": l,
|
|
512
|
-
style: k(k({}, se), a),
|
|
513
|
-
className: de(O, w(w(w({}, "".concat(O, "-active"), Q), "".concat(O, "-selected"), le), "".concat(O, "-disabled"), B), n),
|
|
514
|
-
onClick: ce,
|
|
515
|
-
onKeyDown: F,
|
|
516
|
-
onFocus: z
|
|
517
|
-
}), d, /* @__PURE__ */ t.createElement(mt, {
|
|
518
|
-
props: k(k({}, e), {}, {
|
|
519
|
-
isSelected: le
|
|
520
|
-
}),
|
|
521
|
-
icon: q
|
|
522
|
-
}));
|
|
523
|
-
return W && (D = W(D, e, {
|
|
524
|
-
selected: le
|
|
525
|
-
})), D;
|
|
526
|
-
});
|
|
527
|
-
function kr(e, r) {
|
|
528
|
-
var a = e.eventKey, n = nn(), i = Fe(a);
|
|
529
|
-
return t.useEffect(function() {
|
|
530
|
-
if (n)
|
|
531
|
-
return n.registerPath(a, i), function() {
|
|
532
|
-
n.unregisterPath(a, i);
|
|
533
|
-
};
|
|
534
|
-
}, [i]), n ? null : /* @__PURE__ */ t.createElement(Ar, L({}, e, {
|
|
535
|
-
ref: r
|
|
536
|
-
}));
|
|
537
|
-
}
|
|
538
|
-
const Pn = /* @__PURE__ */ t.forwardRef(kr);
|
|
539
|
-
var Dr = ["className", "children"], $r = function(r, a) {
|
|
540
|
-
var n = r.className, i = r.children, o = te(r, Dr), l = t.useContext(ae), u = l.prefixCls, d = l.mode, s = l.rtl;
|
|
541
|
-
return /* @__PURE__ */ t.createElement("ul", L({
|
|
542
|
-
className: de(u, s && "".concat(u, "-rtl"), "".concat(u, "-sub"), "".concat(u, "-").concat(d === "inline" ? "inline" : "vertical"), n),
|
|
543
|
-
role: "menu"
|
|
544
|
-
}, o, {
|
|
545
|
-
"data-menu-list": !0,
|
|
546
|
-
ref: a
|
|
547
|
-
}), i);
|
|
548
|
-
}, Nn = /* @__PURE__ */ t.forwardRef($r);
|
|
549
|
-
Nn.displayName = "SubMenuList";
|
|
550
|
-
function _n(e, r) {
|
|
551
|
-
return or(e).map(function(a, n) {
|
|
552
|
-
if (/* @__PURE__ */ t.isValidElement(a)) {
|
|
553
|
-
var i, o, l = a.key, u = (i = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : l, d = u == null;
|
|
554
|
-
d && (u = "tmp_key-".concat([].concat(Me(r), [n]).join("-")));
|
|
555
|
-
var s = {
|
|
556
|
-
key: u,
|
|
557
|
-
eventKey: u
|
|
558
|
-
};
|
|
559
|
-
return process.env.NODE_ENV !== "production" && d && (s.warnKey = !0), /* @__PURE__ */ t.cloneElement(a, s);
|
|
560
|
-
}
|
|
561
|
-
return a;
|
|
562
|
-
});
|
|
563
|
-
}
|
|
564
|
-
var U = {
|
|
565
|
-
adjustX: 1,
|
|
566
|
-
adjustY: 1
|
|
567
|
-
}, Lr = {
|
|
568
|
-
topLeft: {
|
|
569
|
-
points: ["bl", "tl"],
|
|
570
|
-
overflow: U
|
|
571
|
-
},
|
|
572
|
-
topRight: {
|
|
573
|
-
points: ["br", "tr"],
|
|
574
|
-
overflow: U
|
|
575
|
-
},
|
|
576
|
-
bottomLeft: {
|
|
577
|
-
points: ["tl", "bl"],
|
|
578
|
-
overflow: U
|
|
579
|
-
},
|
|
580
|
-
bottomRight: {
|
|
581
|
-
points: ["tr", "br"],
|
|
582
|
-
overflow: U
|
|
583
|
-
},
|
|
584
|
-
leftTop: {
|
|
585
|
-
points: ["tr", "tl"],
|
|
586
|
-
overflow: U
|
|
587
|
-
},
|
|
588
|
-
leftBottom: {
|
|
589
|
-
points: ["br", "bl"],
|
|
590
|
-
overflow: U
|
|
591
|
-
},
|
|
592
|
-
rightTop: {
|
|
593
|
-
points: ["tl", "tr"],
|
|
594
|
-
overflow: U
|
|
595
|
-
},
|
|
596
|
-
rightBottom: {
|
|
597
|
-
points: ["bl", "br"],
|
|
598
|
-
overflow: U
|
|
599
|
-
}
|
|
600
|
-
}, Tr = {
|
|
601
|
-
topLeft: {
|
|
602
|
-
points: ["bl", "tl"],
|
|
603
|
-
overflow: U
|
|
604
|
-
},
|
|
605
|
-
topRight: {
|
|
606
|
-
points: ["br", "tr"],
|
|
607
|
-
overflow: U
|
|
608
|
-
},
|
|
609
|
-
bottomLeft: {
|
|
610
|
-
points: ["tl", "bl"],
|
|
611
|
-
overflow: U
|
|
612
|
-
},
|
|
613
|
-
bottomRight: {
|
|
614
|
-
points: ["tr", "br"],
|
|
615
|
-
overflow: U
|
|
616
|
-
},
|
|
617
|
-
rightTop: {
|
|
618
|
-
points: ["tr", "tl"],
|
|
619
|
-
overflow: U
|
|
620
|
-
},
|
|
621
|
-
rightBottom: {
|
|
622
|
-
points: ["br", "bl"],
|
|
623
|
-
overflow: U
|
|
624
|
-
},
|
|
625
|
-
leftTop: {
|
|
626
|
-
points: ["tl", "tr"],
|
|
627
|
-
overflow: U
|
|
628
|
-
},
|
|
629
|
-
leftBottom: {
|
|
630
|
-
points: ["bl", "br"],
|
|
631
|
-
overflow: U
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
function pt(e, r, a) {
|
|
635
|
-
if (r)
|
|
636
|
-
return r;
|
|
637
|
-
if (a)
|
|
638
|
-
return a[e] || a.other;
|
|
639
|
-
}
|
|
640
|
-
var Vr = {
|
|
641
|
-
horizontal: "bottomLeft",
|
|
642
|
-
vertical: "rightTop",
|
|
643
|
-
"vertical-left": "rightTop",
|
|
644
|
-
"vertical-right": "leftTop"
|
|
645
|
-
};
|
|
646
|
-
function Fr(e) {
|
|
647
|
-
var r = e.prefixCls, a = e.visible, n = e.children, i = e.popup, o = e.popupStyle, l = e.popupClassName, u = e.popupOffset, d = e.disabled, s = e.mode, g = e.onVisibleChange, c = t.useContext(ae), f = c.getPopupContainer, b = c.rtl, h = c.subMenuOpenDelay, S = c.subMenuCloseDelay, C = c.builtinPlacements, I = c.triggerSubMenuAction, P = c.forceSubMenuRender, v = c.rootClassName, m = c.motion, y = c.defaultMotions, p = t.useState(!1), R = $(p, 2), _ = R[0], E = R[1], W = b ? k(k({}, Tr), C) : k(k({}, Lr), C), O = Vr[s], K = pt(s, m, y), j = t.useRef(K);
|
|
648
|
-
s !== "inline" && (j.current = K);
|
|
649
|
-
var B = k(k({}, j.current), {}, {
|
|
650
|
-
leavedClassName: "".concat(r, "-hidden"),
|
|
651
|
-
removeOnLeave: !1,
|
|
652
|
-
motionAppear: !0
|
|
653
|
-
}), H = t.useRef();
|
|
654
|
-
return t.useEffect(function() {
|
|
655
|
-
return H.current = xe(function() {
|
|
656
|
-
E(a);
|
|
657
|
-
}), function() {
|
|
658
|
-
xe.cancel(H.current);
|
|
659
|
-
};
|
|
660
|
-
}, [a]), /* @__PURE__ */ t.createElement(et, {
|
|
661
|
-
prefixCls: r,
|
|
662
|
-
popupClassName: de("".concat(r, "-popup"), w({}, "".concat(r, "-rtl"), b), l, v),
|
|
663
|
-
stretch: s === "horizontal" ? "minWidth" : null,
|
|
664
|
-
getPopupContainer: f,
|
|
665
|
-
builtinPlacements: W,
|
|
666
|
-
popupPlacement: O,
|
|
667
|
-
popupVisible: _,
|
|
668
|
-
popup: i,
|
|
669
|
-
popupStyle: o,
|
|
670
|
-
popupAlign: u && {
|
|
671
|
-
offset: u
|
|
672
|
-
},
|
|
673
|
-
action: d ? [] : [I],
|
|
674
|
-
mouseEnterDelay: h,
|
|
675
|
-
mouseLeaveDelay: S,
|
|
676
|
-
onPopupVisibleChange: g,
|
|
677
|
-
forceRender: P,
|
|
678
|
-
popupMotion: B,
|
|
679
|
-
fresh: !0
|
|
680
|
-
}, n);
|
|
681
|
-
}
|
|
682
|
-
function zr(e) {
|
|
683
|
-
var r = e.id, a = e.open, n = e.keyPath, i = e.children, o = "inline", l = t.useContext(ae), u = l.prefixCls, d = l.forceSubMenuRender, s = l.motion, g = l.defaultMotions, c = l.mode, f = t.useRef(!1);
|
|
684
|
-
f.current = c === o;
|
|
685
|
-
var b = t.useState(!f.current), h = $(b, 2), S = h[0], C = h[1], I = f.current ? a : !1;
|
|
686
|
-
t.useEffect(function() {
|
|
687
|
-
f.current && C(!1);
|
|
688
|
-
}, [c]);
|
|
689
|
-
var P = k({}, pt(o, s, g));
|
|
690
|
-
n.length > 1 && (P.motionAppear = !1);
|
|
691
|
-
var v = P.onVisibleChanged;
|
|
692
|
-
return P.onVisibleChanged = function(m) {
|
|
693
|
-
return !f.current && !m && C(!0), v == null ? void 0 : v(m);
|
|
694
|
-
}, S ? null : /* @__PURE__ */ t.createElement(Ve, {
|
|
695
|
-
mode: o,
|
|
696
|
-
locked: !f.current
|
|
697
|
-
}, /* @__PURE__ */ t.createElement(er, L({
|
|
698
|
-
visible: I
|
|
699
|
-
}, P, {
|
|
700
|
-
forceRender: d,
|
|
701
|
-
removeOnLeave: !1,
|
|
702
|
-
leavedClassName: "".concat(u, "-hidden")
|
|
703
|
-
}), function(m) {
|
|
704
|
-
var y = m.className, p = m.style;
|
|
705
|
-
return /* @__PURE__ */ t.createElement(Nn, {
|
|
706
|
-
id: r,
|
|
707
|
-
className: y,
|
|
708
|
-
style: p
|
|
709
|
-
}, i);
|
|
710
|
-
}));
|
|
711
|
-
}
|
|
712
|
-
var Ur = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], Wr = ["active"], jr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
713
|
-
var a = e.style, n = e.className, i = e.title, o = e.eventKey, l = e.warnKey, u = e.disabled, d = e.internalPopupClose, s = e.children, g = e.itemIcon, c = e.expandIcon, f = e.popupClassName, b = e.popupOffset, h = e.popupStyle, S = e.onClick, C = e.onMouseEnter, I = e.onMouseLeave, P = e.onTitleClick, v = e.onTitleMouseEnter, m = e.onTitleMouseLeave, y = te(e, Ur), p = lt(o), R = t.useContext(ae), _ = R.prefixCls, E = R.mode, W = R.openKeys, O = R.disabled, K = R.overflowDisabled, j = R.activeKey, B = R.selectedKeys, H = R.itemIcon, Y = R.expandIcon, T = R.onItemClick, q = R.onOpenChange, V = R.onActive, Q = t.useContext(En), oe = Q._internalRenderSubMenuItem, le = t.useContext(ct), se = le.isSubPathKey, ce = Fe(), F = "".concat(_, "-submenu"), z = O || u, ee = t.useRef(), D = t.useRef();
|
|
714
|
-
process.env.NODE_ENV !== "production" && l && we(!1, "SubMenu should not leave undefined `key`.");
|
|
715
|
-
var ne = g ?? H, G = c ?? Y, ue = W.includes(o), ve = !K && ue, ze = se(B, o), Ie = dt(o, z, v, m), ge = Ie.active, an = te(Ie, Wr), on = t.useState(!1), Ue = $(on, 2), Pe = Ue[0], We = Ue[1], Ne = function(A) {
|
|
716
|
-
z || We(A);
|
|
717
|
-
}, ln = function(A) {
|
|
718
|
-
Ne(!0), C == null || C({
|
|
719
|
-
key: o,
|
|
720
|
-
domEvent: A
|
|
721
|
-
});
|
|
722
|
-
}, un = function(A) {
|
|
723
|
-
Ne(!1), I == null || I({
|
|
724
|
-
key: o,
|
|
725
|
-
domEvent: A
|
|
726
|
-
});
|
|
727
|
-
}, _e = t.useMemo(function() {
|
|
728
|
-
return ge || (E !== "inline" ? Pe || se([j], o) : !1);
|
|
729
|
-
}, [E, ge, j, Pe, o, se]), fe = vt(ce.length), sn = function(A) {
|
|
730
|
-
z || (P == null || P({
|
|
731
|
-
key: o,
|
|
732
|
-
domEvent: A
|
|
733
|
-
}), E === "inline" && q(o, !ue));
|
|
734
|
-
}, cn = Le(function(re) {
|
|
735
|
-
S == null || S(en(re)), T(re);
|
|
736
|
-
}), je = function(A) {
|
|
737
|
-
E !== "inline" && q(o, A);
|
|
738
|
-
}, Be = function() {
|
|
739
|
-
V(o);
|
|
740
|
-
}, Ke = p && "".concat(p, "-popup"), me = /* @__PURE__ */ t.createElement("div", L({
|
|
741
|
-
role: "menuitem",
|
|
742
|
-
style: fe,
|
|
743
|
-
className: "".concat(F, "-title"),
|
|
744
|
-
tabIndex: z ? null : -1,
|
|
745
|
-
ref: ee,
|
|
746
|
-
title: typeof i == "string" ? i : null,
|
|
747
|
-
"data-menu-id": K && p ? null : p,
|
|
748
|
-
"aria-expanded": ve,
|
|
749
|
-
"aria-haspopup": !0,
|
|
750
|
-
"aria-controls": Ke,
|
|
751
|
-
"aria-disabled": z,
|
|
752
|
-
onClick: sn,
|
|
753
|
-
onFocus: Be
|
|
754
|
-
}, an), i, /* @__PURE__ */ t.createElement(mt, {
|
|
755
|
-
icon: E !== "horizontal" ? G : void 0,
|
|
756
|
-
props: k(k({}, e), {}, {
|
|
757
|
-
isOpen: ve,
|
|
758
|
-
// [Legacy] Not sure why need this mark
|
|
759
|
-
isSubMenu: !0
|
|
760
|
-
})
|
|
761
|
-
}, /* @__PURE__ */ t.createElement("i", {
|
|
762
|
-
className: "".concat(F, "-arrow")
|
|
763
|
-
}))), he = t.useRef(E);
|
|
764
|
-
if (E !== "inline" && ce.length > 1 ? he.current = "vertical" : he.current = E, !K) {
|
|
765
|
-
var Ce = he.current;
|
|
766
|
-
me = /* @__PURE__ */ t.createElement(Fr, {
|
|
767
|
-
mode: Ce,
|
|
768
|
-
prefixCls: F,
|
|
769
|
-
visible: !d && ve && E !== "inline",
|
|
770
|
-
popupClassName: f,
|
|
771
|
-
popupOffset: b,
|
|
772
|
-
popupStyle: h,
|
|
773
|
-
popup: /* @__PURE__ */ t.createElement(
|
|
774
|
-
Ve,
|
|
775
|
-
{
|
|
776
|
-
mode: Ce === "horizontal" ? "vertical" : Ce
|
|
777
|
-
},
|
|
778
|
-
/* @__PURE__ */ t.createElement(Nn, {
|
|
779
|
-
id: Ke,
|
|
780
|
-
ref: D
|
|
781
|
-
}, s)
|
|
782
|
-
),
|
|
783
|
-
disabled: z,
|
|
784
|
-
onVisibleChange: je
|
|
785
|
-
}, me);
|
|
786
|
-
}
|
|
787
|
-
var Oe = /* @__PURE__ */ t.createElement(Te.Item, L({
|
|
788
|
-
ref: r,
|
|
789
|
-
role: "none"
|
|
790
|
-
}, y, {
|
|
791
|
-
component: "li",
|
|
792
|
-
style: a,
|
|
793
|
-
className: de(F, "".concat(F, "-").concat(E), n, w(w(w(w({}, "".concat(F, "-open"), ve), "".concat(F, "-active"), _e), "".concat(F, "-selected"), ze), "".concat(F, "-disabled"), z)),
|
|
794
|
-
onMouseEnter: ln,
|
|
795
|
-
onMouseLeave: un
|
|
796
|
-
}), me, !K && /* @__PURE__ */ t.createElement(zr, {
|
|
797
|
-
id: Ke,
|
|
798
|
-
open: ve,
|
|
799
|
-
keyPath: ce
|
|
800
|
-
}, s));
|
|
801
|
-
return oe && (Oe = oe(Oe, e, {
|
|
802
|
-
selected: ze,
|
|
803
|
-
active: _e,
|
|
804
|
-
open: ve,
|
|
805
|
-
disabled: z
|
|
806
|
-
})), /* @__PURE__ */ t.createElement(Ve, {
|
|
807
|
-
onItemClick: cn,
|
|
808
|
-
mode: E === "horizontal" ? "vertical" : E,
|
|
809
|
-
itemIcon: ne,
|
|
810
|
-
expandIcon: G
|
|
811
|
-
}, Oe);
|
|
812
|
-
}), tn = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
813
|
-
var a = e.eventKey, n = e.children, i = Fe(a), o = _n(n, i), l = nn();
|
|
814
|
-
t.useEffect(function() {
|
|
815
|
-
if (l)
|
|
816
|
-
return l.registerPath(a, i), function() {
|
|
817
|
-
l.unregisterPath(a, i);
|
|
818
|
-
};
|
|
819
|
-
}, [i]);
|
|
820
|
-
var u;
|
|
821
|
-
return l ? u = o : u = /* @__PURE__ */ t.createElement(jr, L({
|
|
822
|
-
ref: r
|
|
823
|
-
}, e), o), /* @__PURE__ */ t.createElement(st.Provider, {
|
|
824
|
-
value: i
|
|
825
|
-
}, u);
|
|
826
|
-
});
|
|
827
|
-
process.env.NODE_ENV !== "production" && (tn.displayName = "SubMenu");
|
|
828
|
-
function gt(e) {
|
|
829
|
-
var r = e.className, a = e.style, n = t.useContext(ae), i = n.prefixCls, o = nn();
|
|
830
|
-
return o ? null : /* @__PURE__ */ t.createElement("li", {
|
|
831
|
-
role: "separator",
|
|
832
|
-
className: de("".concat(i, "-item-divider"), r),
|
|
833
|
-
style: a
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
var Br = ["className", "title", "eventKey", "children"], Hr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
837
|
-
var a = e.className, n = e.title;
|
|
838
|
-
e.eventKey;
|
|
839
|
-
var i = e.children, o = te(e, Br), l = t.useContext(ae), u = l.prefixCls, d = "".concat(u, "-item-group");
|
|
840
|
-
return /* @__PURE__ */ t.createElement("li", L({
|
|
841
|
-
ref: r,
|
|
842
|
-
role: "presentation"
|
|
843
|
-
}, o, {
|
|
844
|
-
onClick: function(g) {
|
|
845
|
-
return g.stopPropagation();
|
|
846
|
-
},
|
|
847
|
-
className: de(d, a)
|
|
848
|
-
}), /* @__PURE__ */ t.createElement("div", {
|
|
849
|
-
role: "presentation",
|
|
850
|
-
className: "".concat(d, "-title"),
|
|
851
|
-
title: typeof n == "string" ? n : void 0
|
|
852
|
-
}, n), /* @__PURE__ */ t.createElement("ul", {
|
|
853
|
-
role: "group",
|
|
854
|
-
className: "".concat(d, "-list")
|
|
855
|
-
}, i));
|
|
856
|
-
}), Kn = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
857
|
-
var a = e.eventKey, n = e.children, i = Fe(a), o = _n(n, i), l = nn();
|
|
858
|
-
return l ? o : /* @__PURE__ */ t.createElement(Hr, L({
|
|
859
|
-
ref: r
|
|
860
|
-
}, Sn(e, ["warnKey"])), o);
|
|
861
|
-
});
|
|
862
|
-
process.env.NODE_ENV !== "production" && (Kn.displayName = "MenuItemGroup");
|
|
863
|
-
var Gr = ["label", "children", "key", "type", "extra"];
|
|
864
|
-
function Rn(e, r, a) {
|
|
865
|
-
var n = r.item, i = r.group, o = r.submenu, l = r.divider;
|
|
866
|
-
return (e || []).map(function(u, d) {
|
|
867
|
-
if (u && Gt(u) === "object") {
|
|
868
|
-
var s = u, g = s.label, c = s.children, f = s.key, b = s.type, h = s.extra, S = te(s, Gr), C = f ?? "tmp-".concat(d);
|
|
869
|
-
return c || b === "group" ? b === "group" ? /* @__PURE__ */ t.createElement(i, L({
|
|
870
|
-
key: C
|
|
871
|
-
}, S, {
|
|
872
|
-
title: g
|
|
873
|
-
}), Rn(c, r, a)) : /* @__PURE__ */ t.createElement(o, L({
|
|
874
|
-
key: C
|
|
875
|
-
}, S, {
|
|
876
|
-
title: g
|
|
877
|
-
}), Rn(c, r, a)) : b === "divider" ? /* @__PURE__ */ t.createElement(l, L({
|
|
878
|
-
key: C
|
|
879
|
-
}, S)) : /* @__PURE__ */ t.createElement(n, L({
|
|
880
|
-
key: C
|
|
881
|
-
}, S, {
|
|
882
|
-
extra: h
|
|
883
|
-
}), g, (!!h || h === 0) && /* @__PURE__ */ t.createElement("span", {
|
|
884
|
-
className: "".concat(a, "-item-extra")
|
|
885
|
-
}, h));
|
|
886
|
-
}
|
|
887
|
-
return null;
|
|
888
|
-
}).filter(function(u) {
|
|
889
|
-
return u;
|
|
890
|
-
});
|
|
891
|
-
}
|
|
892
|
-
function Qn(e, r, a, n, i) {
|
|
893
|
-
var o = e, l = k({
|
|
894
|
-
divider: gt,
|
|
895
|
-
item: Pn,
|
|
896
|
-
group: Kn,
|
|
897
|
-
submenu: tn
|
|
898
|
-
}, n);
|
|
899
|
-
return r && (o = Rn(r, l, i)), _n(o, a);
|
|
900
|
-
}
|
|
901
|
-
var qr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], ye = [], Yr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
902
|
-
var a, n = e, i = n.prefixCls, o = i === void 0 ? "rc-menu" : i, l = n.rootClassName, u = n.style, d = n.className, s = n.tabIndex, g = s === void 0 ? 0 : s, c = n.items, f = n.children, b = n.direction, h = n.id, S = n.mode, C = S === void 0 ? "vertical" : S, I = n.inlineCollapsed, P = n.disabled, v = n.disabledOverflow, m = n.subMenuOpenDelay, y = m === void 0 ? 0.1 : m, p = n.subMenuCloseDelay, R = p === void 0 ? 0.1 : p, _ = n.forceSubMenuRender, E = n.defaultOpenKeys, W = n.openKeys, O = n.activeKey, K = n.defaultActiveFirst, j = n.selectable, B = j === void 0 ? !0 : j, H = n.multiple, Y = H === void 0 ? !1 : H, T = n.defaultSelectedKeys, q = n.selectedKeys, V = n.onSelect, Q = n.onDeselect, oe = n.inlineIndent, le = oe === void 0 ? 24 : oe, se = n.motion, ce = n.defaultMotions, F = n.triggerSubMenuAction, z = F === void 0 ? "hover" : F, ee = n.builtinPlacements, D = n.itemIcon, ne = n.expandIcon, G = n.overflowedIndicator, ue = G === void 0 ? "..." : G, ve = n.overflowedIndicatorPopupClassName, ze = n.getPopupContainer, Ie = n.onClick, ge = n.onOpenChange, an = n.onKeyDown, on = n.openAnimation, Ue = n.openTransitionName, Pe = n._internalRenderMenuItem, We = n._internalRenderSubMenuItem, Ne = n._internalComponents, ln = te(n, qr), un = t.useMemo(function() {
|
|
903
|
-
return [Qn(f, c, ye, Ne, o), Qn(f, c, ye, {}, o)];
|
|
904
|
-
}, [f, c, Ne]), _e = $(un, 2), fe = _e[0], sn = _e[1], cn = t.useState(!1), je = $(cn, 2), Be = je[0], Ke = je[1], me = t.useRef(), he = wr(h), Ce = b === "rtl";
|
|
905
|
-
process.env.NODE_ENV !== "production" && we(!on && !Ue, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
906
|
-
var Oe = Ze(E, {
|
|
907
|
-
value: W,
|
|
908
|
-
postState: function(M) {
|
|
909
|
-
return M || ye;
|
|
910
|
-
}
|
|
911
|
-
}), re = $(Oe, 2), A = re[0], On = re[1], fn = function(M) {
|
|
912
|
-
var x = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
913
|
-
function X() {
|
|
914
|
-
On(M), ge == null || ge(M);
|
|
915
|
-
}
|
|
916
|
-
x ? nr.flushSync(X) : X();
|
|
917
|
-
}, ht = t.useState(A), An = $(ht, 2), Ct = An[0], bt = An[1], dn = t.useRef(!1), yt = t.useMemo(function() {
|
|
918
|
-
return (C === "inline" || C === "vertical") && I ? ["vertical", I] : [C, !1];
|
|
919
|
-
}, [C, I]), kn = $(yt, 2), He = kn[0], vn = kn[1], Dn = He === "inline", Mt = t.useState(He), $n = $(Mt, 2), pe = $n[0], It = $n[1], Rt = t.useState(vn), Ln = $(Rt, 2), St = Ln[0], Et = Ln[1];
|
|
920
|
-
t.useEffect(function() {
|
|
921
|
-
It(He), Et(vn), dn.current && (Dn ? On(Ct) : fn(ye));
|
|
922
|
-
}, [He, vn]);
|
|
923
|
-
var xt = t.useState(0), Tn = $(xt, 2), Ge = Tn[0], wt = Tn[1], mn = Ge >= fe.length - 1 || pe !== "horizontal" || v;
|
|
924
|
-
t.useEffect(function() {
|
|
925
|
-
Dn && bt(A);
|
|
926
|
-
}, [A]), t.useEffect(function() {
|
|
927
|
-
return dn.current = !0, function() {
|
|
928
|
-
dn.current = !1;
|
|
929
|
-
};
|
|
930
|
-
}, []);
|
|
931
|
-
var be = Er(), Vn = be.registerPath, Fn = be.unregisterPath, Pt = be.refreshOverflowKeys, zn = be.isSubPathKey, Nt = be.getKeyPath, Un = be.getKeys, _t = be.getSubPathKeys, Kt = t.useMemo(function() {
|
|
932
|
-
return {
|
|
933
|
-
registerPath: Vn,
|
|
934
|
-
unregisterPath: Fn
|
|
935
|
-
};
|
|
936
|
-
}, [Vn, Fn]), Ot = t.useMemo(function() {
|
|
937
|
-
return {
|
|
938
|
-
isSubPathKey: zn
|
|
939
|
-
};
|
|
940
|
-
}, [zn]);
|
|
941
|
-
t.useEffect(function() {
|
|
942
|
-
Pt(mn ? ye : fe.slice(Ge + 1).map(function(N) {
|
|
943
|
-
return N.key;
|
|
944
|
-
}));
|
|
945
|
-
}, [Ge, mn]);
|
|
946
|
-
var At = Ze(O || K && ((a = fe[0]) === null || a === void 0 ? void 0 : a.key), {
|
|
947
|
-
value: O
|
|
948
|
-
}), Wn = $(At, 2), Ae = Wn[0], pn = Wn[1], kt = Le(function(N) {
|
|
949
|
-
pn(N);
|
|
950
|
-
}), Dt = Le(function() {
|
|
951
|
-
pn(void 0);
|
|
952
|
-
});
|
|
953
|
-
ar(r, function() {
|
|
954
|
-
return {
|
|
955
|
-
list: me.current,
|
|
956
|
-
focus: function(M) {
|
|
957
|
-
var x, X = Un(), Z = Mn(X, he), Ye = Z.elements, gn = Z.key2element, Bt = Z.element2key, Hn = xn(me.current, Ye), Gn = Ae ?? (Hn[0] ? Bt.get(Hn[0]) : (x = fe.find(function(Ht) {
|
|
958
|
-
return !Ht.props.disabled;
|
|
959
|
-
})) === null || x === void 0 ? void 0 : x.key), ke = gn.get(Gn);
|
|
960
|
-
if (Gn && ke) {
|
|
961
|
-
var hn;
|
|
962
|
-
ke == null || (hn = ke.focus) === null || hn === void 0 || hn.call(ke, M);
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
};
|
|
966
|
-
});
|
|
967
|
-
var $t = Ze(T || [], {
|
|
968
|
-
value: q,
|
|
969
|
-
// Legacy convert key to array
|
|
970
|
-
postState: function(M) {
|
|
971
|
-
return Array.isArray(M) ? M : M == null ? ye : [M];
|
|
972
|
-
}
|
|
973
|
-
}), jn = $($t, 2), qe = jn[0], Lt = jn[1], Tt = function(M) {
|
|
974
|
-
if (B) {
|
|
975
|
-
var x = M.key, X = qe.includes(x), Z;
|
|
976
|
-
Y ? X ? Z = qe.filter(function(gn) {
|
|
977
|
-
return gn !== x;
|
|
978
|
-
}) : Z = [].concat(Me(qe), [x]) : Z = [x], Lt(Z);
|
|
979
|
-
var Ye = k(k({}, M), {}, {
|
|
980
|
-
selectedKeys: Z
|
|
981
|
-
});
|
|
982
|
-
X ? Q == null || Q(Ye) : V == null || V(Ye);
|
|
983
|
-
}
|
|
984
|
-
!Y && A.length && pe !== "inline" && fn(ye);
|
|
985
|
-
}, Vt = Le(function(N) {
|
|
986
|
-
Ie == null || Ie(en(N)), Tt(N);
|
|
987
|
-
}), Bn = Le(function(N, M) {
|
|
988
|
-
var x = A.filter(function(Z) {
|
|
989
|
-
return Z !== N;
|
|
990
|
-
});
|
|
991
|
-
if (M)
|
|
992
|
-
x.push(N);
|
|
993
|
-
else if (pe !== "inline") {
|
|
994
|
-
var X = _t(N);
|
|
995
|
-
x = x.filter(function(Z) {
|
|
996
|
-
return !X.has(Z);
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
at(A, x, !0) || fn(x, !0);
|
|
1000
|
-
}), Ft = function(M, x) {
|
|
1001
|
-
var X = x ?? !A.includes(M);
|
|
1002
|
-
Bn(M, X);
|
|
1003
|
-
}, zt = Ir(pe, Ae, Ce, he, me, Un, Nt, pn, Ft, an);
|
|
1004
|
-
t.useEffect(function() {
|
|
1005
|
-
Ke(!0);
|
|
1006
|
-
}, []);
|
|
1007
|
-
var Ut = t.useMemo(function() {
|
|
1008
|
-
return {
|
|
1009
|
-
_internalRenderMenuItem: Pe,
|
|
1010
|
-
_internalRenderSubMenuItem: We
|
|
1011
|
-
};
|
|
1012
|
-
}, [Pe, We]), Wt = pe !== "horizontal" || v ? fe : (
|
|
1013
|
-
// Need wrap for overflow dropdown that do not response for open
|
|
1014
|
-
fe.map(function(N, M) {
|
|
1015
|
-
return (
|
|
1016
|
-
// Always wrap provider to avoid sub node re-mount
|
|
1017
|
-
/* @__PURE__ */ t.createElement(Ve, {
|
|
1018
|
-
key: N.key,
|
|
1019
|
-
overflowDisabled: M > Ge
|
|
1020
|
-
}, N)
|
|
1021
|
-
);
|
|
1022
|
-
})
|
|
1023
|
-
), jt = /* @__PURE__ */ t.createElement(Te, L({
|
|
1024
|
-
id: h,
|
|
1025
|
-
ref: me,
|
|
1026
|
-
prefixCls: "".concat(o, "-overflow"),
|
|
1027
|
-
component: "ul",
|
|
1028
|
-
itemComponent: Pn,
|
|
1029
|
-
className: de(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), d, w(w({}, "".concat(o, "-inline-collapsed"), St), "".concat(o, "-rtl"), Ce), l),
|
|
1030
|
-
dir: b,
|
|
1031
|
-
style: u,
|
|
1032
|
-
role: "menu",
|
|
1033
|
-
tabIndex: g,
|
|
1034
|
-
data: Wt,
|
|
1035
|
-
renderRawItem: function(M) {
|
|
1036
|
-
return M;
|
|
1037
|
-
},
|
|
1038
|
-
renderRawRest: function(M) {
|
|
1039
|
-
var x = M.length, X = x ? fe.slice(-x) : null;
|
|
1040
|
-
return /* @__PURE__ */ t.createElement(tn, {
|
|
1041
|
-
eventKey: In,
|
|
1042
|
-
title: ue,
|
|
1043
|
-
disabled: mn,
|
|
1044
|
-
internalPopupClose: x === 0,
|
|
1045
|
-
popupClassName: ve
|
|
1046
|
-
}, X);
|
|
1047
|
-
},
|
|
1048
|
-
maxCount: pe !== "horizontal" || v ? Te.INVALIDATE : Te.RESPONSIVE,
|
|
1049
|
-
ssr: "full",
|
|
1050
|
-
"data-menu-list": !0,
|
|
1051
|
-
onVisibleChange: function(M) {
|
|
1052
|
-
wt(M);
|
|
1053
|
-
},
|
|
1054
|
-
onKeyDown: zt
|
|
1055
|
-
}, ln));
|
|
1056
|
-
return /* @__PURE__ */ t.createElement(En.Provider, {
|
|
1057
|
-
value: Ut
|
|
1058
|
-
}, /* @__PURE__ */ t.createElement(it.Provider, {
|
|
1059
|
-
value: he
|
|
1060
|
-
}, /* @__PURE__ */ t.createElement(Ve, {
|
|
1061
|
-
prefixCls: o,
|
|
1062
|
-
rootClassName: l,
|
|
1063
|
-
mode: pe,
|
|
1064
|
-
openKeys: A,
|
|
1065
|
-
rtl: Ce,
|
|
1066
|
-
disabled: P,
|
|
1067
|
-
motion: Be ? se : null,
|
|
1068
|
-
defaultMotions: Be ? ce : null,
|
|
1069
|
-
activeKey: Ae,
|
|
1070
|
-
onActive: kt,
|
|
1071
|
-
onInactive: Dt,
|
|
1072
|
-
selectedKeys: qe,
|
|
1073
|
-
inlineIndent: le,
|
|
1074
|
-
subMenuOpenDelay: y,
|
|
1075
|
-
subMenuCloseDelay: R,
|
|
1076
|
-
forceSubMenuRender: _,
|
|
1077
|
-
builtinPlacements: ee,
|
|
1078
|
-
triggerSubMenuAction: z,
|
|
1079
|
-
getPopupContainer: ze,
|
|
1080
|
-
itemIcon: D,
|
|
1081
|
-
expandIcon: ne,
|
|
1082
|
-
onItemClick: Vt,
|
|
1083
|
-
onOpenChange: Bn
|
|
1084
|
-
}, /* @__PURE__ */ t.createElement(ct.Provider, {
|
|
1085
|
-
value: Ot
|
|
1086
|
-
}, jt), /* @__PURE__ */ t.createElement("div", {
|
|
1087
|
-
style: {
|
|
1088
|
-
display: "none"
|
|
1089
|
-
},
|
|
1090
|
-
"aria-hidden": !0
|
|
1091
|
-
}, /* @__PURE__ */ t.createElement(ut.Provider, {
|
|
1092
|
-
value: Kt
|
|
1093
|
-
}, sn)))));
|
|
1094
|
-
}), rn = Yr;
|
|
1095
|
-
rn.Item = Pn;
|
|
1096
|
-
rn.SubMenu = tn;
|
|
1097
|
-
rn.ItemGroup = Kn;
|
|
1098
|
-
rn.Divider = gt;
|
|
1099
|
-
var Xr = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, Zr = function(r, a) {
|
|
1100
|
-
return /* @__PURE__ */ t.createElement(lr, L({}, r, {
|
|
1101
|
-
ref: a,
|
|
1102
|
-
icon: Xr
|
|
1103
|
-
}));
|
|
1104
|
-
}, Jr = /* @__PURE__ */ t.forwardRef(Zr);
|
|
1105
|
-
process.env.NODE_ENV !== "production" && (Jr.displayName = "EllipsisOutlined");
|
|
1106
|
-
export {
|
|
1107
|
-
ca as D,
|
|
1108
|
-
rn as E,
|
|
1109
|
-
Pn as M,
|
|
1110
|
-
Jr as R,
|
|
1111
|
-
tn as S,
|
|
1112
|
-
gt as a,
|
|
1113
|
-
Kn as b,
|
|
1114
|
-
Fe as u
|
|
1115
|
-
};
|