lerelais-front-library 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/skills/project-structure/SKILL.md +51 -0
- package/.cursor/skills/storybook-react/SKILL.md +60 -0
- package/.cursor/skills/testing-react/SKILL.md +52 -0
- package/README.md +93 -0
- package/index.html +18 -0
- package/package.json +34 -0
- package/src/App.css +49 -0
- package/src/App.tsx +366 -0
- package/src/assets/icons/alert-triangle.svg +7 -0
- package/src/assets/icons/arrow-right.svg +5 -0
- package/src/assets/icons/bell.svg +6 -0
- package/src/assets/icons/chevron-down.svg +5 -0
- package/src/assets/icons/chevron-right.svg +5 -0
- package/src/assets/icons/clock-muted.svg +10 -0
- package/src/assets/icons/clock.svg +11 -0
- package/src/assets/icons/close.svg +5 -0
- package/src/assets/icons/core-camera.svg +5 -0
- package/src/assets/icons/core-check-sm.svg +5 -0
- package/src/assets/icons/core-check-white.svg +5 -0
- package/src/assets/icons/core-check.svg +5 -0
- package/src/assets/icons/core-chevron.svg +5 -0
- package/src/assets/icons/core-dot.svg +3 -0
- package/src/assets/icons/core-lock-form.svg +5 -0
- package/src/assets/icons/core-lock.svg +5 -0
- package/src/assets/icons/core-map-pin.svg +5 -0
- package/src/assets/icons/core-package-lg.svg +5 -0
- package/src/assets/icons/core-package.svg +5 -0
- package/src/assets/icons/core-pin-info.svg +6 -0
- package/src/assets/icons/core-pin-value.svg +5 -0
- package/src/assets/icons/core-pin-white.svg +5 -0
- package/src/assets/icons/core-plus.svg +5 -0
- package/src/assets/icons/core-search-dark.svg +5 -0
- package/src/assets/icons/core-search.svg +5 -0
- package/src/assets/icons/core-store.svg +9 -0
- package/src/assets/icons/core-x.svg +5 -0
- package/src/assets/icons/heart.svg +5 -0
- package/src/assets/icons/logout.svg +7 -0
- package/src/assets/icons/map-pin.svg +5 -0
- package/src/assets/icons/package-read.svg +8 -0
- package/src/assets/icons/package-white.svg +8 -0
- package/src/assets/icons/package.svg +8 -0
- package/src/assets/icons/plus.svg +6 -0
- package/src/assets/icons/settings.svg +6 -0
- package/src/assets/icons/switch-off.svg +19 -0
- package/src/assets/icons/switch-on.svg +19 -0
- package/src/assets/icons/unread-dot.svg +3 -0
- package/src/assets/icons/upload-cloud.svg +5 -0
- package/src/assets/icons/user.svg +6 -0
- package/src/assets/icons.ts +41 -0
- package/src/components/Accordion/Accordion.module.css +34 -0
- package/src/components/Accordion/Accordion.test.tsx +20 -0
- package/src/components/Accordion/Accordion.tsx +38 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/ActionCard/ActionCard.module.css +50 -0
- package/src/components/ActionCard/ActionCard.test.tsx +15 -0
- package/src/components/ActionCard/ActionCard.tsx +33 -0
- package/src/components/ActionCard/index.ts +1 -0
- package/src/components/Alert/Alert.module.css +47 -0
- package/src/components/Alert/Alert.test.tsx +14 -0
- package/src/components/Alert/Alert.tsx +27 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Avatar/Avatar.module.css +37 -0
- package/src/components/Avatar/Avatar.test.tsx +9 -0
- package/src/components/Avatar/Avatar.tsx +18 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Badge/Badge.module.css +37 -0
- package/src/components/Badge/Badge.test.tsx +14 -0
- package/src/components/Badge/Badge.tsx +21 -0
- package/src/components/Badge/index.ts +1 -0
- package/src/components/BarChart/BarChart.module.css +57 -0
- package/src/components/BarChart/BarChart.test.tsx +18 -0
- package/src/components/BarChart/BarChart.tsx +47 -0
- package/src/components/BarChart/index.ts +1 -0
- package/src/components/BenefitsCard/BenefitsCard.module.css +44 -0
- package/src/components/BenefitsCard/BenefitsCard.test.tsx +10 -0
- package/src/components/BenefitsCard/BenefitsCard.tsx +33 -0
- package/src/components/BenefitsCard/index.ts +1 -0
- package/src/components/BottomNavItem/BottomNavItem.module.css +24 -0
- package/src/components/BottomNavItem/BottomNavItem.test.tsx +20 -0
- package/src/components/BottomNavItem/BottomNavItem.tsx +23 -0
- package/src/components/BottomNavItem/index.ts +1 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css +31 -0
- package/src/components/Breadcrumb/Breadcrumb.test.tsx +29 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +36 -0
- package/src/components/Breadcrumb/index.ts +1 -0
- package/src/components/Button/Button.module.css +61 -0
- package/src/components/Button/Button.test.tsx +34 -0
- package/src/components/Button/Button.tsx +24 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.module.css +53 -0
- package/src/components/Checkbox/Checkbox.test.tsx +20 -0
- package/src/components/Checkbox/Checkbox.tsx +20 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/ConfirmModal/ConfirmModal.module.css +69 -0
- package/src/components/ConfirmModal/ConfirmModal.test.tsx +25 -0
- package/src/components/ConfirmModal/ConfirmModal.tsx +50 -0
- package/src/components/ConfirmModal/index.ts +1 -0
- package/src/components/CoreButton/CoreButton.module.css +71 -0
- package/src/components/CoreButton/CoreButton.test.tsx +24 -0
- package/src/components/CoreButton/CoreButton.tsx +27 -0
- package/src/components/CoreButton/index.ts +1 -0
- package/src/components/CoreField/CoreField.module.css +31 -0
- package/src/components/CoreField/CoreField.test.tsx +15 -0
- package/src/components/CoreField/CoreField.tsx +18 -0
- package/src/components/CoreField/index.ts +1 -0
- package/src/components/CoreSelect/CoreSelect.module.css +37 -0
- package/src/components/CoreSelect/CoreSelect.test.tsx +22 -0
- package/src/components/CoreSelect/CoreSelect.tsx +29 -0
- package/src/components/CoreSelect/index.ts +1 -0
- package/src/components/CoreTabs/CoreTabs.module.css +41 -0
- package/src/components/CoreTabs/CoreTabs.test.tsx +18 -0
- package/src/components/CoreTabs/CoreTabs.tsx +67 -0
- package/src/components/CoreTabs/index.ts +1 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.module.css +61 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.test.tsx +37 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.tsx +41 -0
- package/src/components/DashboardParcelRow/index.ts +1 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.module.css +29 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.test.tsx +15 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.tsx +22 -0
- package/src/components/DataFiltersToolbar/index.ts +1 -0
- package/src/components/DataSearchBar/DataSearchBar.module.css +28 -0
- package/src/components/DataSearchBar/DataSearchBar.test.tsx +15 -0
- package/src/components/DataSearchBar/DataSearchBar.tsx +15 -0
- package/src/components/DataSearchBar/index.ts +1 -0
- package/src/components/DataTable/DataTable.module.css +57 -0
- package/src/components/DataTable/DataTable.test.tsx +12 -0
- package/src/components/DataTable/DataTable.tsx +67 -0
- package/src/components/DataTable/index.ts +1 -0
- package/src/components/Divider/Divider.module.css +29 -0
- package/src/components/Divider/Divider.test.tsx +9 -0
- package/src/components/Divider/Divider.tsx +21 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/DropdownMenu/DropdownMenu.module.css +45 -0
- package/src/components/DropdownMenu/DropdownMenu.test.tsx +21 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +45 -0
- package/src/components/DropdownMenu/index.ts +1 -0
- package/src/components/EmptyState/EmptyState.module.css +52 -0
- package/src/components/EmptyState/EmptyState.test.tsx +20 -0
- package/src/components/EmptyState/EmptyState.tsx +33 -0
- package/src/components/EmptyState/index.ts +1 -0
- package/src/components/FaqItem/FaqItem.module.css +47 -0
- package/src/components/FaqItem/FaqItem.test.tsx +14 -0
- package/src/components/FaqItem/FaqItem.tsx +28 -0
- package/src/components/FaqItem/index.ts +1 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.module.css +83 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.test.tsx +37 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.tsx +58 -0
- package/src/components/FavoriteRelayCard/index.ts +1 -0
- package/src/components/FeatureCard/FeatureCard.module.css +62 -0
- package/src/components/FeatureCard/FeatureCard.test.tsx +10 -0
- package/src/components/FeatureCard/FeatureCard.tsx +30 -0
- package/src/components/FeatureCard/index.ts +1 -0
- package/src/components/FileUpload/FileUpload.module.css +41 -0
- package/src/components/FileUpload/FileUpload.test.tsx +22 -0
- package/src/components/FileUpload/FileUpload.tsx +26 -0
- package/src/components/FileUpload/index.ts +1 -0
- package/src/components/FilterPill/FilterPill.module.css +18 -0
- package/src/components/FilterPill/FilterPill.test.tsx +19 -0
- package/src/components/FilterPill/FilterPill.tsx +20 -0
- package/src/components/FilterPill/index.ts +1 -0
- package/src/components/Footer/Footer.module.css +57 -0
- package/src/components/Footer/Footer.test.tsx +10 -0
- package/src/components/Footer/Footer.tsx +63 -0
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Icon/Icon.tsx +20 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/components/InfoRow/InfoRow.module.css +33 -0
- package/src/components/InfoRow/InfoRow.test.tsx +9 -0
- package/src/components/InfoRow/InfoRow.tsx +21 -0
- package/src/components/InfoRow/index.ts +1 -0
- package/src/components/LinkButton/LinkButton.module.css +22 -0
- package/src/components/LinkButton/LinkButton.test.tsx +9 -0
- package/src/components/LinkButton/LinkButton.tsx +17 -0
- package/src/components/LinkButton/index.ts +1 -0
- package/src/components/LocationCard/LocationCard.module.css +61 -0
- package/src/components/LocationCard/LocationCard.test.tsx +9 -0
- package/src/components/LocationCard/LocationCard.tsx +27 -0
- package/src/components/LocationCard/index.ts +1 -0
- package/src/components/Logo/Logo.module.css +30 -0
- package/src/components/Logo/Logo.tsx +18 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/MetricCard/MetricCard.module.css +27 -0
- package/src/components/MetricCard/MetricCard.test.tsx +10 -0
- package/src/components/MetricCard/MetricCard.tsx +19 -0
- package/src/components/MetricCard/index.ts +1 -0
- package/src/components/Navbar/Navbar.module.css +87 -0
- package/src/components/Navbar/Navbar.test.tsx +21 -0
- package/src/components/Navbar/Navbar.tsx +77 -0
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/NotificationItem/NotificationItem.module.css +73 -0
- package/src/components/NotificationItem/NotificationItem.test.tsx +22 -0
- package/src/components/NotificationItem/NotificationItem.tsx +30 -0
- package/src/components/NotificationItem/index.ts +1 -0
- package/src/components/NotificationRow/NotificationRow.module.css +49 -0
- package/src/components/NotificationRow/NotificationRow.test.tsx +15 -0
- package/src/components/NotificationRow/NotificationRow.tsx +26 -0
- package/src/components/NotificationRow/index.ts +1 -0
- package/src/components/OutcomeModal/OutcomeModal.module.css +101 -0
- package/src/components/OutcomeModal/OutcomeModal.test.tsx +15 -0
- package/src/components/OutcomeModal/OutcomeModal.tsx +45 -0
- package/src/components/OutcomeModal/index.ts +1 -0
- package/src/components/Pagination/Pagination.module.css +27 -0
- package/src/components/Pagination/Pagination.test.tsx +25 -0
- package/src/components/Pagination/Pagination.tsx +41 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/ParcelCard/ParcelCard.module.css +34 -0
- package/src/components/ParcelCard/ParcelCard.test.tsx +17 -0
- package/src/components/ParcelCard/ParcelCard.tsx +21 -0
- package/src/components/ParcelCard/index.ts +1 -0
- package/src/components/ParcelRow/ParcelRow.module.css +25 -0
- package/src/components/ParcelRow/ParcelRow.test.tsx +18 -0
- package/src/components/ParcelRow/ParcelRow.tsx +31 -0
- package/src/components/ParcelRow/index.ts +1 -0
- package/src/components/ParcelTimeline/ParcelTimeline.module.css +68 -0
- package/src/components/ParcelTimeline/ParcelTimeline.test.tsx +17 -0
- package/src/components/ParcelTimeline/ParcelTimeline.tsx +33 -0
- package/src/components/ParcelTimeline/index.ts +1 -0
- package/src/components/PhotoUpload/PhotoUpload.module.css +39 -0
- package/src/components/PhotoUpload/PhotoUpload.test.tsx +16 -0
- package/src/components/PhotoUpload/PhotoUpload.tsx +29 -0
- package/src/components/PhotoUpload/index.ts +1 -0
- package/src/components/ProcessBadge/ProcessBadge.module.css +29 -0
- package/src/components/ProcessBadge/ProcessBadge.test.tsx +9 -0
- package/src/components/ProcessBadge/ProcessBadge.tsx +19 -0
- package/src/components/ProcessBadge/index.ts +1 -0
- package/src/components/ProgressBar/ProgressBar.module.css +56 -0
- package/src/components/ProgressBar/ProgressBar.test.tsx +18 -0
- package/src/components/ProgressBar/ProgressBar.tsx +33 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/QrScanner/QrScanner.module.css +50 -0
- package/src/components/QrScanner/QrScanner.test.tsx +20 -0
- package/src/components/QrScanner/QrScanner.tsx +27 -0
- package/src/components/QrScanner/index.ts +1 -0
- package/src/components/QuestionSearch/QuestionSearch.module.css +28 -0
- package/src/components/QuestionSearch/QuestionSearch.test.tsx +15 -0
- package/src/components/QuestionSearch/QuestionSearch.tsx +26 -0
- package/src/components/QuestionSearch/index.ts +1 -0
- package/src/components/QuickActionCard/QuickActionCard.module.css +31 -0
- package/src/components/QuickActionCard/QuickActionCard.test.tsx +20 -0
- package/src/components/QuickActionCard/QuickActionCard.tsx +22 -0
- package/src/components/QuickActionCard/index.ts +1 -0
- package/src/components/Radio/Radio.module.css +53 -0
- package/src/components/Radio/Radio.test.tsx +20 -0
- package/src/components/Radio/Radio.tsx +20 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/RelayCard/RelayCard.module.css +38 -0
- package/src/components/RelayCard/RelayCard.test.tsx +22 -0
- package/src/components/RelayCard/RelayCard.tsx +31 -0
- package/src/components/RelayCard/index.ts +1 -0
- package/src/components/RelayResultCard/RelayResultCard.module.css +82 -0
- package/src/components/RelayResultCard/RelayResultCard.test.tsx +10 -0
- package/src/components/RelayResultCard/RelayResultCard.tsx +34 -0
- package/src/components/RelayResultCard/index.ts +1 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.module.css +102 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.test.tsx +16 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.tsx +45 -0
- package/src/components/ResetPasswordCard/index.ts +1 -0
- package/src/components/SearchBar/SearchBar.module.css +33 -0
- package/src/components/SearchBar/SearchBar.test.tsx +19 -0
- package/src/components/SearchBar/SearchBar.tsx +18 -0
- package/src/components/SearchBar/index.ts +1 -0
- package/src/components/Select/Select.module.css +64 -0
- package/src/components/Select/Select.test.tsx +24 -0
- package/src/components/Select/Select.tsx +60 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/ShipmentStatus/ShipmentStatus.module.css +41 -0
- package/src/components/ShipmentStatus/ShipmentStatus.test.tsx +14 -0
- package/src/components/ShipmentStatus/ShipmentStatus.tsx +52 -0
- package/src/components/ShipmentStatus/index.ts +1 -0
- package/src/components/Sidebar/Sidebar.module.css +79 -0
- package/src/components/Sidebar/Sidebar.test.tsx +21 -0
- package/src/components/Sidebar/Sidebar.tsx +98 -0
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/SidebarNavItem/SidebarNavItem.module.css +21 -0
- package/src/components/SidebarNavItem/SidebarNavItem.test.tsx +20 -0
- package/src/components/SidebarNavItem/SidebarNavItem.tsx +22 -0
- package/src/components/SidebarNavItem/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.module.css +22 -0
- package/src/components/Skeleton/Skeleton.test.tsx +9 -0
- package/src/components/Skeleton/Skeleton.tsx +13 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/StatCard/StatCard.module.css +22 -0
- package/src/components/StatCard/StatCard.test.tsx +9 -0
- package/src/components/StatCard/StatCard.tsx +19 -0
- package/src/components/StatCard/index.ts +1 -0
- package/src/components/StatusSummary/StatusSummary.module.css +43 -0
- package/src/components/StatusSummary/StatusSummary.test.tsx +9 -0
- package/src/components/StatusSummary/StatusSummary.tsx +32 -0
- package/src/components/StatusSummary/index.ts +1 -0
- package/src/components/StepCard/StepCard.module.css +48 -0
- package/src/components/StepCard/StepCard.test.tsx +9 -0
- package/src/components/StepCard/StepCard.tsx +27 -0
- package/src/components/StepCard/index.ts +1 -0
- package/src/components/Stepper/Stepper.module.css +66 -0
- package/src/components/Stepper/Stepper.test.tsx +20 -0
- package/src/components/Stepper/Stepper.tsx +39 -0
- package/src/components/Stepper/index.ts +1 -0
- package/src/components/StepsList/StepsList.module.css +35 -0
- package/src/components/StepsList/StepsList.test.tsx +10 -0
- package/src/components/StepsList/StepsList.tsx +24 -0
- package/src/components/StepsList/index.ts +1 -0
- package/src/components/SuccessFeedback/SuccessFeedback.module.css +42 -0
- package/src/components/SuccessFeedback/SuccessFeedback.test.tsx +9 -0
- package/src/components/SuccessFeedback/SuccessFeedback.tsx +21 -0
- package/src/components/SuccessFeedback/index.ts +1 -0
- package/src/components/Switch/Switch.module.css +57 -0
- package/src/components/Switch/Switch.test.tsx +20 -0
- package/src/components/Switch/Switch.tsx +22 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Tabs/Tabs.module.css +26 -0
- package/src/components/Tabs/Tabs.test.tsx +34 -0
- package/src/components/Tabs/Tabs.tsx +38 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tag/Tag.module.css +39 -0
- package/src/components/Tag/Tag.test.tsx +24 -0
- package/src/components/Tag/Tag.tsx +25 -0
- package/src/components/Tag/index.ts +1 -0
- package/src/components/TextField/TextField.module.css +55 -0
- package/src/components/TextField/TextField.test.tsx +24 -0
- package/src/components/TextField/TextField.tsx +37 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Toast/Toast.module.css +72 -0
- package/src/components/Toast/Toast.test.tsx +20 -0
- package/src/components/Toast/Toast.tsx +32 -0
- package/src/components/Toast/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.module.css +37 -0
- package/src/components/Tooltip/Tooltip.test.tsx +22 -0
- package/src/components/Tooltip/Tooltip.tsx +20 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/TrackingBadge/TrackingBadge.module.css +10 -0
- package/src/components/TrackingBadge/TrackingBadge.test.tsx +9 -0
- package/src/components/TrackingBadge/TrackingBadge.tsx +9 -0
- package/src/components/TrackingBadge/index.ts +1 -0
- package/src/components/TrackingCard/TrackingCard.module.css +128 -0
- package/src/components/TrackingCard/TrackingCard.test.tsx +10 -0
- package/src/components/TrackingCard/TrackingCard.tsx +58 -0
- package/src/components/TrackingCard/index.ts +1 -0
- package/src/components/TrackingSearch/TrackingSearch.module.css +35 -0
- package/src/components/TrackingSearch/TrackingSearch.test.tsx +15 -0
- package/src/components/TrackingSearch/TrackingSearch.tsx +24 -0
- package/src/components/TrackingSearch/index.ts +1 -0
- package/src/components/ValueCard/ValueCard.module.css +38 -0
- package/src/components/ValueCard/ValueCard.test.tsx +9 -0
- package/src/components/ValueCard/ValueCard.tsx +24 -0
- package/src/components/ValueCard/index.ts +1 -0
- package/src/lib/cn.ts +3 -0
- package/src/main.tsx +10 -0
- package/src/styles/global.css +36 -0
- package/src/styles/tokens.css +61 -0
- package/src/test/setup.ts +9 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.app.json +25 -0
- package/tsconfig.app.tsbuildinfo +1 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +18 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/vite.config.ts +12 -0
- package/vitest.config.ts +22 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { Tooltip } from './Tooltip';
|
|
3
|
+
|
|
4
|
+
describe('<Tooltip>', () => {
|
|
5
|
+
it('should render the trigger', () => {
|
|
6
|
+
render(
|
|
7
|
+
<Tooltip label="Tooltip text">
|
|
8
|
+
<button type="button">Info</button>
|
|
9
|
+
</Tooltip>,
|
|
10
|
+
);
|
|
11
|
+
expect(screen.getByRole('button', { name: 'Info' })).toBeInTheDocument();
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it('should show the tooltip label', () => {
|
|
15
|
+
render(
|
|
16
|
+
<Tooltip label="Tooltip text">
|
|
17
|
+
<button type="button">Info</button>
|
|
18
|
+
</Tooltip>,
|
|
19
|
+
);
|
|
20
|
+
expect(screen.getByRole('tooltip')).toHaveTextContent('Tooltip text');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { cn } from '@/lib/cn';
|
|
3
|
+
import styles from './Tooltip.module.css';
|
|
4
|
+
|
|
5
|
+
export interface TooltipProps {
|
|
6
|
+
label: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function Tooltip({ label, children, className }: TooltipProps) {
|
|
12
|
+
return (
|
|
13
|
+
<span className={cn(styles.wrap, className)}>
|
|
14
|
+
{children}
|
|
15
|
+
<span className={styles.tip} role="tooltip">
|
|
16
|
+
{label}
|
|
17
|
+
</span>
|
|
18
|
+
</span>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { TrackingBadge } from './TrackingBadge';
|
|
3
|
+
|
|
4
|
+
describe('<TrackingBadge>', () => {
|
|
5
|
+
it('should render the tracking number', () => {
|
|
6
|
+
render(<TrackingBadge />);
|
|
7
|
+
expect(screen.getByText('LR-2026-084215')).toBeInTheDocument();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TrackingBadge, type TrackingBadgeProps } from './TrackingBadge';
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
gap: 15px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
max-width: 524px;
|
|
8
|
+
padding: 24px;
|
|
9
|
+
border: 1px solid #e5e8ed;
|
|
10
|
+
border-radius: 22px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.title {
|
|
15
|
+
margin: 0;
|
|
16
|
+
color: #191d26;
|
|
17
|
+
font-size: 18px;
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
line-height: 1.25;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.number {
|
|
23
|
+
margin: 0;
|
|
24
|
+
color: #606978;
|
|
25
|
+
font-size: 13px;
|
|
26
|
+
font-weight: 500;
|
|
27
|
+
line-height: 1.25;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.progress {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 10px;
|
|
34
|
+
margin: 0;
|
|
35
|
+
padding: 0;
|
|
36
|
+
list-style: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.stepItem {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 10px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.done,
|
|
46
|
+
.current,
|
|
47
|
+
.upcoming {
|
|
48
|
+
display: grid;
|
|
49
|
+
place-items: center;
|
|
50
|
+
width: 42px;
|
|
51
|
+
height: 42px;
|
|
52
|
+
border-radius: 999px;
|
|
53
|
+
font-size: 15px;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
line-height: 1.25;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.done,
|
|
59
|
+
.current {
|
|
60
|
+
background: #d34860;
|
|
61
|
+
color: #fff;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.upcoming {
|
|
65
|
+
background: #f9fafc;
|
|
66
|
+
color: #606978;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.line,
|
|
70
|
+
.lineMuted {
|
|
71
|
+
width: 58px;
|
|
72
|
+
height: 3px;
|
|
73
|
+
border-radius: 2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.line {
|
|
77
|
+
background: #d34860;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.lineMuted {
|
|
81
|
+
background: #e8eaee;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.route {
|
|
85
|
+
margin: 0;
|
|
86
|
+
color: #191d26;
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
font-weight: 600;
|
|
89
|
+
line-height: 1.25;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.relay {
|
|
93
|
+
display: flex;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 14px;
|
|
96
|
+
width: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.relayIcon {
|
|
100
|
+
display: grid;
|
|
101
|
+
place-items: center;
|
|
102
|
+
width: 48px;
|
|
103
|
+
height: 48px;
|
|
104
|
+
border-radius: 16px;
|
|
105
|
+
background: #fdf4f6;
|
|
106
|
+
color: #d34860;
|
|
107
|
+
font-size: 18px;
|
|
108
|
+
font-weight: 700;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.relayLabel,
|
|
112
|
+
.relayName {
|
|
113
|
+
margin: 0;
|
|
114
|
+
line-height: 1.25;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.relayLabel {
|
|
118
|
+
color: #606978;
|
|
119
|
+
font-size: 12px;
|
|
120
|
+
font-weight: 500;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.relayName {
|
|
124
|
+
margin-top: 4px;
|
|
125
|
+
color: #191d26;
|
|
126
|
+
font-size: 15px;
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { TrackingCard } from './TrackingCard';
|
|
3
|
+
|
|
4
|
+
describe('<TrackingCard>', () => {
|
|
5
|
+
it('should render the route and the relay', () => {
|
|
6
|
+
render(<TrackingCard />);
|
|
7
|
+
expect(screen.getByRole('heading', { name: 'Votre colis est en transit' })).toBeInTheDocument();
|
|
8
|
+
expect(screen.getByText('Épicerie des Brotteaux')).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import styles from './TrackingCard.module.css';
|
|
2
|
+
|
|
3
|
+
export interface TrackingStep {
|
|
4
|
+
mark: string;
|
|
5
|
+
state: 'done' | 'current' | 'upcoming';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface TrackingCardProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
trackingNumber?: string;
|
|
11
|
+
route?: string;
|
|
12
|
+
relayLabel?: string;
|
|
13
|
+
relayName?: string;
|
|
14
|
+
steps?: TrackingStep[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const DEFAULT_STEPS: TrackingStep[] = [
|
|
18
|
+
{ mark: '✓', state: 'done' },
|
|
19
|
+
{ mark: '✓', state: 'done' },
|
|
20
|
+
{ mark: '●', state: 'current' },
|
|
21
|
+
{ mark: '○', state: 'upcoming' },
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export function TrackingCard({
|
|
25
|
+
title = 'Votre colis est en transit',
|
|
26
|
+
trackingNumber = 'LR-2026-084215',
|
|
27
|
+
route = 'Abidjan 12e → Bouaké 3e',
|
|
28
|
+
relayLabel = "Point relais d'arrivée",
|
|
29
|
+
relayName = 'Épicerie des Brotteaux',
|
|
30
|
+
steps = DEFAULT_STEPS,
|
|
31
|
+
}: TrackingCardProps) {
|
|
32
|
+
return (
|
|
33
|
+
<article className={styles.card}>
|
|
34
|
+
<h3 className={styles.title}>{title}</h3>
|
|
35
|
+
<p className={styles.number}>{trackingNumber}</p>
|
|
36
|
+
<ol className={styles.progress}>
|
|
37
|
+
{steps.map((step, index) => (
|
|
38
|
+
<li key={`${step.mark}-${index}`} className={styles.stepItem}>
|
|
39
|
+
<span className={styles[step.state]}>{step.mark}</span>
|
|
40
|
+
{index < steps.length - 1 ? (
|
|
41
|
+
<span className={step.state === 'done' ? styles.line : styles.lineMuted} />
|
|
42
|
+
) : null}
|
|
43
|
+
</li>
|
|
44
|
+
))}
|
|
45
|
+
</ol>
|
|
46
|
+
<p className={styles.route}>{route}</p>
|
|
47
|
+
<div className={styles.relay}>
|
|
48
|
+
<span className={styles.relayIcon} aria-hidden="true">
|
|
49
|
+
⌂
|
|
50
|
+
</span>
|
|
51
|
+
<div>
|
|
52
|
+
<p className={styles.relayLabel}>{relayLabel}</p>
|
|
53
|
+
<p className={styles.relayName}>{relayName}</p>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
</article>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TrackingCard, type TrackingCardProps, type TrackingStep } from './TrackingCard';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.bar {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 500px;
|
|
7
|
+
height: 52px;
|
|
8
|
+
padding: 4px 4px 4px 16px;
|
|
9
|
+
border: 1px solid #e8eaee;
|
|
10
|
+
border-radius: 14px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.bar input {
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
border: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
color: #191d26;
|
|
20
|
+
font: inherit;
|
|
21
|
+
font-size: 14px;
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.bar button {
|
|
26
|
+
padding: 10px 18px;
|
|
27
|
+
border: 0;
|
|
28
|
+
border-radius: 10px;
|
|
29
|
+
background: #d34860;
|
|
30
|
+
color: #fff;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
import { TrackingSearch } from './TrackingSearch';
|
|
4
|
+
|
|
5
|
+
describe('<TrackingSearch>', () => {
|
|
6
|
+
it('should submit the tracking number', async () => {
|
|
7
|
+
const user = userEvent.setup();
|
|
8
|
+
const onSearch = vi.fn();
|
|
9
|
+
render(<TrackingSearch onSearch={onSearch} />);
|
|
10
|
+
|
|
11
|
+
await user.click(screen.getByRole('button', { name: 'Rechercher' }));
|
|
12
|
+
|
|
13
|
+
expect(onSearch).toHaveBeenCalledWith('LR-9999-000000');
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { FormEvent } from 'react';
|
|
2
|
+
import search from '@/assets/icons/core-search-dark.svg';
|
|
3
|
+
import styles from './TrackingSearch.module.css';
|
|
4
|
+
|
|
5
|
+
export interface TrackingSearchProps {
|
|
6
|
+
defaultValue?: string;
|
|
7
|
+
onSearch?: (value: string) => void;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function TrackingSearch({ defaultValue = 'LR-9999-000000', onSearch }: TrackingSearchProps) {
|
|
11
|
+
function handleSubmit(event: FormEvent<HTMLFormElement>) {
|
|
12
|
+
event.preventDefault();
|
|
13
|
+
const data = new FormData(event.currentTarget);
|
|
14
|
+
onSearch?.(String(data.get('tracking') ?? ''));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<form className={styles.bar} onSubmit={handleSubmit}>
|
|
19
|
+
<img src={search} alt="" width={18} height={18} />
|
|
20
|
+
<input name="tracking" defaultValue={defaultValue} aria-label="Numéro de suivi" />
|
|
21
|
+
<button type="submit">Rechercher</button>
|
|
22
|
+
</form>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TrackingSearch, type TrackingSearchProps } from './TrackingSearch';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 370px;
|
|
7
|
+
min-height: 180px;
|
|
8
|
+
padding: 22px 24px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-radius: 20px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
box-shadow: 0 6px 18px rgb(0 0 0 / 4%);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.icon {
|
|
16
|
+
display: grid;
|
|
17
|
+
place-items: center;
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
width: 40px;
|
|
20
|
+
height: 40px;
|
|
21
|
+
border-radius: 12px;
|
|
22
|
+
background: #fdf4f6;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.card h3 {
|
|
26
|
+
margin: 0;
|
|
27
|
+
color: #d34860;
|
|
28
|
+
font-size: 20px;
|
|
29
|
+
font-weight: 600;
|
|
30
|
+
line-height: 1.3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.card p {
|
|
34
|
+
margin: 6px 0 0;
|
|
35
|
+
color: #606978;
|
|
36
|
+
font-size: 13px;
|
|
37
|
+
line-height: 1.3;
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { ValueCard } from './ValueCard';
|
|
3
|
+
|
|
4
|
+
describe('<ValueCard>', () => {
|
|
5
|
+
it('should render the value title', () => {
|
|
6
|
+
render(<ValueCard />);
|
|
7
|
+
expect(screen.getByRole('heading', { name: 'Proximité' })).toBeInTheDocument();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import pin from '@/assets/icons/core-pin-value.svg';
|
|
2
|
+
import styles from './ValueCard.module.css';
|
|
3
|
+
|
|
4
|
+
export interface ValueCardProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function ValueCard({
|
|
10
|
+
title = 'Proximité',
|
|
11
|
+
description = 'Un réseau de commerces partenaires proche des utilisateurs.',
|
|
12
|
+
}: ValueCardProps) {
|
|
13
|
+
return (
|
|
14
|
+
<article className={styles.card}>
|
|
15
|
+
<span className={styles.icon}>
|
|
16
|
+
<img src={pin} alt="" width={18} height={18} />
|
|
17
|
+
</span>
|
|
18
|
+
<div>
|
|
19
|
+
<h3>{title}</h3>
|
|
20
|
+
<p>{description}</p>
|
|
21
|
+
</div>
|
|
22
|
+
</article>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ValueCard, type ValueCardProps } from './ValueCard';
|
package/src/lib/cn.ts
ADDED
package/src/main.tsx
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import './tokens.css';
|
|
2
|
+
|
|
3
|
+
*,
|
|
4
|
+
*::before,
|
|
5
|
+
*::after {
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
html,
|
|
10
|
+
body,
|
|
11
|
+
#root {
|
|
12
|
+
margin: 0;
|
|
13
|
+
min-height: 100%;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
font-family: var(--font-sans);
|
|
18
|
+
color: var(--color-text);
|
|
19
|
+
background: #f4f6f8;
|
|
20
|
+
-webkit-font-smoothing: antialiased;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
button,
|
|
24
|
+
input,
|
|
25
|
+
select,
|
|
26
|
+
textarea {
|
|
27
|
+
font-family: inherit;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
p {
|
|
31
|
+
margin: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
a {
|
|
35
|
+
color: inherit;
|
|
36
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-primary: #d34860;
|
|
3
|
+
--color-primary-hover: #b8324a;
|
|
4
|
+
--color-primary-soft: #fdf4f6;
|
|
5
|
+
--color-primary-wash: #fcf2f5;
|
|
6
|
+
--color-primary-card: #fcf5f7;
|
|
7
|
+
--color-primary-border: #f0e0e5;
|
|
8
|
+
--color-text: #191d26;
|
|
9
|
+
--color-text-secondary: #606978;
|
|
10
|
+
--color-text-muted: #7a8494;
|
|
11
|
+
--color-text-placeholder: #adb5c2;
|
|
12
|
+
--color-text-strong: #3e4652;
|
|
13
|
+
--color-text-faint: #9ca3af;
|
|
14
|
+
--color-border: #e5e8ed;
|
|
15
|
+
--color-border-strong: #d0d5dd;
|
|
16
|
+
--color-border-subtle: #edf0f2;
|
|
17
|
+
--color-border-line: #e8eaee;
|
|
18
|
+
--color-divider: #f0f1f3;
|
|
19
|
+
--color-surface: #ffffff;
|
|
20
|
+
--color-surface-muted: #f9fafc;
|
|
21
|
+
--color-surface-sunken: #f2f4f7;
|
|
22
|
+
--color-surface-cancel: #f7f8fa;
|
|
23
|
+
--color-surface-empty: #fafbfc;
|
|
24
|
+
--color-disabled: #d0d5dd;
|
|
25
|
+
--color-info: #2f6fcc;
|
|
26
|
+
--color-info-bg: #eef4fd;
|
|
27
|
+
--color-success: #2b7845;
|
|
28
|
+
--color-success-bright: #75d191;
|
|
29
|
+
--color-success-bg: #edf8f0;
|
|
30
|
+
--color-warning: #b86a12;
|
|
31
|
+
--color-warning-bg: #fff6e9;
|
|
32
|
+
--color-warning-icon: #f5c738;
|
|
33
|
+
--color-error: #b8324a;
|
|
34
|
+
--color-error-bg: #fceef1;
|
|
35
|
+
--color-sidebar: #13161c;
|
|
36
|
+
--color-sidebar-raised: #1c2029;
|
|
37
|
+
--color-sidebar-active: #332129;
|
|
38
|
+
--color-sidebar-text: #b2bac7;
|
|
39
|
+
--color-sidebar-muted: #adb2bf;
|
|
40
|
+
--color-ink: #1c2029;
|
|
41
|
+
--color-skeleton: #edeff2;
|
|
42
|
+
--color-chart-2: #e06c7e;
|
|
43
|
+
--color-chart-4: #f5a3b1;
|
|
44
|
+
--color-tooltip: #191d26;
|
|
45
|
+
--font-sans: 'Inter', system-ui, sans-serif;
|
|
46
|
+
--radius-xs: 6px;
|
|
47
|
+
--radius-sm: 10px;
|
|
48
|
+
--radius-control: 12px;
|
|
49
|
+
--radius-button: 13px;
|
|
50
|
+
--radius-md: 14px;
|
|
51
|
+
--radius-lg: 16px;
|
|
52
|
+
--radius-card: 18px;
|
|
53
|
+
--radius-xl: 20px;
|
|
54
|
+
--radius-pill: 999px;
|
|
55
|
+
--shadow-toast: 0 8px 12px rgba(0, 0, 0, 0.12);
|
|
56
|
+
--shadow-menu: 0 0 1px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
57
|
+
--shadow-modal: 0 1px 4px rgba(0, 0, 0, 0.06), 0 8px 24px -4px rgba(0, 0, 0, 0.12);
|
|
58
|
+
--shadow-card: 0 4px 6px rgba(25, 29, 38, 0.02);
|
|
59
|
+
--shadow-note: 0 2px 3px rgba(0, 0, 0, 0.04);
|
|
60
|
+
--shadow-knob: 0 1px 3px rgba(0, 0, 0, 0.15);
|
|
61
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '@testing-library/jest-dom/vitest';
|
|
2
|
+
import { afterAll, afterEach, beforeAll } from 'vitest';
|
|
3
|
+
import { setupServer } from 'msw/node';
|
|
4
|
+
|
|
5
|
+
export const server = setupServer();
|
|
6
|
+
|
|
7
|
+
beforeAll(() => server.listen({ onUnhandledRequest: 'bypass' }));
|
|
8
|
+
afterEach(() => server.resetHandlers());
|
|
9
|
+
afterAll(() => server.close());
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"allowImportingTsExtensions": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"moduleDetection": "force",
|
|
12
|
+
"noEmit": true,
|
|
13
|
+
"jsx": "react-jsx",
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noUnusedLocals": true,
|
|
16
|
+
"noUnusedParameters": true,
|
|
17
|
+
"noFallthroughCasesInSwitch": true,
|
|
18
|
+
"baseUrl": ".",
|
|
19
|
+
"paths": {
|
|
20
|
+
"@/*": ["src/*"]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"include": ["src"],
|
|
24
|
+
"exclude": ["src/**/*.test.tsx"]
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/assets/icons.ts","./src/components/accordion/accordion.tsx","./src/components/accordion/index.ts","./src/components/actioncard/actioncard.tsx","./src/components/actioncard/index.ts","./src/components/alert/alert.tsx","./src/components/alert/index.ts","./src/components/avatar/avatar.tsx","./src/components/avatar/index.ts","./src/components/badge/badge.tsx","./src/components/badge/index.ts","./src/components/barchart/barchart.tsx","./src/components/barchart/index.ts","./src/components/benefitscard/benefitscard.tsx","./src/components/benefitscard/index.ts","./src/components/bottomnavitem/bottomnavitem.tsx","./src/components/bottomnavitem/index.ts","./src/components/breadcrumb/breadcrumb.tsx","./src/components/breadcrumb/index.ts","./src/components/button/button.tsx","./src/components/button/index.ts","./src/components/checkbox/checkbox.tsx","./src/components/checkbox/index.ts","./src/components/confirmmodal/confirmmodal.tsx","./src/components/confirmmodal/index.ts","./src/components/corebutton/corebutton.tsx","./src/components/corebutton/index.ts","./src/components/corefield/corefield.tsx","./src/components/corefield/index.ts","./src/components/coreselect/coreselect.tsx","./src/components/coreselect/index.ts","./src/components/coretabs/coretabs.tsx","./src/components/coretabs/index.ts","./src/components/dashboardparcelrow/dashboardparcelrow.tsx","./src/components/dashboardparcelrow/index.ts","./src/components/datafilterstoolbar/datafilterstoolbar.tsx","./src/components/datafilterstoolbar/index.ts","./src/components/datasearchbar/datasearchbar.tsx","./src/components/datasearchbar/index.ts","./src/components/datatable/datatable.tsx","./src/components/datatable/index.ts","./src/components/divider/divider.tsx","./src/components/divider/index.ts","./src/components/dropdownmenu/dropdownmenu.tsx","./src/components/dropdownmenu/index.ts","./src/components/emptystate/emptystate.tsx","./src/components/emptystate/index.ts","./src/components/faqitem/faqitem.tsx","./src/components/faqitem/index.ts","./src/components/favoriterelaycard/favoriterelaycard.tsx","./src/components/favoriterelaycard/index.ts","./src/components/featurecard/featurecard.tsx","./src/components/featurecard/index.ts","./src/components/fileupload/fileupload.tsx","./src/components/fileupload/index.ts","./src/components/filterpill/filterpill.tsx","./src/components/filterpill/index.ts","./src/components/footer/footer.tsx","./src/components/footer/index.ts","./src/components/icon/icon.tsx","./src/components/icon/index.ts","./src/components/inforow/inforow.tsx","./src/components/inforow/index.ts","./src/components/linkbutton/linkbutton.tsx","./src/components/linkbutton/index.ts","./src/components/locationcard/locationcard.tsx","./src/components/locationcard/index.ts","./src/components/logo/logo.tsx","./src/components/logo/index.ts","./src/components/metriccard/metriccard.tsx","./src/components/metriccard/index.ts","./src/components/navbar/navbar.tsx","./src/components/navbar/index.ts","./src/components/notificationitem/notificationitem.tsx","./src/components/notificationitem/index.ts","./src/components/notificationrow/notificationrow.tsx","./src/components/notificationrow/index.ts","./src/components/outcomemodal/outcomemodal.tsx","./src/components/outcomemodal/index.ts","./src/components/pagination/pagination.tsx","./src/components/pagination/index.ts","./src/components/parcelcard/parcelcard.tsx","./src/components/parcelcard/index.ts","./src/components/parcelrow/parcelrow.tsx","./src/components/parcelrow/index.ts","./src/components/parceltimeline/parceltimeline.tsx","./src/components/parceltimeline/index.ts","./src/components/photoupload/photoupload.tsx","./src/components/photoupload/index.ts","./src/components/processbadge/processbadge.tsx","./src/components/processbadge/index.ts","./src/components/progressbar/progressbar.tsx","./src/components/progressbar/index.ts","./src/components/qrscanner/qrscanner.tsx","./src/components/qrscanner/index.ts","./src/components/questionsearch/questionsearch.tsx","./src/components/questionsearch/index.ts","./src/components/quickactioncard/quickactioncard.tsx","./src/components/quickactioncard/index.ts","./src/components/radio/radio.tsx","./src/components/radio/index.ts","./src/components/relaycard/relaycard.tsx","./src/components/relaycard/index.ts","./src/components/relayresultcard/relayresultcard.tsx","./src/components/relayresultcard/index.ts","./src/components/resetpasswordcard/resetpasswordcard.tsx","./src/components/resetpasswordcard/index.ts","./src/components/searchbar/searchbar.tsx","./src/components/searchbar/index.ts","./src/components/select/select.tsx","./src/components/select/index.ts","./src/components/shipmentstatus/shipmentstatus.tsx","./src/components/shipmentstatus/index.ts","./src/components/sidebar/sidebar.tsx","./src/components/sidebar/index.ts","./src/components/sidebarnavitem/sidebarnavitem.tsx","./src/components/sidebarnavitem/index.ts","./src/components/skeleton/skeleton.tsx","./src/components/skeleton/index.ts","./src/components/statcard/statcard.tsx","./src/components/statcard/index.ts","./src/components/statussummary/statussummary.tsx","./src/components/statussummary/index.ts","./src/components/stepcard/stepcard.tsx","./src/components/stepcard/index.ts","./src/components/stepper/stepper.tsx","./src/components/stepper/index.ts","./src/components/stepslist/stepslist.tsx","./src/components/stepslist/index.ts","./src/components/successfeedback/successfeedback.tsx","./src/components/successfeedback/index.ts","./src/components/switch/switch.tsx","./src/components/switch/index.ts","./src/components/tabs/tabs.tsx","./src/components/tabs/index.ts","./src/components/tag/tag.tsx","./src/components/tag/index.ts","./src/components/textfield/textfield.tsx","./src/components/textfield/index.ts","./src/components/toast/toast.tsx","./src/components/toast/index.ts","./src/components/tooltip/tooltip.tsx","./src/components/tooltip/index.ts","./src/components/trackingbadge/trackingbadge.tsx","./src/components/trackingbadge/index.ts","./src/components/trackingcard/trackingcard.tsx","./src/components/trackingcard/index.ts","./src/components/trackingsearch/trackingsearch.tsx","./src/components/trackingsearch/index.ts","./src/components/valuecard/valuecard.tsx","./src/components/valuecard/index.ts","./src/lib/cn.ts","./src/test/setup.ts"],"version":"5.9.3"}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"lib": ["ES2023"],
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"skipLibCheck": true,
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"allowImportingTsExtensions": true,
|
|
9
|
+
"isolatedModules": true,
|
|
10
|
+
"moduleDetection": "force",
|
|
11
|
+
"noEmit": true,
|
|
12
|
+
"strict": true,
|
|
13
|
+
"noUnusedLocals": true,
|
|
14
|
+
"noUnusedParameters": true,
|
|
15
|
+
"types": ["node"]
|
|
16
|
+
},
|
|
17
|
+
"include": ["vite.config.ts", "vitest.config.ts"]
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["./vite.config.ts","./vitest.config.ts"],"version":"5.9.3"}
|
package/vite.config.ts
ADDED