@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,456 @@
|
|
|
1
|
+
import { d as L } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import * as h from "react";
|
|
3
|
+
import { R as A } from "../../LoadingOutlined-C1qu6ymP.js";
|
|
4
|
+
import { g as X, a as K, e as D, b as N, d as R, F as V } from "../../presets-Djh_L_6R.js";
|
|
5
|
+
import { u as q } from "../../useMergedState-BoELfaU9.js";
|
|
6
|
+
import { K as H } from "../../KeyCode-DM2sFh3-.js";
|
|
7
|
+
import { W as _ } from "../../index-Dyl-ddV6.js";
|
|
8
|
+
import { g as F, m as B, j as f, r as G, k as Q, C as U, D as J } from "../../index-ByspLxrB.js";
|
|
9
|
+
import { u as Y } from "../../useSize-CPo2bUE3.js";
|
|
10
|
+
import "../../index-DLdU7Tpd.js";
|
|
11
|
+
var Z = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], O = /* @__PURE__ */ h.forwardRef(function(e, n) {
|
|
12
|
+
var c, a = e.prefixCls, l = a === void 0 ? "rc-switch" : a, r = e.className, o = e.checked, t = e.defaultChecked, i = e.disabled, d = e.loadingIcon, s = e.checkedChildren, g = e.unCheckedChildren, C = e.onClick, p = e.onChange, w = e.onKeyDown, v = X(e, Z), M = q(!1, {
|
|
13
|
+
value: o,
|
|
14
|
+
defaultValue: t
|
|
15
|
+
}), y = K(M, 2), S = y[0], $ = y[1];
|
|
16
|
+
function k(u, I) {
|
|
17
|
+
var b = S;
|
|
18
|
+
return i || (b = u, $(b), p == null || p(b, I)), b;
|
|
19
|
+
}
|
|
20
|
+
function x(u) {
|
|
21
|
+
u.which === H.LEFT ? k(!1, u) : u.which === H.RIGHT && k(!0, u), w == null || w(u);
|
|
22
|
+
}
|
|
23
|
+
function m(u) {
|
|
24
|
+
var I = k(!S, u);
|
|
25
|
+
C == null || C(I, u);
|
|
26
|
+
}
|
|
27
|
+
var E = D(l, r, (c = {}, N(c, "".concat(l, "-checked"), S), N(c, "".concat(l, "-disabled"), i), c));
|
|
28
|
+
return /* @__PURE__ */ h.createElement("button", R({}, v, {
|
|
29
|
+
type: "button",
|
|
30
|
+
role: "switch",
|
|
31
|
+
"aria-checked": S,
|
|
32
|
+
disabled: i,
|
|
33
|
+
className: E,
|
|
34
|
+
ref: n,
|
|
35
|
+
onKeyDown: x,
|
|
36
|
+
onClick: m
|
|
37
|
+
}), d, /* @__PURE__ */ h.createElement("span", {
|
|
38
|
+
className: "".concat(l, "-inner")
|
|
39
|
+
}, /* @__PURE__ */ h.createElement("span", {
|
|
40
|
+
className: "".concat(l, "-inner-checked")
|
|
41
|
+
}, s), /* @__PURE__ */ h.createElement("span", {
|
|
42
|
+
className: "".concat(l, "-inner-unchecked")
|
|
43
|
+
}, g)));
|
|
44
|
+
});
|
|
45
|
+
O.displayName = "Switch";
|
|
46
|
+
const ee = (e) => {
|
|
47
|
+
const {
|
|
48
|
+
componentCls: n,
|
|
49
|
+
trackHeightSM: c,
|
|
50
|
+
trackPadding: a,
|
|
51
|
+
trackMinWidthSM: l,
|
|
52
|
+
innerMinMarginSM: r,
|
|
53
|
+
innerMaxMarginSM: o,
|
|
54
|
+
handleSizeSM: t,
|
|
55
|
+
calc: i
|
|
56
|
+
} = e, d = `${n}-inner`, s = f(i(t).add(i(a).mul(2)).equal()), g = f(i(o).mul(2).equal());
|
|
57
|
+
return {
|
|
58
|
+
[n]: {
|
|
59
|
+
[`&${n}-small`]: {
|
|
60
|
+
minWidth: l,
|
|
61
|
+
height: c,
|
|
62
|
+
lineHeight: f(c),
|
|
63
|
+
[`${n}-inner`]: {
|
|
64
|
+
paddingInlineStart: o,
|
|
65
|
+
paddingInlineEnd: r,
|
|
66
|
+
[`${d}-checked, ${d}-unchecked`]: {
|
|
67
|
+
minHeight: c
|
|
68
|
+
},
|
|
69
|
+
[`${d}-checked`]: {
|
|
70
|
+
marginInlineStart: `calc(-100% + ${s} - ${g})`,
|
|
71
|
+
marginInlineEnd: `calc(100% - ${s} + ${g})`
|
|
72
|
+
},
|
|
73
|
+
[`${d}-unchecked`]: {
|
|
74
|
+
marginTop: i(c).mul(-1).equal(),
|
|
75
|
+
marginInlineStart: 0,
|
|
76
|
+
marginInlineEnd: 0
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
[`${n}-handle`]: {
|
|
80
|
+
width: t,
|
|
81
|
+
height: t
|
|
82
|
+
},
|
|
83
|
+
[`${n}-loading-icon`]: {
|
|
84
|
+
top: i(i(t).sub(e.switchLoadingIconSize)).div(2).equal(),
|
|
85
|
+
fontSize: e.switchLoadingIconSize
|
|
86
|
+
},
|
|
87
|
+
[`&${n}-checked`]: {
|
|
88
|
+
[`${n}-inner`]: {
|
|
89
|
+
paddingInlineStart: r,
|
|
90
|
+
paddingInlineEnd: o,
|
|
91
|
+
[`${d}-checked`]: {
|
|
92
|
+
marginInlineStart: 0,
|
|
93
|
+
marginInlineEnd: 0
|
|
94
|
+
},
|
|
95
|
+
[`${d}-unchecked`]: {
|
|
96
|
+
marginInlineStart: `calc(100% - ${s} + ${g})`,
|
|
97
|
+
marginInlineEnd: `calc(-100% + ${s} - ${g})`
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
[`${n}-handle`]: {
|
|
101
|
+
insetInlineStart: `calc(100% - ${f(i(t).add(a).equal())})`
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
[`&:not(${n}-disabled):active`]: {
|
|
105
|
+
[`&:not(${n}-checked) ${d}`]: {
|
|
106
|
+
[`${d}-unchecked`]: {
|
|
107
|
+
marginInlineStart: i(e.marginXXS).div(2).equal(),
|
|
108
|
+
marginInlineEnd: i(e.marginXXS).mul(-1).div(2).equal()
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
[`&${n}-checked ${d}`]: {
|
|
112
|
+
[`${d}-checked`]: {
|
|
113
|
+
marginInlineStart: i(e.marginXXS).mul(-1).div(2).equal(),
|
|
114
|
+
marginInlineEnd: i(e.marginXXS).div(2).equal()
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}, ne = (e) => {
|
|
122
|
+
const {
|
|
123
|
+
componentCls: n,
|
|
124
|
+
handleSize: c,
|
|
125
|
+
calc: a
|
|
126
|
+
} = e;
|
|
127
|
+
return {
|
|
128
|
+
[n]: {
|
|
129
|
+
[`${n}-loading-icon${e.iconCls}`]: {
|
|
130
|
+
position: "relative",
|
|
131
|
+
top: a(a(c).sub(e.fontSize)).div(2).equal(),
|
|
132
|
+
color: e.switchLoadingIconColor,
|
|
133
|
+
verticalAlign: "top"
|
|
134
|
+
},
|
|
135
|
+
[`&${n}-checked ${n}-loading-icon`]: {
|
|
136
|
+
color: e.switchColor
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}, ie = (e) => {
|
|
141
|
+
const {
|
|
142
|
+
componentCls: n,
|
|
143
|
+
trackPadding: c,
|
|
144
|
+
handleBg: a,
|
|
145
|
+
handleShadow: l,
|
|
146
|
+
handleSize: r,
|
|
147
|
+
calc: o
|
|
148
|
+
} = e, t = `${n}-handle`;
|
|
149
|
+
return {
|
|
150
|
+
[n]: {
|
|
151
|
+
[t]: {
|
|
152
|
+
position: "absolute",
|
|
153
|
+
top: c,
|
|
154
|
+
insetInlineStart: c,
|
|
155
|
+
width: r,
|
|
156
|
+
height: r,
|
|
157
|
+
transition: `all ${e.switchDuration} ease-in-out`,
|
|
158
|
+
"&::before": {
|
|
159
|
+
position: "absolute",
|
|
160
|
+
top: 0,
|
|
161
|
+
insetInlineEnd: 0,
|
|
162
|
+
bottom: 0,
|
|
163
|
+
insetInlineStart: 0,
|
|
164
|
+
backgroundColor: a,
|
|
165
|
+
borderRadius: o(r).div(2).equal(),
|
|
166
|
+
boxShadow: l,
|
|
167
|
+
transition: `all ${e.switchDuration} ease-in-out`,
|
|
168
|
+
content: '""'
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
[`&${n}-checked ${t}`]: {
|
|
172
|
+
insetInlineStart: `calc(100% - ${f(o(r).add(c).equal())})`
|
|
173
|
+
},
|
|
174
|
+
[`&:not(${n}-disabled):active`]: {
|
|
175
|
+
[`${t}::before`]: {
|
|
176
|
+
insetInlineEnd: e.switchHandleActiveInset,
|
|
177
|
+
insetInlineStart: 0
|
|
178
|
+
},
|
|
179
|
+
[`&${n}-checked ${t}::before`]: {
|
|
180
|
+
insetInlineEnd: 0,
|
|
181
|
+
insetInlineStart: e.switchHandleActiveInset
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}, ae = (e) => {
|
|
187
|
+
const {
|
|
188
|
+
componentCls: n,
|
|
189
|
+
trackHeight: c,
|
|
190
|
+
trackPadding: a,
|
|
191
|
+
innerMinMargin: l,
|
|
192
|
+
innerMaxMargin: r,
|
|
193
|
+
handleSize: o,
|
|
194
|
+
calc: t
|
|
195
|
+
} = e, i = `${n}-inner`, d = f(t(o).add(t(a).mul(2)).equal()), s = f(t(r).mul(2).equal());
|
|
196
|
+
return {
|
|
197
|
+
[n]: {
|
|
198
|
+
[i]: {
|
|
199
|
+
display: "block",
|
|
200
|
+
overflow: "hidden",
|
|
201
|
+
borderRadius: 100,
|
|
202
|
+
height: "100%",
|
|
203
|
+
paddingInlineStart: r,
|
|
204
|
+
paddingInlineEnd: l,
|
|
205
|
+
transition: `padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,
|
|
206
|
+
[`${i}-checked, ${i}-unchecked`]: {
|
|
207
|
+
display: "block",
|
|
208
|
+
color: e.colorTextLightSolid,
|
|
209
|
+
fontSize: e.fontSizeSM,
|
|
210
|
+
transition: `margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,
|
|
211
|
+
pointerEvents: "none",
|
|
212
|
+
minHeight: c
|
|
213
|
+
},
|
|
214
|
+
[`${i}-checked`]: {
|
|
215
|
+
marginInlineStart: `calc(-100% + ${d} - ${s})`,
|
|
216
|
+
marginInlineEnd: `calc(100% - ${d} + ${s})`
|
|
217
|
+
},
|
|
218
|
+
[`${i}-unchecked`]: {
|
|
219
|
+
marginTop: t(c).mul(-1).equal(),
|
|
220
|
+
marginInlineStart: 0,
|
|
221
|
+
marginInlineEnd: 0
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
[`&${n}-checked ${i}`]: {
|
|
225
|
+
paddingInlineStart: l,
|
|
226
|
+
paddingInlineEnd: r,
|
|
227
|
+
[`${i}-checked`]: {
|
|
228
|
+
marginInlineStart: 0,
|
|
229
|
+
marginInlineEnd: 0
|
|
230
|
+
},
|
|
231
|
+
[`${i}-unchecked`]: {
|
|
232
|
+
marginInlineStart: `calc(100% - ${d} + ${s})`,
|
|
233
|
+
marginInlineEnd: `calc(-100% + ${d} - ${s})`
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
[`&:not(${n}-disabled):active`]: {
|
|
237
|
+
[`&:not(${n}-checked) ${i}`]: {
|
|
238
|
+
[`${i}-unchecked`]: {
|
|
239
|
+
marginInlineStart: t(a).mul(2).equal(),
|
|
240
|
+
marginInlineEnd: t(a).mul(-1).mul(2).equal()
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
[`&${n}-checked ${i}`]: {
|
|
244
|
+
[`${i}-checked`]: {
|
|
245
|
+
marginInlineStart: t(a).mul(-1).mul(2).equal(),
|
|
246
|
+
marginInlineEnd: t(a).mul(2).equal()
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}, te = (e) => {
|
|
253
|
+
const {
|
|
254
|
+
componentCls: n,
|
|
255
|
+
trackHeight: c,
|
|
256
|
+
trackMinWidth: a
|
|
257
|
+
} = e;
|
|
258
|
+
return {
|
|
259
|
+
[n]: Object.assign(Object.assign(Object.assign(Object.assign({}, G(e)), {
|
|
260
|
+
position: "relative",
|
|
261
|
+
display: "inline-block",
|
|
262
|
+
boxSizing: "border-box",
|
|
263
|
+
minWidth: a,
|
|
264
|
+
height: c,
|
|
265
|
+
lineHeight: f(c),
|
|
266
|
+
verticalAlign: "middle",
|
|
267
|
+
background: e.colorTextQuaternary,
|
|
268
|
+
border: "0",
|
|
269
|
+
borderRadius: 100,
|
|
270
|
+
cursor: "pointer",
|
|
271
|
+
transition: `all ${e.motionDurationMid}`,
|
|
272
|
+
userSelect: "none",
|
|
273
|
+
[`&:hover:not(${n}-disabled)`]: {
|
|
274
|
+
background: e.colorTextTertiary
|
|
275
|
+
}
|
|
276
|
+
}), Q(e)), {
|
|
277
|
+
[`&${n}-checked`]: {
|
|
278
|
+
background: e.switchColor,
|
|
279
|
+
[`&:hover:not(${n}-disabled)`]: {
|
|
280
|
+
background: e.colorPrimaryHover
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
[`&${n}-loading, &${n}-disabled`]: {
|
|
284
|
+
cursor: "not-allowed",
|
|
285
|
+
opacity: e.switchDisabledOpacity,
|
|
286
|
+
"*": {
|
|
287
|
+
boxShadow: "none",
|
|
288
|
+
cursor: "not-allowed"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
// rtl style
|
|
292
|
+
[`&${n}-rtl`]: {
|
|
293
|
+
direction: "rtl"
|
|
294
|
+
}
|
|
295
|
+
})
|
|
296
|
+
};
|
|
297
|
+
}, ce = (e) => {
|
|
298
|
+
const {
|
|
299
|
+
fontSize: n,
|
|
300
|
+
lineHeight: c,
|
|
301
|
+
controlHeight: a,
|
|
302
|
+
colorWhite: l
|
|
303
|
+
} = e, r = n * c, o = a / 2, t = 2, i = r - t * 2, d = o - t * 2;
|
|
304
|
+
return {
|
|
305
|
+
trackHeight: r,
|
|
306
|
+
trackHeightSM: o,
|
|
307
|
+
trackMinWidth: i * 2 + t * 4,
|
|
308
|
+
trackMinWidthSM: d * 2 + t * 2,
|
|
309
|
+
trackPadding: t,
|
|
310
|
+
// Fixed value
|
|
311
|
+
handleBg: l,
|
|
312
|
+
handleSize: i,
|
|
313
|
+
handleSizeSM: d,
|
|
314
|
+
handleShadow: `0 2px 4px 0 ${new V("#00230b").setA(0.2).toRgbString()}`,
|
|
315
|
+
innerMinMargin: i / 2,
|
|
316
|
+
innerMaxMargin: i + t + t * 2,
|
|
317
|
+
innerMinMarginSM: d / 2,
|
|
318
|
+
innerMaxMarginSM: d + t + t * 2
|
|
319
|
+
};
|
|
320
|
+
}, le = F("Switch", (e) => {
|
|
321
|
+
const n = B(e, {
|
|
322
|
+
switchDuration: e.motionDurationMid,
|
|
323
|
+
switchColor: e.colorPrimary,
|
|
324
|
+
switchDisabledOpacity: e.opacityLoading,
|
|
325
|
+
switchLoadingIconSize: e.calc(e.fontSizeIcon).mul(0.75).equal(),
|
|
326
|
+
switchLoadingIconColor: `rgba(0, 0, 0, ${e.opacityLoading})`,
|
|
327
|
+
switchHandleActiveInset: "-30%"
|
|
328
|
+
});
|
|
329
|
+
return [
|
|
330
|
+
te(n),
|
|
331
|
+
// inner style
|
|
332
|
+
ae(n),
|
|
333
|
+
// handle style
|
|
334
|
+
ie(n),
|
|
335
|
+
// loading style
|
|
336
|
+
ne(n),
|
|
337
|
+
// small style
|
|
338
|
+
ee(n)
|
|
339
|
+
];
|
|
340
|
+
}, ce);
|
|
341
|
+
var de = function(e, n) {
|
|
342
|
+
var c = {};
|
|
343
|
+
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && n.indexOf(a) < 0 && (c[a] = e[a]);
|
|
344
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var l = 0, a = Object.getOwnPropertySymbols(e); l < a.length; l++)
|
|
345
|
+
n.indexOf(a[l]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[l]) && (c[a[l]] = e[a[l]]);
|
|
346
|
+
return c;
|
|
347
|
+
};
|
|
348
|
+
const re = /* @__PURE__ */ h.forwardRef((e, n) => {
|
|
349
|
+
const {
|
|
350
|
+
prefixCls: c,
|
|
351
|
+
size: a,
|
|
352
|
+
disabled: l,
|
|
353
|
+
loading: r,
|
|
354
|
+
className: o,
|
|
355
|
+
rootClassName: t,
|
|
356
|
+
style: i,
|
|
357
|
+
checked: d,
|
|
358
|
+
value: s,
|
|
359
|
+
defaultChecked: g,
|
|
360
|
+
defaultValue: C,
|
|
361
|
+
onChange: p
|
|
362
|
+
} = e, w = de(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [v, M] = q(!1, {
|
|
363
|
+
value: d ?? s,
|
|
364
|
+
defaultValue: g ?? C
|
|
365
|
+
}), {
|
|
366
|
+
getPrefixCls: y,
|
|
367
|
+
direction: S,
|
|
368
|
+
switch: $
|
|
369
|
+
} = h.useContext(U), k = h.useContext(J), x = (l ?? k) || r, m = y("switch", c), E = /* @__PURE__ */ h.createElement("div", {
|
|
370
|
+
className: `${m}-handle`
|
|
371
|
+
}, r && /* @__PURE__ */ h.createElement(A, {
|
|
372
|
+
className: `${m}-loading-icon`
|
|
373
|
+
})), [u, I, b] = le(m), P = Y(a), T = D($ == null ? void 0 : $.className, {
|
|
374
|
+
[`${m}-small`]: P === "small",
|
|
375
|
+
[`${m}-loading`]: r,
|
|
376
|
+
[`${m}-rtl`]: S === "rtl"
|
|
377
|
+
}, o, t, I, b), j = Object.assign(Object.assign({}, $ == null ? void 0 : $.style), i), W = function() {
|
|
378
|
+
M(arguments.length <= 0 ? void 0 : arguments[0]), p == null || p.apply(void 0, arguments);
|
|
379
|
+
};
|
|
380
|
+
return u(/* @__PURE__ */ h.createElement(_, {
|
|
381
|
+
component: "Switch"
|
|
382
|
+
}, /* @__PURE__ */ h.createElement(O, Object.assign({}, w, {
|
|
383
|
+
checked: v,
|
|
384
|
+
onChange: W,
|
|
385
|
+
prefixCls: m,
|
|
386
|
+
className: T,
|
|
387
|
+
style: j,
|
|
388
|
+
disabled: x,
|
|
389
|
+
ref: n,
|
|
390
|
+
loadingIcon: E
|
|
391
|
+
}))));
|
|
392
|
+
}), z = re;
|
|
393
|
+
z.__ANT_SWITCH = !0;
|
|
394
|
+
process.env.NODE_ENV !== "production" && (z.displayName = "Switch");
|
|
395
|
+
const oe = ({ colors: e, borderRadius: n }) => `
|
|
396
|
+
&.ant-switch {
|
|
397
|
+
background-color: ${e.primary.active};
|
|
398
|
+
border-radius: ${n == null ? void 0 : n.BorderRadiusMd};
|
|
399
|
+
|
|
400
|
+
/* Focus ring styles */
|
|
401
|
+
&:focus-visible {
|
|
402
|
+
outline: none;
|
|
403
|
+
box-shadow: 0 0 0 2px ${e.inputs.onsurface.focus};
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* Unchecked states */
|
|
407
|
+
&:not(.ant-switch-checked) {
|
|
408
|
+
background-color: ${e.surface.tertiary};
|
|
409
|
+
|
|
410
|
+
&:hover {
|
|
411
|
+
background-color: ${e.status.info.surface};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
&:focus {
|
|
415
|
+
background-color: ${e.surface.tertiary};
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&:focus-visible {
|
|
419
|
+
outline: none;
|
|
420
|
+
box-shadow: 0 0 0 2px ${e.inputs.onsurface.focus};
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
&.ant-switch-disabled {
|
|
424
|
+
background-color: ${e.inputs.surface.disabled};
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/* Checked states */
|
|
429
|
+
&-checked {
|
|
430
|
+
background-color: ${e.inputs.surface.checked};
|
|
431
|
+
|
|
432
|
+
&:hover {
|
|
433
|
+
background-color: ${e.inputs.surface["checked-hover"]};
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
&:focus {
|
|
437
|
+
background-color: ${e.inputs.surface["checked-focussed"]};
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
&:focus-visible {
|
|
441
|
+
outline: none;
|
|
442
|
+
box-shadow: 0 0 0 2px ${e.inputs.onsurface.focus};
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
&.ant-switch-disabled {
|
|
446
|
+
background-color: ${e.inputs.surface.disabled};
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
`, be = L(z)`
|
|
451
|
+
${({ theme: e }) => oe(e)}
|
|
452
|
+
`;
|
|
453
|
+
export {
|
|
454
|
+
be as Switch,
|
|
455
|
+
be as default
|
|
456
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type Column = {
|
|
3
|
+
title: string;
|
|
4
|
+
dataIndex: string;
|
|
5
|
+
key: string;
|
|
6
|
+
render?: (text: any, record: any) => React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export interface TableProps {
|
|
9
|
+
dataSource: unknown[];
|
|
10
|
+
columns: Column[];
|
|
11
|
+
rowKey?: string | ((record: any) => string);
|
|
12
|
+
size?: "small" | "middle" | "large";
|
|
13
|
+
}
|
|
14
|
+
declare const Table: ({ columns, dataSource, rowKey, size, ...props }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Table;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { T as m } from "../../styles-D9iYILpv.js";
|
|
3
|
+
const d = ({
|
|
4
|
+
columns: a,
|
|
5
|
+
dataSource: t,
|
|
6
|
+
rowKey: e = "id",
|
|
7
|
+
size: l = "small",
|
|
8
|
+
...o
|
|
9
|
+
}) => /* @__PURE__ */ r(
|
|
10
|
+
m,
|
|
11
|
+
{
|
|
12
|
+
"data-testid": "Table",
|
|
13
|
+
dataSource: t,
|
|
14
|
+
columns: a,
|
|
15
|
+
rowKey: e,
|
|
16
|
+
locale: { emptyText: "No Data" },
|
|
17
|
+
size: l,
|
|
18
|
+
...o
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
export {
|
|
22
|
+
d as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ColumnsType } from 'antd/es/table';
|
|
2
|
+
|
|
3
|
+
interface AppointmentWithSimpleAddress {
|
|
4
|
+
id: string;
|
|
5
|
+
number: string;
|
|
6
|
+
timerange: string;
|
|
7
|
+
status: AppointmentStatus;
|
|
8
|
+
address: {
|
|
9
|
+
nickname: string;
|
|
10
|
+
address: string;
|
|
11
|
+
};
|
|
12
|
+
job_subtype: "delivery" | "pickup";
|
|
13
|
+
}
|
|
14
|
+
export interface MockDataSource {
|
|
15
|
+
appointments: AppointmentWithSimpleAddress[];
|
|
16
|
+
}
|
|
17
|
+
type AppointmentStatus = "scheduled" | "completed" | "cancelled" | "in_progress";
|
|
18
|
+
export declare const mockColumns: ColumnsType<AppointmentWithSimpleAddress>;
|
|
19
|
+
export declare const mockDataSource: MockDataSource;
|
|
20
|
+
export {};
|