@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
package/dist/test/setup.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RenderResult } from '@testing-library/react';
|
|
2
|
-
import { ReactElement } from 'react';
|
|
3
2
|
|
|
4
|
-
declare const customRender: (ui: ReactElement) => RenderResult;
|
|
5
|
-
export
|
|
3
|
+
export declare const customRender: (ui: React.ReactElement) => RenderResult;
|
|
4
|
+
export * from '@testing-library/react';
|
package/dist/test/setup.js
CHANGED
|
@@ -1,8 +1,91 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import { a as
|
|
2
|
+
import { j as i, q as B, c as u, k as o, t as n, a as T, u as d, x as g, y as A, z as x, A as f, B as q, C as p, D as m, E as c, F as b, G as R, H as h, I as D, J as E, K as Q, L as I, f as w, M as F, N as L, O as P, P as V, Q as k, R as S, S as v, T as M, U as z, V as H, W as N, X as O, Y as W, Z as j, _ as C, $ as G, m as J, a0 as K, a1 as U, a2 as X, a3 as Y, a4 as Z, a5 as _, a6 as $, a7 as ee, a8 as ae, a9 as le, aa as se, ab as te, ac as ye, ad as re, o as ie, ae as Be, af as ue, ag as oe, ah as ne, ai as Te, aj as de, ak as ge, al as Ae, am as xe, an as fe, ao as qe, ap as pe, aq as me, ar as ce, as as be, at as Re, au as he, av as De, aw as Ee, ax as Qe, r as Ie, n as we, s as Fe, w as Le, ay as Pe, a4 as Ve, az as ke, aA as Se } from "../setup-CUbCc8fQ.js";
|
|
3
3
|
import "../providers/GenesisProvider.js";
|
|
4
|
-
import "../providers/
|
|
5
|
-
import "../Typography-
|
|
4
|
+
import "../providers/BreakpointThemeProvider.js";
|
|
5
|
+
import "../Typography-CoZ5qD-t.js";
|
|
6
|
+
import "../setup.types-dBtAXXGp.js";
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
+
i as act,
|
|
9
|
+
B as buildQueries,
|
|
10
|
+
u as cleanup,
|
|
11
|
+
o as configure,
|
|
12
|
+
n as createEvent,
|
|
13
|
+
T as customRender,
|
|
14
|
+
d as findAllByAltText,
|
|
15
|
+
g as findAllByDisplayValue,
|
|
16
|
+
A as findAllByLabelText,
|
|
17
|
+
x as findAllByPlaceholderText,
|
|
18
|
+
f as findAllByRole,
|
|
19
|
+
q as findAllByTestId,
|
|
20
|
+
p as findAllByText,
|
|
21
|
+
m as findAllByTitle,
|
|
22
|
+
c as findByAltText,
|
|
23
|
+
b as findByDisplayValue,
|
|
24
|
+
R as findByLabelText,
|
|
25
|
+
h as findByPlaceholderText,
|
|
26
|
+
D as findByRole,
|
|
27
|
+
E as findByTestId,
|
|
28
|
+
Q as findByText,
|
|
29
|
+
I as findByTitle,
|
|
30
|
+
w as fireEvent,
|
|
31
|
+
F as getAllByAltText,
|
|
32
|
+
L as getAllByDisplayValue,
|
|
33
|
+
P as getAllByLabelText,
|
|
34
|
+
V as getAllByPlaceholderText,
|
|
35
|
+
k as getAllByRole,
|
|
36
|
+
S as getAllByTestId,
|
|
37
|
+
v as getAllByText,
|
|
38
|
+
M as getAllByTitle,
|
|
39
|
+
z as getByAltText,
|
|
40
|
+
H as getByDisplayValue,
|
|
41
|
+
N as getByLabelText,
|
|
42
|
+
O as getByPlaceholderText,
|
|
43
|
+
W as getByRole,
|
|
44
|
+
j as getByTestId,
|
|
45
|
+
C as getByText,
|
|
46
|
+
G as getByTitle,
|
|
47
|
+
J as getConfig,
|
|
48
|
+
K as getDefaultNormalizer,
|
|
49
|
+
U as getElementError,
|
|
50
|
+
X as getMultipleElementsFoundError,
|
|
51
|
+
Y as getNodeText,
|
|
52
|
+
Z as getQueriesForElement,
|
|
53
|
+
_ as getRoles,
|
|
54
|
+
$ as getSuggestedQuery,
|
|
55
|
+
ee as isInaccessible,
|
|
56
|
+
ae as logDOM,
|
|
57
|
+
le as logRoles,
|
|
58
|
+
se as makeFindQuery,
|
|
59
|
+
te as makeGetAllQuery,
|
|
60
|
+
ye as makeSingleQuery,
|
|
61
|
+
re as prettyDOM,
|
|
62
|
+
ie as prettyFormat,
|
|
63
|
+
Be as queries,
|
|
64
|
+
ue as queryAllByAltText,
|
|
65
|
+
oe as queryAllByAttribute,
|
|
66
|
+
ne as queryAllByDisplayValue,
|
|
67
|
+
Te as queryAllByLabelText,
|
|
68
|
+
de as queryAllByPlaceholderText,
|
|
69
|
+
ge as queryAllByRole,
|
|
70
|
+
Ae as queryAllByTestId,
|
|
71
|
+
xe as queryAllByText,
|
|
72
|
+
fe as queryAllByTitle,
|
|
73
|
+
qe as queryByAltText,
|
|
74
|
+
pe as queryByAttribute,
|
|
75
|
+
me as queryByDisplayValue,
|
|
76
|
+
ce as queryByLabelText,
|
|
77
|
+
be as queryByPlaceholderText,
|
|
78
|
+
Re as queryByRole,
|
|
79
|
+
he as queryByTestId,
|
|
80
|
+
De as queryByText,
|
|
81
|
+
Ee as queryByTitle,
|
|
82
|
+
Qe as queryHelpers,
|
|
83
|
+
Ie as render,
|
|
84
|
+
we as renderHook,
|
|
85
|
+
Fe as screen,
|
|
86
|
+
Le as waitFor,
|
|
87
|
+
Pe as waitForElementToBeRemoved,
|
|
88
|
+
Ve as within,
|
|
89
|
+
ke as wrapAllByQueryWithSuggestion,
|
|
90
|
+
Se as wrapSingleQueryWithSuggestion
|
|
8
91
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../setup.types-dBtAXXGp.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { i as o } from "./index-BbTV2Cw5.js";
|
|
2
|
+
import s from "react";
|
|
3
|
+
function t(a) {
|
|
4
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = [];
|
|
5
|
+
return s.Children.forEach(a, function(r) {
|
|
6
|
+
r == null && !n.keepEmpty || (Array.isArray(r) ? e = e.concat(t(r)) : o(r) && r.props ? e = e.concat(t(r.props.children, n)) : e.push(r));
|
|
7
|
+
}), e;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
t
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { useRef as c } from "react";
|
|
3
|
+
import { h as a } from "./index-BbTV2Cw5.js";
|
|
4
|
+
import { u as f } from "./responsiveObserver-dCkpy7Cb.js";
|
|
5
|
+
function i() {
|
|
6
|
+
const [, r] = o.useReducer((e) => e + 1, 0);
|
|
7
|
+
return r;
|
|
8
|
+
}
|
|
9
|
+
function d() {
|
|
10
|
+
let r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
11
|
+
const e = c({}), t = i(), s = f();
|
|
12
|
+
return a(() => {
|
|
13
|
+
const n = s.subscribe((u) => {
|
|
14
|
+
e.current = u, r && t();
|
|
15
|
+
});
|
|
16
|
+
return () => s.unsubscribe(n);
|
|
17
|
+
}, []), e.current;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
i as a,
|
|
21
|
+
d as u
|
|
22
|
+
};
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { m as $, r as E, f as c, g as y } from "./index-BbTV2Cw5.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import "./presets-Djh_L_6R.js";
|
|
4
|
+
import "./index-DLdU7Tpd.js";
|
|
5
|
+
import { R as C } from "./CheckOutlined-cEBrx_Ag.js";
|
|
6
|
+
import { R as z } from "./CloseCircleFilled-B9e7yFwo.js";
|
|
7
|
+
import { R as N } from "./CloseOutlined-ogxnm7Oy.js";
|
|
8
|
+
import { R as M } from "./DownOutlined-Dcq69ZKM.js";
|
|
9
|
+
import { R as P } from "./LoadingOutlined-C1qu6ymP.js";
|
|
10
|
+
import { R as D } from "./SearchOutlined-DNj-7b_h.js";
|
|
11
|
+
const q = (e) => {
|
|
12
|
+
const {
|
|
13
|
+
multipleSelectItemHeight: l,
|
|
14
|
+
paddingXXS: i,
|
|
15
|
+
lineWidth: t,
|
|
16
|
+
INTERNAL_FIXED_ITEM_MARGIN: n
|
|
17
|
+
} = e, r = e.max(e.calc(i).sub(t).equal(), 0), s = e.max(e.calc(r).sub(n).equal(), 0);
|
|
18
|
+
return {
|
|
19
|
+
basePadding: r,
|
|
20
|
+
containerPadding: s,
|
|
21
|
+
itemHeight: c(l),
|
|
22
|
+
itemLineHeight: c(e.calc(l).sub(e.calc(e.lineWidth).mul(2)).equal())
|
|
23
|
+
};
|
|
24
|
+
}, W = (e) => {
|
|
25
|
+
const {
|
|
26
|
+
multipleSelectItemHeight: l,
|
|
27
|
+
selectHeight: i,
|
|
28
|
+
lineWidth: t
|
|
29
|
+
} = e;
|
|
30
|
+
return e.calc(i).sub(l).div(2).sub(t).equal();
|
|
31
|
+
}, B = (e) => {
|
|
32
|
+
const {
|
|
33
|
+
componentCls: l,
|
|
34
|
+
iconCls: i,
|
|
35
|
+
borderRadiusSM: t,
|
|
36
|
+
motionDurationSlow: n,
|
|
37
|
+
paddingXS: r,
|
|
38
|
+
multipleItemColorDisabled: s,
|
|
39
|
+
multipleItemBorderColorDisabled: d,
|
|
40
|
+
colorIcon: o,
|
|
41
|
+
colorIconHover: I,
|
|
42
|
+
INTERNAL_FIXED_ITEM_MARGIN: u
|
|
43
|
+
} = e;
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome
|
|
47
|
+
* may update to redesign with its align logic.
|
|
48
|
+
*/
|
|
49
|
+
// =========================== Overflow ===========================
|
|
50
|
+
[`${l}-selection-overflow`]: {
|
|
51
|
+
position: "relative",
|
|
52
|
+
display: "flex",
|
|
53
|
+
flex: "auto",
|
|
54
|
+
flexWrap: "wrap",
|
|
55
|
+
maxWidth: "100%",
|
|
56
|
+
"&-item": {
|
|
57
|
+
flex: "none",
|
|
58
|
+
alignSelf: "center",
|
|
59
|
+
maxWidth: "100%",
|
|
60
|
+
display: "inline-flex"
|
|
61
|
+
},
|
|
62
|
+
// ======================== Selections ==========================
|
|
63
|
+
[`${l}-selection-item`]: {
|
|
64
|
+
display: "flex",
|
|
65
|
+
alignSelf: "center",
|
|
66
|
+
flex: "none",
|
|
67
|
+
boxSizing: "border-box",
|
|
68
|
+
maxWidth: "100%",
|
|
69
|
+
marginBlock: u,
|
|
70
|
+
borderRadius: t,
|
|
71
|
+
cursor: "default",
|
|
72
|
+
transition: `font-size ${n}, line-height ${n}, height ${n}`,
|
|
73
|
+
marginInlineEnd: e.calc(u).mul(2).equal(),
|
|
74
|
+
paddingInlineStart: r,
|
|
75
|
+
paddingInlineEnd: e.calc(r).div(2).equal(),
|
|
76
|
+
[`${l}-disabled&`]: {
|
|
77
|
+
color: s,
|
|
78
|
+
borderColor: d,
|
|
79
|
+
cursor: "not-allowed"
|
|
80
|
+
},
|
|
81
|
+
// It's ok not to do this, but 24px makes bottom narrow in view should adjust
|
|
82
|
+
"&-content": {
|
|
83
|
+
display: "inline-block",
|
|
84
|
+
marginInlineEnd: e.calc(r).div(2).equal(),
|
|
85
|
+
overflow: "hidden",
|
|
86
|
+
whiteSpace: "pre",
|
|
87
|
+
// fix whitespace wrapping. custom tags display all whitespace within.
|
|
88
|
+
textOverflow: "ellipsis"
|
|
89
|
+
},
|
|
90
|
+
"&-remove": Object.assign(Object.assign({}, E()), {
|
|
91
|
+
display: "inline-flex",
|
|
92
|
+
alignItems: "center",
|
|
93
|
+
color: o,
|
|
94
|
+
fontWeight: "bold",
|
|
95
|
+
fontSize: 10,
|
|
96
|
+
lineHeight: "inherit",
|
|
97
|
+
cursor: "pointer",
|
|
98
|
+
[`> ${i}`]: {
|
|
99
|
+
verticalAlign: "-0.2em"
|
|
100
|
+
},
|
|
101
|
+
"&:hover": {
|
|
102
|
+
color: I
|
|
103
|
+
}
|
|
104
|
+
})
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}, O = (e, l) => {
|
|
109
|
+
const {
|
|
110
|
+
componentCls: i,
|
|
111
|
+
INTERNAL_FIXED_ITEM_MARGIN: t
|
|
112
|
+
} = e, n = `${i}-selection-overflow`, r = e.multipleSelectItemHeight, s = W(e), d = l ? `${i}-${l}` : "", o = q(e);
|
|
113
|
+
return {
|
|
114
|
+
[`${i}-multiple${d}`]: Object.assign(Object.assign({}, B(e)), {
|
|
115
|
+
// ========================= Selector =========================
|
|
116
|
+
[`${i}-selector`]: {
|
|
117
|
+
display: "flex",
|
|
118
|
+
alignItems: "center",
|
|
119
|
+
width: "100%",
|
|
120
|
+
height: "100%",
|
|
121
|
+
// Multiple is little different that horizontal is follow the vertical
|
|
122
|
+
paddingInline: o.basePadding,
|
|
123
|
+
paddingBlock: o.containerPadding,
|
|
124
|
+
borderRadius: e.borderRadius,
|
|
125
|
+
[`${i}-disabled&`]: {
|
|
126
|
+
background: e.multipleSelectorBgDisabled,
|
|
127
|
+
cursor: "not-allowed"
|
|
128
|
+
},
|
|
129
|
+
"&:after": {
|
|
130
|
+
display: "inline-block",
|
|
131
|
+
width: 0,
|
|
132
|
+
margin: `${c(t)} 0`,
|
|
133
|
+
lineHeight: c(r),
|
|
134
|
+
visibility: "hidden",
|
|
135
|
+
content: '"\\a0"'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
// ======================== Selections ========================
|
|
139
|
+
[`${i}-selection-item`]: {
|
|
140
|
+
height: o.itemHeight,
|
|
141
|
+
lineHeight: c(o.itemLineHeight)
|
|
142
|
+
},
|
|
143
|
+
// ========================== Wrap ===========================
|
|
144
|
+
[`${i}-selection-wrap`]: {
|
|
145
|
+
alignSelf: "flex-start",
|
|
146
|
+
"&:after": {
|
|
147
|
+
lineHeight: c(r),
|
|
148
|
+
marginBlock: t
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
// ========================== Input ==========================
|
|
152
|
+
[`${i}-prefix`]: {
|
|
153
|
+
marginInlineStart: e.calc(e.inputPaddingHorizontalBase).sub(o.basePadding).equal()
|
|
154
|
+
},
|
|
155
|
+
[`${n}-item + ${n}-item,
|
|
156
|
+
${i}-prefix + ${i}-selection-wrap
|
|
157
|
+
`]: {
|
|
158
|
+
[`${i}-selection-search`]: {
|
|
159
|
+
marginInlineStart: 0
|
|
160
|
+
},
|
|
161
|
+
[`${i}-selection-placeholder`]: {
|
|
162
|
+
insetInlineStart: 0
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
// https://github.com/ant-design/ant-design/issues/44754
|
|
166
|
+
// Same as `wrap:after`
|
|
167
|
+
[`${n}-item-suffix`]: {
|
|
168
|
+
minHeight: o.itemHeight,
|
|
169
|
+
marginBlock: t
|
|
170
|
+
},
|
|
171
|
+
[`${i}-selection-search`]: {
|
|
172
|
+
display: "inline-flex",
|
|
173
|
+
position: "relative",
|
|
174
|
+
maxWidth: "100%",
|
|
175
|
+
marginInlineStart: e.calc(e.inputPaddingHorizontalBase).sub(s).equal(),
|
|
176
|
+
"\n &-input,\n &-mirror\n ": {
|
|
177
|
+
height: r,
|
|
178
|
+
fontFamily: e.fontFamily,
|
|
179
|
+
lineHeight: c(r),
|
|
180
|
+
transition: `all ${e.motionDurationSlow}`
|
|
181
|
+
},
|
|
182
|
+
"&-input": {
|
|
183
|
+
width: "100%",
|
|
184
|
+
minWidth: 4.1
|
|
185
|
+
// fix search cursor missing
|
|
186
|
+
},
|
|
187
|
+
"&-mirror": {
|
|
188
|
+
position: "absolute",
|
|
189
|
+
top: 0,
|
|
190
|
+
insetInlineStart: 0,
|
|
191
|
+
insetInlineEnd: "auto",
|
|
192
|
+
zIndex: 999,
|
|
193
|
+
whiteSpace: "pre",
|
|
194
|
+
// fix whitespace wrapping caused width calculation bug
|
|
195
|
+
visibility: "hidden"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
// ======================= Placeholder =======================
|
|
199
|
+
[`${i}-selection-placeholder`]: {
|
|
200
|
+
position: "absolute",
|
|
201
|
+
top: "50%",
|
|
202
|
+
insetInlineStart: e.calc(e.inputPaddingHorizontalBase).sub(o.basePadding).equal(),
|
|
203
|
+
insetInlineEnd: e.inputPaddingHorizontalBase,
|
|
204
|
+
transform: "translateY(-50%)",
|
|
205
|
+
transition: `all ${e.motionDurationSlow}`
|
|
206
|
+
}
|
|
207
|
+
})
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
function S(e, l) {
|
|
211
|
+
const {
|
|
212
|
+
componentCls: i
|
|
213
|
+
} = e, t = l ? `${i}-${l}` : "", n = {
|
|
214
|
+
[`${i}-multiple${t}`]: {
|
|
215
|
+
fontSize: e.fontSize,
|
|
216
|
+
// ========================= Selector =========================
|
|
217
|
+
[`${i}-selector`]: {
|
|
218
|
+
[`${i}-show-search&`]: {
|
|
219
|
+
cursor: "text"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
[`
|
|
223
|
+
&${i}-show-arrow ${i}-selector,
|
|
224
|
+
&${i}-allow-clear ${i}-selector
|
|
225
|
+
`]: {
|
|
226
|
+
paddingInlineEnd: e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
return [O(e, l), n];
|
|
231
|
+
}
|
|
232
|
+
const V = (e) => {
|
|
233
|
+
const {
|
|
234
|
+
componentCls: l
|
|
235
|
+
} = e, i = $(e, {
|
|
236
|
+
selectHeight: e.controlHeightSM,
|
|
237
|
+
multipleSelectItemHeight: e.multipleItemHeightSM,
|
|
238
|
+
borderRadius: e.borderRadiusSM,
|
|
239
|
+
borderRadiusSM: e.borderRadiusXS
|
|
240
|
+
}), t = $(e, {
|
|
241
|
+
fontSize: e.fontSizeLG,
|
|
242
|
+
selectHeight: e.controlHeightLG,
|
|
243
|
+
multipleSelectItemHeight: e.multipleItemHeightLG,
|
|
244
|
+
borderRadius: e.borderRadiusLG,
|
|
245
|
+
borderRadiusSM: e.borderRadius
|
|
246
|
+
});
|
|
247
|
+
return [
|
|
248
|
+
S(e),
|
|
249
|
+
// ======================== Small ========================
|
|
250
|
+
S(i, "sm"),
|
|
251
|
+
// Padding
|
|
252
|
+
{
|
|
253
|
+
[`${l}-multiple${l}-sm`]: {
|
|
254
|
+
[`${l}-selection-placeholder`]: {
|
|
255
|
+
insetInline: e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()
|
|
256
|
+
},
|
|
257
|
+
// https://github.com/ant-design/ant-design/issues/29559
|
|
258
|
+
[`${l}-selection-search`]: {
|
|
259
|
+
marginInlineStart: 2
|
|
260
|
+
// Magic Number
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
// ======================== Large ========================
|
|
265
|
+
S(t, "lg")
|
|
266
|
+
];
|
|
267
|
+
};
|
|
268
|
+
function Y(e) {
|
|
269
|
+
let {
|
|
270
|
+
suffixIcon: l,
|
|
271
|
+
clearIcon: i,
|
|
272
|
+
menuItemSelectedIcon: t,
|
|
273
|
+
removeIcon: n,
|
|
274
|
+
loading: r,
|
|
275
|
+
multiple: s,
|
|
276
|
+
hasFeedback: d,
|
|
277
|
+
prefixCls: o,
|
|
278
|
+
showSuffixIcon: I,
|
|
279
|
+
feedbackIcon: u,
|
|
280
|
+
showArrow: b,
|
|
281
|
+
componentName: x
|
|
282
|
+
} = e;
|
|
283
|
+
process.env.NODE_ENV !== "production" && y(x).deprecated(!i, "clearIcon", "allowClear={{ clearIcon: React.ReactNode }}");
|
|
284
|
+
const R = i ?? /* @__PURE__ */ a.createElement(z, null), g = (m) => l === null && !d && !b ? null : /* @__PURE__ */ a.createElement(a.Fragment, null, I !== !1 && m, d && u);
|
|
285
|
+
let f = null;
|
|
286
|
+
if (l !== void 0)
|
|
287
|
+
f = g(l);
|
|
288
|
+
else if (r)
|
|
289
|
+
f = g(/* @__PURE__ */ a.createElement(P, {
|
|
290
|
+
spin: !0
|
|
291
|
+
}));
|
|
292
|
+
else {
|
|
293
|
+
const m = `${o}-suffix`;
|
|
294
|
+
f = (w) => {
|
|
295
|
+
let {
|
|
296
|
+
open: H,
|
|
297
|
+
showSearch: v
|
|
298
|
+
} = w;
|
|
299
|
+
return g(H && v ? /* @__PURE__ */ a.createElement(D, {
|
|
300
|
+
className: m
|
|
301
|
+
}) : /* @__PURE__ */ a.createElement(M, {
|
|
302
|
+
className: m
|
|
303
|
+
}));
|
|
304
|
+
};
|
|
305
|
+
}
|
|
306
|
+
let p = null;
|
|
307
|
+
t !== void 0 ? p = t : s ? p = /* @__PURE__ */ a.createElement(C, null) : p = null;
|
|
308
|
+
let h = null;
|
|
309
|
+
return n !== void 0 ? h = n : h = /* @__PURE__ */ a.createElement(N, null), {
|
|
310
|
+
clearIcon: R,
|
|
311
|
+
suffixIcon: f,
|
|
312
|
+
itemIcon: p,
|
|
313
|
+
removeIcon: h
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
export {
|
|
317
|
+
B as a,
|
|
318
|
+
q as b,
|
|
319
|
+
V as g,
|
|
320
|
+
Y as u
|
|
321
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { _ as d, a as f } from "./presets-Djh_L_6R.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
function I() {
|
|
4
|
+
var t = d({}, n);
|
|
5
|
+
return t.useId;
|
|
6
|
+
}
|
|
7
|
+
var u = 0, a = I();
|
|
8
|
+
const v = a ? (
|
|
9
|
+
// Use React `useId`
|
|
10
|
+
function(e) {
|
|
11
|
+
var r = a();
|
|
12
|
+
return e || (process.env.NODE_ENV === "test" ? "test-id" : r);
|
|
13
|
+
}
|
|
14
|
+
) : (
|
|
15
|
+
// Use compatible of `useId`
|
|
16
|
+
function(e) {
|
|
17
|
+
var r = n.useState("ssr-id"), s = f(r, 2), c = s[0], i = s[1];
|
|
18
|
+
return n.useEffect(function() {
|
|
19
|
+
var o = u;
|
|
20
|
+
u += 1, i("rc_unique_".concat(o));
|
|
21
|
+
}, []), e || (process.env.NODE_ENV === "test" ? "test-id" : c);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
export {
|
|
25
|
+
v as u
|
|
26
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { L as r, l as s } from "./index-BbTV2Cw5.js";
|
|
3
|
+
const f = (o, u) => {
|
|
4
|
+
const e = t.useContext(r), c = t.useMemo(() => {
|
|
5
|
+
var n;
|
|
6
|
+
const l = u || s[o], d = (n = e == null ? void 0 : e[o]) !== null && n !== void 0 ? n : {};
|
|
7
|
+
return Object.assign(Object.assign({}, typeof l == "function" ? l() : l), d || {});
|
|
8
|
+
}, [o, u, e]), a = t.useMemo(() => {
|
|
9
|
+
const n = e == null ? void 0 : e.locale;
|
|
10
|
+
return e != null && e.exist && !n ? s.locale : n;
|
|
11
|
+
}, [e]);
|
|
12
|
+
return [c, a];
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
f as u
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { a as d } from "./presets-Djh_L_6R.js";
|
|
2
|
+
import { u as g, a as S, b as V } from "./index-BbTV2Cw5.js";
|
|
3
|
+
function o(a) {
|
|
4
|
+
return a !== void 0;
|
|
5
|
+
}
|
|
6
|
+
function F(a, _) {
|
|
7
|
+
var t = _ || {}, n = t.defaultValue, e = t.value, h = t.onChange, s = t.postState, m = g(function() {
|
|
8
|
+
return o(e) ? e : o(n) ? typeof n == "function" ? n() : n : typeof a == "function" ? a() : a;
|
|
9
|
+
}), i = d(m, 2), f = i[0], v = i[1], u = e !== void 0 ? e : f, C = s ? s(u) : u, y = S(h), E = g([u]), l = d(E, 2), p = l[0], M = l[1];
|
|
10
|
+
V(function() {
|
|
11
|
+
var r = p[0];
|
|
12
|
+
f !== r && y(f, r);
|
|
13
|
+
}, [p]), V(function() {
|
|
14
|
+
o(e) || v(e);
|
|
15
|
+
}, [e]);
|
|
16
|
+
var b = S(function(r, c) {
|
|
17
|
+
v(r, c), M([u], c);
|
|
18
|
+
});
|
|
19
|
+
return [C, b];
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
F as u
|
|
23
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as f } from "./presets-Djh_L_6R.js";
|
|
2
2
|
import * as u from "react";
|
|
3
|
-
import { V as g } from "./context-
|
|
4
|
-
import { C as m, V } from "./index-
|
|
3
|
+
import { V as g } from "./context-DIFtNa4d.js";
|
|
4
|
+
import { C as m, V } from "./index-BbTV2Cw5.js";
|
|
5
5
|
function p(n, e, a) {
|
|
6
6
|
return f({
|
|
7
7
|
[`${n}-status-success`]: e === "success",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import d from "react";
|
|
2
|
+
import { c as I, g as N } from "./index-BbTV2Cw5.js";
|
|
3
|
+
const a = /* @__PURE__ */ d.createContext(void 0);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (a.displayName = "zIndexContext");
|
|
5
|
+
const e = 100, x = 10, E = e * x, _ = E + e, u = {
|
|
6
|
+
Modal: e,
|
|
7
|
+
Drawer: e,
|
|
8
|
+
Popover: e,
|
|
9
|
+
Popconfirm: e,
|
|
10
|
+
Tooltip: e,
|
|
11
|
+
Tour: e,
|
|
12
|
+
FloatButton: e
|
|
13
|
+
}, O = {
|
|
14
|
+
SelectLike: 50,
|
|
15
|
+
Dropdown: 50,
|
|
16
|
+
DatePicker: 50,
|
|
17
|
+
Menu: 50,
|
|
18
|
+
ImagePreview: 1
|
|
19
|
+
};
|
|
20
|
+
function l(n) {
|
|
21
|
+
return n in u;
|
|
22
|
+
}
|
|
23
|
+
const F = (n, t) => {
|
|
24
|
+
const [, i] = I(), s = d.useContext(a), c = l(n);
|
|
25
|
+
let r;
|
|
26
|
+
if (t !== void 0)
|
|
27
|
+
r = [t, t];
|
|
28
|
+
else {
|
|
29
|
+
let o = s ?? 0;
|
|
30
|
+
c ? o += // Use preset token zIndex by default but not stack when has parent container
|
|
31
|
+
(s ? 0 : i.zIndexPopupBase) + // Container offset
|
|
32
|
+
u[n] : o += O[n], r = [s === void 0 ? t : o, o];
|
|
33
|
+
}
|
|
34
|
+
if (process.env.NODE_ENV !== "production") {
|
|
35
|
+
const o = N(n), f = i.zIndexPopupBase + _, p = r[0] || 0;
|
|
36
|
+
process.env.NODE_ENV !== "production" && o(t !== void 0 || p <= f, "usage", "`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");
|
|
37
|
+
}
|
|
38
|
+
return r;
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
E as C,
|
|
42
|
+
F as u,
|
|
43
|
+
a as z
|
|
44
|
+
};
|