@gobolt/genesis 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +468 -263
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +33 -14
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import { useRef as st, useEffect as lt, useMemo as at, isValidElement as ct } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { I as me } from "./AntdIcon-
|
|
6
|
-
import { R as
|
|
7
|
-
import { t as Me
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { T as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
3
|
+
import { P as $e, j as dt, g as ut, a as pt, C as De, p as Le, e as Y, f as W, h as ft } from "./index-ByspLxrB.js";
|
|
4
|
+
import { d as fe, k as mt, e as Z } from "./presets-Djh_L_6R.js";
|
|
5
|
+
import { I as me } from "./AntdIcon-nCNB0J1E.js";
|
|
6
|
+
import { R as gt } from "./index-CRotrkWm.js";
|
|
7
|
+
import { t as Me } from "./toArray-DGvPoJP_.js";
|
|
8
|
+
import { u as Oe } from "./useMergedState-BoELfaU9.js";
|
|
9
|
+
import { o as ke } from "./omit-B_u6A-HL.js";
|
|
10
|
+
import { i as we } from "./styleChecker-Cotu61d0.js";
|
|
11
|
+
import { u as yt } from "./useLocale-DWRfeMSS.js";
|
|
12
|
+
import { T as ge } from "./index-CqqwGTME.js";
|
|
13
|
+
import { K as Re } from "./KeyCode-DM2sFh3-.js";
|
|
14
|
+
import { c as bt } from "./reactNode-sKPeiqPL.js";
|
|
15
|
+
import { T as Et } from "./TextArea-CKWbFr0u.js";
|
|
16
|
+
import "./index-DLdU7Tpd.js";
|
|
17
|
+
import { g as ht } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
18
|
+
import { R as vt } from "./CheckOutlined-cEBrx_Ag.js";
|
|
19
|
+
import { R as xt } from "./LoadingOutlined-C1qu6ymP.js";
|
|
20
|
+
function St(e) {
|
|
21
|
+
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
22
|
+
}
|
|
15
23
|
var Ct = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z" } }] }, name: "copy", theme: "outlined" }, Ot = function(t, o) {
|
|
16
24
|
return /* @__PURE__ */ r.createElement(me, fe({}, t, {
|
|
17
25
|
ref: o,
|
|
@@ -26,29 +34,14 @@ var wt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "fa
|
|
|
26
34
|
}));
|
|
27
35
|
}, Ae = /* @__PURE__ */ r.forwardRef(Rt);
|
|
28
36
|
process.env.NODE_ENV !== "production" && (Ae.displayName = "EditOutlined");
|
|
29
|
-
var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" },
|
|
37
|
+
var Tt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z" } }] }, name: "enter", theme: "outlined" }, jt = function(t, o) {
|
|
30
38
|
return /* @__PURE__ */ r.createElement(me, fe({}, t, {
|
|
31
39
|
ref: o,
|
|
32
40
|
icon: Tt
|
|
33
41
|
}));
|
|
34
|
-
}, He = /* @__PURE__ */ r.forwardRef(
|
|
42
|
+
}, He = /* @__PURE__ */ r.forwardRef(jt);
|
|
35
43
|
process.env.NODE_ENV !== "production" && (He.displayName = "EnterOutlined");
|
|
36
|
-
|
|
37
|
-
if (mt() && window.document.documentElement) {
|
|
38
|
-
var o = Array.isArray(t) ? t : [t], n = window.document.documentElement;
|
|
39
|
-
return o.some(function(i) {
|
|
40
|
-
return i in n.style;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
return !1;
|
|
44
|
-
};
|
|
45
|
-
function Re(e, t) {
|
|
46
|
-
return jt(e);
|
|
47
|
-
}
|
|
48
|
-
function _t(e) {
|
|
49
|
-
return (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1) && e == null ? [] : Array.isArray(e) ? e : [e];
|
|
50
|
-
}
|
|
51
|
-
const It = (e, t, o, n) => {
|
|
44
|
+
const Nt = (e, t, o, n) => {
|
|
52
45
|
const {
|
|
53
46
|
titleMarginBottom: i,
|
|
54
47
|
fontWeightStrong: s
|
|
@@ -60,7 +53,7 @@ const It = (e, t, o, n) => {
|
|
|
60
53
|
fontSize: e,
|
|
61
54
|
lineHeight: t
|
|
62
55
|
};
|
|
63
|
-
},
|
|
56
|
+
}, _t = (e) => {
|
|
64
57
|
const t = [1, 2, 3, 4, 5], o = {};
|
|
65
58
|
return t.forEach((n) => {
|
|
66
59
|
o[`
|
|
@@ -68,9 +61,9 @@ const It = (e, t, o, n) => {
|
|
|
68
61
|
div&-h${n},
|
|
69
62
|
div&-h${n} > textarea,
|
|
70
63
|
h${n}
|
|
71
|
-
`] =
|
|
64
|
+
`] = Nt(e[`fontSizeHeading${n}`], e[`lineHeightHeading${n}`], e.colorTextHeading, e);
|
|
72
65
|
}), o;
|
|
73
|
-
},
|
|
66
|
+
}, It = (e) => {
|
|
74
67
|
const {
|
|
75
68
|
componentCls: t
|
|
76
69
|
} = e;
|
|
@@ -89,7 +82,7 @@ const It = (e, t, o, n) => {
|
|
|
89
82
|
}
|
|
90
83
|
})
|
|
91
84
|
};
|
|
92
|
-
},
|
|
85
|
+
}, $t = (e) => ({
|
|
93
86
|
code: {
|
|
94
87
|
margin: "0 0.2em",
|
|
95
88
|
paddingInline: "0.4em",
|
|
@@ -114,7 +107,7 @@ const It = (e, t, o, n) => {
|
|
|
114
107
|
mark: {
|
|
115
108
|
padding: 0,
|
|
116
109
|
// FIXME hardcode in v4
|
|
117
|
-
backgroundColor:
|
|
110
|
+
backgroundColor: mt[2]
|
|
118
111
|
},
|
|
119
112
|
"u, ins": {
|
|
120
113
|
textDecoration: "underline",
|
|
@@ -176,7 +169,7 @@ const It = (e, t, o, n) => {
|
|
|
176
169
|
borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
|
|
177
170
|
opacity: 0.85
|
|
178
171
|
}
|
|
179
|
-
}),
|
|
172
|
+
}), Dt = (e) => {
|
|
180
173
|
const {
|
|
181
174
|
componentCls: t,
|
|
182
175
|
paddingSM: o
|
|
@@ -208,7 +201,7 @@ const It = (e, t, o, n) => {
|
|
|
208
201
|
}
|
|
209
202
|
}
|
|
210
203
|
};
|
|
211
|
-
},
|
|
204
|
+
}, Lt = (e) => ({
|
|
212
205
|
[`${e.componentCls}-copy-success`]: {
|
|
213
206
|
"\n &,\n &:hover,\n &:focus": {
|
|
214
207
|
color: e.colorSuccess
|
|
@@ -217,7 +210,7 @@ const It = (e, t, o, n) => {
|
|
|
217
210
|
[`${e.componentCls}-copy-icon-only`]: {
|
|
218
211
|
marginInlineStart: 0
|
|
219
212
|
}
|
|
220
|
-
}),
|
|
213
|
+
}), Mt = () => ({
|
|
221
214
|
"\n a&-ellipsis,\n span&-ellipsis\n ": {
|
|
222
215
|
display: "inline-block",
|
|
223
216
|
maxWidth: "100%"
|
|
@@ -247,7 +240,7 @@ const It = (e, t, o, n) => {
|
|
|
247
240
|
WebkitLineClamp: 3,
|
|
248
241
|
WebkitBoxOrient: "vertical"
|
|
249
242
|
}
|
|
250
|
-
}),
|
|
243
|
+
}), kt = (e) => {
|
|
251
244
|
const {
|
|
252
245
|
componentCls: t,
|
|
253
246
|
titleMarginTop: o
|
|
@@ -283,7 +276,7 @@ const It = (e, t, o, n) => {
|
|
|
283
276
|
"\n div&,\n p\n ": {
|
|
284
277
|
marginBottom: "1em"
|
|
285
278
|
}
|
|
286
|
-
},
|
|
279
|
+
}, _t(e)), {
|
|
287
280
|
[`
|
|
288
281
|
& + h1${t},
|
|
289
282
|
& + h2${t},
|
|
@@ -298,7 +291,7 @@ const It = (e, t, o, n) => {
|
|
|
298
291
|
marginTop: o
|
|
299
292
|
}
|
|
300
293
|
}
|
|
301
|
-
}),
|
|
294
|
+
}), $t(e)), It(e)), {
|
|
302
295
|
// Operation
|
|
303
296
|
[`
|
|
304
297
|
${t}-expand,
|
|
@@ -308,16 +301,16 @@ const It = (e, t, o, n) => {
|
|
|
308
301
|
`]: Object.assign(Object.assign({}, $e(e)), {
|
|
309
302
|
marginInlineStart: e.marginXXS
|
|
310
303
|
})
|
|
311
|
-
}),
|
|
304
|
+
}), Dt(e)), Lt(e)), Mt()), {
|
|
312
305
|
"&-rtl": {
|
|
313
306
|
direction: "rtl"
|
|
314
307
|
}
|
|
315
308
|
})
|
|
316
309
|
};
|
|
317
|
-
},
|
|
310
|
+
}, Pt = () => ({
|
|
318
311
|
titleMarginTop: "1.2em",
|
|
319
312
|
titleMarginBottom: "0.5em"
|
|
320
|
-
}), ze = ut("Typography", (e) => [
|
|
313
|
+
}), ze = ut("Typography", (e) => [kt(e)], Pt), At = (e) => {
|
|
321
314
|
const {
|
|
322
315
|
prefixCls: t,
|
|
323
316
|
"aria-label": o,
|
|
@@ -332,15 +325,15 @@ const It = (e, t, o, n) => {
|
|
|
332
325
|
onEnd: m,
|
|
333
326
|
component: g,
|
|
334
327
|
enterIcon: b = /* @__PURE__ */ r.createElement(He, null)
|
|
335
|
-
} = e,
|
|
328
|
+
} = e, j = r.useRef(null), S = r.useRef(!1), C = r.useRef(null), [y, I] = r.useState(d);
|
|
336
329
|
r.useEffect(() => {
|
|
337
330
|
I(d);
|
|
338
331
|
}, [d]), r.useEffect(() => {
|
|
339
332
|
var E;
|
|
340
|
-
if (!((E =
|
|
333
|
+
if (!((E = j.current) === null || E === void 0) && E.resizableTextArea) {
|
|
341
334
|
const {
|
|
342
335
|
textArea: h
|
|
343
|
-
} =
|
|
336
|
+
} = j.current.resizableTextArea;
|
|
344
337
|
h.focus();
|
|
345
338
|
const {
|
|
346
339
|
length: x
|
|
@@ -372,18 +365,18 @@ const It = (e, t, o, n) => {
|
|
|
372
365
|
metaKey: T,
|
|
373
366
|
shiftKey: $
|
|
374
367
|
} = E;
|
|
375
|
-
C.current !== h || S.current || x || P || T || $ || (h ===
|
|
368
|
+
C.current !== h || S.current || x || P || T || $ || (h === Re.ENTER ? (v(), m == null || m()) : h === Re.ESC && a());
|
|
376
369
|
}, U = () => {
|
|
377
370
|
v();
|
|
378
|
-
}, [
|
|
371
|
+
}, [V, M, F] = ze(t), k = Z(t, `${t}-edit-content`, {
|
|
379
372
|
[`${t}-rtl`]: s === "rtl",
|
|
380
373
|
[`${t}-${g}`]: !!g
|
|
381
374
|
}, n, M, F);
|
|
382
|
-
return
|
|
375
|
+
return V(/* @__PURE__ */ r.createElement("div", {
|
|
383
376
|
className: k,
|
|
384
377
|
style: i
|
|
385
|
-
}, /* @__PURE__ */ r.createElement(
|
|
386
|
-
ref:
|
|
378
|
+
}, /* @__PURE__ */ r.createElement(Et, {
|
|
379
|
+
ref: j,
|
|
387
380
|
maxLength: u,
|
|
388
381
|
value: y,
|
|
389
382
|
onChange: H,
|
|
@@ -395,11 +388,11 @@ const It = (e, t, o, n) => {
|
|
|
395
388
|
"aria-label": o,
|
|
396
389
|
rows: 1,
|
|
397
390
|
autoSize: c
|
|
398
|
-
}), b !== null ?
|
|
391
|
+
}), b !== null ? bt(b, {
|
|
399
392
|
className: `${t}-edit-content-confirm`
|
|
400
393
|
}) : null));
|
|
401
394
|
};
|
|
402
|
-
var
|
|
395
|
+
var Ht = function() {
|
|
403
396
|
var e = document.getSelection();
|
|
404
397
|
if (!e.rangeCount)
|
|
405
398
|
return function() {
|
|
@@ -420,20 +413,20 @@ var Vt = function() {
|
|
|
420
413
|
e.addRange(i);
|
|
421
414
|
}), t && t.focus();
|
|
422
415
|
};
|
|
423
|
-
},
|
|
416
|
+
}, zt = Ht, Te = {
|
|
424
417
|
"text/plain": "Text",
|
|
425
418
|
"text/html": "Url",
|
|
426
419
|
default: "Text"
|
|
427
|
-
},
|
|
428
|
-
function
|
|
420
|
+
}, Bt = "Copy to clipboard: #{key}, Enter";
|
|
421
|
+
function Vt(e) {
|
|
429
422
|
var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
430
423
|
return e.replace(/#{\s*key\s*}/g, t);
|
|
431
424
|
}
|
|
432
|
-
function
|
|
425
|
+
function Wt(e, t) {
|
|
433
426
|
var o, n, i, s, u, c, d = !1;
|
|
434
427
|
t || (t = {}), o = t.debug || !1;
|
|
435
428
|
try {
|
|
436
|
-
i =
|
|
429
|
+
i = zt(), s = document.createRange(), u = document.getSelection(), c = document.createElement("span"), c.textContent = e, c.ariaHidden = "true", c.style.all = "unset", c.style.position = "fixed", c.style.top = 0, c.style.clip = "rect(0, 0, 0, 0)", c.style.whiteSpace = "pre", c.style.webkitUserSelect = "text", c.style.MozUserSelect = "text", c.style.msUserSelect = "text", c.style.userSelect = "text", c.addEventListener("copy", function(a) {
|
|
437
430
|
if (a.stopPropagation(), t.format)
|
|
438
431
|
if (a.preventDefault(), typeof a.clipboardData > "u") {
|
|
439
432
|
o && console.warn("unable to use e.clipboardData"), o && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
@@ -452,16 +445,16 @@ function Ft(e, t) {
|
|
|
452
445
|
try {
|
|
453
446
|
window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), d = !0;
|
|
454
447
|
} catch (m) {
|
|
455
|
-
o && console.error("unable to copy using clipboardData: ", m), o && console.error("falling back to prompt"), n =
|
|
448
|
+
o && console.error("unable to copy using clipboardData: ", m), o && console.error("falling back to prompt"), n = Vt("message" in t ? t.message : Bt), window.prompt(n, e);
|
|
456
449
|
}
|
|
457
450
|
} finally {
|
|
458
451
|
u && (typeof u.removeRange == "function" ? u.removeRange(s) : u.removeAllRanges()), c && document.body.removeChild(c), i();
|
|
459
452
|
}
|
|
460
453
|
return d;
|
|
461
454
|
}
|
|
462
|
-
var
|
|
463
|
-
const
|
|
464
|
-
var
|
|
455
|
+
var Ut = Wt;
|
|
456
|
+
const Ft = /* @__PURE__ */ ht(Ut);
|
|
457
|
+
var Kt = function(e, t, o, n) {
|
|
465
458
|
function i(s) {
|
|
466
459
|
return s instanceof o ? s : new o(function(u) {
|
|
467
460
|
u(s);
|
|
@@ -488,7 +481,7 @@ var Xt = function(e, t, o, n) {
|
|
|
488
481
|
f((n = n.apply(e, t || [])).next());
|
|
489
482
|
});
|
|
490
483
|
};
|
|
491
|
-
const
|
|
484
|
+
const qt = (e) => {
|
|
492
485
|
let {
|
|
493
486
|
copyConfig: t,
|
|
494
487
|
children: o
|
|
@@ -497,12 +490,12 @@ const Jt = (e) => {
|
|
|
497
490
|
c.current && clearTimeout(c.current);
|
|
498
491
|
}, f = {};
|
|
499
492
|
t.format && (f.format = t.format), r.useEffect(() => d, []);
|
|
500
|
-
const a = pt((m) =>
|
|
493
|
+
const a = pt((m) => Kt(void 0, void 0, void 0, function* () {
|
|
501
494
|
var g;
|
|
502
495
|
m == null || m.preventDefault(), m == null || m.stopPropagation(), u(!0);
|
|
503
496
|
try {
|
|
504
497
|
const b = typeof t.text == "function" ? yield t.text() : t.text;
|
|
505
|
-
|
|
498
|
+
Ft(b || St(o, !0).join("") || "", f), u(!1), i(!0), d(), c.current = setTimeout(() => {
|
|
506
499
|
i(!1);
|
|
507
500
|
}, 3e3), (g = t.onCopy) === null || g === void 0 || g.call(t, m);
|
|
508
501
|
} catch (b) {
|
|
@@ -521,12 +514,12 @@ function le(e, t) {
|
|
|
521
514
|
return [o, Object.assign(Object.assign({}, t), o && typeof e == "object" ? e : null)];
|
|
522
515
|
}, [e]);
|
|
523
516
|
}
|
|
524
|
-
const
|
|
517
|
+
const Xt = (e) => {
|
|
525
518
|
const t = st(void 0);
|
|
526
519
|
return lt(() => {
|
|
527
520
|
t.current = e;
|
|
528
521
|
}), t.current;
|
|
529
|
-
},
|
|
522
|
+
}, Jt = (e, t, o) => at(() => e === !0 ? {
|
|
530
523
|
title: t ?? o
|
|
531
524
|
} : /* @__PURE__ */ ct(e) ? {
|
|
532
525
|
title: e
|
|
@@ -535,7 +528,7 @@ const Gt = (e) => {
|
|
|
535
528
|
}, e) : {
|
|
536
529
|
title: e
|
|
537
530
|
}, [e, t, o]);
|
|
538
|
-
var
|
|
531
|
+
var Gt = function(e, t) {
|
|
539
532
|
var o = {};
|
|
540
533
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
541
534
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
@@ -552,14 +545,14 @@ const ye = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
552
545
|
children: c,
|
|
553
546
|
direction: d,
|
|
554
547
|
style: f
|
|
555
|
-
} = e, a =
|
|
548
|
+
} = e, a = Gt(e, ["prefixCls", "component", "className", "rootClassName", "setContentRef", "children", "direction", "style"]), {
|
|
556
549
|
getPrefixCls: m,
|
|
557
550
|
direction: g,
|
|
558
551
|
typography: b
|
|
559
|
-
} = r.useContext(De),
|
|
552
|
+
} = r.useContext(De), j = d ?? g, S = u ? Le(t, u) : t, C = m("typography", o);
|
|
560
553
|
process.env.NODE_ENV !== "production" && Y("Typography").deprecated(!u, "setContentRef", "ref");
|
|
561
554
|
const [y, I, H] = ze(C), O = Z(C, b == null ? void 0 : b.className, {
|
|
562
|
-
[`${C}-rtl`]:
|
|
555
|
+
[`${C}-rtl`]: j === "rtl"
|
|
563
556
|
}, i, s, I, H), w = Object.assign(Object.assign({}, b == null ? void 0 : b.style), f);
|
|
564
557
|
return y(
|
|
565
558
|
// @ts-expect-error: Expression produces a union type that is too complex to represent.
|
|
@@ -571,13 +564,13 @@ const ye = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
571
564
|
);
|
|
572
565
|
});
|
|
573
566
|
process.env.NODE_ENV !== "production" && (ye.displayName = "Typography");
|
|
574
|
-
function
|
|
567
|
+
function je(e) {
|
|
575
568
|
return e === !1 ? [!1, !1] : Array.isArray(e) ? e : [e];
|
|
576
569
|
}
|
|
577
570
|
function ae(e, t, o) {
|
|
578
571
|
return e === !0 || e === void 0 ? t : e || o && t;
|
|
579
572
|
}
|
|
580
|
-
function
|
|
573
|
+
function Qt(e) {
|
|
581
574
|
const t = document.createElement("em");
|
|
582
575
|
e.appendChild(t), process.env.NODE_ENV !== "production" && (t.className = "ant-typography-css-ellipsis-content-measure");
|
|
583
576
|
const o = e.getBoundingClientRect(), n = t.getBoundingClientRect();
|
|
@@ -585,7 +578,7 @@ function Zt(e) {
|
|
|
585
578
|
o.left > n.left || n.right > o.right || // Vertical out of range
|
|
586
579
|
o.top > n.top || n.bottom > o.bottom;
|
|
587
580
|
}
|
|
588
|
-
const be = (e) => ["string", "number"].includes(typeof e),
|
|
581
|
+
const be = (e) => ["string", "number"].includes(typeof e), Yt = (e) => {
|
|
589
582
|
let {
|
|
590
583
|
prefixCls: t,
|
|
591
584
|
copied: o,
|
|
@@ -597,10 +590,10 @@ const be = (e) => ["string", "number"].includes(typeof e), en = (e) => {
|
|
|
597
590
|
onCopy: d,
|
|
598
591
|
loading: f
|
|
599
592
|
} = e;
|
|
600
|
-
const a =
|
|
593
|
+
const a = je(s), m = je(u), {
|
|
601
594
|
copied: g,
|
|
602
595
|
copy: b
|
|
603
|
-
} = n ?? {},
|
|
596
|
+
} = n ?? {}, j = o ? g : b, S = ae(a[o ? 1 : 0], j), C = typeof S == "string" ? S : j;
|
|
604
597
|
return /* @__PURE__ */ r.createElement(ge, {
|
|
605
598
|
title: S
|
|
606
599
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
@@ -612,7 +605,7 @@ const be = (e) => ["string", "number"].includes(typeof e), en = (e) => {
|
|
|
612
605
|
onClick: d,
|
|
613
606
|
"aria-label": C,
|
|
614
607
|
tabIndex: c
|
|
615
|
-
}, o ? ae(m[1], /* @__PURE__ */ r.createElement(
|
|
608
|
+
}, o ? ae(m[1], /* @__PURE__ */ r.createElement(vt, null), !0) : ae(m[0], f ? /* @__PURE__ */ r.createElement(xt, null) : /* @__PURE__ */ r.createElement(Pe, null), !0)));
|
|
616
609
|
}, G = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
617
610
|
let {
|
|
618
611
|
style: o,
|
|
@@ -637,8 +630,8 @@ const be = (e) => ["string", "number"].includes(typeof e), en = (e) => {
|
|
|
637
630
|
backgroundColor: "rgba(255, 0, 0, 0.65)"
|
|
638
631
|
}, o)
|
|
639
632
|
}, n);
|
|
640
|
-
}),
|
|
641
|
-
function
|
|
633
|
+
}), Zt = (e) => e.reduce((t, o) => t + (be(o) ? String(o).length : 1), 0);
|
|
634
|
+
function Ne(e, t) {
|
|
642
635
|
let o = 0;
|
|
643
636
|
const n = [];
|
|
644
637
|
for (let i = 0; i < e.length; i += 1) {
|
|
@@ -658,7 +651,7 @@ const ce = 0, de = 1, ue = 2, pe = 3, _e = 4, Q = {
|
|
|
658
651
|
overflow: "hidden",
|
|
659
652
|
WebkitBoxOrient: "vertical"
|
|
660
653
|
};
|
|
661
|
-
function
|
|
654
|
+
function en(e) {
|
|
662
655
|
const {
|
|
663
656
|
enableMeasure: t,
|
|
664
657
|
width: o,
|
|
@@ -668,7 +661,7 @@ function nn(e) {
|
|
|
668
661
|
expanded: u,
|
|
669
662
|
miscDeps: c,
|
|
670
663
|
onEllipsis: d
|
|
671
|
-
} = e, f = r.useMemo(() => Me(n), [n]), a = r.useMemo(() =>
|
|
664
|
+
} = e, f = r.useMemo(() => Me(n), [n]), a = r.useMemo(() => Zt(f), [n]), m = r.useMemo(() => i(f, !1), [n]), [g, b] = r.useState(null), j = r.useRef(null), S = r.useRef(null), C = r.useRef(null), y = r.useRef(null), I = r.useRef(null), [H, O] = r.useState(!1), [w, _] = r.useState(ce), [v, z] = r.useState(0), [U, V] = r.useState(null);
|
|
672
665
|
W(() => {
|
|
673
666
|
_(t && o && a ? de : ce);
|
|
674
667
|
}, [o, n, s, t, f]), W(() => {
|
|
@@ -676,7 +669,7 @@ function nn(e) {
|
|
|
676
669
|
if (w === de) {
|
|
677
670
|
_(ue);
|
|
678
671
|
const T = S.current && getComputedStyle(S.current).whiteSpace;
|
|
679
|
-
|
|
672
|
+
V(T);
|
|
680
673
|
} else if (w === ue) {
|
|
681
674
|
const T = !!(!((E = C.current) === null || E === void 0) && E.isExceed());
|
|
682
675
|
_(T ? pe : _e), b(T ? [0, a] : null), O(T);
|
|
@@ -693,7 +686,7 @@ function nn(e) {
|
|
|
693
686
|
var E;
|
|
694
687
|
const [h, x] = g || [0, 0];
|
|
695
688
|
if (h !== x) {
|
|
696
|
-
const T = (((E =
|
|
689
|
+
const T = (((E = j.current) === null || E === void 0 ? void 0 : E.getHeight()) || 0) > v;
|
|
697
690
|
let $ = M;
|
|
698
691
|
x - h === 1 && ($ = T ? h : x), b(T ? [h, $] : [$, x]);
|
|
699
692
|
}
|
|
@@ -709,7 +702,7 @@ function nn(e) {
|
|
|
709
702
|
})
|
|
710
703
|
}, E);
|
|
711
704
|
}
|
|
712
|
-
return i(u ? f :
|
|
705
|
+
return i(u ? f : Ne(f, g[0]), H);
|
|
713
706
|
}, [u, w, g, f].concat(ft(c))), k = {
|
|
714
707
|
width: o,
|
|
715
708
|
margin: 0,
|
|
@@ -735,15 +728,15 @@ function nn(e) {
|
|
|
735
728
|
style: Object.assign(Object.assign({}, k), {
|
|
736
729
|
top: 400
|
|
737
730
|
}),
|
|
738
|
-
ref:
|
|
739
|
-
}, i(
|
|
731
|
+
ref: j
|
|
732
|
+
}, i(Ne(f, M), !0)), w === de && /* @__PURE__ */ r.createElement("span", {
|
|
740
733
|
style: {
|
|
741
734
|
whiteSpace: "inherit"
|
|
742
735
|
},
|
|
743
736
|
ref: S
|
|
744
737
|
}));
|
|
745
738
|
}
|
|
746
|
-
const
|
|
739
|
+
const Be = (e) => {
|
|
747
740
|
let {
|
|
748
741
|
enableEllipsis: t,
|
|
749
742
|
isEllipsis: o,
|
|
@@ -754,15 +747,15 @@ const Ve = (e) => {
|
|
|
754
747
|
open: o ? void 0 : !1
|
|
755
748
|
}, i), n);
|
|
756
749
|
};
|
|
757
|
-
process.env.NODE_ENV !== "production" && (
|
|
758
|
-
var
|
|
750
|
+
process.env.NODE_ENV !== "production" && (Be.displayName = "EllipsisTooltip");
|
|
751
|
+
var tn = function(e, t) {
|
|
759
752
|
var o = {};
|
|
760
753
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
761
754
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
762
755
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
763
756
|
return o;
|
|
764
757
|
};
|
|
765
|
-
function
|
|
758
|
+
function nn(e, t) {
|
|
766
759
|
let {
|
|
767
760
|
mark: o,
|
|
768
761
|
code: n,
|
|
@@ -777,7 +770,7 @@ function rn(e, t) {
|
|
|
777
770
|
}
|
|
778
771
|
return a("strong", u), a("u", i), a("del", s), a("code", n), a("mark", o), a("kbd", c), a("i", d), f;
|
|
779
772
|
}
|
|
780
|
-
const
|
|
773
|
+
const on = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
781
774
|
var o;
|
|
782
775
|
const {
|
|
783
776
|
prefixCls: n,
|
|
@@ -791,17 +784,17 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
791
784
|
copyable: m,
|
|
792
785
|
component: g,
|
|
793
786
|
title: b
|
|
794
|
-
} = e,
|
|
787
|
+
} = e, j = tn(e, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), {
|
|
795
788
|
getPrefixCls: S,
|
|
796
789
|
direction: C
|
|
797
|
-
} = r.useContext(De), [y] =
|
|
790
|
+
} = r.useContext(De), [y] = yt("Text"), I = r.useRef(null), H = r.useRef(null), O = S("typography", n), w = ke(j, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), [_, v] = le(a), [z, U] = Oe(!1, {
|
|
798
791
|
value: v.editing
|
|
799
792
|
}), {
|
|
800
|
-
triggerType:
|
|
793
|
+
triggerType: V = ["icon"]
|
|
801
794
|
} = v, M = (l) => {
|
|
802
795
|
var p;
|
|
803
796
|
l && ((p = v.onStart) === null || p === void 0 || p.call(v)), U(l);
|
|
804
|
-
}, F =
|
|
797
|
+
}, F = Xt(z);
|
|
805
798
|
W(() => {
|
|
806
799
|
var l;
|
|
807
800
|
!z && F && ((l = H.current) === null || l === void 0 || l.focus());
|
|
@@ -818,30 +811,30 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
818
811
|
copied: T,
|
|
819
812
|
copyLoading: $,
|
|
820
813
|
onClick: ne
|
|
821
|
-
} =
|
|
814
|
+
} = qt({
|
|
822
815
|
copyConfig: P,
|
|
823
816
|
children: d
|
|
824
|
-
}), [q, oe] = r.useState(!1), [Ee,
|
|
817
|
+
}), [q, oe] = r.useState(!1), [Ee, Ve] = r.useState(!1), [he, We] = r.useState(!1), [ve, Ue] = r.useState(!1), [Fe, Ke] = r.useState(!0), [B, R] = le(f, {
|
|
825
818
|
expandable: !1,
|
|
826
819
|
symbol: (l) => l ? y == null ? void 0 : y.collapse : y == null ? void 0 : y.expand
|
|
827
820
|
}), [A, qe] = Oe(R.defaultExpanded || !1, {
|
|
828
821
|
value: R.expanded
|
|
829
|
-
}),
|
|
822
|
+
}), N = B && (!A || R.expandable === "collapsible"), {
|
|
830
823
|
rows: K = 1
|
|
831
824
|
} = R, X = r.useMemo(() => (
|
|
832
825
|
// Disable ellipsis
|
|
833
|
-
|
|
826
|
+
N && // Provide suffix
|
|
834
827
|
(R.suffix !== void 0 || R.onEllipsis || // Can't use css ellipsis since we need to provide the place for button
|
|
835
828
|
R.expandable || _ || x)
|
|
836
|
-
), [
|
|
829
|
+
), [N, R, _, x]);
|
|
837
830
|
W(() => {
|
|
838
|
-
|
|
839
|
-
}, [X,
|
|
840
|
-
const [D, Xe] = r.useState(
|
|
831
|
+
B && !X && (oe(we("webkitLineClamp")), Ve(we("textOverflow")));
|
|
832
|
+
}, [X, B]);
|
|
833
|
+
const [D, Xe] = r.useState(N), xe = r.useMemo(() => X ? !1 : K === 1 ? Ee : q, [X, Ee, q]);
|
|
841
834
|
W(() => {
|
|
842
|
-
Xe(xe &&
|
|
843
|
-
}, [xe,
|
|
844
|
-
const Se =
|
|
835
|
+
Xe(xe && N);
|
|
836
|
+
}, [xe, N]);
|
|
837
|
+
const Se = N && (D ? ve : he), Je = N && K === 1 && D, re = N && K > 1 && D, Ge = (l, p) => {
|
|
845
838
|
var L;
|
|
846
839
|
qe(p.expanded), (L = R.onExpand) === null || L === void 0 || L.call(R, l, p);
|
|
847
840
|
}, [Ce, Qe] = r.useState(0), Ye = (l) => {
|
|
@@ -855,13 +848,13 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
855
848
|
};
|
|
856
849
|
r.useEffect(() => {
|
|
857
850
|
const l = I.current;
|
|
858
|
-
if (
|
|
859
|
-
const p =
|
|
851
|
+
if (B && D && l) {
|
|
852
|
+
const p = Qt(l);
|
|
860
853
|
ve !== p && Ue(p);
|
|
861
854
|
}
|
|
862
|
-
}, [
|
|
855
|
+
}, [B, D, d, re, Fe, Ce]), r.useEffect(() => {
|
|
863
856
|
const l = I.current;
|
|
864
|
-
if (typeof IntersectionObserver > "u" || !l || !D || !
|
|
857
|
+
if (typeof IntersectionObserver > "u" || !l || !D || !N)
|
|
865
858
|
return;
|
|
866
859
|
const p = new IntersectionObserver(() => {
|
|
867
860
|
Ke(!!l.offsetParent);
|
|
@@ -869,13 +862,13 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
869
862
|
return p.observe(l), () => {
|
|
870
863
|
p.disconnect();
|
|
871
864
|
};
|
|
872
|
-
}, [D,
|
|
873
|
-
const ie =
|
|
874
|
-
if (!(!
|
|
865
|
+
}, [D, N]);
|
|
866
|
+
const ie = Jt(R.tooltip, v.text, d), J = r.useMemo(() => {
|
|
867
|
+
if (!(!B || D))
|
|
875
868
|
return [v.text, d, b, ie.title].find(be);
|
|
876
|
-
}, [
|
|
869
|
+
}, [B, D, b, ie.title, Se]);
|
|
877
870
|
if (z)
|
|
878
|
-
return /* @__PURE__ */ r.createElement(
|
|
871
|
+
return /* @__PURE__ */ r.createElement(At, {
|
|
879
872
|
value: (o = v.text) !== null && o !== void 0 ? o : typeof d == "string" ? d : "",
|
|
880
873
|
onSave: E,
|
|
881
874
|
onCancel: h,
|
|
@@ -911,7 +904,7 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
911
904
|
tooltip: p,
|
|
912
905
|
tabIndex: L
|
|
913
906
|
} = v, se = Me(p)[0] || (y == null ? void 0 : y.edit), it = typeof se == "string" ? se : "";
|
|
914
|
-
return
|
|
907
|
+
return V.includes("icon") ? /* @__PURE__ */ r.createElement(ge, {
|
|
915
908
|
key: "edit",
|
|
916
909
|
title: p === !1 ? "" : se
|
|
917
910
|
}, /* @__PURE__ */ r.createElement("button", {
|
|
@@ -924,7 +917,7 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
924
917
|
}, l || /* @__PURE__ */ r.createElement(Ae, {
|
|
925
918
|
role: "button"
|
|
926
919
|
}))) : null;
|
|
927
|
-
}, nt = () => x ? /* @__PURE__ */ r.createElement(
|
|
920
|
+
}, nt = () => x ? /* @__PURE__ */ r.createElement(Yt, Object.assign({
|
|
928
921
|
key: "copy"
|
|
929
922
|
}, P, {
|
|
930
923
|
prefixCls: O,
|
|
@@ -936,19 +929,19 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
936
929
|
})) : null, ot = (l) => [l && et(), tt(), nt()], rt = (l) => [l && !A && /* @__PURE__ */ r.createElement("span", {
|
|
937
930
|
"aria-hidden": !0,
|
|
938
931
|
key: "ellipsis"
|
|
939
|
-
},
|
|
940
|
-
return /* @__PURE__ */ r.createElement(
|
|
932
|
+
}, on), R.suffix, ot(l)];
|
|
933
|
+
return /* @__PURE__ */ r.createElement(gt, {
|
|
941
934
|
onResize: Ye,
|
|
942
|
-
disabled: !
|
|
943
|
-
}, (l) => /* @__PURE__ */ r.createElement(
|
|
935
|
+
disabled: !N
|
|
936
|
+
}, (l) => /* @__PURE__ */ r.createElement(Be, {
|
|
944
937
|
tooltipProps: ie,
|
|
945
|
-
enableEllipsis:
|
|
938
|
+
enableEllipsis: N,
|
|
946
939
|
isEllipsis: Se
|
|
947
940
|
}, /* @__PURE__ */ r.createElement(ye, Object.assign({
|
|
948
941
|
className: Z({
|
|
949
942
|
[`${O}-${u}`]: u,
|
|
950
943
|
[`${O}-disabled`]: c,
|
|
951
|
-
[`${O}-ellipsis`]:
|
|
944
|
+
[`${O}-ellipsis`]: B,
|
|
952
945
|
[`${O}-ellipsis-single-line`]: Je,
|
|
953
946
|
[`${O}-ellipsis-multiple-line`]: re
|
|
954
947
|
}, i),
|
|
@@ -959,34 +952,34 @@ const sn = "...", ee = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
959
952
|
component: g,
|
|
960
953
|
ref: Le(l, I, t),
|
|
961
954
|
direction: C,
|
|
962
|
-
onClick:
|
|
955
|
+
onClick: V.includes("text") ? k : void 0,
|
|
963
956
|
"aria-label": J == null ? void 0 : J.toString(),
|
|
964
957
|
title: b
|
|
965
|
-
}, w), /* @__PURE__ */ r.createElement(
|
|
966
|
-
enableMeasure:
|
|
958
|
+
}, w), /* @__PURE__ */ r.createElement(en, {
|
|
959
|
+
enableMeasure: N && !D,
|
|
967
960
|
text: d,
|
|
968
961
|
rows: K,
|
|
969
962
|
width: Ce,
|
|
970
963
|
onEllipsis: Ze,
|
|
971
964
|
expanded: A,
|
|
972
965
|
miscDeps: [T, A, $, _, x, y]
|
|
973
|
-
}, (p, L) =>
|
|
966
|
+
}, (p, L) => nn(e, /* @__PURE__ */ r.createElement(r.Fragment, null, p.length > 0 && L && !A && J ? /* @__PURE__ */ r.createElement("span", {
|
|
974
967
|
key: "show-content",
|
|
975
968
|
"aria-hidden": !0
|
|
976
969
|
}, p) : p, rt(L)))))));
|
|
977
970
|
});
|
|
978
|
-
var
|
|
971
|
+
var rn = function(e, t) {
|
|
979
972
|
var o = {};
|
|
980
973
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
981
974
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
982
975
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
983
976
|
return o;
|
|
984
977
|
};
|
|
985
|
-
const
|
|
978
|
+
const sn = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
986
979
|
var {
|
|
987
980
|
ellipsis: o,
|
|
988
981
|
rel: n
|
|
989
|
-
} = e, i =
|
|
982
|
+
} = e, i = rn(e, ["ellipsis", "rel"]);
|
|
990
983
|
if (process.env.NODE_ENV !== "production") {
|
|
991
984
|
const u = Y("Typography.Link");
|
|
992
985
|
process.env.NODE_ENV !== "production" && u(typeof o != "object", "usage", "`ellipsis` only supports boolean value.");
|
|
@@ -999,22 +992,22 @@ const an = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
999
992
|
ellipsis: !!o,
|
|
1000
993
|
component: "a"
|
|
1001
994
|
}));
|
|
1002
|
-
}),
|
|
995
|
+
}), ln = /* @__PURE__ */ r.forwardRef((e, t) => /* @__PURE__ */ r.createElement(ee, Object.assign({
|
|
1003
996
|
ref: t
|
|
1004
997
|
}, e, {
|
|
1005
998
|
component: "div"
|
|
1006
999
|
})));
|
|
1007
|
-
var
|
|
1000
|
+
var an = function(e, t) {
|
|
1008
1001
|
var o = {};
|
|
1009
1002
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1010
1003
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1011
1004
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
1012
1005
|
return o;
|
|
1013
1006
|
};
|
|
1014
|
-
const
|
|
1007
|
+
const cn = (e, t) => {
|
|
1015
1008
|
var {
|
|
1016
1009
|
ellipsis: o
|
|
1017
|
-
} = e, n =
|
|
1010
|
+
} = e, n = an(e, ["ellipsis"]);
|
|
1018
1011
|
const i = r.useMemo(() => o && typeof o == "object" ? ke(o, ["expandable", "rows"]) : o, [o]);
|
|
1019
1012
|
if (process.env.NODE_ENV !== "production") {
|
|
1020
1013
|
const s = Y("Typography.Text");
|
|
@@ -1026,18 +1019,18 @@ const un = (e, t) => {
|
|
|
1026
1019
|
ellipsis: i,
|
|
1027
1020
|
component: "span"
|
|
1028
1021
|
}));
|
|
1029
|
-
},
|
|
1030
|
-
var
|
|
1022
|
+
}, dn = /* @__PURE__ */ r.forwardRef(cn);
|
|
1023
|
+
var un = function(e, t) {
|
|
1031
1024
|
var o = {};
|
|
1032
1025
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
|
|
1033
1026
|
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1034
1027
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
|
|
1035
1028
|
return o;
|
|
1036
1029
|
};
|
|
1037
|
-
const Ie = [1, 2, 3, 4, 5],
|
|
1030
|
+
const Ie = [1, 2, 3, 4, 5], pn = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
1038
1031
|
const {
|
|
1039
1032
|
level: o = 1
|
|
1040
|
-
} = e, n =
|
|
1033
|
+
} = e, n = un(e, ["level"]);
|
|
1041
1034
|
if (process.env.NODE_ENV !== "production") {
|
|
1042
1035
|
const s = Y("Typography.Title");
|
|
1043
1036
|
process.env.NODE_ENV !== "production" && s(Ie.includes(o), "usage", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.");
|
|
@@ -1049,10 +1042,10 @@ const Ie = [1, 2, 3, 4, 5], mn = /* @__PURE__ */ r.forwardRef((e, t) => {
|
|
|
1049
1042
|
component: i
|
|
1050
1043
|
}));
|
|
1051
1044
|
}), te = ye;
|
|
1052
|
-
te.Text =
|
|
1053
|
-
te.Link =
|
|
1054
|
-
te.Title =
|
|
1055
|
-
te.Paragraph =
|
|
1045
|
+
te.Text = dn;
|
|
1046
|
+
te.Link = sn;
|
|
1047
|
+
te.Title = pn;
|
|
1048
|
+
te.Paragraph = ln;
|
|
1056
1049
|
export {
|
|
1057
1050
|
te as T
|
|
1058
1051
|
};
|