@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,367 +0,0 @@
|
|
|
1
|
-
import { i as Z, u as W, b as q, c as z } from "./index-oK7z6jnz.js";
|
|
2
|
-
import $ from "react";
|
|
3
|
-
import { f as D, d as H } from "./warning-C63HNL9U.js";
|
|
4
|
-
function J(i) {
|
|
5
|
-
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = [];
|
|
6
|
-
return $.Children.forEach(i, function(u) {
|
|
7
|
-
u == null && !c.keepEmpty || (Array.isArray(u) ? f = f.concat(J(u)) : Z(u) && u.props ? f = f.concat(J(u.props.children, c)) : f.push(u));
|
|
8
|
-
}), f;
|
|
9
|
-
}
|
|
10
|
-
function B(i) {
|
|
11
|
-
return i !== void 0;
|
|
12
|
-
}
|
|
13
|
-
function ot(i, c) {
|
|
14
|
-
var f = c || {}, u = f.defaultValue, l = f.value, m = f.onChange, p = f.postState, x = W(function() {
|
|
15
|
-
return B(l) ? l : B(u) ? typeof u == "function" ? u() : u : typeof i == "function" ? i() : i;
|
|
16
|
-
}), d = D(x, 2), h = d[0], G = d[1], E = l !== void 0 ? l : h, A = p ? p(E) : E, C = q(m), T = W([E]), L = D(T, 2), g = L[0], P = L[1];
|
|
17
|
-
z(function() {
|
|
18
|
-
var w = g[0];
|
|
19
|
-
h !== w && C(h, w);
|
|
20
|
-
}, [g]), z(function() {
|
|
21
|
-
B(l) || G(l);
|
|
22
|
-
}, [l]);
|
|
23
|
-
var j = q(function(w, k) {
|
|
24
|
-
G(w, k), P([E], k);
|
|
25
|
-
});
|
|
26
|
-
return [A, j];
|
|
27
|
-
}
|
|
28
|
-
function tt() {
|
|
29
|
-
tt = function() {
|
|
30
|
-
return c;
|
|
31
|
-
};
|
|
32
|
-
var i, c = {}, f = Object.prototype, u = f.hasOwnProperty, l = Object.defineProperty || function(r, t, e) {
|
|
33
|
-
r[t] = e.value;
|
|
34
|
-
}, m = typeof Symbol == "function" ? Symbol : {}, p = m.iterator || "@@iterator", x = m.asyncIterator || "@@asyncIterator", d = m.toStringTag || "@@toStringTag";
|
|
35
|
-
function h(r, t, e) {
|
|
36
|
-
return Object.defineProperty(r, t, {
|
|
37
|
-
value: e,
|
|
38
|
-
enumerable: !0,
|
|
39
|
-
configurable: !0,
|
|
40
|
-
writable: !0
|
|
41
|
-
}), r[t];
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
h({}, "");
|
|
45
|
-
} catch {
|
|
46
|
-
h = function(e, n, a) {
|
|
47
|
-
return e[n] = a;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function G(r, t, e, n) {
|
|
51
|
-
var a = t && t.prototype instanceof P ? t : P, o = Object.create(a.prototype), s = new M(n || []);
|
|
52
|
-
return l(o, "_invoke", {
|
|
53
|
-
value: Q(r, e, s)
|
|
54
|
-
}), o;
|
|
55
|
-
}
|
|
56
|
-
function E(r, t, e) {
|
|
57
|
-
try {
|
|
58
|
-
return {
|
|
59
|
-
type: "normal",
|
|
60
|
-
arg: r.call(t, e)
|
|
61
|
-
};
|
|
62
|
-
} catch (n) {
|
|
63
|
-
return {
|
|
64
|
-
type: "throw",
|
|
65
|
-
arg: n
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
c.wrap = G;
|
|
70
|
-
var A = "suspendedStart", C = "suspendedYield", T = "executing", L = "completed", g = {};
|
|
71
|
-
function P() {
|
|
72
|
-
}
|
|
73
|
-
function j() {
|
|
74
|
-
}
|
|
75
|
-
function w() {
|
|
76
|
-
}
|
|
77
|
-
var k = {};
|
|
78
|
-
h(k, p, function() {
|
|
79
|
-
return this;
|
|
80
|
-
});
|
|
81
|
-
var N = Object.getPrototypeOf, F = N && N(N(R([])));
|
|
82
|
-
F && F !== f && u.call(F, p) && (k = F);
|
|
83
|
-
var S = w.prototype = P.prototype = Object.create(k);
|
|
84
|
-
function Y(r) {
|
|
85
|
-
["next", "throw", "return"].forEach(function(t) {
|
|
86
|
-
h(r, t, function(e) {
|
|
87
|
-
return this._invoke(t, e);
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function I(r, t) {
|
|
92
|
-
function e(a, o, s, v) {
|
|
93
|
-
var y = E(r[a], r, o);
|
|
94
|
-
if (y.type !== "throw") {
|
|
95
|
-
var _ = y.arg, b = _.value;
|
|
96
|
-
return b && H(b) == "object" && u.call(b, "__await") ? t.resolve(b.__await).then(function(O) {
|
|
97
|
-
e("next", O, s, v);
|
|
98
|
-
}, function(O) {
|
|
99
|
-
e("throw", O, s, v);
|
|
100
|
-
}) : t.resolve(b).then(function(O) {
|
|
101
|
-
_.value = O, s(_);
|
|
102
|
-
}, function(O) {
|
|
103
|
-
return e("throw", O, s, v);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
v(y.arg);
|
|
107
|
-
}
|
|
108
|
-
var n;
|
|
109
|
-
l(this, "_invoke", {
|
|
110
|
-
value: function(o, s) {
|
|
111
|
-
function v() {
|
|
112
|
-
return new t(function(y, _) {
|
|
113
|
-
e(o, s, y, _);
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
return n = n ? n.then(v, v) : v();
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
function Q(r, t, e) {
|
|
121
|
-
var n = A;
|
|
122
|
-
return function(a, o) {
|
|
123
|
-
if (n === T) throw Error("Generator is already running");
|
|
124
|
-
if (n === L) {
|
|
125
|
-
if (a === "throw") throw o;
|
|
126
|
-
return {
|
|
127
|
-
value: i,
|
|
128
|
-
done: !0
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
for (e.method = a, e.arg = o; ; ) {
|
|
132
|
-
var s = e.delegate;
|
|
133
|
-
if (s) {
|
|
134
|
-
var v = U(s, e);
|
|
135
|
-
if (v) {
|
|
136
|
-
if (v === g) continue;
|
|
137
|
-
return v;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (e.method === "next") e.sent = e._sent = e.arg;
|
|
141
|
-
else if (e.method === "throw") {
|
|
142
|
-
if (n === A) throw n = L, e.arg;
|
|
143
|
-
e.dispatchException(e.arg);
|
|
144
|
-
} else e.method === "return" && e.abrupt("return", e.arg);
|
|
145
|
-
n = T;
|
|
146
|
-
var y = E(r, t, e);
|
|
147
|
-
if (y.type === "normal") {
|
|
148
|
-
if (n = e.done ? L : C, y.arg === g) continue;
|
|
149
|
-
return {
|
|
150
|
-
value: y.arg,
|
|
151
|
-
done: e.done
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
y.type === "throw" && (n = L, e.method = "throw", e.arg = y.arg);
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
function U(r, t) {
|
|
159
|
-
var e = t.method, n = r.iterator[e];
|
|
160
|
-
if (n === i) return t.delegate = null, e === "throw" && r.iterator.return && (t.method = "return", t.arg = i, U(r, t), t.method === "throw") || e !== "return" && (t.method = "throw", t.arg = new TypeError("The iterator does not provide a '" + e + "' method")), g;
|
|
161
|
-
var a = E(n, r.iterator, t.arg);
|
|
162
|
-
if (a.type === "throw") return t.method = "throw", t.arg = a.arg, t.delegate = null, g;
|
|
163
|
-
var o = a.arg;
|
|
164
|
-
return o ? o.done ? (t[r.resultName] = o.value, t.next = r.nextLoc, t.method !== "return" && (t.method = "next", t.arg = i), t.delegate = null, g) : o : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, g);
|
|
165
|
-
}
|
|
166
|
-
function X(r) {
|
|
167
|
-
var t = {
|
|
168
|
-
tryLoc: r[0]
|
|
169
|
-
};
|
|
170
|
-
1 in r && (t.catchLoc = r[1]), 2 in r && (t.finallyLoc = r[2], t.afterLoc = r[3]), this.tryEntries.push(t);
|
|
171
|
-
}
|
|
172
|
-
function V(r) {
|
|
173
|
-
var t = r.completion || {};
|
|
174
|
-
t.type = "normal", delete t.arg, r.completion = t;
|
|
175
|
-
}
|
|
176
|
-
function M(r) {
|
|
177
|
-
this.tryEntries = [{
|
|
178
|
-
tryLoc: "root"
|
|
179
|
-
}], r.forEach(X, this), this.reset(!0);
|
|
180
|
-
}
|
|
181
|
-
function R(r) {
|
|
182
|
-
if (r || r === "") {
|
|
183
|
-
var t = r[p];
|
|
184
|
-
if (t) return t.call(r);
|
|
185
|
-
if (typeof r.next == "function") return r;
|
|
186
|
-
if (!isNaN(r.length)) {
|
|
187
|
-
var e = -1, n = function a() {
|
|
188
|
-
for (; ++e < r.length; ) if (u.call(r, e)) return a.value = r[e], a.done = !1, a;
|
|
189
|
-
return a.value = i, a.done = !0, a;
|
|
190
|
-
};
|
|
191
|
-
return n.next = n;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
throw new TypeError(H(r) + " is not iterable");
|
|
195
|
-
}
|
|
196
|
-
return j.prototype = w, l(S, "constructor", {
|
|
197
|
-
value: w,
|
|
198
|
-
configurable: !0
|
|
199
|
-
}), l(w, "constructor", {
|
|
200
|
-
value: j,
|
|
201
|
-
configurable: !0
|
|
202
|
-
}), j.displayName = h(w, d, "GeneratorFunction"), c.isGeneratorFunction = function(r) {
|
|
203
|
-
var t = typeof r == "function" && r.constructor;
|
|
204
|
-
return !!t && (t === j || (t.displayName || t.name) === "GeneratorFunction");
|
|
205
|
-
}, c.mark = function(r) {
|
|
206
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(r, w) : (r.__proto__ = w, h(r, d, "GeneratorFunction")), r.prototype = Object.create(S), r;
|
|
207
|
-
}, c.awrap = function(r) {
|
|
208
|
-
return {
|
|
209
|
-
__await: r
|
|
210
|
-
};
|
|
211
|
-
}, Y(I.prototype), h(I.prototype, x, function() {
|
|
212
|
-
return this;
|
|
213
|
-
}), c.AsyncIterator = I, c.async = function(r, t, e, n, a) {
|
|
214
|
-
a === void 0 && (a = Promise);
|
|
215
|
-
var o = new I(G(r, t, e, n), a);
|
|
216
|
-
return c.isGeneratorFunction(t) ? o : o.next().then(function(s) {
|
|
217
|
-
return s.done ? s.value : o.next();
|
|
218
|
-
});
|
|
219
|
-
}, Y(S), h(S, d, "Generator"), h(S, p, function() {
|
|
220
|
-
return this;
|
|
221
|
-
}), h(S, "toString", function() {
|
|
222
|
-
return "[object Generator]";
|
|
223
|
-
}), c.keys = function(r) {
|
|
224
|
-
var t = Object(r), e = [];
|
|
225
|
-
for (var n in t) e.push(n);
|
|
226
|
-
return e.reverse(), function a() {
|
|
227
|
-
for (; e.length; ) {
|
|
228
|
-
var o = e.pop();
|
|
229
|
-
if (o in t) return a.value = o, a.done = !1, a;
|
|
230
|
-
}
|
|
231
|
-
return a.done = !0, a;
|
|
232
|
-
};
|
|
233
|
-
}, c.values = R, M.prototype = {
|
|
234
|
-
constructor: M,
|
|
235
|
-
reset: function(t) {
|
|
236
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = i, this.done = !1, this.delegate = null, this.method = "next", this.arg = i, this.tryEntries.forEach(V), !t) for (var e in this) e.charAt(0) === "t" && u.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = i);
|
|
237
|
-
},
|
|
238
|
-
stop: function() {
|
|
239
|
-
this.done = !0;
|
|
240
|
-
var t = this.tryEntries[0].completion;
|
|
241
|
-
if (t.type === "throw") throw t.arg;
|
|
242
|
-
return this.rval;
|
|
243
|
-
},
|
|
244
|
-
dispatchException: function(t) {
|
|
245
|
-
if (this.done) throw t;
|
|
246
|
-
var e = this;
|
|
247
|
-
function n(_, b) {
|
|
248
|
-
return s.type = "throw", s.arg = t, e.next = _, b && (e.method = "next", e.arg = i), !!b;
|
|
249
|
-
}
|
|
250
|
-
for (var a = this.tryEntries.length - 1; a >= 0; --a) {
|
|
251
|
-
var o = this.tryEntries[a], s = o.completion;
|
|
252
|
-
if (o.tryLoc === "root") return n("end");
|
|
253
|
-
if (o.tryLoc <= this.prev) {
|
|
254
|
-
var v = u.call(o, "catchLoc"), y = u.call(o, "finallyLoc");
|
|
255
|
-
if (v && y) {
|
|
256
|
-
if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
|
|
257
|
-
if (this.prev < o.finallyLoc) return n(o.finallyLoc);
|
|
258
|
-
} else if (v) {
|
|
259
|
-
if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
|
|
260
|
-
} else {
|
|
261
|
-
if (!y) throw Error("try statement without catch or finally");
|
|
262
|
-
if (this.prev < o.finallyLoc) return n(o.finallyLoc);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
abrupt: function(t, e) {
|
|
268
|
-
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
|
|
269
|
-
var a = this.tryEntries[n];
|
|
270
|
-
if (a.tryLoc <= this.prev && u.call(a, "finallyLoc") && this.prev < a.finallyLoc) {
|
|
271
|
-
var o = a;
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
o && (t === "break" || t === "continue") && o.tryLoc <= e && e <= o.finallyLoc && (o = null);
|
|
276
|
-
var s = o ? o.completion : {};
|
|
277
|
-
return s.type = t, s.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, g) : this.complete(s);
|
|
278
|
-
},
|
|
279
|
-
complete: function(t, e) {
|
|
280
|
-
if (t.type === "throw") throw t.arg;
|
|
281
|
-
return t.type === "break" || t.type === "continue" ? this.next = t.arg : t.type === "return" ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : t.type === "normal" && e && (this.next = e), g;
|
|
282
|
-
},
|
|
283
|
-
finish: function(t) {
|
|
284
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
285
|
-
var n = this.tryEntries[e];
|
|
286
|
-
if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), V(n), g;
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
catch: function(t) {
|
|
290
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
291
|
-
var n = this.tryEntries[e];
|
|
292
|
-
if (n.tryLoc === t) {
|
|
293
|
-
var a = n.completion;
|
|
294
|
-
if (a.type === "throw") {
|
|
295
|
-
var o = a.arg;
|
|
296
|
-
V(n);
|
|
297
|
-
}
|
|
298
|
-
return o;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
throw Error("illegal catch attempt");
|
|
302
|
-
},
|
|
303
|
-
delegateYield: function(t, e, n) {
|
|
304
|
-
return this.delegate = {
|
|
305
|
-
iterator: R(t),
|
|
306
|
-
resultName: e,
|
|
307
|
-
nextLoc: n
|
|
308
|
-
}, this.method === "next" && (this.arg = i), g;
|
|
309
|
-
}
|
|
310
|
-
}, c;
|
|
311
|
-
}
|
|
312
|
-
function K(i, c, f, u, l, m, p) {
|
|
313
|
-
try {
|
|
314
|
-
var x = i[m](p), d = x.value;
|
|
315
|
-
} catch (h) {
|
|
316
|
-
return void f(h);
|
|
317
|
-
}
|
|
318
|
-
x.done ? c(d) : Promise.resolve(d).then(u, l);
|
|
319
|
-
}
|
|
320
|
-
function at(i) {
|
|
321
|
-
return function() {
|
|
322
|
-
var c = this, f = arguments;
|
|
323
|
-
return new Promise(function(u, l) {
|
|
324
|
-
var m = i.apply(c, f);
|
|
325
|
-
function p(d) {
|
|
326
|
-
K(m, u, l, p, x, "next", d);
|
|
327
|
-
}
|
|
328
|
-
function x(d) {
|
|
329
|
-
K(m, u, l, p, x, "throw", d);
|
|
330
|
-
}
|
|
331
|
-
p(void 0);
|
|
332
|
-
});
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
function it(i, c) {
|
|
336
|
-
var f = Object.assign({}, i);
|
|
337
|
-
return Array.isArray(c) && c.forEach(function(u) {
|
|
338
|
-
delete f[u];
|
|
339
|
-
}), f;
|
|
340
|
-
}
|
|
341
|
-
const ut = function(i) {
|
|
342
|
-
if (!i)
|
|
343
|
-
return !1;
|
|
344
|
-
if (i instanceof Element) {
|
|
345
|
-
if (i.offsetParent)
|
|
346
|
-
return !0;
|
|
347
|
-
if (i.getBBox) {
|
|
348
|
-
var c = i.getBBox(), f = c.width, u = c.height;
|
|
349
|
-
if (f || u)
|
|
350
|
-
return !0;
|
|
351
|
-
}
|
|
352
|
-
if (i.getBoundingClientRect) {
|
|
353
|
-
var l = i.getBoundingClientRect(), m = l.width, p = l.height;
|
|
354
|
-
if (m || p)
|
|
355
|
-
return !0;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
return !1;
|
|
359
|
-
};
|
|
360
|
-
export {
|
|
361
|
-
at as _,
|
|
362
|
-
tt as a,
|
|
363
|
-
ut as i,
|
|
364
|
-
it as o,
|
|
365
|
-
J as t,
|
|
366
|
-
ot as u
|
|
367
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
interface ThemeProviderProps {
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
isDarkMode?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ThemeProvider: ({ children, isDarkMode, }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export declare const useBreakpoint: () => "wide" | "medium" | "narrow";
|
|
9
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as m, useState as w, useEffect as p, useContext as c } from "react";
|
|
3
|
-
import { o as u } from "../styled-components.browser.esm-CZ1XM4o4.js";
|
|
4
|
-
import { darkTheme as f, lightTheme as h } from "../styles/theme/genesis-theme.js";
|
|
5
|
-
const n = m("Wide"), B = ({
|
|
6
|
-
children: s,
|
|
7
|
-
isDarkMode: d = !1
|
|
8
|
-
}) => {
|
|
9
|
-
const [a, e] = w("wide"), t = d ? f : h;
|
|
10
|
-
return p(() => {
|
|
11
|
-
const r = () => {
|
|
12
|
-
const i = window.innerWidth;
|
|
13
|
-
i >= t.breakpoints.extra_wide ? e("extra_wide") : i >= t.breakpoints.wide ? e("wide") : i >= t.breakpoints.medium ? e("medium") : e("narrow");
|
|
14
|
-
};
|
|
15
|
-
return window.addEventListener("resize", r), r(), () => window.removeEventListener("resize", r);
|
|
16
|
-
}, []), /* @__PURE__ */ o(n.Provider, { value: a, children: /* @__PURE__ */ o(u, { theme: t, children: s }) });
|
|
17
|
-
}, C = () => c(n);
|
|
18
|
-
export {
|
|
19
|
-
B as ThemeProvider,
|
|
20
|
-
C as useBreakpoint
|
|
21
|
-
};
|