@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,560 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { e as p } from "./presets-Djh_L_6R.js";
|
|
3
|
+
import { g as F, m as G, j as W, C as k, h as D } from "./index-ByspLxrB.js";
|
|
4
|
+
import { o as R } from "./omit-B_u6A-HL.js";
|
|
5
|
+
import { K as X } from "./Keyframes-sPZXYuXt.js";
|
|
6
|
+
import "./index-DLdU7Tpd.js";
|
|
7
|
+
const N = (e) => {
|
|
8
|
+
const {
|
|
9
|
+
prefixCls: t,
|
|
10
|
+
className: s,
|
|
11
|
+
style: n,
|
|
12
|
+
size: a,
|
|
13
|
+
shape: o
|
|
14
|
+
} = e, c = p({
|
|
15
|
+
[`${t}-lg`]: a === "large",
|
|
16
|
+
[`${t}-sm`]: a === "small"
|
|
17
|
+
}), l = p({
|
|
18
|
+
[`${t}-circle`]: o === "circle",
|
|
19
|
+
[`${t}-square`]: o === "square",
|
|
20
|
+
[`${t}-round`]: o === "round"
|
|
21
|
+
}), i = r.useMemo(() => typeof a == "number" ? {
|
|
22
|
+
width: a,
|
|
23
|
+
height: a,
|
|
24
|
+
lineHeight: `${a}px`
|
|
25
|
+
} : {}, [a]);
|
|
26
|
+
return /* @__PURE__ */ r.createElement("span", {
|
|
27
|
+
className: p(t, c, l, s),
|
|
28
|
+
style: Object.assign(Object.assign({}, i), n)
|
|
29
|
+
});
|
|
30
|
+
}, _ = new X("ant-skeleton-loading", {
|
|
31
|
+
"0%": {
|
|
32
|
+
backgroundPosition: "100% 50%"
|
|
33
|
+
},
|
|
34
|
+
"100%": {
|
|
35
|
+
backgroundPosition: "0 50%"
|
|
36
|
+
}
|
|
37
|
+
}), E = (e) => ({
|
|
38
|
+
height: e,
|
|
39
|
+
lineHeight: W(e)
|
|
40
|
+
}), f = (e) => Object.assign({
|
|
41
|
+
width: e
|
|
42
|
+
}, E(e)), K = (e) => ({
|
|
43
|
+
background: e.skeletonLoadingBackground,
|
|
44
|
+
backgroundSize: "400% 100%",
|
|
45
|
+
animationName: _,
|
|
46
|
+
animationDuration: e.skeletonLoadingMotionDuration,
|
|
47
|
+
animationTimingFunction: "ease",
|
|
48
|
+
animationIterationCount: "infinite"
|
|
49
|
+
}), I = (e, t) => Object.assign({
|
|
50
|
+
width: t(e).mul(5).equal(),
|
|
51
|
+
minWidth: t(e).mul(5).equal()
|
|
52
|
+
}, E(e)), J = (e) => {
|
|
53
|
+
const {
|
|
54
|
+
skeletonAvatarCls: t,
|
|
55
|
+
gradientFromColor: s,
|
|
56
|
+
controlHeight: n,
|
|
57
|
+
controlHeightLG: a,
|
|
58
|
+
controlHeightSM: o
|
|
59
|
+
} = e;
|
|
60
|
+
return {
|
|
61
|
+
[t]: Object.assign({
|
|
62
|
+
display: "inline-block",
|
|
63
|
+
verticalAlign: "top",
|
|
64
|
+
background: s
|
|
65
|
+
}, f(n)),
|
|
66
|
+
[`${t}${t}-circle`]: {
|
|
67
|
+
borderRadius: "50%"
|
|
68
|
+
},
|
|
69
|
+
[`${t}${t}-lg`]: Object.assign({}, f(a)),
|
|
70
|
+
[`${t}${t}-sm`]: Object.assign({}, f(o))
|
|
71
|
+
};
|
|
72
|
+
}, Q = (e) => {
|
|
73
|
+
const {
|
|
74
|
+
controlHeight: t,
|
|
75
|
+
borderRadiusSM: s,
|
|
76
|
+
skeletonInputCls: n,
|
|
77
|
+
controlHeightLG: a,
|
|
78
|
+
controlHeightSM: o,
|
|
79
|
+
gradientFromColor: c,
|
|
80
|
+
calc: l
|
|
81
|
+
} = e;
|
|
82
|
+
return {
|
|
83
|
+
[n]: Object.assign({
|
|
84
|
+
display: "inline-block",
|
|
85
|
+
verticalAlign: "top",
|
|
86
|
+
background: c,
|
|
87
|
+
borderRadius: s
|
|
88
|
+
}, I(t, l)),
|
|
89
|
+
[`${n}-lg`]: Object.assign({}, I(a, l)),
|
|
90
|
+
[`${n}-sm`]: Object.assign({}, I(o, l))
|
|
91
|
+
};
|
|
92
|
+
}, T = (e) => Object.assign({
|
|
93
|
+
width: e
|
|
94
|
+
}, E(e)), U = (e) => {
|
|
95
|
+
const {
|
|
96
|
+
skeletonImageCls: t,
|
|
97
|
+
imageSizeBase: s,
|
|
98
|
+
gradientFromColor: n,
|
|
99
|
+
borderRadiusSM: a,
|
|
100
|
+
calc: o
|
|
101
|
+
} = e;
|
|
102
|
+
return {
|
|
103
|
+
[t]: Object.assign(Object.assign({
|
|
104
|
+
display: "inline-flex",
|
|
105
|
+
alignItems: "center",
|
|
106
|
+
justifyContent: "center",
|
|
107
|
+
verticalAlign: "middle",
|
|
108
|
+
background: n,
|
|
109
|
+
borderRadius: a
|
|
110
|
+
}, T(o(s).mul(2).equal())), {
|
|
111
|
+
[`${t}-path`]: {
|
|
112
|
+
fill: "#bfbfbf"
|
|
113
|
+
},
|
|
114
|
+
[`${t}-svg`]: Object.assign(Object.assign({}, T(s)), {
|
|
115
|
+
maxWidth: o(s).mul(4).equal(),
|
|
116
|
+
maxHeight: o(s).mul(4).equal()
|
|
117
|
+
}),
|
|
118
|
+
[`${t}-svg${t}-svg-circle`]: {
|
|
119
|
+
borderRadius: "50%"
|
|
120
|
+
}
|
|
121
|
+
}),
|
|
122
|
+
[`${t}${t}-circle`]: {
|
|
123
|
+
borderRadius: "50%"
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}, q = (e, t, s) => {
|
|
127
|
+
const {
|
|
128
|
+
skeletonButtonCls: n
|
|
129
|
+
} = e;
|
|
130
|
+
return {
|
|
131
|
+
[`${s}${n}-circle`]: {
|
|
132
|
+
width: t,
|
|
133
|
+
minWidth: t,
|
|
134
|
+
borderRadius: "50%"
|
|
135
|
+
},
|
|
136
|
+
[`${s}${n}-round`]: {
|
|
137
|
+
borderRadius: t
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}, B = (e, t) => Object.assign({
|
|
141
|
+
width: t(e).mul(2).equal(),
|
|
142
|
+
minWidth: t(e).mul(2).equal()
|
|
143
|
+
}, E(e)), Y = (e) => {
|
|
144
|
+
const {
|
|
145
|
+
borderRadiusSM: t,
|
|
146
|
+
skeletonButtonCls: s,
|
|
147
|
+
controlHeight: n,
|
|
148
|
+
controlHeightLG: a,
|
|
149
|
+
controlHeightSM: o,
|
|
150
|
+
gradientFromColor: c,
|
|
151
|
+
calc: l
|
|
152
|
+
} = e;
|
|
153
|
+
return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
154
|
+
[s]: Object.assign({
|
|
155
|
+
display: "inline-block",
|
|
156
|
+
verticalAlign: "top",
|
|
157
|
+
background: c,
|
|
158
|
+
borderRadius: t,
|
|
159
|
+
width: l(n).mul(2).equal(),
|
|
160
|
+
minWidth: l(n).mul(2).equal()
|
|
161
|
+
}, B(n, l))
|
|
162
|
+
}, q(e, n, s)), {
|
|
163
|
+
[`${s}-lg`]: Object.assign({}, B(a, l))
|
|
164
|
+
}), q(e, a, `${s}-lg`)), {
|
|
165
|
+
[`${s}-sm`]: Object.assign({}, B(o, l))
|
|
166
|
+
}), q(e, o, `${s}-sm`));
|
|
167
|
+
}, Z = (e) => {
|
|
168
|
+
const {
|
|
169
|
+
componentCls: t,
|
|
170
|
+
skeletonAvatarCls: s,
|
|
171
|
+
skeletonTitleCls: n,
|
|
172
|
+
skeletonParagraphCls: a,
|
|
173
|
+
skeletonButtonCls: o,
|
|
174
|
+
skeletonInputCls: c,
|
|
175
|
+
skeletonImageCls: l,
|
|
176
|
+
controlHeight: i,
|
|
177
|
+
controlHeightLG: d,
|
|
178
|
+
controlHeightSM: m,
|
|
179
|
+
gradientFromColor: g,
|
|
180
|
+
padding: h,
|
|
181
|
+
marginSM: C,
|
|
182
|
+
borderRadius: b,
|
|
183
|
+
titleHeight: u,
|
|
184
|
+
blockRadius: j,
|
|
185
|
+
paragraphLiHeight: y,
|
|
186
|
+
controlHeightXS: P,
|
|
187
|
+
paragraphMarginTop: $
|
|
188
|
+
} = e;
|
|
189
|
+
return {
|
|
190
|
+
[t]: {
|
|
191
|
+
display: "table",
|
|
192
|
+
width: "100%",
|
|
193
|
+
[`${t}-header`]: {
|
|
194
|
+
display: "table-cell",
|
|
195
|
+
paddingInlineEnd: h,
|
|
196
|
+
verticalAlign: "top",
|
|
197
|
+
// Avatar
|
|
198
|
+
[s]: Object.assign({
|
|
199
|
+
display: "inline-block",
|
|
200
|
+
verticalAlign: "top",
|
|
201
|
+
background: g
|
|
202
|
+
}, f(i)),
|
|
203
|
+
[`${s}-circle`]: {
|
|
204
|
+
borderRadius: "50%"
|
|
205
|
+
},
|
|
206
|
+
[`${s}-lg`]: Object.assign({}, f(d)),
|
|
207
|
+
[`${s}-sm`]: Object.assign({}, f(m))
|
|
208
|
+
},
|
|
209
|
+
[`${t}-content`]: {
|
|
210
|
+
display: "table-cell",
|
|
211
|
+
width: "100%",
|
|
212
|
+
verticalAlign: "top",
|
|
213
|
+
// Title
|
|
214
|
+
[n]: {
|
|
215
|
+
width: "100%",
|
|
216
|
+
height: u,
|
|
217
|
+
background: g,
|
|
218
|
+
borderRadius: j,
|
|
219
|
+
[`+ ${a}`]: {
|
|
220
|
+
marginBlockStart: m
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
// paragraph
|
|
224
|
+
[a]: {
|
|
225
|
+
padding: 0,
|
|
226
|
+
"> li": {
|
|
227
|
+
width: "100%",
|
|
228
|
+
height: y,
|
|
229
|
+
listStyle: "none",
|
|
230
|
+
background: g,
|
|
231
|
+
borderRadius: j,
|
|
232
|
+
"+ li": {
|
|
233
|
+
marginBlockStart: P
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]: {
|
|
238
|
+
width: "61%"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
[`&-round ${t}-content`]: {
|
|
242
|
+
[`${n}, ${a} > li`]: {
|
|
243
|
+
borderRadius: b
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
[`${t}-with-avatar ${t}-content`]: {
|
|
248
|
+
// Title
|
|
249
|
+
[n]: {
|
|
250
|
+
marginBlockStart: C,
|
|
251
|
+
[`+ ${a}`]: {
|
|
252
|
+
marginBlockStart: $
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
// Skeleton element
|
|
257
|
+
[`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
|
|
258
|
+
display: "inline-block",
|
|
259
|
+
width: "auto"
|
|
260
|
+
}, Y(e)), J(e)), Q(e)), U(e)),
|
|
261
|
+
// Skeleton Block Button, Input
|
|
262
|
+
[`${t}${t}-block`]: {
|
|
263
|
+
width: "100%",
|
|
264
|
+
[o]: {
|
|
265
|
+
width: "100%"
|
|
266
|
+
},
|
|
267
|
+
[c]: {
|
|
268
|
+
width: "100%"
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
// With active animation
|
|
272
|
+
[`${t}${t}-active`]: {
|
|
273
|
+
[`
|
|
274
|
+
${n},
|
|
275
|
+
${a} > li,
|
|
276
|
+
${s},
|
|
277
|
+
${o},
|
|
278
|
+
${c},
|
|
279
|
+
${l}
|
|
280
|
+
`]: Object.assign({}, K(e))
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
}, ee = (e) => {
|
|
284
|
+
const {
|
|
285
|
+
colorFillContent: t,
|
|
286
|
+
colorFill: s
|
|
287
|
+
} = e, n = t, a = s;
|
|
288
|
+
return {
|
|
289
|
+
color: n,
|
|
290
|
+
colorGradientEnd: a,
|
|
291
|
+
gradientFromColor: n,
|
|
292
|
+
gradientToColor: a,
|
|
293
|
+
titleHeight: e.controlHeight / 2,
|
|
294
|
+
blockRadius: e.borderRadiusSM,
|
|
295
|
+
paragraphMarginTop: e.marginLG + e.marginXXS,
|
|
296
|
+
paragraphLiHeight: e.controlHeight / 2
|
|
297
|
+
};
|
|
298
|
+
}, S = F("Skeleton", (e) => {
|
|
299
|
+
const {
|
|
300
|
+
componentCls: t,
|
|
301
|
+
calc: s
|
|
302
|
+
} = e, n = G(e, {
|
|
303
|
+
skeletonAvatarCls: `${t}-avatar`,
|
|
304
|
+
skeletonTitleCls: `${t}-title`,
|
|
305
|
+
skeletonParagraphCls: `${t}-paragraph`,
|
|
306
|
+
skeletonButtonCls: `${t}-button`,
|
|
307
|
+
skeletonInputCls: `${t}-input`,
|
|
308
|
+
skeletonImageCls: `${t}-image`,
|
|
309
|
+
imageSizeBase: s(e.controlHeight).mul(1.5).equal(),
|
|
310
|
+
borderRadius: 100,
|
|
311
|
+
// Large number to make capsule shape
|
|
312
|
+
skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
|
|
313
|
+
skeletonLoadingMotionDuration: "1.4s"
|
|
314
|
+
});
|
|
315
|
+
return [Z(n)];
|
|
316
|
+
}, ee, {
|
|
317
|
+
deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
|
|
318
|
+
}), te = (e) => {
|
|
319
|
+
const {
|
|
320
|
+
prefixCls: t,
|
|
321
|
+
className: s,
|
|
322
|
+
rootClassName: n,
|
|
323
|
+
active: a,
|
|
324
|
+
shape: o = "circle",
|
|
325
|
+
size: c = "default"
|
|
326
|
+
} = e, {
|
|
327
|
+
getPrefixCls: l
|
|
328
|
+
} = r.useContext(k), i = l("skeleton", t), [d, m, g] = S(i), h = R(e, ["prefixCls", "className"]), C = p(i, `${i}-element`, {
|
|
329
|
+
[`${i}-active`]: a
|
|
330
|
+
}, s, n, m, g);
|
|
331
|
+
return d(/* @__PURE__ */ r.createElement("div", {
|
|
332
|
+
className: C
|
|
333
|
+
}, /* @__PURE__ */ r.createElement(N, Object.assign({
|
|
334
|
+
prefixCls: `${i}-avatar`,
|
|
335
|
+
shape: o,
|
|
336
|
+
size: c
|
|
337
|
+
}, h))));
|
|
338
|
+
}, se = (e) => {
|
|
339
|
+
const {
|
|
340
|
+
prefixCls: t,
|
|
341
|
+
className: s,
|
|
342
|
+
rootClassName: n,
|
|
343
|
+
active: a,
|
|
344
|
+
block: o = !1,
|
|
345
|
+
size: c = "default"
|
|
346
|
+
} = e, {
|
|
347
|
+
getPrefixCls: l
|
|
348
|
+
} = r.useContext(k), i = l("skeleton", t), [d, m, g] = S(i), h = R(e, ["prefixCls"]), C = p(i, `${i}-element`, {
|
|
349
|
+
[`${i}-active`]: a,
|
|
350
|
+
[`${i}-block`]: o
|
|
351
|
+
}, s, n, m, g);
|
|
352
|
+
return d(/* @__PURE__ */ r.createElement("div", {
|
|
353
|
+
className: C
|
|
354
|
+
}, /* @__PURE__ */ r.createElement(N, Object.assign({
|
|
355
|
+
prefixCls: `${i}-button`,
|
|
356
|
+
size: c
|
|
357
|
+
}, h))));
|
|
358
|
+
}, ne = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", ae = (e) => {
|
|
359
|
+
const {
|
|
360
|
+
prefixCls: t,
|
|
361
|
+
className: s,
|
|
362
|
+
rootClassName: n,
|
|
363
|
+
style: a,
|
|
364
|
+
active: o
|
|
365
|
+
} = e, {
|
|
366
|
+
getPrefixCls: c
|
|
367
|
+
} = r.useContext(k), l = c("skeleton", t), [i, d, m] = S(l), g = p(l, `${l}-element`, {
|
|
368
|
+
[`${l}-active`]: o
|
|
369
|
+
}, s, n, d, m);
|
|
370
|
+
return i(/* @__PURE__ */ r.createElement("div", {
|
|
371
|
+
className: g
|
|
372
|
+
}, /* @__PURE__ */ r.createElement("div", {
|
|
373
|
+
className: p(`${l}-image`, s),
|
|
374
|
+
style: a
|
|
375
|
+
}, /* @__PURE__ */ r.createElement("svg", {
|
|
376
|
+
viewBox: "0 0 1098 1024",
|
|
377
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
378
|
+
className: `${l}-image-svg`
|
|
379
|
+
}, /* @__PURE__ */ r.createElement("title", null, "Image placeholder"), /* @__PURE__ */ r.createElement("path", {
|
|
380
|
+
d: ne,
|
|
381
|
+
className: `${l}-image-path`
|
|
382
|
+
})))));
|
|
383
|
+
}, le = (e) => {
|
|
384
|
+
const {
|
|
385
|
+
prefixCls: t,
|
|
386
|
+
className: s,
|
|
387
|
+
rootClassName: n,
|
|
388
|
+
active: a,
|
|
389
|
+
block: o,
|
|
390
|
+
size: c = "default"
|
|
391
|
+
} = e, {
|
|
392
|
+
getPrefixCls: l
|
|
393
|
+
} = r.useContext(k), i = l("skeleton", t), [d, m, g] = S(i), h = R(e, ["prefixCls"]), C = p(i, `${i}-element`, {
|
|
394
|
+
[`${i}-active`]: a,
|
|
395
|
+
[`${i}-block`]: o
|
|
396
|
+
}, s, n, m, g);
|
|
397
|
+
return d(/* @__PURE__ */ r.createElement("div", {
|
|
398
|
+
className: C
|
|
399
|
+
}, /* @__PURE__ */ r.createElement(N, Object.assign({
|
|
400
|
+
prefixCls: `${i}-input`,
|
|
401
|
+
size: c
|
|
402
|
+
}, h))));
|
|
403
|
+
}, ie = (e) => {
|
|
404
|
+
const {
|
|
405
|
+
prefixCls: t,
|
|
406
|
+
className: s,
|
|
407
|
+
rootClassName: n,
|
|
408
|
+
style: a,
|
|
409
|
+
active: o,
|
|
410
|
+
children: c
|
|
411
|
+
} = e, {
|
|
412
|
+
getPrefixCls: l
|
|
413
|
+
} = r.useContext(k), i = l("skeleton", t), [d, m, g] = S(i), h = p(i, `${i}-element`, {
|
|
414
|
+
[`${i}-active`]: o
|
|
415
|
+
}, m, s, n, g);
|
|
416
|
+
return d(/* @__PURE__ */ r.createElement("div", {
|
|
417
|
+
className: h
|
|
418
|
+
}, /* @__PURE__ */ r.createElement("div", {
|
|
419
|
+
className: p(`${i}-image`, s),
|
|
420
|
+
style: a
|
|
421
|
+
}, c)));
|
|
422
|
+
}, oe = (e, t) => {
|
|
423
|
+
const {
|
|
424
|
+
width: s,
|
|
425
|
+
rows: n = 2
|
|
426
|
+
} = t;
|
|
427
|
+
if (Array.isArray(s))
|
|
428
|
+
return s[e];
|
|
429
|
+
if (n - 1 === e)
|
|
430
|
+
return s;
|
|
431
|
+
}, re = (e) => {
|
|
432
|
+
const {
|
|
433
|
+
prefixCls: t,
|
|
434
|
+
className: s,
|
|
435
|
+
style: n,
|
|
436
|
+
rows: a
|
|
437
|
+
} = e, o = D(new Array(a)).map((c, l) => (
|
|
438
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
439
|
+
/* @__PURE__ */ r.createElement("li", {
|
|
440
|
+
key: l,
|
|
441
|
+
style: {
|
|
442
|
+
width: oe(l, e)
|
|
443
|
+
}
|
|
444
|
+
})
|
|
445
|
+
));
|
|
446
|
+
return /* @__PURE__ */ r.createElement("ul", {
|
|
447
|
+
className: p(t, s),
|
|
448
|
+
style: n
|
|
449
|
+
}, o);
|
|
450
|
+
}, ce = (e) => {
|
|
451
|
+
let {
|
|
452
|
+
prefixCls: t,
|
|
453
|
+
className: s,
|
|
454
|
+
width: n,
|
|
455
|
+
style: a
|
|
456
|
+
} = e;
|
|
457
|
+
return (
|
|
458
|
+
// biome-ignore lint/a11y/useHeadingContent: HOC here
|
|
459
|
+
/* @__PURE__ */ r.createElement("h3", {
|
|
460
|
+
className: p(t, s),
|
|
461
|
+
style: Object.assign({
|
|
462
|
+
width: n
|
|
463
|
+
}, a)
|
|
464
|
+
})
|
|
465
|
+
);
|
|
466
|
+
};
|
|
467
|
+
function z(e) {
|
|
468
|
+
return e && typeof e == "object" ? e : {};
|
|
469
|
+
}
|
|
470
|
+
function ge(e, t) {
|
|
471
|
+
return e && !t ? {
|
|
472
|
+
size: "large",
|
|
473
|
+
shape: "square"
|
|
474
|
+
} : {
|
|
475
|
+
size: "large",
|
|
476
|
+
shape: "circle"
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
function de(e, t) {
|
|
480
|
+
return !e && t ? {
|
|
481
|
+
width: "38%"
|
|
482
|
+
} : e && t ? {
|
|
483
|
+
width: "50%"
|
|
484
|
+
} : {};
|
|
485
|
+
}
|
|
486
|
+
function me(e, t) {
|
|
487
|
+
const s = {};
|
|
488
|
+
return (!e || !t) && (s.width = "61%"), !e && t ? s.rows = 3 : s.rows = 2, s;
|
|
489
|
+
}
|
|
490
|
+
const v = (e) => {
|
|
491
|
+
const {
|
|
492
|
+
prefixCls: t,
|
|
493
|
+
loading: s,
|
|
494
|
+
className: n,
|
|
495
|
+
rootClassName: a,
|
|
496
|
+
style: o,
|
|
497
|
+
children: c,
|
|
498
|
+
avatar: l = !1,
|
|
499
|
+
title: i = !0,
|
|
500
|
+
paragraph: d = !0,
|
|
501
|
+
active: m,
|
|
502
|
+
round: g
|
|
503
|
+
} = e, {
|
|
504
|
+
getPrefixCls: h,
|
|
505
|
+
direction: C,
|
|
506
|
+
skeleton: b
|
|
507
|
+
} = r.useContext(k), u = h("skeleton", t), [j, y, P] = S(u);
|
|
508
|
+
if (s || !("loading" in e)) {
|
|
509
|
+
const $ = !!l, x = !!i, O = !!d;
|
|
510
|
+
let A;
|
|
511
|
+
if ($) {
|
|
512
|
+
const w = Object.assign(Object.assign({
|
|
513
|
+
prefixCls: `${u}-avatar`
|
|
514
|
+
}, ge(x, O)), z(l));
|
|
515
|
+
A = /* @__PURE__ */ r.createElement("div", {
|
|
516
|
+
className: `${u}-header`
|
|
517
|
+
}, /* @__PURE__ */ r.createElement(N, Object.assign({}, w)));
|
|
518
|
+
}
|
|
519
|
+
let M;
|
|
520
|
+
if (x || O) {
|
|
521
|
+
let w;
|
|
522
|
+
if (x) {
|
|
523
|
+
const H = Object.assign(Object.assign({
|
|
524
|
+
prefixCls: `${u}-title`
|
|
525
|
+
}, de($, O)), z(i));
|
|
526
|
+
w = /* @__PURE__ */ r.createElement(ce, Object.assign({}, H));
|
|
527
|
+
}
|
|
528
|
+
let L;
|
|
529
|
+
if (O) {
|
|
530
|
+
const H = Object.assign(Object.assign({
|
|
531
|
+
prefixCls: `${u}-paragraph`
|
|
532
|
+
}, me($, x)), z(d));
|
|
533
|
+
L = /* @__PURE__ */ r.createElement(re, Object.assign({}, H));
|
|
534
|
+
}
|
|
535
|
+
M = /* @__PURE__ */ r.createElement("div", {
|
|
536
|
+
className: `${u}-content`
|
|
537
|
+
}, w, L);
|
|
538
|
+
}
|
|
539
|
+
const V = p(u, {
|
|
540
|
+
[`${u}-with-avatar`]: $,
|
|
541
|
+
[`${u}-active`]: m,
|
|
542
|
+
[`${u}-rtl`]: C === "rtl",
|
|
543
|
+
[`${u}-round`]: g
|
|
544
|
+
}, b == null ? void 0 : b.className, n, a, y, P);
|
|
545
|
+
return j(/* @__PURE__ */ r.createElement("div", {
|
|
546
|
+
className: V,
|
|
547
|
+
style: Object.assign(Object.assign({}, b == null ? void 0 : b.style), o)
|
|
548
|
+
}, A, M));
|
|
549
|
+
}
|
|
550
|
+
return c ?? null;
|
|
551
|
+
};
|
|
552
|
+
v.Button = se;
|
|
553
|
+
v.Avatar = te;
|
|
554
|
+
v.Input = le;
|
|
555
|
+
v.Image = ae;
|
|
556
|
+
v.Node = ie;
|
|
557
|
+
process.env.NODE_ENV !== "production" && (v.displayName = "Skeleton");
|
|
558
|
+
export {
|
|
559
|
+
v as S
|
|
560
|
+
};
|
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import * as K from "react";
|
|
2
2
|
import f, { useRef as le, cloneElement as xn, forwardRef as We, useState as Me, useImperativeHandle as Ze, useEffect as $e, useContext as Sn } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { m as He,
|
|
5
|
-
import { u as Pe
|
|
6
|
-
import { R as
|
|
7
|
-
import { R as
|
|
8
|
-
import { u as nn, a as Fe, g as rn } from "./useVariants-
|
|
9
|
-
import { u as tn
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
3
|
+
import { e as w, f as _e, b as ie, d as Ce, _ as ne, g as Re, a as de } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { m as He, j as T, g as $n, r as Qe, s as Cn, h as Je, e as Te, C as ke, D as en, p as yn, f as Le, B as Ve } from "./index-ByspLxrB.js";
|
|
5
|
+
import { u as Pe } from "./useMergedState-BoELfaU9.js";
|
|
6
|
+
import { R as wn } from "./index-CRotrkWm.js";
|
|
7
|
+
import { R as En } from "./CloseCircleFilled-B9e7yFwo.js";
|
|
8
|
+
import { u as nn, a as Fe, g as rn } from "./useVariants-Cin23jEC.js";
|
|
9
|
+
import { u as tn } from "./useCSSVarCls-C-MlZC6a.js";
|
|
10
|
+
import { u as an } from "./useSize-CPo2bUE3.js";
|
|
11
|
+
import { F as on } from "./context-Cx7GtZpz.js";
|
|
12
|
+
import { o as Rn } from "./omit-B_u6A-HL.js";
|
|
13
|
+
import { C as Ge } from "./ContextIsolator-CwuJooYf.js";
|
|
14
|
+
import { u as In } from "./Compact-DBh6nSYB.js";
|
|
12
15
|
import { g as zn } from "./compact-item-DH13cl8A.js";
|
|
16
|
+
import "./index-DLdU7Tpd.js";
|
|
13
17
|
function On(e) {
|
|
14
18
|
return He(e, {
|
|
15
19
|
inputAffixPadding: e.paddingXXS
|
|
@@ -1187,7 +1191,7 @@ var Yn = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
1187
1191
|
}, xe = function(m) {
|
|
1188
1192
|
X(""), J(), v.current && Ee(v.current, m, t);
|
|
1189
1193
|
}, ze = ue && "".concat(p, "-out-of-range"), ye = function() {
|
|
1190
|
-
var m =
|
|
1194
|
+
var m = Rn(e, [
|
|
1191
1195
|
"prefixCls",
|
|
1192
1196
|
"onPressEnter",
|
|
1193
1197
|
"addonBefore",
|
|
@@ -1256,7 +1260,7 @@ var Yn = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKe
|
|
|
1256
1260
|
const bn = (e) => {
|
|
1257
1261
|
let n;
|
|
1258
1262
|
return typeof e == "object" && (e != null && e.clearIcon) ? n = e : e && (n = {
|
|
1259
|
-
clearIcon: /* @__PURE__ */ f.createElement(
|
|
1263
|
+
clearIcon: /* @__PURE__ */ f.createElement(En, null)
|
|
1260
1264
|
}), n;
|
|
1261
1265
|
};
|
|
1262
1266
|
function Qn(e, n) {
|
|
@@ -1315,14 +1319,14 @@ const er = /* @__PURE__ */ We((e, n) => {
|
|
|
1315
1319
|
} = f.useContext(ke), c = b("input", t), I = le(null), F = tn(c), [h, D, te] = fn(c, F), {
|
|
1316
1320
|
compactSize: W,
|
|
1317
1321
|
compactItemClassnames: v
|
|
1318
|
-
} = In(c, d), M =
|
|
1322
|
+
} = In(c, d), M = an((P) => {
|
|
1319
1323
|
var Y;
|
|
1320
1324
|
return (Y = i ?? W) !== null && Y !== void 0 ? Y : P;
|
|
1321
1325
|
}), J = f.useContext(en), ae = l ?? J, {
|
|
1322
1326
|
status: z,
|
|
1323
1327
|
hasFeedback: N,
|
|
1324
1328
|
feedbackIcon: X
|
|
1325
|
-
} = Sn(
|
|
1329
|
+
} = Sn(on), _ = rn(z, s), H = Jn(e) || !!N, B = le(H);
|
|
1326
1330
|
if (process.env.NODE_ENV !== "production") {
|
|
1327
1331
|
const P = Te("Input");
|
|
1328
1332
|
$e(() => {
|
|
@@ -1479,7 +1483,7 @@ var or = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
|
|
|
1479
1483
|
return z;
|
|
1480
1484
|
}, []);
|
|
1481
1485
|
var X = u ? v : null, _ = ne(ne({}, g), X);
|
|
1482
|
-
return (h === Ae || h === Ne) && (_.overflowY = "hidden", _.overflowX = "hidden"), /* @__PURE__ */ K.createElement(
|
|
1486
|
+
return (h === Ae || h === Ne) && (_.overflowY = "hidden", _.overflowX = "hidden"), /* @__PURE__ */ K.createElement(wn, {
|
|
1483
1487
|
onResize: N,
|
|
1484
1488
|
disabled: !(i || l)
|
|
1485
1489
|
}, /* @__PURE__ */ K.createElement("textarea", Ce({}, G, {
|
|
@@ -1604,7 +1608,7 @@ var or = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "classNa
|
|
|
1604
1608
|
n.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (r[t[a]] = e[t[a]]);
|
|
1605
1609
|
return r;
|
|
1606
1610
|
};
|
|
1607
|
-
const
|
|
1611
|
+
const Er = /* @__PURE__ */ We((e, n) => {
|
|
1608
1612
|
var r, t;
|
|
1609
1613
|
const {
|
|
1610
1614
|
prefixCls: a,
|
|
@@ -1630,11 +1634,11 @@ const $r = /* @__PURE__ */ We((e, n) => {
|
|
|
1630
1634
|
getPrefixCls: ee,
|
|
1631
1635
|
direction: y,
|
|
1632
1636
|
textArea: o
|
|
1633
|
-
} = K.useContext(ke), Q =
|
|
1637
|
+
} = K.useContext(ke), Q = an(i), $ = K.useContext(en), b = l ?? $, {
|
|
1634
1638
|
status: d,
|
|
1635
1639
|
hasFeedback: u,
|
|
1636
1640
|
feedbackIcon: c
|
|
1637
|
-
} = K.useContext(
|
|
1641
|
+
} = K.useContext(on), I = rn(d, S), F = K.useRef(null);
|
|
1638
1642
|
K.useImperativeHandle(n, () => {
|
|
1639
1643
|
var z;
|
|
1640
1644
|
return {
|
|
@@ -1682,9 +1686,13 @@ const $r = /* @__PURE__ */ We((e, n) => {
|
|
|
1682
1686
|
});
|
|
1683
1687
|
export {
|
|
1684
1688
|
er as I,
|
|
1685
|
-
|
|
1689
|
+
Er as T,
|
|
1686
1690
|
Bn as a,
|
|
1687
1691
|
Qn as b,
|
|
1692
|
+
cn as c,
|
|
1693
|
+
ln as d,
|
|
1694
|
+
De as e,
|
|
1695
|
+
un as g,
|
|
1688
1696
|
On as i,
|
|
1689
1697
|
fn as u
|
|
1690
1698
|
};
|