@gobolt/genesis 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/AntdIcon-nCNB0J1E.js +192 -0
- package/dist/CheckCircleFilled-BKgizvyl.js +13 -0
- package/dist/{CheckOutlined-CeTKr6II.js → CheckOutlined-cEBrx_Ag.js} +2 -2
- package/dist/{CloseCircleFilled-DXCxlIQL.js → CloseCircleFilled-B9e7yFwo.js} +2 -2
- package/dist/{CloseOutlined-ClXDNn82.js → CloseOutlined-ogxnm7Oy.js} +2 -2
- package/dist/{Compact-CGY560JF.js → Compact-DBh6nSYB.js} +42 -45
- package/dist/{ContextIsolator-D5x2Ih51.js → ContextIsolator-CwuJooYf.js} +2 -2
- package/dist/{PurePanel-BqPLRtc2.js → DownOutlined-5-15jS0h.js} +42 -40
- package/dist/{index-C8haFnXI.js → EllipsisOutlined-CJ2pgE2d.js} +153 -150
- package/dist/ExclamationCircleFilled-BHELVsTg.js +13 -0
- package/dist/Keyframes-sPZXYuXt.js +17 -0
- package/dist/{LoadingOutlined-8EnJdZ7I.js → LoadingOutlined-C1qu6ymP.js} +6 -6
- package/dist/MinusCircleOutlined-Shz0RRQV.js +37 -0
- package/dist/{Overflow-PBZD-PFm.js → Overflow-DdNKJLQh.js} +67 -66
- package/dist/{SearchOutlined-BP3Z2K6j.js → SearchOutlined-DNj-7b_h.js} +2 -2
- package/dist/Skeleton-B3vg9CbL.js +560 -0
- package/dist/{TextArea-DKwCct3i.js → TextArea-CKWbFr0u.js} +26 -18
- package/dist/Typography-DqI7RslA.js +705 -0
- package/dist/_baseIsEqual-L0-w1QRI.js +598 -0
- package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
- package/dist/asyncToGenerator-CKP9bEZn.js +312 -0
- package/dist/{button-CDQgO1OK.js → button-B2Rgggx2.js} +127 -116
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/Avatar/Avatar.d.ts +12 -0
- package/dist/components/Avatar/Avatar.js +61 -0
- package/dist/components/Avatar/__stories__/Avatar.stories.d.ts +8 -0
- package/dist/components/Avatar/__tests__/Avatar.test.d.ts +1 -0
- package/dist/components/Avatar/__tests__/Avatar.test.js +17 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +4 -0
- package/dist/components/Avatar/styles.d.ts +18 -0
- package/dist/components/Avatar/styles.js +326 -0
- package/dist/components/Badge/Badge.d.ts +5 -3
- package/dist/components/Badge/Badge.js +67 -100
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +5 -4
- package/dist/components/Badge/__tests__/Badge.test.js +9 -10
- package/dist/components/Badge/styles.d.ts +12 -3
- package/dist/components/Badge/styles.js +30 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +239 -2260
- package/dist/components/Button/Button.d.ts +4 -3
- package/dist/components/Button/Button.js +10 -6
- package/dist/components/Button/__stories__/Button.stories.d.ts +3 -0
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.d.ts +2 -2
- package/dist/components/Button/styles.js +20 -17
- package/dist/components/Card/Card.d.ts +9 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/__stories__/Card.stories.d.ts +7 -0
- package/dist/components/Card/__tests__/Card.test.d.ts +1 -0
- package/dist/components/Card/__tests__/Card.test.js +16 -0
- package/dist/components/Card/index.d.ts +2 -0
- package/dist/components/Card/index.js +4 -0
- package/dist/components/Card/styles.d.ts +16 -0
- package/dist/components/Card/styles.js +12 -0
- package/dist/components/Checkbox/Checkbox.d.ts +1 -2
- package/dist/components/Checkbox/Checkbox.js +28 -16
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +22 -457
- package/dist/components/Dashboard/Dashboard.d.ts +5 -0
- package/dist/components/Dashboard/Dashboard.js +5 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.d.ts +14 -0
- package/dist/components/Dashboard/__mocks__/dashboard-data.js +186 -0
- package/dist/components/Dashboard/__stories__/Dashboard.stories.d.ts +7 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +948 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.d.ts +2 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +85 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.d.ts +13 -0
- package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +22 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.d.ts +12 -0
- package/dist/components/Dashboard/__stories__/charts/LineChart.js +536 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.d.ts +1 -0
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +16 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/index.js +4 -0
- package/dist/components/Dashboard/styles.d.ts +14 -0
- package/dist/components/Dashboard/styles.js +11 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +72 -0
- package/dist/components/ErrorBoundary/__stories__/ErrorBoundary.stories.d.ts +8 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.d.ts +1 -0
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +25 -0
- package/dist/components/ErrorBoundary/index.d.ts +2 -0
- package/dist/components/ErrorBoundary/index.js +4 -0
- package/dist/components/ErrorBoundary/styles.d.ts +14 -0
- package/dist/components/ErrorBoundary/styles.js +11 -0
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +2 -2
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +33 -18
- package/dist/components/ErrorBoundaryFallback/__stories__/ErrorBoundaryFallback.stories.d.ts +1 -1
- package/dist/components/ErrorBoundaryFallback/styles.js +17 -15
- package/dist/components/Form/Form.js +3 -3
- package/dist/components/Form/__stories__/FormStory.js +127 -50
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Glyph/Glyph.d.ts +4 -0
- package/dist/components/Glyph/Glyph.js +9 -0
- package/dist/components/Glyph/__stories__/Glyph.stories.d.ts +7 -0
- package/dist/components/Glyph/index.d.ts +2 -0
- package/dist/components/Glyph/index.js +4 -0
- package/dist/components/Glyph/styles.d.ts +14 -0
- package/dist/components/Glyph/styles.js +11 -0
- package/dist/components/Input/Input.d.ts +1 -2
- package/dist/components/Input/Input.js +14 -10
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +58 -466
- package/dist/components/Layout/Content/Content.d.ts +11 -0
- package/dist/components/Layout/Content/Content.js +32 -0
- package/dist/components/Layout/Content/ResponsiveContent.d.ts +7 -0
- package/dist/components/Layout/Content/ResponsiveContent.js +81 -0
- package/dist/components/Layout/Content/index.d.ts +2 -0
- package/dist/components/Layout/Content/index.js +4 -0
- package/dist/components/Layout/Content/styles.d.ts +11 -0
- package/dist/components/Layout/Content/styles.js +16 -0
- package/dist/components/Layout/Layout.d.ts +8 -0
- package/dist/components/Layout/Layout.js +6 -0
- package/dist/components/Layout/MainLayout/MainLayout.d.ts +10 -0
- package/dist/components/Layout/MainLayout/MainLayout.js +28 -0
- package/dist/components/Layout/MainLayout/__stories__/MainLayout.stories.d.ts +9 -0
- package/dist/components/Layout/MainLayout/index.d.ts +2 -0
- package/dist/components/Layout/MainLayout/index.js +4 -0
- package/dist/components/Layout/MainLayout/styles.d.ts +4 -0
- package/dist/components/Layout/MainLayout/styles.js +69 -0
- package/dist/components/Layout/__stories__/Layout.stories.d.ts +7 -0
- package/dist/components/Layout/__tests__/Layout.test.d.ts +1 -0
- package/dist/components/Layout/__tests__/Layout.test.js +14 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/components/Layout/index.js +4 -0
- package/dist/components/Message/Message.d.ts +6 -4
- package/dist/components/Message/Message.js +70 -43
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Message/styles.d.ts +1 -0
- package/dist/components/Message/styles.js +15 -11
- package/dist/components/Notification/Notification.js +145 -120
- package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
- package/dist/components/Notification/NotificationBadge/NotificationBadge.js +49 -0
- package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts +13 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.d.ts +1 -0
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +18 -0
- package/dist/components/Notification/NotificationBadge/index.d.ts +2 -0
- package/dist/components/Notification/NotificationBadge/index.js +4 -0
- package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
- package/dist/components/Notification/NotificationBadge/styles.js +34 -0
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Notification/styles.d.ts +1 -1
- package/dist/components/Notification/styles.js +1 -1
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/Popover.js +21 -0
- package/dist/components/Popover/__stories__/Popover.stories.d.ts +7 -0
- package/dist/components/Popover/__tests__/Popover.test.d.ts +1 -0
- package/dist/components/Popover/__tests__/Popover.test.js +40 -0
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/Popover/index.js +4 -0
- package/dist/components/Popover/styles.d.ts +15 -0
- package/dist/components/Popover/styles.js +6 -0
- package/dist/components/Progress/Progress.d.ts +18 -0
- package/dist/components/Progress/Progress.js +91 -0
- package/dist/components/Progress/Progress.util.d.ts +4 -0
- package/dist/components/Progress/Progress.util.js +62 -0
- package/dist/components/Progress/ProgressText.d.ts +11 -0
- package/dist/components/Progress/ProgressText.js +67 -0
- package/dist/components/Progress/__stories__/Progress.stories.d.ts +12 -0
- package/dist/components/Progress/__tests__/Progress.test.d.ts +1 -0
- package/dist/components/Progress/__tests__/Progress.test.js +21 -0
- package/dist/components/Progress/index.d.ts +2 -0
- package/dist/components/Progress/index.js +4 -0
- package/dist/components/Progress/styles.d.ts +17 -0
- package/dist/components/Progress/styles.js +793 -0
- package/dist/components/Radio/Radio.js +22 -6
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Row/Row.d.ts +14 -0
- package/dist/components/Row/Row.js +38 -0
- package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
- package/dist/components/Row/RowActions/RowActions.js +59 -0
- package/dist/components/Row/RowActions/styles.d.ts +2 -0
- package/dist/components/Row/RowActions/styles.js +32 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +11 -0
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +62 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
- package/dist/components/Row/RowLabelValue/RowSkeleton.js +24 -0
- package/dist/components/Row/RowLabelValue/styles.d.ts +15 -0
- package/dist/components/Row/RowLabelValue/styles.js +25 -0
- package/dist/components/Row/__stories__/Row.stories.d.ts +13 -0
- package/dist/components/Row/__tests__/Row.test.d.ts +1 -0
- package/dist/components/Row/__tests__/Row.test.js +16 -0
- package/dist/components/Row/index.d.ts +2 -0
- package/dist/components/Row/index.js +4 -0
- package/dist/components/Row/styles.d.ts +15 -0
- package/dist/components/Row/styles.js +15 -0
- package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
- package/dist/components/SegmentedControls/SegmentedControls.js +26 -0
- package/dist/components/SegmentedControls/__stories__/SegmentedControls.stories.d.ts +9 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.d.ts +1 -0
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +24 -0
- package/dist/components/SegmentedControls/index.d.ts +2 -0
- package/dist/components/SegmentedControls/index.js +4 -0
- package/dist/components/SegmentedControls/styles.d.ts +12 -0
- package/dist/components/SegmentedControls/styles.js +511 -0
- package/dist/components/Select/Select.d.ts +2 -4
- package/dist/components/Select/Select.js +12 -11
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +39 -3654
- package/dist/components/Shapes/Shapes.d.ts +6 -0
- package/dist/components/Shapes/Shapes.js +8 -0
- package/dist/components/Shapes/__stories__/Shapes.stories.d.ts +9 -0
- package/dist/components/Shapes/__tests__/Shapes.test.d.ts +1 -0
- package/dist/components/Shapes/__tests__/Shapes.test.js +16 -0
- package/dist/components/Shapes/index.d.ts +2 -0
- package/dist/components/Shapes/index.js +4 -0
- package/dist/components/Shapes/variants/Circle.d.ts +5 -0
- package/dist/components/Shapes/variants/Circle.js +23 -0
- package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Rectangle.js +23 -0
- package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
- package/dist/components/Shapes/variants/Triangle.js +23 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/Switch.js +22 -0
- package/dist/components/Switch/__stories__/Switch.stories.d.ts +8 -0
- package/dist/components/Switch/__tests__/Switch.test.d.ts +1 -0
- package/dist/components/Switch/__tests__/Switch.test.js +25 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/index.js +4 -0
- package/dist/components/Switch/styles.d.ts +9 -0
- package/dist/components/Switch/styles.js +456 -0
- package/dist/components/Table/Table.d.ts +15 -0
- package/dist/components/Table/Table.js +23 -0
- package/dist/components/Table/__mocks__/table-mocks.d.ts +20 -0
- package/dist/components/Table/__mocks__/table-mocks.js +321 -0
- package/dist/components/Table/__stories__/Table.stories.d.ts +7 -0
- package/dist/components/Table/__tests__/Table.test.d.ts +1 -0
- package/dist/components/Table/__tests__/Table.test.js +34 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +4 -0
- package/dist/components/Table/styles.d.ts +8 -0
- package/dist/components/Table/styles.js +6 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/Tabs.js +23 -0
- package/dist/components/Tabs/__stories__/Tabs.stories.d.ts +8 -0
- package/dist/components/Tabs/__tests__/Tabs.test.d.ts +1 -0
- package/dist/components/Tabs/__tests__/Tabs.test.js +37 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/index.js +4 -0
- package/dist/components/Tabs/styles.d.ts +12 -0
- package/dist/components/Tabs/styles.js +102 -0
- package/dist/components/Tile/Tile.d.ts +10 -0
- package/dist/components/Tile/Tile.js +21 -0
- package/dist/components/Tile/__stories__/Tile.stories.d.ts +7 -0
- package/dist/components/Tile/__tests__/Tile.test.d.ts +1 -0
- package/dist/components/Tile/__tests__/Tile.test.js +21 -0
- package/dist/components/Tile/index.d.ts +2 -0
- package/dist/components/Tile/index.js +4 -0
- package/dist/components/Tile/styles.d.ts +11 -0
- package/dist/components/Tile/styles.js +12 -0
- package/dist/components/Toast/Toast.js +23 -6
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Toast/styles.d.ts +0 -1
- package/dist/components/Toast/styles.js +14 -23
- package/dist/components/Tooltip/Tooltip.d.ts +7 -0
- package/dist/components/Tooltip/Tooltip.js +50 -0
- package/dist/components/Tooltip/__stories__/Tooltip.stories.d.ts +7 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +1 -0
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +25 -0
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Tooltip/index.js +4 -0
- package/dist/components/Tooltip/styles.d.ts +20 -0
- package/dist/components/Tooltip/styles.js +11 -0
- package/dist/components/Typography/Typography.d.ts +5 -1
- package/dist/components/Typography/Typography.js +2 -2
- package/dist/components/Typography/__stories__/Typography.stories.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.d.ts +1 -0
- package/dist/components/Typography/styles.js +53 -17
- package/dist/components/index.d.ts +31 -1
- package/dist/components/index.js +54 -24
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.js +4 -2
- package/dist/{context-BMW3aJEf.js → context-Cx7GtZpz.js} +281 -284
- package/dist/dropdown-zGGFIyJ_.js +2044 -0
- package/dist/generateCategoricalChart-7ceYaiZ2.js +15597 -0
- package/dist/genesis/GenesisThemeBreakdown.js +38 -22
- package/dist/genesis/styles.js +7 -2923
- package/dist/iconBase-LROS5hdG.js +112 -0
- package/dist/index-BRUI9igj.js +11 -0
- package/dist/index-BTGF--50.js +1845 -0
- package/dist/index-BW_7pvTr.js +538 -0
- package/dist/{index-oK7z6jnz.js → index-ByspLxrB.js} +8640 -8798
- package/dist/{index-bKlRxQp4.js → index-CRotrkWm.js} +7 -7
- package/dist/{index-C0SmxWLS.js → index-CSPlXIlA.js} +136 -143
- package/dist/index-CdiHBmVe.js +445 -0
- package/dist/index-CodMmNWv.js +102 -0
- package/dist/{index-DPW8XdWj.js → index-CqqwGTME.js} +34 -30
- package/dist/index-D0P16DlX.js +286 -0
- package/dist/index-DLdU7Tpd.js +183 -0
- package/dist/index-DWUXwgXK.js +809 -0
- package/dist/index-DmZOkMjs.js +3628 -0
- package/dist/{index-1CBpubM3.js → index-Dyl-ddV6.js} +47 -44
- package/dist/index-hoPiccJv.js +415 -0
- package/dist/index.js +61 -31
- package/dist/interface/address.d.ts +10 -0
- package/dist/interface/address.js +1 -0
- package/dist/interface/appointment.d.ts +57 -0
- package/dist/interface/appointment.js +5 -0
- package/dist/interface/appointmentV2.d.ts +65 -0
- package/dist/interface/appointmentV2.js +1 -0
- package/dist/interface/appointmentsState.d.ts +21 -0
- package/dist/interface/appointmentsState.js +1 -0
- package/dist/interface/common.d.ts +2 -0
- package/dist/interface/common.js +1 -0
- package/dist/interface/completionData.d.ts +18 -0
- package/dist/interface/completionData.js +1 -0
- package/dist/interface/deliveryPartner.d.ts +25 -0
- package/dist/interface/deliveryPartner.js +1 -0
- package/dist/interface/organization.d.ts +9 -0
- package/dist/interface/organization.js +1 -0
- package/dist/interface/pagination.d.ts +8 -0
- package/dist/interface/pagination.js +1 -0
- package/dist/interface/roles.d.ts +9 -0
- package/dist/interface/roles.js +1 -0
- package/dist/interface/route.d.ts +73 -0
- package/dist/interface/route.js +1 -0
- package/dist/interface/routeAnalysis.d.ts +108 -0
- package/dist/interface/routeAnalysis.js +1 -0
- package/dist/interface/routeAutomationJob.d.ts +95 -0
- package/dist/interface/routeAutomationJob.js +10 -0
- package/dist/interface/routeAutomationLog.d.ts +10 -0
- package/dist/interface/routeAutomationLog.js +1 -0
- package/dist/interface/routeEvent.d.ts +55 -0
- package/dist/interface/routeEvent.js +5 -0
- package/dist/interface/serviceArea.d.ts +18 -0
- package/dist/interface/serviceArea.js +1 -0
- package/dist/interface/util.d.ts +3 -0
- package/dist/interface/util.js +1 -0
- package/dist/interface/vehicle.d.ts +120 -0
- package/dist/interface/vehicle.js +1 -0
- package/dist/interface/workOrder.d.ts +22 -0
- package/dist/interface/workOrder.js +1 -0
- package/dist/isVisible-D3-B85BJ.js +22 -0
- package/dist/{magic-string.es-D2FWSwU3.js → magic-string.es-BKBb7z-1.js} +1 -1
- package/dist/omit-B_u6A-HL.js +9 -0
- package/dist/{pickAttrs-B0YTfcV1.js → pickAttrs-CleuMJFR.js} +1 -1
- package/dist/{warning-C63HNL9U.js → presets-Djh_L_6R.js} +333 -356
- package/dist/providers/BreakpointThemeProvider.d.ts +9 -0
- package/dist/providers/BreakpointThemeProvider.js +21 -0
- package/dist/providers/GenesisProvider.js +3 -3
- package/dist/providers/ToastProvider.js +22 -6
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +2 -2
- package/dist/responsiveObserver-O1kw80RG.js +73 -0
- package/dist/setup-CKu7-AfI.js +24706 -0
- package/dist/setup.types-dBtAXXGp.js +8824 -0
- package/dist/shadow-BoMGMNn3.js +13 -0
- package/dist/styleChecker-Cotu61d0.js +21 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +28 -12
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +1 -3
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +37 -16
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +0 -1
- package/dist/styles/theme/genesis-theme.js +468 -263
- package/dist/styles/theme/genesis-theme.types.d.ts +53 -12
- package/dist/styles/theme/theme-tree/ThemeTree.d.ts +1 -0
- package/dist/styles/theme/theme-tree/ThemeTree.js +1651 -0
- package/dist/styles/theme/theme-tree/ThemeTree.stories.d.ts +6 -0
- package/dist/{styles-CT_fyXBd.js → styles-BDbHpHsc.js} +587 -643
- package/dist/styles-BSD221S5.js +289 -0
- package/dist/styles-D9iYILpv.js +9195 -0
- package/dist/test/setup.d.ts +2 -3
- package/dist/test/setup.js +87 -4
- package/dist/test/setup.types.d.ts +7 -0
- package/dist/test/setup.types.js +1 -0
- package/dist/toArray-DGvPoJP_.js +11 -0
- package/dist/useBreakpoint-CAMzKscx.js +22 -0
- package/dist/useCSSVarCls-C-MlZC6a.js +11 -0
- package/dist/useId-D2tzlufo.js +26 -0
- package/dist/useLocale-DWRfeMSS.js +16 -0
- package/dist/useMergedState-BoELfaU9.js +23 -0
- package/dist/useSize-CPo2bUE3.js +9 -0
- package/dist/{useVariants-DvhXfgJY.js → useVariants-Cin23jEC.js} +3 -3
- package/dist/useZIndex-D81lkWy4.js +44 -0
- package/dist/utils/icon-util.d.ts +2 -0
- package/dist/utils/icon-util.js +95 -0
- package/package.json +26 -15
- package/dist/AntdIcon-BoLh1dP8.js +0 -202
- package/dist/ExclamationCircleFilled-C0Kj5KQV.js +0 -21
- package/dist/Typography-aGoDUl4R.js +0 -710
- package/dist/index-BZAhCB_K.js +0 -97
- package/dist/index-CfDY25LP.js +0 -873
- package/dist/isVisible-A-IfeFoT.js +0 -367
- package/dist/providers/ThemeProvider.d.ts +0 -9
- package/dist/providers/ThemeProvider.js +0 -21
- package/dist/setup-BvfREoHl.js +0 -33891
- package/dist/useLocale-DT-z_vQ6.js +0 -16
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ASN.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Appointment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Inventory.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Parcel.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Product.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Route.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/Shipment.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/ShoppingCart.js +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.d.ts +0 -0
- /package/dist/components/{Badge → Notification/NotificationBadge}/icons/System.js +0 -0
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-CKu7-AfI.js";
|
|
3
3
|
import "../providers/GenesisProvider.js";
|
|
4
|
-
import "../providers/
|
|
5
|
-
import "../Typography-
|
|
4
|
+
import "../providers/BreakpointThemeProvider.js";
|
|
5
|
+
import "../Typography-DqI7RslA.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-ByspLxrB.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 { f as a } from "./index-ByspLxrB.js";
|
|
4
|
+
import { u as f } from "./responsiveObserver-O1kw80RG.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,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-ByspLxrB.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-ByspLxrB.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-Cx7GtZpz.js";
|
|
4
|
+
import { C as m, V } from "./index-ByspLxrB.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, e as N } from "./index-ByspLxrB.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
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { STATE as r } from "../constants/index.js";
|
|
3
|
+
import { G as o } from "../iconBase-LROS5hdG.js";
|
|
4
|
+
import { a as m } from "../index-BRUI9igj.js";
|
|
5
|
+
import { R as v, a as C, b as p, c as g } from "../MinusCircleOutlined-Shz0RRQV.js";
|
|
6
|
+
import { d as l } from "../presets-Djh_L_6R.js";
|
|
7
|
+
import * as n from "react";
|
|
8
|
+
import { I as i } from "../AntdIcon-nCNB0J1E.js";
|
|
9
|
+
import { R as z } from "../CloseCircleFilled-B9e7yFwo.js";
|
|
10
|
+
import { R as h } from "../ExclamationCircleFilled-BHELVsTg.js";
|
|
11
|
+
var S = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, R = function(e, a) {
|
|
12
|
+
return /* @__PURE__ */ n.createElement(i, l({}, e, {
|
|
13
|
+
ref: a,
|
|
14
|
+
icon: S
|
|
15
|
+
}));
|
|
16
|
+
}, f = /* @__PURE__ */ n.forwardRef(R);
|
|
17
|
+
process.env.NODE_ENV !== "production" && (f.displayName = "ClockCircleOutlined");
|
|
18
|
+
var w = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm176.5 585.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z" } }] }, name: "clock-circle", theme: "filled" }, y = function(e, a) {
|
|
19
|
+
return /* @__PURE__ */ n.createElement(i, l({}, e, {
|
|
20
|
+
ref: a,
|
|
21
|
+
icon: w
|
|
22
|
+
}));
|
|
23
|
+
}, u = /* @__PURE__ */ n.forwardRef(y);
|
|
24
|
+
process.env.NODE_ENV !== "production" && (u.displayName = "ClockCircleFilled");
|
|
25
|
+
var I = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z" } }] }, name: "minus-circle", theme: "filled" }, k = function(e, a) {
|
|
26
|
+
return /* @__PURE__ */ n.createElement(i, l({}, e, {
|
|
27
|
+
ref: a,
|
|
28
|
+
icon: I
|
|
29
|
+
}));
|
|
30
|
+
}, d = /* @__PURE__ */ n.forwardRef(k);
|
|
31
|
+
process.env.NODE_ENV !== "production" && (d.displayName = "MinusCircleFilled");
|
|
32
|
+
function F(s) {
|
|
33
|
+
return o({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }, child: [] }] })(s);
|
|
34
|
+
}
|
|
35
|
+
function M(s) {
|
|
36
|
+
return o({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "currentColor" }, child: [{ tag: "path", attr: { d: "M12 2c5.523 0 10 4.477 10 10a10 10 0 0 1 -19.995 .324l-.005 -.324l.004 -.28c.148 -5.393 4.566 -9.72 9.996 -9.72zm0 9h-1l-.117 .007a1 1 0 0 0 0 1.986l.117 .007v3l.007 .117a1 1 0 0 0 .876 .876l.117 .007h1l.117 -.007a1 1 0 0 0 .876 -.876l.007 -.117l-.007 -.117a1 1 0 0 0 -.764 -.857l-.112 -.02l-.117 -.006v-3l-.007 -.117a1 1 0 0 0 -.876 -.876l-.117 -.007zm.01 -3l-.127 .007a1 1 0 0 0 0 1.986l.117 .007l.127 -.007a1 1 0 0 0 0 -1.986l-.117 -.007z" }, child: [] }] })(s);
|
|
37
|
+
}
|
|
38
|
+
const c = 14, _ = (s, e) => {
|
|
39
|
+
switch (s) {
|
|
40
|
+
case r.error:
|
|
41
|
+
return e.colors.status.error.onsurface;
|
|
42
|
+
case r.success:
|
|
43
|
+
return e.colors.status.success.onsurface;
|
|
44
|
+
case r.warning:
|
|
45
|
+
return e.colors.status.warning.default;
|
|
46
|
+
case r.removed:
|
|
47
|
+
return e.colors.status.generic.default;
|
|
48
|
+
case r.progress:
|
|
49
|
+
return e.colors.timebox.evening.default;
|
|
50
|
+
case r.info:
|
|
51
|
+
default:
|
|
52
|
+
return e.colors.status.info.onsurface;
|
|
53
|
+
}
|
|
54
|
+
}, D = (s, e, a = !0) => {
|
|
55
|
+
if (!a)
|
|
56
|
+
switch (s) {
|
|
57
|
+
case r.warning:
|
|
58
|
+
return /* @__PURE__ */ t(
|
|
59
|
+
g,
|
|
60
|
+
{
|
|
61
|
+
style: { color: e, fontSize: c }
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
case r.error:
|
|
65
|
+
return /* @__PURE__ */ t(p, { style: { color: e, fontSize: c } });
|
|
66
|
+
case r.success:
|
|
67
|
+
return /* @__PURE__ */ t(m, { style: { color: e, fontSize: c } });
|
|
68
|
+
case r.progress:
|
|
69
|
+
return /* @__PURE__ */ t(f, { style: { color: e, fontSize: c } });
|
|
70
|
+
case r.removed:
|
|
71
|
+
return /* @__PURE__ */ t(C, { style: { color: e, fontSize: c } });
|
|
72
|
+
case r.info:
|
|
73
|
+
default:
|
|
74
|
+
return /* @__PURE__ */ t(v, { style: { color: e, fontSize: c } });
|
|
75
|
+
}
|
|
76
|
+
switch (s) {
|
|
77
|
+
case r.warning:
|
|
78
|
+
return /* @__PURE__ */ t(h, { style: { color: e, fontSize: c } });
|
|
79
|
+
case r.error:
|
|
80
|
+
return /* @__PURE__ */ t(z, { style: { color: e, fontSize: c } });
|
|
81
|
+
case r.success:
|
|
82
|
+
return /* @__PURE__ */ t(F, { style: { color: e, fontSize: c } });
|
|
83
|
+
case r.progress:
|
|
84
|
+
return /* @__PURE__ */ t(u, { style: { color: e, fontSize: c } });
|
|
85
|
+
case r.removed:
|
|
86
|
+
return /* @__PURE__ */ t(d, { style: { color: e, fontSize: c } });
|
|
87
|
+
case r.info:
|
|
88
|
+
default:
|
|
89
|
+
return /* @__PURE__ */ t(M, { style: { color: e, fontSize: c + 8 } });
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export {
|
|
93
|
+
D as getBadgeStateIcon,
|
|
94
|
+
_ as getIconColor
|
|
95
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobolt/genesis",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "genesis design system",
|
|
5
5
|
"author": "gobolt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,10 +44,13 @@
|
|
|
44
44
|
"@fontsource/roboto-mono": "^5.1.1",
|
|
45
45
|
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
46
46
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
47
|
+
"@storybook/addon-a11y": "^8.5.0",
|
|
48
|
+
"@storybook/addon-docs": "^8.5.0",
|
|
47
49
|
"@storybook/addon-essentials": "^8.5.0",
|
|
48
50
|
"@storybook/addon-interactions": "^8.5.0",
|
|
49
51
|
"@storybook/addon-links": "^8.5.0",
|
|
50
52
|
"@storybook/addon-mdx-gfm": "^8.5.0",
|
|
53
|
+
"@storybook/addon-styling": "^1.3.7",
|
|
51
54
|
"@storybook/blocks": "^8.5.0",
|
|
52
55
|
"@storybook/manager-api": "^8.5.2",
|
|
53
56
|
"@storybook/react": "^8.5.0",
|
|
@@ -55,6 +58,10 @@
|
|
|
55
58
|
"@storybook/test": "^8.5.0",
|
|
56
59
|
"@storybook/test-runner": "^0.19.1",
|
|
57
60
|
"@storybook/theming": "^8.5.2",
|
|
61
|
+
"@testing-library/dom": "^10.4.0",
|
|
62
|
+
"@testing-library/jest-dom": "^6.1.5",
|
|
63
|
+
"@testing-library/react": "^14.1.2",
|
|
64
|
+
"@testing-library/user-event": "^14.6.0",
|
|
58
65
|
"@types/jest": "^29.5.11",
|
|
59
66
|
"@types/react": "^18.2.37",
|
|
60
67
|
"@types/react-dom": "^18.2.15",
|
|
@@ -62,6 +69,7 @@
|
|
|
62
69
|
"@typescript-eslint/parser": "^6.10.0",
|
|
63
70
|
"@vitejs/plugin-react": "^4.2.1",
|
|
64
71
|
"@vitest/browser": "^2.0.2",
|
|
72
|
+
"chalk": "^5.4.1",
|
|
65
73
|
"eslint": "^8.57.1",
|
|
66
74
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
67
75
|
"eslint-plugin-react-refresh": "^0.4.4",
|
|
@@ -71,36 +79,34 @@
|
|
|
71
79
|
"jsdom": "^23.0.1",
|
|
72
80
|
"react": "^18.2.0",
|
|
73
81
|
"react-dom": "^18.2.0",
|
|
82
|
+
"rollup-plugin-css-only": "^4.5.2",
|
|
74
83
|
"rollup-plugin-dts": "^6.1.1",
|
|
75
84
|
"storybook": "8.5.0",
|
|
76
85
|
"tsx": "^4.19.2",
|
|
77
86
|
"typescript": "^5.2.2",
|
|
78
87
|
"vite": "^5.0.0",
|
|
88
|
+
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
79
89
|
"vite-plugin-dts": "^3.6.4",
|
|
80
90
|
"vite-plugin-lib-inject-css": "^1.3.0",
|
|
81
|
-
"vitest": "^2.1.8",
|
|
82
|
-
"@storybook/addon-a11y": "^8.5.0",
|
|
83
|
-
"@storybook/addon-docs": "^8.5.0",
|
|
84
|
-
"@storybook/addon-styling": "^1.3.7",
|
|
85
|
-
"@testing-library/jest-dom": "^6.1.5",
|
|
86
|
-
"@testing-library/react": "^14.1.2",
|
|
87
|
-
"@testing-library/user-event": "^14.6.0",
|
|
88
|
-
"vite-plugin-css-injected-by-js": "^3.3.0",
|
|
89
91
|
"vite-tsconfig-paths": "^5.1.4",
|
|
90
|
-
"
|
|
91
|
-
"chalk": "^5.4.1"
|
|
92
|
+
"vitest": "^2.1.8"
|
|
92
93
|
},
|
|
93
94
|
"dependencies": {
|
|
94
|
-
"@secondcloset/types": "^3.4.6",
|
|
95
95
|
"@ant-design/icons": "^5.5.2",
|
|
96
96
|
"@mdx-js/react": "^3.0.1",
|
|
97
|
+
"@secondcloset/types": "^3.4.6",
|
|
97
98
|
"antd": "^5.23.1",
|
|
99
|
+
"clsx": "^1.2.1",
|
|
98
100
|
"date-fns": "^3.6.0",
|
|
101
|
+
"msw": "^2.7.1",
|
|
102
|
+
"msw-storybook-addon": "^2.0.4",
|
|
99
103
|
"react-error-boundary": "^4.0.11",
|
|
104
|
+
"react-icons": "^5.5.0",
|
|
105
|
+
"react-router-dom": "^7.2.0",
|
|
100
106
|
"react-toastify": "^11.0.3",
|
|
107
|
+
"recharts": "^2.15.1",
|
|
101
108
|
"styled-components": "^6.1.14",
|
|
102
|
-
"typescript": "^5.2.2"
|
|
103
|
-
"clsx": "^1.1.0"
|
|
109
|
+
"typescript": "^5.2.2"
|
|
104
110
|
},
|
|
105
111
|
"sideEffects": [
|
|
106
112
|
"**/*.css"
|
|
@@ -125,5 +131,10 @@
|
|
|
125
131
|
"bugs": {
|
|
126
132
|
"url": "https://github.com/SecondCloset/genesis/issues"
|
|
127
133
|
},
|
|
128
|
-
"homepage": "https://github.com/SecondCloset/genesis#readme"
|
|
134
|
+
"homepage": "https://github.com/SecondCloset/genesis#readme",
|
|
135
|
+
"msw": {
|
|
136
|
+
"workerDirectory": [
|
|
137
|
+
"public"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
129
140
|
}
|