@gobolt/genesis 0.0.10 → 0.0.11
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 +2 -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/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.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-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.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-B2Rgggx2.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/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 +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -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/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-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.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 +28 -12
- 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 +468 -263
- 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 +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -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-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +26 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- 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,21 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as te, a as $, e as de, d as L, b as w, _ as A, w as we, f as Gt } from "./presets-Djh_L_6R.js";
|
|
2
|
+
import { T as et } from "./index-DWUXwgXK.js";
|
|
3
|
+
import { B as xe, p as nt, y as tt, x as rt, Z as qt, $ as at, h as Me, z as Yt, v as Xt, w as Zt, d as Jt, _ as Qt, o as er, E as nr } from "./index-ByspLxrB.js";
|
|
2
4
|
import * as t from "react";
|
|
3
|
-
import J, { forwardRef as
|
|
4
|
-
import { I as Zt } from "./AntdIcon-BoLh1dP8.js";
|
|
5
|
-
import { T as et } from "./index-CfDY25LP.js";
|
|
6
|
-
import { w as xe, t as nt, h as tt, s as rt, Z as Jt, $ as at, x as Me, j as Qt, _ as er, d as nr, e as tr, f as rr, B as ar, r as ir } from "./index-oK7z6jnz.js";
|
|
5
|
+
import J, { forwardRef as tr, useMemo as rr, useRef as Xe, useCallback as Re, useImperativeHandle as ar } from "react";
|
|
7
6
|
import { K as ie } from "./KeyCode-DM2sFh3-.js";
|
|
8
|
-
import { F as Te } from "./Overflow-
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
process.env.NODE_ENV !== "production" && (cr.displayName = "EllipsisOutlined");
|
|
17
|
-
var fr = ie.ESC, dr = ie.TAB;
|
|
18
|
-
function vr(e) {
|
|
7
|
+
import { F as Te } from "./Overflow-DdNKJLQh.js";
|
|
8
|
+
import { u as Ze } from "./useMergedState-BoELfaU9.js";
|
|
9
|
+
import { i as ir } from "./isVisible-D3-B85BJ.js";
|
|
10
|
+
import { o as En } from "./omit-B_u6A-HL.js";
|
|
11
|
+
import { t as or } from "./toArray-DGvPoJP_.js";
|
|
12
|
+
import { I as lr } from "./AntdIcon-nCNB0J1E.js";
|
|
13
|
+
var ur = ie.ESC, sr = ie.TAB;
|
|
14
|
+
function cr(e) {
|
|
19
15
|
var r = e.visible, a = e.triggerRef, n = e.onVisibleChange, i = e.autoFocus, o = e.overlayRef, l = t.useRef(!1), u = function() {
|
|
20
16
|
if (r) {
|
|
21
17
|
var c, f;
|
|
@@ -26,10 +22,10 @@ function vr(e) {
|
|
|
26
22
|
return (c = o.current) !== null && c !== void 0 && c.focus ? (o.current.focus(), l.current = !0, !0) : !1;
|
|
27
23
|
}, s = function(c) {
|
|
28
24
|
switch (c.keyCode) {
|
|
29
|
-
case
|
|
25
|
+
case ur:
|
|
30
26
|
u();
|
|
31
27
|
break;
|
|
32
|
-
case
|
|
28
|
+
case sr: {
|
|
33
29
|
var f = !1;
|
|
34
30
|
l.current || (f = d()), f ? c.preventDefault() : u();
|
|
35
31
|
break;
|
|
@@ -44,8 +40,8 @@ function vr(e) {
|
|
|
44
40
|
};
|
|
45
41
|
}, [r]);
|
|
46
42
|
}
|
|
47
|
-
var
|
|
48
|
-
var a = e.overlay, n = e.arrow, i = e.prefixCls, o =
|
|
43
|
+
var fr = /* @__PURE__ */ tr(function(e, r) {
|
|
44
|
+
var a = e.overlay, n = e.arrow, i = e.prefixCls, o = rr(function() {
|
|
49
45
|
var u;
|
|
50
46
|
return typeof a == "function" ? u = a() : u = a, u;
|
|
51
47
|
}, [a]), l = nt(r, tt(o));
|
|
@@ -54,56 +50,56 @@ var mr = /* @__PURE__ */ qt(function(e, r) {
|
|
|
54
50
|
}), /* @__PURE__ */ J.cloneElement(o, {
|
|
55
51
|
ref: rt(o) ? l : void 0
|
|
56
52
|
}));
|
|
57
|
-
}),
|
|
53
|
+
}), Ee = {
|
|
58
54
|
adjustX: 1,
|
|
59
55
|
adjustY: 1
|
|
60
|
-
},
|
|
56
|
+
}, Se = [0, 0], dr = {
|
|
61
57
|
topLeft: {
|
|
62
58
|
points: ["bl", "tl"],
|
|
63
|
-
overflow:
|
|
59
|
+
overflow: Ee,
|
|
64
60
|
offset: [0, -4],
|
|
65
|
-
targetOffset:
|
|
61
|
+
targetOffset: Se
|
|
66
62
|
},
|
|
67
63
|
top: {
|
|
68
64
|
points: ["bc", "tc"],
|
|
69
|
-
overflow:
|
|
65
|
+
overflow: Ee,
|
|
70
66
|
offset: [0, -4],
|
|
71
|
-
targetOffset:
|
|
67
|
+
targetOffset: Se
|
|
72
68
|
},
|
|
73
69
|
topRight: {
|
|
74
70
|
points: ["br", "tr"],
|
|
75
|
-
overflow:
|
|
71
|
+
overflow: Ee,
|
|
76
72
|
offset: [0, -4],
|
|
77
|
-
targetOffset:
|
|
73
|
+
targetOffset: Se
|
|
78
74
|
},
|
|
79
75
|
bottomLeft: {
|
|
80
76
|
points: ["tl", "bl"],
|
|
81
|
-
overflow:
|
|
77
|
+
overflow: Ee,
|
|
82
78
|
offset: [0, 4],
|
|
83
|
-
targetOffset:
|
|
79
|
+
targetOffset: Se
|
|
84
80
|
},
|
|
85
81
|
bottom: {
|
|
86
82
|
points: ["tc", "bc"],
|
|
87
|
-
overflow:
|
|
83
|
+
overflow: Ee,
|
|
88
84
|
offset: [0, 4],
|
|
89
|
-
targetOffset:
|
|
85
|
+
targetOffset: Se
|
|
90
86
|
},
|
|
91
87
|
bottomRight: {
|
|
92
88
|
points: ["tr", "br"],
|
|
93
|
-
overflow:
|
|
89
|
+
overflow: Ee,
|
|
94
90
|
offset: [0, 4],
|
|
95
|
-
targetOffset:
|
|
91
|
+
targetOffset: Se
|
|
96
92
|
}
|
|
97
|
-
},
|
|
98
|
-
function
|
|
99
|
-
var a, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, u = e.transitionName, d = e.animation, s = e.align, g = e.placement, c = g === void 0 ? "bottomLeft" : g, f = e.placements, b = f === void 0 ?
|
|
93
|
+
}, vr = ["arrow", "prefixCls", "transitionName", "animation", "align", "placement", "placements", "getPopupContainer", "showAction", "hideAction", "overlayClassName", "overlayStyle", "visible", "trigger", "autoFocus", "overlay", "children", "onVisibleChange"];
|
|
94
|
+
function mr(e, r) {
|
|
95
|
+
var a, n = e.arrow, i = n === void 0 ? !1 : n, o = e.prefixCls, l = o === void 0 ? "rc-dropdown" : o, u = e.transitionName, d = e.animation, s = e.align, g = e.placement, c = g === void 0 ? "bottomLeft" : g, f = e.placements, b = f === void 0 ? dr : f, h = e.getPopupContainer, E = e.showAction, C = e.hideAction, I = e.overlayClassName, P = e.overlayStyle, v = e.visible, m = e.trigger, y = m === void 0 ? ["hover"] : m, p = e.autoFocus, R = e.overlay, _ = e.children, S = e.onVisibleChange, W = te(e, vr), O = J.useState(), K = $(O, 2), j = K[0], B = K[1], H = "visible" in e ? v : j, Y = J.useRef(null), T = J.useRef(null), q = J.useRef(null);
|
|
100
96
|
J.useImperativeHandle(r, function() {
|
|
101
97
|
return Y.current;
|
|
102
98
|
});
|
|
103
99
|
var V = function(D) {
|
|
104
|
-
B(D),
|
|
100
|
+
B(D), S == null || S(D);
|
|
105
101
|
};
|
|
106
|
-
|
|
102
|
+
cr({
|
|
107
103
|
visible: H,
|
|
108
104
|
triggerRef: q,
|
|
109
105
|
onVisibleChange: V,
|
|
@@ -114,7 +110,7 @@ function hr(e, r) {
|
|
|
114
110
|
var ne = e.onOverlayClick;
|
|
115
111
|
B(!1), ne && ne(D);
|
|
116
112
|
}, oe = function() {
|
|
117
|
-
return /* @__PURE__ */ J.createElement(
|
|
113
|
+
return /* @__PURE__ */ J.createElement(fr, {
|
|
118
114
|
ref: T,
|
|
119
115
|
overlay: R,
|
|
120
116
|
prefixCls: l,
|
|
@@ -140,7 +136,7 @@ function hr(e, r) {
|
|
|
140
136
|
popupClassName: de(I, w({}, "".concat(l, "-show-arrow"), i)),
|
|
141
137
|
popupStyle: P,
|
|
142
138
|
action: y,
|
|
143
|
-
showAction:
|
|
139
|
+
showAction: E,
|
|
144
140
|
hideAction: z,
|
|
145
141
|
popupPlacement: c,
|
|
146
142
|
popupAlign: s,
|
|
@@ -154,7 +150,7 @@ function hr(e, r) {
|
|
|
154
150
|
getPopupContainer: h
|
|
155
151
|
}), F);
|
|
156
152
|
}
|
|
157
|
-
const
|
|
153
|
+
const ca = /* @__PURE__ */ J.forwardRef(mr);
|
|
158
154
|
var it = /* @__PURE__ */ t.createContext(null);
|
|
159
155
|
function ot(e, r) {
|
|
160
156
|
return e === void 0 ? null : "".concat(e, "-").concat(r);
|
|
@@ -163,8 +159,8 @@ function lt(e) {
|
|
|
163
159
|
var r = t.useContext(it);
|
|
164
160
|
return ot(r, e);
|
|
165
161
|
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
162
|
+
var pr = ["children", "locked"], ae = /* @__PURE__ */ t.createContext(null);
|
|
163
|
+
function gr(e, r) {
|
|
168
164
|
var a = A({}, e);
|
|
169
165
|
return Object.keys(r).forEach(function(n) {
|
|
170
166
|
var i = r[n];
|
|
@@ -172,8 +168,8 @@ function br(e, r) {
|
|
|
172
168
|
}), a;
|
|
173
169
|
}
|
|
174
170
|
function Ve(e) {
|
|
175
|
-
var r = e.children, a = e.locked, n = te(e,
|
|
176
|
-
return
|
|
171
|
+
var r = e.children, a = e.locked, n = te(e, pr), i = t.useContext(ae), o = qt(function() {
|
|
172
|
+
return gr(i, n);
|
|
177
173
|
}, [i, n], function(l, u) {
|
|
178
174
|
return !a && (l[0] !== u[0] || !at(l[1], u[1], !0));
|
|
179
175
|
});
|
|
@@ -181,21 +177,21 @@ function Ve(e) {
|
|
|
181
177
|
value: o
|
|
182
178
|
}, r);
|
|
183
179
|
}
|
|
184
|
-
var
|
|
180
|
+
var hr = [], ut = /* @__PURE__ */ t.createContext(null);
|
|
185
181
|
function nn() {
|
|
186
182
|
return t.useContext(ut);
|
|
187
183
|
}
|
|
188
|
-
var st = /* @__PURE__ */ t.createContext(
|
|
184
|
+
var st = /* @__PURE__ */ t.createContext(hr);
|
|
189
185
|
function Fe(e) {
|
|
190
186
|
var r = t.useContext(st);
|
|
191
187
|
return t.useMemo(function() {
|
|
192
188
|
return e !== void 0 ? [].concat(Me(r), [e]) : r;
|
|
193
189
|
}, [r, e]);
|
|
194
190
|
}
|
|
195
|
-
var ct = /* @__PURE__ */ t.createContext(null),
|
|
191
|
+
var ct = /* @__PURE__ */ t.createContext(null), Sn = /* @__PURE__ */ t.createContext({});
|
|
196
192
|
function qn(e) {
|
|
197
193
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
198
|
-
if (
|
|
194
|
+
if (ir(e)) {
|
|
199
195
|
var a = e.nodeName.toLowerCase(), n = (
|
|
200
196
|
// Focusable element
|
|
201
197
|
["input", "select", "textarea", "button"].includes(a) || // Editable element
|
|
@@ -206,14 +202,14 @@ function qn(e) {
|
|
|
206
202
|
}
|
|
207
203
|
return !1;
|
|
208
204
|
}
|
|
209
|
-
function
|
|
205
|
+
function Cr(e) {
|
|
210
206
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a = Me(e.querySelectorAll("*")).filter(function(n) {
|
|
211
207
|
return qn(n, r);
|
|
212
208
|
});
|
|
213
209
|
return qn(e, r) && a.unshift(e), a;
|
|
214
210
|
}
|
|
215
211
|
var Cn = ie.LEFT, bn = ie.RIGHT, yn = ie.UP, Je = ie.DOWN, Qe = ie.ENTER, ft = ie.ESC, De = ie.HOME, $e = ie.END, Yn = [yn, Je, Cn, bn];
|
|
216
|
-
function
|
|
212
|
+
function br(e, r, a, n) {
|
|
217
213
|
var i, o = "prev", l = "next", u = "children", d = "parent";
|
|
218
214
|
if (e === "inline" && n === Qe)
|
|
219
215
|
return {
|
|
@@ -252,7 +248,7 @@ function Ir(e, r, a, n) {
|
|
|
252
248
|
return null;
|
|
253
249
|
}
|
|
254
250
|
}
|
|
255
|
-
function
|
|
251
|
+
function yr(e) {
|
|
256
252
|
for (var r = e; r; ) {
|
|
257
253
|
if (r.getAttribute("data-menu-list"))
|
|
258
254
|
return r;
|
|
@@ -260,7 +256,7 @@ function Rr(e) {
|
|
|
260
256
|
}
|
|
261
257
|
return null;
|
|
262
258
|
}
|
|
263
|
-
function
|
|
259
|
+
function Mr(e, r) {
|
|
264
260
|
for (var a = e || document.activeElement; a; ) {
|
|
265
261
|
if (r.has(a))
|
|
266
262
|
return a;
|
|
@@ -269,7 +265,7 @@ function Sr(e, r) {
|
|
|
269
265
|
return null;
|
|
270
266
|
}
|
|
271
267
|
function xn(e, r) {
|
|
272
|
-
var a =
|
|
268
|
+
var a = Cr(e, !0);
|
|
273
269
|
return a.filter(function(n) {
|
|
274
270
|
return r.has(n);
|
|
275
271
|
});
|
|
@@ -294,7 +290,7 @@ var Mn = function(r, a) {
|
|
|
294
290
|
element2key: o
|
|
295
291
|
};
|
|
296
292
|
};
|
|
297
|
-
function
|
|
293
|
+
function Ir(e, r, a, n, i, o, l, u, d, s) {
|
|
298
294
|
var g = t.useRef(), c = t.useRef();
|
|
299
295
|
c.current = r;
|
|
300
296
|
var f = function() {
|
|
@@ -307,11 +303,11 @@ function Er(e, r, a, n, i, o, l, u, d, s) {
|
|
|
307
303
|
}, []), function(b) {
|
|
308
304
|
var h = b.which;
|
|
309
305
|
if ([].concat(Yn, [Qe, ft, De, $e]).includes(h)) {
|
|
310
|
-
var
|
|
306
|
+
var E = o(), C = Mn(E, n), I = C, P = I.elements, v = I.key2element, m = I.element2key, y = v.get(r), p = Mr(y, P), R = m.get(p), _ = br(e, l(R, !0).length === 1, a, h);
|
|
311
307
|
if (!_ && h !== De && h !== $e)
|
|
312
308
|
return;
|
|
313
309
|
(Yn.includes(h) || [De, $e].includes(h)) && b.preventDefault();
|
|
314
|
-
var
|
|
310
|
+
var S = function(T) {
|
|
315
311
|
if (T) {
|
|
316
312
|
var q = T, V = T.querySelector("a");
|
|
317
313
|
V != null && V.getAttribute("href") && (q = V);
|
|
@@ -323,34 +319,34 @@ function Er(e, r, a, n, i, o, l, u, d, s) {
|
|
|
323
319
|
};
|
|
324
320
|
if ([De, $e].includes(h) || _.sibling || !p) {
|
|
325
321
|
var W;
|
|
326
|
-
!p || e === "inline" ? W = i.current : W =
|
|
322
|
+
!p || e === "inline" ? W = i.current : W = yr(p);
|
|
327
323
|
var O, K = xn(W, P);
|
|
328
|
-
h === De ? O = K[0] : h === $e ? O = K[K.length - 1] : O = Xn(W, P, p, _.offset),
|
|
324
|
+
h === De ? O = K[0] : h === $e ? O = K[K.length - 1] : O = Xn(W, P, p, _.offset), S(O);
|
|
329
325
|
} else if (_.inlineTrigger)
|
|
330
326
|
d(R);
|
|
331
327
|
else if (_.offset > 0)
|
|
332
328
|
d(R, !0), f(), g.current = xe(function() {
|
|
333
|
-
C = Mn(
|
|
329
|
+
C = Mn(E, n);
|
|
334
330
|
var Y = p.getAttribute("aria-controls"), T = document.getElementById(Y), q = Xn(T, C.elements);
|
|
335
|
-
|
|
331
|
+
S(q);
|
|
336
332
|
}, 5);
|
|
337
333
|
else if (_.offset < 0) {
|
|
338
334
|
var j = l(R, !0), B = j[j.length - 2], H = v.get(B);
|
|
339
|
-
d(B, !1),
|
|
335
|
+
d(B, !1), S(H);
|
|
340
336
|
}
|
|
341
337
|
}
|
|
342
338
|
s == null || s(b);
|
|
343
339
|
};
|
|
344
340
|
}
|
|
345
|
-
function
|
|
341
|
+
function Rr(e) {
|
|
346
342
|
Promise.resolve().then(e);
|
|
347
343
|
}
|
|
348
344
|
var wn = "__RC_UTIL_PATH_SPLIT__", Zn = function(r) {
|
|
349
345
|
return r.join(wn);
|
|
350
|
-
},
|
|
346
|
+
}, Er = function(r) {
|
|
351
347
|
return r.split(wn);
|
|
352
348
|
}, In = "rc-menu-more";
|
|
353
|
-
function
|
|
349
|
+
function Sr() {
|
|
354
350
|
var e = t.useState({}), r = $(e, 2), a = r[1], n = Xe(/* @__PURE__ */ new Map()), i = Xe(/* @__PURE__ */ new Map()), o = t.useState([]), l = $(o, 2), u = l[0], d = l[1], s = Xe(0), g = Xe(!1), c = function() {
|
|
355
351
|
g.current || a({});
|
|
356
352
|
}, f = Re(function(v, m) {
|
|
@@ -358,7 +354,7 @@ function Pr() {
|
|
|
358
354
|
var y = Zn(m);
|
|
359
355
|
i.current.set(y, v), n.current.set(v, y), s.current += 1;
|
|
360
356
|
var p = s.current;
|
|
361
|
-
|
|
357
|
+
Rr(function() {
|
|
362
358
|
p === s.current && c();
|
|
363
359
|
});
|
|
364
360
|
}, []), b = Re(function(v, m) {
|
|
@@ -366,17 +362,17 @@ function Pr() {
|
|
|
366
362
|
i.current.delete(y), n.current.delete(v);
|
|
367
363
|
}, []), h = Re(function(v) {
|
|
368
364
|
d(v);
|
|
369
|
-
}, []),
|
|
370
|
-
var y = n.current.get(v) || "", p =
|
|
365
|
+
}, []), E = Re(function(v, m) {
|
|
366
|
+
var y = n.current.get(v) || "", p = Er(y);
|
|
371
367
|
return m && u.includes(p[0]) && p.unshift(In), p;
|
|
372
368
|
}, [u]), C = Re(function(v, m) {
|
|
373
369
|
return v.filter(function(y) {
|
|
374
370
|
return y !== void 0;
|
|
375
371
|
}).some(function(y) {
|
|
376
|
-
var p =
|
|
372
|
+
var p = E(y, !0);
|
|
377
373
|
return p.includes(m);
|
|
378
374
|
});
|
|
379
|
-
}, [
|
|
375
|
+
}, [E]), I = function() {
|
|
380
376
|
var m = Me(n.current.keys());
|
|
381
377
|
return u.length && m.push(In), m;
|
|
382
378
|
}, P = Re(function(v) {
|
|
@@ -396,7 +392,7 @@ function Pr() {
|
|
|
396
392
|
refreshOverflowKeys: h,
|
|
397
393
|
// Util
|
|
398
394
|
isSubPathKey: C,
|
|
399
|
-
getKeyPath:
|
|
395
|
+
getKeyPath: E,
|
|
400
396
|
getKeys: I,
|
|
401
397
|
getSubPathKeys: P
|
|
402
398
|
};
|
|
@@ -411,14 +407,14 @@ function Le(e) {
|
|
|
411
407
|
}, []);
|
|
412
408
|
return e ? a : void 0;
|
|
413
409
|
}
|
|
414
|
-
var
|
|
415
|
-
function
|
|
410
|
+
var xr = Math.random().toFixed(5).toString().slice(2), Jn = 0;
|
|
411
|
+
function wr(e) {
|
|
416
412
|
var r = Ze(e, {
|
|
417
413
|
value: e
|
|
418
414
|
}), a = $(r, 2), n = a[0], i = a[1];
|
|
419
415
|
return t.useEffect(function() {
|
|
420
416
|
Jn += 1;
|
|
421
|
-
var o = process.env.NODE_ENV === "test" ? "test" : "".concat(
|
|
417
|
+
var o = process.env.NODE_ENV === "test" ? "test" : "".concat(xr, "-").concat(Jn);
|
|
422
418
|
i("rc-menu-uuid-".concat(o));
|
|
423
419
|
}, []), n;
|
|
424
420
|
}
|
|
@@ -453,25 +449,25 @@ function mt(e) {
|
|
|
453
449
|
var r = e.icon, a = e.props, n = e.children, i;
|
|
454
450
|
return r === null || r === !1 ? null : (typeof r == "function" ? i = /* @__PURE__ */ t.createElement(r, A({}, a)) : typeof r != "boolean" && (i = r), i || n || null);
|
|
455
451
|
}
|
|
456
|
-
var
|
|
452
|
+
var Pr = ["item"];
|
|
457
453
|
function en(e) {
|
|
458
|
-
var r = e.item, a = te(e,
|
|
454
|
+
var r = e.item, a = te(e, Pr);
|
|
459
455
|
return Object.defineProperty(a, "item", {
|
|
460
456
|
get: function() {
|
|
461
457
|
return we(!1, "`info.item` is deprecated since we will move to function component that not provides React Node instance in future."), r;
|
|
462
458
|
}
|
|
463
459
|
}), a;
|
|
464
460
|
}
|
|
465
|
-
var
|
|
466
|
-
|
|
467
|
-
var r =
|
|
461
|
+
var Nr = ["title", "attribute", "elementRef"], _r = ["style", "className", "eventKey", "warnKey", "disabled", "itemIcon", "children", "role", "onMouseEnter", "onMouseLeave", "onClick", "onKeyDown", "onFocus"], Kr = ["active"], Or = /* @__PURE__ */ function(e) {
|
|
462
|
+
Xt(a, e);
|
|
463
|
+
var r = Zt(a);
|
|
468
464
|
function a() {
|
|
469
|
-
return
|
|
465
|
+
return Jt(this, a), r.apply(this, arguments);
|
|
470
466
|
}
|
|
471
|
-
return
|
|
467
|
+
return Qt(a, [{
|
|
472
468
|
key: "render",
|
|
473
469
|
value: function() {
|
|
474
|
-
var i = this.props, o = i.title, l = i.attribute, u = i.elementRef, d = te(i,
|
|
470
|
+
var i = this.props, o = i.title, l = i.attribute, u = i.elementRef, d = te(i, Nr), s = En(d, ["eventKey", "popupClassName", "popupOffset", "onTitleClick"]);
|
|
475
471
|
return we(!l, "`attribute` of Menu.Item is deprecated. Please pass attribute directly."), /* @__PURE__ */ t.createElement(Te.Item, L({}, l, {
|
|
476
472
|
title: typeof o == "string" ? o : void 0
|
|
477
473
|
}, s, {
|
|
@@ -479,8 +475,8 @@ var Or = ["title", "attribute", "elementRef"], kr = ["style", "className", "even
|
|
|
479
475
|
}));
|
|
480
476
|
}
|
|
481
477
|
}]), a;
|
|
482
|
-
}(t.Component),
|
|
483
|
-
var a = e.style, n = e.className, i = e.eventKey, o = e.warnKey, l = e.disabled, u = e.itemIcon, d = e.children, s = e.role, g = e.onMouseEnter, c = e.onMouseLeave, f = e.onClick, b = e.onKeyDown, h = e.onFocus,
|
|
478
|
+
}(t.Component), kr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
479
|
+
var a = e.style, n = e.className, i = e.eventKey, o = e.warnKey, l = e.disabled, u = e.itemIcon, d = e.children, s = e.role, g = e.onMouseEnter, c = e.onMouseLeave, f = e.onClick, b = e.onKeyDown, h = e.onFocus, E = te(e, _r), C = lt(i), I = t.useContext(ae), P = I.prefixCls, v = I.onItemClick, m = I.disabled, y = I.overflowDisabled, p = I.itemIcon, R = I.selectedKeys, _ = I.onActive, S = t.useContext(Sn), W = S._internalRenderMenuItem, O = "".concat(P, "-item"), K = t.useRef(), j = t.useRef(), B = m || l, H = Yt(r, j), Y = Fe(i);
|
|
484
480
|
process.env.NODE_ENV !== "production" && o && we(!1, "MenuItem should not leave undefined `key`.");
|
|
485
481
|
var T = function(G) {
|
|
486
482
|
return {
|
|
@@ -490,7 +486,7 @@ var Or = ["title", "attribute", "elementRef"], kr = ["style", "className", "even
|
|
|
490
486
|
item: K.current,
|
|
491
487
|
domEvent: G
|
|
492
488
|
};
|
|
493
|
-
}, q = u || p, V = dt(i, B, g, c), Q = V.active, oe = te(V,
|
|
489
|
+
}, q = u || p, V = dt(i, B, g, c), Q = V.active, oe = te(V, Kr), le = R.includes(i), se = vt(Y.length), ce = function(G) {
|
|
494
490
|
if (!B) {
|
|
495
491
|
var ue = T(G);
|
|
496
492
|
f == null || f(en(ue)), v(ue);
|
|
@@ -504,13 +500,13 @@ var Or = ["title", "attribute", "elementRef"], kr = ["style", "className", "even
|
|
|
504
500
|
_(i), h == null || h(G);
|
|
505
501
|
}, ee = {};
|
|
506
502
|
e.role === "option" && (ee["aria-selected"] = le);
|
|
507
|
-
var D = /* @__PURE__ */ t.createElement(
|
|
503
|
+
var D = /* @__PURE__ */ t.createElement(Or, L({
|
|
508
504
|
ref: K,
|
|
509
505
|
elementRef: H,
|
|
510
506
|
role: s === null ? "none" : s || "menuitem",
|
|
511
507
|
tabIndex: l ? null : -1,
|
|
512
508
|
"data-menu-id": y && C ? null : C
|
|
513
|
-
},
|
|
509
|
+
}, En(E, ["extra"]), oe, ee, {
|
|
514
510
|
component: "li",
|
|
515
511
|
"aria-disabled": l,
|
|
516
512
|
style: A(A({}, se), a),
|
|
@@ -528,20 +524,20 @@ var Or = ["title", "attribute", "elementRef"], kr = ["style", "className", "even
|
|
|
528
524
|
selected: le
|
|
529
525
|
})), D;
|
|
530
526
|
});
|
|
531
|
-
function
|
|
527
|
+
function Ar(e, r) {
|
|
532
528
|
var a = e.eventKey, n = nn(), i = Fe(a);
|
|
533
529
|
return t.useEffect(function() {
|
|
534
530
|
if (n)
|
|
535
531
|
return n.registerPath(a, i), function() {
|
|
536
532
|
n.unregisterPath(a, i);
|
|
537
533
|
};
|
|
538
|
-
}, [i]), n ? null : /* @__PURE__ */ t.createElement(
|
|
534
|
+
}, [i]), n ? null : /* @__PURE__ */ t.createElement(kr, L({}, e, {
|
|
539
535
|
ref: r
|
|
540
536
|
}));
|
|
541
537
|
}
|
|
542
|
-
const Pn = /* @__PURE__ */ t.forwardRef(
|
|
543
|
-
var
|
|
544
|
-
var n = r.className, i = r.children, o = te(r,
|
|
538
|
+
const Pn = /* @__PURE__ */ t.forwardRef(Ar);
|
|
539
|
+
var Dr = ["className", "children"], $r = function(r, a) {
|
|
540
|
+
var n = r.className, i = r.children, o = te(r, Dr), l = t.useContext(ae), u = l.prefixCls, d = l.mode, s = l.rtl;
|
|
545
541
|
return /* @__PURE__ */ t.createElement("ul", L({
|
|
546
542
|
className: de(u, s && "".concat(u, "-rtl"), "".concat(u, "-sub"), "".concat(u, "-").concat(d === "inline" ? "inline" : "vertical"), n),
|
|
547
543
|
role: "menu"
|
|
@@ -549,10 +545,10 @@ var Tr = ["className", "children"], Vr = function(r, a) {
|
|
|
549
545
|
"data-menu-list": !0,
|
|
550
546
|
ref: a
|
|
551
547
|
}), i);
|
|
552
|
-
}, Nn = /* @__PURE__ */ t.forwardRef(
|
|
548
|
+
}, Nn = /* @__PURE__ */ t.forwardRef($r);
|
|
553
549
|
Nn.displayName = "SubMenuList";
|
|
554
550
|
function _n(e, r) {
|
|
555
|
-
return
|
|
551
|
+
return or(e).map(function(a, n) {
|
|
556
552
|
if (/* @__PURE__ */ t.isValidElement(a)) {
|
|
557
553
|
var i, o, l = a.key, u = (i = (o = a.props) === null || o === void 0 ? void 0 : o.eventKey) !== null && i !== void 0 ? i : l, d = u == null;
|
|
558
554
|
d && (u = "tmp_key-".concat([].concat(Me(r), [n]).join("-")));
|
|
@@ -568,7 +564,7 @@ function _n(e, r) {
|
|
|
568
564
|
var U = {
|
|
569
565
|
adjustX: 1,
|
|
570
566
|
adjustY: 1
|
|
571
|
-
},
|
|
567
|
+
}, Lr = {
|
|
572
568
|
topLeft: {
|
|
573
569
|
points: ["bl", "tl"],
|
|
574
570
|
overflow: U
|
|
@@ -601,7 +597,7 @@ var U = {
|
|
|
601
597
|
points: ["bl", "br"],
|
|
602
598
|
overflow: U
|
|
603
599
|
}
|
|
604
|
-
},
|
|
600
|
+
}, Tr = {
|
|
605
601
|
topLeft: {
|
|
606
602
|
points: ["bl", "tl"],
|
|
607
603
|
overflow: U
|
|
@@ -641,14 +637,14 @@ function pt(e, r, a) {
|
|
|
641
637
|
if (a)
|
|
642
638
|
return a[e] || a.other;
|
|
643
639
|
}
|
|
644
|
-
var
|
|
640
|
+
var Vr = {
|
|
645
641
|
horizontal: "bottomLeft",
|
|
646
642
|
vertical: "rightTop",
|
|
647
643
|
"vertical-left": "rightTop",
|
|
648
644
|
"vertical-right": "leftTop"
|
|
649
645
|
};
|
|
650
|
-
function
|
|
651
|
-
var r = e.prefixCls, a = e.visible, n = e.children, i = e.popup, o = e.popupStyle, l = e.popupClassName, u = e.popupOffset, d = e.disabled, s = e.mode, g = e.onVisibleChange, c = t.useContext(ae), f = c.getPopupContainer, b = c.rtl, h = c.subMenuOpenDelay,
|
|
646
|
+
function Fr(e) {
|
|
647
|
+
var r = e.prefixCls, a = e.visible, n = e.children, i = e.popup, o = e.popupStyle, l = e.popupClassName, u = e.popupOffset, d = e.disabled, s = e.mode, g = e.onVisibleChange, c = t.useContext(ae), f = c.getPopupContainer, b = c.rtl, h = c.subMenuOpenDelay, E = c.subMenuCloseDelay, C = c.builtinPlacements, I = c.triggerSubMenuAction, P = c.forceSubMenuRender, v = c.rootClassName, m = c.motion, y = c.defaultMotions, p = t.useState(!1), R = $(p, 2), _ = R[0], S = R[1], W = b ? A(A({}, Tr), C) : A(A({}, Lr), C), O = Vr[s], K = pt(s, m, y), j = t.useRef(K);
|
|
652
648
|
s !== "inline" && (j.current = K);
|
|
653
649
|
var B = A(A({}, j.current), {}, {
|
|
654
650
|
leavedClassName: "".concat(r, "-hidden"),
|
|
@@ -657,7 +653,7 @@ function Wr(e) {
|
|
|
657
653
|
}), H = t.useRef();
|
|
658
654
|
return t.useEffect(function() {
|
|
659
655
|
return H.current = xe(function() {
|
|
660
|
-
|
|
656
|
+
S(a);
|
|
661
657
|
}), function() {
|
|
662
658
|
xe.cancel(H.current);
|
|
663
659
|
};
|
|
@@ -676,17 +672,17 @@ function Wr(e) {
|
|
|
676
672
|
},
|
|
677
673
|
action: d ? [] : [I],
|
|
678
674
|
mouseEnterDelay: h,
|
|
679
|
-
mouseLeaveDelay:
|
|
675
|
+
mouseLeaveDelay: E,
|
|
680
676
|
onPopupVisibleChange: g,
|
|
681
677
|
forceRender: P,
|
|
682
678
|
popupMotion: B,
|
|
683
679
|
fresh: !0
|
|
684
680
|
}, n);
|
|
685
681
|
}
|
|
686
|
-
function
|
|
682
|
+
function zr(e) {
|
|
687
683
|
var r = e.id, a = e.open, n = e.keyPath, i = e.children, o = "inline", l = t.useContext(ae), u = l.prefixCls, d = l.forceSubMenuRender, s = l.motion, g = l.defaultMotions, c = l.mode, f = t.useRef(!1);
|
|
688
684
|
f.current = c === o;
|
|
689
|
-
var b = t.useState(!f.current), h = $(b, 2),
|
|
685
|
+
var b = t.useState(!f.current), h = $(b, 2), E = h[0], C = h[1], I = f.current ? a : !1;
|
|
690
686
|
t.useEffect(function() {
|
|
691
687
|
f.current && C(!1);
|
|
692
688
|
}, [c]);
|
|
@@ -695,10 +691,10 @@ function jr(e) {
|
|
|
695
691
|
var v = P.onVisibleChanged;
|
|
696
692
|
return P.onVisibleChanged = function(m) {
|
|
697
693
|
return !f.current && !m && C(!0), v == null ? void 0 : v(m);
|
|
698
|
-
},
|
|
694
|
+
}, E ? null : /* @__PURE__ */ t.createElement(Ve, {
|
|
699
695
|
mode: o,
|
|
700
696
|
locked: !f.current
|
|
701
|
-
}, /* @__PURE__ */ t.createElement(
|
|
697
|
+
}, /* @__PURE__ */ t.createElement(er, L({
|
|
702
698
|
visible: I
|
|
703
699
|
}, P, {
|
|
704
700
|
forceRender: d,
|
|
@@ -713,10 +709,10 @@ function jr(e) {
|
|
|
713
709
|
}, i);
|
|
714
710
|
}));
|
|
715
711
|
}
|
|
716
|
-
var
|
|
717
|
-
var a = e.style, n = e.className, i = e.title, o = e.eventKey, l = e.warnKey, u = e.disabled, d = e.internalPopupClose, s = e.children, g = e.itemIcon, c = e.expandIcon, f = e.popupClassName, b = e.popupOffset, h = e.popupStyle,
|
|
712
|
+
var Ur = ["style", "className", "title", "eventKey", "warnKey", "disabled", "internalPopupClose", "children", "itemIcon", "expandIcon", "popupClassName", "popupOffset", "popupStyle", "onClick", "onMouseEnter", "onMouseLeave", "onTitleClick", "onTitleMouseEnter", "onTitleMouseLeave"], Wr = ["active"], jr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
713
|
+
var a = e.style, n = e.className, i = e.title, o = e.eventKey, l = e.warnKey, u = e.disabled, d = e.internalPopupClose, s = e.children, g = e.itemIcon, c = e.expandIcon, f = e.popupClassName, b = e.popupOffset, h = e.popupStyle, E = e.onClick, C = e.onMouseEnter, I = e.onMouseLeave, P = e.onTitleClick, v = e.onTitleMouseEnter, m = e.onTitleMouseLeave, y = te(e, Ur), p = lt(o), R = t.useContext(ae), _ = R.prefixCls, S = R.mode, W = R.openKeys, O = R.disabled, K = R.overflowDisabled, j = R.activeKey, B = R.selectedKeys, H = R.itemIcon, Y = R.expandIcon, T = R.onItemClick, q = R.onOpenChange, V = R.onActive, Q = t.useContext(Sn), oe = Q._internalRenderSubMenuItem, le = t.useContext(ct), se = le.isSubPathKey, ce = Fe(), F = "".concat(_, "-submenu"), z = O || u, ee = t.useRef(), D = t.useRef();
|
|
718
714
|
process.env.NODE_ENV !== "production" && l && we(!1, "SubMenu should not leave undefined `key`.");
|
|
719
|
-
var ne = g ?? H, G = c ?? Y, ue = W.includes(o), ve = !K && ue, ze = se(B, o), Ie = dt(o, z, v, m), ge = Ie.active, an = te(Ie,
|
|
715
|
+
var ne = g ?? H, G = c ?? Y, ue = W.includes(o), ve = !K && ue, ze = se(B, o), Ie = dt(o, z, v, m), ge = Ie.active, an = te(Ie, Wr), on = t.useState(!1), Ue = $(on, 2), Pe = Ue[0], We = Ue[1], Ne = function(k) {
|
|
720
716
|
z || We(k);
|
|
721
717
|
}, ln = function(k) {
|
|
722
718
|
Ne(!0), C == null || C({
|
|
@@ -729,16 +725,16 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
729
725
|
domEvent: k
|
|
730
726
|
});
|
|
731
727
|
}, _e = t.useMemo(function() {
|
|
732
|
-
return ge || (
|
|
733
|
-
}, [
|
|
728
|
+
return ge || (S !== "inline" ? Pe || se([j], o) : !1);
|
|
729
|
+
}, [S, ge, j, Pe, o, se]), fe = vt(ce.length), sn = function(k) {
|
|
734
730
|
z || (P == null || P({
|
|
735
731
|
key: o,
|
|
736
732
|
domEvent: k
|
|
737
|
-
}),
|
|
733
|
+
}), S === "inline" && q(o, !ue));
|
|
738
734
|
}, cn = Le(function(re) {
|
|
739
|
-
|
|
735
|
+
E == null || E(en(re)), T(re);
|
|
740
736
|
}), je = function(k) {
|
|
741
|
-
|
|
737
|
+
S !== "inline" && q(o, k);
|
|
742
738
|
}, Be = function() {
|
|
743
739
|
V(o);
|
|
744
740
|
}, Ke = p && "".concat(p, "-popup"), me = /* @__PURE__ */ t.createElement("div", L({
|
|
@@ -756,7 +752,7 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
756
752
|
onClick: sn,
|
|
757
753
|
onFocus: Be
|
|
758
754
|
}, an), i, /* @__PURE__ */ t.createElement(mt, {
|
|
759
|
-
icon:
|
|
755
|
+
icon: S !== "horizontal" ? G : void 0,
|
|
760
756
|
props: A(A({}, e), {}, {
|
|
761
757
|
isOpen: ve,
|
|
762
758
|
// [Legacy] Not sure why need this mark
|
|
@@ -764,13 +760,13 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
764
760
|
})
|
|
765
761
|
}, /* @__PURE__ */ t.createElement("i", {
|
|
766
762
|
className: "".concat(F, "-arrow")
|
|
767
|
-
}))), he = t.useRef(
|
|
768
|
-
if (
|
|
763
|
+
}))), he = t.useRef(S);
|
|
764
|
+
if (S !== "inline" && ce.length > 1 ? he.current = "vertical" : he.current = S, !K) {
|
|
769
765
|
var Ce = he.current;
|
|
770
|
-
me = /* @__PURE__ */ t.createElement(
|
|
766
|
+
me = /* @__PURE__ */ t.createElement(Fr, {
|
|
771
767
|
mode: Ce,
|
|
772
768
|
prefixCls: F,
|
|
773
|
-
visible: !d && ve &&
|
|
769
|
+
visible: !d && ve && S !== "inline",
|
|
774
770
|
popupClassName: f,
|
|
775
771
|
popupOffset: b,
|
|
776
772
|
popupStyle: h,
|
|
@@ -794,10 +790,10 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
794
790
|
}, y, {
|
|
795
791
|
component: "li",
|
|
796
792
|
style: a,
|
|
797
|
-
className: de(F, "".concat(F, "-").concat(
|
|
793
|
+
className: de(F, "".concat(F, "-").concat(S), n, w(w(w(w({}, "".concat(F, "-open"), ve), "".concat(F, "-active"), _e), "".concat(F, "-selected"), ze), "".concat(F, "-disabled"), z)),
|
|
798
794
|
onMouseEnter: ln,
|
|
799
795
|
onMouseLeave: un
|
|
800
|
-
}), me, !K && /* @__PURE__ */ t.createElement(
|
|
796
|
+
}), me, !K && /* @__PURE__ */ t.createElement(zr, {
|
|
801
797
|
id: Ke,
|
|
802
798
|
open: ve,
|
|
803
799
|
keyPath: ce
|
|
@@ -809,7 +805,7 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
809
805
|
disabled: z
|
|
810
806
|
})), /* @__PURE__ */ t.createElement(Ve, {
|
|
811
807
|
onItemClick: cn,
|
|
812
|
-
mode:
|
|
808
|
+
mode: S === "horizontal" ? "vertical" : S,
|
|
813
809
|
itemIcon: ne,
|
|
814
810
|
expandIcon: G
|
|
815
811
|
}, Oe);
|
|
@@ -822,7 +818,7 @@ var Br = ["style", "className", "title", "eventKey", "warnKey", "disabled", "int
|
|
|
822
818
|
};
|
|
823
819
|
}, [i]);
|
|
824
820
|
var u;
|
|
825
|
-
return l ? u = o : u = /* @__PURE__ */ t.createElement(
|
|
821
|
+
return l ? u = o : u = /* @__PURE__ */ t.createElement(jr, L({
|
|
826
822
|
ref: r
|
|
827
823
|
}, e), o), /* @__PURE__ */ t.createElement(st.Provider, {
|
|
828
824
|
value: i
|
|
@@ -837,10 +833,10 @@ function gt(e) {
|
|
|
837
833
|
style: a
|
|
838
834
|
});
|
|
839
835
|
}
|
|
840
|
-
var
|
|
836
|
+
var Br = ["className", "title", "eventKey", "children"], Hr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
841
837
|
var a = e.className, n = e.title;
|
|
842
838
|
e.eventKey;
|
|
843
|
-
var i = e.children, o = te(e,
|
|
839
|
+
var i = e.children, o = te(e, Br), l = t.useContext(ae), u = l.prefixCls, d = "".concat(u, "-item-group");
|
|
844
840
|
return /* @__PURE__ */ t.createElement("li", L({
|
|
845
841
|
ref: r,
|
|
846
842
|
role: "presentation"
|
|
@@ -859,30 +855,30 @@ var qr = ["className", "title", "eventKey", "children"], Yr = /* @__PURE__ */ t.
|
|
|
859
855
|
}, i));
|
|
860
856
|
}), Kn = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
861
857
|
var a = e.eventKey, n = e.children, i = Fe(a), o = _n(n, i), l = nn();
|
|
862
|
-
return l ? o : /* @__PURE__ */ t.createElement(
|
|
858
|
+
return l ? o : /* @__PURE__ */ t.createElement(Hr, L({
|
|
863
859
|
ref: r
|
|
864
|
-
},
|
|
860
|
+
}, En(e, ["warnKey"])), o);
|
|
865
861
|
});
|
|
866
862
|
process.env.NODE_ENV !== "production" && (Kn.displayName = "MenuItemGroup");
|
|
867
|
-
var
|
|
863
|
+
var Gr = ["label", "children", "key", "type", "extra"];
|
|
868
864
|
function Rn(e, r, a) {
|
|
869
865
|
var n = r.item, i = r.group, o = r.submenu, l = r.divider;
|
|
870
866
|
return (e || []).map(function(u, d) {
|
|
871
867
|
if (u && Gt(u) === "object") {
|
|
872
|
-
var s = u, g = s.label, c = s.children, f = s.key, b = s.type, h = s.extra,
|
|
868
|
+
var s = u, g = s.label, c = s.children, f = s.key, b = s.type, h = s.extra, E = te(s, Gr), C = f ?? "tmp-".concat(d);
|
|
873
869
|
return c || b === "group" ? b === "group" ? /* @__PURE__ */ t.createElement(i, L({
|
|
874
870
|
key: C
|
|
875
|
-
},
|
|
871
|
+
}, E, {
|
|
876
872
|
title: g
|
|
877
873
|
}), Rn(c, r, a)) : /* @__PURE__ */ t.createElement(o, L({
|
|
878
874
|
key: C
|
|
879
|
-
},
|
|
875
|
+
}, E, {
|
|
880
876
|
title: g
|
|
881
877
|
}), Rn(c, r, a)) : b === "divider" ? /* @__PURE__ */ t.createElement(l, L({
|
|
882
878
|
key: C
|
|
883
|
-
},
|
|
879
|
+
}, E)) : /* @__PURE__ */ t.createElement(n, L({
|
|
884
880
|
key: C
|
|
885
|
-
},
|
|
881
|
+
}, E, {
|
|
886
882
|
extra: h
|
|
887
883
|
}), g, (!!h || h === 0) && /* @__PURE__ */ t.createElement("span", {
|
|
888
884
|
className: "".concat(a, "-item-extra")
|
|
@@ -902,12 +898,12 @@ function Qn(e, r, a, n, i) {
|
|
|
902
898
|
}, n);
|
|
903
899
|
return r && (o = Rn(r, l, i)), _n(o, a);
|
|
904
900
|
}
|
|
905
|
-
var
|
|
906
|
-
var a, n = e, i = n.prefixCls, o = i === void 0 ? "rc-menu" : i, l = n.rootClassName, u = n.style, d = n.className, s = n.tabIndex, g = s === void 0 ? 0 : s, c = n.items, f = n.children, b = n.direction, h = n.id,
|
|
901
|
+
var qr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items", "children", "direction", "id", "mode", "inlineCollapsed", "disabled", "disabledOverflow", "subMenuOpenDelay", "subMenuCloseDelay", "forceSubMenuRender", "defaultOpenKeys", "openKeys", "activeKey", "defaultActiveFirst", "selectable", "multiple", "defaultSelectedKeys", "selectedKeys", "onSelect", "onDeselect", "inlineIndent", "motion", "defaultMotions", "triggerSubMenuAction", "builtinPlacements", "itemIcon", "expandIcon", "overflowedIndicator", "overflowedIndicatorPopupClassName", "getPopupContainer", "onClick", "onOpenChange", "onKeyDown", "openAnimation", "openTransitionName", "_internalRenderMenuItem", "_internalRenderSubMenuItem", "_internalComponents"], ye = [], Yr = /* @__PURE__ */ t.forwardRef(function(e, r) {
|
|
902
|
+
var a, n = e, i = n.prefixCls, o = i === void 0 ? "rc-menu" : i, l = n.rootClassName, u = n.style, d = n.className, s = n.tabIndex, g = s === void 0 ? 0 : s, c = n.items, f = n.children, b = n.direction, h = n.id, E = n.mode, C = E === void 0 ? "vertical" : E, I = n.inlineCollapsed, P = n.disabled, v = n.disabledOverflow, m = n.subMenuOpenDelay, y = m === void 0 ? 0.1 : m, p = n.subMenuCloseDelay, R = p === void 0 ? 0.1 : p, _ = n.forceSubMenuRender, S = n.defaultOpenKeys, W = n.openKeys, O = n.activeKey, K = n.defaultActiveFirst, j = n.selectable, B = j === void 0 ? !0 : j, H = n.multiple, Y = H === void 0 ? !1 : H, T = n.defaultSelectedKeys, q = n.selectedKeys, V = n.onSelect, Q = n.onDeselect, oe = n.inlineIndent, le = oe === void 0 ? 24 : oe, se = n.motion, ce = n.defaultMotions, F = n.triggerSubMenuAction, z = F === void 0 ? "hover" : F, ee = n.builtinPlacements, D = n.itemIcon, ne = n.expandIcon, G = n.overflowedIndicator, ue = G === void 0 ? "..." : G, ve = n.overflowedIndicatorPopupClassName, ze = n.getPopupContainer, Ie = n.onClick, ge = n.onOpenChange, an = n.onKeyDown, on = n.openAnimation, Ue = n.openTransitionName, Pe = n._internalRenderMenuItem, We = n._internalRenderSubMenuItem, Ne = n._internalComponents, ln = te(n, qr), un = t.useMemo(function() {
|
|
907
903
|
return [Qn(f, c, ye, Ne, o), Qn(f, c, ye, {}, o)];
|
|
908
|
-
}, [f, c, Ne]), _e = $(un, 2), fe = _e[0], sn = _e[1], cn = t.useState(!1), je = $(cn, 2), Be = je[0], Ke = je[1], me = t.useRef(), he =
|
|
904
|
+
}, [f, c, Ne]), _e = $(un, 2), fe = _e[0], sn = _e[1], cn = t.useState(!1), je = $(cn, 2), Be = je[0], Ke = je[1], me = t.useRef(), he = wr(h), Ce = b === "rtl";
|
|
909
905
|
process.env.NODE_ENV !== "production" && we(!on && !Ue, "`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");
|
|
910
|
-
var Oe = Ze(
|
|
906
|
+
var Oe = Ze(S, {
|
|
911
907
|
value: W,
|
|
912
908
|
postState: function(M) {
|
|
913
909
|
return M || ye;
|
|
@@ -917,12 +913,12 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
917
913
|
function X() {
|
|
918
914
|
On(M), ge == null || ge(M);
|
|
919
915
|
}
|
|
920
|
-
x ?
|
|
916
|
+
x ? nr.flushSync(X) : X();
|
|
921
917
|
}, ht = t.useState(k), kn = $(ht, 2), Ct = kn[0], bt = kn[1], dn = t.useRef(!1), yt = t.useMemo(function() {
|
|
922
918
|
return (C === "inline" || C === "vertical") && I ? ["vertical", I] : [C, !1];
|
|
923
|
-
}, [C, I]), An = $(yt, 2), He = An[0], vn = An[1], Dn = He === "inline", Mt = t.useState(He), $n = $(Mt, 2), pe = $n[0], It = $n[1], Rt = t.useState(vn), Ln = $(Rt, 2),
|
|
919
|
+
}, [C, I]), An = $(yt, 2), He = An[0], vn = An[1], Dn = He === "inline", Mt = t.useState(He), $n = $(Mt, 2), pe = $n[0], It = $n[1], Rt = t.useState(vn), Ln = $(Rt, 2), Et = Ln[0], St = Ln[1];
|
|
924
920
|
t.useEffect(function() {
|
|
925
|
-
It(He),
|
|
921
|
+
It(He), St(vn), dn.current && (Dn ? On(Ct) : fn(ye));
|
|
926
922
|
}, [He, vn]);
|
|
927
923
|
var xt = t.useState(0), Tn = $(xt, 2), Ge = Tn[0], wt = Tn[1], mn = Ge >= fe.length - 1 || pe !== "horizontal" || v;
|
|
928
924
|
t.useEffect(function() {
|
|
@@ -932,7 +928,7 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
932
928
|
dn.current = !1;
|
|
933
929
|
};
|
|
934
930
|
}, []);
|
|
935
|
-
var be =
|
|
931
|
+
var be = Sr(), Vn = be.registerPath, Fn = be.unregisterPath, Pt = be.refreshOverflowKeys, zn = be.isSubPathKey, Nt = be.getKeyPath, Un = be.getKeys, _t = be.getSubPathKeys, Kt = t.useMemo(function() {
|
|
936
932
|
return {
|
|
937
933
|
registerPath: Vn,
|
|
938
934
|
unregisterPath: Fn
|
|
@@ -954,7 +950,7 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
954
950
|
}), Dt = Le(function() {
|
|
955
951
|
pn(void 0);
|
|
956
952
|
});
|
|
957
|
-
|
|
953
|
+
ar(r, function() {
|
|
958
954
|
return {
|
|
959
955
|
list: me.current,
|
|
960
956
|
focus: function(M) {
|
|
@@ -1004,7 +1000,7 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
1004
1000
|
}), Ft = function(M, x) {
|
|
1005
1001
|
var X = x ?? !k.includes(M);
|
|
1006
1002
|
Bn(M, X);
|
|
1007
|
-
}, zt =
|
|
1003
|
+
}, zt = Ir(pe, ke, Ce, he, me, Un, Nt, pn, Ft, an);
|
|
1008
1004
|
t.useEffect(function() {
|
|
1009
1005
|
Ke(!0);
|
|
1010
1006
|
}, []);
|
|
@@ -1030,7 +1026,7 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
1030
1026
|
prefixCls: "".concat(o, "-overflow"),
|
|
1031
1027
|
component: "ul",
|
|
1032
1028
|
itemComponent: Pn,
|
|
1033
|
-
className: de(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), d, w(w({}, "".concat(o, "-inline-collapsed"),
|
|
1029
|
+
className: de(o, "".concat(o, "-root"), "".concat(o, "-").concat(pe), d, w(w({}, "".concat(o, "-inline-collapsed"), Et), "".concat(o, "-rtl"), Ce), l),
|
|
1034
1030
|
dir: b,
|
|
1035
1031
|
style: u,
|
|
1036
1032
|
role: "menu",
|
|
@@ -1057,7 +1053,7 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
1057
1053
|
},
|
|
1058
1054
|
onKeyDown: zt
|
|
1059
1055
|
}, ln));
|
|
1060
|
-
return /* @__PURE__ */ t.createElement(
|
|
1056
|
+
return /* @__PURE__ */ t.createElement(Sn.Provider, {
|
|
1061
1057
|
value: Ut
|
|
1062
1058
|
}, /* @__PURE__ */ t.createElement(it.Provider, {
|
|
1063
1059
|
value: he
|
|
@@ -1095,18 +1091,25 @@ var Zr = ["prefixCls", "rootClassName", "style", "className", "tabIndex", "items
|
|
|
1095
1091
|
}, /* @__PURE__ */ t.createElement(ut.Provider, {
|
|
1096
1092
|
value: Kt
|
|
1097
1093
|
}, sn)))));
|
|
1098
|
-
}), rn =
|
|
1094
|
+
}), rn = Yr;
|
|
1099
1095
|
rn.Item = Pn;
|
|
1100
1096
|
rn.SubMenu = tn;
|
|
1101
1097
|
rn.ItemGroup = Kn;
|
|
1102
1098
|
rn.Divider = gt;
|
|
1099
|
+
var Xr = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z" } }] }, name: "ellipsis", theme: "outlined" }, Zr = function(r, a) {
|
|
1100
|
+
return /* @__PURE__ */ t.createElement(lr, L({}, r, {
|
|
1101
|
+
ref: a,
|
|
1102
|
+
icon: Xr
|
|
1103
|
+
}));
|
|
1104
|
+
}, Jr = /* @__PURE__ */ t.forwardRef(Zr);
|
|
1105
|
+
process.env.NODE_ENV !== "production" && (Jr.displayName = "EllipsisOutlined");
|
|
1103
1106
|
export {
|
|
1104
|
-
|
|
1107
|
+
ca as D,
|
|
1105
1108
|
rn as E,
|
|
1106
1109
|
Pn as M,
|
|
1107
|
-
|
|
1110
|
+
Jr as R,
|
|
1108
1111
|
tn as S,
|
|
1109
|
-
|
|
1110
|
-
|
|
1112
|
+
gt as a,
|
|
1113
|
+
Kn as b,
|
|
1111
1114
|
Fe as u
|
|
1112
1115
|
};
|