@gobolt/genesis 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +468 -263
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +26 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { e as b } from "./presets-Djh_L_6R.js";
|
|
3
|
+
import { o as be } from "./omit-B_u6A-HL.js";
|
|
4
|
+
import { C as B, g as me, m as fe, r as pe, j as i, s as w, t as D, e as ye } from "./index-ByspLxrB.js";
|
|
5
|
+
import { u as he } from "./useSize-CPo2bUE3.js";
|
|
6
|
+
import { S as $e } from "./Skeleton-B3vg9CbL.js";
|
|
7
|
+
import { T as Se } from "./index-BTGF--50.js";
|
|
8
|
+
import "./index-DLdU7Tpd.js";
|
|
9
|
+
var ve = function(e, a) {
|
|
10
|
+
var r = {};
|
|
11
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
12
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
13
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
14
|
+
return r;
|
|
15
|
+
};
|
|
16
|
+
const _ = (e) => {
|
|
17
|
+
var {
|
|
18
|
+
prefixCls: a,
|
|
19
|
+
className: r,
|
|
20
|
+
hoverable: t = !0
|
|
21
|
+
} = e, n = ve(e, ["prefixCls", "className", "hoverable"]);
|
|
22
|
+
const {
|
|
23
|
+
getPrefixCls: l
|
|
24
|
+
} = o.useContext(B), g = l("card", a), m = b(`${g}-grid`, r, {
|
|
25
|
+
[`${g}-grid-hoverable`]: t
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ o.createElement("div", Object.assign({}, n, {
|
|
28
|
+
className: m
|
|
29
|
+
}));
|
|
30
|
+
}, Ce = (e) => {
|
|
31
|
+
const {
|
|
32
|
+
antCls: a,
|
|
33
|
+
componentCls: r,
|
|
34
|
+
headerHeight: t,
|
|
35
|
+
headerPadding: n,
|
|
36
|
+
tabsMarginBottom: l
|
|
37
|
+
} = e;
|
|
38
|
+
return Object.assign(Object.assign({
|
|
39
|
+
display: "flex",
|
|
40
|
+
justifyContent: "center",
|
|
41
|
+
flexDirection: "column",
|
|
42
|
+
minHeight: t,
|
|
43
|
+
marginBottom: -1,
|
|
44
|
+
padding: `0 ${i(n)}`,
|
|
45
|
+
color: e.colorTextHeading,
|
|
46
|
+
fontWeight: e.fontWeightStrong,
|
|
47
|
+
fontSize: e.headerFontSize,
|
|
48
|
+
background: e.headerBg,
|
|
49
|
+
borderBottom: `${i(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,
|
|
50
|
+
borderRadius: `${i(e.borderRadiusLG)} ${i(e.borderRadiusLG)} 0 0`
|
|
51
|
+
}, w()), {
|
|
52
|
+
"&-wrapper": {
|
|
53
|
+
width: "100%",
|
|
54
|
+
display: "flex",
|
|
55
|
+
alignItems: "center"
|
|
56
|
+
},
|
|
57
|
+
"&-title": Object.assign(Object.assign({
|
|
58
|
+
display: "inline-block",
|
|
59
|
+
flex: 1
|
|
60
|
+
}, D), {
|
|
61
|
+
[`
|
|
62
|
+
> ${r}-typography,
|
|
63
|
+
> ${r}-typography-edit-content
|
|
64
|
+
`]: {
|
|
65
|
+
insetInlineStart: 0,
|
|
66
|
+
marginTop: 0,
|
|
67
|
+
marginBottom: 0
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
[`${a}-tabs-top`]: {
|
|
71
|
+
clear: "both",
|
|
72
|
+
marginBottom: l,
|
|
73
|
+
color: e.colorText,
|
|
74
|
+
fontWeight: "normal",
|
|
75
|
+
fontSize: e.fontSize,
|
|
76
|
+
"&-bar": {
|
|
77
|
+
borderBottom: `${i(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, xe = (e) => {
|
|
82
|
+
const {
|
|
83
|
+
cardPaddingBase: a,
|
|
84
|
+
colorBorderSecondary: r,
|
|
85
|
+
cardShadow: t,
|
|
86
|
+
lineWidth: n
|
|
87
|
+
} = e;
|
|
88
|
+
return {
|
|
89
|
+
width: "33.33%",
|
|
90
|
+
padding: a,
|
|
91
|
+
border: 0,
|
|
92
|
+
borderRadius: 0,
|
|
93
|
+
boxShadow: `
|
|
94
|
+
${i(n)} 0 0 0 ${r},
|
|
95
|
+
0 ${i(n)} 0 0 ${r},
|
|
96
|
+
${i(n)} ${i(n)} 0 0 ${r},
|
|
97
|
+
${i(n)} 0 0 0 ${r} inset,
|
|
98
|
+
0 ${i(n)} 0 0 ${r} inset;
|
|
99
|
+
`,
|
|
100
|
+
transition: `all ${e.motionDurationMid}`,
|
|
101
|
+
"&-hoverable:hover": {
|
|
102
|
+
position: "relative",
|
|
103
|
+
zIndex: 1,
|
|
104
|
+
boxShadow: t
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}, Oe = (e) => {
|
|
108
|
+
const {
|
|
109
|
+
componentCls: a,
|
|
110
|
+
iconCls: r,
|
|
111
|
+
actionsLiMargin: t,
|
|
112
|
+
cardActionsIconSize: n,
|
|
113
|
+
colorBorderSecondary: l,
|
|
114
|
+
actionsBg: g
|
|
115
|
+
} = e;
|
|
116
|
+
return Object.assign(Object.assign({
|
|
117
|
+
margin: 0,
|
|
118
|
+
padding: 0,
|
|
119
|
+
listStyle: "none",
|
|
120
|
+
background: g,
|
|
121
|
+
borderTop: `${i(e.lineWidth)} ${e.lineType} ${l}`,
|
|
122
|
+
display: "flex",
|
|
123
|
+
borderRadius: `0 0 ${i(e.borderRadiusLG)} ${i(e.borderRadiusLG)}`
|
|
124
|
+
}, w()), {
|
|
125
|
+
"& > li": {
|
|
126
|
+
margin: t,
|
|
127
|
+
color: e.colorTextDescription,
|
|
128
|
+
textAlign: "center",
|
|
129
|
+
"> span": {
|
|
130
|
+
position: "relative",
|
|
131
|
+
display: "block",
|
|
132
|
+
minWidth: e.calc(e.cardActionsIconSize).mul(2).equal(),
|
|
133
|
+
fontSize: e.fontSize,
|
|
134
|
+
lineHeight: e.lineHeight,
|
|
135
|
+
cursor: "pointer",
|
|
136
|
+
"&:hover": {
|
|
137
|
+
color: e.colorPrimary,
|
|
138
|
+
transition: `color ${e.motionDurationMid}`
|
|
139
|
+
},
|
|
140
|
+
[`a:not(${a}-btn), > ${r}`]: {
|
|
141
|
+
display: "inline-block",
|
|
142
|
+
width: "100%",
|
|
143
|
+
color: e.colorTextDescription,
|
|
144
|
+
lineHeight: i(e.fontHeight),
|
|
145
|
+
transition: `color ${e.motionDurationMid}`,
|
|
146
|
+
"&:hover": {
|
|
147
|
+
color: e.colorPrimary
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
[`> ${r}`]: {
|
|
151
|
+
fontSize: n,
|
|
152
|
+
lineHeight: i(e.calc(n).mul(e.lineHeight).equal())
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"&:not(:last-child)": {
|
|
156
|
+
borderInlineEnd: `${i(e.lineWidth)} ${e.lineType} ${l}`
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}, je = (e) => Object.assign(Object.assign({
|
|
161
|
+
margin: `${i(e.calc(e.marginXXS).mul(-1).equal())} 0`,
|
|
162
|
+
display: "flex"
|
|
163
|
+
}, w()), {
|
|
164
|
+
"&-avatar": {
|
|
165
|
+
paddingInlineEnd: e.padding
|
|
166
|
+
},
|
|
167
|
+
"&-detail": {
|
|
168
|
+
overflow: "hidden",
|
|
169
|
+
flex: 1,
|
|
170
|
+
"> div:not(:last-child)": {
|
|
171
|
+
marginBottom: e.marginXS
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"&-title": Object.assign({
|
|
175
|
+
color: e.colorTextHeading,
|
|
176
|
+
fontWeight: e.fontWeightStrong,
|
|
177
|
+
fontSize: e.fontSizeLG
|
|
178
|
+
}, D),
|
|
179
|
+
"&-description": {
|
|
180
|
+
color: e.colorTextDescription
|
|
181
|
+
}
|
|
182
|
+
}), ze = (e) => {
|
|
183
|
+
const {
|
|
184
|
+
componentCls: a,
|
|
185
|
+
colorFillAlter: r,
|
|
186
|
+
headerPadding: t,
|
|
187
|
+
bodyPadding: n
|
|
188
|
+
} = e;
|
|
189
|
+
return {
|
|
190
|
+
[`${a}-head`]: {
|
|
191
|
+
padding: `0 ${i(t)}`,
|
|
192
|
+
background: r,
|
|
193
|
+
"&-title": {
|
|
194
|
+
fontSize: e.fontSize
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
[`${a}-body`]: {
|
|
198
|
+
padding: `${i(e.padding)} ${i(n)}`
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}, Pe = (e) => {
|
|
202
|
+
const {
|
|
203
|
+
componentCls: a
|
|
204
|
+
} = e;
|
|
205
|
+
return {
|
|
206
|
+
overflow: "hidden",
|
|
207
|
+
[`${a}-body`]: {
|
|
208
|
+
userSelect: "none"
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
}, we = (e) => {
|
|
212
|
+
const {
|
|
213
|
+
componentCls: a,
|
|
214
|
+
cardShadow: r,
|
|
215
|
+
cardHeadPadding: t,
|
|
216
|
+
colorBorderSecondary: n,
|
|
217
|
+
boxShadowTertiary: l,
|
|
218
|
+
bodyPadding: g,
|
|
219
|
+
extraColor: m
|
|
220
|
+
} = e;
|
|
221
|
+
return {
|
|
222
|
+
[a]: Object.assign(Object.assign({}, pe(e)), {
|
|
223
|
+
position: "relative",
|
|
224
|
+
background: e.colorBgContainer,
|
|
225
|
+
borderRadius: e.borderRadiusLG,
|
|
226
|
+
[`&:not(${a}-bordered)`]: {
|
|
227
|
+
boxShadow: l
|
|
228
|
+
},
|
|
229
|
+
[`${a}-head`]: Ce(e),
|
|
230
|
+
[`${a}-extra`]: {
|
|
231
|
+
// https://stackoverflow.com/a/22429853/3040605
|
|
232
|
+
marginInlineStart: "auto",
|
|
233
|
+
color: m,
|
|
234
|
+
fontWeight: "normal",
|
|
235
|
+
fontSize: e.fontSize
|
|
236
|
+
},
|
|
237
|
+
[`${a}-body`]: Object.assign({
|
|
238
|
+
padding: g,
|
|
239
|
+
borderRadius: `0 0 ${i(e.borderRadiusLG)} ${i(e.borderRadiusLG)}`
|
|
240
|
+
}, w()),
|
|
241
|
+
[`${a}-grid`]: xe(e),
|
|
242
|
+
[`${a}-cover`]: {
|
|
243
|
+
"> *": {
|
|
244
|
+
display: "block",
|
|
245
|
+
width: "100%",
|
|
246
|
+
borderRadius: `${i(e.borderRadiusLG)} ${i(e.borderRadiusLG)} 0 0`
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
[`${a}-actions`]: Oe(e),
|
|
250
|
+
[`${a}-meta`]: je(e)
|
|
251
|
+
}),
|
|
252
|
+
[`${a}-bordered`]: {
|
|
253
|
+
border: `${i(e.lineWidth)} ${e.lineType} ${n}`,
|
|
254
|
+
[`${a}-cover`]: {
|
|
255
|
+
marginTop: -1,
|
|
256
|
+
marginInlineStart: -1,
|
|
257
|
+
marginInlineEnd: -1
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
[`${a}-hoverable`]: {
|
|
261
|
+
cursor: "pointer",
|
|
262
|
+
transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
|
|
263
|
+
"&:hover": {
|
|
264
|
+
borderColor: "transparent",
|
|
265
|
+
boxShadow: r
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
[`${a}-contain-grid`]: {
|
|
269
|
+
borderRadius: `${i(e.borderRadiusLG)} ${i(e.borderRadiusLG)} 0 0 `,
|
|
270
|
+
[`${a}-body`]: {
|
|
271
|
+
display: "flex",
|
|
272
|
+
flexWrap: "wrap"
|
|
273
|
+
},
|
|
274
|
+
[`&:not(${a}-loading) ${a}-body`]: {
|
|
275
|
+
marginBlockStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
276
|
+
marginInlineStart: e.calc(e.lineWidth).mul(-1).equal(),
|
|
277
|
+
padding: 0
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
[`${a}-contain-tabs`]: {
|
|
281
|
+
[`> div${a}-head`]: {
|
|
282
|
+
minHeight: 0,
|
|
283
|
+
[`${a}-head-title, ${a}-extra`]: {
|
|
284
|
+
paddingTop: t
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
[`${a}-type-inner`]: ze(e),
|
|
289
|
+
[`${a}-loading`]: Pe(e),
|
|
290
|
+
[`${a}-rtl`]: {
|
|
291
|
+
direction: "rtl"
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
}, Ne = (e) => {
|
|
295
|
+
const {
|
|
296
|
+
componentCls: a,
|
|
297
|
+
bodyPaddingSM: r,
|
|
298
|
+
headerPaddingSM: t,
|
|
299
|
+
headerHeightSM: n,
|
|
300
|
+
headerFontSizeSM: l
|
|
301
|
+
} = e;
|
|
302
|
+
return {
|
|
303
|
+
[`${a}-small`]: {
|
|
304
|
+
[`> ${a}-head`]: {
|
|
305
|
+
minHeight: n,
|
|
306
|
+
padding: `0 ${i(t)}`,
|
|
307
|
+
fontSize: l,
|
|
308
|
+
[`> ${a}-head-wrapper`]: {
|
|
309
|
+
[`> ${a}-extra`]: {
|
|
310
|
+
fontSize: e.fontSize
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
[`> ${a}-body`]: {
|
|
315
|
+
padding: r
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
[`${a}-small${a}-contain-tabs`]: {
|
|
319
|
+
[`> ${a}-head`]: {
|
|
320
|
+
[`${a}-head-title, ${a}-extra`]: {
|
|
321
|
+
paddingTop: 0,
|
|
322
|
+
display: "flex",
|
|
323
|
+
alignItems: "center"
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
}, Ee = (e) => {
|
|
329
|
+
var a, r;
|
|
330
|
+
return {
|
|
331
|
+
headerBg: "transparent",
|
|
332
|
+
headerFontSize: e.fontSizeLG,
|
|
333
|
+
headerFontSizeSM: e.fontSize,
|
|
334
|
+
headerHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
|
|
335
|
+
headerHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
|
|
336
|
+
actionsBg: e.colorBgContainer,
|
|
337
|
+
actionsLiMargin: `${e.paddingSM}px 0`,
|
|
338
|
+
tabsMarginBottom: -e.padding - e.lineWidth,
|
|
339
|
+
extraColor: e.colorText,
|
|
340
|
+
bodyPaddingSM: 12,
|
|
341
|
+
// Fixed padding.
|
|
342
|
+
headerPaddingSM: 12,
|
|
343
|
+
bodyPadding: (a = e.bodyPadding) !== null && a !== void 0 ? a : e.paddingLG,
|
|
344
|
+
headerPadding: (r = e.headerPadding) !== null && r !== void 0 ? r : e.paddingLG
|
|
345
|
+
};
|
|
346
|
+
}, Te = me("Card", (e) => {
|
|
347
|
+
const a = fe(e, {
|
|
348
|
+
cardShadow: e.boxShadowCard,
|
|
349
|
+
cardHeadPadding: e.padding,
|
|
350
|
+
cardPaddingBase: e.paddingLG,
|
|
351
|
+
cardActionsIconSize: e.fontSize
|
|
352
|
+
});
|
|
353
|
+
return [
|
|
354
|
+
// Style
|
|
355
|
+
we(a),
|
|
356
|
+
// Size
|
|
357
|
+
Ne(a)
|
|
358
|
+
];
|
|
359
|
+
}, Ee);
|
|
360
|
+
var W = function(e, a) {
|
|
361
|
+
var r = {};
|
|
362
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
363
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
364
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
365
|
+
return r;
|
|
366
|
+
};
|
|
367
|
+
const Be = (e) => {
|
|
368
|
+
const {
|
|
369
|
+
actionClasses: a,
|
|
370
|
+
actions: r = [],
|
|
371
|
+
actionStyle: t
|
|
372
|
+
} = e;
|
|
373
|
+
return /* @__PURE__ */ o.createElement("ul", {
|
|
374
|
+
className: a,
|
|
375
|
+
style: t
|
|
376
|
+
}, r.map((n, l) => {
|
|
377
|
+
const g = `action-${l}`;
|
|
378
|
+
return /* @__PURE__ */ o.createElement("li", {
|
|
379
|
+
style: {
|
|
380
|
+
width: `${100 / r.length}%`
|
|
381
|
+
},
|
|
382
|
+
key: g
|
|
383
|
+
}, /* @__PURE__ */ o.createElement("span", null, n));
|
|
384
|
+
}));
|
|
385
|
+
}, Ge = /* @__PURE__ */ o.forwardRef((e, a) => {
|
|
386
|
+
const {
|
|
387
|
+
prefixCls: r,
|
|
388
|
+
className: t,
|
|
389
|
+
rootClassName: n,
|
|
390
|
+
style: l,
|
|
391
|
+
extra: g,
|
|
392
|
+
headStyle: m = {},
|
|
393
|
+
bodyStyle: f = {},
|
|
394
|
+
title: $,
|
|
395
|
+
loading: C,
|
|
396
|
+
bordered: x = !0,
|
|
397
|
+
size: O,
|
|
398
|
+
type: j,
|
|
399
|
+
cover: L,
|
|
400
|
+
actions: z,
|
|
401
|
+
tabList: S,
|
|
402
|
+
children: P,
|
|
403
|
+
activeTabKey: M,
|
|
404
|
+
defaultActiveTabKey: A,
|
|
405
|
+
tabBarExtraContent: K,
|
|
406
|
+
hoverable: F,
|
|
407
|
+
tabProps: q = {},
|
|
408
|
+
classNames: N,
|
|
409
|
+
styles: E
|
|
410
|
+
} = e, V = W(e, ["prefixCls", "className", "rootClassName", "style", "extra", "headStyle", "bodyStyle", "title", "loading", "bordered", "size", "type", "cover", "actions", "tabList", "children", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "classNames", "styles"]), {
|
|
411
|
+
getPrefixCls: X,
|
|
412
|
+
direction: U,
|
|
413
|
+
card: u
|
|
414
|
+
} = o.useContext(B);
|
|
415
|
+
if (process.env.NODE_ENV !== "production") {
|
|
416
|
+
const c = ye("Card");
|
|
417
|
+
[["headStyle", "styles.header"], ["bodyStyle", "styles.body"]].forEach((d) => {
|
|
418
|
+
let [h, T] = d;
|
|
419
|
+
c.deprecated(!(h in e), h, T);
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
const J = (c) => {
|
|
423
|
+
var d;
|
|
424
|
+
(d = e.onTabChange) === null || d === void 0 || d.call(e, c);
|
|
425
|
+
}, p = (c) => {
|
|
426
|
+
var d;
|
|
427
|
+
return b((d = u == null ? void 0 : u.classNames) === null || d === void 0 ? void 0 : d[c], N == null ? void 0 : N[c]);
|
|
428
|
+
}, y = (c) => {
|
|
429
|
+
var d;
|
|
430
|
+
return Object.assign(Object.assign({}, (d = u == null ? void 0 : u.styles) === null || d === void 0 ? void 0 : d[c]), E == null ? void 0 : E[c]);
|
|
431
|
+
}, Q = o.useMemo(() => {
|
|
432
|
+
let c = !1;
|
|
433
|
+
return o.Children.forEach(P, (d) => {
|
|
434
|
+
(d == null ? void 0 : d.type) === _ && (c = !0);
|
|
435
|
+
}), c;
|
|
436
|
+
}, [P]), s = X("card", r), [Y, Z, k] = Te(s), ee = /* @__PURE__ */ o.createElement($e, {
|
|
437
|
+
loading: !0,
|
|
438
|
+
active: !0,
|
|
439
|
+
paragraph: {
|
|
440
|
+
rows: 4
|
|
441
|
+
},
|
|
442
|
+
title: !1
|
|
443
|
+
}, P), H = M !== void 0, ae = Object.assign(Object.assign({}, q), {
|
|
444
|
+
[H ? "activeKey" : "defaultActiveKey"]: H ? M : A,
|
|
445
|
+
tabBarExtraContent: K
|
|
446
|
+
});
|
|
447
|
+
let R;
|
|
448
|
+
const v = he(O), te = !v || v === "default" ? "large" : v, I = S ? /* @__PURE__ */ o.createElement(Se, Object.assign({
|
|
449
|
+
size: te
|
|
450
|
+
}, ae, {
|
|
451
|
+
className: `${s}-head-tabs`,
|
|
452
|
+
onChange: J,
|
|
453
|
+
items: S.map((c) => {
|
|
454
|
+
var {
|
|
455
|
+
tab: d
|
|
456
|
+
} = c, h = W(c, ["tab"]);
|
|
457
|
+
return Object.assign({
|
|
458
|
+
label: d
|
|
459
|
+
}, h);
|
|
460
|
+
})
|
|
461
|
+
})) : null;
|
|
462
|
+
if ($ || g || I) {
|
|
463
|
+
const c = b(`${s}-head`, p("header")), d = b(`${s}-head-title`, p("title")), h = b(`${s}-extra`, p("extra")), T = Object.assign(Object.assign({}, m), y("header"));
|
|
464
|
+
R = /* @__PURE__ */ o.createElement("div", {
|
|
465
|
+
className: c,
|
|
466
|
+
style: T
|
|
467
|
+
}, /* @__PURE__ */ o.createElement("div", {
|
|
468
|
+
className: `${s}-head-wrapper`
|
|
469
|
+
}, $ && /* @__PURE__ */ o.createElement("div", {
|
|
470
|
+
className: d,
|
|
471
|
+
style: y("title")
|
|
472
|
+
}, $), g && /* @__PURE__ */ o.createElement("div", {
|
|
473
|
+
className: h,
|
|
474
|
+
style: y("extra")
|
|
475
|
+
}, g)), I);
|
|
476
|
+
}
|
|
477
|
+
const ne = b(`${s}-cover`, p("cover")), re = L ? /* @__PURE__ */ o.createElement("div", {
|
|
478
|
+
className: ne,
|
|
479
|
+
style: y("cover")
|
|
480
|
+
}, L) : null, ie = b(`${s}-body`, p("body")), oe = Object.assign(Object.assign({}, f), y("body")), de = /* @__PURE__ */ o.createElement("div", {
|
|
481
|
+
className: ie,
|
|
482
|
+
style: oe
|
|
483
|
+
}, C ? ee : P), se = b(`${s}-actions`, p("actions")), le = z != null && z.length ? /* @__PURE__ */ o.createElement(Be, {
|
|
484
|
+
actionClasses: se,
|
|
485
|
+
actionStyle: y("actions"),
|
|
486
|
+
actions: z
|
|
487
|
+
}) : null, ce = be(V, ["onTabChange"]), ge = b(s, u == null ? void 0 : u.className, {
|
|
488
|
+
[`${s}-loading`]: C,
|
|
489
|
+
[`${s}-bordered`]: x,
|
|
490
|
+
[`${s}-hoverable`]: F,
|
|
491
|
+
[`${s}-contain-grid`]: Q,
|
|
492
|
+
[`${s}-contain-tabs`]: S == null ? void 0 : S.length,
|
|
493
|
+
[`${s}-${v}`]: v,
|
|
494
|
+
[`${s}-type-${j}`]: !!j,
|
|
495
|
+
[`${s}-rtl`]: U === "rtl"
|
|
496
|
+
}, t, n, Z, k), ue = Object.assign(Object.assign({}, u == null ? void 0 : u.style), l);
|
|
497
|
+
return Y(/* @__PURE__ */ o.createElement("div", Object.assign({
|
|
498
|
+
ref: a
|
|
499
|
+
}, ce, {
|
|
500
|
+
className: ge,
|
|
501
|
+
style: ue
|
|
502
|
+
}), R, re, de, le));
|
|
503
|
+
});
|
|
504
|
+
var Le = function(e, a) {
|
|
505
|
+
var r = {};
|
|
506
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && a.indexOf(t) < 0 && (r[t] = e[t]);
|
|
507
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, t = Object.getOwnPropertySymbols(e); n < t.length; n++)
|
|
508
|
+
a.indexOf(t[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[n]) && (r[t[n]] = e[t[n]]);
|
|
509
|
+
return r;
|
|
510
|
+
};
|
|
511
|
+
const Me = (e) => {
|
|
512
|
+
const {
|
|
513
|
+
prefixCls: a,
|
|
514
|
+
className: r,
|
|
515
|
+
avatar: t,
|
|
516
|
+
title: n,
|
|
517
|
+
description: l
|
|
518
|
+
} = e, g = Le(e, ["prefixCls", "className", "avatar", "title", "description"]), {
|
|
519
|
+
getPrefixCls: m
|
|
520
|
+
} = o.useContext(B), f = m("card", a), $ = b(`${f}-meta`, r), C = t ? /* @__PURE__ */ o.createElement("div", {
|
|
521
|
+
className: `${f}-meta-avatar`
|
|
522
|
+
}, t) : null, x = n ? /* @__PURE__ */ o.createElement("div", {
|
|
523
|
+
className: `${f}-meta-title`
|
|
524
|
+
}, n) : null, O = l ? /* @__PURE__ */ o.createElement("div", {
|
|
525
|
+
className: `${f}-meta-description`
|
|
526
|
+
}, l) : null, j = x || O ? /* @__PURE__ */ o.createElement("div", {
|
|
527
|
+
className: `${f}-meta-detail`
|
|
528
|
+
}, x, O) : null;
|
|
529
|
+
return /* @__PURE__ */ o.createElement("div", Object.assign({}, g, {
|
|
530
|
+
className: $
|
|
531
|
+
}), C, j);
|
|
532
|
+
}, G = Ge;
|
|
533
|
+
G.Grid = _;
|
|
534
|
+
G.Meta = Me;
|
|
535
|
+
process.env.NODE_ENV !== "production" && (G.displayName = "Card");
|
|
536
|
+
export {
|
|
537
|
+
G as C
|
|
538
|
+
};
|