@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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import a from "react";
|
|
2
|
+
var p = {
|
|
3
|
+
color: void 0,
|
|
4
|
+
size: void 0,
|
|
5
|
+
className: void 0,
|
|
6
|
+
style: void 0,
|
|
7
|
+
attr: void 0
|
|
8
|
+
}, s = a.createContext && /* @__PURE__ */ a.createContext(p), g = ["attr", "size", "title"];
|
|
9
|
+
function v(e, t) {
|
|
10
|
+
if (e == null) return {};
|
|
11
|
+
var r = d(e, t), n, i;
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
14
|
+
for (i = 0; i < o.length; i++)
|
|
15
|
+
n = o[i], !(t.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (r[n] = e[n]);
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
}
|
|
19
|
+
function d(e, t) {
|
|
20
|
+
if (e == null) return {};
|
|
21
|
+
var r = {};
|
|
22
|
+
for (var n in e)
|
|
23
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
24
|
+
if (t.indexOf(n) >= 0) continue;
|
|
25
|
+
r[n] = e[n];
|
|
26
|
+
}
|
|
27
|
+
return r;
|
|
28
|
+
}
|
|
29
|
+
function c() {
|
|
30
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
31
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
32
|
+
var r = arguments[t];
|
|
33
|
+
for (var n in r)
|
|
34
|
+
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
35
|
+
}
|
|
36
|
+
return e;
|
|
37
|
+
}, c.apply(this, arguments);
|
|
38
|
+
}
|
|
39
|
+
function m(e, t) {
|
|
40
|
+
var r = Object.keys(e);
|
|
41
|
+
if (Object.getOwnPropertySymbols) {
|
|
42
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
43
|
+
t && (n = n.filter(function(i) {
|
|
44
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
45
|
+
})), r.push.apply(r, n);
|
|
46
|
+
}
|
|
47
|
+
return r;
|
|
48
|
+
}
|
|
49
|
+
function u(e) {
|
|
50
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
51
|
+
var r = arguments[t] != null ? arguments[t] : {};
|
|
52
|
+
t % 2 ? m(Object(r), !0).forEach(function(n) {
|
|
53
|
+
y(e, n, r[n]);
|
|
54
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : m(Object(r)).forEach(function(n) {
|
|
55
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return e;
|
|
59
|
+
}
|
|
60
|
+
function y(e, t, r) {
|
|
61
|
+
return t = j(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
62
|
+
}
|
|
63
|
+
function j(e) {
|
|
64
|
+
var t = P(e, "string");
|
|
65
|
+
return typeof t == "symbol" ? t : t + "";
|
|
66
|
+
}
|
|
67
|
+
function P(e, t) {
|
|
68
|
+
if (typeof e != "object" || !e) return e;
|
|
69
|
+
var r = e[Symbol.toPrimitive];
|
|
70
|
+
if (r !== void 0) {
|
|
71
|
+
var n = r.call(e, t || "default");
|
|
72
|
+
if (typeof n != "object") return n;
|
|
73
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
74
|
+
}
|
|
75
|
+
return (t === "string" ? String : Number)(e);
|
|
76
|
+
}
|
|
77
|
+
function b(e) {
|
|
78
|
+
return e && e.map((t, r) => /* @__PURE__ */ a.createElement(t.tag, u({
|
|
79
|
+
key: r
|
|
80
|
+
}, t.attr), b(t.child)));
|
|
81
|
+
}
|
|
82
|
+
function E(e) {
|
|
83
|
+
return (t) => /* @__PURE__ */ a.createElement(h, c({
|
|
84
|
+
attr: u({}, e.attr)
|
|
85
|
+
}, t), b(e.child));
|
|
86
|
+
}
|
|
87
|
+
function h(e) {
|
|
88
|
+
var t = (r) => {
|
|
89
|
+
var {
|
|
90
|
+
attr: n,
|
|
91
|
+
size: i,
|
|
92
|
+
title: o
|
|
93
|
+
} = e, O = v(e, g), f = i || r.size || "1em", l;
|
|
94
|
+
return r.className && (l = r.className), e.className && (l = (l ? l + " " : "") + e.className), /* @__PURE__ */ a.createElement("svg", c({
|
|
95
|
+
stroke: "currentColor",
|
|
96
|
+
fill: "currentColor",
|
|
97
|
+
strokeWidth: "0"
|
|
98
|
+
}, r.attr, n, O, {
|
|
99
|
+
className: l,
|
|
100
|
+
style: u(u({
|
|
101
|
+
color: e.color || r.color
|
|
102
|
+
}, r.style), e.style),
|
|
103
|
+
height: f,
|
|
104
|
+
width: f,
|
|
105
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
106
|
+
}), o && /* @__PURE__ */ a.createElement("title", null, o), e.children);
|
|
107
|
+
};
|
|
108
|
+
return s !== void 0 ? /* @__PURE__ */ a.createElement(s.Consumer, null, (r) => t(r)) : t(p);
|
|
109
|
+
}
|
|
110
|
+
export {
|
|
111
|
+
E as G
|
|
112
|
+
};
|
|
@@ -0,0 +1,445 @@
|
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import X, { forwardRef as ne, useRef as G, useImperativeHandle as re } from "react";
|
|
3
|
+
import { g as te, a as ae, e as V, b as F, d as oe, _ as W } from "./presets-Djh_L_6R.js";
|
|
4
|
+
import { u as le } from "./useMergedState-D6toxSxh.js";
|
|
5
|
+
import { F as H, j as ie, m as se, k as M, w as ce, f as q, C as K, D as de, t as ue, g as fe, o as A } from "./index-BbTV2Cw5.js";
|
|
6
|
+
import { T as pe, W as be } from "./index-BpZSuIUV.js";
|
|
7
|
+
import { u as U } from "./useCSSVarCls-Dau77fzS.js";
|
|
8
|
+
import { F as me } from "./context-DIFtNa4d.js";
|
|
9
|
+
import "./index-DLdU7Tpd.js";
|
|
10
|
+
import { o as Ce } from "./omit-B_u6A-HL.js";
|
|
11
|
+
var he = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], ge = /* @__PURE__ */ ne(function(e, n) {
|
|
12
|
+
var r = e.prefixCls, t = r === void 0 ? "rc-checkbox" : r, c = e.className, h = e.style, $ = e.checked, b = e.disabled, _ = e.defaultChecked, S = _ === void 0 ? !1 : _, d = e.type, O = d === void 0 ? "checkbox" : d, R = e.title, i = e.onChange, k = te(e, he), g = G(null), u = G(null), a = le(S, {
|
|
13
|
+
value: $
|
|
14
|
+
}), N = ae(a, 2), P = N[0], w = N[1];
|
|
15
|
+
re(n, function() {
|
|
16
|
+
return {
|
|
17
|
+
focus: function(s) {
|
|
18
|
+
var p;
|
|
19
|
+
(p = g.current) === null || p === void 0 || p.focus(s);
|
|
20
|
+
},
|
|
21
|
+
blur: function() {
|
|
22
|
+
var s;
|
|
23
|
+
(s = g.current) === null || s === void 0 || s.blur();
|
|
24
|
+
},
|
|
25
|
+
input: g.current,
|
|
26
|
+
nativeElement: u.current
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
var f = V(t, c, F(F({}, "".concat(t, "-checked"), P), "".concat(t, "-disabled"), b)), m = function(s) {
|
|
30
|
+
b || ("checked" in e || w(s.target.checked), i == null || i({
|
|
31
|
+
target: W(W({}, e), {}, {
|
|
32
|
+
type: O,
|
|
33
|
+
checked: s.target.checked
|
|
34
|
+
}),
|
|
35
|
+
stopPropagation: function() {
|
|
36
|
+
s.stopPropagation();
|
|
37
|
+
},
|
|
38
|
+
preventDefault: function() {
|
|
39
|
+
s.preventDefault();
|
|
40
|
+
},
|
|
41
|
+
nativeEvent: s.nativeEvent
|
|
42
|
+
}));
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ l.createElement("span", {
|
|
45
|
+
className: f,
|
|
46
|
+
title: R,
|
|
47
|
+
style: h,
|
|
48
|
+
ref: u
|
|
49
|
+
}, /* @__PURE__ */ l.createElement("input", oe({}, k, {
|
|
50
|
+
className: "".concat(t, "-input"),
|
|
51
|
+
ref: g,
|
|
52
|
+
onChange: m,
|
|
53
|
+
disabled: b,
|
|
54
|
+
checked: !!P,
|
|
55
|
+
type: O
|
|
56
|
+
})), /* @__PURE__ */ l.createElement("span", {
|
|
57
|
+
className: "".concat(t, "-inner")
|
|
58
|
+
}));
|
|
59
|
+
});
|
|
60
|
+
function ve(e) {
|
|
61
|
+
const n = X.useRef(null), r = () => {
|
|
62
|
+
H.cancel(n.current), n.current = null;
|
|
63
|
+
};
|
|
64
|
+
return [() => {
|
|
65
|
+
r(), n.current = H(() => {
|
|
66
|
+
n.current = null;
|
|
67
|
+
});
|
|
68
|
+
}, (h) => {
|
|
69
|
+
n.current && (h.stopPropagation(), r()), e == null || e(h);
|
|
70
|
+
}];
|
|
71
|
+
}
|
|
72
|
+
const xe = (e) => {
|
|
73
|
+
const {
|
|
74
|
+
checkboxCls: n
|
|
75
|
+
} = e, r = `${n}-wrapper`;
|
|
76
|
+
return [
|
|
77
|
+
// ===================== Basic =====================
|
|
78
|
+
{
|
|
79
|
+
// Group
|
|
80
|
+
[`${n}-group`]: Object.assign(Object.assign({}, M(e)), {
|
|
81
|
+
display: "inline-flex",
|
|
82
|
+
flexWrap: "wrap",
|
|
83
|
+
columnGap: e.marginXS,
|
|
84
|
+
// Group > Grid
|
|
85
|
+
[`> ${e.antCls}-row`]: {
|
|
86
|
+
flex: 1
|
|
87
|
+
}
|
|
88
|
+
}),
|
|
89
|
+
// Wrapper
|
|
90
|
+
[r]: Object.assign(Object.assign({}, M(e)), {
|
|
91
|
+
display: "inline-flex",
|
|
92
|
+
alignItems: "baseline",
|
|
93
|
+
cursor: "pointer",
|
|
94
|
+
// Fix checkbox & radio in flex align #30260
|
|
95
|
+
"&:after": {
|
|
96
|
+
display: "inline-block",
|
|
97
|
+
width: 0,
|
|
98
|
+
overflow: "hidden",
|
|
99
|
+
content: "'\\a0'"
|
|
100
|
+
},
|
|
101
|
+
// Checkbox near checkbox
|
|
102
|
+
[`& + ${r}`]: {
|
|
103
|
+
marginInlineStart: 0
|
|
104
|
+
},
|
|
105
|
+
[`&${r}-in-form-item`]: {
|
|
106
|
+
'input[type="checkbox"]': {
|
|
107
|
+
width: 14,
|
|
108
|
+
// FIXME: magic
|
|
109
|
+
height: 14
|
|
110
|
+
// FIXME: magic
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}),
|
|
114
|
+
// Wrapper > Checkbox
|
|
115
|
+
[n]: Object.assign(Object.assign({}, M(e)), {
|
|
116
|
+
position: "relative",
|
|
117
|
+
whiteSpace: "nowrap",
|
|
118
|
+
lineHeight: 1,
|
|
119
|
+
cursor: "pointer",
|
|
120
|
+
borderRadius: e.borderRadiusSM,
|
|
121
|
+
// To make alignment right when `controlHeight` is changed
|
|
122
|
+
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
|
123
|
+
alignSelf: "center",
|
|
124
|
+
// Wrapper > Checkbox > input
|
|
125
|
+
[`${n}-input`]: {
|
|
126
|
+
position: "absolute",
|
|
127
|
+
// Since baseline align will get additional space offset,
|
|
128
|
+
// we need to move input to top to make it align with text.
|
|
129
|
+
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
|
|
130
|
+
inset: 0,
|
|
131
|
+
zIndex: 1,
|
|
132
|
+
cursor: "pointer",
|
|
133
|
+
opacity: 0,
|
|
134
|
+
margin: 0,
|
|
135
|
+
[`&:focus-visible + ${n}-inner`]: Object.assign({}, ce(e))
|
|
136
|
+
},
|
|
137
|
+
// Wrapper > Checkbox > inner
|
|
138
|
+
[`${n}-inner`]: {
|
|
139
|
+
boxSizing: "border-box",
|
|
140
|
+
display: "block",
|
|
141
|
+
width: e.checkboxSize,
|
|
142
|
+
height: e.checkboxSize,
|
|
143
|
+
direction: "ltr",
|
|
144
|
+
backgroundColor: e.colorBgContainer,
|
|
145
|
+
border: `${q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
146
|
+
borderRadius: e.borderRadiusSM,
|
|
147
|
+
borderCollapse: "separate",
|
|
148
|
+
transition: `all ${e.motionDurationSlow}`,
|
|
149
|
+
"&:after": {
|
|
150
|
+
boxSizing: "border-box",
|
|
151
|
+
position: "absolute",
|
|
152
|
+
top: "50%",
|
|
153
|
+
insetInlineStart: "25%",
|
|
154
|
+
display: "table",
|
|
155
|
+
width: e.calc(e.checkboxSize).div(14).mul(5).equal(),
|
|
156
|
+
height: e.calc(e.checkboxSize).div(14).mul(8).equal(),
|
|
157
|
+
border: `${q(e.lineWidthBold)} solid ${e.colorWhite}`,
|
|
158
|
+
borderTop: 0,
|
|
159
|
+
borderInlineStart: 0,
|
|
160
|
+
transform: "rotate(45deg) scale(0) translate(-50%,-50%)",
|
|
161
|
+
opacity: 0,
|
|
162
|
+
content: '""',
|
|
163
|
+
transition: `all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
// Wrapper > Checkbox + Text
|
|
167
|
+
"& + span": {
|
|
168
|
+
paddingInlineStart: e.paddingXS,
|
|
169
|
+
paddingInlineEnd: e.paddingXS
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
},
|
|
173
|
+
// ===================== Hover =====================
|
|
174
|
+
{
|
|
175
|
+
// Wrapper & Wrapper > Checkbox
|
|
176
|
+
[`
|
|
177
|
+
${r}:not(${r}-disabled),
|
|
178
|
+
${n}:not(${n}-disabled)
|
|
179
|
+
`]: {
|
|
180
|
+
[`&:hover ${n}-inner`]: {
|
|
181
|
+
borderColor: e.colorPrimary
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
[`${r}:not(${r}-disabled)`]: {
|
|
185
|
+
[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]: {
|
|
186
|
+
backgroundColor: e.colorPrimaryHover,
|
|
187
|
+
borderColor: "transparent"
|
|
188
|
+
},
|
|
189
|
+
[`&:hover ${n}-checked:not(${n}-disabled):after`]: {
|
|
190
|
+
borderColor: e.colorPrimaryHover
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
// ==================== Checked ====================
|
|
195
|
+
{
|
|
196
|
+
// Wrapper > Checkbox
|
|
197
|
+
[`${n}-checked`]: {
|
|
198
|
+
[`${n}-inner`]: {
|
|
199
|
+
backgroundColor: e.colorPrimary,
|
|
200
|
+
borderColor: e.colorPrimary,
|
|
201
|
+
"&:after": {
|
|
202
|
+
opacity: 1,
|
|
203
|
+
transform: "rotate(45deg) scale(1) translate(-50%,-50%)",
|
|
204
|
+
transition: `all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
[`
|
|
209
|
+
${r}-checked:not(${r}-disabled),
|
|
210
|
+
${n}-checked:not(${n}-disabled)
|
|
211
|
+
`]: {
|
|
212
|
+
[`&:hover ${n}-inner`]: {
|
|
213
|
+
backgroundColor: e.colorPrimaryHover,
|
|
214
|
+
borderColor: "transparent"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
// ================= Indeterminate =================
|
|
219
|
+
{
|
|
220
|
+
[n]: {
|
|
221
|
+
"&-indeterminate": {
|
|
222
|
+
// Wrapper > Checkbox > inner
|
|
223
|
+
[`${n}-inner`]: {
|
|
224
|
+
backgroundColor: `${e.colorBgContainer} !important`,
|
|
225
|
+
borderColor: `${e.colorBorder} !important`,
|
|
226
|
+
"&:after": {
|
|
227
|
+
top: "50%",
|
|
228
|
+
insetInlineStart: "50%",
|
|
229
|
+
width: e.calc(e.fontSizeLG).div(2).equal(),
|
|
230
|
+
height: e.calc(e.fontSizeLG).div(2).equal(),
|
|
231
|
+
backgroundColor: e.colorPrimary,
|
|
232
|
+
border: 0,
|
|
233
|
+
transform: "translate(-50%, -50%) scale(1)",
|
|
234
|
+
opacity: 1,
|
|
235
|
+
content: '""'
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
// https://github.com/ant-design/ant-design/issues/50074
|
|
239
|
+
[`&:hover ${n}-inner`]: {
|
|
240
|
+
backgroundColor: `${e.colorBgContainer} !important`,
|
|
241
|
+
borderColor: `${e.colorPrimary} !important`
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
// ==================== Disable ====================
|
|
247
|
+
{
|
|
248
|
+
// Wrapper
|
|
249
|
+
[`${r}-disabled`]: {
|
|
250
|
+
cursor: "not-allowed"
|
|
251
|
+
},
|
|
252
|
+
// Wrapper > Checkbox
|
|
253
|
+
[`${n}-disabled`]: {
|
|
254
|
+
// Wrapper > Checkbox > input
|
|
255
|
+
[`&, ${n}-input`]: {
|
|
256
|
+
cursor: "not-allowed",
|
|
257
|
+
// Disabled for native input to enable Tooltip event handler
|
|
258
|
+
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
|
259
|
+
pointerEvents: "none"
|
|
260
|
+
},
|
|
261
|
+
// Wrapper > Checkbox > inner
|
|
262
|
+
[`${n}-inner`]: {
|
|
263
|
+
background: e.colorBgContainerDisabled,
|
|
264
|
+
borderColor: e.colorBorder,
|
|
265
|
+
"&:after": {
|
|
266
|
+
borderColor: e.colorTextDisabled
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"&:after": {
|
|
270
|
+
display: "none"
|
|
271
|
+
},
|
|
272
|
+
"& + span": {
|
|
273
|
+
color: e.colorTextDisabled
|
|
274
|
+
},
|
|
275
|
+
[`&${n}-indeterminate ${n}-inner::after`]: {
|
|
276
|
+
background: e.colorTextDisabled
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
];
|
|
281
|
+
};
|
|
282
|
+
function ye(e, n) {
|
|
283
|
+
const r = se(n, {
|
|
284
|
+
checkboxCls: `.${e}`,
|
|
285
|
+
checkboxSize: n.controlInteractiveSize
|
|
286
|
+
});
|
|
287
|
+
return [xe(r)];
|
|
288
|
+
}
|
|
289
|
+
const J = ie("Checkbox", (e, n) => {
|
|
290
|
+
let {
|
|
291
|
+
prefixCls: r
|
|
292
|
+
} = n;
|
|
293
|
+
return [ye(r, e)];
|
|
294
|
+
}), Q = /* @__PURE__ */ X.createContext(null);
|
|
295
|
+
var $e = function(e, n) {
|
|
296
|
+
var r = {};
|
|
297
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
|
|
298
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, t = Object.getOwnPropertySymbols(e); c < t.length; c++)
|
|
299
|
+
n.indexOf(t[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[c]) && (r[t[c]] = e[t[c]]);
|
|
300
|
+
return r;
|
|
301
|
+
};
|
|
302
|
+
const Se = (e, n) => {
|
|
303
|
+
var r;
|
|
304
|
+
const {
|
|
305
|
+
prefixCls: t,
|
|
306
|
+
className: c,
|
|
307
|
+
rootClassName: h,
|
|
308
|
+
children: $,
|
|
309
|
+
indeterminate: b = !1,
|
|
310
|
+
style: _,
|
|
311
|
+
onMouseEnter: S,
|
|
312
|
+
onMouseLeave: d,
|
|
313
|
+
skipGroup: O = !1,
|
|
314
|
+
disabled: R
|
|
315
|
+
} = e, i = $e(e, ["prefixCls", "className", "rootClassName", "children", "indeterminate", "style", "onMouseEnter", "onMouseLeave", "skipGroup", "disabled"]), {
|
|
316
|
+
getPrefixCls: k,
|
|
317
|
+
direction: g,
|
|
318
|
+
checkbox: u
|
|
319
|
+
} = l.useContext(K), a = l.useContext(Q), {
|
|
320
|
+
isFormItemInput: N
|
|
321
|
+
} = l.useContext(me), P = l.useContext(de), w = (r = (a == null ? void 0 : a.disabled) || R) !== null && r !== void 0 ? r : P, f = l.useRef(i.value), m = l.useRef(null), E = ue(n, m);
|
|
322
|
+
if (process.env.NODE_ENV !== "production") {
|
|
323
|
+
const C = fe("Checkbox");
|
|
324
|
+
process.env.NODE_ENV !== "production" && C("checked" in i || !!a || !("value" in i), "usage", "`value` is not a valid prop, do you mean `checked`?");
|
|
325
|
+
}
|
|
326
|
+
l.useEffect(() => {
|
|
327
|
+
a == null || a.registerValue(i.value);
|
|
328
|
+
}, []), l.useEffect(() => {
|
|
329
|
+
if (!O)
|
|
330
|
+
return i.value !== f.current && (a == null || a.cancelValue(f.current), a == null || a.registerValue(i.value), f.current = i.value), () => a == null ? void 0 : a.cancelValue(i.value);
|
|
331
|
+
}, [i.value]), l.useEffect(() => {
|
|
332
|
+
var C;
|
|
333
|
+
!((C = m.current) === null || C === void 0) && C.input && (m.current.input.indeterminate = b);
|
|
334
|
+
}, [b]);
|
|
335
|
+
const s = k("checkbox", t), p = U(s), [j, I, D] = J(s, p), v = Object.assign({}, i);
|
|
336
|
+
a && !O && (v.onChange = function() {
|
|
337
|
+
i.onChange && i.onChange.apply(i, arguments), a.toggleOption && a.toggleOption({
|
|
338
|
+
label: $,
|
|
339
|
+
value: i.value
|
|
340
|
+
});
|
|
341
|
+
}, v.name = a.name, v.checked = a.value.includes(i.value));
|
|
342
|
+
const z = V(`${s}-wrapper`, {
|
|
343
|
+
[`${s}-rtl`]: g === "rtl",
|
|
344
|
+
[`${s}-wrapper-checked`]: v.checked,
|
|
345
|
+
[`${s}-wrapper-disabled`]: w,
|
|
346
|
+
[`${s}-wrapper-in-form-item`]: N
|
|
347
|
+
}, u == null ? void 0 : u.className, c, h, D, p, I), o = V({
|
|
348
|
+
[`${s}-indeterminate`]: b
|
|
349
|
+
}, pe, I), [x, y] = ve(v.onClick);
|
|
350
|
+
return j(/* @__PURE__ */ l.createElement(be, {
|
|
351
|
+
component: "Checkbox",
|
|
352
|
+
disabled: w
|
|
353
|
+
}, /* @__PURE__ */ l.createElement("label", {
|
|
354
|
+
className: z,
|
|
355
|
+
style: Object.assign(Object.assign({}, u == null ? void 0 : u.style), _),
|
|
356
|
+
onMouseEnter: S,
|
|
357
|
+
onMouseLeave: d,
|
|
358
|
+
onClick: x
|
|
359
|
+
}, /* @__PURE__ */ l.createElement(ge, Object.assign({}, v, {
|
|
360
|
+
onClick: y,
|
|
361
|
+
prefixCls: s,
|
|
362
|
+
className: o,
|
|
363
|
+
disabled: w,
|
|
364
|
+
ref: E
|
|
365
|
+
})), $ !== void 0 && /* @__PURE__ */ l.createElement("span", null, $))));
|
|
366
|
+
}, L = /* @__PURE__ */ l.forwardRef(Se);
|
|
367
|
+
process.env.NODE_ENV !== "production" && (L.displayName = "Checkbox");
|
|
368
|
+
var Oe = function(e, n) {
|
|
369
|
+
var r = {};
|
|
370
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (r[t] = e[t]);
|
|
371
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var c = 0, t = Object.getOwnPropertySymbols(e); c < t.length; c++)
|
|
372
|
+
n.indexOf(t[c]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[c]) && (r[t[c]] = e[t[c]]);
|
|
373
|
+
return r;
|
|
374
|
+
};
|
|
375
|
+
const we = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
376
|
+
const {
|
|
377
|
+
defaultValue: r,
|
|
378
|
+
children: t,
|
|
379
|
+
options: c = [],
|
|
380
|
+
prefixCls: h,
|
|
381
|
+
className: $,
|
|
382
|
+
rootClassName: b,
|
|
383
|
+
style: _,
|
|
384
|
+
onChange: S
|
|
385
|
+
} = e, d = Oe(e, ["defaultValue", "children", "options", "prefixCls", "className", "rootClassName", "style", "onChange"]), {
|
|
386
|
+
getPrefixCls: O,
|
|
387
|
+
direction: R
|
|
388
|
+
} = l.useContext(K), [i, k] = l.useState(d.value || r || []), [g, u] = l.useState([]);
|
|
389
|
+
l.useEffect(() => {
|
|
390
|
+
"value" in d && k(d.value || []);
|
|
391
|
+
}, [d.value]);
|
|
392
|
+
const a = l.useMemo(() => c.map((o) => typeof o == "string" || typeof o == "number" ? {
|
|
393
|
+
label: o,
|
|
394
|
+
value: o
|
|
395
|
+
} : o), [c]), N = (o) => {
|
|
396
|
+
u((x) => x.filter((y) => y !== o));
|
|
397
|
+
}, P = (o) => {
|
|
398
|
+
u((x) => [].concat(A(x), [o]));
|
|
399
|
+
}, w = (o) => {
|
|
400
|
+
const x = i.indexOf(o.value), y = A(i);
|
|
401
|
+
x === -1 ? y.push(o.value) : y.splice(x, 1), "value" in d || k(y), S == null || S(y.filter((C) => g.includes(C)).sort((C, Y) => {
|
|
402
|
+
const Z = a.findIndex((B) => B.value === C), ee = a.findIndex((B) => B.value === Y);
|
|
403
|
+
return Z - ee;
|
|
404
|
+
}));
|
|
405
|
+
}, f = O("checkbox", h), m = `${f}-group`, E = U(f), [s, p, j] = J(f, E), I = Ce(d, ["value", "disabled"]), D = c.length ? a.map((o) => /* @__PURE__ */ l.createElement(L, {
|
|
406
|
+
prefixCls: f,
|
|
407
|
+
key: o.value.toString(),
|
|
408
|
+
disabled: "disabled" in o ? o.disabled : d.disabled,
|
|
409
|
+
value: o.value,
|
|
410
|
+
checked: i.includes(o.value),
|
|
411
|
+
onChange: o.onChange,
|
|
412
|
+
className: `${m}-item`,
|
|
413
|
+
style: o.style,
|
|
414
|
+
title: o.title,
|
|
415
|
+
id: o.id,
|
|
416
|
+
required: o.required
|
|
417
|
+
}, o.label)) : t, v = {
|
|
418
|
+
toggleOption: w,
|
|
419
|
+
value: i,
|
|
420
|
+
disabled: d.disabled,
|
|
421
|
+
name: d.name,
|
|
422
|
+
// https://github.com/ant-design/ant-design/issues/16376
|
|
423
|
+
registerValue: P,
|
|
424
|
+
cancelValue: N
|
|
425
|
+
}, z = V(m, {
|
|
426
|
+
[`${m}-rtl`]: R === "rtl"
|
|
427
|
+
}, $, b, j, E, p);
|
|
428
|
+
return s(/* @__PURE__ */ l.createElement("div", Object.assign({
|
|
429
|
+
className: z,
|
|
430
|
+
style: _
|
|
431
|
+
}, I, {
|
|
432
|
+
ref: n
|
|
433
|
+
}), /* @__PURE__ */ l.createElement(Q.Provider, {
|
|
434
|
+
value: v
|
|
435
|
+
}, D)));
|
|
436
|
+
}), T = L;
|
|
437
|
+
T.Group = we;
|
|
438
|
+
T.__ANT_CHECKBOX = !0;
|
|
439
|
+
process.env.NODE_ENV !== "production" && (T.displayName = "Checkbox");
|
|
440
|
+
export {
|
|
441
|
+
T as C,
|
|
442
|
+
ge as a,
|
|
443
|
+
ye as g,
|
|
444
|
+
ve as u
|
|
445
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as H, f as U, j as P, d as Z } from "./presets-Djh_L_6R.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { t as ee } from "./
|
|
4
|
-
import {
|
|
3
|
+
import { t as ee } from "./toArray-U3Az44CO.js";
|
|
4
|
+
import { x as te, y as ne, e as re, _ as ie, z as oe, A as se, B as ae, E } from "./index-BbTV2Cw5.js";
|
|
5
5
|
var O = /* @__PURE__ */ a.createContext(null);
|
|
6
6
|
function ue(e) {
|
|
7
7
|
var t = e.children, n = e.onBatchResize, r = a.useRef(0), i = a.useRef([]), o = a.useContext(O), s = a.useCallback(function(f, u, c) {
|
|
@@ -151,7 +151,7 @@ var de = 20, le = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
151
151
|
function g(e) {
|
|
152
152
|
return parseFloat(e) || 0;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function k(e) {
|
|
155
155
|
for (var t = [], n = 1; n < arguments.length; n++)
|
|
156
156
|
t[n - 1] = arguments[n];
|
|
157
157
|
return t.reduce(function(r, i) {
|
|
@@ -175,7 +175,7 @@ function _e(e) {
|
|
|
175
175
|
if (!t && !n)
|
|
176
176
|
return V;
|
|
177
177
|
var r = p(e).getComputedStyle(e), i = be(r), o = i.left + i.right, s = i.top + i.bottom, f = g(r.width), u = g(r.height);
|
|
178
|
-
if (r.boxSizing === "border-box" && (Math.round(f + o) !== t && (f -=
|
|
178
|
+
if (r.boxSizing === "border-box" && (Math.round(f + o) !== t && (f -= k(r, "left", "right") + o), Math.round(u + s) !== n && (u -= k(r, "top", "bottom") + s)), !ye(e)) {
|
|
179
179
|
var c = Math.round(f + o) - t, l = Math.round(u + s) - n;
|
|
180
180
|
Math.abs(c) !== 1 && (f -= c), Math.abs(l) !== 1 && (u -= l);
|
|
181
181
|
}
|
|
@@ -279,7 +279,7 @@ var Ee = (
|
|
|
279
279
|
return this.activeObservations_.length > 0;
|
|
280
280
|
}, e;
|
|
281
281
|
}()
|
|
282
|
-
),
|
|
282
|
+
), B = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : new I(), j = (
|
|
283
283
|
/** @class */
|
|
284
284
|
/* @__PURE__ */ function() {
|
|
285
285
|
function e(t) {
|
|
@@ -288,7 +288,7 @@ var Ee = (
|
|
|
288
288
|
if (!arguments.length)
|
|
289
289
|
throw new TypeError("1 argument required, but only 0 present.");
|
|
290
290
|
var n = pe.getInstance(), r = new ze(t, n, this);
|
|
291
|
-
|
|
291
|
+
B.set(this, r);
|
|
292
292
|
}
|
|
293
293
|
return e;
|
|
294
294
|
}()
|
|
@@ -298,13 +298,13 @@ var Ee = (
|
|
|
298
298
|
"unobserve",
|
|
299
299
|
"disconnect"
|
|
300
300
|
].forEach(function(e) {
|
|
301
|
-
|
|
301
|
+
j.prototype[e] = function() {
|
|
302
302
|
var t;
|
|
303
|
-
return (t =
|
|
303
|
+
return (t = B.get(this))[e].apply(t, arguments);
|
|
304
304
|
};
|
|
305
305
|
});
|
|
306
306
|
var Ce = function() {
|
|
307
|
-
return typeof _.ResizeObserver < "u" ? _.ResizeObserver :
|
|
307
|
+
return typeof _.ResizeObserver < "u" ? _.ResizeObserver : j;
|
|
308
308
|
}(), d = /* @__PURE__ */ new Map();
|
|
309
309
|
function F(e) {
|
|
310
310
|
e.forEach(function(t) {
|
|
@@ -362,7 +362,7 @@ function De(e, t) {
|
|
|
362
362
|
offsetHeight: m
|
|
363
363
|
};
|
|
364
364
|
c.current = T;
|
|
365
|
-
var J = b === Math.round(R) ? R : b, Q = m === Math.round(w) ? w : m, W =
|
|
365
|
+
var J = b === Math.round(R) ? R : b, Q = m === Math.round(w) ? w : m, W = H(H({}, T), {}, {
|
|
366
366
|
offsetWidth: J,
|
|
367
367
|
offsetHeight: Q
|
|
368
368
|
});
|
|
@@ -387,7 +387,7 @@ process.env.NODE_ENV !== "production" && ($.displayName = "SingleObserver");
|
|
|
387
387
|
var Ne = "rc-observer-key";
|
|
388
388
|
function Se(e, t) {
|
|
389
389
|
var n = e.children, r = typeof n == "function" ? [n] : ee(n);
|
|
390
|
-
return process.env.NODE_ENV !== "production" && (r.length > 1 ?
|
|
390
|
+
return process.env.NODE_ENV !== "production" && (r.length > 1 ? P(!1, "Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead.") : r.length === 0 && P(!1, "`children` of ResizeObserver is empty. Nothing is in observe.")), r.map(function(i, o) {
|
|
391
391
|
var s = (i == null ? void 0 : i.key) || "".concat(Ne, "-").concat(o);
|
|
392
392
|
return /* @__PURE__ */ a.createElement($, Z({}, e, {
|
|
393
393
|
key: s,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { G as r } from "./iconBase-LROS5hdG.js";
|
|
2
|
+
function a(t) {
|
|
3
|
+
return r({ tag: "svg", attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" }, child: [] }] })(t);
|
|
4
|
+
}
|
|
5
|
+
function i(t) {
|
|
6
|
+
return r({ tag: "svg", attr: { fill: "none", viewBox: "0 0 24 24", strokeWidth: "2", stroke: "currentColor", "aria-hidden": "true" }, child: [{ tag: "path", attr: { strokeLinecap: "round", strokeLinejoin: "round", d: "M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2" }, child: [] }] })(t);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
i as H,
|
|
10
|
+
a
|
|
11
|
+
};
|