@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
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../../Avatar/styles.js";
|
|
3
|
+
import r from "../../Badge/Badge.js";
|
|
4
|
+
import "../../Breadcrumb/styles.js";
|
|
5
|
+
import "../../../providers/BreakpointThemeProvider.js";
|
|
6
|
+
import "../../../Typography-DqI7RslA.js";
|
|
7
|
+
import "../../Button/styles.js";
|
|
8
|
+
import "../../Card/styles.js";
|
|
9
|
+
import "../../Checkbox/styles.js";
|
|
10
|
+
import d from "react";
|
|
11
|
+
import "../../ErrorBoundaryFallback/styles.js";
|
|
12
|
+
import "../../Input/styles.js";
|
|
13
|
+
import "../../Layout/Content/styles.js";
|
|
14
|
+
import "../../Message/styles.js";
|
|
15
|
+
import "../../Notification/NotificationBadge/styles.js";
|
|
16
|
+
import "../../Notification/styles.js";
|
|
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";
|
|
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";
|
|
29
|
+
import "../../Toast/styles.js";
|
|
30
|
+
import "../../Tooltip/styles.js";
|
|
31
|
+
import "../../Typography/styles.js";
|
|
32
|
+
const a = (e) => e && e.replace(/([A-Z])/g, " $1").replace(/^./, (s) => s.toUpperCase()), T = [
|
|
33
|
+
{
|
|
34
|
+
key: "number",
|
|
35
|
+
title: "Number",
|
|
36
|
+
dataIndex: "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
key: "timeslot",
|
|
40
|
+
title: "Timeslot",
|
|
41
|
+
dataIndex: "timerange"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "status",
|
|
45
|
+
title: "Status",
|
|
46
|
+
dataIndex: "status",
|
|
47
|
+
render: (e) => {
|
|
48
|
+
const s = {
|
|
49
|
+
in_progress: "warning",
|
|
50
|
+
scheduled: "generic",
|
|
51
|
+
completed: "success"
|
|
52
|
+
}, t = e === "in_progress" ? "in progress" : e;
|
|
53
|
+
return d.createElement(r, {
|
|
54
|
+
label: a(t),
|
|
55
|
+
state: s[e]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: "address",
|
|
61
|
+
title: "Address",
|
|
62
|
+
render: (e) => {
|
|
63
|
+
const {
|
|
64
|
+
address: { nickname: s, address: t }
|
|
65
|
+
} = e;
|
|
66
|
+
return s ? `${s} (${t})` : t;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: "Type",
|
|
71
|
+
dataIndex: "job_subtype",
|
|
72
|
+
render: (e) => {
|
|
73
|
+
const s = {
|
|
74
|
+
delivery: "info",
|
|
75
|
+
pickup: "success"
|
|
76
|
+
};
|
|
77
|
+
return d.createElement(r, {
|
|
78
|
+
label: a(e),
|
|
79
|
+
state: s[e]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
], $ = {
|
|
84
|
+
appointments: [
|
|
85
|
+
{
|
|
86
|
+
id: "1",
|
|
87
|
+
number: "1",
|
|
88
|
+
timerange: "9:00 AM - 10:00 AM",
|
|
89
|
+
status: "in_progress",
|
|
90
|
+
address: {
|
|
91
|
+
nickname: "Home",
|
|
92
|
+
address: "123 Main St"
|
|
93
|
+
},
|
|
94
|
+
job_subtype: "delivery"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "2",
|
|
98
|
+
number: "2",
|
|
99
|
+
timerange: "10:00 AM - 11:00 AM",
|
|
100
|
+
status: "scheduled",
|
|
101
|
+
address: {
|
|
102
|
+
nickname: "Work",
|
|
103
|
+
address: "456 Elm St"
|
|
104
|
+
},
|
|
105
|
+
job_subtype: "pickup"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "3",
|
|
109
|
+
number: "3",
|
|
110
|
+
timerange: "11:00 AM - 12:00 PM",
|
|
111
|
+
status: "scheduled",
|
|
112
|
+
address: {
|
|
113
|
+
nickname: "Store",
|
|
114
|
+
address: "789 Oak St"
|
|
115
|
+
},
|
|
116
|
+
job_subtype: "delivery"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: "4",
|
|
120
|
+
number: "4",
|
|
121
|
+
timerange: "1:00 PM - 2:00 PM",
|
|
122
|
+
status: "scheduled",
|
|
123
|
+
address: {
|
|
124
|
+
nickname: "Office",
|
|
125
|
+
address: "321 Pine St"
|
|
126
|
+
},
|
|
127
|
+
job_subtype: "pickup"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "5",
|
|
131
|
+
number: "5",
|
|
132
|
+
timerange: "2:00 PM - 3:00 PM",
|
|
133
|
+
status: "scheduled",
|
|
134
|
+
address: {
|
|
135
|
+
nickname: "Library",
|
|
136
|
+
address: "555 Book Lane"
|
|
137
|
+
},
|
|
138
|
+
job_subtype: "delivery"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: "6",
|
|
142
|
+
number: "6",
|
|
143
|
+
timerange: "3:00 PM - 4:00 PM",
|
|
144
|
+
status: "scheduled",
|
|
145
|
+
address: {
|
|
146
|
+
nickname: "Gym",
|
|
147
|
+
address: "777 Fitness Ave"
|
|
148
|
+
},
|
|
149
|
+
job_subtype: "pickup"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
id: "7",
|
|
153
|
+
number: "7",
|
|
154
|
+
timerange: "4:00 PM - 5:00 PM",
|
|
155
|
+
status: "scheduled",
|
|
156
|
+
address: {
|
|
157
|
+
nickname: "Mall",
|
|
158
|
+
address: "888 Shopping Center"
|
|
159
|
+
},
|
|
160
|
+
job_subtype: "delivery"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
id: "8",
|
|
164
|
+
number: "8",
|
|
165
|
+
timerange: "9:00 AM - 10:00 AM",
|
|
166
|
+
status: "completed",
|
|
167
|
+
address: {
|
|
168
|
+
nickname: "School",
|
|
169
|
+
address: "999 Education Rd"
|
|
170
|
+
},
|
|
171
|
+
job_subtype: "pickup"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
id: "9",
|
|
175
|
+
number: "9",
|
|
176
|
+
timerange: "10:00 AM - 11:00 AM",
|
|
177
|
+
status: "scheduled",
|
|
178
|
+
address: {
|
|
179
|
+
nickname: "Restaurant",
|
|
180
|
+
address: "111 Food Court"
|
|
181
|
+
},
|
|
182
|
+
job_subtype: "delivery"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
id: "10",
|
|
186
|
+
number: "10",
|
|
187
|
+
timerange: "11:00 AM - 12:00 PM",
|
|
188
|
+
status: "scheduled",
|
|
189
|
+
address: {
|
|
190
|
+
nickname: "Park",
|
|
191
|
+
address: "222 Green Ave"
|
|
192
|
+
},
|
|
193
|
+
job_subtype: "pickup"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "11",
|
|
197
|
+
number: "11",
|
|
198
|
+
timerange: "1:00 PM - 2:00 PM",
|
|
199
|
+
status: "scheduled",
|
|
200
|
+
address: {
|
|
201
|
+
nickname: "Beach",
|
|
202
|
+
address: "333 Shore Dr"
|
|
203
|
+
},
|
|
204
|
+
job_subtype: "delivery"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
id: "12",
|
|
208
|
+
number: "12",
|
|
209
|
+
timerange: "2:00 PM - 3:00 PM",
|
|
210
|
+
status: "scheduled",
|
|
211
|
+
address: {
|
|
212
|
+
nickname: "Hotel",
|
|
213
|
+
address: "444 Stay Blvd"
|
|
214
|
+
},
|
|
215
|
+
job_subtype: "pickup"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
id: "13",
|
|
219
|
+
number: "13",
|
|
220
|
+
timerange: "3:00 PM - 4:00 PM",
|
|
221
|
+
status: "scheduled",
|
|
222
|
+
address: {
|
|
223
|
+
nickname: "Airport",
|
|
224
|
+
address: "666 Flight Way"
|
|
225
|
+
},
|
|
226
|
+
job_subtype: "delivery"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
id: "14",
|
|
230
|
+
number: "14",
|
|
231
|
+
timerange: "4:00 PM - 5:00 PM",
|
|
232
|
+
status: "cancelled",
|
|
233
|
+
address: {
|
|
234
|
+
nickname: "Stadium",
|
|
235
|
+
address: "777 Sports Complex"
|
|
236
|
+
},
|
|
237
|
+
job_subtype: "pickup"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "15",
|
|
241
|
+
number: "15",
|
|
242
|
+
timerange: "9:00 AM - 10:00 AM",
|
|
243
|
+
status: "scheduled",
|
|
244
|
+
address: {
|
|
245
|
+
nickname: "Theater",
|
|
246
|
+
address: "888 Show Ave"
|
|
247
|
+
},
|
|
248
|
+
job_subtype: "delivery"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
id: "16",
|
|
252
|
+
number: "16",
|
|
253
|
+
timerange: "10:00 AM - 11:00 AM",
|
|
254
|
+
status: "scheduled",
|
|
255
|
+
address: {
|
|
256
|
+
nickname: "Museum",
|
|
257
|
+
address: "999 History Lane"
|
|
258
|
+
},
|
|
259
|
+
job_subtype: "pickup"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: "17",
|
|
263
|
+
number: "17",
|
|
264
|
+
timerange: "11:00 AM - 12:00 PM",
|
|
265
|
+
status: "scheduled",
|
|
266
|
+
address: {
|
|
267
|
+
nickname: "Zoo",
|
|
268
|
+
address: "123 Animal Park"
|
|
269
|
+
},
|
|
270
|
+
job_subtype: "delivery"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
id: "18",
|
|
274
|
+
number: "18",
|
|
275
|
+
timerange: "1:00 PM - 2:00 PM",
|
|
276
|
+
status: "scheduled",
|
|
277
|
+
address: {
|
|
278
|
+
nickname: "Bank",
|
|
279
|
+
address: "456 Money St"
|
|
280
|
+
},
|
|
281
|
+
job_subtype: "pickup"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
id: "19",
|
|
285
|
+
number: "19",
|
|
286
|
+
timerange: "2:00 PM - 3:00 PM",
|
|
287
|
+
status: "scheduled",
|
|
288
|
+
address: {
|
|
289
|
+
nickname: "Post Office",
|
|
290
|
+
address: "789 Mail Road"
|
|
291
|
+
},
|
|
292
|
+
job_subtype: "delivery"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
id: "20",
|
|
296
|
+
number: "20",
|
|
297
|
+
timerange: "3:00 PM - 4:00 PM",
|
|
298
|
+
status: "scheduled",
|
|
299
|
+
address: {
|
|
300
|
+
nickname: "Church",
|
|
301
|
+
address: "321 Faith Street"
|
|
302
|
+
},
|
|
303
|
+
job_subtype: "pickup"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
id: "21",
|
|
307
|
+
number: "21",
|
|
308
|
+
timerange: "4:00 PM - 5:00 PM",
|
|
309
|
+
status: "scheduled",
|
|
310
|
+
address: {
|
|
311
|
+
nickname: "Pharmacy",
|
|
312
|
+
address: "654 Health Ave"
|
|
313
|
+
},
|
|
314
|
+
job_subtype: "delivery"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
};
|
|
318
|
+
export {
|
|
319
|
+
T as mockColumns,
|
|
320
|
+
$ as mockDataSource
|
|
321
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { a as l } from "../../../setup-CKu7-AfI.js";
|
|
3
|
+
import p from "../Table.js";
|
|
4
|
+
import { mockDataSource as r, mockColumns as c } from "../__mocks__/table-mocks.js";
|
|
5
|
+
describe("<Table />", () => {
|
|
6
|
+
let a;
|
|
7
|
+
beforeEach(() => {
|
|
8
|
+
a = {
|
|
9
|
+
columns: c,
|
|
10
|
+
dataSource: r.appointments,
|
|
11
|
+
rowKey: "id"
|
|
12
|
+
// Add rowKey for unique identification
|
|
13
|
+
};
|
|
14
|
+
});
|
|
15
|
+
const n = () => l(/* @__PURE__ */ s(p, { ...a }));
|
|
16
|
+
it("should have data in the mock source", () => {
|
|
17
|
+
expect(r.appointments).toBeDefined(), expect(r.appointments.length).toBeGreaterThan(0);
|
|
18
|
+
}), it("should render table with data", () => {
|
|
19
|
+
const { container: t } = n(), e = t.querySelector("table");
|
|
20
|
+
expect(e).toBeInTheDocument();
|
|
21
|
+
const o = t.querySelectorAll("tbody tr");
|
|
22
|
+
expect(o.length).toBeGreaterThan(0);
|
|
23
|
+
}), it("should render table headers correctly", () => {
|
|
24
|
+
const { getAllByRole: t } = n(), e = t("columnheader");
|
|
25
|
+
expect(e).toHaveLength(c.length), expect(e[0]).toHaveTextContent("Number"), expect(e[1]).toHaveTextContent("Timeslot"), expect(e[2]).toHaveTextContent("Status"), expect(e[3]).toHaveTextContent("Address");
|
|
26
|
+
}), it("should render table data correctly", () => {
|
|
27
|
+
const { getAllByRole: t } = n(), e = t("cell"), o = r.appointments[0];
|
|
28
|
+
expect(e[0]).toHaveTextContent(o.number), expect(e[1]).toHaveTextContent(o.timerange), expect(e[2]).toHaveTextContent("In progress"), expect(e[3]).toHaveTextContent(o.address.address);
|
|
29
|
+
}), it("should handle empty data source", () => {
|
|
30
|
+
a.dataSource = [];
|
|
31
|
+
const { container: t } = n(), e = t.querySelector(".ant-table-placeholder");
|
|
32
|
+
expect(e).toBeInTheDocument(), expect(e).toHaveTextContent("No Data");
|
|
33
|
+
});
|
|
34
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface TabsProps {
|
|
2
|
+
onChange: (id: string) => void;
|
|
3
|
+
selectedId: string;
|
|
4
|
+
items: {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}[];
|
|
8
|
+
}
|
|
9
|
+
declare const Tabs: ({ items, onChange, selectedId }: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Tabs;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Tabs as c } from "./styles.js";
|
|
3
|
+
const n = ({ items: t, onChange: a, selectedId: e }) => {
|
|
4
|
+
const s = t.map(
|
|
5
|
+
({ id: r, label: m }) => ({
|
|
6
|
+
key: r,
|
|
7
|
+
label: m
|
|
8
|
+
})
|
|
9
|
+
);
|
|
10
|
+
return /* @__PURE__ */ o(
|
|
11
|
+
c,
|
|
12
|
+
{
|
|
13
|
+
items: s,
|
|
14
|
+
activeKey: e,
|
|
15
|
+
onChange: a,
|
|
16
|
+
type: "card",
|
|
17
|
+
state: "active"
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
n as default
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Tabs } from '../Tabs';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Tabs>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Tabs>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const UnassignedAssigned: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { f as s, a as b } from "../../../setup-CKu7-AfI.js";
|
|
3
|
+
import l from "../Tabs.js";
|
|
4
|
+
describe("<Tabs />", () => {
|
|
5
|
+
const o = vi.fn(), a = {
|
|
6
|
+
selectedId: "tab1",
|
|
7
|
+
onChange: o,
|
|
8
|
+
items: [
|
|
9
|
+
{
|
|
10
|
+
id: "tab1",
|
|
11
|
+
label: "Tab 1"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "tab2",
|
|
15
|
+
label: "Tab 2"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}, t = (e = a) => b(/* @__PURE__ */ n(l, { ...e }));
|
|
19
|
+
beforeEach(() => {
|
|
20
|
+
vi.clearAllMocks();
|
|
21
|
+
}), it("renders all tab labels", () => {
|
|
22
|
+
const { getByText: e } = t();
|
|
23
|
+
expect(e("Tab 1")).toBeInTheDocument(), expect(e("Tab 2")).toBeInTheDocument();
|
|
24
|
+
}), it("shows the selected tab content", () => {
|
|
25
|
+
const { getByText: e } = t();
|
|
26
|
+
expect(e("Tab 1")).toBeInTheDocument();
|
|
27
|
+
}), it("calls onChange when clicking a different tab", () => {
|
|
28
|
+
const { getByText: e } = t();
|
|
29
|
+
s.click(e("Tab 2")), expect(o).toHaveBeenCalledWith("tab2");
|
|
30
|
+
}), it("shows the correct active tab based on selectedId", () => {
|
|
31
|
+
const e = {
|
|
32
|
+
...a,
|
|
33
|
+
selectedId: "tab2"
|
|
34
|
+
}, { getByText: c } = t(e);
|
|
35
|
+
expect(c("Tab 2")).toBeInTheDocument();
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
|
|
2
|
+
|
|
3
|
+
interface StyledTabsProps {
|
|
4
|
+
theme?: GenesisTheme;
|
|
5
|
+
state: "active" | "hovered" | "focussed" | "disabled";
|
|
6
|
+
type: "card";
|
|
7
|
+
}
|
|
8
|
+
export declare const getGenesisClass: ({ colors, borderRadius, sizing }: GenesisTheme, type?: string, state?: string) => string;
|
|
9
|
+
export declare const Tabs: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('antd').TabsProps, StyledTabsProps>> & string & Omit<import('react').FC<import('antd').TabsProps> & {
|
|
10
|
+
TabPane: import('react').FC<import('antd').TabPaneProps>;
|
|
11
|
+
}, keyof import('react').Component<any, {}, any>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { d as r } from "../../styled-components.browser.esm-CZ1XM4o4.js";
|
|
2
|
+
import { T as n } from "../../index-BTGF--50.js";
|
|
3
|
+
const i = ({ colors: t, borderRadius: e, sizing: a }, o = "primary", b = "active") => `
|
|
4
|
+
&.ant-tabs {
|
|
5
|
+
background: #F4F4F4;
|
|
6
|
+
|
|
7
|
+
.ant-tabs-nav {
|
|
8
|
+
margin-bottom: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Fix for tab navigation list to ensure no gaps */
|
|
12
|
+
.ant-tabs-nav-list {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
border-radius: 0;
|
|
15
|
+
display: flex;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ant-tabs-tab {
|
|
20
|
+
background: #EEEEEE;
|
|
21
|
+
margin: 0; /* Important: no margin between tabs */
|
|
22
|
+
padding: 8px 16px;
|
|
23
|
+
border-radius: 0 !important;
|
|
24
|
+
float: none; /* Prevent default float behavior */
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
/* Use single side borders to prevent double borders */
|
|
28
|
+
border-left: 1px solid ${t.surface.border};
|
|
29
|
+
|
|
30
|
+
margin-right: -2px;
|
|
31
|
+
user-select: none;
|
|
32
|
+
color: ${t.onsurface.copy};
|
|
33
|
+
font-family: Inter;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
line-height: 14px;
|
|
38
|
+
display: flex;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
background: ${t.interactive.utility.hover};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
border-top: 0px;
|
|
45
|
+
|
|
46
|
+
&:first-child {
|
|
47
|
+
border-radius: 0 !important;
|
|
48
|
+
border-left: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Only apply right border to the last tab */
|
|
52
|
+
&:last-child, &.ant-tabs-tab-btn:last-child {
|
|
53
|
+
border-right: 3px solid ${t.surface.border};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ant-tabs-tab-btn {
|
|
57
|
+
color: #3E3E3E;
|
|
58
|
+
user-select: none;
|
|
59
|
+
background: transparent;
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
background: ${t.interactive.utility.hover};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
background: transparent;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:active {
|
|
70
|
+
background: transparent;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.ant-tabs-tab-active {
|
|
75
|
+
background: ${t.interactive.utility.active};
|
|
76
|
+
user-select: none;
|
|
77
|
+
|
|
78
|
+
.ant-tabs-tab-btn {
|
|
79
|
+
color: #222222;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:hover {
|
|
83
|
+
background: ${t.interactive.utility.hover};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:focus {
|
|
87
|
+
background: ${t.interactive.utility.active};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:active {
|
|
91
|
+
background: ${t.interactive.utility.active};
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
`, l = r(n)`
|
|
97
|
+
${({ theme: t, type: e, state: a }) => i(t, e, a)}
|
|
98
|
+
`;
|
|
99
|
+
export {
|
|
100
|
+
l as Tabs,
|
|
101
|
+
i as getGenesisClass
|
|
102
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TileProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
dataTestId?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
isHorizontal?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const Tile: ({ children, dataTestId, className, style, isHorizontal, }: TileProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Tile;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { Tile as s } from "./styles.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
children: t,
|
|
5
|
+
dataTestId: e,
|
|
6
|
+
className: i,
|
|
7
|
+
style: o,
|
|
8
|
+
isHorizontal: r = !1
|
|
9
|
+
}) => /* @__PURE__ */ a(
|
|
10
|
+
s,
|
|
11
|
+
{
|
|
12
|
+
className: i,
|
|
13
|
+
"data-testid": e,
|
|
14
|
+
style: o,
|
|
15
|
+
$isHorizontal: r,
|
|
16
|
+
children: t
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
export {
|
|
20
|
+
m as default
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { a as c } from "../../../setup-CKu7-AfI.js";
|
|
3
|
+
import a from "../Tile.js";
|
|
4
|
+
describe("<Tile />", () => {
|
|
5
|
+
let t;
|
|
6
|
+
beforeEach(() => {
|
|
7
|
+
t = {
|
|
8
|
+
children: "Test Content",
|
|
9
|
+
dataTestId: "tile-test",
|
|
10
|
+
className: "custom-tile"
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
const s = () => c(/* @__PURE__ */ n(a, { ...t }));
|
|
14
|
+
it("should render with correct content", () => {
|
|
15
|
+
const { getByTestId: o } = s(), e = o(t.dataTestId);
|
|
16
|
+
expect(e).toBeInTheDocument(), expect(e).toHaveTextContent("Test Content");
|
|
17
|
+
}), it("should apply custom className", () => {
|
|
18
|
+
const { getByTestId: o } = s(), e = o(t.dataTestId);
|
|
19
|
+
expect(e).toHaveClass("custom-tile");
|
|
20
|
+
});
|
|
21
|
+
});
|