mautourco-components 0.1.2 → 0.2.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 +10 -6
- package/dist/components/atoms/Checkbox/Checkbox.js +7 -1
- package/dist/components/atoms/Icon/Icon.d.ts +1 -1
- package/dist/components/atoms/Icon/Icon.js +22 -1
- package/dist/components/atoms/Icon/icons/BuildingIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/BuildingIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/HomeIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/HomeIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/MinusIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/MinusIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/PlaneIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/PlaneIcon.js +36 -0
- package/dist/components/atoms/Icon/icons/PlusIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/PlusIcon.js +25 -0
- package/dist/components/atoms/Icon/icons/ShipIcon.d.ts +8 -0
- package/dist/components/atoms/Icon/icons/ShipIcon.js +36 -0
- package/dist/components/atoms/Illustration/Illustration.d.ts +14 -0
- package/dist/components/atoms/Illustration/Illustration.js +33 -0
- package/dist/components/atoms/Illustration/illustrations.d.ts +51 -0
- package/dist/components/atoms/Illustration/illustrations.js +97 -0
- package/dist/components/atoms/RatingStar/RatingStar.d.ts +40 -0
- package/dist/components/atoms/RatingStar/RatingStar.js +54 -0
- package/dist/components/atoms/SegmentedButton/SegmentedButton.d.ts +27 -0
- package/dist/components/atoms/SegmentedButton/SegmentedButton.js +49 -0
- package/dist/components/atoms/Slider/Slider.d.ts +52 -0
- package/dist/components/atoms/Slider/Slider.js +30 -0
- package/dist/components/molecules/Calendar/CalendarInput.d.ts +34 -0
- package/dist/components/molecules/Calendar/CalendarInput.js +49 -0
- package/dist/components/molecules/Calendar/DateTime.d.ts +25 -0
- package/dist/components/molecules/Calendar/DateTime.js +106 -0
- package/dist/components/molecules/Calendar/TimePicker.d.ts +16 -0
- package/dist/components/molecules/Calendar/TimePicker.js +91 -0
- package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +34 -0
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +120 -0
- package/dist/components/molecules/LocationDropdown/index.d.ts +2 -0
- package/dist/components/molecules/LocationDropdown/index.js +1 -0
- package/dist/components/molecules/RatingTab/RatingTab.d.ts +39 -0
- package/dist/components/molecules/RatingTab/RatingTab.js +41 -0
- package/dist/components/molecules/TabGroup/TabGroup.d.ts +17 -0
- package/dist/components/molecules/TabGroup/TabGroup.js +30 -0
- package/dist/components/organisms/CardContainer/CardContainer.d.ts +37 -0
- package/dist/components/organisms/CardContainer/CardContainer.js +27 -0
- package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +15 -0
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +66 -0
- package/dist/components/organisms/Dialog/Dialog.d.ts +103 -0
- package/dist/components/organisms/Dialog/Dialog.js +162 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +63 -0
- package/dist/components/organisms/PaxSelector/PaxSelector.js +402 -0
- package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +54 -0
- package/dist/components/organisms/RoundTrip/RoundTrip.js +179 -0
- package/dist/components/organisms/RoundTrip/index.d.ts +2 -0
- package/dist/components/organisms/RoundTrip/index.js +1 -0
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +35 -0
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +192 -0
- package/dist/components/organisms/SearchBarTransfer/index.d.ts +2 -0
- package/dist/components/organisms/SearchBarTransfer/index.js +1 -0
- package/dist/components/organisms/TransferLine/TransferLine.d.ts +53 -0
- package/dist/components/organisms/TransferLine/TransferLine.js +179 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +56 -0
- package/dist/components/ui/calendar.d.ts +8 -0
- package/dist/components/ui/calendar.js +87 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +42 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +18 -0
- package/dist/lib/utils.d.ts +7 -0
- package/dist/lib/utils.js +13 -0
- package/dist/styles/components/avatar.css +2165 -0
- package/dist/styles/components/calendar.css +2214 -0
- package/dist/styles/components/checkbox.css +2212 -0
- package/dist/styles/components/dropdown.css +2295 -0
- package/dist/styles/components/forms.css +2229 -0
- package/dist/styles/components/illustration.css +2081 -0
- package/dist/styles/components/molecule/calendarInput.css +2308 -0
- package/dist/styles/components/molecule/dateTime.css +2092 -0
- package/dist/styles/components/molecule/location-dropdown.css +2405 -0
- package/dist/styles/components/molecule/timePicker.css +2204 -0
- package/dist/styles/components/multiselect-dropdown.css +2312 -0
- package/dist/styles/components/organism/card-container.css +2128 -0
- package/dist/styles/components/organism/dialog.css +2441 -0
- package/dist/styles/components/organism/footer.css +2387 -0
- package/dist/styles/components/organism/pax-selector.css +2800 -0
- package/dist/styles/components/organism/round-trip.css +2143 -0
- package/dist/styles/components/organism/search-bar-transfer.css +2258 -0
- package/dist/styles/components/organism/topnavigation.css +2499 -0
- package/dist/styles/components/organism/transfer-line.css +2208 -0
- package/dist/styles/components/rating-star.css +2113 -0
- package/dist/styles/components/rating-tab.css +2157 -0
- package/dist/styles/components/scrollbar.css +2143 -0
- package/dist/styles/components/segmented-button.css +2218 -0
- package/dist/styles/components/selected-value.css +2159 -0
- package/dist/styles/components/slider.css +2164 -0
- package/dist/styles/components/typography.css +2417 -0
- package/dist/styles/tokens/_tokens.scss +2072 -0
- package/dist/styles/tokens/tokens.css +2075 -0
- package/package.json +24 -12
- package/src/components/atoms/Button/Button.css +34 -34
- package/src/components/atoms/Checkbox/Checkbox.tsx +83 -69
- package/src/components/atoms/Icon/Icon.tsx +30 -2
- package/src/components/atoms/Icon/icons/BuildingIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/CalendarOutlineIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/HomeIcon.tsx +52 -0
- package/src/components/atoms/Icon/icons/MinusIcon.tsx +45 -0
- package/src/components/atoms/Icon/icons/PlaneIcon.tsx +50 -0
- package/src/components/atoms/Icon/icons/PlusIcon.tsx +45 -0
- package/src/components/atoms/Icon/icons/ShipIcon.tsx +50 -0
- package/src/components/atoms/Illustration/Illustration.tsx +28 -0
- package/src/components/atoms/Illustration/illustrations.ts +116 -0
- package/src/components/atoms/RatingStar/RatingStar.tsx +114 -0
- package/src/components/atoms/SegmentedButton/SegmentedButton.tsx +94 -0
- package/src/components/atoms/Slider/Slider.tsx +95 -0
- package/src/components/molecules/Calendar/CalendarInput.tsx +135 -0
- package/src/components/molecules/Calendar/DateTime.tsx +172 -0
- package/src/components/molecules/Calendar/TimePicker.tsx +174 -0
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +234 -0
- package/src/components/molecules/LocationDropdown/index.ts +2 -0
- package/src/components/molecules/RatingTab/RatingTab.tsx +96 -0
- package/src/components/molecules/TabGroup/TabGroup.tsx +60 -0
- package/src/components/molecules/UserCard/UserCard.stories.tsx +2 -2
- package/src/components/organisms/CardContainer/CardContainer.tsx +66 -0
- package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +110 -0
- package/src/components/organisms/Dialog/Dialog.tsx +352 -0
- package/src/components/organisms/PaxSelector/PaxSelector.tsx +979 -0
- package/src/components/organisms/RoundTrip/RoundTrip.tsx +335 -0
- package/src/components/organisms/RoundTrip/index.ts +2 -0
- package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +388 -0
- package/src/components/organisms/SearchBarTransfer/index.ts +2 -0
- package/src/components/organisms/TransferLine/TransferLine.tsx +369 -0
- package/src/components/ui/button.tsx +60 -0
- package/src/components/ui/calendar.tsx +246 -0
- package/src/components/ui/popover.tsx +46 -0
- package/src/styles/components/calendar.css +86 -0
- package/src/styles/components/checkbox.css +130 -132
- package/src/styles/components/dropdown.css +40 -40
- package/src/styles/components/forms.css +51 -51
- package/src/styles/components/illustration.css +7 -0
- package/src/styles/components/molecule/calendarInput.css +157 -0
- package/src/styles/components/molecule/dateTime.css +14 -0
- package/src/styles/components/molecule/location-dropdown.css +204 -0
- package/src/styles/components/molecule/timePicker.css +79 -0
- package/src/styles/components/multiselect-dropdown.css +230 -231
- package/src/styles/components/organism/card-container.css +49 -0
- package/src/styles/components/organism/dialog.css +241 -0
- package/src/styles/components/organism/pax-selector.css +702 -0
- package/src/styles/components/organism/round-trip.css +55 -0
- package/src/styles/components/organism/search-bar-transfer.css +128 -0
- package/src/styles/components/organism/transfer-line.css +86 -0
- package/src/styles/components/rating-star.css +39 -0
- package/src/styles/components/rating-tab.css +83 -0
- package/src/styles/components/segmented-button.css +134 -0
- package/src/styles/components/selected-value.css +16 -16
- package/src/styles/components/slider.css +86 -0
- package/src/styles/components/typography.css +36 -36
- package/src/styles/tokens/tokens.css +1093 -1093
- package/dist/components/atoms/Typography/Heading/Heading.d.ts +0 -9
- package/dist/components/atoms/Typography/Heading/Heading.js +0 -25
- package/dist/components/atoms/Typography/Text/Text.d.ts +0 -10
- package/dist/components/atoms/Typography/Text/Text.js +0 -77
package/README.md
CHANGED
|
@@ -14,11 +14,14 @@ npm install mautourco-components
|
|
|
14
14
|
### 1. Importer les styles
|
|
15
15
|
```tsx
|
|
16
16
|
// Dans votre index.tsx ou App.tsx
|
|
17
|
-
|
|
18
|
-
import 'mautourco-components/
|
|
19
|
-
import 'mautourco-components/
|
|
20
|
-
import 'mautourco-components/
|
|
21
|
-
import 'mautourco-components/
|
|
17
|
+
// Utilisez les fichiers CSS compilés depuis dist/styles (recommandé)
|
|
18
|
+
import 'mautourco-components/dist/styles/tokens/tokens.css';
|
|
19
|
+
import 'mautourco-components/dist/styles/components/forms.css';
|
|
20
|
+
import 'mautourco-components/dist/styles/components/typography.css';
|
|
21
|
+
import 'mautourco-components/dist/styles/components/organism/topnavigation.css';
|
|
22
|
+
import 'mautourco-components/dist/styles/components/organism/footer.css';
|
|
23
|
+
|
|
24
|
+
// Note: Les CSS sont précompilés avec Tailwind v3, donc compatibles avec Tailwind v3 et v4
|
|
22
25
|
```
|
|
23
26
|
|
|
24
27
|
### 2. Utiliser les composants
|
|
@@ -176,7 +179,8 @@ npm publish # Publication sur npm (après login)
|
|
|
176
179
|
|
|
177
180
|
## Notes importantes
|
|
178
181
|
|
|
179
|
-
- **Styles** : Les composants nécessitent l'import des fichiers CSS correspondants
|
|
182
|
+
- **Styles** : Les composants nécessitent l'import des fichiers CSS correspondants depuis `dist/styles/`
|
|
183
|
+
- **CSS compilés** : Les CSS sont précompilés avec Tailwind v3 lors du build, donc compatibles avec Tailwind v3 et v4
|
|
180
184
|
- **TypeScript** : Tous les composants sont typés
|
|
181
185
|
- **Design tokens** : Générés automatiquement depuis le dossier `tokens/`
|
|
182
186
|
|
|
@@ -18,6 +18,12 @@ var Checkbox = function (_a) {
|
|
|
18
18
|
onChange(e.target.checked);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
var handleLabelClick = function (e) {
|
|
22
|
+
if (!disabled && onChange) {
|
|
23
|
+
e.preventDefault();
|
|
24
|
+
onChange(!checked);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
21
27
|
var getStateClasses = function () {
|
|
22
28
|
if (disabled)
|
|
23
29
|
return 'checkbox--disabled';
|
|
@@ -28,6 +34,6 @@ var Checkbox = function (_a) {
|
|
|
28
34
|
return 'checkbox--default';
|
|
29
35
|
};
|
|
30
36
|
var checkboxId = id || "checkbox-".concat(Math.random().toString(36).substr(2, 9));
|
|
31
|
-
return (_jsx("div", __assign({ className: "checkbox-container ".concat(getStateClasses(), " ").concat(className) }, { children: _jsxs("
|
|
37
|
+
return (_jsx("div", __assign({ className: "checkbox-container ".concat(getStateClasses(), " ").concat(className) }, { children: _jsxs("label", __assign({ htmlFor: checkboxId, className: "checkbox-label", onClick: handleLabelClick }, { children: [_jsx("input", { type: "checkbox", id: checkboxId, checked: checked, disabled: disabled, onChange: handleChange, className: "checkbox-input", readOnly: true }), _jsx("div", __assign({ className: "checkbox-button" }, { children: _jsx("div", __assign({ className: "checkbox-touch-target" }, { children: _jsx("div", __assign({ className: "checkbox-box" }, { children: checked && (_jsx(Check, { size: "sm", className: "checkbox-icon" })) })) })) })), leadingContent && (_jsx("span", __assign({ className: "checkbox-leading" }, { children: leadingContent }))), label && (_jsx("span", __assign({ className: "checkbox-text" }, { children: label })))] })) })));
|
|
32
38
|
};
|
|
33
39
|
export default Checkbox;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export type IconName = "chevron-down" | "chevron-up" | "chevron-left" | "chevron-right" | "check" | "close" | "search" | "user" | "user-icon" | "calendar" | "arrival" | "departure" | "map-pin" | "delete" | "eye" | "info" | "check-circle" | "stroller" | "chevron-down-new" | "car" | "more" | "settings" | "menu" | "mautourcoLogo" | "youtube" | "facebook" | "linkedin" | "twitter";
|
|
2
|
+
export type IconName = "chevron-down" | "chevron-up" | "chevron-left" | "chevron-right" | "check" | "close" | "search" | "user" | "user-icon" | "calendar" | 'calendar-outline' | "arrival" | "departure" | "map-pin" | "delete" | "eye" | "info" | "check-circle" | "stroller" | "chevron-down-new" | "car" | "more" | "settings" | "menu" | "mautourcoLogo" | "youtube" | "facebook" | "linkedin" | "twitter" | "plus" | "minus" | "home" | "plane" | "ship" | "building";
|
|
3
3
|
interface IconProps {
|
|
4
4
|
name: IconName;
|
|
5
5
|
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
@@ -35,6 +35,13 @@ import YouTubeIcon from "./icons/Youtube";
|
|
|
35
35
|
import FacebookIcon from "./icons/FacebookIcon";
|
|
36
36
|
import TwitterIcon from "./icons/TwitterIcon";
|
|
37
37
|
import LinkedInIcon from "./icons/LinkedInIcon";
|
|
38
|
+
import CalendarOutlineIcon from "./icons/CalendarOutlineIcon";
|
|
39
|
+
import PlusIcon from "./icons/PlusIcon";
|
|
40
|
+
import MinusIcon from "./icons/MinusIcon";
|
|
41
|
+
import HomeIcon from "./icons/HomeIcon";
|
|
42
|
+
import PlaneIcon from "./icons/PlaneIcon";
|
|
43
|
+
import ShipIcon from "./icons/ShipIcon";
|
|
44
|
+
import BuildingIcon from "./icons/BuildingIcon";
|
|
38
45
|
var Icon = function (_a) {
|
|
39
46
|
var name = _a.name, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, color = _a.color;
|
|
40
47
|
var iconProps = { size: size, className: className, color: color };
|
|
@@ -59,7 +66,9 @@ var Icon = function (_a) {
|
|
|
59
66
|
return _jsx(UserIcon, __assign({}, iconProps));
|
|
60
67
|
case "calendar":
|
|
61
68
|
return _jsx(CalendarIcon, __assign({}, iconProps));
|
|
62
|
-
case
|
|
69
|
+
case 'calendar-outline':
|
|
70
|
+
return _jsx(CalendarOutlineIcon, __assign({}, iconProps));
|
|
71
|
+
case 'arrival':
|
|
63
72
|
return _jsx(ArrivalIcon, __assign({}, iconProps));
|
|
64
73
|
case "departure":
|
|
65
74
|
return _jsx(DepartureIcon, __assign({}, iconProps));
|
|
@@ -95,6 +104,18 @@ var Icon = function (_a) {
|
|
|
95
104
|
return _jsx(TwitterIcon, __assign({}, iconProps));
|
|
96
105
|
case "linkedin":
|
|
97
106
|
return _jsx(LinkedInIcon, __assign({}, iconProps));
|
|
107
|
+
case "plus":
|
|
108
|
+
return _jsx(PlusIcon, __assign({}, iconProps));
|
|
109
|
+
case "minus":
|
|
110
|
+
return _jsx(MinusIcon, __assign({}, iconProps));
|
|
111
|
+
case "home":
|
|
112
|
+
return _jsx(HomeIcon, __assign({}, iconProps));
|
|
113
|
+
case "plane":
|
|
114
|
+
return _jsx(PlaneIcon, __assign({}, iconProps));
|
|
115
|
+
case "ship":
|
|
116
|
+
return _jsx(ShipIcon, __assign({}, iconProps));
|
|
117
|
+
case "building":
|
|
118
|
+
return _jsx(BuildingIcon, __assign({}, iconProps));
|
|
98
119
|
default:
|
|
99
120
|
return null;
|
|
100
121
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var BuildingIcon = function (_a) {
|
|
14
|
+
var _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, color = _a.color;
|
|
15
|
+
var getSizeClasses = function () {
|
|
16
|
+
switch (size) {
|
|
17
|
+
case "xs":
|
|
18
|
+
return "w-3 h-3";
|
|
19
|
+
case "sm":
|
|
20
|
+
return "w-4 h-4";
|
|
21
|
+
case "md":
|
|
22
|
+
return "w-5 h-5";
|
|
23
|
+
case "lg":
|
|
24
|
+
return "w-6 h-6";
|
|
25
|
+
case "xl":
|
|
26
|
+
return "w-8 h-8";
|
|
27
|
+
default:
|
|
28
|
+
return "w-5 h-5";
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var sizeClasses = getSizeClasses();
|
|
32
|
+
var colorClass = color ? "text-".concat(color) : "text-current";
|
|
33
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
34
|
+
return (_jsx("svg", __assign({ className: classes, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M13.916 7.33331C13.916 7.1786 13.8545 7.0306 13.7451 6.9212C13.6357 6.81181 13.4877 6.75031 13.333 6.75031H12.75V13.9163H13.333C13.4877 13.9163 13.6357 13.8548 13.7451 13.7454C13.8545 13.636 13.916 13.488 13.916 13.3333V7.33331ZM9.33301 11.2503L9.41016 11.2542C9.78811 11.2928 10.083 11.6122 10.083 12.0003C10.0828 12.3883 9.78804 12.7078 9.41016 12.7464L9.33301 12.7503H6.66602C6.25206 12.7501 5.91619 12.4143 5.91602 12.0003C5.91602 11.5862 6.25195 11.2505 6.66602 11.2503H9.33301ZM9.33301 8.58331C9.74722 8.58331 10.083 8.9191 10.083 9.33331C10.083 9.74753 9.74722 10.0833 9.33301 10.0833H6.66602C6.25195 10.0831 5.91602 9.74742 5.91602 9.33331C5.91602 8.91921 6.25195 8.58349 6.66602 8.58331H9.33301ZM9.33301 5.91632C9.74711 5.91632 10.0828 6.25226 10.083 6.66632C10.083 7.08053 9.74722 7.41632 9.33301 7.41632H6.66602C6.25195 7.41614 5.91602 7.08043 5.91602 6.66632C5.91619 6.25237 6.25206 5.9165 6.66602 5.91632H9.33301ZM9.33301 3.25031L9.41016 3.25421C9.78811 3.29285 10.083 3.61215 10.083 4.00031C10.0828 4.38834 9.78804 4.7078 9.41016 4.7464L9.33301 4.75031H6.66602C6.25206 4.75013 5.91619 4.41426 5.91602 4.00031C5.91602 3.5862 6.25195 3.25048 6.66602 3.25031H9.33301ZM2.08301 13.3333C2.08301 13.4879 2.14461 13.636 2.25391 13.7454C2.36323 13.8547 2.51142 13.9162 2.66602 13.9163H3.25V8.75031H2.66602C2.51142 8.75039 2.36323 8.81188 2.25391 8.9212C2.14461 9.03058 2.08301 9.17868 2.08301 9.33331V13.3333ZM11.25 2.66632C11.2499 2.51181 11.1883 2.36352 11.0791 2.25421C10.9697 2.14481 10.8207 2.08331 10.666 2.08331H5.33301C5.17837 2.08331 5.03028 2.14492 4.9209 2.25421C4.81158 2.36353 4.75009 2.51173 4.75 2.66632V13.9163H11.25V2.66632ZM12.75 5.25031H13.333C13.8855 5.25031 14.415 5.46996 14.8057 5.86066C15.1964 6.25136 15.416 6.78078 15.416 7.33331V13.3333C15.416 13.8858 15.1964 14.4153 14.8057 14.806C14.4638 15.1478 14.0159 15.3592 13.5391 15.4066L13.333 15.4163H2.66602C2.1136 15.4162 1.58398 15.1966 1.19336 14.806C0.80276 14.4153 0.583008 13.8858 0.583008 13.3333V9.33331C0.583008 8.78086 0.80276 8.25134 1.19336 7.86066C1.58398 7.47003 2.1136 7.25039 2.66602 7.25031H3.25V2.66632C3.25009 2.1139 3.46973 1.58429 3.86035 1.19366C4.25104 0.803066 4.78055 0.583313 5.33301 0.583313H10.666C11.2186 0.583313 11.7489 0.802964 12.1396 1.19366C12.5302 1.58427 12.7499 2.11398 12.75 2.66632V5.25031Z", fill: "currentColor" }) })));
|
|
35
|
+
};
|
|
36
|
+
export default BuildingIcon;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var CalendarOutlineIcon = function (_a) {
|
|
14
|
+
var _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, color = _a.color;
|
|
15
|
+
var getSizeClasses = function () {
|
|
16
|
+
switch (size) {
|
|
17
|
+
case "xs":
|
|
18
|
+
return "w-3 h-3";
|
|
19
|
+
case "sm":
|
|
20
|
+
return "w-4 h-4";
|
|
21
|
+
case "md":
|
|
22
|
+
return "w-5 h-5";
|
|
23
|
+
case "lg":
|
|
24
|
+
return "w-6 h-6";
|
|
25
|
+
case "xl":
|
|
26
|
+
return "w-8 h-8";
|
|
27
|
+
default:
|
|
28
|
+
return "w-5 h-5";
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var sizeClasses = getSizeClasses();
|
|
32
|
+
var colorClass = color ? "text-".concat(color) : "text-current";
|
|
33
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
34
|
+
return (_jsx("svg", __assign({ className: classes, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M20 11H4V20C4 20.5523 4.44771 21 5 21H19C19.5523 21 20 20.5523 20 20V11ZM11 18V15C10.4477 15 10 14.5523 10 14C10 13.4477 10.4477 13 11 13H12C12.5523 13 13 13.4477 13 14V18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18ZM15 6V5H9V6C9 6.55228 8.55228 7 8 7C7.44772 7 7 6.55228 7 6V5H5C4.44772 5 4 5.44772 4 6V9H20V6C20 5.44771 19.5523 5 19 5H17V6C17 6.55228 16.5523 7 16 7C15.4477 7 15 6.55228 15 6ZM22 20C22 21.6569 20.6569 23 19 23H5C3.34315 23 2 21.6569 2 20V6C2 4.34315 3.34315 3 5 3H7V2C7 1.44772 7.44772 1 8 1C8.55228 1 9 1.44772 9 2V3H15V2C15 1.44772 15.4477 1 16 1C16.5523 1 17 1.44772 17 2V3H19C20.6569 3 22 4.34315 22 6V20Z", fill: "black" }) })));
|
|
35
|
+
};
|
|
36
|
+
export default CalendarOutlineIcon;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
var sizeMap = {
|
|
14
|
+
xs: 12,
|
|
15
|
+
sm: 16,
|
|
16
|
+
md: 20,
|
|
17
|
+
lg: 24,
|
|
18
|
+
xl: 32,
|
|
19
|
+
};
|
|
20
|
+
var HomeIcon = function (_a) {
|
|
21
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.color, color = _d === void 0 ? 'currentColor' : _d;
|
|
22
|
+
var pixelSize = sizeMap[size];
|
|
23
|
+
return (_jsxs("svg", __assign({ width: pixelSize, height: pixelSize, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, { children: [_jsx("path", { d: "M2 6L8 1.5L14 6V13.5C14 13.7652 13.8946 14.0196 13.7071 14.2071C13.5196 14.3946 13.2652 14.5 13 14.5H3C2.73478 14.5 2.48043 14.3946 2.29289 14.2071C2.10536 14.0196 2 13.7652 2 13.5V6Z", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M6 14.5V8H10V14.5", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] })));
|
|
24
|
+
};
|
|
25
|
+
export default HomeIcon;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var sizeMap = {
|
|
14
|
+
xs: 12,
|
|
15
|
+
sm: 16,
|
|
16
|
+
md: 20,
|
|
17
|
+
lg: 24,
|
|
18
|
+
xl: 32,
|
|
19
|
+
};
|
|
20
|
+
var MinusIcon = function (_a) {
|
|
21
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.color, color = _d === void 0 ? 'currentColor' : _d;
|
|
22
|
+
var pixelSize = sizeMap[size];
|
|
23
|
+
return (_jsx("svg", __assign({ width: pixelSize, height: pixelSize, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, { children: _jsx("path", { d: "M2.5 8H13.5", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
24
|
+
};
|
|
25
|
+
export default MinusIcon;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var PlaneIcon = function (_a) {
|
|
14
|
+
var _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, color = _a.color;
|
|
15
|
+
var getSizeClasses = function () {
|
|
16
|
+
switch (size) {
|
|
17
|
+
case "xs":
|
|
18
|
+
return "w-3 h-3";
|
|
19
|
+
case "sm":
|
|
20
|
+
return "w-4 h-4";
|
|
21
|
+
case "md":
|
|
22
|
+
return "w-5 h-5";
|
|
23
|
+
case "lg":
|
|
24
|
+
return "w-6 h-6";
|
|
25
|
+
case "xl":
|
|
26
|
+
return "w-8 h-8";
|
|
27
|
+
default:
|
|
28
|
+
return "w-5 h-5";
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var sizeClasses = getSizeClasses();
|
|
32
|
+
var colorClass = color ? "text-".concat(color) : "text-current";
|
|
33
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
34
|
+
return (_jsx("svg", __assign({ className: classes, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M12.404 1.28316C12.9969 1.10074 13.6682 1.04741 14.2253 1.27925L14.3347 1.32906L14.4382 1.39156C14.5361 1.46211 14.6161 1.55601 14.6706 1.665C14.959 2.24206 14.911 2.96347 14.7165 3.59566C14.5135 4.25542 14.1155 4.94468 13.53 5.53023L11.487 7.57222L12.5993 12.6396L12.6023 12.6533C12.7359 13.3225 12.4342 13.8619 11.9831 14.2002C11.9305 14.2396 11.8724 14.2714 11.8112 14.2959L11.4782 14.4296C10.8963 14.6624 10.1765 14.5744 9.73312 13.9834C9.72414 13.9714 9.715 13.9587 9.70675 13.9462L7.78878 11.041L6.74972 11.7343V13.333C6.74972 13.5318 6.67054 13.7226 6.52999 13.8632L5.863 14.5302C5.7042 14.6889 5.48291 14.7681 5.25949 14.7461C5.03588 14.7239 4.83334 14.6029 4.7087 14.416L3.4587 12.54L1.5837 11.291C1.39675 11.1663 1.27577 10.9638 1.25363 10.7402C1.2316 10.5168 1.31074 10.2955 1.46945 10.1367L2.13644 9.46968L2.2507 9.37593C2.37295 9.2945 2.51765 9.24996 2.66671 9.24996H4.26534L4.95773 8.20992L2.05343 6.29293C2.04094 6.28468 2.0283 6.27554 2.01632 6.26656C1.42527 5.82322 1.33728 5.10334 1.57003 4.52144L1.62374 4.41402L1.82296 4.08101C2.12686 3.52684 2.72307 3.27294 3.3464 3.39742L3.36007 3.40035L8.42648 4.51168L10.4694 2.46968C11.055 1.88413 11.7443 1.48619 12.404 1.28316ZM13.3737 2.62496C13.2386 2.62651 13.0619 2.65016 12.8454 2.71675C12.4219 2.84707 11.9444 3.11582 11.53 3.53023L9.19699 5.86324C9.01615 6.04407 8.75537 6.12022 8.50558 6.06539L3.09347 4.87789L2.96261 5.09566L6.41281 7.37398C6.57926 7.48391 6.69552 7.656 6.73507 7.85152C6.77452 8.04695 6.73434 8.25008 6.62374 8.41597L5.29074 10.416C5.1517 10.6245 4.91735 10.7498 4.66671 10.75H3.47628L4.41574 11.3759L4.52999 11.4697C4.56483 11.5045 4.59628 11.5427 4.62374 11.5839L5.24972 12.5224V11.333C5.24983 11.0823 5.37515 10.848 5.5837 10.7089L7.5837 9.37593L7.71456 9.3066C7.85082 9.25056 8.00161 9.23502 8.14816 9.26461C8.34368 9.30415 8.51577 9.42041 8.6257 9.58687L10.906 13.041C10.9104 13.0395 10.9162 13.0392 10.9216 13.0371L11.1306 12.9521C11.1303 12.9506 11.1309 12.9489 11.1306 12.9472H11.1296L9.93429 7.4941C9.87946 7.24431 9.95561 6.98353 10.1364 6.80269L12.4694 4.46968C12.8839 4.05528 13.1526 3.57778 13.2829 3.15425C13.3497 2.93728 13.3723 2.76023 13.3737 2.62496Z", fill: "currentColor" }) })));
|
|
35
|
+
};
|
|
36
|
+
export default PlaneIcon;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var sizeMap = {
|
|
14
|
+
xs: 12,
|
|
15
|
+
sm: 16,
|
|
16
|
+
md: 20,
|
|
17
|
+
lg: 24,
|
|
18
|
+
xl: 32,
|
|
19
|
+
};
|
|
20
|
+
var PlusIcon = function (_a) {
|
|
21
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, _d = _a.color, color = _d === void 0 ? 'currentColor' : _d;
|
|
22
|
+
var pixelSize = sizeMap[size];
|
|
23
|
+
return (_jsx("svg", __assign({ width: pixelSize, height: pixelSize, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className }, { children: _jsx("path", { d: "M8 2.5V13.5M2.5 8H13.5", stroke: color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) })));
|
|
24
|
+
};
|
|
25
|
+
export default PlusIcon;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
var ShipIcon = function (_a) {
|
|
14
|
+
var _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.className, className = _c === void 0 ? "" : _c, color = _a.color;
|
|
15
|
+
var getSizeClasses = function () {
|
|
16
|
+
switch (size) {
|
|
17
|
+
case "xs":
|
|
18
|
+
return "w-3 h-3";
|
|
19
|
+
case "sm":
|
|
20
|
+
return "w-4 h-4";
|
|
21
|
+
case "md":
|
|
22
|
+
return "w-5 h-5";
|
|
23
|
+
case "lg":
|
|
24
|
+
return "w-6 h-6";
|
|
25
|
+
case "xl":
|
|
26
|
+
return "w-8 h-8";
|
|
27
|
+
default:
|
|
28
|
+
return "w-5 h-5";
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
var sizeClasses = getSizeClasses();
|
|
32
|
+
var colorClass = color ? "text-".concat(color) : "text-current";
|
|
33
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
34
|
+
return (_jsx("svg", __assign({ className: classes, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M11.9159 4.66638C11.9158 4.51179 11.8543 4.36359 11.745 4.25427C11.6356 4.14498 11.4875 4.08337 11.3329 4.08337H4.66586C4.51127 4.08346 4.36307 4.14495 4.25375 4.25427C4.14443 4.36359 4.08294 4.51179 4.08285 4.66638V7.5863L7.15316 6.22205H7.15414C7.42075 6.10366 7.70904 6.04236 7.99984 6.04236C8.29067 6.0424 8.57894 6.1036 8.84555 6.22205L11.9159 7.5863V4.66638ZM7.24984 9.33337V7.82068L2.75961 9.8158C2.82788 11.1514 3.27724 12.4381 4.05453 13.5238C4.09858 13.4896 4.14754 13.4549 4.19809 13.4144C4.39883 13.2538 4.66983 13.033 5.0184 12.8656C5.38322 12.6905 5.80735 12.5834 6.33285 12.5834C6.87026 12.5834 7.29979 12.6885 7.66781 12.8666C8.02062 13.0373 8.28638 13.2634 8.47934 13.4242C8.68632 13.5967 8.82043 13.7043 8.98422 13.7836C9.13281 13.8555 9.33681 13.9163 9.66586 13.9164C9.97342 13.9164 10.1749 13.8574 10.3309 13.7826C10.5028 13.7001 10.6483 13.587 10.8641 13.4144C11.0649 13.2538 11.3366 13.033 11.6854 12.8656C11.915 12.7554 12.1679 12.6719 12.4549 12.6254C12.9105 11.7536 13.1766 10.7959 13.2362 9.81482L8.74984 7.82068V9.33337C8.74984 9.74748 8.41391 10.0832 7.99984 10.0834C7.58563 10.0834 7.24984 9.74759 7.24984 9.33337ZM13.4159 8.25232L14.3045 8.64783L14.4002 8.69958C14.6138 8.83453 14.7478 9.07003 14.7498 9.32751C14.7587 10.5081 14.5199 11.6734 14.0555 12.7504C14.1526 12.7845 14.2456 12.8234 14.3348 12.8666C14.6875 13.0373 14.9534 13.2634 15.1463 13.4242C15.4644 13.6894 15.5071 14.1617 15.242 14.4799C14.977 14.7979 14.5046 14.8414 14.1864 14.5765C13.9795 14.4041 13.8452 14.2964 13.6815 14.2172C13.5329 14.1453 13.3289 14.0834 12.9998 14.0834C12.6921 14.0834 12.4908 14.1433 12.3348 14.2181C12.1629 14.3007 12.0173 14.4128 11.8016 14.5853C11.6008 14.746 11.3291 14.9667 10.9803 15.1342C10.6155 15.3093 10.1914 15.4164 9.66586 15.4164C9.12859 15.4163 8.69885 15.3112 8.3309 15.1332C7.97834 14.9625 7.71226 14.7373 7.51938 14.5765C7.31239 14.404 7.17828 14.2964 7.01449 14.2172C6.86585 14.1452 6.66209 14.0834 6.33285 14.0834C6.02502 14.0834 5.82383 14.1433 5.66781 14.2181C5.4959 14.3007 5.35034 14.4127 5.13461 14.5853C4.93379 14.746 4.66216 14.9667 4.31332 15.1342C3.9486 15.3092 3.52514 15.4163 2.99984 15.4164C2.4625 15.4164 2.03287 15.3112 1.66488 15.1332C1.4004 15.0052 1.18428 14.8467 1.01156 14.7074L0.852383 14.5765L0.796719 14.5238C0.530729 14.2522 0.508067 13.8182 0.75668 13.5199C1.00526 13.2216 1.43668 13.1648 1.7518 13.3773L1.81332 13.4242L2.08188 13.6381C2.16176 13.6965 2.23626 13.7439 2.3182 13.7836C2.36307 13.8053 2.4137 13.8238 2.47055 13.8422C1.65272 12.4872 1.22378 10.922 1.24984 9.32068C1.25478 9.02894 1.4285 8.76634 1.69516 8.64783L2.58285 8.2533V4.66638C2.58294 4.11396 2.80258 3.58435 3.1932 3.19373C3.58383 2.8031 4.11344 2.58346 4.66586 2.58337H7.24984V1.33337C7.24984 0.91916 7.58563 0.583374 7.99984 0.583374C8.41391 0.58355 8.74984 0.919269 8.74984 1.33337V2.58337H11.3329C11.8853 2.58337 12.4148 2.80313 12.8055 3.19373C13.1961 3.58435 13.4158 4.11396 13.4159 4.66638V8.25232Z", fill: "currentColor" }) })));
|
|
35
|
+
};
|
|
36
|
+
export default ShipIcon;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IllustrationProps extends React.ImgHTMLAttributes<HTMLImageElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Source of the illustration.
|
|
5
|
+
* This will typically be an imported SVG/PNG from the assets directory.
|
|
6
|
+
*/
|
|
7
|
+
src: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Generic Illustration atom.
|
|
11
|
+
* It focuses on consistent rendering (responsive, block-level) while
|
|
12
|
+
* letting the caller control which asset is used.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Illustration: React.FC<IllustrationProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
/**
|
|
25
|
+
* Generic Illustration atom.
|
|
26
|
+
* It focuses on consistent rendering (responsive, block-level) while
|
|
27
|
+
* letting the caller control which asset is used.
|
|
28
|
+
*/
|
|
29
|
+
export var Illustration = function (_a) {
|
|
30
|
+
var src = _a.src, _b = _a.className, className = _b === void 0 ? '' : _b, rest = __rest(_a, ["src", "className"]);
|
|
31
|
+
var classes = ['illustration', className].filter(Boolean).join(' ');
|
|
32
|
+
return _jsx("img", __assign({ src: src, className: classes }, rest));
|
|
33
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Illustrations disponibles depuis Figma
|
|
3
|
+
* Les images sont servies depuis le serveur MCP Figma (localhost:3845)
|
|
4
|
+
*
|
|
5
|
+
* Note: Ces URLs sont temporaires et servies par le serveur MCP Figma local.
|
|
6
|
+
* En production, ces images devront être exportées et hébergées séparément.
|
|
7
|
+
*/
|
|
8
|
+
export interface IllustrationInfo {
|
|
9
|
+
/** Nom de l'illustration */
|
|
10
|
+
name: string;
|
|
11
|
+
/** URL de l'image depuis le serveur MCP Figma */
|
|
12
|
+
url: string;
|
|
13
|
+
/** Catégorie de l'illustration */
|
|
14
|
+
category: 'success' | 'background' | 'error' | 'alert';
|
|
15
|
+
/** Description de l'illustration */
|
|
16
|
+
description?: string;
|
|
17
|
+
/** Dimensions (largeur x hauteur) */
|
|
18
|
+
dimensions?: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Illustrations de succès (Quotation Success)
|
|
25
|
+
*/
|
|
26
|
+
export declare const SUCCESS_ILLUSTRATIONS: Record<string, IllustrationInfo>;
|
|
27
|
+
/**
|
|
28
|
+
* Illustrations de fond (Background)
|
|
29
|
+
*/
|
|
30
|
+
export declare const BACKGROUND_ILLUSTRATIONS: Record<string, IllustrationInfo>;
|
|
31
|
+
/**
|
|
32
|
+
* Illustrations d'erreur
|
|
33
|
+
*/
|
|
34
|
+
export declare const ERROR_ILLUSTRATIONS: Record<string, IllustrationInfo>;
|
|
35
|
+
/**
|
|
36
|
+
* Illustrations d'alerte
|
|
37
|
+
*/
|
|
38
|
+
export declare const ALERT_ILLUSTRATIONS: Record<string, IllustrationInfo>;
|
|
39
|
+
/**
|
|
40
|
+
* Toutes les illustrations regroupées par catégorie
|
|
41
|
+
*/
|
|
42
|
+
export declare const ALL_ILLUSTRATIONS: {
|
|
43
|
+
success: Record<string, IllustrationInfo>;
|
|
44
|
+
background: Record<string, IllustrationInfo>;
|
|
45
|
+
error: Record<string, IllustrationInfo>;
|
|
46
|
+
alert: Record<string, IllustrationInfo>;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Helper pour obtenir une illustration par son nom
|
|
50
|
+
*/
|
|
51
|
+
export declare function getIllustration(name: string): IllustrationInfo | undefined;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Illustrations disponibles depuis Figma
|
|
3
|
+
* Les images sont servies depuis le serveur MCP Figma (localhost:3845)
|
|
4
|
+
*
|
|
5
|
+
* Note: Ces URLs sont temporaires et servies par le serveur MCP Figma local.
|
|
6
|
+
* En production, ces images devront être exportées et hébergées séparément.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Illustrations de succès (Quotation Success)
|
|
10
|
+
*/
|
|
11
|
+
export var SUCCESS_ILLUSTRATIONS = {
|
|
12
|
+
quotationSuccessOption1: {
|
|
13
|
+
name: 'Quotation Success - Option 1',
|
|
14
|
+
url: 'http://localhost:3845/assets/undraw_graduation_re_gthn_1',
|
|
15
|
+
category: 'success',
|
|
16
|
+
description: 'Illustration de succès pour l\'ajout d\'une voiture à une quotation',
|
|
17
|
+
dimensions: { width: 426, height: 212 },
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Illustrations de fond (Background)
|
|
22
|
+
*/
|
|
23
|
+
export var BACKGROUND_ILLUSTRATIONS = {
|
|
24
|
+
bgSun: {
|
|
25
|
+
name: 'BG_Sun',
|
|
26
|
+
url: 'http://localhost:3845/assets/8b482904d4764abeaaa5276f661a8bbabd874df2.png',
|
|
27
|
+
category: 'background',
|
|
28
|
+
description: 'Illustration de fond - Soleil',
|
|
29
|
+
dimensions: { width: 316, height: 314 },
|
|
30
|
+
},
|
|
31
|
+
bgCocktail: {
|
|
32
|
+
name: 'BG_Cocktail',
|
|
33
|
+
url: 'http://localhost:3845/assets/51130ed9197c5d6b4323a7e134aae153aa7cec61.png',
|
|
34
|
+
category: 'background',
|
|
35
|
+
description: 'Illustration de fond - Cocktail',
|
|
36
|
+
dimensions: { width: 624, height: 624 },
|
|
37
|
+
},
|
|
38
|
+
bgCoconut: {
|
|
39
|
+
name: 'BG_Coconut',
|
|
40
|
+
url: 'http://localhost:3845/assets/40b9073c72d20eed316693d7435c1199b3dbcf0a.png',
|
|
41
|
+
category: 'background',
|
|
42
|
+
description: 'Illustration de fond - Coco',
|
|
43
|
+
dimensions: { width: 624, height: 624 },
|
|
44
|
+
},
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Illustrations d'erreur
|
|
48
|
+
*/
|
|
49
|
+
export var ERROR_ILLUSTRATIONS = {
|
|
50
|
+
illustrationError: {
|
|
51
|
+
name: 'Illustration_Error',
|
|
52
|
+
url: 'http://localhost:3845/assets/group_46',
|
|
53
|
+
category: 'error',
|
|
54
|
+
description: 'Illustration d\'erreur - Aucun résultat trouvé',
|
|
55
|
+
dimensions: { width: 840, height: 463 },
|
|
56
|
+
},
|
|
57
|
+
error: {
|
|
58
|
+
name: 'Error',
|
|
59
|
+
url: 'http://localhost:3845/assets/undraw_cancel_7zdh_1',
|
|
60
|
+
category: 'error',
|
|
61
|
+
description: 'Illustration d\'erreur - Action bloquée',
|
|
62
|
+
dimensions: { width: 350, height: 350 },
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Illustrations d'alerte
|
|
67
|
+
*/
|
|
68
|
+
export var ALERT_ILLUSTRATIONS = {
|
|
69
|
+
illustrationAlert: {
|
|
70
|
+
name: 'Illustration_Alert',
|
|
71
|
+
url: 'http://localhost:3845/assets/group_47',
|
|
72
|
+
category: 'alert',
|
|
73
|
+
description: 'Illustration d\'alerte - Capacité dépassée',
|
|
74
|
+
dimensions: { width: 426, height: 358 },
|
|
75
|
+
},
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Toutes les illustrations regroupées par catégorie
|
|
79
|
+
*/
|
|
80
|
+
export var ALL_ILLUSTRATIONS = {
|
|
81
|
+
success: SUCCESS_ILLUSTRATIONS,
|
|
82
|
+
background: BACKGROUND_ILLUSTRATIONS,
|
|
83
|
+
error: ERROR_ILLUSTRATIONS,
|
|
84
|
+
alert: ALERT_ILLUSTRATIONS,
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Helper pour obtenir une illustration par son nom
|
|
88
|
+
*/
|
|
89
|
+
export function getIllustration(name) {
|
|
90
|
+
for (var _i = 0, _a = Object.values(ALL_ILLUSTRATIONS); _i < _a.length; _i++) {
|
|
91
|
+
var category = _a[_i];
|
|
92
|
+
if (category[name]) {
|
|
93
|
+
return category[name];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|