@gobolt/genesis 0.0.10 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-Du9689ax.js} +41 -44
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-C9_aCDvn.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DWf4XIal.js} +62 -61
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-BVN4pcVe.js +560 -0
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/Typography-CoZ5qD-t.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-BwqpCxVM.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +35 -1
- package/dist/components/index.js +58 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
- package/dist/dropdown-Dp_PTQ2u.js +2045 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +101 -43
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BPVue1Yd.js +445 -0
- package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-B_1Ge8na.js +1846 -0
- package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
- package/dist/index-BvOLXELm.js +102 -0
- package/dist/index-CLSrpQRW.js +416 -0
- package/dist/index-CbVOl2U6.js +288 -0
- package/dist/index-D0U6r5O7.js +780 -0
- package/dist/index-DEu2PVzQ.js +538 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DNQ-jnBx.js +3321 -0
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +65 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-dCkpy7Cb.js +73 -0
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/setup-CUbCc8fQ.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +29 -13
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +398 -331
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1652 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/styles-CWdUpZom.js +289 -0
- package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
- package/dist/styles-qerRs7Rn.js +9196 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-U3Az44CO.js +11 -0
- package/dist/useBreakpoint-TkMv121M.js +22 -0
- package/dist/useCSSVarCls-Dau77fzS.js +11 -0
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-CTfNpakL.js +16 -0
- package/dist/useMergedState-D6toxSxh.js +23 -0
- package/dist/useSize-DSq4r6zy.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
- package/dist/useZIndex-DhyHuZTN.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +89 -0
- package/package.json +27 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/TextArea-DKwCct3i.js +0 -1690
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/index-DPW8XdWj.js +0 -952
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -1,2164 +1,143 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { p as
|
|
7
|
-
import { c as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import { T as xt, i as Xe, g as wt, a as Ot, b as Bt, c as Et } from "../../index-DPW8XdWj.js";
|
|
14
|
-
import { u as Ve } from "../../context-BMW3aJEf.js";
|
|
15
|
-
import { C as Nt } from "../../ContextIsolator-D5x2Ih51.js";
|
|
16
|
-
import { g as jt } from "../../collapse-Dtpt-6W_.js";
|
|
17
|
-
import { i as re, s as zt, a as Tt, b as Pt, c as Ht } from "../../Overflow-PBZD-PFm.js";
|
|
18
|
-
var Dt = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "bars", theme: "outlined" }, Mt = function(n, t) {
|
|
19
|
-
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
20
|
-
ref: t,
|
|
21
|
-
icon: Dt
|
|
22
|
-
}));
|
|
23
|
-
}, qe = /* @__PURE__ */ l.forwardRef(Mt);
|
|
24
|
-
process.env.NODE_ENV !== "production" && (qe.displayName = "BarsOutlined");
|
|
25
|
-
var Rt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, name: "left", theme: "outlined" }, _t = function(n, t) {
|
|
26
|
-
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
27
|
-
ref: t,
|
|
28
|
-
icon: Rt
|
|
29
|
-
}));
|
|
30
|
-
}, ve = /* @__PURE__ */ l.forwardRef(_t);
|
|
31
|
-
process.env.NODE_ENV !== "production" && (ve.displayName = "LeftOutlined");
|
|
32
|
-
var At = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Lt = function(n, t) {
|
|
33
|
-
return /* @__PURE__ */ l.createElement(ye, Se({}, n, {
|
|
34
|
-
ref: t,
|
|
35
|
-
icon: At
|
|
36
|
-
}));
|
|
37
|
-
}, ie = /* @__PURE__ */ l.forwardRef(Lt);
|
|
38
|
-
process.env.NODE_ENV !== "production" && (ie.displayName = "RightOutlined");
|
|
39
|
-
const kt = (e) => typeof e != "object" && typeof e != "function" || e === null, Wt = /* @__PURE__ */ l.createContext({
|
|
40
|
-
siderHook: {
|
|
41
|
-
addSider: () => null,
|
|
42
|
-
removeSider: () => null
|
|
43
|
-
}
|
|
44
|
-
}), Xt = (e) => {
|
|
45
|
-
const {
|
|
46
|
-
antCls: n,
|
|
47
|
-
// .ant
|
|
48
|
-
componentCls: t,
|
|
49
|
-
// .ant-layout
|
|
50
|
-
colorText: o,
|
|
51
|
-
footerBg: r,
|
|
52
|
-
headerHeight: a,
|
|
53
|
-
headerPadding: i,
|
|
54
|
-
headerColor: d,
|
|
55
|
-
footerPadding: s,
|
|
56
|
-
fontSize: p,
|
|
57
|
-
bodyBg: g,
|
|
58
|
-
headerBg: S
|
|
59
|
-
} = e;
|
|
60
|
-
return {
|
|
61
|
-
[t]: {
|
|
62
|
-
display: "flex",
|
|
63
|
-
flex: "auto",
|
|
64
|
-
flexDirection: "column",
|
|
65
|
-
/* fix firefox can't set height smaller than content on flex item */
|
|
66
|
-
minHeight: 0,
|
|
67
|
-
background: g,
|
|
68
|
-
"&, *": {
|
|
69
|
-
boxSizing: "border-box"
|
|
70
|
-
},
|
|
71
|
-
[`&${t}-has-sider`]: {
|
|
72
|
-
flexDirection: "row",
|
|
73
|
-
[`> ${t}, > ${t}-content`]: {
|
|
74
|
-
// https://segmentfault.com/a/1190000019498300
|
|
75
|
-
width: 0
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
[`${t}-header, &${t}-footer`]: {
|
|
79
|
-
flex: "0 0 auto"
|
|
80
|
-
},
|
|
81
|
-
// RTL
|
|
82
|
-
"&-rtl": {
|
|
83
|
-
direction: "rtl"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
// ==================== Header ====================
|
|
87
|
-
[`${t}-header`]: {
|
|
88
|
-
height: a,
|
|
89
|
-
padding: i,
|
|
90
|
-
color: d,
|
|
91
|
-
lineHeight: h(a),
|
|
92
|
-
background: S,
|
|
93
|
-
// Other components/menu/style/index.less line:686
|
|
94
|
-
// Integration with header element so menu items have the same height
|
|
95
|
-
[`${n}-menu`]: {
|
|
96
|
-
lineHeight: "inherit"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
// ==================== Footer ====================
|
|
100
|
-
[`${t}-footer`]: {
|
|
101
|
-
padding: s,
|
|
102
|
-
color: o,
|
|
103
|
-
fontSize: p,
|
|
104
|
-
background: r
|
|
105
|
-
},
|
|
106
|
-
// =================== Content ====================
|
|
107
|
-
[`${t}-content`]: {
|
|
108
|
-
flex: "auto",
|
|
109
|
-
color: o,
|
|
110
|
-
// fix firefox can't set height smaller than content on flex item
|
|
111
|
-
minHeight: 0
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
}, Fe = (e) => {
|
|
115
|
-
const {
|
|
116
|
-
colorBgLayout: n,
|
|
117
|
-
controlHeight: t,
|
|
118
|
-
controlHeightLG: o,
|
|
119
|
-
colorText: r,
|
|
120
|
-
controlHeightSM: a,
|
|
121
|
-
marginXXS: i,
|
|
122
|
-
colorTextLightSolid: d,
|
|
123
|
-
colorBgContainer: s
|
|
124
|
-
} = e, p = o * 1.25;
|
|
125
|
-
return {
|
|
126
|
-
// Deprecated
|
|
127
|
-
colorBgHeader: "#001529",
|
|
128
|
-
colorBgBody: n,
|
|
129
|
-
colorBgTrigger: "#002140",
|
|
130
|
-
bodyBg: n,
|
|
131
|
-
headerBg: "#001529",
|
|
132
|
-
headerHeight: t * 2,
|
|
133
|
-
headerPadding: `0 ${p}px`,
|
|
134
|
-
headerColor: r,
|
|
135
|
-
footerPadding: `${a}px ${p}px`,
|
|
136
|
-
footerBg: n,
|
|
137
|
-
siderBg: "#001529",
|
|
138
|
-
triggerHeight: o + i * 2,
|
|
139
|
-
triggerBg: "#002140",
|
|
140
|
-
triggerColor: d,
|
|
141
|
-
zeroTriggerWidth: o,
|
|
142
|
-
zeroTriggerHeight: o,
|
|
143
|
-
lightSiderBg: s,
|
|
144
|
-
lightTriggerBg: s,
|
|
145
|
-
lightTriggerColor: r
|
|
146
|
-
};
|
|
147
|
-
}, Ge = [["colorBgBody", "bodyBg"], ["colorBgHeader", "headerBg"], ["colorBgTrigger", "triggerBg"]];
|
|
148
|
-
te("Layout", (e) => [Xt(e)], Fe, {
|
|
149
|
-
deprecatedTokens: Ge
|
|
150
|
-
});
|
|
151
|
-
const Vt = (e) => {
|
|
152
|
-
const {
|
|
153
|
-
componentCls: n,
|
|
154
|
-
siderBg: t,
|
|
155
|
-
motionDurationMid: o,
|
|
156
|
-
motionDurationSlow: r,
|
|
157
|
-
antCls: a,
|
|
158
|
-
triggerHeight: i,
|
|
159
|
-
triggerColor: d,
|
|
160
|
-
triggerBg: s,
|
|
161
|
-
headerHeight: p,
|
|
162
|
-
zeroTriggerWidth: g,
|
|
163
|
-
zeroTriggerHeight: S,
|
|
164
|
-
borderRadiusLG: u,
|
|
165
|
-
lightSiderBg: $,
|
|
166
|
-
lightTriggerColor: c,
|
|
167
|
-
lightTriggerBg: m,
|
|
168
|
-
bodyBg: v
|
|
169
|
-
} = e;
|
|
170
|
-
return {
|
|
171
|
-
[n]: {
|
|
172
|
-
position: "relative",
|
|
173
|
-
// fix firefox can't set width smaller than content on flex item
|
|
174
|
-
minWidth: 0,
|
|
175
|
-
background: t,
|
|
176
|
-
transition: `all ${o}, background 0s`,
|
|
177
|
-
"&-has-trigger": {
|
|
178
|
-
paddingBottom: i
|
|
179
|
-
},
|
|
180
|
-
"&-right": {
|
|
181
|
-
order: 1
|
|
182
|
-
},
|
|
183
|
-
[`${n}-children`]: {
|
|
184
|
-
height: "100%",
|
|
185
|
-
// Hack for fixing margin collapse bug
|
|
186
|
-
// https://github.com/ant-design/ant-design/issues/7967
|
|
187
|
-
// solution from https://stackoverflow.com/a/33132624/3040605
|
|
188
|
-
marginTop: -0.1,
|
|
189
|
-
paddingTop: 0.1,
|
|
190
|
-
[`${a}-menu${a}-menu-inline-collapsed`]: {
|
|
191
|
-
width: "auto"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
[`${n}-trigger`]: {
|
|
195
|
-
position: "fixed",
|
|
196
|
-
bottom: 0,
|
|
197
|
-
zIndex: 1,
|
|
198
|
-
height: i,
|
|
199
|
-
color: d,
|
|
200
|
-
lineHeight: h(i),
|
|
201
|
-
textAlign: "center",
|
|
202
|
-
background: s,
|
|
203
|
-
cursor: "pointer",
|
|
204
|
-
transition: `all ${o}`
|
|
205
|
-
},
|
|
206
|
-
[`${n}-zero-width`]: {
|
|
207
|
-
"> *": {
|
|
208
|
-
overflow: "hidden"
|
|
209
|
-
},
|
|
210
|
-
"&-trigger": {
|
|
211
|
-
position: "absolute",
|
|
212
|
-
top: p,
|
|
213
|
-
insetInlineEnd: e.calc(g).mul(-1).equal(),
|
|
214
|
-
zIndex: 1,
|
|
215
|
-
width: g,
|
|
216
|
-
height: S,
|
|
217
|
-
color: d,
|
|
218
|
-
fontSize: e.fontSizeXL,
|
|
219
|
-
display: "flex",
|
|
220
|
-
alignItems: "center",
|
|
221
|
-
justifyContent: "center",
|
|
222
|
-
background: t,
|
|
223
|
-
borderRadius: `0 ${h(u)} ${h(u)} 0`,
|
|
224
|
-
cursor: "pointer",
|
|
225
|
-
transition: `background ${r} ease`,
|
|
226
|
-
"&::after": {
|
|
227
|
-
position: "absolute",
|
|
228
|
-
inset: 0,
|
|
229
|
-
background: "transparent",
|
|
230
|
-
transition: `all ${r}`,
|
|
231
|
-
content: '""'
|
|
232
|
-
},
|
|
233
|
-
"&:hover::after": {
|
|
234
|
-
background: "rgba(255, 255, 255, 0.2)"
|
|
235
|
-
},
|
|
236
|
-
"&-right": {
|
|
237
|
-
insetInlineStart: e.calc(g).mul(-1).equal(),
|
|
238
|
-
borderRadius: `${h(u)} 0 0 ${h(u)}`
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
},
|
|
242
|
-
// Light
|
|
243
|
-
"&-light": {
|
|
244
|
-
background: $,
|
|
245
|
-
[`${n}-trigger`]: {
|
|
246
|
-
color: c,
|
|
247
|
-
background: m
|
|
248
|
-
},
|
|
249
|
-
[`${n}-zero-width-trigger`]: {
|
|
250
|
-
color: c,
|
|
251
|
-
background: m,
|
|
252
|
-
border: `1px solid ${v}`,
|
|
253
|
-
// Safe to modify to any other color
|
|
254
|
-
borderInlineStart: 0
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
}, qt = te(["Layout", "Sider"], (e) => [Vt(e)], Fe, {
|
|
260
|
-
deprecatedTokens: Ge
|
|
261
|
-
});
|
|
262
|
-
var Ft = function(e, n) {
|
|
263
|
-
var t = {};
|
|
264
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
265
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
266
|
-
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
267
|
-
return t;
|
|
268
|
-
};
|
|
269
|
-
const je = {
|
|
270
|
-
xs: "479.98px",
|
|
271
|
-
sm: "575.98px",
|
|
272
|
-
md: "767.98px",
|
|
273
|
-
lg: "991.98px",
|
|
274
|
-
xl: "1199.98px",
|
|
275
|
-
xxl: "1599.98px"
|
|
276
|
-
}, Gt = (e) => !Number.isNaN(Number.parseFloat(e)) && isFinite(e), xe = /* @__PURE__ */ l.createContext({}), Yt = /* @__PURE__ */ (() => {
|
|
277
|
-
let e = 0;
|
|
278
|
-
return function() {
|
|
279
|
-
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
|
|
280
|
-
return e += 1, `${n}${e}`;
|
|
281
|
-
};
|
|
282
|
-
})(), Ut = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
283
|
-
const {
|
|
284
|
-
prefixCls: t,
|
|
285
|
-
className: o,
|
|
286
|
-
trigger: r,
|
|
287
|
-
children: a,
|
|
288
|
-
defaultCollapsed: i = !1,
|
|
289
|
-
theme: d = "dark",
|
|
290
|
-
style: s = {},
|
|
291
|
-
collapsible: p = !1,
|
|
292
|
-
reverseArrow: g = !1,
|
|
293
|
-
width: S = 200,
|
|
294
|
-
collapsedWidth: u = 80,
|
|
295
|
-
zeroWidthTriggerStyle: $,
|
|
296
|
-
breakpoint: c,
|
|
297
|
-
onCollapse: m,
|
|
298
|
-
onBreakpoint: v
|
|
299
|
-
} = e, I = Ft(e, ["prefixCls", "className", "trigger", "children", "defaultCollapsed", "theme", "style", "collapsible", "reverseArrow", "width", "collapsedWidth", "zeroWidthTriggerStyle", "breakpoint", "onCollapse", "onBreakpoint"]), {
|
|
300
|
-
siderHook: B
|
|
301
|
-
} = we(Wt), [x, b] = Oe("collapsed" in e ? e.collapsed : i), [E, N] = Oe(!1);
|
|
302
|
-
be(() => {
|
|
303
|
-
"collapsed" in e && b(e.collapsed);
|
|
304
|
-
}, [e.collapsed]);
|
|
305
|
-
const _ = (T, A) => {
|
|
306
|
-
"collapsed" in e || b(T), m == null || m(T, A);
|
|
307
|
-
}, {
|
|
308
|
-
getPrefixCls: w,
|
|
309
|
-
direction: C
|
|
310
|
-
} = we(Z), f = w("layout-sider", t), [j, D, M] = qt(f), y = _e(null);
|
|
311
|
-
y.current = (T) => {
|
|
312
|
-
N(T.matches), v == null || v(T.matches), x !== T.matches && _(T.matches, "responsive");
|
|
313
|
-
}, be(() => {
|
|
314
|
-
function T(Y) {
|
|
315
|
-
return y.current(Y);
|
|
316
|
-
}
|
|
317
|
-
let A;
|
|
318
|
-
if (typeof window < "u") {
|
|
319
|
-
const {
|
|
320
|
-
matchMedia: Y
|
|
321
|
-
} = window;
|
|
322
|
-
if (Y && c && c in je) {
|
|
323
|
-
A = Y(`screen and (max-width: ${je[c]})`);
|
|
324
|
-
try {
|
|
325
|
-
A.addEventListener("change", T);
|
|
326
|
-
} catch {
|
|
327
|
-
A.addListener(T);
|
|
328
|
-
}
|
|
329
|
-
T(A);
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return () => {
|
|
333
|
-
try {
|
|
334
|
-
A == null || A.removeEventListener("change", T);
|
|
335
|
-
} catch {
|
|
336
|
-
A == null || A.removeListener(T);
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
}, [c]), be(() => {
|
|
340
|
-
const T = Yt("ant-sider-");
|
|
341
|
-
return B.addSider(T), () => B.removeSider(T);
|
|
342
|
-
}, []);
|
|
343
|
-
const H = () => {
|
|
344
|
-
_(!x, "clickTrigger");
|
|
345
|
-
}, L = Q(I, ["collapsed"]), k = x ? u : S, R = Gt(k) ? `${k}px` : String(k), W = parseFloat(String(u || 0)) === 0 ? /* @__PURE__ */ l.createElement("span", {
|
|
346
|
-
onClick: H,
|
|
347
|
-
className: P(`${f}-zero-width-trigger`, `${f}-zero-width-trigger-${g ? "right" : "left"}`),
|
|
348
|
-
style: $
|
|
349
|
-
}, r || /* @__PURE__ */ l.createElement(qe, null)) : null, V = C === "rtl" == !g, X = {
|
|
350
|
-
expanded: V ? /* @__PURE__ */ l.createElement(ie, null) : /* @__PURE__ */ l.createElement(ve, null),
|
|
351
|
-
collapsed: V ? /* @__PURE__ */ l.createElement(ve, null) : /* @__PURE__ */ l.createElement(ie, null)
|
|
352
|
-
}[x ? "collapsed" : "expanded"], q = r !== null ? W || /* @__PURE__ */ l.createElement("div", {
|
|
353
|
-
className: `${f}-trigger`,
|
|
354
|
-
onClick: H,
|
|
355
|
-
style: {
|
|
356
|
-
width: R
|
|
357
|
-
}
|
|
358
|
-
}, r || X) : null, G = Object.assign(Object.assign({}, s), {
|
|
359
|
-
flex: `0 0 ${R}`,
|
|
360
|
-
maxWidth: R,
|
|
361
|
-
minWidth: R,
|
|
362
|
-
width: R
|
|
363
|
-
}), me = P(f, `${f}-${d}`, {
|
|
364
|
-
[`${f}-collapsed`]: !!x,
|
|
365
|
-
[`${f}-has-trigger`]: p && r !== null && !W,
|
|
366
|
-
[`${f}-below`]: !!E,
|
|
367
|
-
[`${f}-zero-width`]: parseFloat(R) === 0
|
|
368
|
-
}, o, D, M), pe = l.useMemo(() => ({
|
|
369
|
-
siderCollapsed: x
|
|
370
|
-
}), [x]);
|
|
371
|
-
return j(/* @__PURE__ */ l.createElement(xe.Provider, {
|
|
372
|
-
value: pe
|
|
373
|
-
}, /* @__PURE__ */ l.createElement("aside", Object.assign({
|
|
374
|
-
className: me
|
|
375
|
-
}, L, {
|
|
376
|
-
style: G,
|
|
377
|
-
ref: n
|
|
378
|
-
}), /* @__PURE__ */ l.createElement("div", {
|
|
379
|
-
className: `${f}-children`
|
|
380
|
-
}, a), p || E && W ? q : null)));
|
|
381
|
-
});
|
|
382
|
-
process.env.NODE_ENV !== "production" && (Ut.displayName = "Sider");
|
|
383
|
-
const le = /* @__PURE__ */ tt({
|
|
384
|
-
prefixCls: "",
|
|
385
|
-
firstLevel: !0,
|
|
386
|
-
inlineCollapsed: !1
|
|
387
|
-
});
|
|
388
|
-
var Kt = function(e, n) {
|
|
389
|
-
var t = {};
|
|
390
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
391
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
392
|
-
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
393
|
-
return t;
|
|
394
|
-
};
|
|
395
|
-
const Ye = (e) => {
|
|
396
|
-
const {
|
|
397
|
-
prefixCls: n,
|
|
398
|
-
className: t,
|
|
399
|
-
dashed: o
|
|
400
|
-
} = e, r = Kt(e, ["prefixCls", "className", "dashed"]), {
|
|
401
|
-
getPrefixCls: a
|
|
402
|
-
} = l.useContext(Z), i = a("menu", n), d = P({
|
|
403
|
-
[`${i}-item-divider-dashed`]: !!o
|
|
404
|
-
}, t);
|
|
405
|
-
return /* @__PURE__ */ l.createElement(gt, Object.assign({
|
|
406
|
-
className: d
|
|
407
|
-
}, r));
|
|
408
|
-
}, Ue = (e) => {
|
|
409
|
-
var n;
|
|
410
|
-
const {
|
|
411
|
-
className: t,
|
|
412
|
-
children: o,
|
|
413
|
-
icon: r,
|
|
414
|
-
title: a,
|
|
415
|
-
danger: i,
|
|
416
|
-
extra: d
|
|
417
|
-
} = e, {
|
|
418
|
-
prefixCls: s,
|
|
419
|
-
firstLevel: p,
|
|
420
|
-
direction: g,
|
|
421
|
-
disableMenuItemTitleTooltip: S,
|
|
422
|
-
inlineCollapsed: u
|
|
423
|
-
} = l.useContext(le), $ = (x) => {
|
|
424
|
-
const b = o == null ? void 0 : o[0], E = /* @__PURE__ */ l.createElement("span", {
|
|
425
|
-
className: P(`${s}-title-content`, {
|
|
426
|
-
[`${s}-title-content-with-extra`]: !!d || d === 0
|
|
427
|
-
})
|
|
428
|
-
}, o);
|
|
429
|
-
return (!r || /* @__PURE__ */ l.isValidElement(o) && o.type === "span") && o && x && p && typeof b == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
430
|
-
className: `${s}-inline-collapsed-noicon`
|
|
431
|
-
}, b.charAt(0)) : E;
|
|
432
|
-
}, {
|
|
433
|
-
siderCollapsed: c
|
|
434
|
-
} = l.useContext(xe);
|
|
435
|
-
let m = a;
|
|
436
|
-
typeof a > "u" ? m = p ? o : "" : a === !1 && (m = "");
|
|
437
|
-
const v = {
|
|
438
|
-
title: m
|
|
439
|
-
};
|
|
440
|
-
!c && !u && (v.title = null, v.open = !1);
|
|
441
|
-
const I = ne(o).length;
|
|
442
|
-
let B = /* @__PURE__ */ l.createElement(ft, Object.assign({}, Q(e, ["title", "icon", "danger"]), {
|
|
443
|
-
className: P({
|
|
444
|
-
[`${s}-item-danger`]: i,
|
|
445
|
-
[`${s}-item-only-child`]: (r ? I + 1 : I) === 1
|
|
446
|
-
}, t),
|
|
447
|
-
title: typeof a == "string" ? a : void 0
|
|
448
|
-
}), ee(r, {
|
|
449
|
-
className: P(/* @__PURE__ */ l.isValidElement(r) ? (n = r.props) === null || n === void 0 ? void 0 : n.className : "", `${s}-item-icon`)
|
|
450
|
-
}), $(u));
|
|
451
|
-
return S || (B = /* @__PURE__ */ l.createElement(xt, Object.assign({}, v, {
|
|
452
|
-
placement: g === "rtl" ? "left" : "right",
|
|
453
|
-
classNames: {
|
|
454
|
-
root: `${s}-inline-collapsed-tooltip`
|
|
455
|
-
}
|
|
456
|
-
}), B)), B;
|
|
457
|
-
};
|
|
458
|
-
var Zt = function(e, n) {
|
|
459
|
-
var t = {};
|
|
460
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
461
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
462
|
-
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
463
|
-
return t;
|
|
464
|
-
};
|
|
465
|
-
const ae = /* @__PURE__ */ l.createContext(null), Jt = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
466
|
-
const {
|
|
467
|
-
children: t
|
|
468
|
-
} = e, o = Zt(e, ["children"]), r = l.useContext(ae), a = l.useMemo(() => Object.assign(Object.assign({}, r), o), [
|
|
469
|
-
r,
|
|
470
|
-
o.prefixCls,
|
|
471
|
-
// restProps.expandIcon, Not mark as deps since this is a ReactNode
|
|
472
|
-
o.mode,
|
|
473
|
-
o.selectable,
|
|
474
|
-
o.rootClassName
|
|
475
|
-
// restProps.validator, Not mark as deps since this is a function
|
|
476
|
-
]), i = it(t), d = lt(n, i ? at(t) : null);
|
|
477
|
-
return /* @__PURE__ */ l.createElement(ae.Provider, {
|
|
478
|
-
value: a
|
|
479
|
-
}, /* @__PURE__ */ l.createElement(Nt, {
|
|
480
|
-
space: !0
|
|
481
|
-
}, i ? /* @__PURE__ */ l.cloneElement(t, {
|
|
482
|
-
ref: d
|
|
483
|
-
}) : t));
|
|
484
|
-
}), Qt = (e) => {
|
|
485
|
-
const {
|
|
486
|
-
componentCls: n,
|
|
487
|
-
motionDurationSlow: t,
|
|
488
|
-
horizontalLineHeight: o,
|
|
489
|
-
colorSplit: r,
|
|
490
|
-
lineWidth: a,
|
|
491
|
-
lineType: i,
|
|
492
|
-
itemPaddingInline: d
|
|
493
|
-
} = e;
|
|
494
|
-
return {
|
|
495
|
-
[`${n}-horizontal`]: {
|
|
496
|
-
lineHeight: o,
|
|
497
|
-
border: 0,
|
|
498
|
-
borderBottom: `${h(a)} ${i} ${r}`,
|
|
499
|
-
boxShadow: "none",
|
|
500
|
-
"&::after": {
|
|
501
|
-
display: "block",
|
|
502
|
-
clear: "both",
|
|
503
|
-
height: 0,
|
|
504
|
-
content: '"\\20"'
|
|
505
|
-
},
|
|
506
|
-
// ======================= Item =======================
|
|
507
|
-
[`${n}-item, ${n}-submenu`]: {
|
|
508
|
-
position: "relative",
|
|
509
|
-
display: "inline-block",
|
|
510
|
-
verticalAlign: "bottom",
|
|
511
|
-
paddingInline: d
|
|
512
|
-
},
|
|
513
|
-
[`> ${n}-item:hover,
|
|
514
|
-
> ${n}-item-active,
|
|
515
|
-
> ${n}-submenu ${n}-submenu-title:hover`]: {
|
|
516
|
-
backgroundColor: "transparent"
|
|
517
|
-
},
|
|
518
|
-
[`${n}-item, ${n}-submenu-title`]: {
|
|
519
|
-
transition: [`border-color ${t}`, `background ${t}`].join(",")
|
|
520
|
-
},
|
|
521
|
-
// ===================== Sub Menu =====================
|
|
522
|
-
[`${n}-submenu-arrow`]: {
|
|
523
|
-
display: "none"
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
}, en = (e) => {
|
|
1
|
+
import { d as L } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import * as o from "react";
|
|
3
|
+
import { useMemo as ne } from "react";
|
|
4
|
+
import { e as D } from "../../presets-Djh_L_6R.js";
|
|
5
|
+
import { t as T } from "../../toArray-U3Az44CO.js";
|
|
6
|
+
import { p as U } from "../../pickAttrs-CleuMJFR.js";
|
|
7
|
+
import { c as ae } from "../../reactNode-sKPeiqPL.js";
|
|
8
|
+
import { C as X, g as F, j as oe, m as ie, k as se, f as H, p as le } from "../../index-BbTV2Cw5.js";
|
|
9
|
+
import { R as ce } from "../../DownOutlined-Dcq69ZKM.js";
|
|
10
|
+
import { D as de } from "../../dropdown-Dp_PTQ2u.js";
|
|
11
|
+
import "../../index-DLdU7Tpd.js";
|
|
12
|
+
const x = (e) => {
|
|
528
13
|
let {
|
|
529
|
-
|
|
530
|
-
menuArrowOffset: t,
|
|
531
|
-
calc: o
|
|
532
|
-
} = e;
|
|
533
|
-
return {
|
|
534
|
-
[`${n}-rtl`]: {
|
|
535
|
-
direction: "rtl"
|
|
536
|
-
},
|
|
537
|
-
[`${n}-submenu-rtl`]: {
|
|
538
|
-
transformOrigin: "100% 0"
|
|
539
|
-
},
|
|
540
|
-
// Vertical Arrow
|
|
541
|
-
[`${n}-rtl${n}-vertical,
|
|
542
|
-
${n}-submenu-rtl ${n}-vertical`]: {
|
|
543
|
-
[`${n}-submenu-arrow`]: {
|
|
544
|
-
"&::before": {
|
|
545
|
-
transform: `rotate(-45deg) translateY(${h(o(t).mul(-1).equal())})`
|
|
546
|
-
},
|
|
547
|
-
"&::after": {
|
|
548
|
-
transform: `rotate(45deg) translateY(${h(t)})`
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
|
-
}, ze = (e) => Object.assign({}, st(e)), Te = (e, n) => {
|
|
554
|
-
const {
|
|
555
|
-
componentCls: t,
|
|
556
|
-
itemColor: o,
|
|
557
|
-
itemSelectedColor: r,
|
|
558
|
-
subMenuItemSelectedColor: a,
|
|
559
|
-
groupTitleColor: i,
|
|
560
|
-
itemBg: d,
|
|
561
|
-
subMenuItemBg: s,
|
|
562
|
-
itemSelectedBg: p,
|
|
563
|
-
activeBarHeight: g,
|
|
564
|
-
activeBarWidth: S,
|
|
565
|
-
activeBarBorderWidth: u,
|
|
566
|
-
motionDurationSlow: $,
|
|
567
|
-
motionEaseInOut: c,
|
|
568
|
-
motionEaseOut: m,
|
|
569
|
-
itemPaddingInline: v,
|
|
570
|
-
motionDurationMid: I,
|
|
571
|
-
itemHoverColor: B,
|
|
572
|
-
lineType: x,
|
|
573
|
-
colorSplit: b,
|
|
574
|
-
// Disabled
|
|
575
|
-
itemDisabledColor: E,
|
|
576
|
-
// Danger
|
|
577
|
-
dangerItemColor: N,
|
|
578
|
-
dangerItemHoverColor: _,
|
|
579
|
-
dangerItemSelectedColor: w,
|
|
580
|
-
dangerItemActiveBg: C,
|
|
581
|
-
dangerItemSelectedBg: f,
|
|
582
|
-
// Bg
|
|
583
|
-
popupBg: j,
|
|
584
|
-
itemHoverBg: D,
|
|
585
|
-
itemActiveBg: M,
|
|
586
|
-
menuSubMenuBg: y,
|
|
587
|
-
// Horizontal
|
|
588
|
-
horizontalItemSelectedColor: H,
|
|
589
|
-
horizontalItemSelectedBg: L,
|
|
590
|
-
horizontalItemBorderRadius: k,
|
|
591
|
-
horizontalItemHoverBg: R
|
|
592
|
-
} = e;
|
|
593
|
-
return {
|
|
594
|
-
[`${t}-${n}, ${t}-${n} > ${t}`]: {
|
|
595
|
-
color: o,
|
|
596
|
-
background: d,
|
|
597
|
-
[`&${t}-root:focus-visible`]: Object.assign({}, ze(e)),
|
|
598
|
-
// ======================== Item ========================
|
|
599
|
-
[`${t}-item`]: {
|
|
600
|
-
"&-group-title, &-extra": {
|
|
601
|
-
color: i
|
|
602
|
-
}
|
|
603
|
-
},
|
|
604
|
-
[`${t}-submenu-selected > ${t}-submenu-title`]: {
|
|
605
|
-
color: a
|
|
606
|
-
},
|
|
607
|
-
[`${t}-item, ${t}-submenu-title`]: {
|
|
608
|
-
color: o,
|
|
609
|
-
[`&:not(${t}-item-disabled):focus-visible`]: Object.assign({}, ze(e))
|
|
610
|
-
},
|
|
611
|
-
// Disabled
|
|
612
|
-
[`${t}-item-disabled, ${t}-submenu-disabled`]: {
|
|
613
|
-
color: `${E} !important`
|
|
614
|
-
},
|
|
615
|
-
// Hover
|
|
616
|
-
[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
|
|
617
|
-
[`&:hover, > ${t}-submenu-title:hover`]: {
|
|
618
|
-
color: B
|
|
619
|
-
}
|
|
620
|
-
},
|
|
621
|
-
[`&:not(${t}-horizontal)`]: {
|
|
622
|
-
[`${t}-item:not(${t}-item-selected)`]: {
|
|
623
|
-
"&:hover": {
|
|
624
|
-
backgroundColor: D
|
|
625
|
-
},
|
|
626
|
-
"&:active": {
|
|
627
|
-
backgroundColor: M
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
[`${t}-submenu-title`]: {
|
|
631
|
-
"&:hover": {
|
|
632
|
-
backgroundColor: D
|
|
633
|
-
},
|
|
634
|
-
"&:active": {
|
|
635
|
-
backgroundColor: M
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
},
|
|
639
|
-
// Danger - only Item has
|
|
640
|
-
[`${t}-item-danger`]: {
|
|
641
|
-
color: N,
|
|
642
|
-
[`&${t}-item:hover`]: {
|
|
643
|
-
[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]: {
|
|
644
|
-
color: _
|
|
645
|
-
}
|
|
646
|
-
},
|
|
647
|
-
[`&${t}-item:active`]: {
|
|
648
|
-
background: C
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
[`${t}-item a`]: {
|
|
652
|
-
"&, &:hover": {
|
|
653
|
-
color: "inherit"
|
|
654
|
-
}
|
|
655
|
-
},
|
|
656
|
-
[`${t}-item-selected`]: {
|
|
657
|
-
color: r,
|
|
658
|
-
// Danger
|
|
659
|
-
[`&${t}-item-danger`]: {
|
|
660
|
-
color: w
|
|
661
|
-
},
|
|
662
|
-
"a, a:hover": {
|
|
663
|
-
color: "inherit"
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
[`& ${t}-item-selected`]: {
|
|
667
|
-
backgroundColor: p,
|
|
668
|
-
// Danger
|
|
669
|
-
[`&${t}-item-danger`]: {
|
|
670
|
-
backgroundColor: f
|
|
671
|
-
}
|
|
672
|
-
},
|
|
673
|
-
[`&${t}-submenu > ${t}`]: {
|
|
674
|
-
backgroundColor: y
|
|
675
|
-
},
|
|
676
|
-
// ===== 设置浮层的颜色 =======
|
|
677
|
-
// !dark 模式会被popupBg 会被rest 为 darkPopupBg
|
|
678
|
-
[`&${t}-popup > ${t}`]: {
|
|
679
|
-
backgroundColor: j
|
|
680
|
-
},
|
|
681
|
-
[`&${t}-submenu-popup > ${t}`]: {
|
|
682
|
-
backgroundColor: j
|
|
683
|
-
},
|
|
684
|
-
// ===== 设置浮层的颜色 end =======
|
|
685
|
-
// ====================== Horizontal ======================
|
|
686
|
-
[`&${t}-horizontal`]: Object.assign(Object.assign({}, n === "dark" ? {
|
|
687
|
-
borderBottom: 0
|
|
688
|
-
} : {}), {
|
|
689
|
-
[`> ${t}-item, > ${t}-submenu`]: {
|
|
690
|
-
top: u,
|
|
691
|
-
marginTop: e.calc(u).mul(-1).equal(),
|
|
692
|
-
marginBottom: 0,
|
|
693
|
-
borderRadius: k,
|
|
694
|
-
"&::after": {
|
|
695
|
-
position: "absolute",
|
|
696
|
-
insetInline: v,
|
|
697
|
-
bottom: 0,
|
|
698
|
-
borderBottom: `${h(g)} solid transparent`,
|
|
699
|
-
transition: `border-color ${$} ${c}`,
|
|
700
|
-
content: '""'
|
|
701
|
-
},
|
|
702
|
-
"&:hover, &-active, &-open": {
|
|
703
|
-
background: R,
|
|
704
|
-
"&::after": {
|
|
705
|
-
borderBottomWidth: g,
|
|
706
|
-
borderBottomColor: H
|
|
707
|
-
}
|
|
708
|
-
},
|
|
709
|
-
"&-selected": {
|
|
710
|
-
color: H,
|
|
711
|
-
backgroundColor: L,
|
|
712
|
-
"&:hover": {
|
|
713
|
-
backgroundColor: L
|
|
714
|
-
},
|
|
715
|
-
"&::after": {
|
|
716
|
-
borderBottomWidth: g,
|
|
717
|
-
borderBottomColor: H
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}),
|
|
722
|
-
// ================== Inline & Vertical ===================
|
|
723
|
-
//
|
|
724
|
-
[`&${t}-root`]: {
|
|
725
|
-
[`&${t}-inline, &${t}-vertical`]: {
|
|
726
|
-
borderInlineEnd: `${h(u)} ${x} ${b}`
|
|
727
|
-
}
|
|
728
|
-
},
|
|
729
|
-
// ======================== Inline ========================
|
|
730
|
-
[`&${t}-inline`]: {
|
|
731
|
-
// Sub
|
|
732
|
-
[`${t}-sub${t}-inline`]: {
|
|
733
|
-
background: s
|
|
734
|
-
},
|
|
735
|
-
[`${t}-item`]: {
|
|
736
|
-
position: "relative",
|
|
737
|
-
"&::after": {
|
|
738
|
-
position: "absolute",
|
|
739
|
-
insetBlock: 0,
|
|
740
|
-
insetInlineEnd: 0,
|
|
741
|
-
borderInlineEnd: `${h(S)} solid ${r}`,
|
|
742
|
-
transform: "scaleY(0.0001)",
|
|
743
|
-
opacity: 0,
|
|
744
|
-
transition: [`transform ${I} ${m}`, `opacity ${I} ${m}`].join(","),
|
|
745
|
-
content: '""'
|
|
746
|
-
},
|
|
747
|
-
// Danger
|
|
748
|
-
[`&${t}-item-danger`]: {
|
|
749
|
-
"&::after": {
|
|
750
|
-
borderInlineEndColor: w
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
[`${t}-selected, ${t}-item-selected`]: {
|
|
755
|
-
"&::after": {
|
|
756
|
-
transform: "scaleY(1)",
|
|
757
|
-
opacity: 1,
|
|
758
|
-
transition: [`transform ${I} ${c}`, `opacity ${I} ${c}`].join(",")
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
}, Pe = (e) => {
|
|
765
|
-
const {
|
|
766
|
-
componentCls: n,
|
|
767
|
-
itemHeight: t,
|
|
768
|
-
itemMarginInline: o,
|
|
769
|
-
padding: r,
|
|
770
|
-
menuArrowSize: a,
|
|
771
|
-
marginXS: i,
|
|
772
|
-
itemMarginBlock: d,
|
|
773
|
-
itemWidth: s,
|
|
774
|
-
itemPaddingInline: p
|
|
775
|
-
} = e, g = e.calc(a).add(r).add(i).equal();
|
|
776
|
-
return {
|
|
777
|
-
[`${n}-item`]: {
|
|
778
|
-
position: "relative",
|
|
779
|
-
overflow: "hidden"
|
|
780
|
-
},
|
|
781
|
-
[`${n}-item, ${n}-submenu-title`]: {
|
|
782
|
-
height: t,
|
|
783
|
-
lineHeight: h(t),
|
|
784
|
-
paddingInline: p,
|
|
785
|
-
overflow: "hidden",
|
|
786
|
-
textOverflow: "ellipsis",
|
|
787
|
-
marginInline: o,
|
|
788
|
-
marginBlock: d,
|
|
789
|
-
width: s
|
|
790
|
-
},
|
|
791
|
-
[`> ${n}-item,
|
|
792
|
-
> ${n}-submenu > ${n}-submenu-title`]: {
|
|
793
|
-
height: t,
|
|
794
|
-
lineHeight: h(t)
|
|
795
|
-
},
|
|
796
|
-
[`${n}-item-group-list ${n}-submenu-title,
|
|
797
|
-
${n}-submenu-title`]: {
|
|
798
|
-
paddingInlineEnd: g
|
|
799
|
-
}
|
|
800
|
-
};
|
|
801
|
-
}, tn = (e) => {
|
|
802
|
-
const {
|
|
803
|
-
componentCls: n,
|
|
804
|
-
iconCls: t,
|
|
805
|
-
itemHeight: o,
|
|
806
|
-
colorTextLightSolid: r,
|
|
807
|
-
dropdownWidth: a,
|
|
808
|
-
controlHeightLG: i,
|
|
809
|
-
motionEaseOut: d,
|
|
810
|
-
paddingXL: s,
|
|
811
|
-
itemMarginInline: p,
|
|
812
|
-
fontSizeLG: g,
|
|
813
|
-
motionDurationFast: S,
|
|
814
|
-
motionDurationSlow: u,
|
|
815
|
-
paddingXS: $,
|
|
816
|
-
boxShadowSecondary: c,
|
|
817
|
-
collapsedWidth: m,
|
|
818
|
-
collapsedIconSize: v
|
|
819
|
-
} = e, I = {
|
|
820
|
-
height: o,
|
|
821
|
-
lineHeight: h(o),
|
|
822
|
-
listStylePosition: "inside",
|
|
823
|
-
listStyleType: "disc"
|
|
824
|
-
};
|
|
825
|
-
return [
|
|
826
|
-
{
|
|
827
|
-
[n]: {
|
|
828
|
-
"&-inline, &-vertical": Object.assign({
|
|
829
|
-
[`&${n}-root`]: {
|
|
830
|
-
boxShadow: "none"
|
|
831
|
-
}
|
|
832
|
-
}, Pe(e))
|
|
833
|
-
},
|
|
834
|
-
[`${n}-submenu-popup`]: {
|
|
835
|
-
[`${n}-vertical`]: Object.assign(Object.assign({}, Pe(e)), {
|
|
836
|
-
boxShadow: c
|
|
837
|
-
})
|
|
838
|
-
}
|
|
839
|
-
},
|
|
840
|
-
// Vertical only
|
|
841
|
-
{
|
|
842
|
-
[`${n}-submenu-popup ${n}-vertical${n}-sub`]: {
|
|
843
|
-
minWidth: a,
|
|
844
|
-
maxHeight: `calc(100vh - ${h(e.calc(i).mul(2.5).equal())})`,
|
|
845
|
-
padding: "0",
|
|
846
|
-
overflow: "hidden",
|
|
847
|
-
borderInlineEnd: 0,
|
|
848
|
-
// https://github.com/ant-design/ant-design/issues/22244
|
|
849
|
-
// https://github.com/ant-design/ant-design/issues/26812
|
|
850
|
-
"&:not([class*='-active'])": {
|
|
851
|
-
overflowX: "hidden",
|
|
852
|
-
overflowY: "auto"
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
},
|
|
856
|
-
// Inline Only
|
|
857
|
-
{
|
|
858
|
-
[`${n}-inline`]: {
|
|
859
|
-
width: "100%",
|
|
860
|
-
// Motion enhance for first level
|
|
861
|
-
[`&${n}-root`]: {
|
|
862
|
-
[`${n}-item, ${n}-submenu-title`]: {
|
|
863
|
-
display: "flex",
|
|
864
|
-
alignItems: "center",
|
|
865
|
-
transition: [`border-color ${u}`, `background ${u}`, `padding ${S} ${d}`].join(","),
|
|
866
|
-
[`> ${n}-title-content`]: {
|
|
867
|
-
flex: "auto",
|
|
868
|
-
minWidth: 0,
|
|
869
|
-
overflow: "hidden",
|
|
870
|
-
textOverflow: "ellipsis"
|
|
871
|
-
},
|
|
872
|
-
"> *": {
|
|
873
|
-
flex: "none"
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
},
|
|
877
|
-
// >>>>> Sub
|
|
878
|
-
[`${n}-sub${n}-inline`]: {
|
|
879
|
-
padding: 0,
|
|
880
|
-
border: 0,
|
|
881
|
-
borderRadius: 0,
|
|
882
|
-
boxShadow: "none",
|
|
883
|
-
[`& > ${n}-submenu > ${n}-submenu-title`]: I,
|
|
884
|
-
[`& ${n}-item-group-title`]: {
|
|
885
|
-
paddingInlineStart: s
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
// >>>>> Item
|
|
889
|
-
[`${n}-item`]: I
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
// Inline Collapse Only
|
|
893
|
-
{
|
|
894
|
-
[`${n}-inline-collapsed`]: {
|
|
895
|
-
width: m,
|
|
896
|
-
[`&${n}-root`]: {
|
|
897
|
-
[`${n}-item, ${n}-submenu ${n}-submenu-title`]: {
|
|
898
|
-
[`> ${n}-inline-collapsed-noicon`]: {
|
|
899
|
-
fontSize: g,
|
|
900
|
-
textAlign: "center"
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
[`> ${n}-item,
|
|
905
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-item,
|
|
906
|
-
> ${n}-item-group > ${n}-item-group-list > ${n}-submenu > ${n}-submenu-title,
|
|
907
|
-
> ${n}-submenu > ${n}-submenu-title`]: {
|
|
908
|
-
insetInlineStart: 0,
|
|
909
|
-
paddingInline: `calc(50% - ${h(e.calc(v).div(2).equal())} - ${h(p)})`,
|
|
910
|
-
textOverflow: "clip",
|
|
911
|
-
[`
|
|
912
|
-
${n}-submenu-arrow,
|
|
913
|
-
${n}-submenu-expand-icon
|
|
914
|
-
`]: {
|
|
915
|
-
opacity: 0
|
|
916
|
-
},
|
|
917
|
-
[`${n}-item-icon, ${t}`]: {
|
|
918
|
-
margin: 0,
|
|
919
|
-
fontSize: v,
|
|
920
|
-
lineHeight: h(o),
|
|
921
|
-
"+ span": {
|
|
922
|
-
display: "inline-block",
|
|
923
|
-
opacity: 0
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
[`${n}-item-icon, ${t}`]: {
|
|
928
|
-
display: "inline-block"
|
|
929
|
-
},
|
|
930
|
-
"&-tooltip": {
|
|
931
|
-
pointerEvents: "none",
|
|
932
|
-
[`${n}-item-icon, ${t}`]: {
|
|
933
|
-
display: "none"
|
|
934
|
-
},
|
|
935
|
-
"a, a:hover": {
|
|
936
|
-
color: r
|
|
937
|
-
}
|
|
938
|
-
},
|
|
939
|
-
[`${n}-item-group-title`]: Object.assign(Object.assign({}, dt), {
|
|
940
|
-
paddingInline: $
|
|
941
|
-
})
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
];
|
|
945
|
-
}, He = (e) => {
|
|
946
|
-
const {
|
|
947
|
-
componentCls: n,
|
|
948
|
-
motionDurationSlow: t,
|
|
949
|
-
motionDurationMid: o,
|
|
950
|
-
motionEaseInOut: r,
|
|
951
|
-
motionEaseOut: a,
|
|
952
|
-
iconCls: i,
|
|
953
|
-
iconSize: d,
|
|
954
|
-
iconMarginInlineEnd: s
|
|
955
|
-
} = e;
|
|
956
|
-
return {
|
|
957
|
-
// >>>>> Item
|
|
958
|
-
[`${n}-item, ${n}-submenu-title`]: {
|
|
959
|
-
position: "relative",
|
|
960
|
-
display: "block",
|
|
961
|
-
margin: 0,
|
|
962
|
-
whiteSpace: "nowrap",
|
|
963
|
-
cursor: "pointer",
|
|
964
|
-
transition: [`border-color ${t}`, `background ${t}`, `padding calc(${t} + 0.1s) ${r}`].join(","),
|
|
965
|
-
[`${n}-item-icon, ${i}`]: {
|
|
966
|
-
minWidth: d,
|
|
967
|
-
fontSize: d,
|
|
968
|
-
transition: [`font-size ${o} ${a}`, `margin ${t} ${r}`, `color ${t}`].join(","),
|
|
969
|
-
"+ span": {
|
|
970
|
-
marginInlineStart: s,
|
|
971
|
-
opacity: 1,
|
|
972
|
-
transition: [`opacity ${t} ${r}`, `margin ${t}`, `color ${t}`].join(",")
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
[`${n}-item-icon`]: Object.assign({}, ct()),
|
|
976
|
-
[`&${n}-item-only-child`]: {
|
|
977
|
-
[`> ${i}, > ${n}-item-icon`]: {
|
|
978
|
-
marginInlineEnd: 0
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
},
|
|
982
|
-
// Disabled state sets text to gray and nukes hover/tab effects
|
|
983
|
-
[`${n}-item-disabled, ${n}-submenu-disabled`]: {
|
|
984
|
-
background: "none !important",
|
|
985
|
-
cursor: "not-allowed",
|
|
986
|
-
"&::after": {
|
|
987
|
-
borderColor: "transparent !important"
|
|
988
|
-
},
|
|
989
|
-
a: {
|
|
990
|
-
color: "inherit !important",
|
|
991
|
-
cursor: "not-allowed",
|
|
992
|
-
pointerEvents: "none"
|
|
993
|
-
},
|
|
994
|
-
[`> ${n}-submenu-title`]: {
|
|
995
|
-
color: "inherit !important",
|
|
996
|
-
cursor: "not-allowed"
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
};
|
|
1000
|
-
}, De = (e) => {
|
|
1001
|
-
const {
|
|
1002
|
-
componentCls: n,
|
|
1003
|
-
motionDurationSlow: t,
|
|
1004
|
-
motionEaseInOut: o,
|
|
1005
|
-
borderRadius: r,
|
|
1006
|
-
menuArrowSize: a,
|
|
1007
|
-
menuArrowOffset: i
|
|
1008
|
-
} = e;
|
|
1009
|
-
return {
|
|
1010
|
-
[`${n}-submenu`]: {
|
|
1011
|
-
"&-expand-icon, &-arrow": {
|
|
1012
|
-
position: "absolute",
|
|
1013
|
-
top: "50%",
|
|
1014
|
-
insetInlineEnd: e.margin,
|
|
1015
|
-
width: a,
|
|
1016
|
-
color: "currentcolor",
|
|
1017
|
-
transform: "translateY(-50%)",
|
|
1018
|
-
transition: `transform ${t} ${o}, opacity ${t}`
|
|
1019
|
-
},
|
|
1020
|
-
"&-arrow": {
|
|
1021
|
-
// →
|
|
1022
|
-
"&::before, &::after": {
|
|
1023
|
-
position: "absolute",
|
|
1024
|
-
width: e.calc(a).mul(0.6).equal(),
|
|
1025
|
-
height: e.calc(a).mul(0.15).equal(),
|
|
1026
|
-
backgroundColor: "currentcolor",
|
|
1027
|
-
borderRadius: r,
|
|
1028
|
-
transition: [`background ${t} ${o}`, `transform ${t} ${o}`, `top ${t} ${o}`, `color ${t} ${o}`].join(","),
|
|
1029
|
-
content: '""'
|
|
1030
|
-
},
|
|
1031
|
-
"&::before": {
|
|
1032
|
-
transform: `rotate(45deg) translateY(${h(e.calc(i).mul(-1).equal())})`
|
|
1033
|
-
},
|
|
1034
|
-
"&::after": {
|
|
1035
|
-
transform: `rotate(-45deg) translateY(${h(i)})`
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
};
|
|
1040
|
-
}, nn = (e) => {
|
|
1041
|
-
const {
|
|
1042
|
-
antCls: n,
|
|
1043
|
-
componentCls: t,
|
|
1044
|
-
fontSize: o,
|
|
1045
|
-
motionDurationSlow: r,
|
|
1046
|
-
motionDurationMid: a,
|
|
1047
|
-
motionEaseInOut: i,
|
|
1048
|
-
paddingXS: d,
|
|
1049
|
-
padding: s,
|
|
1050
|
-
colorSplit: p,
|
|
1051
|
-
lineWidth: g,
|
|
1052
|
-
zIndexPopup: S,
|
|
1053
|
-
borderRadiusLG: u,
|
|
1054
|
-
subMenuItemBorderRadius: $,
|
|
1055
|
-
menuArrowSize: c,
|
|
1056
|
-
menuArrowOffset: m,
|
|
1057
|
-
lineType: v,
|
|
1058
|
-
groupTitleLineHeight: I,
|
|
1059
|
-
groupTitleFontSize: B
|
|
1060
|
-
} = e;
|
|
1061
|
-
return [
|
|
1062
|
-
// Misc
|
|
1063
|
-
{
|
|
1064
|
-
"": {
|
|
1065
|
-
[t]: Object.assign(Object.assign({}, Ee()), {
|
|
1066
|
-
// Hidden
|
|
1067
|
-
"&-hidden": {
|
|
1068
|
-
display: "none"
|
|
1069
|
-
}
|
|
1070
|
-
})
|
|
1071
|
-
},
|
|
1072
|
-
[`${t}-submenu-hidden`]: {
|
|
1073
|
-
display: "none"
|
|
1074
|
-
}
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
[t]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie(e)), Ee()), {
|
|
1078
|
-
marginBottom: 0,
|
|
1079
|
-
paddingInlineStart: 0,
|
|
1080
|
-
// Override default ul/ol
|
|
1081
|
-
fontSize: o,
|
|
1082
|
-
lineHeight: 0,
|
|
1083
|
-
listStyle: "none",
|
|
1084
|
-
outline: "none",
|
|
1085
|
-
// Magic cubic here but smooth transition
|
|
1086
|
-
transition: `width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,
|
|
1087
|
-
"ul, ol": {
|
|
1088
|
-
margin: 0,
|
|
1089
|
-
padding: 0,
|
|
1090
|
-
listStyle: "none"
|
|
1091
|
-
},
|
|
1092
|
-
// Overflow ellipsis
|
|
1093
|
-
"&-overflow": {
|
|
1094
|
-
display: "flex",
|
|
1095
|
-
[`${t}-item`]: {
|
|
1096
|
-
flex: "none"
|
|
1097
|
-
}
|
|
1098
|
-
},
|
|
1099
|
-
[`${t}-item, ${t}-submenu, ${t}-submenu-title`]: {
|
|
1100
|
-
borderRadius: e.itemBorderRadius
|
|
1101
|
-
},
|
|
1102
|
-
[`${t}-item-group-title`]: {
|
|
1103
|
-
padding: `${h(d)} ${h(s)}`,
|
|
1104
|
-
fontSize: B,
|
|
1105
|
-
lineHeight: I,
|
|
1106
|
-
transition: `all ${r}`
|
|
1107
|
-
},
|
|
1108
|
-
[`&-horizontal ${t}-submenu`]: {
|
|
1109
|
-
transition: [`border-color ${r} ${i}`, `background ${r} ${i}`].join(",")
|
|
1110
|
-
},
|
|
1111
|
-
[`${t}-submenu, ${t}-submenu-inline`]: {
|
|
1112
|
-
transition: [`border-color ${r} ${i}`, `background ${r} ${i}`, `padding ${a} ${i}`].join(",")
|
|
1113
|
-
},
|
|
1114
|
-
[`${t}-submenu ${t}-sub`]: {
|
|
1115
|
-
cursor: "initial",
|
|
1116
|
-
transition: [`background ${r} ${i}`, `padding ${r} ${i}`].join(",")
|
|
1117
|
-
},
|
|
1118
|
-
[`${t}-title-content`]: {
|
|
1119
|
-
transition: `color ${r}`,
|
|
1120
|
-
"&-with-extra": {
|
|
1121
|
-
display: "inline-flex",
|
|
1122
|
-
alignItems: "center",
|
|
1123
|
-
width: "100%"
|
|
1124
|
-
},
|
|
1125
|
-
// https://github.com/ant-design/ant-design/issues/41143
|
|
1126
|
-
[`> ${n}-typography-ellipsis-single-line`]: {
|
|
1127
|
-
display: "inline",
|
|
1128
|
-
verticalAlign: "unset"
|
|
1129
|
-
},
|
|
1130
|
-
[`${t}-item-extra`]: {
|
|
1131
|
-
marginInlineStart: "auto",
|
|
1132
|
-
paddingInlineStart: e.padding
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
[`${t}-item a`]: {
|
|
1136
|
-
"&::before": {
|
|
1137
|
-
position: "absolute",
|
|
1138
|
-
inset: 0,
|
|
1139
|
-
backgroundColor: "transparent",
|
|
1140
|
-
content: '""'
|
|
1141
|
-
}
|
|
1142
|
-
},
|
|
1143
|
-
// Removed a Badge related style seems it's safe
|
|
1144
|
-
// https://github.com/ant-design/ant-design/issues/19809
|
|
1145
|
-
// >>>>> Divider
|
|
1146
|
-
[`${t}-item-divider`]: {
|
|
1147
|
-
overflow: "hidden",
|
|
1148
|
-
lineHeight: 0,
|
|
1149
|
-
borderColor: p,
|
|
1150
|
-
borderStyle: v,
|
|
1151
|
-
borderWidth: 0,
|
|
1152
|
-
borderTopWidth: g,
|
|
1153
|
-
marginBlock: g,
|
|
1154
|
-
padding: 0,
|
|
1155
|
-
"&-dashed": {
|
|
1156
|
-
borderStyle: "dashed"
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
}), He(e)), {
|
|
1160
|
-
[`${t}-item-group`]: {
|
|
1161
|
-
[`${t}-item-group-list`]: {
|
|
1162
|
-
margin: 0,
|
|
1163
|
-
padding: 0,
|
|
1164
|
-
[`${t}-item, ${t}-submenu-title`]: {
|
|
1165
|
-
paddingInline: `${h(e.calc(o).mul(2).equal())} ${h(s)}`
|
|
1166
|
-
}
|
|
1167
|
-
}
|
|
1168
|
-
},
|
|
1169
|
-
// ======================= Sub Menu =======================
|
|
1170
|
-
"&-submenu": {
|
|
1171
|
-
"&-popup": {
|
|
1172
|
-
position: "absolute",
|
|
1173
|
-
zIndex: S,
|
|
1174
|
-
borderRadius: u,
|
|
1175
|
-
boxShadow: "none",
|
|
1176
|
-
transformOrigin: "0 0",
|
|
1177
|
-
[`&${t}-submenu`]: {
|
|
1178
|
-
background: "transparent"
|
|
1179
|
-
},
|
|
1180
|
-
// https://github.com/ant-design/ant-design/issues/13955
|
|
1181
|
-
"&::before": {
|
|
1182
|
-
position: "absolute",
|
|
1183
|
-
inset: 0,
|
|
1184
|
-
zIndex: -1,
|
|
1185
|
-
width: "100%",
|
|
1186
|
-
height: "100%",
|
|
1187
|
-
opacity: 0,
|
|
1188
|
-
content: '""'
|
|
1189
|
-
},
|
|
1190
|
-
[`> ${t}`]: Object.assign(Object.assign(Object.assign({
|
|
1191
|
-
borderRadius: u
|
|
1192
|
-
}, He(e)), De(e)), {
|
|
1193
|
-
[`${t}-item, ${t}-submenu > ${t}-submenu-title`]: {
|
|
1194
|
-
borderRadius: $
|
|
1195
|
-
},
|
|
1196
|
-
[`${t}-submenu-title::after`]: {
|
|
1197
|
-
transition: `transform ${r} ${i}`
|
|
1198
|
-
}
|
|
1199
|
-
})
|
|
1200
|
-
},
|
|
1201
|
-
"\n &-placement-leftTop,\n &-placement-bottomRight,\n ": {
|
|
1202
|
-
transformOrigin: "100% 0"
|
|
1203
|
-
},
|
|
1204
|
-
"\n &-placement-leftBottom,\n &-placement-topRight,\n ": {
|
|
1205
|
-
transformOrigin: "100% 100%"
|
|
1206
|
-
},
|
|
1207
|
-
"\n &-placement-rightBottom,\n &-placement-topLeft,\n ": {
|
|
1208
|
-
transformOrigin: "0 100%"
|
|
1209
|
-
},
|
|
1210
|
-
"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ": {
|
|
1211
|
-
transformOrigin: "0 0"
|
|
1212
|
-
},
|
|
1213
|
-
"\n &-placement-leftTop,\n &-placement-leftBottom\n ": {
|
|
1214
|
-
paddingInlineEnd: e.paddingXS
|
|
1215
|
-
},
|
|
1216
|
-
"\n &-placement-rightTop,\n &-placement-rightBottom\n ": {
|
|
1217
|
-
paddingInlineStart: e.paddingXS
|
|
1218
|
-
},
|
|
1219
|
-
"\n &-placement-topRight,\n &-placement-topLeft\n ": {
|
|
1220
|
-
paddingBottom: e.paddingXS
|
|
1221
|
-
},
|
|
1222
|
-
"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ": {
|
|
1223
|
-
paddingTop: e.paddingXS
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
}), De(e)), {
|
|
1227
|
-
[`&-inline-collapsed ${t}-submenu-arrow,
|
|
1228
|
-
&-inline ${t}-submenu-arrow`]: {
|
|
1229
|
-
// ↓
|
|
1230
|
-
"&::before": {
|
|
1231
|
-
transform: `rotate(-45deg) translateX(${h(m)})`
|
|
1232
|
-
},
|
|
1233
|
-
"&::after": {
|
|
1234
|
-
transform: `rotate(45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
|
|
1235
|
-
}
|
|
1236
|
-
},
|
|
1237
|
-
[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]: {
|
|
1238
|
-
// ↑
|
|
1239
|
-
transform: `translateY(${h(e.calc(c).mul(0.2).mul(-1).equal())})`,
|
|
1240
|
-
"&::after": {
|
|
1241
|
-
transform: `rotate(-45deg) translateX(${h(e.calc(m).mul(-1).equal())})`
|
|
1242
|
-
},
|
|
1243
|
-
"&::before": {
|
|
1244
|
-
transform: `rotate(45deg) translateX(${h(m)})`
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
})
|
|
1248
|
-
},
|
|
1249
|
-
// Integration with header element so menu items have the same height
|
|
1250
|
-
{
|
|
1251
|
-
[`${n}-layout-header`]: {
|
|
1252
|
-
[t]: {
|
|
1253
|
-
lineHeight: "inherit"
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
];
|
|
1258
|
-
}, on = (e) => {
|
|
1259
|
-
var n, t, o;
|
|
1260
|
-
const {
|
|
1261
|
-
colorPrimary: r,
|
|
1262
|
-
colorError: a,
|
|
1263
|
-
colorTextDisabled: i,
|
|
1264
|
-
colorErrorBg: d,
|
|
1265
|
-
colorText: s,
|
|
1266
|
-
colorTextDescription: p,
|
|
1267
|
-
colorBgContainer: g,
|
|
1268
|
-
colorFillAlter: S,
|
|
1269
|
-
colorFillContent: u,
|
|
1270
|
-
lineWidth: $,
|
|
1271
|
-
lineWidthBold: c,
|
|
1272
|
-
controlItemBgActive: m,
|
|
1273
|
-
colorBgTextHover: v,
|
|
1274
|
-
controlHeightLG: I,
|
|
1275
|
-
lineHeight: B,
|
|
1276
|
-
colorBgElevated: x,
|
|
1277
|
-
marginXXS: b,
|
|
1278
|
-
padding: E,
|
|
1279
|
-
fontSize: N,
|
|
1280
|
-
controlHeightSM: _,
|
|
1281
|
-
fontSizeLG: w,
|
|
1282
|
-
colorTextLightSolid: C,
|
|
1283
|
-
colorErrorHover: f
|
|
1284
|
-
} = e, j = (n = e.activeBarWidth) !== null && n !== void 0 ? n : 0, D = (t = e.activeBarBorderWidth) !== null && t !== void 0 ? t : $, M = (o = e.itemMarginInline) !== null && o !== void 0 ? o : e.marginXXS, y = new Be(C).setA(0.65).toRgbString();
|
|
1285
|
-
return {
|
|
1286
|
-
dropdownWidth: 160,
|
|
1287
|
-
zIndexPopup: e.zIndexPopupBase + 50,
|
|
1288
|
-
radiusItem: e.borderRadiusLG,
|
|
1289
|
-
itemBorderRadius: e.borderRadiusLG,
|
|
1290
|
-
radiusSubMenuItem: e.borderRadiusSM,
|
|
1291
|
-
subMenuItemBorderRadius: e.borderRadiusSM,
|
|
1292
|
-
colorItemText: s,
|
|
1293
|
-
itemColor: s,
|
|
1294
|
-
colorItemTextHover: s,
|
|
1295
|
-
itemHoverColor: s,
|
|
1296
|
-
colorItemTextHoverHorizontal: r,
|
|
1297
|
-
horizontalItemHoverColor: r,
|
|
1298
|
-
colorGroupTitle: p,
|
|
1299
|
-
groupTitleColor: p,
|
|
1300
|
-
colorItemTextSelected: r,
|
|
1301
|
-
itemSelectedColor: r,
|
|
1302
|
-
subMenuItemSelectedColor: r,
|
|
1303
|
-
colorItemTextSelectedHorizontal: r,
|
|
1304
|
-
horizontalItemSelectedColor: r,
|
|
1305
|
-
colorItemBg: g,
|
|
1306
|
-
itemBg: g,
|
|
1307
|
-
colorItemBgHover: v,
|
|
1308
|
-
itemHoverBg: v,
|
|
1309
|
-
colorItemBgActive: u,
|
|
1310
|
-
itemActiveBg: m,
|
|
1311
|
-
colorSubItemBg: S,
|
|
1312
|
-
subMenuItemBg: S,
|
|
1313
|
-
colorItemBgSelected: m,
|
|
1314
|
-
itemSelectedBg: m,
|
|
1315
|
-
colorItemBgSelectedHorizontal: "transparent",
|
|
1316
|
-
horizontalItemSelectedBg: "transparent",
|
|
1317
|
-
colorActiveBarWidth: 0,
|
|
1318
|
-
activeBarWidth: j,
|
|
1319
|
-
colorActiveBarHeight: c,
|
|
1320
|
-
activeBarHeight: c,
|
|
1321
|
-
colorActiveBarBorderSize: $,
|
|
1322
|
-
activeBarBorderWidth: D,
|
|
1323
|
-
// Disabled
|
|
1324
|
-
colorItemTextDisabled: i,
|
|
1325
|
-
itemDisabledColor: i,
|
|
1326
|
-
// Danger
|
|
1327
|
-
colorDangerItemText: a,
|
|
1328
|
-
dangerItemColor: a,
|
|
1329
|
-
colorDangerItemTextHover: a,
|
|
1330
|
-
dangerItemHoverColor: a,
|
|
1331
|
-
colorDangerItemTextSelected: a,
|
|
1332
|
-
dangerItemSelectedColor: a,
|
|
1333
|
-
colorDangerItemBgActive: d,
|
|
1334
|
-
dangerItemActiveBg: d,
|
|
1335
|
-
colorDangerItemBgSelected: d,
|
|
1336
|
-
dangerItemSelectedBg: d,
|
|
1337
|
-
itemMarginInline: M,
|
|
1338
|
-
horizontalItemBorderRadius: 0,
|
|
1339
|
-
horizontalItemHoverBg: "transparent",
|
|
1340
|
-
itemHeight: I,
|
|
1341
|
-
groupTitleLineHeight: B,
|
|
1342
|
-
collapsedWidth: I * 2,
|
|
1343
|
-
popupBg: x,
|
|
1344
|
-
itemMarginBlock: b,
|
|
1345
|
-
itemPaddingInline: E,
|
|
1346
|
-
horizontalLineHeight: `${I * 1.15}px`,
|
|
1347
|
-
iconSize: N,
|
|
1348
|
-
iconMarginInlineEnd: _ - N,
|
|
1349
|
-
collapsedIconSize: w,
|
|
1350
|
-
groupTitleFontSize: N,
|
|
1351
|
-
// Disabled
|
|
1352
|
-
darkItemDisabledColor: new Be(C).setA(0.25).toRgbString(),
|
|
1353
|
-
// Dark
|
|
1354
|
-
darkItemColor: y,
|
|
1355
|
-
darkDangerItemColor: a,
|
|
1356
|
-
darkItemBg: "#001529",
|
|
1357
|
-
darkPopupBg: "#001529",
|
|
1358
|
-
darkSubMenuItemBg: "#000c17",
|
|
1359
|
-
darkItemSelectedColor: C,
|
|
1360
|
-
darkItemSelectedBg: r,
|
|
1361
|
-
darkDangerItemSelectedBg: a,
|
|
1362
|
-
darkItemHoverBg: "transparent",
|
|
1363
|
-
darkGroupTitleColor: y,
|
|
1364
|
-
darkItemHoverColor: C,
|
|
1365
|
-
darkDangerItemHoverColor: f,
|
|
1366
|
-
darkDangerItemSelectedColor: C,
|
|
1367
|
-
darkDangerItemActiveBg: a,
|
|
1368
|
-
// internal
|
|
1369
|
-
itemWidth: j ? `calc(100% + ${D}px)` : `calc(100% - ${M * 2}px)`
|
|
1370
|
-
};
|
|
1371
|
-
}, rn = function(e) {
|
|
1372
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
1373
|
-
return te("Menu", (r) => {
|
|
1374
|
-
const {
|
|
1375
|
-
colorBgElevated: a,
|
|
1376
|
-
controlHeightLG: i,
|
|
1377
|
-
fontSize: d,
|
|
1378
|
-
darkItemColor: s,
|
|
1379
|
-
darkDangerItemColor: p,
|
|
1380
|
-
darkItemBg: g,
|
|
1381
|
-
darkSubMenuItemBg: S,
|
|
1382
|
-
darkItemSelectedColor: u,
|
|
1383
|
-
darkItemSelectedBg: $,
|
|
1384
|
-
darkDangerItemSelectedBg: c,
|
|
1385
|
-
darkItemHoverBg: m,
|
|
1386
|
-
darkGroupTitleColor: v,
|
|
1387
|
-
darkItemHoverColor: I,
|
|
1388
|
-
darkItemDisabledColor: B,
|
|
1389
|
-
darkDangerItemHoverColor: x,
|
|
1390
|
-
darkDangerItemSelectedColor: b,
|
|
1391
|
-
darkDangerItemActiveBg: E,
|
|
1392
|
-
popupBg: N,
|
|
1393
|
-
darkPopupBg: _
|
|
1394
|
-
} = r, w = r.calc(d).div(7).mul(5).equal(), C = oe(r, {
|
|
1395
|
-
menuArrowSize: w,
|
|
1396
|
-
menuHorizontalHeight: r.calc(i).mul(1.15).equal(),
|
|
1397
|
-
menuArrowOffset: r.calc(w).mul(0.25).equal(),
|
|
1398
|
-
menuSubMenuBg: a,
|
|
1399
|
-
calc: r.calc,
|
|
1400
|
-
popupBg: N
|
|
1401
|
-
}), f = oe(C, {
|
|
1402
|
-
itemColor: s,
|
|
1403
|
-
itemHoverColor: I,
|
|
1404
|
-
groupTitleColor: v,
|
|
1405
|
-
itemSelectedColor: u,
|
|
1406
|
-
itemBg: g,
|
|
1407
|
-
popupBg: _,
|
|
1408
|
-
subMenuItemBg: S,
|
|
1409
|
-
itemActiveBg: "transparent",
|
|
1410
|
-
itemSelectedBg: $,
|
|
1411
|
-
activeBarHeight: 0,
|
|
1412
|
-
activeBarBorderWidth: 0,
|
|
1413
|
-
itemHoverBg: m,
|
|
1414
|
-
// Disabled
|
|
1415
|
-
itemDisabledColor: B,
|
|
1416
|
-
// Danger
|
|
1417
|
-
dangerItemColor: p,
|
|
1418
|
-
dangerItemHoverColor: x,
|
|
1419
|
-
dangerItemSelectedColor: b,
|
|
1420
|
-
dangerItemActiveBg: E,
|
|
1421
|
-
dangerItemSelectedBg: c,
|
|
1422
|
-
menuSubMenuBg: S,
|
|
1423
|
-
// Horizontal
|
|
1424
|
-
horizontalItemSelectedColor: u,
|
|
1425
|
-
horizontalItemSelectedBg: $
|
|
1426
|
-
});
|
|
1427
|
-
return [
|
|
1428
|
-
// Basic
|
|
1429
|
-
nn(C),
|
|
1430
|
-
// Horizontal
|
|
1431
|
-
Qt(C),
|
|
1432
|
-
// Hard code for some light style
|
|
1433
|
-
// Vertical
|
|
1434
|
-
tn(C),
|
|
1435
|
-
// Hard code for some light style
|
|
1436
|
-
// Theme
|
|
1437
|
-
Te(C, "light"),
|
|
1438
|
-
Te(f, "dark"),
|
|
1439
|
-
// RTL
|
|
1440
|
-
en(C),
|
|
1441
|
-
// Motion
|
|
1442
|
-
jt(C),
|
|
1443
|
-
re(C, "slide-up"),
|
|
1444
|
-
re(C, "slide-down"),
|
|
1445
|
-
Xe(C, "zoom-big")
|
|
1446
|
-
];
|
|
1447
|
-
}, on, {
|
|
1448
|
-
deprecatedTokens: [["colorGroupTitle", "groupTitleColor"], ["radiusItem", "itemBorderRadius"], ["radiusSubMenuItem", "subMenuItemBorderRadius"], ["colorItemText", "itemColor"], ["colorItemTextHover", "itemHoverColor"], ["colorItemTextHoverHorizontal", "horizontalItemHoverColor"], ["colorItemTextSelected", "itemSelectedColor"], ["colorItemTextSelectedHorizontal", "horizontalItemSelectedColor"], ["colorItemTextDisabled", "itemDisabledColor"], ["colorDangerItemText", "dangerItemColor"], ["colorDangerItemTextHover", "dangerItemHoverColor"], ["colorDangerItemTextSelected", "dangerItemSelectedColor"], ["colorDangerItemBgActive", "dangerItemActiveBg"], ["colorDangerItemBgSelected", "dangerItemSelectedBg"], ["colorItemBg", "itemBg"], ["colorItemBgHover", "itemHoverBg"], ["colorSubItemBg", "subMenuItemBg"], ["colorItemBgActive", "itemActiveBg"], ["colorItemBgSelectedHorizontal", "horizontalItemSelectedBg"], ["colorActiveBarWidth", "activeBarWidth"], ["colorActiveBarHeight", "activeBarHeight"], ["colorActiveBarBorderSize", "activeBarBorderWidth"], ["colorItemBgSelected", "itemSelectedBg"]],
|
|
1449
|
-
// Dropdown will handle menu style self. We do not need to handle this.
|
|
1450
|
-
injectStyle: t,
|
|
1451
|
-
unitless: {
|
|
1452
|
-
groupTitleLineHeight: !0
|
|
1453
|
-
}
|
|
1454
|
-
})(e, n);
|
|
1455
|
-
}, Ke = (e) => {
|
|
1456
|
-
var n;
|
|
1457
|
-
const {
|
|
1458
|
-
popupClassName: t,
|
|
1459
|
-
icon: o,
|
|
1460
|
-
title: r,
|
|
1461
|
-
theme: a
|
|
1462
|
-
} = e, i = l.useContext(le), {
|
|
1463
|
-
prefixCls: d,
|
|
1464
|
-
inlineCollapsed: s,
|
|
1465
|
-
theme: p
|
|
1466
|
-
} = i, g = bt();
|
|
1467
|
-
let S;
|
|
1468
|
-
if (!o)
|
|
1469
|
-
S = s && !g.length && r && typeof r == "string" ? /* @__PURE__ */ l.createElement("div", {
|
|
1470
|
-
className: `${d}-inline-collapsed-noicon`
|
|
1471
|
-
}, r.charAt(0)) : /* @__PURE__ */ l.createElement("span", {
|
|
1472
|
-
className: `${d}-title-content`
|
|
1473
|
-
}, r);
|
|
1474
|
-
else {
|
|
1475
|
-
const c = /* @__PURE__ */ l.isValidElement(r) && r.type === "span";
|
|
1476
|
-
S = /* @__PURE__ */ l.createElement(l.Fragment, null, ee(o, {
|
|
1477
|
-
className: P(/* @__PURE__ */ l.isValidElement(o) ? (n = o.props) === null || n === void 0 ? void 0 : n.className : "", `${d}-item-icon`)
|
|
1478
|
-
}), c ? r : /* @__PURE__ */ l.createElement("span", {
|
|
1479
|
-
className: `${d}-title-content`
|
|
1480
|
-
}, r));
|
|
1481
|
-
}
|
|
1482
|
-
const u = l.useMemo(() => Object.assign(Object.assign({}, i), {
|
|
1483
|
-
firstLevel: !1
|
|
1484
|
-
}), [i]), [$] = We("Menu");
|
|
1485
|
-
return /* @__PURE__ */ l.createElement(le.Provider, {
|
|
1486
|
-
value: u
|
|
1487
|
-
}, /* @__PURE__ */ l.createElement($t, Object.assign({}, Q(e, ["icon"]), {
|
|
1488
|
-
title: S,
|
|
1489
|
-
popupClassName: P(d, t, `${d}-${a || p}`),
|
|
1490
|
-
popupStyle: Object.assign({
|
|
1491
|
-
zIndex: $
|
|
1492
|
-
}, e.popupStyle)
|
|
1493
|
-
})));
|
|
1494
|
-
};
|
|
1495
|
-
var ln = function(e, n) {
|
|
1496
|
-
var t = {};
|
|
1497
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
1498
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, o = Object.getOwnPropertySymbols(e); r < o.length; r++)
|
|
1499
|
-
n.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (t[o[r]] = e[o[r]]);
|
|
1500
|
-
return t;
|
|
1501
|
-
};
|
|
1502
|
-
function $e(e) {
|
|
1503
|
-
return e === null || e === !1;
|
|
1504
|
-
}
|
|
1505
|
-
const an = {
|
|
1506
|
-
item: Ue,
|
|
1507
|
-
submenu: Ke,
|
|
1508
|
-
divider: Ye
|
|
1509
|
-
}, sn = /* @__PURE__ */ Ae((e, n) => {
|
|
1510
|
-
var t;
|
|
1511
|
-
const o = l.useContext(ae), r = o || {}, {
|
|
1512
|
-
getPrefixCls: a,
|
|
1513
|
-
getPopupContainer: i,
|
|
1514
|
-
direction: d,
|
|
1515
|
-
menu: s
|
|
1516
|
-
} = l.useContext(Z), p = a(), {
|
|
1517
|
-
prefixCls: g,
|
|
1518
|
-
className: S,
|
|
1519
|
-
style: u,
|
|
1520
|
-
theme: $ = "light",
|
|
1521
|
-
expandIcon: c,
|
|
1522
|
-
_internalDisableMenuItemTitleTooltip: m,
|
|
1523
|
-
inlineCollapsed: v,
|
|
1524
|
-
siderCollapsed: I,
|
|
1525
|
-
rootClassName: B,
|
|
1526
|
-
mode: x,
|
|
1527
|
-
selectable: b,
|
|
1528
|
-
onClick: E,
|
|
1529
|
-
overflowedIndicatorPopupClassName: N
|
|
1530
|
-
} = e, _ = ln(e, ["prefixCls", "className", "style", "theme", "expandIcon", "_internalDisableMenuItemTitleTooltip", "inlineCollapsed", "siderCollapsed", "rootClassName", "mode", "selectable", "onClick", "overflowedIndicatorPopupClassName"]), w = Q(_, ["collapsedWidth"]);
|
|
1531
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1532
|
-
const z = se("Menu");
|
|
1533
|
-
process.env.NODE_ENV !== "production" && z(!("inlineCollapsed" in e && x !== "inline"), "usage", "`inlineCollapsed` should only be used when `mode` is inline."), z.deprecated("items" in e && !e.children, "children", "items");
|
|
1534
|
-
}
|
|
1535
|
-
(t = r.validator) === null || t === void 0 || t.call(r, {
|
|
1536
|
-
mode: x
|
|
1537
|
-
});
|
|
1538
|
-
const C = ke(function() {
|
|
1539
|
-
var z;
|
|
1540
|
-
E == null || E.apply(void 0, arguments), (z = r.onClick) === null || z === void 0 || z.call(r);
|
|
1541
|
-
}), f = r.mode || x, j = b ?? r.selectable, D = v ?? I, M = {
|
|
1542
|
-
horizontal: {
|
|
1543
|
-
motionName: `${p}-slide-up`
|
|
1544
|
-
},
|
|
1545
|
-
inline: It(p),
|
|
1546
|
-
other: {
|
|
1547
|
-
motionName: `${p}-zoom-big`
|
|
1548
|
-
}
|
|
1549
|
-
}, y = a("menu", g || r.prefixCls), H = Ve(y), [L, k, R] = rn(y, H, !o), W = P(`${y}-${$}`, s == null ? void 0 : s.className, S), V = l.useMemo(() => {
|
|
1550
|
-
var z, X;
|
|
1551
|
-
if (typeof c == "function" || $e(c))
|
|
1552
|
-
return c || null;
|
|
1553
|
-
if (typeof r.expandIcon == "function" || $e(r.expandIcon))
|
|
1554
|
-
return r.expandIcon || null;
|
|
1555
|
-
if (typeof (s == null ? void 0 : s.expandIcon) == "function" || $e(s == null ? void 0 : s.expandIcon))
|
|
1556
|
-
return (s == null ? void 0 : s.expandIcon) || null;
|
|
1557
|
-
const q = (z = c ?? (r == null ? void 0 : r.expandIcon)) !== null && z !== void 0 ? z : s == null ? void 0 : s.expandIcon;
|
|
1558
|
-
return ee(q, {
|
|
1559
|
-
className: P(`${y}-submenu-expand-icon`, /* @__PURE__ */ l.isValidElement(q) ? (X = q.props) === null || X === void 0 ? void 0 : X.className : void 0)
|
|
1560
|
-
});
|
|
1561
|
-
}, [c, r == null ? void 0 : r.expandIcon, s == null ? void 0 : s.expandIcon, y]), F = l.useMemo(() => ({
|
|
1562
|
-
prefixCls: y,
|
|
1563
|
-
inlineCollapsed: D || !1,
|
|
1564
|
-
direction: d,
|
|
1565
|
-
firstLevel: !0,
|
|
1566
|
-
theme: $,
|
|
1567
|
-
mode: f,
|
|
1568
|
-
disableMenuItemTitleTooltip: m
|
|
1569
|
-
}), [y, D, d, m, $]);
|
|
1570
|
-
return L(/* @__PURE__ */ l.createElement(ae.Provider, {
|
|
1571
|
-
value: null
|
|
1572
|
-
}, /* @__PURE__ */ l.createElement(le.Provider, {
|
|
1573
|
-
value: F
|
|
1574
|
-
}, /* @__PURE__ */ l.createElement(ht, Object.assign({
|
|
1575
|
-
getPopupContainer: i,
|
|
1576
|
-
overflowedIndicator: /* @__PURE__ */ l.createElement(vt, null),
|
|
1577
|
-
overflowedIndicatorPopupClassName: P(y, `${y}-${$}`, N),
|
|
1578
|
-
mode: f,
|
|
1579
|
-
selectable: j,
|
|
1580
|
-
onClick: C
|
|
1581
|
-
}, w, {
|
|
1582
|
-
inlineCollapsed: D,
|
|
1583
|
-
style: Object.assign(Object.assign({}, s == null ? void 0 : s.style), u),
|
|
1584
|
-
className: W,
|
|
1585
|
-
prefixCls: y,
|
|
1586
|
-
direction: d,
|
|
1587
|
-
defaultMotions: M,
|
|
1588
|
-
expandIcon: V,
|
|
1589
|
-
ref: n,
|
|
1590
|
-
rootClassName: P(B, k, r.rootClassName, R, H),
|
|
1591
|
-
_internalComponents: an
|
|
1592
|
-
})))));
|
|
1593
|
-
}), J = /* @__PURE__ */ Ae((e, n) => {
|
|
1594
|
-
const t = _e(null), o = l.useContext(xe);
|
|
1595
|
-
return nt(n, () => ({
|
|
1596
|
-
menu: t.current,
|
|
1597
|
-
focus: (r) => {
|
|
1598
|
-
var a;
|
|
1599
|
-
(a = t.current) === null || a === void 0 || a.focus(r);
|
|
1600
|
-
}
|
|
1601
|
-
})), /* @__PURE__ */ l.createElement(sn, Object.assign({
|
|
1602
|
-
ref: t
|
|
1603
|
-
}, e, o));
|
|
1604
|
-
});
|
|
1605
|
-
J.Item = Ue;
|
|
1606
|
-
J.SubMenu = Ke;
|
|
1607
|
-
J.Divider = Ye;
|
|
1608
|
-
J.ItemGroup = Ct;
|
|
1609
|
-
process.env.NODE_ENV !== "production" && (J.displayName = "Menu");
|
|
1610
|
-
const dn = (e) => {
|
|
1611
|
-
const {
|
|
1612
|
-
componentCls: n,
|
|
1613
|
-
menuCls: t,
|
|
1614
|
-
colorError: o,
|
|
1615
|
-
colorTextLightSolid: r
|
|
1616
|
-
} = e, a = `${t}-item`;
|
|
1617
|
-
return {
|
|
1618
|
-
[`${n}, ${n}-menu-submenu`]: {
|
|
1619
|
-
[`${t} ${a}`]: {
|
|
1620
|
-
[`&${a}-danger:not(${a}-disabled)`]: {
|
|
1621
|
-
color: o,
|
|
1622
|
-
"&:hover": {
|
|
1623
|
-
color: r,
|
|
1624
|
-
backgroundColor: o
|
|
1625
|
-
}
|
|
1626
|
-
}
|
|
1627
|
-
}
|
|
1628
|
-
}
|
|
1629
|
-
};
|
|
1630
|
-
}, cn = (e) => {
|
|
1631
|
-
const {
|
|
1632
|
-
componentCls: n,
|
|
1633
|
-
menuCls: t,
|
|
1634
|
-
zIndexPopup: o,
|
|
1635
|
-
dropdownArrowDistance: r,
|
|
1636
|
-
sizePopupArrow: a,
|
|
1637
|
-
antCls: i,
|
|
1638
|
-
iconCls: d,
|
|
1639
|
-
motionDurationMid: s,
|
|
1640
|
-
paddingBlock: p,
|
|
1641
|
-
fontSize: g,
|
|
1642
|
-
dropdownEdgeChildPadding: S,
|
|
1643
|
-
colorTextDisabled: u,
|
|
1644
|
-
fontSizeIcon: $,
|
|
1645
|
-
controlPaddingHorizontal: c,
|
|
1646
|
-
colorBgElevated: m
|
|
1647
|
-
} = e;
|
|
1648
|
-
return [
|
|
1649
|
-
{
|
|
1650
|
-
[n]: {
|
|
1651
|
-
position: "absolute",
|
|
1652
|
-
top: -9999,
|
|
1653
|
-
left: {
|
|
1654
|
-
_skip_check_: !0,
|
|
1655
|
-
value: -9999
|
|
1656
|
-
},
|
|
1657
|
-
zIndex: o,
|
|
1658
|
-
display: "block",
|
|
1659
|
-
// A placeholder out of dropdown visible range to avoid close when user moving
|
|
1660
|
-
"&::before": {
|
|
1661
|
-
position: "absolute",
|
|
1662
|
-
insetBlock: e.calc(a).div(2).sub(r).equal(),
|
|
1663
|
-
// insetInlineStart: -7, // FIXME: Seems not work for hidden element
|
|
1664
|
-
zIndex: -9999,
|
|
1665
|
-
opacity: 1e-4,
|
|
1666
|
-
content: '""'
|
|
1667
|
-
},
|
|
1668
|
-
// Makes vertical dropdowns have a scrollbar once they become taller than the viewport.
|
|
1669
|
-
"&-menu-vertical": {
|
|
1670
|
-
maxHeight: "100vh",
|
|
1671
|
-
overflowY: "auto"
|
|
1672
|
-
},
|
|
1673
|
-
[`&-trigger${i}-btn`]: {
|
|
1674
|
-
[`& > ${d}-down, & > ${i}-btn-icon > ${d}-down`]: {
|
|
1675
|
-
fontSize: $
|
|
1676
|
-
}
|
|
1677
|
-
},
|
|
1678
|
-
[`${n}-wrap`]: {
|
|
1679
|
-
position: "relative",
|
|
1680
|
-
[`${i}-btn > ${d}-down`]: {
|
|
1681
|
-
fontSize: $
|
|
1682
|
-
},
|
|
1683
|
-
[`${d}-down::before`]: {
|
|
1684
|
-
transition: `transform ${s}`
|
|
1685
|
-
}
|
|
1686
|
-
},
|
|
1687
|
-
[`${n}-wrap-open`]: {
|
|
1688
|
-
[`${d}-down::before`]: {
|
|
1689
|
-
transform: "rotate(180deg)"
|
|
1690
|
-
}
|
|
1691
|
-
},
|
|
1692
|
-
"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ": {
|
|
1693
|
-
display: "none"
|
|
1694
|
-
},
|
|
1695
|
-
// =============================================================
|
|
1696
|
-
// == Motion ==
|
|
1697
|
-
// =============================================================
|
|
1698
|
-
// When position is not enough for dropdown, the placement will revert.
|
|
1699
|
-
// We will handle this with revert motion name.
|
|
1700
|
-
[`&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomLeft,
|
|
1701
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomLeft,
|
|
1702
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottom,
|
|
1703
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottom,
|
|
1704
|
-
&${i}-slide-down-enter${i}-slide-down-enter-active${n}-placement-bottomRight,
|
|
1705
|
-
&${i}-slide-down-appear${i}-slide-down-appear-active${n}-placement-bottomRight`]: {
|
|
1706
|
-
animationName: zt
|
|
1707
|
-
},
|
|
1708
|
-
[`&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topLeft,
|
|
1709
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topLeft,
|
|
1710
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-top,
|
|
1711
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-top,
|
|
1712
|
-
&${i}-slide-up-enter${i}-slide-up-enter-active${n}-placement-topRight,
|
|
1713
|
-
&${i}-slide-up-appear${i}-slide-up-appear-active${n}-placement-topRight`]: {
|
|
1714
|
-
animationName: Tt
|
|
1715
|
-
},
|
|
1716
|
-
[`&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomLeft,
|
|
1717
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottom,
|
|
1718
|
-
&${i}-slide-down-leave${i}-slide-down-leave-active${n}-placement-bottomRight`]: {
|
|
1719
|
-
animationName: Pt
|
|
1720
|
-
},
|
|
1721
|
-
[`&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topLeft,
|
|
1722
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-top,
|
|
1723
|
-
&${i}-slide-up-leave${i}-slide-up-leave-active${n}-placement-topRight`]: {
|
|
1724
|
-
animationName: Ht
|
|
1725
|
-
}
|
|
1726
|
-
}
|
|
1727
|
-
},
|
|
1728
|
-
// =============================================================
|
|
1729
|
-
// == Arrow style ==
|
|
1730
|
-
// =============================================================
|
|
1731
|
-
wt(e, m, {
|
|
1732
|
-
arrowPlacement: {
|
|
1733
|
-
top: !0,
|
|
1734
|
-
bottom: !0
|
|
1735
|
-
}
|
|
1736
|
-
}),
|
|
1737
|
-
{
|
|
1738
|
-
// =============================================================
|
|
1739
|
-
// == Menu ==
|
|
1740
|
-
// =============================================================
|
|
1741
|
-
[`${n} ${t}`]: {
|
|
1742
|
-
position: "relative",
|
|
1743
|
-
margin: 0
|
|
1744
|
-
},
|
|
1745
|
-
[`${t}-submenu-popup`]: {
|
|
1746
|
-
position: "absolute",
|
|
1747
|
-
zIndex: o,
|
|
1748
|
-
background: "transparent",
|
|
1749
|
-
boxShadow: "none",
|
|
1750
|
-
transformOrigin: "0 0",
|
|
1751
|
-
"ul, li": {
|
|
1752
|
-
listStyle: "none",
|
|
1753
|
-
margin: 0
|
|
1754
|
-
}
|
|
1755
|
-
},
|
|
1756
|
-
[`${n}, ${n}-menu-submenu`]: Object.assign(Object.assign({}, Ie(e)), {
|
|
1757
|
-
[t]: Object.assign(Object.assign({
|
|
1758
|
-
padding: S,
|
|
1759
|
-
listStyleType: "none",
|
|
1760
|
-
backgroundColor: m,
|
|
1761
|
-
backgroundClip: "padding-box",
|
|
1762
|
-
borderRadius: e.borderRadiusLG,
|
|
1763
|
-
outline: "none",
|
|
1764
|
-
boxShadow: e.boxShadowSecondary
|
|
1765
|
-
}, he(e)), {
|
|
1766
|
-
"&:empty": {
|
|
1767
|
-
padding: 0,
|
|
1768
|
-
boxShadow: "none"
|
|
1769
|
-
},
|
|
1770
|
-
[`${t}-item-group-title`]: {
|
|
1771
|
-
padding: `${h(p)} ${h(c)}`,
|
|
1772
|
-
color: e.colorTextDescription,
|
|
1773
|
-
transition: `all ${s}`
|
|
1774
|
-
},
|
|
1775
|
-
// ======================= Item Content =======================
|
|
1776
|
-
[`${t}-item`]: {
|
|
1777
|
-
position: "relative",
|
|
1778
|
-
display: "flex",
|
|
1779
|
-
alignItems: "center"
|
|
1780
|
-
},
|
|
1781
|
-
[`${t}-item-icon`]: {
|
|
1782
|
-
minWidth: g,
|
|
1783
|
-
marginInlineEnd: e.marginXS,
|
|
1784
|
-
fontSize: e.fontSizeSM
|
|
1785
|
-
},
|
|
1786
|
-
[`${t}-title-content`]: {
|
|
1787
|
-
flex: "auto",
|
|
1788
|
-
"&-with-extra": {
|
|
1789
|
-
display: "inline-flex",
|
|
1790
|
-
alignItems: "center",
|
|
1791
|
-
width: "100%"
|
|
1792
|
-
},
|
|
1793
|
-
"> a": {
|
|
1794
|
-
color: "inherit",
|
|
1795
|
-
transition: `all ${s}`,
|
|
1796
|
-
"&:hover": {
|
|
1797
|
-
color: "inherit"
|
|
1798
|
-
},
|
|
1799
|
-
"&::after": {
|
|
1800
|
-
position: "absolute",
|
|
1801
|
-
inset: 0,
|
|
1802
|
-
content: '""'
|
|
1803
|
-
}
|
|
1804
|
-
},
|
|
1805
|
-
[`${t}-item-extra`]: {
|
|
1806
|
-
paddingInlineStart: e.padding,
|
|
1807
|
-
marginInlineStart: "auto",
|
|
1808
|
-
fontSize: e.fontSizeSM,
|
|
1809
|
-
color: e.colorTextDescription
|
|
1810
|
-
}
|
|
1811
|
-
},
|
|
1812
|
-
// =========================== Item ===========================
|
|
1813
|
-
[`${t}-item, ${t}-submenu-title`]: Object.assign(Object.assign({
|
|
1814
|
-
display: "flex",
|
|
1815
|
-
margin: 0,
|
|
1816
|
-
padding: `${h(p)} ${h(c)}`,
|
|
1817
|
-
color: e.colorText,
|
|
1818
|
-
fontWeight: "normal",
|
|
1819
|
-
fontSize: g,
|
|
1820
|
-
lineHeight: e.lineHeight,
|
|
1821
|
-
cursor: "pointer",
|
|
1822
|
-
transition: `all ${s}`,
|
|
1823
|
-
borderRadius: e.borderRadiusSM,
|
|
1824
|
-
"&:hover, &-active": {
|
|
1825
|
-
backgroundColor: e.controlItemBgHover
|
|
1826
|
-
}
|
|
1827
|
-
}, he(e)), {
|
|
1828
|
-
"&-selected": {
|
|
1829
|
-
color: e.colorPrimary,
|
|
1830
|
-
backgroundColor: e.controlItemBgActive,
|
|
1831
|
-
"&:hover, &-active": {
|
|
1832
|
-
backgroundColor: e.controlItemBgActiveHover
|
|
1833
|
-
}
|
|
1834
|
-
},
|
|
1835
|
-
"&-disabled": {
|
|
1836
|
-
color: u,
|
|
1837
|
-
cursor: "not-allowed",
|
|
1838
|
-
"&:hover": {
|
|
1839
|
-
color: u,
|
|
1840
|
-
backgroundColor: m,
|
|
1841
|
-
cursor: "not-allowed"
|
|
1842
|
-
},
|
|
1843
|
-
a: {
|
|
1844
|
-
pointerEvents: "none"
|
|
1845
|
-
}
|
|
1846
|
-
},
|
|
1847
|
-
"&-divider": {
|
|
1848
|
-
height: 1,
|
|
1849
|
-
// By design
|
|
1850
|
-
margin: `${h(e.marginXXS)} 0`,
|
|
1851
|
-
overflow: "hidden",
|
|
1852
|
-
lineHeight: 0,
|
|
1853
|
-
backgroundColor: e.colorSplit
|
|
1854
|
-
},
|
|
1855
|
-
[`${n}-menu-submenu-expand-icon`]: {
|
|
1856
|
-
position: "absolute",
|
|
1857
|
-
insetInlineEnd: e.paddingXS,
|
|
1858
|
-
[`${n}-menu-submenu-arrow-icon`]: {
|
|
1859
|
-
marginInlineEnd: "0 !important",
|
|
1860
|
-
color: e.colorTextDescription,
|
|
1861
|
-
fontSize: $,
|
|
1862
|
-
fontStyle: "normal"
|
|
1863
|
-
}
|
|
1864
|
-
}
|
|
1865
|
-
}),
|
|
1866
|
-
[`${t}-item-group-list`]: {
|
|
1867
|
-
margin: `0 ${h(e.marginXS)}`,
|
|
1868
|
-
padding: 0,
|
|
1869
|
-
listStyle: "none"
|
|
1870
|
-
},
|
|
1871
|
-
[`${t}-submenu-title`]: {
|
|
1872
|
-
paddingInlineEnd: e.calc(c).add(e.fontSizeSM).equal()
|
|
1873
|
-
},
|
|
1874
|
-
[`${t}-submenu-vertical`]: {
|
|
1875
|
-
position: "relative"
|
|
1876
|
-
},
|
|
1877
|
-
[`${t}-submenu${t}-submenu-disabled ${n}-menu-submenu-title`]: {
|
|
1878
|
-
[`&, ${n}-menu-submenu-arrow-icon`]: {
|
|
1879
|
-
color: u,
|
|
1880
|
-
backgroundColor: m,
|
|
1881
|
-
cursor: "not-allowed"
|
|
1882
|
-
}
|
|
1883
|
-
},
|
|
1884
|
-
// https://github.com/ant-design/ant-design/issues/19264
|
|
1885
|
-
[`${t}-submenu-selected ${n}-menu-submenu-title`]: {
|
|
1886
|
-
color: e.colorPrimary
|
|
1887
|
-
}
|
|
1888
|
-
})
|
|
1889
|
-
})
|
|
1890
|
-
},
|
|
1891
|
-
// Follow code may reuse in other components
|
|
1892
|
-
[re(e, "slide-up"), re(e, "slide-down"), Ne(e, "move-up"), Ne(e, "move-down"), Xe(e, "zoom-big")]
|
|
1893
|
-
];
|
|
1894
|
-
}, un = (e) => Object.assign(Object.assign({
|
|
1895
|
-
zIndexPopup: e.zIndexPopupBase + 50,
|
|
1896
|
-
paddingBlock: (e.controlHeight - e.fontSize * e.lineHeight) / 2
|
|
1897
|
-
}, Ot({
|
|
1898
|
-
contentRadius: e.borderRadiusLG,
|
|
1899
|
-
limitVerticalRadius: !0
|
|
1900
|
-
})), Bt(e)), mn = te("Dropdown", (e) => {
|
|
1901
|
-
const {
|
|
1902
|
-
marginXXS: n,
|
|
1903
|
-
sizePopupArrow: t,
|
|
1904
|
-
paddingXXS: o,
|
|
1905
|
-
componentCls: r
|
|
1906
|
-
} = e, a = oe(e, {
|
|
1907
|
-
menuCls: `${r}-menu`,
|
|
1908
|
-
dropdownArrowDistance: e.calc(t).div(2).add(n).equal(),
|
|
1909
|
-
dropdownEdgeChildPadding: o
|
|
1910
|
-
});
|
|
1911
|
-
return [cn(a), dn(a)];
|
|
1912
|
-
}, un, {
|
|
1913
|
-
resetStyle: !1
|
|
1914
|
-
}), de = (e) => {
|
|
1915
|
-
var n;
|
|
1916
|
-
const {
|
|
1917
|
-
menu: t,
|
|
1918
|
-
arrow: o,
|
|
1919
|
-
prefixCls: r,
|
|
1920
|
-
children: a,
|
|
1921
|
-
trigger: i,
|
|
1922
|
-
disabled: d,
|
|
1923
|
-
dropdownRender: s,
|
|
1924
|
-
getPopupContainer: p,
|
|
1925
|
-
overlayClassName: g,
|
|
1926
|
-
rootClassName: S,
|
|
1927
|
-
overlayStyle: u,
|
|
1928
|
-
open: $,
|
|
1929
|
-
onOpenChange: c,
|
|
1930
|
-
// Deprecated
|
|
1931
|
-
visible: m,
|
|
1932
|
-
onVisibleChange: v,
|
|
1933
|
-
mouseEnterDelay: I = 0.15,
|
|
1934
|
-
mouseLeaveDelay: B = 0.1,
|
|
1935
|
-
autoAdjustOverflow: x = !0,
|
|
1936
|
-
placement: b = "",
|
|
1937
|
-
overlay: E,
|
|
1938
|
-
transitionName: N
|
|
1939
|
-
} = e, {
|
|
1940
|
-
getPopupContainer: _,
|
|
1941
|
-
getPrefixCls: w,
|
|
1942
|
-
direction: C,
|
|
1943
|
-
dropdown: f
|
|
1944
|
-
} = l.useContext(Z), j = se("Dropdown");
|
|
1945
|
-
process.env.NODE_ENV !== "production" && ([["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
|
|
1946
|
-
let [U, K] = O;
|
|
1947
|
-
j.deprecated(!(U in e), U, K);
|
|
1948
|
-
}), j.deprecated(!("overlay" in e), "overlay", "menu"));
|
|
1949
|
-
const D = l.useMemo(() => {
|
|
1950
|
-
const O = w();
|
|
1951
|
-
return N !== void 0 ? N : b.includes("top") ? `${O}-slide-down` : `${O}-slide-up`;
|
|
1952
|
-
}, [w, b, N]), M = l.useMemo(() => b ? b.includes("Center") ? b.slice(0, b.indexOf("Center")) : b : C === "rtl" ? "bottomRight" : "bottomLeft", [b, C]);
|
|
1953
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1954
|
-
if (b.includes("Center")) {
|
|
1955
|
-
const O = b.slice(0, b.indexOf("Center"));
|
|
1956
|
-
process.env.NODE_ENV !== "production" && j(!b.includes("Center"), "deprecated", `You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${O}' instead.`);
|
|
1957
|
-
}
|
|
1958
|
-
[["visible", "open"], ["onVisibleChange", "onOpenChange"]].forEach((O) => {
|
|
1959
|
-
let [U, K] = O;
|
|
1960
|
-
j.deprecated(!(U in e), U, K);
|
|
1961
|
-
});
|
|
1962
|
-
}
|
|
1963
|
-
const y = w("dropdown", r), H = Ve(y), [L, k, R] = mn(y, H), [, W] = ut(), V = l.Children.only(kt(a) ? /* @__PURE__ */ l.createElement("span", null, a) : a), F = ee(V, {
|
|
1964
|
-
className: P(`${y}-trigger`, {
|
|
1965
|
-
[`${y}-rtl`]: C === "rtl"
|
|
1966
|
-
}, V.props.className),
|
|
1967
|
-
disabled: (n = V.props.disabled) !== null && n !== void 0 ? n : d
|
|
1968
|
-
}), z = d ? [] : i, X = !!(z != null && z.includes("contextMenu")), [q, G] = rt(!1, {
|
|
1969
|
-
value: $ ?? m
|
|
1970
|
-
}), me = ke((O) => {
|
|
1971
|
-
c == null || c(O, {
|
|
1972
|
-
source: "trigger"
|
|
1973
|
-
}), v == null || v(O), G(O);
|
|
1974
|
-
}), pe = P(g, S, k, R, H, f == null ? void 0 : f.className, {
|
|
1975
|
-
[`${y}-rtl`]: C === "rtl"
|
|
1976
|
-
}), T = Et({
|
|
1977
|
-
arrowPointAtCenter: typeof o == "object" && o.pointAtCenter,
|
|
1978
|
-
autoAdjustOverflow: x,
|
|
1979
|
-
offset: W.marginXXS,
|
|
1980
|
-
arrowWidth: o ? W.sizePopupArrow : 0,
|
|
1981
|
-
borderRadius: W.borderRadius
|
|
1982
|
-
}), A = l.useCallback(() => {
|
|
1983
|
-
t != null && t.selectable && (t != null && t.multiple) || (c == null || c(!1, {
|
|
1984
|
-
source: "menu"
|
|
1985
|
-
}), G(!1));
|
|
1986
|
-
}, [t == null ? void 0 : t.selectable, t == null ? void 0 : t.multiple]), Y = () => {
|
|
1987
|
-
let O;
|
|
1988
|
-
return t != null && t.items ? O = /* @__PURE__ */ l.createElement(J, Object.assign({}, t)) : typeof E == "function" ? O = E() : O = E, s && (O = s(O)), O = l.Children.only(typeof O == "string" ? /* @__PURE__ */ l.createElement("span", null, O) : O), /* @__PURE__ */ l.createElement(Jt, {
|
|
1989
|
-
prefixCls: `${y}-menu`,
|
|
1990
|
-
rootClassName: P(R, H),
|
|
1991
|
-
expandIcon: /* @__PURE__ */ l.createElement("span", {
|
|
1992
|
-
className: `${y}-menu-submenu-arrow`
|
|
1993
|
-
}, /* @__PURE__ */ l.createElement(ie, {
|
|
1994
|
-
className: `${y}-menu-submenu-arrow-icon`
|
|
1995
|
-
})),
|
|
1996
|
-
mode: "vertical",
|
|
1997
|
-
selectable: !1,
|
|
1998
|
-
onClick: A,
|
|
1999
|
-
validator: (U) => {
|
|
2000
|
-
let {
|
|
2001
|
-
mode: K
|
|
2002
|
-
} = U;
|
|
2003
|
-
process.env.NODE_ENV !== "production" && j(!K || K === "vertical", "usage", `mode="${K}" is not supported for Dropdown's Menu.`);
|
|
2004
|
-
}
|
|
2005
|
-
}, O);
|
|
2006
|
-
}, [ge, et] = We("Dropdown", u == null ? void 0 : u.zIndex);
|
|
2007
|
-
let fe = /* @__PURE__ */ l.createElement(St, Object.assign({
|
|
2008
|
-
alignPoint: X
|
|
2009
|
-
}, Q(e, ["rootClassName"]), {
|
|
2010
|
-
mouseEnterDelay: I,
|
|
2011
|
-
mouseLeaveDelay: B,
|
|
2012
|
-
visible: q,
|
|
2013
|
-
builtinPlacements: T,
|
|
2014
|
-
arrow: !!o,
|
|
2015
|
-
overlayClassName: pe,
|
|
2016
|
-
prefixCls: y,
|
|
2017
|
-
getPopupContainer: p || _,
|
|
2018
|
-
transitionName: D,
|
|
2019
|
-
trigger: z,
|
|
2020
|
-
overlay: Y,
|
|
2021
|
-
placement: M,
|
|
2022
|
-
onVisibleChange: me,
|
|
2023
|
-
overlayStyle: Object.assign(Object.assign(Object.assign({}, f == null ? void 0 : f.style), u), {
|
|
2024
|
-
zIndex: ge
|
|
2025
|
-
})
|
|
2026
|
-
}), F);
|
|
2027
|
-
return ge && (fe = /* @__PURE__ */ l.createElement(yt.Provider, {
|
|
2028
|
-
value: et
|
|
2029
|
-
}, fe)), L(fe);
|
|
2030
|
-
}, pn = mt(de, "align", void 0, "dropdown", (e) => e), gn = (e) => /* @__PURE__ */ l.createElement(pn, Object.assign({}, e), /* @__PURE__ */ l.createElement("span", null));
|
|
2031
|
-
de._InternalPanelDoNotUseOrYouWillBeFired = gn;
|
|
2032
|
-
process.env.NODE_ENV !== "production" && (de.displayName = "Dropdown");
|
|
2033
|
-
const ce = (e) => {
|
|
2034
|
-
let {
|
|
2035
|
-
children: n
|
|
14
|
+
children: t
|
|
2036
15
|
} = e;
|
|
2037
16
|
const {
|
|
2038
|
-
getPrefixCls:
|
|
2039
|
-
} =
|
|
2040
|
-
return /* @__PURE__ */
|
|
2041
|
-
className: `${
|
|
17
|
+
getPrefixCls: n
|
|
18
|
+
} = o.useContext(X), r = n("breadcrumb");
|
|
19
|
+
return /* @__PURE__ */ o.createElement("li", {
|
|
20
|
+
className: `${r}-separator`,
|
|
2042
21
|
"aria-hidden": "true"
|
|
2043
|
-
},
|
|
22
|
+
}, t === "" ? t : t || "/");
|
|
2044
23
|
};
|
|
2045
|
-
|
|
2046
|
-
var
|
|
2047
|
-
var
|
|
2048
|
-
for (var
|
|
2049
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
2050
|
-
|
|
2051
|
-
return
|
|
24
|
+
x.__ANT_BREADCRUMB_SEPARATOR = !0;
|
|
25
|
+
var me = function(e, t) {
|
|
26
|
+
var n = {};
|
|
27
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
28
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
29
|
+
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
30
|
+
return n;
|
|
2052
31
|
};
|
|
2053
|
-
function
|
|
32
|
+
function ue(e, t) {
|
|
2054
33
|
if (e.title === void 0 || e.title === null)
|
|
2055
34
|
return null;
|
|
2056
|
-
const
|
|
2057
|
-
return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${
|
|
35
|
+
const n = Object.keys(t).join("|");
|
|
36
|
+
return typeof e.title == "object" ? e.title : String(e.title).replace(new RegExp(`:(${n})`, "g"), (r, a) => t[a] || r);
|
|
2058
37
|
}
|
|
2059
|
-
function
|
|
2060
|
-
if (
|
|
38
|
+
function W(e, t, n, r) {
|
|
39
|
+
if (n == null)
|
|
2061
40
|
return null;
|
|
2062
41
|
const {
|
|
2063
|
-
className:
|
|
2064
|
-
onClick:
|
|
2065
|
-
} =
|
|
42
|
+
className: a,
|
|
43
|
+
onClick: i
|
|
44
|
+
} = t, s = me(t, ["className", "onClick"]), c = Object.assign(Object.assign({}, U(s, {
|
|
2066
45
|
data: !0,
|
|
2067
46
|
aria: !0
|
|
2068
47
|
})), {
|
|
2069
|
-
onClick:
|
|
48
|
+
onClick: i
|
|
2070
49
|
});
|
|
2071
|
-
return
|
|
2072
|
-
className:
|
|
2073
|
-
href:
|
|
2074
|
-
}),
|
|
2075
|
-
className:
|
|
2076
|
-
}),
|
|
50
|
+
return r !== void 0 ? /* @__PURE__ */ o.createElement("a", Object.assign({}, c, {
|
|
51
|
+
className: D(`${e}-link`, a),
|
|
52
|
+
href: r
|
|
53
|
+
}), n) : /* @__PURE__ */ o.createElement("span", Object.assign({}, c, {
|
|
54
|
+
className: D(`${e}-link`, a)
|
|
55
|
+
}), n);
|
|
2077
56
|
}
|
|
2078
|
-
function
|
|
2079
|
-
return (
|
|
2080
|
-
if (
|
|
2081
|
-
return
|
|
2082
|
-
const
|
|
2083
|
-
return
|
|
57
|
+
function pe(e, t) {
|
|
58
|
+
return (r, a, i, s, c) => {
|
|
59
|
+
if (t)
|
|
60
|
+
return t(r, a, i, s);
|
|
61
|
+
const f = ue(r, a);
|
|
62
|
+
return W(e, r, f, c);
|
|
2084
63
|
};
|
|
2085
64
|
}
|
|
2086
|
-
var
|
|
2087
|
-
var
|
|
2088
|
-
for (var
|
|
2089
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
2090
|
-
|
|
2091
|
-
return
|
|
65
|
+
var A = function(e, t) {
|
|
66
|
+
var n = {};
|
|
67
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
68
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
69
|
+
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
70
|
+
return n;
|
|
2092
71
|
};
|
|
2093
|
-
const
|
|
72
|
+
const q = (e) => {
|
|
2094
73
|
const {
|
|
2095
|
-
prefixCls:
|
|
2096
|
-
separator:
|
|
2097
|
-
children:
|
|
2098
|
-
menu:
|
|
2099
|
-
overlay:
|
|
2100
|
-
dropdownProps:
|
|
2101
|
-
href:
|
|
74
|
+
prefixCls: t,
|
|
75
|
+
separator: n = "/",
|
|
76
|
+
children: r,
|
|
77
|
+
menu: a,
|
|
78
|
+
overlay: i,
|
|
79
|
+
dropdownProps: s,
|
|
80
|
+
href: c
|
|
2102
81
|
} = e;
|
|
2103
|
-
process.env.NODE_ENV !== "production" &&
|
|
2104
|
-
const
|
|
2105
|
-
if (
|
|
2106
|
-
const
|
|
2107
|
-
if (
|
|
2108
|
-
const
|
|
2109
|
-
items:
|
|
2110
|
-
} =
|
|
2111
|
-
|
|
2112
|
-
items:
|
|
82
|
+
process.env.NODE_ENV !== "production" && F("Breadcrumb.Item").deprecated(!("overlay" in e), "overlay", "menu");
|
|
83
|
+
const O = ((g) => {
|
|
84
|
+
if (a || i) {
|
|
85
|
+
const C = Object.assign({}, s);
|
|
86
|
+
if (a) {
|
|
87
|
+
const E = a || {}, {
|
|
88
|
+
items: h
|
|
89
|
+
} = E, u = A(E, ["items"]);
|
|
90
|
+
C.menu = Object.assign(Object.assign({}, u), {
|
|
91
|
+
items: h == null ? void 0 : h.map((y, b) => {
|
|
2113
92
|
var {
|
|
2114
|
-
key:
|
|
2115
|
-
title:
|
|
2116
|
-
label:
|
|
2117
|
-
path:
|
|
2118
|
-
} =
|
|
2119
|
-
let
|
|
2120
|
-
return
|
|
2121
|
-
href: `${
|
|
2122
|
-
},
|
|
2123
|
-
key:
|
|
2124
|
-
label:
|
|
93
|
+
key: v,
|
|
94
|
+
title: P,
|
|
95
|
+
label: S,
|
|
96
|
+
path: m
|
|
97
|
+
} = y, I = A(y, ["key", "title", "label", "path"]);
|
|
98
|
+
let j = S ?? P;
|
|
99
|
+
return m && (j = /* @__PURE__ */ o.createElement("a", {
|
|
100
|
+
href: `${c}${m}`
|
|
101
|
+
}, j)), Object.assign(Object.assign({}, I), {
|
|
102
|
+
key: v ?? b,
|
|
103
|
+
label: j
|
|
2125
104
|
});
|
|
2126
105
|
})
|
|
2127
106
|
});
|
|
2128
|
-
} else
|
|
2129
|
-
return /* @__PURE__ */
|
|
107
|
+
} else i && (C.overlay = i);
|
|
108
|
+
return /* @__PURE__ */ o.createElement(de, Object.assign({
|
|
2130
109
|
placement: "bottom"
|
|
2131
|
-
},
|
|
2132
|
-
className: `${
|
|
2133
|
-
}, g, /* @__PURE__ */
|
|
110
|
+
}, C), /* @__PURE__ */ o.createElement("span", {
|
|
111
|
+
className: `${t}-overlay-link`
|
|
112
|
+
}, g, /* @__PURE__ */ o.createElement(ce, null)));
|
|
2134
113
|
}
|
|
2135
114
|
return g;
|
|
2136
|
-
})(
|
|
2137
|
-
return
|
|
2138
|
-
},
|
|
115
|
+
})(r);
|
|
116
|
+
return O != null ? /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("li", null, O), n && /* @__PURE__ */ o.createElement(x, null, n)) : null;
|
|
117
|
+
}, K = (e) => {
|
|
2139
118
|
const {
|
|
2140
|
-
prefixCls:
|
|
2141
|
-
children:
|
|
2142
|
-
href:
|
|
2143
|
-
} = e,
|
|
2144
|
-
getPrefixCls:
|
|
2145
|
-
} =
|
|
2146
|
-
return /* @__PURE__ */
|
|
2147
|
-
prefixCls:
|
|
2148
|
-
}),
|
|
119
|
+
prefixCls: t,
|
|
120
|
+
children: n,
|
|
121
|
+
href: r
|
|
122
|
+
} = e, a = A(e, ["prefixCls", "children", "href"]), {
|
|
123
|
+
getPrefixCls: i
|
|
124
|
+
} = o.useContext(X), s = i("breadcrumb", t);
|
|
125
|
+
return /* @__PURE__ */ o.createElement(q, Object.assign({}, a, {
|
|
126
|
+
prefixCls: s
|
|
127
|
+
}), W(s, a, n, r));
|
|
2149
128
|
};
|
|
2150
|
-
|
|
2151
|
-
const
|
|
129
|
+
K.__ANT_BREADCRUMB_ITEM = !0;
|
|
130
|
+
const fe = (e) => {
|
|
2152
131
|
const {
|
|
2153
|
-
componentCls:
|
|
2154
|
-
iconCls:
|
|
2155
|
-
calc:
|
|
132
|
+
componentCls: t,
|
|
133
|
+
iconCls: n,
|
|
134
|
+
calc: r
|
|
2156
135
|
} = e;
|
|
2157
136
|
return {
|
|
2158
|
-
[
|
|
137
|
+
[t]: Object.assign(Object.assign({}, se(e)), {
|
|
2159
138
|
color: e.itemColor,
|
|
2160
139
|
fontSize: e.fontSize,
|
|
2161
|
-
[
|
|
140
|
+
[n]: {
|
|
2162
141
|
fontSize: e.iconFontSize
|
|
2163
142
|
},
|
|
2164
143
|
ol: {
|
|
@@ -2171,38 +150,38 @@ const hn = (e) => {
|
|
|
2171
150
|
a: Object.assign({
|
|
2172
151
|
color: e.linkColor,
|
|
2173
152
|
transition: `color ${e.motionDurationMid}`,
|
|
2174
|
-
padding: `0 ${
|
|
153
|
+
padding: `0 ${H(e.paddingXXS)}`,
|
|
2175
154
|
borderRadius: e.borderRadiusSM,
|
|
2176
155
|
height: e.fontHeight,
|
|
2177
156
|
display: "inline-block",
|
|
2178
|
-
marginInline:
|
|
157
|
+
marginInline: r(e.marginXXS).mul(-1).equal(),
|
|
2179
158
|
"&:hover": {
|
|
2180
159
|
color: e.linkHoverColor,
|
|
2181
160
|
backgroundColor: e.colorBgTextHover
|
|
2182
161
|
}
|
|
2183
|
-
},
|
|
162
|
+
}, le(e)),
|
|
2184
163
|
"li:last-child": {
|
|
2185
164
|
color: e.lastItemColor
|
|
2186
165
|
},
|
|
2187
|
-
[`${
|
|
166
|
+
[`${t}-separator`]: {
|
|
2188
167
|
marginInline: e.separatorMargin,
|
|
2189
168
|
color: e.separatorColor
|
|
2190
169
|
},
|
|
2191
|
-
[`${
|
|
170
|
+
[`${t}-link`]: {
|
|
2192
171
|
[`
|
|
2193
|
-
> ${
|
|
2194
|
-
> ${
|
|
172
|
+
> ${n} + span,
|
|
173
|
+
> ${n} + a
|
|
2195
174
|
`]: {
|
|
2196
175
|
marginInlineStart: e.marginXXS
|
|
2197
176
|
}
|
|
2198
177
|
},
|
|
2199
|
-
[`${
|
|
178
|
+
[`${t}-overlay-link`]: {
|
|
2200
179
|
borderRadius: e.borderRadiusSM,
|
|
2201
180
|
height: e.fontHeight,
|
|
2202
181
|
display: "inline-block",
|
|
2203
|
-
padding: `0 ${
|
|
2204
|
-
marginInline:
|
|
2205
|
-
[`> ${
|
|
182
|
+
padding: `0 ${H(e.paddingXXS)}`,
|
|
183
|
+
marginInline: r(e.marginXXS).mul(-1).equal(),
|
|
184
|
+
[`> ${n}`]: {
|
|
2206
185
|
marginInlineStart: e.marginXXS,
|
|
2207
186
|
fontSize: e.fontSizeIcon
|
|
2208
187
|
},
|
|
@@ -2225,7 +204,7 @@ const hn = (e) => {
|
|
|
2225
204
|
}
|
|
2226
205
|
})
|
|
2227
206
|
};
|
|
2228
|
-
},
|
|
207
|
+
}, be = (e) => ({
|
|
2229
208
|
itemColor: e.colorTextDescription,
|
|
2230
209
|
lastItemColor: e.colorText,
|
|
2231
210
|
iconFontSize: e.fontSize,
|
|
@@ -2233,147 +212,147 @@ const hn = (e) => {
|
|
|
2233
212
|
linkHoverColor: e.colorText,
|
|
2234
213
|
separatorColor: e.colorTextDescription,
|
|
2235
214
|
separatorMargin: e.marginXS
|
|
2236
|
-
}),
|
|
2237
|
-
const
|
|
2238
|
-
return
|
|
2239
|
-
},
|
|
2240
|
-
var
|
|
2241
|
-
var
|
|
2242
|
-
for (var
|
|
2243
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
2244
|
-
|
|
2245
|
-
return
|
|
215
|
+
}), ge = oe("Breadcrumb", (e) => {
|
|
216
|
+
const t = ie(e, {});
|
|
217
|
+
return fe(t);
|
|
218
|
+
}, be);
|
|
219
|
+
var V = function(e, t) {
|
|
220
|
+
var n = {};
|
|
221
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
222
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
223
|
+
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
224
|
+
return n;
|
|
2246
225
|
};
|
|
2247
|
-
function
|
|
226
|
+
function ye(e) {
|
|
2248
227
|
const {
|
|
2249
|
-
breadcrumbName:
|
|
2250
|
-
children:
|
|
2251
|
-
} = e,
|
|
2252
|
-
title:
|
|
2253
|
-
},
|
|
2254
|
-
return
|
|
2255
|
-
items:
|
|
228
|
+
breadcrumbName: t,
|
|
229
|
+
children: n
|
|
230
|
+
} = e, r = V(e, ["breadcrumbName", "children"]), a = Object.assign({
|
|
231
|
+
title: t
|
|
232
|
+
}, r);
|
|
233
|
+
return n && (a.menu = {
|
|
234
|
+
items: n.map((i) => {
|
|
2256
235
|
var {
|
|
2257
|
-
breadcrumbName:
|
|
2258
|
-
} =
|
|
2259
|
-
return Object.assign(Object.assign({},
|
|
2260
|
-
title:
|
|
236
|
+
breadcrumbName: s
|
|
237
|
+
} = i, c = V(i, ["breadcrumbName"]);
|
|
238
|
+
return Object.assign(Object.assign({}, c), {
|
|
239
|
+
title: s
|
|
2261
240
|
});
|
|
2262
241
|
})
|
|
2263
|
-
}),
|
|
242
|
+
}), a;
|
|
2264
243
|
}
|
|
2265
|
-
function
|
|
2266
|
-
return
|
|
244
|
+
function Oe(e, t) {
|
|
245
|
+
return ne(() => e || (t ? t.map(ye) : null), [e, t]);
|
|
2267
246
|
}
|
|
2268
|
-
var
|
|
2269
|
-
var
|
|
2270
|
-
for (var
|
|
2271
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var
|
|
2272
|
-
|
|
2273
|
-
return
|
|
247
|
+
var Ce = function(e, t) {
|
|
248
|
+
var n = {};
|
|
249
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
250
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
|
|
251
|
+
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
252
|
+
return n;
|
|
2274
253
|
};
|
|
2275
|
-
const
|
|
2276
|
-
if (
|
|
2277
|
-
return
|
|
2278
|
-
let
|
|
2279
|
-
return Object.keys(e).forEach((
|
|
2280
|
-
|
|
2281
|
-
}),
|
|
2282
|
-
},
|
|
254
|
+
const he = (e, t) => {
|
|
255
|
+
if (t === void 0)
|
|
256
|
+
return t;
|
|
257
|
+
let n = (t || "").replace(/^\//, "");
|
|
258
|
+
return Object.keys(e).forEach((r) => {
|
|
259
|
+
n = n.replace(`:${r}`, e[r]);
|
|
260
|
+
}), n;
|
|
261
|
+
}, _ = (e) => {
|
|
2283
262
|
const {
|
|
2284
|
-
prefixCls:
|
|
2285
|
-
separator:
|
|
2286
|
-
style:
|
|
2287
|
-
className:
|
|
2288
|
-
rootClassName:
|
|
2289
|
-
routes:
|
|
2290
|
-
items:
|
|
2291
|
-
children:
|
|
2292
|
-
itemRender:
|
|
263
|
+
prefixCls: t,
|
|
264
|
+
separator: n = "/",
|
|
265
|
+
style: r,
|
|
266
|
+
className: a,
|
|
267
|
+
rootClassName: i,
|
|
268
|
+
routes: s,
|
|
269
|
+
items: c,
|
|
270
|
+
children: f,
|
|
271
|
+
itemRender: O,
|
|
2293
272
|
params: g = {}
|
|
2294
|
-
} = e,
|
|
2295
|
-
getPrefixCls:
|
|
2296
|
-
direction:
|
|
2297
|
-
breadcrumb:
|
|
2298
|
-
} =
|
|
2299
|
-
let
|
|
2300
|
-
const
|
|
273
|
+
} = e, C = Ce(e, ["prefixCls", "separator", "style", "className", "rootClassName", "routes", "items", "children", "itemRender", "params"]), {
|
|
274
|
+
getPrefixCls: E,
|
|
275
|
+
direction: h,
|
|
276
|
+
breadcrumb: u
|
|
277
|
+
} = o.useContext(X);
|
|
278
|
+
let y;
|
|
279
|
+
const b = E("breadcrumb", t), [v, P, S] = ge(b), m = Oe(c, s);
|
|
2301
280
|
if (process.env.NODE_ENV !== "production") {
|
|
2302
|
-
const
|
|
2303
|
-
if (
|
|
2304
|
-
const
|
|
2305
|
-
|
|
2306
|
-
|
|
281
|
+
const d = F("Breadcrumb");
|
|
282
|
+
if (d.deprecated(!s, "routes", "items"), !m || m.length === 0) {
|
|
283
|
+
const p = T(f);
|
|
284
|
+
d.deprecated(p.length === 0, "Breadcrumb.Item and Breadcrumb.Separator", "items"), p.forEach((l) => {
|
|
285
|
+
l && process.env.NODE_ENV !== "production" && d(l.type && (l.type.__ANT_BREADCRUMB_ITEM === !0 || l.type.__ANT_BREADCRUMB_SEPARATOR === !0), "usage", "Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children");
|
|
2307
286
|
});
|
|
2308
287
|
}
|
|
2309
288
|
}
|
|
2310
|
-
const
|
|
2311
|
-
if (
|
|
2312
|
-
const
|
|
2313
|
-
|
|
289
|
+
const I = pe(b, O);
|
|
290
|
+
if (m && m.length > 0) {
|
|
291
|
+
const d = [], p = c || s;
|
|
292
|
+
y = m.map((l, N) => {
|
|
2314
293
|
const {
|
|
2315
|
-
path:
|
|
2316
|
-
key:
|
|
2317
|
-
type:
|
|
2318
|
-
menu:
|
|
2319
|
-
overlay:
|
|
2320
|
-
onClick:
|
|
2321
|
-
className:
|
|
2322
|
-
separator:
|
|
2323
|
-
dropdownProps:
|
|
2324
|
-
} =
|
|
2325
|
-
|
|
2326
|
-
const
|
|
2327
|
-
if (
|
|
2328
|
-
return /* @__PURE__ */
|
|
2329
|
-
key:
|
|
2330
|
-
},
|
|
2331
|
-
const
|
|
2332
|
-
|
|
294
|
+
path: J,
|
|
295
|
+
key: $,
|
|
296
|
+
type: Q,
|
|
297
|
+
menu: k,
|
|
298
|
+
overlay: z,
|
|
299
|
+
onClick: Y,
|
|
300
|
+
className: Z,
|
|
301
|
+
separator: ee,
|
|
302
|
+
dropdownProps: re
|
|
303
|
+
} = l, w = he(g, J);
|
|
304
|
+
w !== void 0 && d.push(w);
|
|
305
|
+
const M = $ ?? N;
|
|
306
|
+
if (Q === "separator")
|
|
307
|
+
return /* @__PURE__ */ o.createElement(x, {
|
|
308
|
+
key: M
|
|
309
|
+
}, ee);
|
|
310
|
+
const B = {}, te = N === m.length - 1;
|
|
311
|
+
k ? B.menu = k : z && (B.overlay = z);
|
|
2333
312
|
let {
|
|
2334
|
-
href:
|
|
2335
|
-
} =
|
|
2336
|
-
return
|
|
2337
|
-
key:
|
|
2338
|
-
},
|
|
313
|
+
href: R
|
|
314
|
+
} = l;
|
|
315
|
+
return d.length && w !== void 0 && (R = `#/${d.join("/")}`), /* @__PURE__ */ o.createElement(q, Object.assign({
|
|
316
|
+
key: M
|
|
317
|
+
}, B, U(l, {
|
|
2339
318
|
data: !0,
|
|
2340
319
|
aria: !0
|
|
2341
320
|
}), {
|
|
2342
|
-
className:
|
|
2343
|
-
dropdownProps:
|
|
2344
|
-
href:
|
|
2345
|
-
separator:
|
|
2346
|
-
onClick:
|
|
2347
|
-
prefixCls:
|
|
2348
|
-
}),
|
|
321
|
+
className: Z,
|
|
322
|
+
dropdownProps: re,
|
|
323
|
+
href: R,
|
|
324
|
+
separator: te ? "" : n,
|
|
325
|
+
onClick: Y,
|
|
326
|
+
prefixCls: b
|
|
327
|
+
}), I(l, g, p, d, R));
|
|
2349
328
|
});
|
|
2350
|
-
} else if (
|
|
2351
|
-
const
|
|
2352
|
-
|
|
2353
|
-
if (!
|
|
2354
|
-
return
|
|
2355
|
-
const
|
|
2356
|
-
return
|
|
2357
|
-
separator:
|
|
329
|
+
} else if (f) {
|
|
330
|
+
const d = T(f).length;
|
|
331
|
+
y = T(f).map((p, l) => {
|
|
332
|
+
if (!p)
|
|
333
|
+
return p;
|
|
334
|
+
const N = l === d - 1;
|
|
335
|
+
return ae(p, {
|
|
336
|
+
separator: N ? "" : n,
|
|
2358
337
|
// eslint-disable-next-line react/no-array-index-key
|
|
2359
|
-
key:
|
|
338
|
+
key: l
|
|
2360
339
|
});
|
|
2361
340
|
});
|
|
2362
341
|
}
|
|
2363
|
-
const
|
|
2364
|
-
[`${
|
|
2365
|
-
},
|
|
2366
|
-
return
|
|
2367
|
-
className:
|
|
2368
|
-
style:
|
|
2369
|
-
},
|
|
342
|
+
const j = D(b, u == null ? void 0 : u.className, {
|
|
343
|
+
[`${b}-rtl`]: h === "rtl"
|
|
344
|
+
}, a, i, P, S), G = Object.assign(Object.assign({}, u == null ? void 0 : u.style), r);
|
|
345
|
+
return v(/* @__PURE__ */ o.createElement("nav", Object.assign({
|
|
346
|
+
className: j,
|
|
347
|
+
style: G
|
|
348
|
+
}, C), /* @__PURE__ */ o.createElement("ol", null, y)));
|
|
2370
349
|
};
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
process.env.NODE_ENV !== "production" && (
|
|
2374
|
-
const
|
|
350
|
+
_.Item = K;
|
|
351
|
+
_.Separator = x;
|
|
352
|
+
process.env.NODE_ENV !== "production" && (_.displayName = "Breadcrumb");
|
|
353
|
+
const ve = ({ colors: e, typography: t }, n = "wide") => `
|
|
2375
354
|
&.ant-breadcrumb {
|
|
2376
|
-
font-size: ${n
|
|
355
|
+
font-size: ${t[n].body1.fontSize};
|
|
2377
356
|
|
|
2378
357
|
.ant-breadcrumb-link,
|
|
2379
358
|
span[class*="ant-breadcrumb-link"] > a {
|
|
@@ -2416,7 +395,7 @@ const wn = ({ colors: e, typography: n }, t = "wide") => `
|
|
|
2416
395
|
background: none !important;
|
|
2417
396
|
}
|
|
2418
397
|
}
|
|
2419
|
-
`,
|
|
398
|
+
`, Be = L.div`
|
|
2420
399
|
${({ $isDisabled: e }) => e && `
|
|
2421
400
|
cursor: not-allowed;
|
|
2422
401
|
.ant-breadcrumb {
|
|
@@ -2425,12 +404,12 @@ const wn = ({ colors: e, typography: n }, t = "wide") => `
|
|
|
2425
404
|
}
|
|
2426
405
|
`}
|
|
2427
406
|
opacity: ${({ $isDisabled: e }) => e ? 0.5 : 1};
|
|
2428
|
-
`,
|
|
2429
|
-
${({ theme: e, breakpoint:
|
|
407
|
+
`, Re = L(_)`
|
|
408
|
+
${({ theme: e, breakpoint: t }) => e && ve(e, t)}
|
|
2430
409
|
`;
|
|
2431
410
|
export {
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
411
|
+
Re as Breadcrumb,
|
|
412
|
+
Be as BreadcrumbWrapper,
|
|
413
|
+
Re as default,
|
|
414
|
+
ve as getGenesisClass
|
|
2436
415
|
};
|