@gobolt/genesis 0.0.10 → 0.1.0
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 +8 -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/ClockCircleOutlined-BaXQuLIn.js +13 -0
- 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-Du9689ax.js} +41 -44
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-Dcq69ZKM.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-DGMph0Bj.js} +138 -135
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-C9_aCDvn.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-DWf4XIal.js} +62 -61
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-BVN4pcVe.js +560 -0
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/Typography-CoZ5qD-t.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-BwqpCxVM.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/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -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 +35 -1
- package/dist/components/index.js +58 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-DIFtNa4d.js} +230 -233
- package/dist/dropdown-Dp_PTQ2u.js +2045 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +101 -43
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BPVue1Yd.js +445 -0
- package/dist/{index-bKlRxQp4.js → index-BQM5OniU.js} +12 -12
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-B_1Ge8na.js +1846 -0
- package/dist/{index-oK7z6jnz.js → index-BbTV2Cw5.js} +8641 -8798
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-1CBpubM3.js → index-BpZSuIUV.js} +45 -42
- package/dist/index-BvOLXELm.js +102 -0
- package/dist/index-CLSrpQRW.js +416 -0
- package/dist/index-CbVOl2U6.js +288 -0
- package/dist/index-D0U6r5O7.js +780 -0
- package/dist/index-DEu2PVzQ.js +538 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DNQ-jnBx.js +3321 -0
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-C0SmxWLS.js → index-DRGX1Wem.js} +136 -143
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +65 -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/motion-CUN72xsH.js +33 -0
- 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-dCkpy7Cb.js +73 -0
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/setup-CUbCc8fQ.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 +29 -13
- 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 +398 -331
- 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 +1652 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/styles-CWdUpZom.js +289 -0
- package/dist/{styles-CT_fyXBd.js → styles-D1vKDy9V.js} +587 -643
- package/dist/styles-qerRs7Rn.js +9196 -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-U3Az44CO.js +11 -0
- package/dist/useBreakpoint-TkMv121M.js +22 -0
- package/dist/useCSSVarCls-Dau77fzS.js +11 -0
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-CTfNpakL.js +16 -0
- package/dist/useMergedState-D6toxSxh.js +23 -0
- package/dist/useSize-DSq4r6zy.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-DrLzUVLU.js} +3 -3
- package/dist/useZIndex-DhyHuZTN.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +89 -0
- package/package.json +27 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/TextArea-DKwCct3i.js +0 -1690
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/index-DPW8XdWj.js +0 -952
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
|
@@ -1,441 +1,6 @@
|
|
|
1
|
-
import { d as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { e as ae, f as ce, c as F, h as G, a as te, _ as T } from "../../warning-C63HNL9U.js";
|
|
5
|
-
import { u as le, o as ie } from "../../isVisible-A-IfeFoT.js";
|
|
6
|
-
import { w as W, g as se, m as de, o as z, p as ue, q, C as K, D as be, t as fe, v as he, x as H } from "../../index-oK7z6jnz.js";
|
|
7
|
-
import { T as pe, W as xe } from "../../index-1CBpubM3.js";
|
|
8
|
-
import { F as Ce, u as U } from "../../context-BMW3aJEf.js";
|
|
9
|
-
var me = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], ge = /* @__PURE__ */ ne(function(e, r) {
|
|
10
|
-
var n = e.prefixCls, o = n === void 0 ? "rc-checkbox" : n, s = e.className, C = e.style, $ = e.checked, h = e.disabled, O = e.defaultChecked, y = O === void 0 ? !1 : O, d = e.type, S = d === void 0 ? "checkbox" : d, P = e.title, l = e.onChange, E = ae(e, me), m = L(null), u = L(null), a = le(y, {
|
|
11
|
-
value: $
|
|
12
|
-
}), _ = ce(a, 2), N = _[0], A = _[1];
|
|
13
|
-
oe(r, function() {
|
|
14
|
-
return {
|
|
15
|
-
focus: function(i) {
|
|
16
|
-
var f;
|
|
17
|
-
(f = m.current) === null || f === void 0 || f.focus(i);
|
|
18
|
-
},
|
|
19
|
-
blur: function() {
|
|
20
|
-
var i;
|
|
21
|
-
(i = m.current) === null || i === void 0 || i.blur();
|
|
22
|
-
},
|
|
23
|
-
input: m.current,
|
|
24
|
-
nativeElement: u.current
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
var b = F(o, s, G(G({}, "".concat(o, "-checked"), N), "".concat(o, "-disabled"), h)), p = function(i) {
|
|
28
|
-
h || ("checked" in e || A(i.target.checked), l == null || l({
|
|
29
|
-
target: T(T({}, e), {}, {
|
|
30
|
-
type: S,
|
|
31
|
-
checked: i.target.checked
|
|
32
|
-
}),
|
|
33
|
-
stopPropagation: function() {
|
|
34
|
-
i.stopPropagation();
|
|
35
|
-
},
|
|
36
|
-
preventDefault: function() {
|
|
37
|
-
i.preventDefault();
|
|
38
|
-
},
|
|
39
|
-
nativeEvent: i.nativeEvent
|
|
40
|
-
}));
|
|
41
|
-
};
|
|
42
|
-
return /* @__PURE__ */ t.createElement("span", {
|
|
43
|
-
className: b,
|
|
44
|
-
title: P,
|
|
45
|
-
style: C,
|
|
46
|
-
ref: u
|
|
47
|
-
}, /* @__PURE__ */ t.createElement("input", te({}, E, {
|
|
48
|
-
className: "".concat(o, "-input"),
|
|
49
|
-
ref: m,
|
|
50
|
-
onChange: p,
|
|
51
|
-
disabled: h,
|
|
52
|
-
checked: !!N,
|
|
53
|
-
type: S
|
|
54
|
-
})), /* @__PURE__ */ t.createElement("span", {
|
|
55
|
-
className: "".concat(o, "-inner")
|
|
56
|
-
}));
|
|
57
|
-
});
|
|
58
|
-
function ke(e) {
|
|
59
|
-
const r = X.useRef(null), n = () => {
|
|
60
|
-
W.cancel(r.current), r.current = null;
|
|
61
|
-
};
|
|
62
|
-
return [() => {
|
|
63
|
-
n(), r.current = W(() => {
|
|
64
|
-
r.current = null;
|
|
65
|
-
});
|
|
66
|
-
}, (C) => {
|
|
67
|
-
r.current && (C.stopPropagation(), n()), e == null || e(C);
|
|
68
|
-
}];
|
|
69
|
-
}
|
|
70
|
-
const ve = (e) => {
|
|
71
|
-
const {
|
|
72
|
-
checkboxCls: r
|
|
73
|
-
} = e, n = `${r}-wrapper`;
|
|
74
|
-
return [
|
|
75
|
-
// ===================== Basic =====================
|
|
76
|
-
{
|
|
77
|
-
// Group
|
|
78
|
-
[`${r}-group`]: Object.assign(Object.assign({}, z(e)), {
|
|
79
|
-
display: "inline-flex",
|
|
80
|
-
flexWrap: "wrap",
|
|
81
|
-
columnGap: e.marginXS,
|
|
82
|
-
// Group > Grid
|
|
83
|
-
[`> ${e.antCls}-row`]: {
|
|
84
|
-
flex: 1
|
|
85
|
-
}
|
|
86
|
-
}),
|
|
87
|
-
// Wrapper
|
|
88
|
-
[n]: Object.assign(Object.assign({}, z(e)), {
|
|
89
|
-
display: "inline-flex",
|
|
90
|
-
alignItems: "baseline",
|
|
91
|
-
cursor: "pointer",
|
|
92
|
-
// Fix checkbox & radio in flex align #30260
|
|
93
|
-
"&:after": {
|
|
94
|
-
display: "inline-block",
|
|
95
|
-
width: 0,
|
|
96
|
-
overflow: "hidden",
|
|
97
|
-
content: "'\\a0'"
|
|
98
|
-
},
|
|
99
|
-
// Checkbox near checkbox
|
|
100
|
-
[`& + ${n}`]: {
|
|
101
|
-
marginInlineStart: 0
|
|
102
|
-
},
|
|
103
|
-
[`&${n}-in-form-item`]: {
|
|
104
|
-
'input[type="checkbox"]': {
|
|
105
|
-
width: 14,
|
|
106
|
-
// FIXME: magic
|
|
107
|
-
height: 14
|
|
108
|
-
// FIXME: magic
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}),
|
|
112
|
-
// Wrapper > Checkbox
|
|
113
|
-
[r]: Object.assign(Object.assign({}, z(e)), {
|
|
114
|
-
position: "relative",
|
|
115
|
-
whiteSpace: "nowrap",
|
|
116
|
-
lineHeight: 1,
|
|
117
|
-
cursor: "pointer",
|
|
118
|
-
borderRadius: e.borderRadiusSM,
|
|
119
|
-
// To make alignment right when `controlHeight` is changed
|
|
120
|
-
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
|
121
|
-
alignSelf: "center",
|
|
122
|
-
// Wrapper > Checkbox > input
|
|
123
|
-
[`${r}-input`]: {
|
|
124
|
-
position: "absolute",
|
|
125
|
-
// Since baseline align will get additional space offset,
|
|
126
|
-
// we need to move input to top to make it align with text.
|
|
127
|
-
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
|
|
128
|
-
inset: 0,
|
|
129
|
-
zIndex: 1,
|
|
130
|
-
cursor: "pointer",
|
|
131
|
-
opacity: 0,
|
|
132
|
-
margin: 0,
|
|
133
|
-
[`&:focus-visible + ${r}-inner`]: Object.assign({}, ue(e))
|
|
134
|
-
},
|
|
135
|
-
// Wrapper > Checkbox > inner
|
|
136
|
-
[`${r}-inner`]: {
|
|
137
|
-
boxSizing: "border-box",
|
|
138
|
-
display: "block",
|
|
139
|
-
width: e.checkboxSize,
|
|
140
|
-
height: e.checkboxSize,
|
|
141
|
-
direction: "ltr",
|
|
142
|
-
backgroundColor: e.colorBgContainer,
|
|
143
|
-
border: `${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
144
|
-
borderRadius: e.borderRadiusSM,
|
|
145
|
-
borderCollapse: "separate",
|
|
146
|
-
transition: `all ${e.motionDurationSlow}`,
|
|
147
|
-
"&:after": {
|
|
148
|
-
boxSizing: "border-box",
|
|
149
|
-
position: "absolute",
|
|
150
|
-
top: "50%",
|
|
151
|
-
insetInlineStart: "25%",
|
|
152
|
-
display: "table",
|
|
153
|
-
width: e.calc(e.checkboxSize).div(14).mul(5).equal(),
|
|
154
|
-
height: e.calc(e.checkboxSize).div(14).mul(8).equal(),
|
|
155
|
-
border: `${q(e.lineWidthBold)} solid ${e.colorWhite}`,
|
|
156
|
-
borderTop: 0,
|
|
157
|
-
borderInlineStart: 0,
|
|
158
|
-
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
|
|
159
|
-
opacity: 0,
|
|
160
|
-
content: '""',
|
|
161
|
-
transition: `all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
// Wrapper > Checkbox + Text
|
|
165
|
-
"& + span": {
|
|
166
|
-
paddingInlineStart: e.paddingXS,
|
|
167
|
-
paddingInlineEnd: e.paddingXS
|
|
168
|
-
}
|
|
169
|
-
})
|
|
170
|
-
},
|
|
171
|
-
// ===================== Hover =====================
|
|
172
|
-
{
|
|
173
|
-
// Wrapper & Wrapper > Checkbox
|
|
174
|
-
[`
|
|
175
|
-
${n}:not(${n}-disabled),
|
|
176
|
-
${r}:not(${r}-disabled)
|
|
177
|
-
`]: {
|
|
178
|
-
[`&:hover ${r}-inner`]: {
|
|
179
|
-
borderColor: e.colorPrimary
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
[`${n}:not(${n}-disabled)`]: {
|
|
183
|
-
[`&:hover ${r}-checked:not(${r}-disabled) ${r}-inner`]: {
|
|
184
|
-
backgroundColor: e.colorPrimaryHover,
|
|
185
|
-
borderColor: "transparent"
|
|
186
|
-
},
|
|
187
|
-
[`&:hover ${r}-checked:not(${r}-disabled):after`]: {
|
|
188
|
-
borderColor: e.colorPrimaryHover
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
// ==================== Checked ====================
|
|
193
|
-
{
|
|
194
|
-
// Wrapper > Checkbox
|
|
195
|
-
[`${r}-checked`]: {
|
|
196
|
-
[`${r}-inner`]: {
|
|
197
|
-
backgroundColor: e.colorPrimary,
|
|
198
|
-
borderColor: e.colorPrimary,
|
|
199
|
-
"&:after": {
|
|
200
|
-
opacity: 1,
|
|
201
|
-
transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
|
|
202
|
-
transition: `all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
[`
|
|
207
|
-
${n}-checked:not(${n}-disabled),
|
|
208
|
-
${r}-checked:not(${r}-disabled)
|
|
209
|
-
`]: {
|
|
210
|
-
[`&:hover ${r}-inner`]: {
|
|
211
|
-
backgroundColor: e.colorPrimaryHover,
|
|
212
|
-
borderColor: "transparent"
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
// ================= Indeterminate =================
|
|
217
|
-
{
|
|
218
|
-
[r]: {
|
|
219
|
-
"&-indeterminate": {
|
|
220
|
-
// Wrapper > Checkbox > inner
|
|
221
|
-
[`${r}-inner`]: {
|
|
222
|
-
backgroundColor: `${e.colorBgContainer} !important`,
|
|
223
|
-
borderColor: `${e.colorBorder} !important`,
|
|
224
|
-
"&:after": {
|
|
225
|
-
top: "50%",
|
|
226
|
-
insetInlineStart: "50%",
|
|
227
|
-
width: e.calc(e.fontSizeLG).div(2).equal(),
|
|
228
|
-
height: e.calc(e.fontSizeLG).div(2).equal(),
|
|
229
|
-
backgroundColor: e.colorPrimary,
|
|
230
|
-
border: 0,
|
|
231
|
-
transform: "translate(-50%, -50%) scale(1)",
|
|
232
|
-
opacity: 1,
|
|
233
|
-
content: '""'
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
// https://github.com/ant-design/ant-design/issues/50074
|
|
237
|
-
[`&:hover ${r}-inner`]: {
|
|
238
|
-
backgroundColor: `${e.colorBgContainer} !important`,
|
|
239
|
-
borderColor: `${e.colorPrimary} !important`
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
// ==================== Disable ====================
|
|
245
|
-
{
|
|
246
|
-
// Wrapper
|
|
247
|
-
[`${n}-disabled`]: {
|
|
248
|
-
cursor: "not-allowed"
|
|
249
|
-
},
|
|
250
|
-
// Wrapper > Checkbox
|
|
251
|
-
[`${r}-disabled`]: {
|
|
252
|
-
// Wrapper > Checkbox > input
|
|
253
|
-
[`&, ${r}-input`]: {
|
|
254
|
-
cursor: "not-allowed",
|
|
255
|
-
// Disabled for native input to enable Tooltip event handler
|
|
256
|
-
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
|
257
|
-
pointerEvents: "none"
|
|
258
|
-
},
|
|
259
|
-
// Wrapper > Checkbox > inner
|
|
260
|
-
[`${r}-inner`]: {
|
|
261
|
-
background: e.colorBgContainerDisabled,
|
|
262
|
-
borderColor: e.colorBorder,
|
|
263
|
-
"&:after": {
|
|
264
|
-
borderColor: e.colorTextDisabled
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"&:after": {
|
|
268
|
-
display: "none"
|
|
269
|
-
},
|
|
270
|
-
"& + span": {
|
|
271
|
-
color: e.colorTextDisabled
|
|
272
|
-
},
|
|
273
|
-
[`&${r}-indeterminate ${r}-inner::after`]: {
|
|
274
|
-
background: e.colorTextDisabled
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
];
|
|
279
|
-
};
|
|
280
|
-
function $e(e, r) {
|
|
281
|
-
const n = de(r, {
|
|
282
|
-
checkboxCls: `.${e}`,
|
|
283
|
-
checkboxSize: r.controlInteractiveSize
|
|
284
|
-
});
|
|
285
|
-
return [ve(n)];
|
|
286
|
-
}
|
|
287
|
-
const J = se("Checkbox", (e, r) => {
|
|
288
|
-
let {
|
|
289
|
-
prefixCls: n
|
|
290
|
-
} = r;
|
|
291
|
-
return [$e(n, e)];
|
|
292
|
-
}), Q = /* @__PURE__ */ X.createContext(null);
|
|
293
|
-
var ye = function(e, r) {
|
|
294
|
-
var n = {};
|
|
295
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (n[o] = e[o]);
|
|
296
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var s = 0, o = Object.getOwnPropertySymbols(e); s < o.length; s++)
|
|
297
|
-
r.indexOf(o[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[s]) && (n[o[s]] = e[o[s]]);
|
|
298
|
-
return n;
|
|
299
|
-
};
|
|
300
|
-
const Se = (e, r) => {
|
|
301
|
-
var n;
|
|
302
|
-
const {
|
|
303
|
-
prefixCls: o,
|
|
304
|
-
className: s,
|
|
305
|
-
rootClassName: C,
|
|
306
|
-
children: $,
|
|
307
|
-
indeterminate: h = !1,
|
|
308
|
-
style: O,
|
|
309
|
-
onMouseEnter: y,
|
|
310
|
-
onMouseLeave: d,
|
|
311
|
-
skipGroup: S = !1,
|
|
312
|
-
disabled: P
|
|
313
|
-
} = e, l = ye(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
|
|
314
|
-
getPrefixCls: E,
|
|
315
|
-
direction: m,
|
|
316
|
-
checkbox: u
|
|
317
|
-
} = t.useContext(K), a = t.useContext(Q), {
|
|
318
|
-
isFormItemInput: _
|
|
319
|
-
} = t.useContext(Ce), N = t.useContext(be), A = (n = (a == null ? void 0 : a.disabled) || P) !== null && n !== void 0 ? n : N, b = t.useRef(l.value), p = t.useRef(null), w = fe(r, p);
|
|
320
|
-
if (process.env.NODE_ENV !== "production") {
|
|
321
|
-
const x = he("Checkbox");
|
|
322
|
-
process.env.NODE_ENV !== "production" && x("checked" in l || !!a || !("value" in l), "usage", "`value` is not a valid prop, do you mean `checked`?");
|
|
323
|
-
}
|
|
324
|
-
t.useEffect(() => {
|
|
325
|
-
a == null || a.registerValue(l.value);
|
|
326
|
-
}, []), t.useEffect(() => {
|
|
327
|
-
if (!S)
|
|
328
|
-
return l.value !== b.current && (a == null || a.cancelValue(b.current), a == null || a.registerValue(l.value), b.current = l.value), () => a == null ? void 0 : a.cancelValue(l.value);
|
|
329
|
-
}, [l.value]), t.useEffect(() => {
|
|
330
|
-
var x;
|
|
331
|
-
!((x = p.current) === null || x === void 0) && x.input && (p.current.input.indeterminate = h);
|
|
332
|
-
}, [h]);
|
|
333
|
-
const i = E("checkbox", o), f = U(i), [V, R, j] = J(i, f), g = Object.assign({}, l);
|
|
334
|
-
a && !S && (g.onChange = function() {
|
|
335
|
-
l.onChange && l.onChange.apply(l, arguments), a.toggleOption && a.toggleOption({
|
|
336
|
-
label: $,
|
|
337
|
-
value: l.value
|
|
338
|
-
});
|
|
339
|
-
}, g.name = a.name, g.checked = a.value.includes(l.value));
|
|
340
|
-
const D = F(`${i}-wrapper`, {
|
|
341
|
-
[`${i}-rtl`]: m === "rtl",
|
|
342
|
-
[`${i}-wrapper-checked`]: g.checked,
|
|
343
|
-
[`${i}-wrapper-disabled`]: A,
|
|
344
|
-
[`${i}-wrapper-in-form-item`]: _
|
|
345
|
-
}, u == null ? void 0 : u.className, s, C, j, f, R), c = F({
|
|
346
|
-
[`${i}-indeterminate`]: h
|
|
347
|
-
}, pe, R), [k, v] = ke(g.onClick);
|
|
348
|
-
return V(/* @__PURE__ */ t.createElement(xe, {
|
|
349
|
-
component: "Checkbox",
|
|
350
|
-
disabled: A
|
|
351
|
-
}, /* @__PURE__ */ t.createElement("label", {
|
|
352
|
-
className: D,
|
|
353
|
-
style: Object.assign(Object.assign({}, u == null ? void 0 : u.style), O),
|
|
354
|
-
onMouseEnter: y,
|
|
355
|
-
onMouseLeave: d,
|
|
356
|
-
onClick: k
|
|
357
|
-
}, /* @__PURE__ */ t.createElement(ge, Object.assign({}, g, {
|
|
358
|
-
onClick: v,
|
|
359
|
-
prefixCls: i,
|
|
360
|
-
className: c,
|
|
361
|
-
disabled: A,
|
|
362
|
-
ref: w
|
|
363
|
-
})), $ !== void 0 && /* @__PURE__ */ t.createElement("span", null, $))));
|
|
364
|
-
}, M = /* @__PURE__ */ t.forwardRef(Se);
|
|
365
|
-
process.env.NODE_ENV !== "production" && (M.displayName = "Checkbox");
|
|
366
|
-
var Ae = function(e, r) {
|
|
367
|
-
var n = {};
|
|
368
|
-
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && r.indexOf(o) < 0 && (n[o] = e[o]);
|
|
369
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var s = 0, o = Object.getOwnPropertySymbols(e); s < o.length; s++)
|
|
370
|
-
r.indexOf(o[s]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[s]) && (n[o[s]] = e[o[s]]);
|
|
371
|
-
return n;
|
|
372
|
-
};
|
|
373
|
-
const we = /* @__PURE__ */ t.forwardRef((e, r) => {
|
|
374
|
-
const {
|
|
375
|
-
defaultValue: n,
|
|
376
|
-
children: o,
|
|
377
|
-
options: s = [],
|
|
378
|
-
prefixCls: C,
|
|
379
|
-
className: $,
|
|
380
|
-
rootClassName: h,
|
|
381
|
-
style: O,
|
|
382
|
-
onChange: y
|
|
383
|
-
} = e, d = Ae(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
|
|
384
|
-
getPrefixCls: S,
|
|
385
|
-
direction: P
|
|
386
|
-
} = t.useContext(K), [l, E] = t.useState(d.value || n || []), [m, u] = t.useState([]);
|
|
387
|
-
t.useEffect(() => {
|
|
388
|
-
"value" in d && E(d.value || []);
|
|
389
|
-
}, [d.value]);
|
|
390
|
-
const a = t.useMemo(() => s.map((c) => typeof c == "string" || typeof c == "number" ? {
|
|
391
|
-
label: c,
|
|
392
|
-
value: c
|
|
393
|
-
} : c), [s]), _ = (c) => {
|
|
394
|
-
u((k) => k.filter((v) => v !== c));
|
|
395
|
-
}, N = (c) => {
|
|
396
|
-
u((k) => [].concat(H(k), [c]));
|
|
397
|
-
}, A = (c) => {
|
|
398
|
-
const k = l.indexOf(c.value), v = H(l);
|
|
399
|
-
k === -1 ? v.push(c.value) : v.splice(k, 1), "value" in d || E(v), y == null || y(v.filter((x) => m.includes(x)).sort((x, Y) => {
|
|
400
|
-
const Z = a.findIndex((B) => B.value === x), ee = a.findIndex((B) => B.value === Y);
|
|
401
|
-
return Z - ee;
|
|
402
|
-
}));
|
|
403
|
-
}, b = S("checkbox", C), p = `${b}-group`, w = U(b), [i, f, V] = J(b, w), R = ie(d, ["value", "disabled"]), j = s.length ? a.map((c) => /* @__PURE__ */ t.createElement(M, {
|
|
404
|
-
prefixCls: b,
|
|
405
|
-
key: c.value.toString(),
|
|
406
|
-
disabled: "disabled" in c ? c.disabled : d.disabled,
|
|
407
|
-
value: c.value,
|
|
408
|
-
checked: l.includes(c.value),
|
|
409
|
-
onChange: c.onChange,
|
|
410
|
-
className: `${p}-item`,
|
|
411
|
-
style: c.style,
|
|
412
|
-
title: c.title,
|
|
413
|
-
id: c.id,
|
|
414
|
-
required: c.required
|
|
415
|
-
}, c.label)) : o, g = {
|
|
416
|
-
toggleOption: A,
|
|
417
|
-
value: l,
|
|
418
|
-
disabled: d.disabled,
|
|
419
|
-
name: d.name,
|
|
420
|
-
// https://github.com/ant-design/ant-design/issues/16376
|
|
421
|
-
registerValue: N,
|
|
422
|
-
cancelValue: _
|
|
423
|
-
}, D = F(p, {
|
|
424
|
-
[`${p}-rtl`]: P === "rtl"
|
|
425
|
-
}, $, h, V, w, f);
|
|
426
|
-
return i(/* @__PURE__ */ t.createElement("div", Object.assign({
|
|
427
|
-
className: D,
|
|
428
|
-
style: O
|
|
429
|
-
}, R, {
|
|
430
|
-
ref: r
|
|
431
|
-
}), /* @__PURE__ */ t.createElement(Q.Provider, {
|
|
432
|
-
value: g
|
|
433
|
-
}, j)));
|
|
434
|
-
}), I = M;
|
|
435
|
-
I.Group = we;
|
|
436
|
-
I.__ANT_CHECKBOX = !0;
|
|
437
|
-
process.env.NODE_ENV !== "production" && (I.displayName = "Checkbox");
|
|
438
|
-
const Oe = ({ colors: e, borderRadius: r }, n = "primary", o = "active") => `
|
|
1
|
+
import { d as n } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import { C as a } from "../../index-BPVue1Yd.js";
|
|
3
|
+
const b = ({ colors: o, borderRadius: c }, e = "primary", r = "active") => `
|
|
439
4
|
.ant-checkbox-inner {
|
|
440
5
|
background-color: #FFFFFF;
|
|
441
6
|
border-color: #9A9A9A;
|
|
@@ -444,7 +9,7 @@ const Oe = ({ colors: e, borderRadius: r }, n = "primary", o = "active") => `
|
|
|
444
9
|
|
|
445
10
|
&::after {
|
|
446
11
|
border-color: #9A9A9A;
|
|
447
|
-
border: 2px solid ${e
|
|
12
|
+
border: 2px solid ${o[e][r].color};
|
|
448
13
|
border-top: 0;
|
|
449
14
|
border-left: 0;
|
|
450
15
|
content: "";
|
|
@@ -505,7 +70,7 @@ const Oe = ({ colors: e, borderRadius: r }, n = "primary", o = "active") => `
|
|
|
505
70
|
}
|
|
506
71
|
|
|
507
72
|
.ant-checkbox-checked .ant-checkbox-inner::after {
|
|
508
|
-
border-color: ${e
|
|
73
|
+
border-color: ${o[e].active.color};
|
|
509
74
|
}
|
|
510
75
|
|
|
511
76
|
&:hover .ant-checkbox-inner {
|
|
@@ -525,18 +90,18 @@ const Oe = ({ colors: e, borderRadius: r }, n = "primary", o = "active") => `
|
|
|
525
90
|
}
|
|
526
91
|
|
|
527
92
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
528
|
-
background-color:${e
|
|
93
|
+
background-color:${o[e].focussed.ringColor};
|
|
529
94
|
border-color: #6C6C6C;
|
|
530
95
|
}
|
|
531
96
|
|
|
532
97
|
.ant-checkbox-checked .ant-checkbox-inner {
|
|
533
|
-
background-color: ${
|
|
534
|
-
border-color: ${
|
|
98
|
+
background-color: ${o.inputs.surface.checked};
|
|
99
|
+
border-color: ${o.inputs.surface.checked};
|
|
535
100
|
}
|
|
536
101
|
|
|
537
102
|
&:hover .ant-checkbox-checked .ant-checkbox-inner {
|
|
538
|
-
background-color: ${
|
|
539
|
-
border-color: ${
|
|
103
|
+
background-color: ${o.inputs.surface.checked};
|
|
104
|
+
border-color: ${o.inputs.surface.checked};
|
|
540
105
|
}
|
|
541
106
|
|
|
542
107
|
&:hover .ant-checkbox-checked .ant-checkbox-inner::after {
|
|
@@ -548,36 +113,36 @@ const Oe = ({ colors: e, borderRadius: r }, n = "primary", o = "active") => `
|
|
|
548
113
|
}
|
|
549
114
|
|
|
550
115
|
&:hover .ant-checkbox-checked .ant-checkbox-inner {
|
|
551
|
-
background-color: ${e
|
|
116
|
+
background-color: ${o[e].focussed.ringColor};
|
|
552
117
|
border-color: #6C6C6C;
|
|
553
118
|
}
|
|
554
119
|
|
|
555
120
|
.ant-checkbox:focus-visible .ant-checkbox-inner,
|
|
556
121
|
.ant-checkbox-input:focus-visible + .ant-checkbox-inner {
|
|
557
122
|
outline: none;
|
|
558
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e
|
|
559
|
-
border-radius: ${
|
|
123
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[e].focussed.ringColor};
|
|
124
|
+
border-radius: ${c.BorderRadiusXs}px;
|
|
560
125
|
border-color: #9A9A9A;
|
|
561
126
|
transition: box-shadow 0.2s ease-in-out;
|
|
562
127
|
}
|
|
563
128
|
|
|
564
129
|
.ant-checkbox-input:focus + .ant-checkbox-inner {
|
|
565
|
-
border-color: ${e
|
|
130
|
+
border-color: ${o[e].hover.borderColor};
|
|
566
131
|
}
|
|
567
132
|
|
|
568
133
|
&:focus-visible {
|
|
569
134
|
outline: none;
|
|
570
|
-
color: ${e
|
|
571
|
-
background-color: ${e
|
|
572
|
-
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${e
|
|
573
|
-
border-radius: ${
|
|
135
|
+
color: ${o[e].focussed.color};
|
|
136
|
+
background-color: ${o[e].focussed.backgroundColor};
|
|
137
|
+
box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${o[e].focussed.ringColor};
|
|
138
|
+
border-radius: ${c.BorderRadiusXs}px;
|
|
574
139
|
border-color: #9A9A9A;
|
|
575
140
|
transition: box-shadow 0.2s ease-in-out;
|
|
576
141
|
}
|
|
577
|
-
`,
|
|
578
|
-
${({ theme:
|
|
142
|
+
`, h = n(a)`
|
|
143
|
+
${({ theme: o, type: c, state: e }) => b(o, c, e)}
|
|
579
144
|
`;
|
|
580
145
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
146
|
+
h as StyledCheckbox,
|
|
147
|
+
b as getGenesisClass
|
|
583
148
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ColumnsType } from 'antd/es/table';
|
|
2
|
+
|
|
3
|
+
interface DeliveryData {
|
|
4
|
+
id: string;
|
|
5
|
+
driverName: string;
|
|
6
|
+
vehicleType: "EV" | "ICE";
|
|
7
|
+
deliveryTime: string;
|
|
8
|
+
parcelsDelivered: number;
|
|
9
|
+
location: string;
|
|
10
|
+
status: "completed" | "in-progress" | "pending";
|
|
11
|
+
}
|
|
12
|
+
export declare const deliveryData: DeliveryData[];
|
|
13
|
+
export declare const columns: ColumnsType<DeliveryData>;
|
|
14
|
+
export {};
|