@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,793 @@
|
|
|
1
|
+
import { d as me } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import * as s from "react";
|
|
3
|
+
import { useRef as re, useEffect as ye } from "react";
|
|
4
|
+
import { R as he } from "../../CheckCircleFilled-BKgizvyl.js";
|
|
5
|
+
import { R as Ce } from "../../CheckOutlined-cEBrx_Ag.js";
|
|
6
|
+
import { R as ve } from "../../CloseCircleFilled-B9e7yFwo.js";
|
|
7
|
+
import { R as be } from "../../CloseOutlined-ogxnm7Oy.js";
|
|
8
|
+
import { c as $e, a as Se, f as V, _ as ne, g as ke, d as xe, e as M, p as ee, F as Ee } from "../../presets-Djh_L_6R.js";
|
|
9
|
+
import { o as Pe } from "../../omit-B_u6A-HL.js";
|
|
10
|
+
import { g as we, m as Ne, r as Oe, j as Ie, e as le, C as _e } from "../../index-ByspLxrB.js";
|
|
11
|
+
import { T as De } from "../../index-CqqwGTME.js";
|
|
12
|
+
import { K as je } from "../../Keyframes-sPZXYuXt.js";
|
|
13
|
+
import "../../index-DLdU7Tpd.js";
|
|
14
|
+
var We = {
|
|
15
|
+
percent: 0,
|
|
16
|
+
prefixCls: "rc-progress",
|
|
17
|
+
strokeColor: "#2db7f5",
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeWidth: 1,
|
|
20
|
+
trailColor: "#D9D9D9",
|
|
21
|
+
trailWidth: 1,
|
|
22
|
+
gapPosition: "bottom"
|
|
23
|
+
}, Ae = function() {
|
|
24
|
+
var t = re([]), r = re(null);
|
|
25
|
+
return ye(function() {
|
|
26
|
+
var n = Date.now(), o = !1;
|
|
27
|
+
t.current.forEach(function(a) {
|
|
28
|
+
if (a) {
|
|
29
|
+
o = !0;
|
|
30
|
+
var i = a.style;
|
|
31
|
+
i.transitionDuration = ".3s, .3s, .3s, .06s", r.current && n - r.current < 100 && (i.transitionDuration = "0s, 0s");
|
|
32
|
+
}
|
|
33
|
+
}), o && (r.current = Date.now());
|
|
34
|
+
}), t.current;
|
|
35
|
+
};
|
|
36
|
+
process.env.NODE_ENV;
|
|
37
|
+
var oe = 0, Le = process.env.NODE_ENV !== "test" && $e();
|
|
38
|
+
function Re() {
|
|
39
|
+
var e;
|
|
40
|
+
return Le ? (e = oe, oe += 1) : e = "TEST_OR_SSR", e;
|
|
41
|
+
}
|
|
42
|
+
const Te = function(e) {
|
|
43
|
+
var t = s.useState(), r = Se(t, 2), n = r[0], o = r[1];
|
|
44
|
+
return s.useEffect(function() {
|
|
45
|
+
o("rc_progress_".concat(Re()));
|
|
46
|
+
}, []), e || n;
|
|
47
|
+
};
|
|
48
|
+
var se = function(t) {
|
|
49
|
+
var r = t.bg, n = t.children;
|
|
50
|
+
return /* @__PURE__ */ s.createElement("div", {
|
|
51
|
+
style: {
|
|
52
|
+
width: "100%",
|
|
53
|
+
height: "100%",
|
|
54
|
+
background: r
|
|
55
|
+
}
|
|
56
|
+
}, n);
|
|
57
|
+
};
|
|
58
|
+
function ie(e, t) {
|
|
59
|
+
return Object.keys(e).map(function(r) {
|
|
60
|
+
var n = parseFloat(r), o = "".concat(Math.floor(n * t), "%");
|
|
61
|
+
return "".concat(e[r], " ").concat(o);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
var de = /* @__PURE__ */ s.forwardRef(function(e, t) {
|
|
65
|
+
var r = e.prefixCls, n = e.color, o = e.gradientId, a = e.radius, i = e.style, l = e.ptg, c = e.strokeLinecap, f = e.strokeWidth, d = e.size, g = e.gapDegree, p = n && V(n) === "object", v = p ? "#FFF" : void 0, m = d / 2, C = /* @__PURE__ */ s.createElement("circle", {
|
|
66
|
+
className: "".concat(r, "-circle-path"),
|
|
67
|
+
r: a,
|
|
68
|
+
cx: m,
|
|
69
|
+
cy: m,
|
|
70
|
+
stroke: v,
|
|
71
|
+
strokeLinecap: c,
|
|
72
|
+
strokeWidth: f,
|
|
73
|
+
opacity: l === 0 ? 0 : 1,
|
|
74
|
+
style: i,
|
|
75
|
+
ref: t
|
|
76
|
+
});
|
|
77
|
+
if (!p)
|
|
78
|
+
return C;
|
|
79
|
+
var y = "".concat(o, "-conic"), b = g ? "".concat(180 + g / 2, "deg") : "0deg", h = ie(n, (360 - g) / 360), I = ie(n, 1), P = "conic-gradient(from ".concat(b, ", ").concat(h.join(", "), ")"), $ = "linear-gradient(to ".concat(g ? "bottom" : "top", ", ").concat(I.join(", "), ")");
|
|
80
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("mask", {
|
|
81
|
+
id: y
|
|
82
|
+
}, C), /* @__PURE__ */ s.createElement("foreignObject", {
|
|
83
|
+
x: 0,
|
|
84
|
+
y: 0,
|
|
85
|
+
width: d,
|
|
86
|
+
height: d,
|
|
87
|
+
mask: "url(#".concat(y, ")")
|
|
88
|
+
}, /* @__PURE__ */ s.createElement(se, {
|
|
89
|
+
bg: $
|
|
90
|
+
}, /* @__PURE__ */ s.createElement(se, {
|
|
91
|
+
bg: P
|
|
92
|
+
}))));
|
|
93
|
+
});
|
|
94
|
+
process.env.NODE_ENV !== "production" && (de.displayName = "PtgCircle");
|
|
95
|
+
var G = 100, J = function(t, r, n, o, a, i, l, c, f, d) {
|
|
96
|
+
var g = arguments.length > 10 && arguments[10] !== void 0 ? arguments[10] : 0, p = n / 100 * 360 * ((360 - i) / 360), v = i === 0 ? 0 : {
|
|
97
|
+
bottom: 0,
|
|
98
|
+
top: 180,
|
|
99
|
+
left: 90,
|
|
100
|
+
right: -90
|
|
101
|
+
}[l], m = (100 - o) / 100 * r;
|
|
102
|
+
f === "round" && o !== 100 && (m += d / 2, m >= r && (m = r - 0.01));
|
|
103
|
+
var C = G / 2;
|
|
104
|
+
return {
|
|
105
|
+
stroke: typeof c == "string" ? c : void 0,
|
|
106
|
+
strokeDasharray: "".concat(r, "px ").concat(t),
|
|
107
|
+
strokeDashoffset: m + g,
|
|
108
|
+
transform: "rotate(".concat(a + p + v, "deg)"),
|
|
109
|
+
transformOrigin: "".concat(C, "px ").concat(C, "px"),
|
|
110
|
+
transition: "stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",
|
|
111
|
+
fillOpacity: 0
|
|
112
|
+
};
|
|
113
|
+
}, Me = ["id", "prefixCls", "steps", "strokeWidth", "trailWidth", "gapDegree", "gapPosition", "trailColor", "strokeLinecap", "style", "className", "strokeColor", "percent"];
|
|
114
|
+
function ce(e) {
|
|
115
|
+
var t = e ?? [];
|
|
116
|
+
return Array.isArray(t) ? t : [t];
|
|
117
|
+
}
|
|
118
|
+
var ue = function(t) {
|
|
119
|
+
var r = ne(ne({}, We), t), n = r.id, o = r.prefixCls, a = r.steps, i = r.strokeWidth, l = r.trailWidth, c = r.gapDegree, f = c === void 0 ? 0 : c, d = r.gapPosition, g = r.trailColor, p = r.strokeLinecap, v = r.style, m = r.className, C = r.strokeColor, y = r.percent, b = ke(r, Me), h = G / 2, I = Te(n), P = "".concat(I, "-gradient"), $ = h - i / 2, S = Math.PI * 2 * $, O = f > 0 ? 90 + f / 2 : -90, x = S * ((360 - f) / 360), w = V(a) === "object" ? a : {
|
|
120
|
+
count: a,
|
|
121
|
+
gap: 2
|
|
122
|
+
}, u = w.count, B = w.gap, z = ce(y), j = ce(C), W = j.find(function(N) {
|
|
123
|
+
return N && V(N) === "object";
|
|
124
|
+
}), A = W && V(W) === "object", _ = A ? "butt" : p, F = J(S, x, 0, 100, O, f, d, g, _, i), H = Ae(), k = function() {
|
|
125
|
+
var R = 0;
|
|
126
|
+
return z.map(function(L, T) {
|
|
127
|
+
var Y = j[T] || j[j.length - 1], X = J(S, x, R, L, O, f, d, Y, _, i);
|
|
128
|
+
return R += L, /* @__PURE__ */ s.createElement(de, {
|
|
129
|
+
key: T,
|
|
130
|
+
color: Y,
|
|
131
|
+
ptg: L,
|
|
132
|
+
radius: $,
|
|
133
|
+
prefixCls: o,
|
|
134
|
+
gradientId: P,
|
|
135
|
+
style: X,
|
|
136
|
+
strokeLinecap: _,
|
|
137
|
+
strokeWidth: i,
|
|
138
|
+
gapDegree: f,
|
|
139
|
+
ref: function(Z) {
|
|
140
|
+
H[T] = Z;
|
|
141
|
+
},
|
|
142
|
+
size: G
|
|
143
|
+
});
|
|
144
|
+
}).reverse();
|
|
145
|
+
}, E = function() {
|
|
146
|
+
var R = Math.round(u * (z[0] / 100)), L = 100 / u, T = 0;
|
|
147
|
+
return new Array(u).fill(null).map(function(Y, X) {
|
|
148
|
+
var K = X <= R - 1 ? j[0] : g, Z = K && V(K) === "object" ? "url(#".concat(P, ")") : void 0, te = J(S, x, T, L, O, f, d, K, "butt", i, B);
|
|
149
|
+
return T += (x - te.strokeDashoffset + B) * 100 / x, /* @__PURE__ */ s.createElement("circle", {
|
|
150
|
+
key: X,
|
|
151
|
+
className: "".concat(o, "-circle-path"),
|
|
152
|
+
r: $,
|
|
153
|
+
cx: h,
|
|
154
|
+
cy: h,
|
|
155
|
+
stroke: Z,
|
|
156
|
+
strokeWidth: i,
|
|
157
|
+
opacity: 1,
|
|
158
|
+
style: te,
|
|
159
|
+
ref: function(pe) {
|
|
160
|
+
H[X] = pe;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
return /* @__PURE__ */ s.createElement("svg", xe({
|
|
166
|
+
className: M("".concat(o, "-circle"), m),
|
|
167
|
+
viewBox: "0 0 ".concat(G, " ").concat(G),
|
|
168
|
+
style: v,
|
|
169
|
+
id: n,
|
|
170
|
+
role: "presentation"
|
|
171
|
+
}, b), !u && /* @__PURE__ */ s.createElement("circle", {
|
|
172
|
+
className: "".concat(o, "-circle-trail"),
|
|
173
|
+
r: $,
|
|
174
|
+
cx: h,
|
|
175
|
+
cy: h,
|
|
176
|
+
stroke: g,
|
|
177
|
+
strokeLinecap: _,
|
|
178
|
+
strokeWidth: l || i,
|
|
179
|
+
style: F
|
|
180
|
+
}), u ? E() : k());
|
|
181
|
+
};
|
|
182
|
+
process.env.NODE_ENV !== "production" && (ue.displayName = "Circle");
|
|
183
|
+
function D(e) {
|
|
184
|
+
return !e || e < 0 ? 0 : e > 100 ? 100 : e;
|
|
185
|
+
}
|
|
186
|
+
function U(e) {
|
|
187
|
+
let {
|
|
188
|
+
success: t,
|
|
189
|
+
successPercent: r
|
|
190
|
+
} = e, n = r;
|
|
191
|
+
return t && "progress" in t && (n = t.progress), t && "percent" in t && (n = t.percent), n;
|
|
192
|
+
}
|
|
193
|
+
const Be = (e) => {
|
|
194
|
+
let {
|
|
195
|
+
percent: t,
|
|
196
|
+
success: r,
|
|
197
|
+
successPercent: n
|
|
198
|
+
} = e;
|
|
199
|
+
const o = D(U({
|
|
200
|
+
success: r,
|
|
201
|
+
successPercent: n
|
|
202
|
+
}));
|
|
203
|
+
return [o, D(D(t) - o)];
|
|
204
|
+
}, Fe = (e) => {
|
|
205
|
+
let {
|
|
206
|
+
success: t = {},
|
|
207
|
+
strokeColor: r
|
|
208
|
+
} = e;
|
|
209
|
+
const {
|
|
210
|
+
strokeColor: n
|
|
211
|
+
} = t;
|
|
212
|
+
return [n || ee.green, r || null];
|
|
213
|
+
}, Q = (e, t, r) => {
|
|
214
|
+
var n, o, a, i;
|
|
215
|
+
let l = -1, c = -1;
|
|
216
|
+
if (t === "step") {
|
|
217
|
+
const f = r.steps, d = r.strokeWidth;
|
|
218
|
+
typeof e == "string" || typeof e > "u" ? (l = e === "small" ? 2 : 14, c = d ?? 8) : typeof e == "number" ? [l, c] = [e, e] : [l = 14, c = 8] = Array.isArray(e) ? e : [e.width, e.height], l *= f;
|
|
219
|
+
} else if (t === "line") {
|
|
220
|
+
const f = r == null ? void 0 : r.strokeWidth;
|
|
221
|
+
typeof e == "string" || typeof e > "u" ? c = f || (e === "small" ? 6 : 8) : typeof e == "number" ? [l, c] = [e, e] : [l = -1, c = 8] = Array.isArray(e) ? e : [e.width, e.height];
|
|
222
|
+
} else (t === "circle" || t === "dashboard") && (typeof e == "string" || typeof e > "u" ? [l, c] = e === "small" ? [60, 60] : [120, 120] : typeof e == "number" ? [l, c] = [e, e] : Array.isArray(e) && (l = (o = (n = e[0]) !== null && n !== void 0 ? n : e[1]) !== null && o !== void 0 ? o : 120, c = (i = (a = e[0]) !== null && a !== void 0 ? a : e[1]) !== null && i !== void 0 ? i : 120));
|
|
223
|
+
return [l, c];
|
|
224
|
+
}, Xe = 3, Ve = (e) => Xe / e * 100, Ge = (e) => {
|
|
225
|
+
const {
|
|
226
|
+
prefixCls: t,
|
|
227
|
+
trailColor: r = null,
|
|
228
|
+
strokeLinecap: n = "round",
|
|
229
|
+
gapPosition: o,
|
|
230
|
+
gapDegree: a,
|
|
231
|
+
width: i = 120,
|
|
232
|
+
type: l,
|
|
233
|
+
children: c,
|
|
234
|
+
success: f,
|
|
235
|
+
size: d = i,
|
|
236
|
+
steps: g
|
|
237
|
+
} = e, [p, v] = Q(d, "circle");
|
|
238
|
+
let {
|
|
239
|
+
strokeWidth: m
|
|
240
|
+
} = e;
|
|
241
|
+
m === void 0 && (m = Math.max(Ve(p), 6));
|
|
242
|
+
const C = {
|
|
243
|
+
width: p,
|
|
244
|
+
height: v,
|
|
245
|
+
fontSize: p * 0.15 + 6
|
|
246
|
+
}, y = s.useMemo(() => {
|
|
247
|
+
if (a || a === 0)
|
|
248
|
+
return a;
|
|
249
|
+
if (l === "dashboard")
|
|
250
|
+
return 75;
|
|
251
|
+
}, [a, l]), b = Be(e), h = o || l === "dashboard" && "bottom" || void 0, I = Object.prototype.toString.call(e.strokeColor) === "[object Object]", P = Fe({
|
|
252
|
+
success: f,
|
|
253
|
+
strokeColor: e.strokeColor
|
|
254
|
+
}), $ = M(`${t}-inner`, {
|
|
255
|
+
[`${t}-circle-gradient`]: I
|
|
256
|
+
}), S = /* @__PURE__ */ s.createElement(ue, {
|
|
257
|
+
steps: g,
|
|
258
|
+
percent: g ? b[1] : b,
|
|
259
|
+
strokeWidth: m,
|
|
260
|
+
trailWidth: m,
|
|
261
|
+
strokeColor: g ? P[1] : P,
|
|
262
|
+
strokeLinecap: n,
|
|
263
|
+
trailColor: r,
|
|
264
|
+
prefixCls: t,
|
|
265
|
+
gapDegree: y,
|
|
266
|
+
gapPosition: h
|
|
267
|
+
}), O = p <= 20, x = /* @__PURE__ */ s.createElement("div", {
|
|
268
|
+
className: $,
|
|
269
|
+
style: C
|
|
270
|
+
}, S, !O && c);
|
|
271
|
+
return O ? /* @__PURE__ */ s.createElement(De, {
|
|
272
|
+
title: c
|
|
273
|
+
}, x) : x;
|
|
274
|
+
}, q = "--progress-line-stroke-color", fe = "--progress-percent", ae = (e) => {
|
|
275
|
+
const t = e ? "100%" : "-100%";
|
|
276
|
+
return new je(`antProgress${e ? "RTL" : "LTR"}Active`, {
|
|
277
|
+
"0%": {
|
|
278
|
+
transform: `translateX(${t}) scaleX(0)`,
|
|
279
|
+
opacity: 0.1
|
|
280
|
+
},
|
|
281
|
+
"20%": {
|
|
282
|
+
transform: `translateX(${t}) scaleX(0)`,
|
|
283
|
+
opacity: 0.5
|
|
284
|
+
},
|
|
285
|
+
to: {
|
|
286
|
+
transform: "translateX(0) scaleX(1)",
|
|
287
|
+
opacity: 0
|
|
288
|
+
}
|
|
289
|
+
});
|
|
290
|
+
}, ze = (e) => {
|
|
291
|
+
const {
|
|
292
|
+
componentCls: t,
|
|
293
|
+
iconCls: r
|
|
294
|
+
} = e;
|
|
295
|
+
return {
|
|
296
|
+
[t]: Object.assign(Object.assign({}, Oe(e)), {
|
|
297
|
+
display: "inline-block",
|
|
298
|
+
"&-rtl": {
|
|
299
|
+
direction: "rtl"
|
|
300
|
+
},
|
|
301
|
+
"&-line": {
|
|
302
|
+
position: "relative",
|
|
303
|
+
width: "100%",
|
|
304
|
+
fontSize: e.fontSize
|
|
305
|
+
},
|
|
306
|
+
[`${t}-outer`]: {
|
|
307
|
+
display: "inline-flex",
|
|
308
|
+
alignItems: "center",
|
|
309
|
+
width: "100%"
|
|
310
|
+
},
|
|
311
|
+
[`${t}-inner`]: {
|
|
312
|
+
position: "relative",
|
|
313
|
+
display: "inline-block",
|
|
314
|
+
width: "100%",
|
|
315
|
+
flex: 1,
|
|
316
|
+
overflow: "hidden",
|
|
317
|
+
verticalAlign: "middle",
|
|
318
|
+
backgroundColor: e.remainingColor,
|
|
319
|
+
borderRadius: e.lineBorderRadius
|
|
320
|
+
},
|
|
321
|
+
[`${t}-inner:not(${t}-circle-gradient)`]: {
|
|
322
|
+
[`${t}-circle-path`]: {
|
|
323
|
+
stroke: e.defaultColor
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
[`${t}-success-bg, ${t}-bg`]: {
|
|
327
|
+
position: "relative",
|
|
328
|
+
background: e.defaultColor,
|
|
329
|
+
borderRadius: e.lineBorderRadius,
|
|
330
|
+
transition: `all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`
|
|
331
|
+
},
|
|
332
|
+
[`${t}-layout-bottom`]: {
|
|
333
|
+
display: "flex",
|
|
334
|
+
flexDirection: "column",
|
|
335
|
+
alignItems: "center",
|
|
336
|
+
justifyContent: "center",
|
|
337
|
+
[`${t}-text`]: {
|
|
338
|
+
width: "max-content",
|
|
339
|
+
marginInlineStart: 0,
|
|
340
|
+
marginTop: e.marginXXS
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
[`${t}-bg`]: {
|
|
344
|
+
overflow: "hidden",
|
|
345
|
+
"&::after": {
|
|
346
|
+
content: '""',
|
|
347
|
+
background: {
|
|
348
|
+
_multi_value_: !0,
|
|
349
|
+
value: ["inherit", `var(${q})`]
|
|
350
|
+
},
|
|
351
|
+
height: "100%",
|
|
352
|
+
width: `calc(1 / var(${fe}) * 100%)`,
|
|
353
|
+
display: "block"
|
|
354
|
+
},
|
|
355
|
+
[`&${t}-bg-inner`]: {
|
|
356
|
+
minWidth: "max-content",
|
|
357
|
+
"&::after": {
|
|
358
|
+
content: "none"
|
|
359
|
+
},
|
|
360
|
+
[`${t}-text-inner`]: {
|
|
361
|
+
color: e.colorWhite,
|
|
362
|
+
[`&${t}-text-bright`]: {
|
|
363
|
+
color: "rgba(0, 0, 0, 0.45)"
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
[`${t}-success-bg`]: {
|
|
369
|
+
position: "absolute",
|
|
370
|
+
insetBlockStart: 0,
|
|
371
|
+
insetInlineStart: 0,
|
|
372
|
+
backgroundColor: e.colorSuccess
|
|
373
|
+
},
|
|
374
|
+
[`${t}-text`]: {
|
|
375
|
+
display: "inline-block",
|
|
376
|
+
marginInlineStart: e.marginXS,
|
|
377
|
+
color: e.colorText,
|
|
378
|
+
lineHeight: 1,
|
|
379
|
+
width: "2em",
|
|
380
|
+
whiteSpace: "nowrap",
|
|
381
|
+
textAlign: "start",
|
|
382
|
+
verticalAlign: "middle",
|
|
383
|
+
wordBreak: "normal",
|
|
384
|
+
[r]: {
|
|
385
|
+
fontSize: e.fontSize
|
|
386
|
+
},
|
|
387
|
+
[`&${t}-text-outer`]: {
|
|
388
|
+
width: "max-content"
|
|
389
|
+
},
|
|
390
|
+
[`&${t}-text-outer${t}-text-start`]: {
|
|
391
|
+
width: "max-content",
|
|
392
|
+
marginInlineStart: 0,
|
|
393
|
+
marginInlineEnd: e.marginXS
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
[`${t}-text-inner`]: {
|
|
397
|
+
display: "flex",
|
|
398
|
+
justifyContent: "center",
|
|
399
|
+
alignItems: "center",
|
|
400
|
+
width: "100%",
|
|
401
|
+
height: "100%",
|
|
402
|
+
marginInlineStart: 0,
|
|
403
|
+
padding: `0 ${Ie(e.paddingXXS)}`,
|
|
404
|
+
[`&${t}-text-start`]: {
|
|
405
|
+
justifyContent: "start"
|
|
406
|
+
},
|
|
407
|
+
[`&${t}-text-end`]: {
|
|
408
|
+
justifyContent: "end"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
[`&${t}-status-active`]: {
|
|
412
|
+
[`${t}-bg::before`]: {
|
|
413
|
+
position: "absolute",
|
|
414
|
+
inset: 0,
|
|
415
|
+
backgroundColor: e.colorBgContainer,
|
|
416
|
+
borderRadius: e.lineBorderRadius,
|
|
417
|
+
opacity: 0,
|
|
418
|
+
animationName: ae(),
|
|
419
|
+
animationDuration: e.progressActiveMotionDuration,
|
|
420
|
+
animationTimingFunction: e.motionEaseOutQuint,
|
|
421
|
+
animationIterationCount: "infinite",
|
|
422
|
+
content: '""'
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
[`&${t}-rtl${t}-status-active`]: {
|
|
426
|
+
[`${t}-bg::before`]: {
|
|
427
|
+
animationName: ae(!0)
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
[`&${t}-status-exception`]: {
|
|
431
|
+
[`${t}-bg`]: {
|
|
432
|
+
backgroundColor: e.colorError
|
|
433
|
+
},
|
|
434
|
+
[`${t}-text`]: {
|
|
435
|
+
color: e.colorError
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]: {
|
|
439
|
+
[`${t}-circle-path`]: {
|
|
440
|
+
stroke: e.colorError
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
[`&${t}-status-success`]: {
|
|
444
|
+
[`${t}-bg`]: {
|
|
445
|
+
backgroundColor: e.colorSuccess
|
|
446
|
+
},
|
|
447
|
+
[`${t}-text`]: {
|
|
448
|
+
color: e.colorSuccess
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]: {
|
|
452
|
+
[`${t}-circle-path`]: {
|
|
453
|
+
stroke: e.colorSuccess
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
})
|
|
457
|
+
};
|
|
458
|
+
}, He = (e) => {
|
|
459
|
+
const {
|
|
460
|
+
componentCls: t,
|
|
461
|
+
iconCls: r
|
|
462
|
+
} = e;
|
|
463
|
+
return {
|
|
464
|
+
[t]: {
|
|
465
|
+
[`${t}-circle-trail`]: {
|
|
466
|
+
stroke: e.remainingColor
|
|
467
|
+
},
|
|
468
|
+
[`&${t}-circle ${t}-inner`]: {
|
|
469
|
+
position: "relative",
|
|
470
|
+
lineHeight: 1,
|
|
471
|
+
backgroundColor: "transparent"
|
|
472
|
+
},
|
|
473
|
+
[`&${t}-circle ${t}-text`]: {
|
|
474
|
+
position: "absolute",
|
|
475
|
+
insetBlockStart: "50%",
|
|
476
|
+
insetInlineStart: 0,
|
|
477
|
+
width: "100%",
|
|
478
|
+
margin: 0,
|
|
479
|
+
padding: 0,
|
|
480
|
+
color: e.circleTextColor,
|
|
481
|
+
fontSize: e.circleTextFontSize,
|
|
482
|
+
lineHeight: 1,
|
|
483
|
+
whiteSpace: "normal",
|
|
484
|
+
textAlign: "center",
|
|
485
|
+
transform: "translateY(-50%)",
|
|
486
|
+
[r]: {
|
|
487
|
+
fontSize: e.circleIconFontSize
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
[`${t}-circle&-status-exception`]: {
|
|
491
|
+
[`${t}-text`]: {
|
|
492
|
+
color: e.colorError
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
[`${t}-circle&-status-success`]: {
|
|
496
|
+
[`${t}-text`]: {
|
|
497
|
+
color: e.colorSuccess
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
[`${t}-inline-circle`]: {
|
|
502
|
+
lineHeight: 1,
|
|
503
|
+
[`${t}-inner`]: {
|
|
504
|
+
verticalAlign: "bottom"
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
}, Ke = (e) => {
|
|
509
|
+
const {
|
|
510
|
+
componentCls: t
|
|
511
|
+
} = e;
|
|
512
|
+
return {
|
|
513
|
+
[t]: {
|
|
514
|
+
[`${t}-steps`]: {
|
|
515
|
+
display: "inline-block",
|
|
516
|
+
"&-outer": {
|
|
517
|
+
display: "flex",
|
|
518
|
+
flexDirection: "row",
|
|
519
|
+
alignItems: "center"
|
|
520
|
+
},
|
|
521
|
+
"&-item": {
|
|
522
|
+
flexShrink: 0,
|
|
523
|
+
minWidth: e.progressStepMinWidth,
|
|
524
|
+
marginInlineEnd: e.progressStepMarginInlineEnd,
|
|
525
|
+
backgroundColor: e.remainingColor,
|
|
526
|
+
transition: `all ${e.motionDurationSlow}`,
|
|
527
|
+
"&-active": {
|
|
528
|
+
backgroundColor: e.defaultColor
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}, Ue = (e) => {
|
|
535
|
+
const {
|
|
536
|
+
componentCls: t,
|
|
537
|
+
iconCls: r
|
|
538
|
+
} = e;
|
|
539
|
+
return {
|
|
540
|
+
[t]: {
|
|
541
|
+
[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]: {
|
|
542
|
+
fontSize: e.fontSizeSM
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
}, qe = (e) => ({
|
|
547
|
+
circleTextColor: e.colorText,
|
|
548
|
+
defaultColor: e.colorInfo,
|
|
549
|
+
remainingColor: e.colorFillSecondary,
|
|
550
|
+
lineBorderRadius: 100,
|
|
551
|
+
// magic for capsule shape, should be a very large number
|
|
552
|
+
circleTextFontSize: "1em",
|
|
553
|
+
circleIconFontSize: `${e.fontSize / e.fontSizeSM}em`
|
|
554
|
+
}), Qe = we("Progress", (e) => {
|
|
555
|
+
const t = e.calc(e.marginXXS).div(2).equal(), r = Ne(e, {
|
|
556
|
+
progressStepMarginInlineEnd: t,
|
|
557
|
+
progressStepMinWidth: t,
|
|
558
|
+
progressActiveMotionDuration: "2.4s"
|
|
559
|
+
});
|
|
560
|
+
return [ze(r), He(r), Ke(r), Ue(r)];
|
|
561
|
+
}, qe);
|
|
562
|
+
var Ye = function(e, t) {
|
|
563
|
+
var r = {};
|
|
564
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
565
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
566
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
567
|
+
return r;
|
|
568
|
+
};
|
|
569
|
+
const Ze = (e) => {
|
|
570
|
+
let t = [];
|
|
571
|
+
return Object.keys(e).forEach((r) => {
|
|
572
|
+
const n = parseFloat(r.replace(/%/g, ""));
|
|
573
|
+
Number.isNaN(n) || t.push({
|
|
574
|
+
key: n,
|
|
575
|
+
value: e[r]
|
|
576
|
+
});
|
|
577
|
+
}), t = t.sort((r, n) => r.key - n.key), t.map((r) => {
|
|
578
|
+
let {
|
|
579
|
+
key: n,
|
|
580
|
+
value: o
|
|
581
|
+
} = r;
|
|
582
|
+
return `${o} ${n}%`;
|
|
583
|
+
}).join(", ");
|
|
584
|
+
}, Je = (e, t) => {
|
|
585
|
+
const {
|
|
586
|
+
from: r = ee.blue,
|
|
587
|
+
to: n = ee.blue,
|
|
588
|
+
direction: o = t === "rtl" ? "to left" : "to right"
|
|
589
|
+
} = e, a = Ye(e, ["from", "to", "direction"]);
|
|
590
|
+
if (Object.keys(a).length !== 0) {
|
|
591
|
+
const l = Ze(a), c = `linear-gradient(${o}, ${l})`;
|
|
592
|
+
return {
|
|
593
|
+
background: c,
|
|
594
|
+
[q]: c
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
const i = `linear-gradient(${o}, ${r}, ${n})`;
|
|
598
|
+
return {
|
|
599
|
+
background: i,
|
|
600
|
+
[q]: i
|
|
601
|
+
};
|
|
602
|
+
}, et = (e) => {
|
|
603
|
+
const {
|
|
604
|
+
prefixCls: t,
|
|
605
|
+
direction: r,
|
|
606
|
+
percent: n,
|
|
607
|
+
size: o,
|
|
608
|
+
strokeWidth: a,
|
|
609
|
+
strokeColor: i,
|
|
610
|
+
strokeLinecap: l = "round",
|
|
611
|
+
children: c,
|
|
612
|
+
trailColor: f = null,
|
|
613
|
+
percentPosition: d,
|
|
614
|
+
success: g
|
|
615
|
+
} = e, {
|
|
616
|
+
align: p,
|
|
617
|
+
type: v
|
|
618
|
+
} = d, m = i && typeof i != "string" ? Je(i, r) : {
|
|
619
|
+
[q]: i,
|
|
620
|
+
background: i
|
|
621
|
+
}, C = l === "square" || l === "butt" ? 0 : void 0, y = o ?? [-1, a || (o === "small" ? 6 : 8)], [b, h] = Q(y, "line", {
|
|
622
|
+
strokeWidth: a
|
|
623
|
+
});
|
|
624
|
+
process.env.NODE_ENV !== "production" && le("Progress").deprecated(!("strokeWidth" in e), "strokeWidth", "size");
|
|
625
|
+
const I = {
|
|
626
|
+
backgroundColor: f || void 0,
|
|
627
|
+
borderRadius: C
|
|
628
|
+
}, P = Object.assign(Object.assign({
|
|
629
|
+
width: `${D(n)}%`,
|
|
630
|
+
height: h,
|
|
631
|
+
borderRadius: C
|
|
632
|
+
}, m), {
|
|
633
|
+
[fe]: D(n) / 100
|
|
634
|
+
}), $ = U(e), S = {
|
|
635
|
+
width: `${D($)}%`,
|
|
636
|
+
height: h,
|
|
637
|
+
borderRadius: C,
|
|
638
|
+
backgroundColor: g == null ? void 0 : g.strokeColor
|
|
639
|
+
}, O = {
|
|
640
|
+
width: b < 0 ? "100%" : b
|
|
641
|
+
}, x = /* @__PURE__ */ s.createElement("div", {
|
|
642
|
+
className: `${t}-inner`,
|
|
643
|
+
style: I
|
|
644
|
+
}, /* @__PURE__ */ s.createElement("div", {
|
|
645
|
+
className: M(`${t}-bg`, `${t}-bg-${v}`),
|
|
646
|
+
style: P
|
|
647
|
+
}, v === "inner" && c), $ !== void 0 && /* @__PURE__ */ s.createElement("div", {
|
|
648
|
+
className: `${t}-success-bg`,
|
|
649
|
+
style: S
|
|
650
|
+
})), w = v === "outer" && p === "start", u = v === "outer" && p === "end";
|
|
651
|
+
return v === "outer" && p === "center" ? /* @__PURE__ */ s.createElement("div", {
|
|
652
|
+
className: `${t}-layout-bottom`
|
|
653
|
+
}, x, c) : /* @__PURE__ */ s.createElement("div", {
|
|
654
|
+
className: `${t}-outer`,
|
|
655
|
+
style: O
|
|
656
|
+
}, w && c, x, u && c);
|
|
657
|
+
}, tt = (e) => {
|
|
658
|
+
const {
|
|
659
|
+
size: t,
|
|
660
|
+
steps: r,
|
|
661
|
+
percent: n = 0,
|
|
662
|
+
strokeWidth: o = 8,
|
|
663
|
+
strokeColor: a,
|
|
664
|
+
trailColor: i = null,
|
|
665
|
+
prefixCls: l,
|
|
666
|
+
children: c
|
|
667
|
+
} = e, f = Math.round(r * (n / 100)), g = t ?? [t === "small" ? 2 : 14, o], [p, v] = Q(g, "step", {
|
|
668
|
+
steps: r,
|
|
669
|
+
strokeWidth: o
|
|
670
|
+
}), m = p / r, C = new Array(r);
|
|
671
|
+
for (let y = 0; y < r; y++) {
|
|
672
|
+
const b = Array.isArray(a) ? a[y] : a;
|
|
673
|
+
C[y] = /* @__PURE__ */ s.createElement("div", {
|
|
674
|
+
key: y,
|
|
675
|
+
className: M(`${l}-steps-item`, {
|
|
676
|
+
[`${l}-steps-item-active`]: y <= f - 1
|
|
677
|
+
}),
|
|
678
|
+
style: {
|
|
679
|
+
backgroundColor: y <= f - 1 ? b : i,
|
|
680
|
+
width: m,
|
|
681
|
+
height: v
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
return /* @__PURE__ */ s.createElement("div", {
|
|
686
|
+
className: `${l}-steps-outer`
|
|
687
|
+
}, C, c);
|
|
688
|
+
};
|
|
689
|
+
var rt = function(e, t) {
|
|
690
|
+
var r = {};
|
|
691
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
692
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, n = Object.getOwnPropertySymbols(e); o < n.length; o++)
|
|
693
|
+
t.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[o]) && (r[n[o]] = e[n[o]]);
|
|
694
|
+
return r;
|
|
695
|
+
};
|
|
696
|
+
const nt = ["normal", "exception", "active", "success"], ge = /* @__PURE__ */ s.forwardRef((e, t) => {
|
|
697
|
+
const {
|
|
698
|
+
prefixCls: r,
|
|
699
|
+
className: n,
|
|
700
|
+
rootClassName: o,
|
|
701
|
+
steps: a,
|
|
702
|
+
strokeColor: i,
|
|
703
|
+
percent: l = 0,
|
|
704
|
+
size: c = "default",
|
|
705
|
+
showInfo: f = !0,
|
|
706
|
+
type: d = "line",
|
|
707
|
+
status: g,
|
|
708
|
+
format: p,
|
|
709
|
+
style: v,
|
|
710
|
+
percentPosition: m = {}
|
|
711
|
+
} = e, C = rt(e, ["prefixCls", "className", "rootClassName", "steps", "strokeColor", "percent", "size", "showInfo", "type", "status", "format", "style", "percentPosition"]), {
|
|
712
|
+
align: y = "end",
|
|
713
|
+
type: b = "outer"
|
|
714
|
+
} = m, h = Array.isArray(i) ? i[0] : i, I = typeof i == "string" || Array.isArray(i) ? i : void 0, P = s.useMemo(() => {
|
|
715
|
+
if (h) {
|
|
716
|
+
const k = typeof h == "string" ? h : Object.values(h)[0];
|
|
717
|
+
return new Ee(k).isLight();
|
|
718
|
+
}
|
|
719
|
+
return !1;
|
|
720
|
+
}, [i]), $ = s.useMemo(() => {
|
|
721
|
+
var k, E;
|
|
722
|
+
const N = U(e);
|
|
723
|
+
return parseInt(N !== void 0 ? (k = N ?? 0) === null || k === void 0 ? void 0 : k.toString() : (E = l ?? 0) === null || E === void 0 ? void 0 : E.toString(), 10);
|
|
724
|
+
}, [l, e.success, e.successPercent]), S = s.useMemo(() => !nt.includes(g) && $ >= 100 ? "success" : g || "normal", [g, $]), {
|
|
725
|
+
getPrefixCls: O,
|
|
726
|
+
direction: x,
|
|
727
|
+
progress: w
|
|
728
|
+
} = s.useContext(_e), u = O("progress", r), [B, z, j] = Qe(u), W = d === "line", A = W && !a, _ = s.useMemo(() => {
|
|
729
|
+
if (!f)
|
|
730
|
+
return null;
|
|
731
|
+
const k = U(e);
|
|
732
|
+
let E;
|
|
733
|
+
const N = p || ((L) => `${L}%`), R = W && P && b === "inner";
|
|
734
|
+
return b === "inner" || p || S !== "exception" && S !== "success" ? E = N(D(l), D(k)) : S === "exception" ? E = W ? /* @__PURE__ */ s.createElement(ve, null) : /* @__PURE__ */ s.createElement(be, null) : S === "success" && (E = W ? /* @__PURE__ */ s.createElement(he, null) : /* @__PURE__ */ s.createElement(Ce, null)), /* @__PURE__ */ s.createElement("span", {
|
|
735
|
+
className: M(`${u}-text`, {
|
|
736
|
+
[`${u}-text-bright`]: R,
|
|
737
|
+
[`${u}-text-${y}`]: A,
|
|
738
|
+
[`${u}-text-${b}`]: A
|
|
739
|
+
}),
|
|
740
|
+
title: typeof E == "string" ? E : void 0
|
|
741
|
+
}, E);
|
|
742
|
+
}, [f, l, $, S, d, u, p]);
|
|
743
|
+
if (process.env.NODE_ENV !== "production") {
|
|
744
|
+
const k = le("Progress");
|
|
745
|
+
k.deprecated(!("successPercent" in e), "successPercent", "success.percent"), k.deprecated(!("width" in e), "width", "size"), (d === "circle" || d === "dashboard") && (Array.isArray(c) ? process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.') : typeof c == "object" && process.env.NODE_ENV !== "production" && k(!1, "usage", 'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')), e.success && "progress" in e.success && k.deprecated(!1, "success.progress", "success.percent");
|
|
746
|
+
}
|
|
747
|
+
let F;
|
|
748
|
+
d === "line" ? F = a ? /* @__PURE__ */ s.createElement(tt, Object.assign({}, e, {
|
|
749
|
+
strokeColor: I,
|
|
750
|
+
prefixCls: u,
|
|
751
|
+
steps: typeof a == "object" ? a.count : a
|
|
752
|
+
}), _) : /* @__PURE__ */ s.createElement(et, Object.assign({}, e, {
|
|
753
|
+
strokeColor: h,
|
|
754
|
+
prefixCls: u,
|
|
755
|
+
direction: x,
|
|
756
|
+
percentPosition: {
|
|
757
|
+
align: y,
|
|
758
|
+
type: b
|
|
759
|
+
}
|
|
760
|
+
}), _) : (d === "circle" || d === "dashboard") && (F = /* @__PURE__ */ s.createElement(Ge, Object.assign({}, e, {
|
|
761
|
+
strokeColor: h,
|
|
762
|
+
prefixCls: u,
|
|
763
|
+
progressStatus: S
|
|
764
|
+
}), _));
|
|
765
|
+
const H = M(u, `${u}-status-${S}`, {
|
|
766
|
+
[`${u}-${d === "dashboard" && "circle" || d}`]: d !== "line",
|
|
767
|
+
[`${u}-inline-circle`]: d === "circle" && Q(c, "circle")[0] <= 20,
|
|
768
|
+
[`${u}-line`]: A,
|
|
769
|
+
[`${u}-line-align-${y}`]: A,
|
|
770
|
+
[`${u}-line-position-${b}`]: A,
|
|
771
|
+
[`${u}-steps`]: a,
|
|
772
|
+
[`${u}-show-info`]: f,
|
|
773
|
+
[`${u}-${c}`]: typeof c == "string",
|
|
774
|
+
[`${u}-rtl`]: x === "rtl"
|
|
775
|
+
}, w == null ? void 0 : w.className, n, o, z, j);
|
|
776
|
+
return B(/* @__PURE__ */ s.createElement("div", Object.assign({
|
|
777
|
+
ref: t,
|
|
778
|
+
style: Object.assign(Object.assign({}, w == null ? void 0 : w.style), v),
|
|
779
|
+
className: H,
|
|
780
|
+
role: "progressbar",
|
|
781
|
+
"aria-valuenow": $,
|
|
782
|
+
"aria-valuemin": 0,
|
|
783
|
+
"aria-valuemax": 100
|
|
784
|
+
}, Pe(C, ["trailColor", "strokeWidth", "width", "gapDegree", "gapPosition", "strokeLinecap", "success", "successPercent"])), F));
|
|
785
|
+
});
|
|
786
|
+
process.env.NODE_ENV !== "production" && (ge.displayName = "Progress");
|
|
787
|
+
const ot = ({ colors: e }, t = "info") => "", Ct = me(ge)`
|
|
788
|
+
${({ theme: e, state: t }) => ot(e, t)}
|
|
789
|
+
`;
|
|
790
|
+
export {
|
|
791
|
+
Ct as Progress,
|
|
792
|
+
ot as getGenesisClass
|
|
793
|
+
};
|