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