mautourco-components 0.1.1
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 +187 -0
- package/dist/components/atoms/Avatar/Avatar.d.ts +14 -0
- package/dist/components/atoms/Avatar/Avatar.js +31 -0
- package/dist/components/atoms/Button/Button.d.ts +27 -0
- package/dist/components/atoms/Button/Button.js +35 -0
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +13 -0
- package/dist/components/atoms/Checkbox/Checkbox.js +33 -0
- package/dist/components/atoms/Icon/Icon.d.ts +10 -0
- package/dist/components/atoms/Icon/Icon.js +102 -0
- package/dist/components/atoms/Icon/icons/ArrivalIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/ArrivalIcon.js +31 -0
- package/dist/components/atoms/Icon/icons/CalendarIcon.d.ts +12 -0
- package/dist/components/atoms/Icon/icons/CalendarIcon.js +41 -0
- package/dist/components/atoms/Icon/icons/CarIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/CarIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/Check.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/Check.js +30 -0
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/Chevron.d.ts +9 -0
- package/dist/components/atoms/Icon/icons/Chevron.js +54 -0
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/Close.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/Close.js +30 -0
- package/dist/components/atoms/Icon/icons/DeleteIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/DeleteIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/DepartureIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/DepartureIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/EyeIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/EyeIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/FacebookIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/FacebookIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/InfoIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/InfoIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/LinkedInIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/LinkedInIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/MapPinIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MapPinIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MautoucoLogo.js +37 -0
- package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MenuIcon.js +37 -0
- package/dist/components/atoms/Icon/icons/MoreIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MoreIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/Search.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/Search.js +30 -0
- package/dist/components/atoms/Icon/icons/Settings.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/Settings.js +30 -0
- package/dist/components/atoms/Icon/icons/StrollerIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/StrollerIcon.js +30 -0
- package/dist/components/atoms/Icon/icons/TwitterIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/TwitterIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/User.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/User.js +30 -0
- package/dist/components/atoms/Icon/icons/UserIcon.d.ts +12 -0
- package/dist/components/atoms/Icon/icons/UserIcon.js +41 -0
- package/dist/components/atoms/Icon/icons/Youtube.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/Youtube.js +36 -0
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.d.ts +12 -0
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +53 -0
- package/dist/components/atoms/Inputs/Input/Input.d.ts +15 -0
- package/dist/components/atoms/Inputs/Input/Input.js +27 -0
- package/dist/components/atoms/Inputs/Textarea/Textarea.d.ts +14 -0
- package/dist/components/atoms/Inputs/Textarea/Textarea.js +15 -0
- package/dist/components/atoms/Link/Link.d.ts +44 -0
- package/dist/components/atoms/Link/Link.js +76 -0
- package/dist/components/atoms/SelectedValue/SelectedValue.d.ts +11 -0
- package/dist/components/atoms/SelectedValue/SelectedValue.js +29 -0
- package/dist/components/atoms/Spinner/Spinner.d.ts +9 -0
- package/dist/components/atoms/Spinner/Spinner.js +38 -0
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.d.ts +8 -0
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.js +19 -0
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.d.ts +7 -0
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.js +7 -0
- package/dist/components/atoms/Tab/Tab.d.ts +22 -0
- package/dist/components/atoms/Tab/Tab.js +54 -0
- package/dist/components/atoms/Typography/Heading/Heading.d.ts +9 -0
- package/dist/components/atoms/Typography/Heading/Heading.js +25 -0
- package/dist/components/atoms/Typography/Text/Text.d.ts +10 -0
- package/dist/components/atoms/Typography/Text/Text.js +77 -0
- package/dist/components/atoms/Typography/Typography.d.ts +24 -0
- package/dist/components/atoms/Typography/Typography.js +100 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +29 -0
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +106 -0
- package/dist/components/molecules/UserCard/UserCard.d.ts +20 -0
- package/dist/components/molecules/UserCard/UserCard.js +57 -0
- package/dist/components/organisms/Footer/Footer.d.ts +38 -0
- package/dist/components/organisms/Footer/Footer.js +74 -0
- package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +33 -0
- package/dist/components/organisms/TopNavigation/DesktopNav.js +26 -0
- package/dist/components/organisms/TopNavigation/MobileNav.d.ts +32 -0
- package/dist/components/organisms/TopNavigation/MobileNav.js +45 -0
- package/dist/components/organisms/TopNavigation/TopNavigation.d.ts +33 -0
- package/dist/components/organisms/TopNavigation/TopNavigation.js +20 -0
- package/dist/hooks/useMobile.d.ts +5 -0
- package/dist/hooks/useMobile.js +26 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +28 -0
- package/dist/styles/tokens/tokens.d.ts +3108 -0
- package/dist/styles/tokens/tokens.js +2652 -0
- package/package.json +90 -0
- package/src/components/atoms/Avatar/Avatar.tsx +60 -0
- package/src/components/atoms/Button/Button.css +200 -0
- package/src/components/atoms/Button/Button.tsx +82 -0
- package/src/components/atoms/Checkbox/Checkbox.tsx +69 -0
- package/src/components/atoms/Icon/Icon.tsx +135 -0
- package/src/components/atoms/Icon/icons/ArrivalIcon.tsx +52 -0
- package/src/components/atoms/Icon/icons/CalendarIcon.tsx +63 -0
- package/src/components/atoms/Icon/icons/CarIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/Check.tsx +36 -0
- package/src/components/atoms/Icon/icons/CheckCircleIcon.tsx +48 -0
- package/src/components/atoms/Icon/icons/Chevron.tsx +73 -0
- package/src/components/atoms/Icon/icons/ChevronDownIcon.tsx +46 -0
- package/src/components/atoms/Icon/icons/Close.tsx +40 -0
- package/src/components/atoms/Icon/icons/DeleteIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/DepartureIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/EyeIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/FacebookIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/InfoIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/LinkedInIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/MapPinIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/MautoucoLogo.tsx +93 -0
- package/src/components/atoms/Icon/icons/MenuIcon.tsx +49 -0
- package/src/components/atoms/Icon/icons/MoreIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/Search.tsx +37 -0
- package/src/components/atoms/Icon/icons/Settings.tsx +38 -0
- package/src/components/atoms/Icon/icons/StrollerIcon.tsx +44 -0
- package/src/components/atoms/Icon/icons/TwitterIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/User.tsx +37 -0
- package/src/components/atoms/Icon/icons/UserIcon.tsx +63 -0
- package/src/components/atoms/Icon/icons/Youtube.tsx +50 -0
- package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +96 -0
- package/src/components/atoms/Inputs/Input/Input.tsx +66 -0
- package/src/components/atoms/Inputs/Textarea/Textarea.tsx +51 -0
- package/src/components/atoms/Link/Link.tsx +168 -0
- package/src/components/atoms/SelectedValue/SelectedValue.tsx +59 -0
- package/src/components/atoms/Spinner/Spinner.tsx +56 -0
- package/src/components/atoms/Spinner/variants/ButtonSpinner.tsx +37 -0
- package/src/components/atoms/Spinner/variants/LoadingSpinner.tsx +22 -0
- package/src/components/atoms/Tab/Tab.css +147 -0
- package/src/components/atoms/Tab/Tab.tsx +96 -0
- package/src/components/atoms/Typography/Typography.tsx +153 -0
- package/src/components/molecules/MultiSelectDropdown/MultiSelectDropdown.tsx +245 -0
- package/src/components/molecules/UserCard/UserCard.stories.tsx +36 -0
- package/src/components/molecules/UserCard/UserCard.tsx +173 -0
- package/src/components/organisms/Footer/Footer.tsx +290 -0
- package/src/components/organisms/TopNavigation/DesktopNav.tsx +122 -0
- package/src/components/organisms/TopNavigation/MobileNav.tsx +212 -0
- package/src/components/organisms/TopNavigation/TopNavigation.tsx +45 -0
- package/src/styles/components/avatar.css +58 -0
- package/src/styles/components/checkbox.css +132 -0
- package/src/styles/components/dropdown.css +214 -0
- package/src/styles/components/forms.css +147 -0
- package/src/styles/components/multiselect-dropdown.css +231 -0
- package/src/styles/components/organism/footer.css +113 -0
- package/src/styles/components/organism/topnavigation.css +162 -0
- package/src/styles/components/scrollbar.css +63 -0
- package/src/styles/components/selected-value.css +80 -0
- package/src/styles/components/typography.css +251 -0
- package/src/styles/tokens/_tokens.scss +2072 -0
- package/src/styles/tokens/tokens.css +2075 -0
- package/src/styles/tokens/tokens.js +2653 -0
package/package.json
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mautourco-components",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Bibliothèque de composants Motorco pour le redesign",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"src/components",
|
|
11
|
+
"src/styles",
|
|
12
|
+
"README.md"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/mautourco/motorco.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"react",
|
|
20
|
+
"components",
|
|
21
|
+
"design-system",
|
|
22
|
+
"motorco"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@testing-library/dom": "^10.4.1",
|
|
26
|
+
"@testing-library/jest-dom": "^6.8.0",
|
|
27
|
+
"@testing-library/react": "^16.3.0",
|
|
28
|
+
"@testing-library/user-event": "^13.5.0",
|
|
29
|
+
"@types/jest": "^27.5.2",
|
|
30
|
+
"@types/node": "^16.18.126",
|
|
31
|
+
"@types/react": "^19.1.12",
|
|
32
|
+
"@types/react-dom": "^19.1.9",
|
|
33
|
+
"react": "^19.1.1",
|
|
34
|
+
"react-dom": "^19.1.1",
|
|
35
|
+
"react-scripts": "5.0.1",
|
|
36
|
+
"typescript": "^4.9.5",
|
|
37
|
+
"web-vitals": "^2.1.4"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"start": "concurrently \"npm run watch-tokens\" \"react-scripts start\"",
|
|
41
|
+
"build": "react-scripts build && npm run build-storybook && npx cpx2 \"storybook-static/**\" build/storybook",
|
|
42
|
+
"build:package": "npm run build-tokens && tsc --build tsconfig.build.json",
|
|
43
|
+
"prepublishOnly": "npm run build:package",
|
|
44
|
+
"test": "react-scripts test",
|
|
45
|
+
"eject": "react-scripts eject",
|
|
46
|
+
"build-tokens": "style-dictionary build --config style-dictionary.config.js",
|
|
47
|
+
"watch-tokens": "nodemon --watch tokens --ext json --exec \"npm run build-tokens\"",
|
|
48
|
+
"storybook": "storybook dev -p 6006",
|
|
49
|
+
"storybook:dev": "concurrently \"npm run watch-tokens\" \"storybook dev -p 6006\"",
|
|
50
|
+
"build-storybook": "storybook build --output-dir storybook-static --webpack-stats-json"
|
|
51
|
+
},
|
|
52
|
+
"eslintConfig": {
|
|
53
|
+
"extends": [
|
|
54
|
+
"react-app",
|
|
55
|
+
"react-app/jest",
|
|
56
|
+
"plugin:storybook/recommended"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"browserslist": {
|
|
60
|
+
"production": [
|
|
61
|
+
">0.2%",
|
|
62
|
+
"not dead",
|
|
63
|
+
"not op_mini all"
|
|
64
|
+
],
|
|
65
|
+
"development": [
|
|
66
|
+
"last 1 chrome version",
|
|
67
|
+
"last 1 firefox version",
|
|
68
|
+
"last 1 safari version"
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@storybook/addon-docs": "^9.1.5",
|
|
73
|
+
"@storybook/addon-onboarding": "^9.1.5",
|
|
74
|
+
"@storybook/preset-create-react-app": "^9.1.5",
|
|
75
|
+
"@storybook/react-webpack5": "^9.1.5",
|
|
76
|
+
"@tokens-studio/sd-transforms": "^2.0.1",
|
|
77
|
+
"autoprefixer": "^10.4.21",
|
|
78
|
+
"chokidar-cli": "^3.0.0",
|
|
79
|
+
"concurrently": "^9.2.1",
|
|
80
|
+
"cpx2": "^4.2.0",
|
|
81
|
+
"eslint-plugin-storybook": "^9.1.5",
|
|
82
|
+
"nodemon": "^3.1.10",
|
|
83
|
+
"postcss": "^8.5.6",
|
|
84
|
+
"prop-types": "^15.8.1",
|
|
85
|
+
"storybook": "^9.1.5",
|
|
86
|
+
"style-dictionary": "^5.0.4",
|
|
87
|
+
"tailwindcss": "^3.4.17",
|
|
88
|
+
"webpack": "^5.101.3"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/components/Avatar.tsx
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
export type AvatarSize = "sm" | "md" | "lg" | "xl";
|
|
5
|
+
export type AvatarShape = "circle" | "rounded";
|
|
6
|
+
export type AvatarColor = "gray" | "blue" | "pink" | "orange" | "green";
|
|
7
|
+
|
|
8
|
+
export interface AvatarProps {
|
|
9
|
+
src?: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
size?: AvatarSize;
|
|
13
|
+
shape?: AvatarShape;
|
|
14
|
+
color?: AvatarColor;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// styling is driven by semantic classnames defined in `src/styles/components/avatar.css`
|
|
19
|
+
|
|
20
|
+
export const Avatar: React.FC<AvatarProps> = ({
|
|
21
|
+
src,
|
|
22
|
+
alt,
|
|
23
|
+
name,
|
|
24
|
+
size = "md",
|
|
25
|
+
shape = "circle",
|
|
26
|
+
color = "blue",
|
|
27
|
+
className = "",
|
|
28
|
+
}) => {
|
|
29
|
+
const [error, setError] = React.useState(false);
|
|
30
|
+
|
|
31
|
+
const initial =
|
|
32
|
+
name?.charAt(0)?.toUpperCase() ??
|
|
33
|
+
alt?.charAt(0)?.toUpperCase() ??
|
|
34
|
+
"A";
|
|
35
|
+
|
|
36
|
+
const classes = [
|
|
37
|
+
'avatar',
|
|
38
|
+
`avatar--${size}`,
|
|
39
|
+
`avatar--${shape}`,
|
|
40
|
+
!src || error ? `avatar--${color}` : '',
|
|
41
|
+
className,
|
|
42
|
+
]
|
|
43
|
+
.filter(Boolean)
|
|
44
|
+
.join(' ');
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<div className={classes} aria-label={alt || name}>
|
|
48
|
+
{src && !error ? (
|
|
49
|
+
<img
|
|
50
|
+
src={src}
|
|
51
|
+
alt={alt || name}
|
|
52
|
+
className="avatar__img"
|
|
53
|
+
onError={() => setError(true)}
|
|
54
|
+
/>
|
|
55
|
+
) : (
|
|
56
|
+
<span className="avatar__initial">{initial}</span>
|
|
57
|
+
)}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
};
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: calc(var(--component-button-spacing-sm-gap, 4rem) / 16);
|
|
6
|
+
padding: 0;
|
|
7
|
+
border: none;
|
|
8
|
+
border-radius: calc(var(--border-radius-rounded-full, 9999rem) / 16);
|
|
9
|
+
background: transparent;
|
|
10
|
+
color: inherit;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
font-family: var(--font-font-family-body, "Satoshi"), "Satoshi", "Inter", "Segoe UI", "system-ui", sans-serif;
|
|
15
|
+
font-weight: var(--font-weight-font-bold, 700);
|
|
16
|
+
font-size: calc(var(--font-size-text-sm, 14rem) / 16);
|
|
17
|
+
line-height: calc(var(--font-leading-leading-sm, 20) / 16 * 1rem);
|
|
18
|
+
letter-spacing: calc(var(--font-tracking-tracking-normal, 0rem) / 16 * 1rem);
|
|
19
|
+
transition:
|
|
20
|
+
background-color 0.2s ease-in-out,
|
|
21
|
+
color 0.2s ease-in-out,
|
|
22
|
+
box-shadow 0.2s ease-in-out,
|
|
23
|
+
transform 0.15s ease-in-out,
|
|
24
|
+
opacity 0.2s ease-in-out;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.button:disabled {
|
|
28
|
+
cursor: not-allowed;
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.button--sm {
|
|
33
|
+
padding: calc(var(--component-button-spacing-sm-padding-y, 8rem) / 16)
|
|
34
|
+
calc(var(--component-button-spacing-sm-padding-x, 12rem) / 16);
|
|
35
|
+
gap: calc(var(--component-button-spacing-sm-gap, 4rem) / 16);
|
|
36
|
+
font-size: calc(var(--font-size-text-sm, 14rem) / 16);
|
|
37
|
+
line-height: calc(var(--font-leading-leading-sm, 20) / 16 * 1rem);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.button--md {
|
|
41
|
+
padding: calc(var(--component-button-spacing-md-padding-y, 10rem) / 16)
|
|
42
|
+
calc(var(--component-button-spacing-md-padding-x, 14rem) / 16);
|
|
43
|
+
gap: calc(var(--component-button-spacing-md-gap, 10rem) / 16);
|
|
44
|
+
font-size: calc(var(--font-size-text-base, 16rem) / 16);
|
|
45
|
+
line-height: calc(var(--font-leading-leading-md, 24) / 16 * 1rem);
|
|
46
|
+
letter-spacing: calc(var(--font-tracking-tracking-normal, 0rem) / 16 * 1rem);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.button--lg {
|
|
50
|
+
padding: calc(var(--component-button-spacing-lg-padding-y, 10rem) / 16)
|
|
51
|
+
calc(var(--component-button-spacing-lg-padding-x, 64rem) / 16);
|
|
52
|
+
gap: calc(var(--component-button-spacing-lg-gap, 6rem) / 16);
|
|
53
|
+
font-size: calc(var(--font-size-text-lg, 18rem) / 16);
|
|
54
|
+
line-height: calc(var(--font-leading-leading-md, 24) / 16 * 1rem);
|
|
55
|
+
letter-spacing: calc(var(--font-tracking-tracking-normal, 0rem) / 16 * 1rem);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.button--xl {
|
|
59
|
+
padding: calc(var(--component-button-spacing-xl-padding-y, 12rem) / 16)
|
|
60
|
+
calc(var(--component-button-spacing-xl-padding-x, 16rem) / 16);
|
|
61
|
+
gap: calc(var(--component-button-spacing-xl-gap, 6rem) / 16);
|
|
62
|
+
font-size: calc(var(--font-size-text-base, 16rem) / 16);
|
|
63
|
+
line-height: calc(var(--font-leading-leading-md, 24) / 16 * 1rem);
|
|
64
|
+
letter-spacing: calc(var(--font-tracking-tracking-normal, 0rem) / 16 * 1rem);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.button__label {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.button__icon {
|
|
74
|
+
display: inline-flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
color: inherit;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.button--primary {
|
|
81
|
+
background-color: var(--color-button-brand-background-primary-default, #fe8839);
|
|
82
|
+
color: var(--color-button-brand-foreground-primary-default, #ffffff);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.button--primary:hover:not(:disabled) {
|
|
86
|
+
background-color: var(--color-button-brand-background-primary-hover, #fc6613);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.button--primary:active:not(:disabled) {
|
|
90
|
+
background-color: var(--color-button-brand-background-primary-pressed, #ed4c09);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.button--primary:focus-visible:not(:disabled) {
|
|
94
|
+
outline: none;
|
|
95
|
+
box-shadow: 0 0 0 calc(2rem / 16)
|
|
96
|
+
var(--color-button-brand-background-primary-focused, #ed4c09);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.button--primary:disabled {
|
|
100
|
+
background-color: var(--color-button-brand-background-primary-disabled, #f5f5f5);
|
|
101
|
+
color: var(--color-button-brand-foreground-primary-disabled, #a3a3a3);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.button--secondary {
|
|
105
|
+
background-color: var(--color-button-brand-background-secondary-default, #0d9394);
|
|
106
|
+
color: var(--color-button-brand-foreground-secondary-default, #ffffff);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.button--outline-primary {
|
|
110
|
+
background-color: var(--component-button-color-outline-primary-background-default, #ffffff);
|
|
111
|
+
color: var(--component-button-color-outline-primary-foreground-default, #fe8839);
|
|
112
|
+
border: calc(var(--border-width-input, 1rem) / 16) solid
|
|
113
|
+
var(--component-button-color-outline-primary-border-default, #fe8839);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.button--outline-primary:hover:not(:disabled) {
|
|
117
|
+
background-color: var(--component-button-color-outline-primary-background-hover, #fff6ed);
|
|
118
|
+
border-color: var(--component-button-color-outline-primary-border-hover, #fc6613);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.button--outline-primary:active:not(:disabled) {
|
|
122
|
+
background-color: var(--component-button-color-outline-primary-background-pressed, #ffebd4);
|
|
123
|
+
border-color: var(--component-button-color-outline-primary-border-pressed, #ed4c09);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.button--outline-primary:focus-visible:not(:disabled) {
|
|
127
|
+
outline: none;
|
|
128
|
+
box-shadow: 0 0 0 calc(2rem / 16)
|
|
129
|
+
var(--component-button-color-outline-primary-background-focused, #ffebd4);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.button--outline-primary:disabled {
|
|
133
|
+
background-color: var(--component-button-color-outline-primary-background-disabled, #ffffff);
|
|
134
|
+
color: var(--component-button-color-outline-primary-foreground-disabled, #a3a3a3);
|
|
135
|
+
border-color: var(--component-button-color-outline-primary-border-default, #fe8839);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.button--outline-secondary {
|
|
139
|
+
background-color: var(--component-button-color-outline-secondary-background-default, #ffffff);
|
|
140
|
+
color: var(--component-button-color-outline-secondary-foreground-default, #0d9394);
|
|
141
|
+
border: calc(var(--border-width-input, 1rem) / 16) solid
|
|
142
|
+
var(
|
|
143
|
+
--component-button-color-outline-secondary-border-default,
|
|
144
|
+
var(--component-button-color-outline-secondary-foreground-default, #0d9394)
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.button--outline-secondary:hover:not(:disabled) {
|
|
149
|
+
background-color: var(
|
|
150
|
+
--component-button-color-outline-secondary-background-hover,
|
|
151
|
+
var(--button-color-outline-secondary-background-hover, #f0fdfb)
|
|
152
|
+
);
|
|
153
|
+
border-color: var(
|
|
154
|
+
--component-button-color-outline-secondary-border-hover,
|
|
155
|
+
#0f7173
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.button--outline-secondary:active:not(:disabled) {
|
|
160
|
+
background-color: var(
|
|
161
|
+
--component-button-color-outline-secondary-background-pressed,
|
|
162
|
+
var(--button-color-outline-secondary-background-pressed, #ccfbf6)
|
|
163
|
+
);
|
|
164
|
+
border-color: var(
|
|
165
|
+
--component-button-color-outline-secondary-border-pressed,
|
|
166
|
+
#115b5e
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.button--outline-secondary:focus-visible:not(:disabled) {
|
|
171
|
+
outline: none;
|
|
172
|
+
box-shadow: 0 0 0 calc(2rem / 16)
|
|
173
|
+
var(--component-button-color-outline-secondary-background-focused, #ffffff);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.button--outline-secondary:disabled {
|
|
177
|
+
background-color: var(--component-button-color-outline-secondary-background-disabled, #ffffff);
|
|
178
|
+
color: var(--component-button-color-outline-secondary-foreground-disabled, #a3a3a3);
|
|
179
|
+
border-color: var(--component-button-color-outline-secondary-border-default, var(--component-button-color-outline-secondary-foreground-default, #0d9394));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.button--secondary:hover:not(:disabled) {
|
|
183
|
+
background-color: var(--color-button-brand-background-secondary-hover, #0f7173);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.button--secondary:active:not(:disabled) {
|
|
187
|
+
background-color: var(--color-button-brand-background-secondary-pressed, #042c2f);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.button--secondary:focus-visible:not(:disabled) {
|
|
191
|
+
outline: none;
|
|
192
|
+
box-shadow: 0 0 0 calc(2rem / 16)
|
|
193
|
+
var(--color-button-brand-background-secondary-focused, #042c2f);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.button--secondary:disabled {
|
|
197
|
+
background-color: var(--color-button-brand-background-secondary-disabled, #f5f5f5);
|
|
198
|
+
color: var(--color-button-brand-foreground-secondary-disabled, #a3a3a3);
|
|
199
|
+
}
|
|
200
|
+
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Icon, { IconName } from '../Icon/Icon';
|
|
3
|
+
import './Button.css';
|
|
4
|
+
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
/** Variant du bouton */
|
|
7
|
+
variant?: 'primary' | 'secondary' | 'outline' | 'outline-primary' | 'outline-secondary';
|
|
8
|
+
/** Taille du bouton */
|
|
9
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
/** Contenu du bouton */
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
/** Icône affichée avant le libellé */
|
|
13
|
+
leadingIcon?: IconName;
|
|
14
|
+
/** Icône affichée après le libellé */
|
|
15
|
+
trailingIcon?: IconName;
|
|
16
|
+
/** Taille des icônes */
|
|
17
|
+
iconSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
+
/** État désactivé */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Handler de clic */
|
|
21
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
22
|
+
/** Type de bouton */
|
|
23
|
+
type?: 'button' | 'submit' | 'reset';
|
|
24
|
+
/** Classes CSS supplémentaires */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const Button: React.FC<ButtonProps> = ({
|
|
29
|
+
variant = 'primary',
|
|
30
|
+
size = 'md',
|
|
31
|
+
children,
|
|
32
|
+
leadingIcon,
|
|
33
|
+
trailingIcon,
|
|
34
|
+
iconSize = 'sm',
|
|
35
|
+
disabled = false,
|
|
36
|
+
onClick,
|
|
37
|
+
type = 'button',
|
|
38
|
+
className = '',
|
|
39
|
+
}) => {
|
|
40
|
+
const baseClasses = 'button';
|
|
41
|
+
const normalizedVariant =
|
|
42
|
+
variant === 'outline' ? 'outline-primary' : variant;
|
|
43
|
+
const variantClass = `button--${normalizedVariant}`;
|
|
44
|
+
const sizeClass = `button--${size}`;
|
|
45
|
+
const disabledClass = disabled ? 'button--disabled' : '';
|
|
46
|
+
|
|
47
|
+
const buttonClasses = [
|
|
48
|
+
baseClasses,
|
|
49
|
+
variantClass,
|
|
50
|
+
sizeClass,
|
|
51
|
+
disabledClass,
|
|
52
|
+
className,
|
|
53
|
+
]
|
|
54
|
+
.filter(Boolean)
|
|
55
|
+
.join(' ');
|
|
56
|
+
|
|
57
|
+
const hasLeadingIcon = Boolean(leadingIcon);
|
|
58
|
+
const hasTrailingIcon = Boolean(trailingIcon);
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<button
|
|
62
|
+
type={type}
|
|
63
|
+
className={buttonClasses}
|
|
64
|
+
disabled={disabled}
|
|
65
|
+
onClick={onClick}
|
|
66
|
+
>
|
|
67
|
+
{hasLeadingIcon && (
|
|
68
|
+
<span className="button__icon button__icon--leading">
|
|
69
|
+
<Icon name={leadingIcon!} size={iconSize} />
|
|
70
|
+
</span>
|
|
71
|
+
)}
|
|
72
|
+
<span className="button__label">{children}</span>
|
|
73
|
+
{hasTrailingIcon && (
|
|
74
|
+
<span className="button__icon button__icon--trailing">
|
|
75
|
+
<Icon name={trailingIcon!} size={iconSize} />
|
|
76
|
+
</span>
|
|
77
|
+
)}
|
|
78
|
+
</button>
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export default Button;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Check from '../Icon/icons/Check';
|
|
3
|
+
|
|
4
|
+
interface CheckboxProps {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
error?: boolean;
|
|
8
|
+
label?: string;
|
|
9
|
+
onChange?: (checked: boolean) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
leadingContent?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const Checkbox: React.FC<CheckboxProps> = ({
|
|
16
|
+
checked = false,
|
|
17
|
+
disabled = false,
|
|
18
|
+
error = false,
|
|
19
|
+
label,
|
|
20
|
+
onChange,
|
|
21
|
+
className = '',
|
|
22
|
+
id,
|
|
23
|
+
leadingContent
|
|
24
|
+
}) => {
|
|
25
|
+
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
|
26
|
+
if (!disabled && onChange) {
|
|
27
|
+
onChange(e.target.checked);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const getStateClasses = () => {
|
|
32
|
+
if (disabled) return 'checkbox--disabled';
|
|
33
|
+
if (error) return 'checkbox--error';
|
|
34
|
+
if (checked) return 'checkbox--checked';
|
|
35
|
+
return 'checkbox--default';
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const checkboxId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<div className={`checkbox-container ${getStateClasses()} ${className}`}>
|
|
42
|
+
<div className="checkbox-wrapper">
|
|
43
|
+
<input
|
|
44
|
+
type="checkbox"
|
|
45
|
+
id={checkboxId}
|
|
46
|
+
checked={checked}
|
|
47
|
+
disabled={disabled}
|
|
48
|
+
onChange={handleChange}
|
|
49
|
+
className="checkbox-input"
|
|
50
|
+
/>
|
|
51
|
+
<label htmlFor={checkboxId} className="checkbox-label">
|
|
52
|
+
<div className="checkbox-box">
|
|
53
|
+
{checked && (
|
|
54
|
+
<Check size="sm" className="checkbox-icon" />
|
|
55
|
+
)}
|
|
56
|
+
</div>
|
|
57
|
+
{leadingContent && (
|
|
58
|
+
<span className="checkbox-leading">{leadingContent}</span>
|
|
59
|
+
)}
|
|
60
|
+
{label && (
|
|
61
|
+
<span className="checkbox-text">{label}</span>
|
|
62
|
+
)}
|
|
63
|
+
</label>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default Checkbox;
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import Chevron from "./icons/Chevron";
|
|
3
|
+
import Check from "./icons/Check";
|
|
4
|
+
import Close from "./icons/Close";
|
|
5
|
+
import Search from "./icons/Search";
|
|
6
|
+
import User from "./icons/User";
|
|
7
|
+
import UserIcon from "./icons/UserIcon";
|
|
8
|
+
import CalendarIcon from "./icons/CalendarIcon";
|
|
9
|
+
import ArrivalIcon from "./icons/ArrivalIcon";
|
|
10
|
+
import DepartureIcon from "./icons/DepartureIcon";
|
|
11
|
+
import MapPinIcon from "./icons/MapPinIcon";
|
|
12
|
+
import DeleteIcon from "./icons/DeleteIcon";
|
|
13
|
+
import EyeIcon from "./icons/EyeIcon";
|
|
14
|
+
import InfoIcon from "./icons/InfoIcon";
|
|
15
|
+
import CheckCircleIcon from "./icons/CheckCircleIcon";
|
|
16
|
+
import StrollerIcon from "./icons/StrollerIcon";
|
|
17
|
+
import ChevronDownIcon from "./icons/ChevronDownIcon";
|
|
18
|
+
import CarIcon from "./icons/CarIcon";
|
|
19
|
+
import MoreIcon from "./icons/MoreIcon";
|
|
20
|
+
import Settings from "./icons/Settings";
|
|
21
|
+
import MenuIcon from "./icons/MenuIcon";
|
|
22
|
+
import MautourcoLogo from "./icons/MautoucoLogo";
|
|
23
|
+
import YouTubeIcon from "./icons/Youtube";
|
|
24
|
+
import FacebookIcon from "./icons/FacebookIcon";
|
|
25
|
+
import TwitterIcon from "./icons/TwitterIcon";
|
|
26
|
+
import LinkedInIcon from "./icons/LinkedInIcon";
|
|
27
|
+
|
|
28
|
+
export type IconName =
|
|
29
|
+
| "chevron-down"
|
|
30
|
+
| "chevron-up"
|
|
31
|
+
| "chevron-left"
|
|
32
|
+
| "chevron-right"
|
|
33
|
+
| "check"
|
|
34
|
+
| "close"
|
|
35
|
+
| "search"
|
|
36
|
+
| "user"
|
|
37
|
+
| "user-icon"
|
|
38
|
+
| "calendar"
|
|
39
|
+
| "arrival"
|
|
40
|
+
| "departure"
|
|
41
|
+
| "map-pin"
|
|
42
|
+
| "delete"
|
|
43
|
+
| "eye"
|
|
44
|
+
| "info"
|
|
45
|
+
| "check-circle"
|
|
46
|
+
| "stroller"
|
|
47
|
+
| "chevron-down-new"
|
|
48
|
+
| "car"
|
|
49
|
+
| "more"
|
|
50
|
+
| "settings"
|
|
51
|
+
| "menu"
|
|
52
|
+
| "mautourcoLogo"
|
|
53
|
+
| "youtube"
|
|
54
|
+
| "facebook"
|
|
55
|
+
| "linkedin"
|
|
56
|
+
| "twitter";
|
|
57
|
+
|
|
58
|
+
interface IconProps {
|
|
59
|
+
name: IconName;
|
|
60
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
61
|
+
className?: string;
|
|
62
|
+
color?: string;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const Icon: React.FC<IconProps> = ({
|
|
66
|
+
name,
|
|
67
|
+
size = "md",
|
|
68
|
+
className = "",
|
|
69
|
+
color,
|
|
70
|
+
}) => {
|
|
71
|
+
const iconProps = { size, className, color };
|
|
72
|
+
|
|
73
|
+
switch (name) {
|
|
74
|
+
case "chevron-down":
|
|
75
|
+
return <Chevron direction="down" {...iconProps} />;
|
|
76
|
+
case "chevron-up":
|
|
77
|
+
return <Chevron direction="up" {...iconProps} />;
|
|
78
|
+
case "chevron-left":
|
|
79
|
+
return <Chevron direction="left" {...iconProps} />;
|
|
80
|
+
case "chevron-right":
|
|
81
|
+
return <Chevron direction="right" {...iconProps} />;
|
|
82
|
+
case "check":
|
|
83
|
+
return <Check {...iconProps} />;
|
|
84
|
+
case "close":
|
|
85
|
+
return <Close {...iconProps} />;
|
|
86
|
+
case "search":
|
|
87
|
+
return <Search {...iconProps} />;
|
|
88
|
+
case "user":
|
|
89
|
+
return <User {...iconProps} />;
|
|
90
|
+
case "user-icon":
|
|
91
|
+
return <UserIcon {...iconProps} />;
|
|
92
|
+
case "calendar":
|
|
93
|
+
return <CalendarIcon {...iconProps} />;
|
|
94
|
+
case "arrival":
|
|
95
|
+
return <ArrivalIcon {...iconProps} />;
|
|
96
|
+
case "departure":
|
|
97
|
+
return <DepartureIcon {...iconProps} />;
|
|
98
|
+
case "map-pin":
|
|
99
|
+
return <MapPinIcon {...iconProps} />;
|
|
100
|
+
case "delete":
|
|
101
|
+
return <DeleteIcon {...iconProps} />;
|
|
102
|
+
case "eye":
|
|
103
|
+
return <EyeIcon {...iconProps} />;
|
|
104
|
+
case "info":
|
|
105
|
+
return <InfoIcon {...iconProps} />;
|
|
106
|
+
case "check-circle":
|
|
107
|
+
return <CheckCircleIcon {...iconProps} />;
|
|
108
|
+
case "stroller":
|
|
109
|
+
return <StrollerIcon {...iconProps} />;
|
|
110
|
+
case "chevron-down-new":
|
|
111
|
+
return <ChevronDownIcon {...iconProps} />;
|
|
112
|
+
case "car":
|
|
113
|
+
return <CarIcon {...iconProps} />;
|
|
114
|
+
case "more":
|
|
115
|
+
return <MoreIcon {...iconProps} />;
|
|
116
|
+
case "settings":
|
|
117
|
+
return <Settings {...iconProps} />;
|
|
118
|
+
case "menu":
|
|
119
|
+
return <MenuIcon {...iconProps} />;
|
|
120
|
+
case "mautourcoLogo":
|
|
121
|
+
return <MautourcoLogo {...iconProps} />;
|
|
122
|
+
case "youtube":
|
|
123
|
+
return <YouTubeIcon {...iconProps} />;
|
|
124
|
+
case "facebook":
|
|
125
|
+
return <FacebookIcon {...iconProps} />;
|
|
126
|
+
case "twitter":
|
|
127
|
+
return <TwitterIcon {...iconProps} />;
|
|
128
|
+
case "linkedin":
|
|
129
|
+
return <LinkedInIcon {...iconProps} />;
|
|
130
|
+
default:
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export default Icon;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface ArrivalIconProps {
|
|
4
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
|
+
className?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
const ArrivalIcon: React.FC<ArrivalIconProps> = ({
|
|
10
|
+
size = 'md',
|
|
11
|
+
className = '',
|
|
12
|
+
color
|
|
13
|
+
}) => {
|
|
14
|
+
const getSizeClasses = () => {
|
|
15
|
+
switch (size) {
|
|
16
|
+
case 'xs': return 'w-3 h-3';
|
|
17
|
+
case 'sm': return 'w-4 h-4';
|
|
18
|
+
case 'md': return 'w-5 h-5';
|
|
19
|
+
case 'lg': return 'w-6 h-6';
|
|
20
|
+
case 'xl': return 'w-8 h-8';
|
|
21
|
+
default: return 'w-5 h-5';
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// Base viewBox covers both plane and baseline
|
|
26
|
+
const sizeClasses = getSizeClasses();
|
|
27
|
+
const colorClass = color ? `text-${color}` : 'text-current';
|
|
28
|
+
const classes = `${sizeClasses} ${colorClass} ${className}`;
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<svg
|
|
32
|
+
className={classes}
|
|
33
|
+
viewBox="0 0 15 15"
|
|
34
|
+
fill="none"
|
|
35
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
36
|
+
>
|
|
37
|
+
{/* Plane */}
|
|
38
|
+
<path
|
|
39
|
+
d="M8.61046 1.06519C8.82677 1.38315 8.95172 1.75476 8.96985 2.13883L9.14241 5.47813L9.1424 5.48576C9.1471 5.59416 9.18213 5.69947 9.24321 5.78917C9.30439 5.87888 9.38987 5.94968 9.48914 5.9937L9.49114 5.99458L12.3255 7.26408L12.5211 7.36061C12.9036 7.57143 13.2202 7.88435 13.4351 8.26453L13.5335 8.45952L13.5364 8.46603L13.8064 9.08336C13.9069 9.30978 13.9559 9.555 13.9504 9.80272C13.9449 10.0525 13.8835 10.2979 13.7713 10.5212C13.659 10.7447 13.498 10.9412 13.3006 11.0947C13.1057 11.2463 12.8793 11.3511 12.6385 11.4056L12.639 11.4078L12.0869 11.5361C11.5998 11.6497 11.0835 11.6092 10.6107 11.406L10.6027 11.4024L1.86857 7.52809C1.52107 7.3737 1.22329 7.12683 1.0067 6.81696C0.966794 6.77487 0.930689 6.72861 0.90107 6.67747L0.101396 5.29664C-0.0184861 5.08962 -0.0324841 4.83735 0.0638278 4.61837L1.26385 1.88991C1.43061 1.51075 1.87397 1.33858 2.25314 1.50534L3.00271 1.83502C3.30041 1.96515 3.56325 2.16333 3.77081 2.41331C3.92688 2.60133 4.04874 2.81484 4.13044 3.04381L4.19826 3.27689L4.20767 3.32492L4.22324 3.4186C4.2445 3.50286 4.28365 3.58156 4.3392 3.64852C4.39743 3.71867 4.4715 3.77429 4.55507 3.81073L4.56444 3.81438L4.63703 3.84678L6.13231 0.448073C6.21232 0.266158 6.36131 0.123199 6.54646 0.0510128C6.73183 -0.0211105 6.93952 -0.0165731 7.1216 0.0635088L7.73925 0.335162C8.09167 0.492892 8.39324 0.745985 8.61046 1.06519ZM7.37046 1.90915C7.32544 1.84298 7.26771 1.78679 7.20061 1.74427L5.70506 5.14573C5.62443 5.32903 5.47367 5.47215 5.28667 5.54378C5.09961 5.61541 4.89164 5.6095 4.70916 5.52691L3.95523 5.18434L3.9551 5.18572C3.65673 5.05555 3.39292 4.85703 3.18501 4.60655C2.9771 4.35603 2.83052 4.06025 2.75756 3.74297C2.75392 3.72716 2.75075 3.71096 2.74815 3.69494L2.73246 3.59501C2.71083 3.51301 2.67087 3.43671 2.61662 3.37134C2.55855 3.30146 2.48536 3.24566 2.40212 3.20925L2.39874 3.20825L2.33553 3.17949L1.59002 4.87453L2.1285 5.8046C2.15834 5.8393 2.18558 5.87656 2.20893 5.91679C2.27056 6.02298 2.36437 6.10671 2.47654 6.15663L11.2034 10.0268C11.377 10.1014 11.5654 10.1173 11.7461 10.0751L12.3068 9.94482C12.3334 9.93896 12.3585 9.92741 12.38 9.9107C12.4014 9.89403 12.4186 9.87241 12.4309 9.84816C12.4431 9.82382 12.4501 9.79678 12.4507 9.76955C12.4512 9.74235 12.4456 9.71519 12.4344 9.69037L12.4316 9.68386L12.1639 9.07092C12.0764 8.87771 11.92 8.72384 11.7255 8.63906L11.7189 8.63568L8.87855 7.36354C8.52458 7.20605 8.2213 6.95338 8.00322 6.63313C7.78468 6.3122 7.6599 5.93628 7.64347 5.54836L7.47164 2.21606L7.4714 2.21119C7.46656 2.10317 7.43127 1.99855 7.37046 1.90915Z"
|
|
40
|
+
fill="currentColor"
|
|
41
|
+
/>
|
|
42
|
+
{/* Baseline */}
|
|
43
|
+
<path
|
|
44
|
+
d="M14.083 0C14.4972 0 14.833 0.335825 14.833 0.75C14.833 1.16421 14.4972 1.5 14.083 1.5H0.75C0.335786 1.5 0 1.16421 0 0.75C4.48366e-05 0.335825 0.335814 0 0.75 0H14.083Z"
|
|
45
|
+
transform="translate(0 13)"
|
|
46
|
+
fill="currentColor"
|
|
47
|
+
/>
|
|
48
|
+
</svg>
|
|
49
|
+
);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export default ArrivalIcon;
|