@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
package/dist/index-DPW8XdWj.js
DELETED
|
@@ -1,952 +0,0 @@
|
|
|
1
|
-
import * as f from "react";
|
|
2
|
-
import { forwardRef as De, useRef as ke, useImperativeHandle as Be } from "react";
|
|
3
|
-
import { c as T, e as Me, _ as L, a as He } from "./warning-C63HNL9U.js";
|
|
4
|
-
import { K as O, i as Xe, T as We, u as Ye, g as Ze, z as Ke } from "./index-CfDY25LP.js";
|
|
5
|
-
import { u as qe } from "./isVisible-A-IfeFoT.js";
|
|
6
|
-
import { C as Fe } from "./ContextIsolator-D5x2Ih51.js";
|
|
7
|
-
import { q as D, g as Ue, m as de, o as Ge, x as ce, C as pe, E as Je, v as Qe } from "./index-oK7z6jnz.js";
|
|
8
|
-
import { i as et, c as tt } from "./reactNode-sKPeiqPL.js";
|
|
9
|
-
import { P as Z } from "./presetColors-Cl8UP3Nw.js";
|
|
10
|
-
function ot(t, o) {
|
|
11
|
-
return Z.reduce((r, e) => {
|
|
12
|
-
const n = t[`${e}1`], s = t[`${e}3`], a = t[`${e}6`], i = t[`${e}7`];
|
|
13
|
-
return Object.assign(Object.assign({}, r), o(e, {
|
|
14
|
-
lightColor: n,
|
|
15
|
-
lightBorderColor: s,
|
|
16
|
-
darkColor: a,
|
|
17
|
-
textColor: i
|
|
18
|
-
}));
|
|
19
|
-
}, {});
|
|
20
|
-
}
|
|
21
|
-
const nt = new O("antZoomIn", {
|
|
22
|
-
"0%": {
|
|
23
|
-
transform: "scale(0.2)",
|
|
24
|
-
opacity: 0
|
|
25
|
-
},
|
|
26
|
-
"100%": {
|
|
27
|
-
transform: "scale(1)",
|
|
28
|
-
opacity: 1
|
|
29
|
-
}
|
|
30
|
-
}), rt = new O("antZoomOut", {
|
|
31
|
-
"0%": {
|
|
32
|
-
transform: "scale(1)"
|
|
33
|
-
},
|
|
34
|
-
"100%": {
|
|
35
|
-
transform: "scale(0.2)",
|
|
36
|
-
opacity: 0
|
|
37
|
-
}
|
|
38
|
-
}), fe = new O("antZoomBigIn", {
|
|
39
|
-
"0%": {
|
|
40
|
-
transform: "scale(0.8)",
|
|
41
|
-
opacity: 0
|
|
42
|
-
},
|
|
43
|
-
"100%": {
|
|
44
|
-
transform: "scale(1)",
|
|
45
|
-
opacity: 1
|
|
46
|
-
}
|
|
47
|
-
}), me = new O("antZoomBigOut", {
|
|
48
|
-
"0%": {
|
|
49
|
-
transform: "scale(1)"
|
|
50
|
-
},
|
|
51
|
-
"100%": {
|
|
52
|
-
transform: "scale(0.8)",
|
|
53
|
-
opacity: 0
|
|
54
|
-
}
|
|
55
|
-
}), at = new O("antZoomUpIn", {
|
|
56
|
-
"0%": {
|
|
57
|
-
transform: "scale(0.8)",
|
|
58
|
-
transformOrigin: "50% 0%",
|
|
59
|
-
opacity: 0
|
|
60
|
-
},
|
|
61
|
-
"100%": {
|
|
62
|
-
transform: "scale(1)",
|
|
63
|
-
transformOrigin: "50% 0%"
|
|
64
|
-
}
|
|
65
|
-
}), st = new O("antZoomUpOut", {
|
|
66
|
-
"0%": {
|
|
67
|
-
transform: "scale(1)",
|
|
68
|
-
transformOrigin: "50% 0%"
|
|
69
|
-
},
|
|
70
|
-
"100%": {
|
|
71
|
-
transform: "scale(0.8)",
|
|
72
|
-
transformOrigin: "50% 0%",
|
|
73
|
-
opacity: 0
|
|
74
|
-
}
|
|
75
|
-
}), it = new O("antZoomLeftIn", {
|
|
76
|
-
"0%": {
|
|
77
|
-
transform: "scale(0.8)",
|
|
78
|
-
transformOrigin: "0% 50%",
|
|
79
|
-
opacity: 0
|
|
80
|
-
},
|
|
81
|
-
"100%": {
|
|
82
|
-
transform: "scale(1)",
|
|
83
|
-
transformOrigin: "0% 50%"
|
|
84
|
-
}
|
|
85
|
-
}), lt = new O("antZoomLeftOut", {
|
|
86
|
-
"0%": {
|
|
87
|
-
transform: "scale(1)",
|
|
88
|
-
transformOrigin: "0% 50%"
|
|
89
|
-
},
|
|
90
|
-
"100%": {
|
|
91
|
-
transform: "scale(0.8)",
|
|
92
|
-
transformOrigin: "0% 50%",
|
|
93
|
-
opacity: 0
|
|
94
|
-
}
|
|
95
|
-
}), ct = new O("antZoomRightIn", {
|
|
96
|
-
"0%": {
|
|
97
|
-
transform: "scale(0.8)",
|
|
98
|
-
transformOrigin: "100% 50%",
|
|
99
|
-
opacity: 0
|
|
100
|
-
},
|
|
101
|
-
"100%": {
|
|
102
|
-
transform: "scale(1)",
|
|
103
|
-
transformOrigin: "100% 50%"
|
|
104
|
-
}
|
|
105
|
-
}), ft = new O("antZoomRightOut", {
|
|
106
|
-
"0%": {
|
|
107
|
-
transform: "scale(1)",
|
|
108
|
-
transformOrigin: "100% 50%"
|
|
109
|
-
},
|
|
110
|
-
"100%": {
|
|
111
|
-
transform: "scale(0.8)",
|
|
112
|
-
transformOrigin: "100% 50%",
|
|
113
|
-
opacity: 0
|
|
114
|
-
}
|
|
115
|
-
}), mt = new O("antZoomDownIn", {
|
|
116
|
-
"0%": {
|
|
117
|
-
transform: "scale(0.8)",
|
|
118
|
-
transformOrigin: "50% 100%",
|
|
119
|
-
opacity: 0
|
|
120
|
-
},
|
|
121
|
-
"100%": {
|
|
122
|
-
transform: "scale(1)",
|
|
123
|
-
transformOrigin: "50% 100%"
|
|
124
|
-
}
|
|
125
|
-
}), ut = new O("antZoomDownOut", {
|
|
126
|
-
"0%": {
|
|
127
|
-
transform: "scale(1)",
|
|
128
|
-
transformOrigin: "50% 100%"
|
|
129
|
-
},
|
|
130
|
-
"100%": {
|
|
131
|
-
transform: "scale(0.8)",
|
|
132
|
-
transformOrigin: "50% 100%",
|
|
133
|
-
opacity: 0
|
|
134
|
-
}
|
|
135
|
-
}), dt = {
|
|
136
|
-
zoom: {
|
|
137
|
-
inKeyframes: nt,
|
|
138
|
-
outKeyframes: rt
|
|
139
|
-
},
|
|
140
|
-
"zoom-big": {
|
|
141
|
-
inKeyframes: fe,
|
|
142
|
-
outKeyframes: me
|
|
143
|
-
},
|
|
144
|
-
"zoom-big-fast": {
|
|
145
|
-
inKeyframes: fe,
|
|
146
|
-
outKeyframes: me
|
|
147
|
-
},
|
|
148
|
-
"zoom-left": {
|
|
149
|
-
inKeyframes: it,
|
|
150
|
-
outKeyframes: lt
|
|
151
|
-
},
|
|
152
|
-
"zoom-right": {
|
|
153
|
-
inKeyframes: ct,
|
|
154
|
-
outKeyframes: ft
|
|
155
|
-
},
|
|
156
|
-
"zoom-up": {
|
|
157
|
-
inKeyframes: at,
|
|
158
|
-
outKeyframes: st
|
|
159
|
-
},
|
|
160
|
-
"zoom-down": {
|
|
161
|
-
inKeyframes: mt,
|
|
162
|
-
outKeyframes: ut
|
|
163
|
-
}
|
|
164
|
-
}, pt = (t, o) => {
|
|
165
|
-
const {
|
|
166
|
-
antCls: r
|
|
167
|
-
} = t, e = `${r}-${o}`, {
|
|
168
|
-
inKeyframes: n,
|
|
169
|
-
outKeyframes: s
|
|
170
|
-
} = dt[o];
|
|
171
|
-
return [Xe(e, n, s, o === "zoom-big-fast" ? t.motionDurationFast : t.motionDurationMid), {
|
|
172
|
-
[`
|
|
173
|
-
${e}-enter,
|
|
174
|
-
${e}-appear
|
|
175
|
-
`]: {
|
|
176
|
-
transform: "scale(0)",
|
|
177
|
-
opacity: 0,
|
|
178
|
-
animationTimingFunction: t.motionEaseOutCirc,
|
|
179
|
-
"&-prepare": {
|
|
180
|
-
transform: "none"
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
[`${e}-leave`]: {
|
|
184
|
-
animationTimingFunction: t.motionEaseInOutCirc
|
|
185
|
-
}
|
|
186
|
-
}];
|
|
187
|
-
};
|
|
188
|
-
function ge(t) {
|
|
189
|
-
var o = t.children, r = t.prefixCls, e = t.id, n = t.overlayInnerStyle, s = t.bodyClassName, a = t.className, i = t.style;
|
|
190
|
-
return /* @__PURE__ */ f.createElement("div", {
|
|
191
|
-
className: T("".concat(r, "-content"), a),
|
|
192
|
-
style: i
|
|
193
|
-
}, /* @__PURE__ */ f.createElement("div", {
|
|
194
|
-
className: T("".concat(r, "-inner"), s),
|
|
195
|
-
id: e,
|
|
196
|
-
role: "tooltip",
|
|
197
|
-
style: n
|
|
198
|
-
}, typeof o == "function" ? o() : o));
|
|
199
|
-
}
|
|
200
|
-
var E = {
|
|
201
|
-
shiftX: 64,
|
|
202
|
-
adjustY: 1
|
|
203
|
-
}, V = {
|
|
204
|
-
adjustX: 1,
|
|
205
|
-
shiftY: !0
|
|
206
|
-
}, v = [0, 0], gt = {
|
|
207
|
-
left: {
|
|
208
|
-
points: ["cr", "cl"],
|
|
209
|
-
overflow: V,
|
|
210
|
-
offset: [-4, 0],
|
|
211
|
-
targetOffset: v
|
|
212
|
-
},
|
|
213
|
-
right: {
|
|
214
|
-
points: ["cl", "cr"],
|
|
215
|
-
overflow: V,
|
|
216
|
-
offset: [4, 0],
|
|
217
|
-
targetOffset: v
|
|
218
|
-
},
|
|
219
|
-
top: {
|
|
220
|
-
points: ["bc", "tc"],
|
|
221
|
-
overflow: E,
|
|
222
|
-
offset: [0, -4],
|
|
223
|
-
targetOffset: v
|
|
224
|
-
},
|
|
225
|
-
bottom: {
|
|
226
|
-
points: ["tc", "bc"],
|
|
227
|
-
overflow: E,
|
|
228
|
-
offset: [0, 4],
|
|
229
|
-
targetOffset: v
|
|
230
|
-
},
|
|
231
|
-
topLeft: {
|
|
232
|
-
points: ["bl", "tl"],
|
|
233
|
-
overflow: E,
|
|
234
|
-
offset: [0, -4],
|
|
235
|
-
targetOffset: v
|
|
236
|
-
},
|
|
237
|
-
leftTop: {
|
|
238
|
-
points: ["tr", "tl"],
|
|
239
|
-
overflow: V,
|
|
240
|
-
offset: [-4, 0],
|
|
241
|
-
targetOffset: v
|
|
242
|
-
},
|
|
243
|
-
topRight: {
|
|
244
|
-
points: ["br", "tr"],
|
|
245
|
-
overflow: E,
|
|
246
|
-
offset: [0, -4],
|
|
247
|
-
targetOffset: v
|
|
248
|
-
},
|
|
249
|
-
rightTop: {
|
|
250
|
-
points: ["tl", "tr"],
|
|
251
|
-
overflow: V,
|
|
252
|
-
offset: [4, 0],
|
|
253
|
-
targetOffset: v
|
|
254
|
-
},
|
|
255
|
-
bottomRight: {
|
|
256
|
-
points: ["tr", "br"],
|
|
257
|
-
overflow: E,
|
|
258
|
-
offset: [0, 4],
|
|
259
|
-
targetOffset: v
|
|
260
|
-
},
|
|
261
|
-
rightBottom: {
|
|
262
|
-
points: ["bl", "br"],
|
|
263
|
-
overflow: V,
|
|
264
|
-
offset: [4, 0],
|
|
265
|
-
targetOffset: v
|
|
266
|
-
},
|
|
267
|
-
bottomLeft: {
|
|
268
|
-
points: ["tl", "bl"],
|
|
269
|
-
overflow: E,
|
|
270
|
-
offset: [0, 4],
|
|
271
|
-
targetOffset: v
|
|
272
|
-
},
|
|
273
|
-
leftBottom: {
|
|
274
|
-
points: ["br", "bl"],
|
|
275
|
-
overflow: V,
|
|
276
|
-
offset: [-4, 0],
|
|
277
|
-
targetOffset: v
|
|
278
|
-
}
|
|
279
|
-
}, bt = ["overlayClassName", "trigger", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "prefixCls", "children", "onVisibleChange", "afterVisibleChange", "transitionName", "animation", "motion", "placement", "align", "destroyTooltipOnHide", "defaultVisible", "getTooltipContainer", "overlayInnerStyle", "arrowContent", "overlay", "id", "showArrow", "classNames", "styles"], ht = function(o, r) {
|
|
280
|
-
var e = o.overlayClassName, n = o.trigger, s = n === void 0 ? ["hover"] : n, a = o.mouseEnterDelay, i = a === void 0 ? 0 : a, l = o.mouseLeaveDelay, m = l === void 0 ? 0.1 : l, h = o.overlayStyle, c = o.prefixCls, u = c === void 0 ? "rc-tooltip" : c, y = o.children, C = o.onVisibleChange, _ = o.afterVisibleChange, x = o.transitionName, b = o.animation, g = o.motion, N = o.placement, I = N === void 0 ? "right" : N, A = o.align, K = A === void 0 ? {} : A, q = o.destroyTooltipOnHide, F = q === void 0 ? !1 : q, U = o.defaultVisible, G = o.getTooltipContainer, J = o.overlayInnerStyle;
|
|
281
|
-
o.arrowContent;
|
|
282
|
-
var Q = o.overlay, ee = o.id, k = o.showArrow, S = k === void 0 ? !0 : k, w = o.classNames, P = o.styles, B = Me(o, bt), z = ke(null);
|
|
283
|
-
Be(r, function() {
|
|
284
|
-
return z.current;
|
|
285
|
-
});
|
|
286
|
-
var M = L({}, B);
|
|
287
|
-
"visible" in o && (M.popupVisible = o.visible);
|
|
288
|
-
var H = function() {
|
|
289
|
-
return /* @__PURE__ */ f.createElement(ge, {
|
|
290
|
-
key: "content",
|
|
291
|
-
prefixCls: u,
|
|
292
|
-
id: ee,
|
|
293
|
-
bodyClassName: w == null ? void 0 : w.body,
|
|
294
|
-
overlayInnerStyle: L(L({}, J), P == null ? void 0 : P.body)
|
|
295
|
-
}, Q);
|
|
296
|
-
};
|
|
297
|
-
return /* @__PURE__ */ f.createElement(We, He({
|
|
298
|
-
popupClassName: T(e, w == null ? void 0 : w.root),
|
|
299
|
-
prefixCls: u,
|
|
300
|
-
popup: H,
|
|
301
|
-
action: s,
|
|
302
|
-
builtinPlacements: gt,
|
|
303
|
-
popupPlacement: I,
|
|
304
|
-
ref: z,
|
|
305
|
-
popupAlign: K,
|
|
306
|
-
getPopupContainer: G,
|
|
307
|
-
onPopupVisibleChange: C,
|
|
308
|
-
afterPopupVisibleChange: _,
|
|
309
|
-
popupTransitionName: x,
|
|
310
|
-
popupAnimation: b,
|
|
311
|
-
popupMotion: g,
|
|
312
|
-
defaultPopupVisible: U,
|
|
313
|
-
autoDestroy: F,
|
|
314
|
-
mouseLeaveDelay: m,
|
|
315
|
-
popupStyle: L(L({}, h), P == null ? void 0 : P.root),
|
|
316
|
-
mouseEnterDelay: i,
|
|
317
|
-
arrow: S
|
|
318
|
-
}, M), y);
|
|
319
|
-
};
|
|
320
|
-
const yt = /* @__PURE__ */ De(ht);
|
|
321
|
-
function wt(t) {
|
|
322
|
-
const {
|
|
323
|
-
sizePopupArrow: o,
|
|
324
|
-
borderRadiusXS: r,
|
|
325
|
-
borderRadiusOuter: e
|
|
326
|
-
} = t, n = o / 2, s = 0, a = n, i = e * 1 / Math.sqrt(2), l = n - e * (1 - 1 / Math.sqrt(2)), m = n - r * (1 / Math.sqrt(2)), h = e * (Math.sqrt(2) - 1) + r * (1 / Math.sqrt(2)), c = 2 * n - m, u = h, y = 2 * n - i, C = l, _ = 2 * n - s, x = a, b = n * Math.sqrt(2) + e * (Math.sqrt(2) - 2), g = e * (Math.sqrt(2) - 1), N = `polygon(${g}px 100%, 50% ${g}px, ${2 * n - g}px 100%, ${g}px 100%)`, I = `path('M ${s} ${a} A ${e} ${e} 0 0 0 ${i} ${l} L ${m} ${h} A ${r} ${r} 0 0 1 ${c} ${u} L ${y} ${C} A ${e} ${e} 0 0 0 ${_} ${x} Z')`;
|
|
327
|
-
return {
|
|
328
|
-
arrowShadowWidth: b,
|
|
329
|
-
arrowPath: I,
|
|
330
|
-
arrowPolygon: N
|
|
331
|
-
};
|
|
332
|
-
}
|
|
333
|
-
const vt = (t, o, r) => {
|
|
334
|
-
const {
|
|
335
|
-
sizePopupArrow: e,
|
|
336
|
-
arrowPolygon: n,
|
|
337
|
-
arrowPath: s,
|
|
338
|
-
arrowShadowWidth: a,
|
|
339
|
-
borderRadiusXS: i,
|
|
340
|
-
calc: l
|
|
341
|
-
} = t;
|
|
342
|
-
return {
|
|
343
|
-
pointerEvents: "none",
|
|
344
|
-
width: e,
|
|
345
|
-
height: e,
|
|
346
|
-
overflow: "hidden",
|
|
347
|
-
"&::before": {
|
|
348
|
-
position: "absolute",
|
|
349
|
-
bottom: 0,
|
|
350
|
-
insetInlineStart: 0,
|
|
351
|
-
width: e,
|
|
352
|
-
height: l(e).div(2).equal(),
|
|
353
|
-
background: o,
|
|
354
|
-
clipPath: {
|
|
355
|
-
_multi_value_: !0,
|
|
356
|
-
value: [n, s]
|
|
357
|
-
},
|
|
358
|
-
content: '""'
|
|
359
|
-
},
|
|
360
|
-
"&::after": {
|
|
361
|
-
content: '""',
|
|
362
|
-
position: "absolute",
|
|
363
|
-
width: a,
|
|
364
|
-
height: a,
|
|
365
|
-
bottom: 0,
|
|
366
|
-
insetInline: 0,
|
|
367
|
-
margin: "auto",
|
|
368
|
-
borderRadius: {
|
|
369
|
-
_skip_check_: !0,
|
|
370
|
-
value: `0 0 ${D(i)} 0`
|
|
371
|
-
},
|
|
372
|
-
transform: "translateY(50%) rotate(-135deg)",
|
|
373
|
-
boxShadow: r,
|
|
374
|
-
zIndex: 0,
|
|
375
|
-
background: "transparent"
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
}, be = 8;
|
|
379
|
-
function he(t) {
|
|
380
|
-
const {
|
|
381
|
-
contentRadius: o,
|
|
382
|
-
limitVerticalRadius: r
|
|
383
|
-
} = t, e = o > 12 ? o + 2 : 12;
|
|
384
|
-
return {
|
|
385
|
-
arrowOffsetHorizontal: e,
|
|
386
|
-
arrowOffsetVertical: r ? be : e
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
function Y(t, o) {
|
|
390
|
-
return t ? o : {};
|
|
391
|
-
}
|
|
392
|
-
function Ot(t, o, r) {
|
|
393
|
-
const {
|
|
394
|
-
componentCls: e,
|
|
395
|
-
boxShadowPopoverArrow: n,
|
|
396
|
-
arrowOffsetVertical: s,
|
|
397
|
-
arrowOffsetHorizontal: a
|
|
398
|
-
} = t, {
|
|
399
|
-
arrowDistance: i = 0,
|
|
400
|
-
arrowPlacement: l = {
|
|
401
|
-
left: !0,
|
|
402
|
-
right: !0,
|
|
403
|
-
top: !0,
|
|
404
|
-
bottom: !0
|
|
405
|
-
}
|
|
406
|
-
} = r || {};
|
|
407
|
-
return {
|
|
408
|
-
[e]: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
409
|
-
// ============================ Basic ============================
|
|
410
|
-
[`${e}-arrow`]: [Object.assign(Object.assign({
|
|
411
|
-
position: "absolute",
|
|
412
|
-
zIndex: 1,
|
|
413
|
-
display: "block"
|
|
414
|
-
}, vt(t, o, n)), {
|
|
415
|
-
"&:before": {
|
|
416
|
-
background: o
|
|
417
|
-
}
|
|
418
|
-
})]
|
|
419
|
-
}, Y(!!l.top, {
|
|
420
|
-
[[`&-placement-top > ${e}-arrow`, `&-placement-topLeft > ${e}-arrow`, `&-placement-topRight > ${e}-arrow`].join(",")]: {
|
|
421
|
-
bottom: i,
|
|
422
|
-
transform: "translateY(100%) rotate(180deg)"
|
|
423
|
-
},
|
|
424
|
-
[`&-placement-top > ${e}-arrow`]: {
|
|
425
|
-
left: {
|
|
426
|
-
_skip_check_: !0,
|
|
427
|
-
value: "50%"
|
|
428
|
-
},
|
|
429
|
-
transform: "translateX(-50%) translateY(100%) rotate(180deg)"
|
|
430
|
-
},
|
|
431
|
-
"&-placement-topLeft": {
|
|
432
|
-
"--arrow-offset-horizontal": a,
|
|
433
|
-
[`> ${e}-arrow`]: {
|
|
434
|
-
left: {
|
|
435
|
-
_skip_check_: !0,
|
|
436
|
-
value: a
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"&-placement-topRight": {
|
|
441
|
-
"--arrow-offset-horizontal": `calc(100% - ${D(a)})`,
|
|
442
|
-
[`> ${e}-arrow`]: {
|
|
443
|
-
right: {
|
|
444
|
-
_skip_check_: !0,
|
|
445
|
-
value: a
|
|
446
|
-
}
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
})), Y(!!l.bottom, {
|
|
450
|
-
[[`&-placement-bottom > ${e}-arrow`, `&-placement-bottomLeft > ${e}-arrow`, `&-placement-bottomRight > ${e}-arrow`].join(",")]: {
|
|
451
|
-
top: i,
|
|
452
|
-
transform: "translateY(-100%)"
|
|
453
|
-
},
|
|
454
|
-
[`&-placement-bottom > ${e}-arrow`]: {
|
|
455
|
-
left: {
|
|
456
|
-
_skip_check_: !0,
|
|
457
|
-
value: "50%"
|
|
458
|
-
},
|
|
459
|
-
transform: "translateX(-50%) translateY(-100%)"
|
|
460
|
-
},
|
|
461
|
-
"&-placement-bottomLeft": {
|
|
462
|
-
"--arrow-offset-horizontal": a,
|
|
463
|
-
[`> ${e}-arrow`]: {
|
|
464
|
-
left: {
|
|
465
|
-
_skip_check_: !0,
|
|
466
|
-
value: a
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
"&-placement-bottomRight": {
|
|
471
|
-
"--arrow-offset-horizontal": `calc(100% - ${D(a)})`,
|
|
472
|
-
[`> ${e}-arrow`]: {
|
|
473
|
-
right: {
|
|
474
|
-
_skip_check_: !0,
|
|
475
|
-
value: a
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
})), Y(!!l.left, {
|
|
480
|
-
[[`&-placement-left > ${e}-arrow`, `&-placement-leftTop > ${e}-arrow`, `&-placement-leftBottom > ${e}-arrow`].join(",")]: {
|
|
481
|
-
right: {
|
|
482
|
-
_skip_check_: !0,
|
|
483
|
-
value: i
|
|
484
|
-
},
|
|
485
|
-
transform: "translateX(100%) rotate(90deg)"
|
|
486
|
-
},
|
|
487
|
-
[`&-placement-left > ${e}-arrow`]: {
|
|
488
|
-
top: {
|
|
489
|
-
_skip_check_: !0,
|
|
490
|
-
value: "50%"
|
|
491
|
-
},
|
|
492
|
-
transform: "translateY(-50%) translateX(100%) rotate(90deg)"
|
|
493
|
-
},
|
|
494
|
-
[`&-placement-leftTop > ${e}-arrow`]: {
|
|
495
|
-
top: s
|
|
496
|
-
},
|
|
497
|
-
[`&-placement-leftBottom > ${e}-arrow`]: {
|
|
498
|
-
bottom: s
|
|
499
|
-
}
|
|
500
|
-
})), Y(!!l.right, {
|
|
501
|
-
[[`&-placement-right > ${e}-arrow`, `&-placement-rightTop > ${e}-arrow`, `&-placement-rightBottom > ${e}-arrow`].join(",")]: {
|
|
502
|
-
left: {
|
|
503
|
-
_skip_check_: !0,
|
|
504
|
-
value: i
|
|
505
|
-
},
|
|
506
|
-
transform: "translateX(-100%) rotate(-90deg)"
|
|
507
|
-
},
|
|
508
|
-
[`&-placement-right > ${e}-arrow`]: {
|
|
509
|
-
top: {
|
|
510
|
-
_skip_check_: !0,
|
|
511
|
-
value: "50%"
|
|
512
|
-
},
|
|
513
|
-
transform: "translateY(-50%) translateX(-100%) rotate(-90deg)"
|
|
514
|
-
},
|
|
515
|
-
[`&-placement-rightTop > ${e}-arrow`]: {
|
|
516
|
-
top: s
|
|
517
|
-
},
|
|
518
|
-
[`&-placement-rightBottom > ${e}-arrow`]: {
|
|
519
|
-
bottom: s
|
|
520
|
-
}
|
|
521
|
-
}))
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
function Ct(t, o, r, e) {
|
|
525
|
-
if (e === !1)
|
|
526
|
-
return {
|
|
527
|
-
adjustX: !1,
|
|
528
|
-
adjustY: !1
|
|
529
|
-
};
|
|
530
|
-
const n = e && typeof e == "object" ? e : {}, s = {};
|
|
531
|
-
switch (t) {
|
|
532
|
-
case "top":
|
|
533
|
-
case "bottom":
|
|
534
|
-
s.shiftX = o.arrowOffsetHorizontal * 2 + r, s.shiftY = !0, s.adjustY = !0;
|
|
535
|
-
break;
|
|
536
|
-
case "left":
|
|
537
|
-
case "right":
|
|
538
|
-
s.shiftY = o.arrowOffsetVertical * 2 + r, s.shiftX = !0, s.adjustX = !0;
|
|
539
|
-
break;
|
|
540
|
-
}
|
|
541
|
-
const a = Object.assign(Object.assign({}, s), n);
|
|
542
|
-
return a.shiftX || (a.adjustX = !0), a.shiftY || (a.adjustY = !0), a;
|
|
543
|
-
}
|
|
544
|
-
const ue = {
|
|
545
|
-
left: {
|
|
546
|
-
points: ["cr", "cl"]
|
|
547
|
-
},
|
|
548
|
-
right: {
|
|
549
|
-
points: ["cl", "cr"]
|
|
550
|
-
},
|
|
551
|
-
top: {
|
|
552
|
-
points: ["bc", "tc"]
|
|
553
|
-
},
|
|
554
|
-
bottom: {
|
|
555
|
-
points: ["tc", "bc"]
|
|
556
|
-
},
|
|
557
|
-
topLeft: {
|
|
558
|
-
points: ["bl", "tl"]
|
|
559
|
-
},
|
|
560
|
-
leftTop: {
|
|
561
|
-
points: ["tr", "tl"]
|
|
562
|
-
},
|
|
563
|
-
topRight: {
|
|
564
|
-
points: ["br", "tr"]
|
|
565
|
-
},
|
|
566
|
-
rightTop: {
|
|
567
|
-
points: ["tl", "tr"]
|
|
568
|
-
},
|
|
569
|
-
bottomRight: {
|
|
570
|
-
points: ["tr", "br"]
|
|
571
|
-
},
|
|
572
|
-
rightBottom: {
|
|
573
|
-
points: ["bl", "br"]
|
|
574
|
-
},
|
|
575
|
-
bottomLeft: {
|
|
576
|
-
points: ["tl", "bl"]
|
|
577
|
-
},
|
|
578
|
-
leftBottom: {
|
|
579
|
-
points: ["br", "bl"]
|
|
580
|
-
}
|
|
581
|
-
}, $t = {
|
|
582
|
-
topLeft: {
|
|
583
|
-
points: ["bl", "tc"]
|
|
584
|
-
},
|
|
585
|
-
leftTop: {
|
|
586
|
-
points: ["tr", "cl"]
|
|
587
|
-
},
|
|
588
|
-
topRight: {
|
|
589
|
-
points: ["br", "tc"]
|
|
590
|
-
},
|
|
591
|
-
rightTop: {
|
|
592
|
-
points: ["tl", "cr"]
|
|
593
|
-
},
|
|
594
|
-
bottomRight: {
|
|
595
|
-
points: ["tr", "bc"]
|
|
596
|
-
},
|
|
597
|
-
rightBottom: {
|
|
598
|
-
points: ["bl", "cr"]
|
|
599
|
-
},
|
|
600
|
-
bottomLeft: {
|
|
601
|
-
points: ["tl", "bc"]
|
|
602
|
-
},
|
|
603
|
-
leftBottom: {
|
|
604
|
-
points: ["br", "cl"]
|
|
605
|
-
}
|
|
606
|
-
}, _t = /* @__PURE__ */ new Set(["topLeft", "topRight", "bottomLeft", "bottomRight", "leftTop", "leftBottom", "rightTop", "rightBottom"]);
|
|
607
|
-
function xt(t) {
|
|
608
|
-
const {
|
|
609
|
-
arrowWidth: o,
|
|
610
|
-
autoAdjustOverflow: r,
|
|
611
|
-
arrowPointAtCenter: e,
|
|
612
|
-
offset: n,
|
|
613
|
-
borderRadius: s,
|
|
614
|
-
visibleFirst: a
|
|
615
|
-
} = t, i = o / 2, l = {};
|
|
616
|
-
return Object.keys(ue).forEach((m) => {
|
|
617
|
-
const h = e && $t[m] || ue[m], c = Object.assign(Object.assign({}, h), {
|
|
618
|
-
offset: [0, 0],
|
|
619
|
-
dynamicInset: !0
|
|
620
|
-
});
|
|
621
|
-
switch (l[m] = c, _t.has(m) && (c.autoArrow = !1), m) {
|
|
622
|
-
case "top":
|
|
623
|
-
case "topLeft":
|
|
624
|
-
case "topRight":
|
|
625
|
-
c.offset[1] = -i - n;
|
|
626
|
-
break;
|
|
627
|
-
case "bottom":
|
|
628
|
-
case "bottomLeft":
|
|
629
|
-
case "bottomRight":
|
|
630
|
-
c.offset[1] = i + n;
|
|
631
|
-
break;
|
|
632
|
-
case "left":
|
|
633
|
-
case "leftTop":
|
|
634
|
-
case "leftBottom":
|
|
635
|
-
c.offset[0] = -i - n;
|
|
636
|
-
break;
|
|
637
|
-
case "right":
|
|
638
|
-
case "rightTop":
|
|
639
|
-
case "rightBottom":
|
|
640
|
-
c.offset[0] = i + n;
|
|
641
|
-
break;
|
|
642
|
-
}
|
|
643
|
-
const u = he({
|
|
644
|
-
contentRadius: s,
|
|
645
|
-
limitVerticalRadius: !0
|
|
646
|
-
});
|
|
647
|
-
if (e)
|
|
648
|
-
switch (m) {
|
|
649
|
-
case "topLeft":
|
|
650
|
-
case "bottomLeft":
|
|
651
|
-
c.offset[0] = -u.arrowOffsetHorizontal - i;
|
|
652
|
-
break;
|
|
653
|
-
case "topRight":
|
|
654
|
-
case "bottomRight":
|
|
655
|
-
c.offset[0] = u.arrowOffsetHorizontal + i;
|
|
656
|
-
break;
|
|
657
|
-
case "leftTop":
|
|
658
|
-
case "rightTop":
|
|
659
|
-
c.offset[1] = -u.arrowOffsetHorizontal * 2 + i;
|
|
660
|
-
break;
|
|
661
|
-
case "leftBottom":
|
|
662
|
-
case "rightBottom":
|
|
663
|
-
c.offset[1] = u.arrowOffsetHorizontal * 2 - i;
|
|
664
|
-
break;
|
|
665
|
-
}
|
|
666
|
-
c.overflow = Ct(m, u, o, r), a && (c.htmlRegion = "visibleFirst");
|
|
667
|
-
}), l;
|
|
668
|
-
}
|
|
669
|
-
const Pt = (t) => {
|
|
670
|
-
const {
|
|
671
|
-
calc: o,
|
|
672
|
-
componentCls: r,
|
|
673
|
-
// ant-tooltip
|
|
674
|
-
tooltipMaxWidth: e,
|
|
675
|
-
tooltipColor: n,
|
|
676
|
-
tooltipBg: s,
|
|
677
|
-
tooltipBorderRadius: a,
|
|
678
|
-
zIndexPopup: i,
|
|
679
|
-
controlHeight: l,
|
|
680
|
-
boxShadowSecondary: m,
|
|
681
|
-
paddingSM: h,
|
|
682
|
-
paddingXS: c,
|
|
683
|
-
arrowOffsetHorizontal: u,
|
|
684
|
-
sizePopupArrow: y
|
|
685
|
-
} = t, C = o(a).add(y).add(u).equal(), _ = o(a).mul(2).add(y).equal();
|
|
686
|
-
return [
|
|
687
|
-
{
|
|
688
|
-
[r]: Object.assign(Object.assign(Object.assign(Object.assign({}, Ge(t)), {
|
|
689
|
-
position: "absolute",
|
|
690
|
-
zIndex: i,
|
|
691
|
-
display: "block",
|
|
692
|
-
width: "max-content",
|
|
693
|
-
maxWidth: e,
|
|
694
|
-
visibility: "visible",
|
|
695
|
-
// When use `autoArrow`, origin will follow the arrow position
|
|
696
|
-
"--valid-offset-x": "var(--arrow-offset-horizontal, var(--arrow-x))",
|
|
697
|
-
transformOrigin: ["var(--valid-offset-x, 50%)", "var(--arrow-y, 50%)"].join(" "),
|
|
698
|
-
"&-hidden": {
|
|
699
|
-
display: "none"
|
|
700
|
-
},
|
|
701
|
-
"--antd-arrow-background-color": s,
|
|
702
|
-
// Wrapper for the tooltip content
|
|
703
|
-
[`${r}-inner`]: {
|
|
704
|
-
minWidth: _,
|
|
705
|
-
minHeight: l,
|
|
706
|
-
padding: `${D(t.calc(h).div(2).equal())} ${D(c)}`,
|
|
707
|
-
color: n,
|
|
708
|
-
textAlign: "start",
|
|
709
|
-
textDecoration: "none",
|
|
710
|
-
wordWrap: "break-word",
|
|
711
|
-
backgroundColor: s,
|
|
712
|
-
borderRadius: a,
|
|
713
|
-
boxShadow: m,
|
|
714
|
-
boxSizing: "border-box"
|
|
715
|
-
},
|
|
716
|
-
// Align placement should have another min width
|
|
717
|
-
[["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
|
|
718
|
-
minWidth: C
|
|
719
|
-
},
|
|
720
|
-
// Limit left and right placement radius
|
|
721
|
-
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
|
|
722
|
-
[`${r}-inner`]: {
|
|
723
|
-
borderRadius: t.min(a, be)
|
|
724
|
-
}
|
|
725
|
-
},
|
|
726
|
-
[`${r}-content`]: {
|
|
727
|
-
position: "relative"
|
|
728
|
-
}
|
|
729
|
-
}), ot(t, (x, b) => {
|
|
730
|
-
let {
|
|
731
|
-
darkColor: g
|
|
732
|
-
} = b;
|
|
733
|
-
return {
|
|
734
|
-
[`&${r}-${x}`]: {
|
|
735
|
-
[`${r}-inner`]: {
|
|
736
|
-
backgroundColor: g
|
|
737
|
-
},
|
|
738
|
-
[`${r}-arrow`]: {
|
|
739
|
-
"--antd-arrow-background-color": g
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
})), {
|
|
744
|
-
// RTL
|
|
745
|
-
"&-rtl": {
|
|
746
|
-
direction: "rtl"
|
|
747
|
-
}
|
|
748
|
-
})
|
|
749
|
-
},
|
|
750
|
-
// Arrow Style
|
|
751
|
-
Ot(t, "var(--antd-arrow-background-color)"),
|
|
752
|
-
// Pure Render
|
|
753
|
-
{
|
|
754
|
-
[`${r}-pure`]: {
|
|
755
|
-
position: "relative",
|
|
756
|
-
maxWidth: "none",
|
|
757
|
-
margin: t.sizePopupArrow
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
];
|
|
761
|
-
}, Nt = (t) => Object.assign(Object.assign({
|
|
762
|
-
zIndexPopup: t.zIndexPopupBase + 70
|
|
763
|
-
}, he({
|
|
764
|
-
contentRadius: t.borderRadius,
|
|
765
|
-
limitVerticalRadius: !0
|
|
766
|
-
})), wt(de(t, {
|
|
767
|
-
borderRadiusOuter: Math.min(t.borderRadiusOuter, 4)
|
|
768
|
-
}))), ye = function(t) {
|
|
769
|
-
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
770
|
-
return Ue("Tooltip", (e) => {
|
|
771
|
-
const {
|
|
772
|
-
borderRadius: n,
|
|
773
|
-
colorTextLightSolid: s,
|
|
774
|
-
colorBgSpotlight: a
|
|
775
|
-
} = e, i = de(e, {
|
|
776
|
-
// default variables
|
|
777
|
-
tooltipMaxWidth: 250,
|
|
778
|
-
tooltipColor: s,
|
|
779
|
-
tooltipBorderRadius: n,
|
|
780
|
-
tooltipBg: a
|
|
781
|
-
});
|
|
782
|
-
return [Pt(i), pt(e, "zoom-big-fast")];
|
|
783
|
-
}, Nt, {
|
|
784
|
-
resetStyle: !1,
|
|
785
|
-
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
786
|
-
injectStyle: o
|
|
787
|
-
})(t);
|
|
788
|
-
}, St = Z.map((t) => `${t}-inverse`);
|
|
789
|
-
function jt(t) {
|
|
790
|
-
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0) ? [].concat(ce(St), ce(Z)).includes(t) : Z.includes(t);
|
|
791
|
-
}
|
|
792
|
-
function we(t, o) {
|
|
793
|
-
const r = jt(o), e = T({
|
|
794
|
-
[`${t}-${o}`]: o && r
|
|
795
|
-
}), n = {}, s = {};
|
|
796
|
-
return o && !r && (n.background = o, s["--antd-arrow-background-color"] = o), {
|
|
797
|
-
className: e,
|
|
798
|
-
overlayStyle: n,
|
|
799
|
-
arrowStyle: s
|
|
800
|
-
};
|
|
801
|
-
}
|
|
802
|
-
const Tt = (t) => {
|
|
803
|
-
const {
|
|
804
|
-
prefixCls: o,
|
|
805
|
-
className: r,
|
|
806
|
-
placement: e = "top",
|
|
807
|
-
title: n,
|
|
808
|
-
color: s,
|
|
809
|
-
overlayInnerStyle: a
|
|
810
|
-
} = t, {
|
|
811
|
-
getPrefixCls: i
|
|
812
|
-
} = f.useContext(pe), l = i("tooltip", o), [m, h, c] = ye(l), u = we(l, s), y = u.arrowStyle, C = Object.assign(Object.assign({}, a), u.overlayStyle), _ = T(h, c, l, `${l}-pure`, `${l}-placement-${e}`, r, u.className);
|
|
813
|
-
return m(/* @__PURE__ */ f.createElement("div", {
|
|
814
|
-
className: _,
|
|
815
|
-
style: y
|
|
816
|
-
}, /* @__PURE__ */ f.createElement("div", {
|
|
817
|
-
className: `${l}-arrow`
|
|
818
|
-
}), /* @__PURE__ */ f.createElement(ge, Object.assign({}, t, {
|
|
819
|
-
className: h,
|
|
820
|
-
prefixCls: l,
|
|
821
|
-
overlayInnerStyle: C
|
|
822
|
-
}), n)));
|
|
823
|
-
};
|
|
824
|
-
var zt = function(t, o) {
|
|
825
|
-
var r = {};
|
|
826
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && o.indexOf(e) < 0 && (r[e] = t[e]);
|
|
827
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, e = Object.getOwnPropertySymbols(t); n < e.length; n++)
|
|
828
|
-
o.indexOf(e[n]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[n]) && (r[e[n]] = t[e[n]]);
|
|
829
|
-
return r;
|
|
830
|
-
};
|
|
831
|
-
const It = /* @__PURE__ */ f.forwardRef((t, o) => {
|
|
832
|
-
var r, e, n, s, a, i;
|
|
833
|
-
const {
|
|
834
|
-
prefixCls: l,
|
|
835
|
-
openClassName: m,
|
|
836
|
-
getTooltipContainer: h,
|
|
837
|
-
color: c,
|
|
838
|
-
overlayInnerStyle: u,
|
|
839
|
-
children: y,
|
|
840
|
-
afterOpenChange: C,
|
|
841
|
-
afterVisibleChange: _,
|
|
842
|
-
destroyTooltipOnHide: x,
|
|
843
|
-
arrow: b = !0,
|
|
844
|
-
title: g,
|
|
845
|
-
overlay: N,
|
|
846
|
-
builtinPlacements: I,
|
|
847
|
-
arrowPointAtCenter: A = !1,
|
|
848
|
-
autoAdjustOverflow: K = !0,
|
|
849
|
-
motion: q,
|
|
850
|
-
getPopupContainer: F,
|
|
851
|
-
placement: U = "top",
|
|
852
|
-
mouseEnterDelay: G = 0.1,
|
|
853
|
-
mouseLeaveDelay: J = 0.1,
|
|
854
|
-
overlayStyle: Q,
|
|
855
|
-
rootClassName: ee,
|
|
856
|
-
overlayClassName: k,
|
|
857
|
-
styles: S,
|
|
858
|
-
classNames: w
|
|
859
|
-
} = t, P = zt(t, ["prefixCls", "openClassName", "getTooltipContainer", "color", "overlayInnerStyle", "children", "afterOpenChange", "afterVisibleChange", "destroyTooltipOnHide", "arrow", "title", "overlay", "builtinPlacements", "arrowPointAtCenter", "autoAdjustOverflow", "motion", "getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay", "overlayStyle", "rootClassName", "overlayClassName", "styles", "classNames"]), B = !!b, [, z] = Je(), {
|
|
860
|
-
getPopupContainer: M,
|
|
861
|
-
getPrefixCls: H,
|
|
862
|
-
direction: ie,
|
|
863
|
-
tooltip: d
|
|
864
|
-
} = f.useContext(pe), X = Qe("Tooltip"), te = f.useRef(null), le = () => {
|
|
865
|
-
var p;
|
|
866
|
-
(p = te.current) === null || p === void 0 || p.forceAlign();
|
|
867
|
-
};
|
|
868
|
-
f.useImperativeHandle(o, () => {
|
|
869
|
-
var p;
|
|
870
|
-
return {
|
|
871
|
-
forceAlign: le,
|
|
872
|
-
forcePopupAlign: () => {
|
|
873
|
-
X.deprecated(!1, "forcePopupAlign", "forceAlign"), le();
|
|
874
|
-
},
|
|
875
|
-
nativeElement: (p = te.current) === null || p === void 0 ? void 0 : p.nativeElement
|
|
876
|
-
};
|
|
877
|
-
}), process.env.NODE_ENV !== "production" && ([["visible", "open"], ["defaultVisible", "defaultOpen"], ["onVisibleChange", "onOpenChange"], ["afterVisibleChange", "afterOpenChange"], ["arrowPointAtCenter", "arrow={{ pointAtCenter: true }}"], ["overlayStyle", "styles={{ root: {} }}"], ["overlayInnerStyle", "styles={{ body: {} }}"], ["overlayClassName", "classNames={{ root: {} }}"]].forEach((p) => {
|
|
878
|
-
let [$, j] = p;
|
|
879
|
-
X.deprecated(!($ in t), $, j);
|
|
880
|
-
}), process.env.NODE_ENV !== "production" && X(!x || typeof x == "boolean", "usage", "`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."), process.env.NODE_ENV !== "production" && X(!b || typeof b == "boolean" || !("arrowPointAtCenter" in b), "deprecated", "`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));
|
|
881
|
-
const [Oe, Ce] = qe(!1, {
|
|
882
|
-
value: (r = t.open) !== null && r !== void 0 ? r : t.visible,
|
|
883
|
-
defaultValue: (e = t.defaultOpen) !== null && e !== void 0 ? e : t.defaultVisible
|
|
884
|
-
}), oe = !g && !N && g !== 0, $e = (p) => {
|
|
885
|
-
var $, j;
|
|
886
|
-
Ce(oe ? !1 : p), oe || (($ = t.onOpenChange) === null || $ === void 0 || $.call(t, p), (j = t.onVisibleChange) === null || j === void 0 || j.call(t, p));
|
|
887
|
-
}, _e = f.useMemo(() => {
|
|
888
|
-
var p, $;
|
|
889
|
-
let j = A;
|
|
890
|
-
return typeof b == "object" && (j = ($ = (p = b.pointAtCenter) !== null && p !== void 0 ? p : b.arrowPointAtCenter) !== null && $ !== void 0 ? $ : A), I || xt({
|
|
891
|
-
arrowPointAtCenter: j,
|
|
892
|
-
autoAdjustOverflow: K,
|
|
893
|
-
arrowWidth: B ? z.sizePopupArrow : 0,
|
|
894
|
-
borderRadius: z.borderRadius,
|
|
895
|
-
offset: z.marginXXS,
|
|
896
|
-
visibleFirst: !0
|
|
897
|
-
});
|
|
898
|
-
}, [A, b, I, z]), ne = f.useMemo(() => g === 0 ? g : N || g || "", [N, g]), xe = /* @__PURE__ */ f.createElement(Fe, {
|
|
899
|
-
space: !0
|
|
900
|
-
}, typeof ne == "function" ? ne() : ne), R = H("tooltip", l), Pe = H(), Ne = t["data-popover-inject"];
|
|
901
|
-
let re = Oe;
|
|
902
|
-
!("open" in t) && !("visible" in t) && oe && (re = !1);
|
|
903
|
-
const ae = /* @__PURE__ */ f.isValidElement(y) && !et(y) ? y : /* @__PURE__ */ f.createElement("span", null, y), W = ae.props, Se = !W.className || typeof W.className == "string" ? T(W.className, m || `${R}-open`) : W.className, [je, Te, ze] = ye(R, !Ne), se = we(R, c), Ie = se.arrowStyle, Ae = T(k, {
|
|
904
|
-
[`${R}-rtl`]: ie === "rtl"
|
|
905
|
-
}, se.className, ee, Te, ze, d == null ? void 0 : d.className, (n = d == null ? void 0 : d.classNames) === null || n === void 0 ? void 0 : n.root, w == null ? void 0 : w.root), Re = T((s = d == null ? void 0 : d.classNames) === null || s === void 0 ? void 0 : s.body, w == null ? void 0 : w.body), [Ee, Ve] = Ye("Tooltip", P.zIndex), Le = /* @__PURE__ */ f.createElement(yt, Object.assign({}, P, {
|
|
906
|
-
zIndex: Ee,
|
|
907
|
-
showArrow: B,
|
|
908
|
-
placement: U,
|
|
909
|
-
mouseEnterDelay: G,
|
|
910
|
-
mouseLeaveDelay: J,
|
|
911
|
-
prefixCls: R,
|
|
912
|
-
classNames: {
|
|
913
|
-
root: Ae,
|
|
914
|
-
body: Re
|
|
915
|
-
},
|
|
916
|
-
styles: {
|
|
917
|
-
root: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, Ie), (a = d == null ? void 0 : d.styles) === null || a === void 0 ? void 0 : a.root), d == null ? void 0 : d.style), Q), S == null ? void 0 : S.root),
|
|
918
|
-
body: Object.assign(Object.assign(Object.assign(Object.assign({}, (i = d == null ? void 0 : d.styles) === null || i === void 0 ? void 0 : i.body), u), S == null ? void 0 : S.body), se.overlayStyle)
|
|
919
|
-
},
|
|
920
|
-
getTooltipContainer: F || h || M,
|
|
921
|
-
ref: te,
|
|
922
|
-
builtinPlacements: _e,
|
|
923
|
-
overlay: xe,
|
|
924
|
-
visible: re,
|
|
925
|
-
onVisibleChange: $e,
|
|
926
|
-
afterVisibleChange: C ?? _,
|
|
927
|
-
arrowContent: /* @__PURE__ */ f.createElement("span", {
|
|
928
|
-
className: `${R}-arrow-content`
|
|
929
|
-
}),
|
|
930
|
-
motion: {
|
|
931
|
-
motionName: Ze(Pe, "zoom-big-fast", t.transitionName),
|
|
932
|
-
motionDeadline: 1e3
|
|
933
|
-
},
|
|
934
|
-
destroyTooltipOnHide: !!x
|
|
935
|
-
}), re ? tt(ae, {
|
|
936
|
-
className: Se
|
|
937
|
-
}) : ae);
|
|
938
|
-
return je(/* @__PURE__ */ f.createElement(Ke.Provider, {
|
|
939
|
-
value: Ve
|
|
940
|
-
}, Le));
|
|
941
|
-
}), ve = It;
|
|
942
|
-
process.env.NODE_ENV !== "production" && (ve.displayName = "Tooltip");
|
|
943
|
-
ve._InternalPanelDoNotUseOrYouWillBeFired = Tt;
|
|
944
|
-
export {
|
|
945
|
-
ve as T,
|
|
946
|
-
he as a,
|
|
947
|
-
wt as b,
|
|
948
|
-
xt as c,
|
|
949
|
-
Ot as g,
|
|
950
|
-
pt as i,
|
|
951
|
-
nt as z
|
|
952
|
-
};
|