@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
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import { jsxs as X, jsx as b } from "react/jsx-runtime";
|
|
2
|
-
import { SIZE as _, TYPOGRAPHY_VARIANT as S, STATE as
|
|
3
|
-
import
|
|
2
|
+
import { SIZE as _, TYPOGRAPHY_VARIANT as S, STATE as P } from "../../constants/index.js";
|
|
3
|
+
import "../Avatar/styles.js";
|
|
4
|
+
import "../Badge/styles.js";
|
|
5
|
+
import "../../providers/BreakpointThemeProvider.js";
|
|
6
|
+
import { a as C } from "../../Typography-DqI7RslA.js";
|
|
7
|
+
import { n as J } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
4
8
|
import "../Breadcrumb/styles.js";
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import { n as U } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
8
|
-
import "../Button/styles.js";
|
|
9
|
+
import U from "../Button/Button.js";
|
|
10
|
+
import "../Card/styles.js";
|
|
9
11
|
import "../Checkbox/styles.js";
|
|
12
|
+
import "react";
|
|
10
13
|
import "../ErrorBoundaryFallback/styles.js";
|
|
11
14
|
import "../Input/styles.js";
|
|
15
|
+
import "../Layout/Content/styles.js";
|
|
12
16
|
import "../Message/styles.js";
|
|
13
|
-
import "
|
|
17
|
+
import "../../styles-BSD221S5.js";
|
|
18
|
+
import "../Progress/styles.js";
|
|
19
|
+
import "../../styles/global-styles.js";
|
|
20
|
+
import "../Row/styles.js";
|
|
21
|
+
import "../Row/RowLabelValue/styles.js";
|
|
22
|
+
import "../Row/RowActions/styles.js";
|
|
23
|
+
import "../SegmentedControls/styles.js";
|
|
14
24
|
import "../Select/styles.js";
|
|
25
|
+
import "../Switch/styles.js";
|
|
26
|
+
import "../../styles-D9iYILpv.js";
|
|
27
|
+
import "../Tabs/styles.js";
|
|
28
|
+
import "../Tile/styles.js";
|
|
15
29
|
import "../Toast/styles.js";
|
|
16
|
-
import
|
|
30
|
+
import "../Tooltip/styles.js";
|
|
31
|
+
import K from "./NotificationBadge/NotificationBadge.js";
|
|
32
|
+
import { NotificationRow as Z, NotificationUnread as z, NotificationContent as tt, ChevronButton as et } from "./styles.js";
|
|
17
33
|
import nt from "./NotificationRightChevron.js";
|
|
18
34
|
function d(t) {
|
|
19
35
|
const e = Object.prototype.toString.call(t);
|
|
@@ -27,13 +43,13 @@ let at = {};
|
|
|
27
43
|
function T() {
|
|
28
44
|
return at;
|
|
29
45
|
}
|
|
30
|
-
function
|
|
31
|
-
var i, u, f,
|
|
32
|
-
const n = T(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((
|
|
46
|
+
function k(t, e) {
|
|
47
|
+
var i, u, f, l;
|
|
48
|
+
const n = T(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = d(t), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
|
|
33
49
|
return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
|
|
34
50
|
}
|
|
35
51
|
function F(t) {
|
|
36
|
-
return
|
|
52
|
+
return k(t, { weekStartsOn: 1 });
|
|
37
53
|
}
|
|
38
54
|
function B(t) {
|
|
39
55
|
const e = d(t), n = e.getFullYear(), r = D(t, 0);
|
|
@@ -95,20 +111,20 @@ function ft(t) {
|
|
|
95
111
|
return r === 0 ? 0 : r;
|
|
96
112
|
};
|
|
97
113
|
}
|
|
98
|
-
function
|
|
114
|
+
function lt(t, e) {
|
|
99
115
|
return +d(t) - +d(e);
|
|
100
116
|
}
|
|
101
|
-
function
|
|
117
|
+
function mt(t) {
|
|
102
118
|
const e = d(t);
|
|
103
119
|
return e.setHours(23, 59, 59, 999), e;
|
|
104
120
|
}
|
|
105
|
-
function
|
|
121
|
+
function ht(t) {
|
|
106
122
|
const e = d(t), n = e.getMonth();
|
|
107
123
|
return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
|
|
108
124
|
}
|
|
109
125
|
function gt(t) {
|
|
110
126
|
const e = d(t);
|
|
111
|
-
return +
|
|
127
|
+
return +mt(e) == +ht(e);
|
|
112
128
|
}
|
|
113
129
|
function wt(t, e) {
|
|
114
130
|
const n = d(t), r = d(e), a = Y(n, r), o = Math.abs(
|
|
@@ -125,7 +141,7 @@ function wt(t, e) {
|
|
|
125
141
|
return s === 0 ? 0 : s;
|
|
126
142
|
}
|
|
127
143
|
function yt(t, e, n) {
|
|
128
|
-
const r =
|
|
144
|
+
const r = lt(t, e) / 1e3;
|
|
129
145
|
return ft(n == null ? void 0 : n.roundingMethod)(r);
|
|
130
146
|
}
|
|
131
147
|
function bt(t) {
|
|
@@ -205,43 +221,43 @@ function q(t) {
|
|
|
205
221
|
return t.formats[n] || t.formats[t.defaultWidth];
|
|
206
222
|
};
|
|
207
223
|
}
|
|
208
|
-
const
|
|
224
|
+
const pt = {
|
|
209
225
|
full: "EEEE, MMMM do, y",
|
|
210
226
|
long: "MMMM do, y",
|
|
211
227
|
medium: "MMM d, y",
|
|
212
228
|
short: "MM/dd/yyyy"
|
|
213
|
-
},
|
|
229
|
+
}, Ot = {
|
|
214
230
|
full: "h:mm:ss a zzzz",
|
|
215
231
|
long: "h:mm:ss a z",
|
|
216
232
|
medium: "h:mm:ss a",
|
|
217
233
|
short: "h:mm a"
|
|
218
|
-
},
|
|
234
|
+
}, Pt = {
|
|
219
235
|
full: "{{date}} 'at' {{time}}",
|
|
220
236
|
long: "{{date}} 'at' {{time}}",
|
|
221
237
|
medium: "{{date}}, {{time}}",
|
|
222
238
|
short: "{{date}}, {{time}}"
|
|
223
|
-
},
|
|
239
|
+
}, xt = {
|
|
224
240
|
date: q({
|
|
225
|
-
formats:
|
|
241
|
+
formats: pt,
|
|
226
242
|
defaultWidth: "full"
|
|
227
243
|
}),
|
|
228
244
|
time: q({
|
|
229
|
-
formats:
|
|
245
|
+
formats: Ot,
|
|
230
246
|
defaultWidth: "full"
|
|
231
247
|
}),
|
|
232
248
|
dateTime: q({
|
|
233
|
-
formats:
|
|
249
|
+
formats: Pt,
|
|
234
250
|
defaultWidth: "full"
|
|
235
251
|
})
|
|
236
|
-
},
|
|
252
|
+
}, vt = {
|
|
237
253
|
lastWeek: "'last' eeee 'at' p",
|
|
238
254
|
yesterday: "'yesterday at' p",
|
|
239
255
|
today: "'today at' p",
|
|
240
256
|
tomorrow: "'tomorrow at' p",
|
|
241
257
|
nextWeek: "eeee 'at' p",
|
|
242
258
|
other: "P"
|
|
243
|
-
},
|
|
244
|
-
function
|
|
259
|
+
}, kt = (t, e, n, r) => vt[t];
|
|
260
|
+
function x(t) {
|
|
245
261
|
return (e, n) => {
|
|
246
262
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
247
263
|
let a;
|
|
@@ -383,31 +399,31 @@ const Tt = {
|
|
|
383
399
|
return n + "th";
|
|
384
400
|
}, Ct = {
|
|
385
401
|
ordinalNumber: Et,
|
|
386
|
-
era:
|
|
402
|
+
era: x({
|
|
387
403
|
values: Tt,
|
|
388
404
|
defaultWidth: "wide"
|
|
389
405
|
}),
|
|
390
|
-
quarter:
|
|
406
|
+
quarter: x({
|
|
391
407
|
values: St,
|
|
392
408
|
defaultWidth: "wide",
|
|
393
409
|
argumentCallback: (t) => t - 1
|
|
394
410
|
}),
|
|
395
|
-
month:
|
|
411
|
+
month: x({
|
|
396
412
|
values: Wt,
|
|
397
413
|
defaultWidth: "wide"
|
|
398
414
|
}),
|
|
399
|
-
day:
|
|
415
|
+
day: x({
|
|
400
416
|
values: Yt,
|
|
401
417
|
defaultWidth: "wide"
|
|
402
418
|
}),
|
|
403
|
-
dayPeriod:
|
|
419
|
+
dayPeriod: x({
|
|
404
420
|
values: Ft,
|
|
405
421
|
defaultWidth: "wide",
|
|
406
422
|
formattingValues: Nt,
|
|
407
423
|
defaultFormattingWidth: "wide"
|
|
408
424
|
})
|
|
409
425
|
};
|
|
410
|
-
function
|
|
426
|
+
function v(t) {
|
|
411
427
|
return (e, n = {}) => {
|
|
412
428
|
const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
|
|
413
429
|
if (!o)
|
|
@@ -421,8 +437,8 @@ function k(t) {
|
|
|
421
437
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
422
438
|
n.valueCallback(f)
|
|
423
439
|
) : f;
|
|
424
|
-
const
|
|
425
|
-
return { value: f, rest:
|
|
440
|
+
const l = e.slice(s.length);
|
|
441
|
+
return { value: f, rest: l };
|
|
426
442
|
};
|
|
427
443
|
}
|
|
428
444
|
function qt(t, e) {
|
|
@@ -520,32 +536,32 @@ const Ht = /^(\d+)(th|st|nd|rd)?/i, Rt = /\d+/i, Lt = {
|
|
|
520
536
|
parsePattern: Rt,
|
|
521
537
|
valueCallback: (t) => parseInt(t, 10)
|
|
522
538
|
}),
|
|
523
|
-
era:
|
|
539
|
+
era: v({
|
|
524
540
|
matchPatterns: Lt,
|
|
525
541
|
defaultMatchWidth: "wide",
|
|
526
542
|
parsePatterns: jt,
|
|
527
543
|
defaultParseWidth: "any"
|
|
528
544
|
}),
|
|
529
|
-
quarter:
|
|
545
|
+
quarter: v({
|
|
530
546
|
matchPatterns: It,
|
|
531
547
|
defaultMatchWidth: "wide",
|
|
532
548
|
parsePatterns: Qt,
|
|
533
549
|
defaultParseWidth: "any",
|
|
534
550
|
valueCallback: (t) => t + 1
|
|
535
551
|
}),
|
|
536
|
-
month:
|
|
552
|
+
month: v({
|
|
537
553
|
matchPatterns: At,
|
|
538
554
|
defaultMatchWidth: "wide",
|
|
539
555
|
parsePatterns: Bt,
|
|
540
556
|
defaultParseWidth: "any"
|
|
541
557
|
}),
|
|
542
|
-
day:
|
|
558
|
+
day: v({
|
|
543
559
|
matchPatterns: Gt,
|
|
544
560
|
defaultMatchWidth: "wide",
|
|
545
561
|
parsePatterns: Vt,
|
|
546
562
|
defaultParseWidth: "any"
|
|
547
563
|
}),
|
|
548
|
-
dayPeriod:
|
|
564
|
+
dayPeriod: v({
|
|
549
565
|
matchPatterns: $t,
|
|
550
566
|
defaultMatchWidth: "any",
|
|
551
567
|
parsePatterns: Jt,
|
|
@@ -554,8 +570,8 @@ const Ht = /^(\d+)(th|st|nd|rd)?/i, Rt = /\d+/i, Lt = {
|
|
|
554
570
|
}, G = {
|
|
555
571
|
code: "en-US",
|
|
556
572
|
formatDistance: Dt,
|
|
557
|
-
formatLong:
|
|
558
|
-
formatRelative:
|
|
573
|
+
formatLong: xt,
|
|
574
|
+
formatRelative: kt,
|
|
559
575
|
localize: Ct,
|
|
560
576
|
match: Ut,
|
|
561
577
|
options: {
|
|
@@ -572,21 +588,21 @@ function Zt(t) {
|
|
|
572
588
|
return Math.round(n / A) + 1;
|
|
573
589
|
}
|
|
574
590
|
function V(t, e) {
|
|
575
|
-
var
|
|
576
|
-
const n = d(t), r = n.getFullYear(), a = T(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (
|
|
591
|
+
var l, w, m, y;
|
|
592
|
+
const n = d(t), r = n.getFullYear(), a = T(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = D(t, 0);
|
|
577
593
|
s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
578
|
-
const i =
|
|
594
|
+
const i = k(s, e), u = D(t, 0);
|
|
579
595
|
u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
|
|
580
|
-
const f =
|
|
596
|
+
const f = k(u, e);
|
|
581
597
|
return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= f.getTime() ? r : r - 1;
|
|
582
598
|
}
|
|
583
599
|
function zt(t, e) {
|
|
584
|
-
var i, u, f,
|
|
585
|
-
const n = T(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((
|
|
586
|
-
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0),
|
|
600
|
+
var i, u, f, l;
|
|
601
|
+
const n = T(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = V(t, e), o = D(t, 0);
|
|
602
|
+
return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), k(o, e);
|
|
587
603
|
}
|
|
588
604
|
function te(t, e) {
|
|
589
|
-
const n = d(t), r = +
|
|
605
|
+
const n = d(t), r = +k(n, e) - +zt(n, e);
|
|
590
606
|
return Math.round(r / A) + 1;
|
|
591
607
|
}
|
|
592
608
|
function c(t, e) {
|
|
@@ -647,7 +663,7 @@ const M = {
|
|
|
647
663
|
);
|
|
648
664
|
return c(a, e.length);
|
|
649
665
|
}
|
|
650
|
-
},
|
|
666
|
+
}, O = {
|
|
651
667
|
am: "am",
|
|
652
668
|
pm: "pm",
|
|
653
669
|
midnight: "midnight",
|
|
@@ -991,7 +1007,7 @@ const M = {
|
|
|
991
1007
|
b: function(t, e, n) {
|
|
992
1008
|
const r = t.getHours();
|
|
993
1009
|
let a;
|
|
994
|
-
switch (r === 12 ? a =
|
|
1010
|
+
switch (r === 12 ? a = O.noon : r === 0 ? a = O.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
|
|
995
1011
|
case "b":
|
|
996
1012
|
case "bb":
|
|
997
1013
|
return n.dayPeriod(a, {
|
|
@@ -1020,7 +1036,7 @@ const M = {
|
|
|
1020
1036
|
B: function(t, e, n) {
|
|
1021
1037
|
const r = t.getHours();
|
|
1022
1038
|
let a;
|
|
1023
|
-
switch (r >= 17 ? a =
|
|
1039
|
+
switch (r >= 17 ? a = O.evening : r >= 12 ? a = O.afternoon : r >= 4 ? a = O.morning : a = O.night, e) {
|
|
1024
1040
|
case "B":
|
|
1025
1041
|
case "BB":
|
|
1026
1042
|
case "BBB":
|
|
@@ -1085,11 +1101,11 @@ const M = {
|
|
|
1085
1101
|
return I(r);
|
|
1086
1102
|
case "XXXX":
|
|
1087
1103
|
case "XX":
|
|
1088
|
-
return
|
|
1104
|
+
return p(r);
|
|
1089
1105
|
case "XXXXX":
|
|
1090
1106
|
case "XXX":
|
|
1091
1107
|
default:
|
|
1092
|
-
return
|
|
1108
|
+
return p(r, ":");
|
|
1093
1109
|
}
|
|
1094
1110
|
},
|
|
1095
1111
|
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
@@ -1100,11 +1116,11 @@ const M = {
|
|
|
1100
1116
|
return I(r);
|
|
1101
1117
|
case "xxxx":
|
|
1102
1118
|
case "xx":
|
|
1103
|
-
return
|
|
1119
|
+
return p(r);
|
|
1104
1120
|
case "xxxxx":
|
|
1105
1121
|
case "xxx":
|
|
1106
1122
|
default:
|
|
1107
|
-
return
|
|
1123
|
+
return p(r, ":");
|
|
1108
1124
|
}
|
|
1109
1125
|
},
|
|
1110
1126
|
// Timezone (GMT)
|
|
@@ -1117,7 +1133,7 @@ const M = {
|
|
|
1117
1133
|
return "GMT" + j(r, ":");
|
|
1118
1134
|
case "OOOO":
|
|
1119
1135
|
default:
|
|
1120
|
-
return "GMT" +
|
|
1136
|
+
return "GMT" + p(r, ":");
|
|
1121
1137
|
}
|
|
1122
1138
|
},
|
|
1123
1139
|
// Timezone (specific non-location)
|
|
@@ -1130,7 +1146,7 @@ const M = {
|
|
|
1130
1146
|
return "GMT" + j(r, ":");
|
|
1131
1147
|
case "zzzz":
|
|
1132
1148
|
default:
|
|
1133
|
-
return "GMT" +
|
|
1149
|
+
return "GMT" + p(r, ":");
|
|
1134
1150
|
}
|
|
1135
1151
|
},
|
|
1136
1152
|
// Seconds timestamp
|
|
@@ -1149,9 +1165,9 @@ function j(t, e = "") {
|
|
|
1149
1165
|
return o === 0 ? n + String(a) : n + String(a) + e + c(o, 2);
|
|
1150
1166
|
}
|
|
1151
1167
|
function I(t, e) {
|
|
1152
|
-
return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) :
|
|
1168
|
+
return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) : p(t, e);
|
|
1153
1169
|
}
|
|
1154
|
-
function
|
|
1170
|
+
function p(t, e = "") {
|
|
1155
1171
|
const n = t > 0 ? "-" : "+", r = Math.abs(t), a = c(Math.trunc(r / 60), 2), o = c(r % 60, 2);
|
|
1156
1172
|
return n + a + e + o;
|
|
1157
1173
|
}
|
|
@@ -1218,32 +1234,32 @@ function ue(t, e, n) {
|
|
|
1218
1234
|
const r = t[0] === "Y" ? "years" : "days of the month";
|
|
1219
1235
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1220
1236
|
}
|
|
1221
|
-
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,
|
|
1237
|
+
const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, le = /^'([^]*?)'?$/, me = /''/g, he = /[a-zA-Z]/;
|
|
1222
1238
|
function ge(t, e, n) {
|
|
1223
|
-
var
|
|
1224
|
-
const r = T(), a = r.locale ?? G, o = r.firstWeekContainsDate ?? ((w = (
|
|
1239
|
+
var l, w, m, y;
|
|
1240
|
+
const r = T(), a = r.locale ?? G, o = r.firstWeekContainsDate ?? ((w = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((y = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : y.weekStartsOn) ?? 0, i = d(t);
|
|
1225
1241
|
if (!ut(i))
|
|
1226
1242
|
throw new RangeError("Invalid time value");
|
|
1227
|
-
let u = e.match(fe).map((
|
|
1228
|
-
const g =
|
|
1243
|
+
let u = e.match(fe).map((h) => {
|
|
1244
|
+
const g = h[0];
|
|
1229
1245
|
if (g === "p" || g === "P") {
|
|
1230
1246
|
const E = ne[g];
|
|
1231
|
-
return E(
|
|
1247
|
+
return E(h, a.formatLong);
|
|
1232
1248
|
}
|
|
1233
|
-
return
|
|
1234
|
-
}).join("").match(de).map((
|
|
1235
|
-
if (
|
|
1249
|
+
return h;
|
|
1250
|
+
}).join("").match(de).map((h) => {
|
|
1251
|
+
if (h === "''")
|
|
1236
1252
|
return { isToken: !1, value: "'" };
|
|
1237
|
-
const g =
|
|
1253
|
+
const g = h[0];
|
|
1238
1254
|
if (g === "'")
|
|
1239
|
-
return { isToken: !1, value: we(
|
|
1255
|
+
return { isToken: !1, value: we(h) };
|
|
1240
1256
|
if (L[g])
|
|
1241
|
-
return { isToken: !0, value:
|
|
1242
|
-
if (g.match(
|
|
1257
|
+
return { isToken: !0, value: h };
|
|
1258
|
+
if (g.match(he))
|
|
1243
1259
|
throw new RangeError(
|
|
1244
1260
|
"Format string contains an unescaped latin alphabet character `" + g + "`"
|
|
1245
1261
|
);
|
|
1246
|
-
return { isToken: !1, value:
|
|
1262
|
+
return { isToken: !1, value: h };
|
|
1247
1263
|
});
|
|
1248
1264
|
a.localize.preprocessor && (u = a.localize.preprocessor(i, u));
|
|
1249
1265
|
const f = {
|
|
@@ -1251,17 +1267,17 @@ function ge(t, e, n) {
|
|
|
1251
1267
|
weekStartsOn: s,
|
|
1252
1268
|
locale: a
|
|
1253
1269
|
};
|
|
1254
|
-
return u.map((
|
|
1255
|
-
if (!
|
|
1256
|
-
const g =
|
|
1270
|
+
return u.map((h) => {
|
|
1271
|
+
if (!h.isToken) return h.value;
|
|
1272
|
+
const g = h.value;
|
|
1257
1273
|
(se(g) || ie(g)) && ce(g, e, String(t));
|
|
1258
1274
|
const E = L[g[0]];
|
|
1259
1275
|
return E(i, g, a.localize, f);
|
|
1260
1276
|
}).join("");
|
|
1261
1277
|
}
|
|
1262
1278
|
function we(t) {
|
|
1263
|
-
const e = t.match(
|
|
1264
|
-
return e ? e[1].replace(
|
|
1279
|
+
const e = t.match(le);
|
|
1280
|
+
return e ? e[1].replace(me, "'") : t;
|
|
1265
1281
|
}
|
|
1266
1282
|
function ye(t, e, n) {
|
|
1267
1283
|
const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? G, o = 2520, s = Y(t, e);
|
|
@@ -1273,32 +1289,32 @@ function ye(t, e, n) {
|
|
|
1273
1289
|
});
|
|
1274
1290
|
let u, f;
|
|
1275
1291
|
s > 0 ? (u = d(e), f = d(t)) : (u = d(t), f = d(e));
|
|
1276
|
-
const
|
|
1292
|
+
const l = yt(f, u), w = (N(f) - N(u)) / 1e3, m = Math.round((l - w) / 60);
|
|
1277
1293
|
let y;
|
|
1278
|
-
if (
|
|
1279
|
-
return n != null && n.includeSeconds ?
|
|
1280
|
-
if (
|
|
1281
|
-
return a.formatDistance("xMinutes",
|
|
1282
|
-
if (
|
|
1294
|
+
if (m < 2)
|
|
1295
|
+
return n != null && n.includeSeconds ? l < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : l < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : l < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : l < 40 ? a.formatDistance("halfAMinute", 0, i) : l < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : m === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", m, i);
|
|
1296
|
+
if (m < 45)
|
|
1297
|
+
return a.formatDistance("xMinutes", m, i);
|
|
1298
|
+
if (m < 90)
|
|
1283
1299
|
return a.formatDistance("aboutXHours", 1, i);
|
|
1284
|
-
if (
|
|
1285
|
-
const
|
|
1286
|
-
return a.formatDistance("aboutXHours",
|
|
1300
|
+
if (m < H) {
|
|
1301
|
+
const h = Math.round(m / 60);
|
|
1302
|
+
return a.formatDistance("aboutXHours", h, i);
|
|
1287
1303
|
} else {
|
|
1288
|
-
if (
|
|
1304
|
+
if (m < o)
|
|
1289
1305
|
return a.formatDistance("xDays", 1, i);
|
|
1290
|
-
if (
|
|
1291
|
-
const
|
|
1292
|
-
return a.formatDistance("xDays",
|
|
1293
|
-
} else if (
|
|
1294
|
-
return y = Math.round(
|
|
1306
|
+
if (m < W) {
|
|
1307
|
+
const h = Math.round(m / H);
|
|
1308
|
+
return a.formatDistance("xDays", h, i);
|
|
1309
|
+
} else if (m < W * 2)
|
|
1310
|
+
return y = Math.round(m / W), a.formatDistance("aboutXMonths", y, i);
|
|
1295
1311
|
}
|
|
1296
1312
|
if (y = wt(f, u), y < 12) {
|
|
1297
|
-
const
|
|
1298
|
-
return a.formatDistance("xMonths",
|
|
1313
|
+
const h = Math.round(m / W);
|
|
1314
|
+
return a.formatDistance("xMonths", h, i);
|
|
1299
1315
|
} else {
|
|
1300
|
-
const
|
|
1301
|
-
return
|
|
1316
|
+
const h = y % 12, g = Math.trunc(y / 12);
|
|
1317
|
+
return h < 3 ? a.formatDistance("aboutXYears", g, i) : h < 9 ? a.formatDistance("overXYears", g, i) : a.formatDistance("almostXYears", g + 1, i);
|
|
1302
1318
|
}
|
|
1303
1319
|
}
|
|
1304
1320
|
function be(t, e) {
|
|
@@ -1306,21 +1322,21 @@ function be(t, e) {
|
|
|
1306
1322
|
}
|
|
1307
1323
|
const Me = (t, e) => {
|
|
1308
1324
|
switch (t) {
|
|
1309
|
-
case
|
|
1325
|
+
case P.warning:
|
|
1310
1326
|
return e.colors.status.warning.onsurface;
|
|
1311
|
-
case
|
|
1327
|
+
case P.error:
|
|
1312
1328
|
return e.colors.status.error.onsurface;
|
|
1313
|
-
case
|
|
1329
|
+
case P.success:
|
|
1314
1330
|
return e.colors.status.success.onsurface;
|
|
1315
|
-
case
|
|
1331
|
+
case P.generic:
|
|
1316
1332
|
return e.colors.status.generic.onsurface;
|
|
1317
|
-
case
|
|
1333
|
+
case P.info:
|
|
1318
1334
|
default:
|
|
1319
1335
|
return e.colors.status.info.onsurface;
|
|
1320
1336
|
}
|
|
1321
|
-
},
|
|
1337
|
+
}, ze = ({
|
|
1322
1338
|
message: t,
|
|
1323
|
-
state: e =
|
|
1339
|
+
state: e = P.info,
|
|
1324
1340
|
date: n,
|
|
1325
1341
|
action: r,
|
|
1326
1342
|
onArrowClick: a,
|
|
@@ -1328,13 +1344,13 @@ const Me = (t, e) => {
|
|
|
1328
1344
|
isUnread: s = !0,
|
|
1329
1345
|
hasFormattedDate: i = !1
|
|
1330
1346
|
}) => {
|
|
1331
|
-
const u =
|
|
1347
|
+
const u = J();
|
|
1332
1348
|
Me(e, u), u.colors.interactive.utility.border, u.colors.interactive.utility.onsurface;
|
|
1333
|
-
const f = " • ",
|
|
1334
|
-
return /* @__PURE__ */ X(
|
|
1335
|
-
s ? /* @__PURE__ */ b(
|
|
1336
|
-
/* @__PURE__ */ b(
|
|
1337
|
-
/* @__PURE__ */ b(
|
|
1349
|
+
const f = " • ", l = n ? ge(new Date(n), "MMM d, h:mma") : "", w = n ? be(new Date(n), { addSuffix: !0 }) : "", m = i ? `${w}${f}${l}` : w, y = o === _.small ? S.body1 : S.body2;
|
|
1350
|
+
return /* @__PURE__ */ X(Z, { state: e, size: o, $isUnread: s, children: [
|
|
1351
|
+
s ? /* @__PURE__ */ b(z, { state: e, size: o }) : /* @__PURE__ */ b("div", { style: { width: 8 } }),
|
|
1352
|
+
/* @__PURE__ */ b(K, { state: e }),
|
|
1353
|
+
/* @__PURE__ */ b(tt, { size: o, children: /* @__PURE__ */ X("div", { children: [
|
|
1338
1354
|
/* @__PURE__ */ b(
|
|
1339
1355
|
C,
|
|
1340
1356
|
{
|
|
@@ -1350,21 +1366,30 @@ const Me = (t, e) => {
|
|
|
1350
1366
|
variant: y,
|
|
1351
1367
|
color: u.colors.onsurface["copy-light"],
|
|
1352
1368
|
isText: !0,
|
|
1353
|
-
children:
|
|
1369
|
+
children: m
|
|
1354
1370
|
}
|
|
1355
1371
|
) })
|
|
1356
1372
|
] }) }),
|
|
1357
|
-
r ? /* @__PURE__ */ b(
|
|
1358
|
-
|
|
1373
|
+
r ? /* @__PURE__ */ b(
|
|
1374
|
+
U,
|
|
1359
1375
|
{
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1376
|
+
themeType: "utility",
|
|
1377
|
+
onClick: r.onClick,
|
|
1378
|
+
size: "small",
|
|
1379
|
+
style: { pointerEvents: "all" },
|
|
1380
|
+
children: /* @__PURE__ */ b(
|
|
1381
|
+
C,
|
|
1382
|
+
{
|
|
1383
|
+
variant: S.body1,
|
|
1384
|
+
isText: !0,
|
|
1385
|
+
children: r.label
|
|
1386
|
+
}
|
|
1387
|
+
)
|
|
1363
1388
|
}
|
|
1364
|
-
)
|
|
1389
|
+
) : null,
|
|
1365
1390
|
a ? /* @__PURE__ */ b(et, { onClick: a, children: /* @__PURE__ */ b(nt, {}) }) : null
|
|
1366
1391
|
] });
|
|
1367
1392
|
};
|
|
1368
1393
|
export {
|
|
1369
|
-
|
|
1394
|
+
ze as default
|
|
1370
1395
|
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
|
+
import p from "./icons/Appointment.js";
|
|
3
|
+
import i from "./icons/ASN.js";
|
|
4
|
+
import s from "./icons/Inventory.js";
|
|
5
|
+
import c from "./icons/Parcel.js";
|
|
6
|
+
import d from "./icons/Product.js";
|
|
7
|
+
import f from "./icons/Route.js";
|
|
8
|
+
import u from "./icons/Shipment.js";
|
|
9
|
+
import g from "./icons/ShoppingCart.js";
|
|
10
|
+
import h from "./icons/System.js";
|
|
11
|
+
import { BADGE as r, STATE as l } from "../../../constants/index.js";
|
|
12
|
+
import { n as B } from "../../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
13
|
+
import { BadgeWrapper as S, Badge as C, BadgeState as v } from "./styles.js";
|
|
14
|
+
import { getIconColor as y, getBadgeStateIcon as x } from "../../../utils/icon-util.js";
|
|
15
|
+
const A = (e) => {
|
|
16
|
+
switch (e) {
|
|
17
|
+
case r.appointment:
|
|
18
|
+
return /* @__PURE__ */ t(p, {});
|
|
19
|
+
case r.asn:
|
|
20
|
+
return /* @__PURE__ */ t(i, {});
|
|
21
|
+
case r.inventory:
|
|
22
|
+
return /* @__PURE__ */ t(s, {});
|
|
23
|
+
case r.parcel:
|
|
24
|
+
return /* @__PURE__ */ t(c, {});
|
|
25
|
+
case r.product:
|
|
26
|
+
return /* @__PURE__ */ t(d, {});
|
|
27
|
+
case r.route:
|
|
28
|
+
return /* @__PURE__ */ t(f, {});
|
|
29
|
+
case r.shipment:
|
|
30
|
+
return /* @__PURE__ */ t(u, {});
|
|
31
|
+
case r.shoppingCart:
|
|
32
|
+
return /* @__PURE__ */ t(g, {});
|
|
33
|
+
case r.system:
|
|
34
|
+
default:
|
|
35
|
+
return /* @__PURE__ */ t(h, {});
|
|
36
|
+
}
|
|
37
|
+
}, q = ({
|
|
38
|
+
badge: e = r.product,
|
|
39
|
+
state: o = l.info
|
|
40
|
+
}) => {
|
|
41
|
+
const m = B(), n = y(o, m);
|
|
42
|
+
return /* @__PURE__ */ t(S, { children: /* @__PURE__ */ a(C, { "data-testid": "Badge", children: [
|
|
43
|
+
/* @__PURE__ */ t(v, { "data-testid": "BadgeState", color: n, children: x(o, n) }),
|
|
44
|
+
A(e)
|
|
45
|
+
] }) });
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
q as default
|
|
49
|
+
};
|
package/dist/components/Notification/NotificationBadge/__stories__/NotificationBadge.stories.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as NotificationBadge } from '../NotificationBadge';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof NotificationBadge>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof NotificationBadge>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Success: Story;
|
|
9
|
+
export declare const Warning: Story;
|
|
10
|
+
export declare const Removed: Story;
|
|
11
|
+
export declare const Progress: Story;
|
|
12
|
+
export declare const Error: Story;
|
|
13
|
+
export declare const Info: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import n from "../NotificationBadge.js";
|
|
3
|
+
import { BADGE as a, STATE as d } from "../../../../constants/index.js";
|
|
4
|
+
import { a as i } from "../../../../setup-CKu7-AfI.js";
|
|
5
|
+
describe("<NotificationBadge />", () => {
|
|
6
|
+
let e;
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
e = {
|
|
9
|
+
badge: a.product,
|
|
10
|
+
state: d.info
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
const o = () => i(/* @__PURE__ */ r(n, { ...e }));
|
|
14
|
+
it("should render badge and state elements", () => {
|
|
15
|
+
const { getByTestId: t } = o();
|
|
16
|
+
expect(t("Badge")).toBeInTheDocument(), expect(t("BadgeState")).toBeInTheDocument();
|
|
17
|
+
});
|
|
18
|
+
});
|