mautourco-components 0.2.4 → 0.2.7
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 +190 -190
- package/dist/components/atoms/Avatar/Avatar.d.ts +14 -14
- package/dist/components/atoms/Avatar/Avatar.js +31 -31
- package/dist/components/atoms/Button/Button.css +320 -320
- package/dist/components/atoms/Button/Button.d.ts +27 -27
- package/dist/components/atoms/Button/Button.js +35 -35
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +13 -13
- package/dist/components/atoms/Checkbox/Checkbox.js +39 -39
- package/dist/components/atoms/Icon/Icon.d.ts +10 -10
- package/dist/components/atoms/Icon/Icon.js +123 -123
- package/dist/components/atoms/Icon/icons/ArrivalIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ArrivalIcon.js +31 -31
- package/dist/components/atoms/Icon/icons/BuildingIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/BuildingIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/CalendarIcon.d.ts +12 -12
- package/dist/components/atoms/Icon/icons/CalendarIcon.js +41 -41
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/CarIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CarIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Check.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Check.js +30 -30
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Chevron.d.ts +9 -9
- package/dist/components/atoms/Icon/icons/Chevron.js +54 -54
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ChevronDownIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/Close.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Close.js +30 -30
- package/dist/components/atoms/Icon/icons/DeleteIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/DeleteIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/DepartureIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/DepartureIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/EyeIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/EyeIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/FacebookIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/FacebookIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/HomeIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/HomeIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/InfoIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/InfoIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/LinkedInIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/LinkedInIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/MapPinIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MapPinIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MautoucoLogo.js +37 -37
- package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MenuIcon.js +37 -37
- package/dist/components/atoms/Icon/icons/MinusIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MinusIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/MoreIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/MoreIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/PlaneIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/PlaneIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/PlusIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/PlusIcon.js +25 -25
- package/dist/components/atoms/Icon/icons/Search.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Search.js +30 -30
- package/dist/components/atoms/Icon/icons/Settings.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Settings.js +30 -30
- package/dist/components/atoms/Icon/icons/ShipIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/ShipIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/StrollerIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/StrollerIcon.js +30 -30
- package/dist/components/atoms/Icon/icons/TwitterIcon.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/TwitterIcon.js +36 -36
- package/dist/components/atoms/Icon/icons/User.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/User.js +30 -30
- package/dist/components/atoms/Icon/icons/UserIcon.d.ts +12 -12
- package/dist/components/atoms/Icon/icons/UserIcon.js +41 -41
- package/dist/components/atoms/Icon/icons/Youtube.d.ts +8 -8
- package/dist/components/atoms/Icon/icons/Youtube.js +36 -36
- package/dist/components/atoms/Illustration/Illustration.d.ts +14 -14
- package/dist/components/atoms/Illustration/Illustration.js +33 -33
- package/dist/components/atoms/Illustration/illustrations.d.ts +51 -51
- package/dist/components/atoms/Illustration/illustrations.js +97 -97
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.d.ts +12 -12
- package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +53 -53
- package/dist/components/atoms/Inputs/Input/Input.d.ts +15 -15
- package/dist/components/atoms/Inputs/Input/Input.js +27 -27
- package/dist/components/atoms/Inputs/Textarea/Textarea.d.ts +14 -14
- package/dist/components/atoms/Inputs/Textarea/Textarea.js +15 -15
- package/dist/components/atoms/Link/Link.d.ts +44 -44
- package/dist/components/atoms/Link/Link.js +76 -76
- package/dist/components/atoms/RatingStar/RatingStar.d.ts +40 -40
- package/dist/components/atoms/RatingStar/RatingStar.js +54 -54
- package/dist/components/atoms/SegmentedButton/SegmentedButton.d.ts +27 -27
- package/dist/components/atoms/SegmentedButton/SegmentedButton.js +49 -49
- package/dist/components/atoms/SelectedValue/SelectedValue.d.ts +11 -11
- package/dist/components/atoms/SelectedValue/SelectedValue.js +29 -29
- package/dist/components/atoms/Slider/Slider.d.ts +52 -52
- package/dist/components/atoms/Slider/Slider.js +30 -30
- package/dist/components/atoms/Spinner/Spinner.d.ts +9 -9
- package/dist/components/atoms/Spinner/Spinner.js +38 -38
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.d.ts +8 -8
- package/dist/components/atoms/Spinner/variants/ButtonSpinner.js +19 -19
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.d.ts +7 -7
- package/dist/components/atoms/Spinner/variants/LoadingSpinner.js +7 -7
- package/dist/components/atoms/Tab/Tab.css +266 -266
- package/dist/components/atoms/Tab/Tab.d.ts +22 -22
- package/dist/components/atoms/Tab/Tab.js +54 -54
- package/dist/components/atoms/Typography/Typography.d.ts +24 -24
- package/dist/components/atoms/Typography/Typography.js +100 -100
- package/dist/components/molecules/Calendar/CalendarInput.d.ts +34 -34
- package/dist/components/molecules/Calendar/CalendarInput.js +49 -49
- package/dist/components/molecules/Calendar/DateTime.d.ts +25 -25
- package/dist/components/molecules/Calendar/DateTime.js +106 -106
- package/dist/components/molecules/Calendar/TimePicker.d.ts +16 -16
- package/dist/components/molecules/Calendar/TimePicker.js +91 -91
- package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +34 -34
- package/dist/components/molecules/LocationDropdown/LocationDropdown.js +120 -120
- package/dist/components/molecules/LocationDropdown/index.d.ts +2 -2
- package/dist/components/molecules/LocationDropdown/index.js +1 -1
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +29 -29
- package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +106 -106
- package/dist/components/molecules/RatingTab/RatingTab.d.ts +39 -39
- package/dist/components/molecules/RatingTab/RatingTab.js +41 -41
- package/dist/components/molecules/TabGroup/TabGroup.d.ts +17 -17
- package/dist/components/molecules/TabGroup/TabGroup.js +30 -30
- package/dist/components/molecules/UserCard/UserCard.d.ts +20 -20
- package/dist/components/molecules/UserCard/UserCard.js +57 -57
- package/dist/components/organisms/CardContainer/CardContainer.d.ts +37 -37
- package/dist/components/organisms/CardContainer/CardContainer.js +27 -27
- package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +15 -15
- package/dist/components/organisms/DateTimePicker/DateTimePicker.js +66 -66
- package/dist/components/organisms/Dialog/Dialog.d.ts +103 -103
- package/dist/components/organisms/Dialog/Dialog.js +162 -162
- package/dist/components/organisms/Footer/Footer.d.ts +38 -38
- package/dist/components/organisms/Footer/Footer.js +74 -74
- package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +63 -63
- package/dist/components/organisms/PaxSelector/PaxSelector.js +402 -402
- package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +54 -54
- package/dist/components/organisms/RoundTrip/RoundTrip.js +179 -179
- package/dist/components/organisms/RoundTrip/index.d.ts +2 -2
- package/dist/components/organisms/RoundTrip/index.js +1 -1
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +35 -35
- package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +192 -192
- package/dist/components/organisms/SearchBarTransfer/index.d.ts +2 -2
- package/dist/components/organisms/SearchBarTransfer/index.js +1 -1
- package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +33 -33
- package/dist/components/organisms/TopNavigation/DesktopNav.js +32 -26
- package/dist/components/organisms/TopNavigation/MobileNav.d.ts +32 -32
- package/dist/components/organisms/TopNavigation/MobileNav.js +45 -45
- package/dist/components/organisms/TopNavigation/TopNavigation.d.ts +33 -33
- package/dist/components/organisms/TopNavigation/TopNavigation.js +20 -20
- package/dist/components/organisms/TransferLine/TransferLine.d.ts +53 -53
- package/dist/components/organisms/TransferLine/TransferLine.js +179 -179
- package/dist/components/ui/button.d.ts +10 -10
- package/dist/components/ui/button.js +56 -56
- package/dist/components/ui/calendar.d.ts +8 -8
- package/dist/components/ui/calendar.js +87 -87
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.js +42 -42
- package/dist/hooks/useMobile.d.ts +5 -5
- package/dist/hooks/useMobile.js +26 -26
- package/dist/index.d.ts +49 -49
- package/dist/index.js +46 -46
- package/dist/lib/utils.d.ts +7 -7
- package/dist/lib/utils.js +13 -13
- package/dist/styles/components/avatar.css +122 -122
- package/dist/styles/components/calendar.css +140 -140
- package/dist/styles/components/checkbox.css +206 -206
- package/dist/styles/components/dropdown.css +269 -269
- package/dist/styles/components/forms.css +209 -209
- package/dist/styles/components/illustration.css +123 -123
- package/dist/styles/components/molecule/calendarInput.css +133 -133
- package/dist/styles/components/molecule/dateTime.css +126 -126
- package/dist/styles/components/molecule/location-dropdown.css +132 -132
- package/dist/styles/components/molecule/timePicker.css +122 -122
- package/dist/styles/components/multiselect-dropdown.css +286 -286
- package/dist/styles/components/organism/card-container.css +148 -148
- package/dist/styles/components/organism/dialog.css +168 -168
- package/dist/styles/components/organism/footer.css +119 -119
- package/dist/styles/components/organism/pax-selector.css +617 -617
- package/dist/styles/components/organism/round-trip.css +139 -139
- package/dist/styles/components/organism/search-bar-transfer.css +158 -161
- package/dist/styles/components/organism/topnavigation.css +143 -143
- package/dist/styles/components/organism/transfer-line.css +138 -138
- package/dist/styles/components/rating-star.css +145 -145
- package/dist/styles/components/rating-tab.css +179 -179
- package/dist/styles/components/scrollbar.css +155 -155
- package/dist/styles/components/segmented-button.css +214 -214
- package/dist/styles/components/selected-value.css +175 -175
- package/dist/styles/components/slider.css +182 -182
- package/dist/styles/components/typography.css +245 -245
- package/dist/styles/tokens/tokens.css +119 -119
- package/dist/styles/tokens/tokens.d.ts +3108 -3108
- package/dist/styles/tokens/tokens.js +2652 -2652
- package/package.json +103 -103
- package/src/components/atoms/Avatar/Avatar.tsx +60 -60
- package/src/components/atoms/Button/Button.css +200 -200
- package/src/components/atoms/Button/Button.tsx +82 -82
- package/src/components/atoms/Checkbox/Checkbox.tsx +83 -83
- package/src/components/atoms/Icon/Icon.tsx +163 -163
- package/src/components/atoms/Icon/icons/ArrivalIcon.tsx +52 -52
- package/src/components/atoms/Icon/icons/BuildingIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/CalendarIcon.tsx +63 -63
- package/src/components/atoms/Icon/icons/CalendarOutlineIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/CarIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/Check.tsx +36 -36
- package/src/components/atoms/Icon/icons/CheckCircleIcon.tsx +48 -48
- package/src/components/atoms/Icon/icons/Chevron.tsx +73 -73
- package/src/components/atoms/Icon/icons/ChevronDownIcon.tsx +46 -46
- package/src/components/atoms/Icon/icons/Close.tsx +39 -39
- package/src/components/atoms/Icon/icons/DeleteIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/DepartureIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/EyeIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/FacebookIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/HomeIcon.tsx +52 -52
- package/src/components/atoms/Icon/icons/InfoIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/LinkedInIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/MapPinIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/MautoucoLogo.tsx +93 -93
- package/src/components/atoms/Icon/icons/MenuIcon.tsx +49 -49
- package/src/components/atoms/Icon/icons/MinusIcon.tsx +45 -45
- package/src/components/atoms/Icon/icons/MoreIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/PlaneIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/PlusIcon.tsx +45 -45
- package/src/components/atoms/Icon/icons/Search.tsx +37 -37
- package/src/components/atoms/Icon/icons/Settings.tsx +38 -38
- package/src/components/atoms/Icon/icons/ShipIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/StrollerIcon.tsx +44 -44
- package/src/components/atoms/Icon/icons/TwitterIcon.tsx +50 -50
- package/src/components/atoms/Icon/icons/User.tsx +37 -37
- package/src/components/atoms/Icon/icons/UserIcon.tsx +63 -63
- package/src/components/atoms/Icon/icons/Youtube.tsx +50 -50
- package/src/components/atoms/Illustration/Illustration.tsx +28 -28
- package/src/components/atoms/Illustration/illustrations.ts +116 -116
- package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +96 -96
- package/src/components/atoms/Inputs/Textarea/Textarea.tsx +51 -51
- package/src/components/atoms/Link/Link.tsx +168 -168
- package/src/components/atoms/RatingStar/RatingStar.tsx +114 -114
- package/src/components/atoms/SegmentedButton/SegmentedButton.tsx +94 -94
- package/src/components/atoms/SelectedValue/SelectedValue.tsx +59 -59
- package/src/components/atoms/Slider/Slider.tsx +95 -95
- package/src/components/atoms/Spinner/Spinner.tsx +56 -56
- package/src/components/atoms/Spinner/variants/ButtonSpinner.tsx +37 -37
- package/src/components/atoms/Spinner/variants/LoadingSpinner.tsx +22 -22
- package/src/components/atoms/Tab/Tab.css +147 -147
- package/src/components/atoms/Tab/Tab.tsx +96 -96
- package/src/components/atoms/Typography/Typography.tsx +153 -153
- package/src/components/molecules/Calendar/CalendarInput.tsx +135 -135
- package/src/components/molecules/Calendar/DateTime.tsx +172 -172
- package/src/components/molecules/Calendar/TimePicker.tsx +174 -174
- package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +234 -234
- package/src/components/molecules/LocationDropdown/index.ts +2 -2
- package/src/components/molecules/RatingTab/RatingTab.tsx +96 -96
- package/src/components/molecules/TabGroup/TabGroup.tsx +60 -60
- package/src/components/molecules/UserCard/UserCard.stories.tsx +36 -36
- package/src/components/molecules/UserCard/UserCard.tsx +173 -173
- package/src/components/organisms/CardContainer/CardContainer.tsx +66 -66
- package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +110 -110
- package/src/components/organisms/Dialog/Dialog.tsx +352 -352
- package/src/components/organisms/Footer/Footer.tsx +290 -290
- package/src/components/organisms/PaxSelector/PaxSelector.tsx +979 -979
- package/src/components/organisms/RoundTrip/RoundTrip.tsx +335 -335
- package/src/components/organisms/RoundTrip/index.ts +2 -2
- package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +388 -388
- package/src/components/organisms/SearchBarTransfer/index.ts +2 -2
- package/src/components/organisms/TopNavigation/DesktopNav.tsx +133 -122
- package/src/components/organisms/TopNavigation/MobileNav.tsx +212 -212
- package/src/components/organisms/TopNavigation/TopNavigation.tsx +45 -45
- package/src/components/organisms/TransferLine/TransferLine.tsx +369 -369
- package/src/components/ui/button.tsx +60 -60
- package/src/components/ui/calendar.tsx +246 -246
- package/src/components/ui/popover.tsx +46 -46
- package/src/styles/components/avatar.css +58 -58
- package/src/styles/components/calendar.css +85 -85
- package/src/styles/components/checkbox.css +130 -130
- package/src/styles/components/dropdown.css +214 -214
- package/src/styles/components/forms.css +147 -147
- package/src/styles/components/illustration.css +7 -7
- package/src/styles/components/molecule/calendarInput.css +156 -156
- package/src/styles/components/molecule/dateTime.css +14 -14
- package/src/styles/components/molecule/location-dropdown.css +204 -204
- package/src/styles/components/molecule/timePicker.css +78 -78
- package/src/styles/components/multiselect-dropdown.css +230 -230
- package/src/styles/components/organism/card-container.css +49 -49
- package/src/styles/components/organism/dialog.css +241 -241
- package/src/styles/components/organism/footer.css +113 -113
- package/src/styles/components/organism/pax-selector.css +702 -702
- package/src/styles/components/organism/round-trip.css +55 -55
- package/src/styles/components/organism/search-bar-transfer.css +128 -127
- package/src/styles/components/organism/topnavigation.css +161 -161
- package/src/styles/components/organism/transfer-line.css +86 -86
- package/src/styles/components/rating-star.css +39 -39
- package/src/styles/components/rating-tab.css +83 -83
- package/src/styles/components/scrollbar.css +63 -63
- package/src/styles/components/segmented-button.css +134 -134
- package/src/styles/components/selected-value.css +80 -80
- package/src/styles/components/slider.css +86 -86
- package/src/styles/components/typography.css +251 -251
- package/src/styles/fonts.css +50 -0
- package/src/styles/tokens/tokens.css +119 -119
- package/src/styles/tokens/tokens.js +12 -6
|
@@ -1,30 +1,30 @@
|
|
|
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 User = 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': return 'w-3 h-3';
|
|
18
|
-
case 'sm': return 'w-4 h-4';
|
|
19
|
-
case 'md': return 'w-5 h-5';
|
|
20
|
-
case 'lg': return 'w-6 h-6';
|
|
21
|
-
case 'xl': return 'w-8 h-8';
|
|
22
|
-
default: return 'w-5 h-5';
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var sizeClasses = getSizeClasses();
|
|
26
|
-
var colorClass = color ? "text-".concat(color) : 'text-current';
|
|
27
|
-
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
28
|
-
return (_jsxs("svg", __assign({ className: classes, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, { children: [_jsx("path", { d: "M20 21V19A4 4 0 0 0 16 15H8A4 4 0 0 0 4 19V21" }), _jsx("circle", { cx: "12", cy: "7", r: "4" })] })));
|
|
29
|
-
};
|
|
30
|
-
export default User;
|
|
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 User = 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': return 'w-3 h-3';
|
|
18
|
+
case 'sm': return 'w-4 h-4';
|
|
19
|
+
case 'md': return 'w-5 h-5';
|
|
20
|
+
case 'lg': return 'w-6 h-6';
|
|
21
|
+
case 'xl': return 'w-8 h-8';
|
|
22
|
+
default: return 'w-5 h-5';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var sizeClasses = getSizeClasses();
|
|
26
|
+
var colorClass = color ? "text-".concat(color) : 'text-current';
|
|
27
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
28
|
+
return (_jsxs("svg", __assign({ className: classes, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, { children: [_jsx("path", { d: "M20 21V19A4 4 0 0 0 16 15H8A4 4 0 0 0 4 19V21" }), _jsx("circle", { cx: "12", cy: "7", r: "4" })] })));
|
|
29
|
+
};
|
|
30
|
+
export default User;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface UserIconProps {
|
|
3
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Couleur par défaut si aucune couleur n'est spécifiée
|
|
8
|
-
*/
|
|
9
|
-
defaultColor?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const UserIcon: React.FC<UserIconProps>;
|
|
12
|
-
export default UserIcon;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface UserIconProps {
|
|
3
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Couleur par défaut si aucune couleur n'est spécifiée
|
|
8
|
+
*/
|
|
9
|
+
defaultColor?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const UserIcon: React.FC<UserIconProps>;
|
|
12
|
+
export default UserIcon;
|
|
@@ -1,41 +1,41 @@
|
|
|
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 UserIcon = function (_a) {
|
|
14
|
-
var _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, color = _a.color, _d = _a.defaultColor, defaultColor = _d === void 0 ? '#262626' : _d;
|
|
15
|
-
var getSizeClasses = function () {
|
|
16
|
-
switch (size) {
|
|
17
|
-
case 'xs': return 'w-3 h-3';
|
|
18
|
-
case 'sm': return 'w-4 h-4';
|
|
19
|
-
case 'md': return 'w-5 h-5';
|
|
20
|
-
case 'lg': return 'w-6 h-6';
|
|
21
|
-
case 'xl': return 'w-8 h-8';
|
|
22
|
-
default: return 'w-5 h-5';
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
var getSizeValues = function () {
|
|
26
|
-
switch (size) {
|
|
27
|
-
case 'xs': return { width: 8, height: 10 };
|
|
28
|
-
case 'sm': return { width: 9, height: 12 };
|
|
29
|
-
case 'md': return { width: 11, height: 14 };
|
|
30
|
-
case 'lg': return { width: 13, height: 16 };
|
|
31
|
-
case 'xl': return { width: 15, height: 18 };
|
|
32
|
-
default: return { width: 11, height: 14 };
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
var sizeClasses = getSizeClasses();
|
|
36
|
-
var sizeValues = getSizeValues();
|
|
37
|
-
var colorClass = color ? "text-".concat(color) : 'text-current';
|
|
38
|
-
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
39
|
-
return (_jsx("svg", __assign({ className: classes, width: sizeValues.width, height: sizeValues.height, viewBox: "0 0 11 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M9.33301 12.75V11.417C9.33301 10.9087 9.13093 10.421 8.77148 10.0615C8.41213 9.70226 7.92513 9.50009 7.41699 9.5H3.41699C2.90866 9.5 2.42097 9.70208 2.06152 10.0615C1.70208 10.421 1.5 10.9087 1.5 11.417V12.75C1.5 13.1642 1.16421 13.5 0.75 13.5C0.335786 13.5 0 13.1642 0 12.75V11.417C0 10.5108 0.360227 9.64173 1.00098 9.00098C1.64173 8.36023 2.51084 8 3.41699 8H7.41699C8.32303 8.00009 9.19234 8.3603 9.83301 9.00098C10.4736 9.64169 10.833 10.511 10.833 11.417V12.75C10.833 13.1642 10.4972 13.5 10.083 13.5C9.66894 13.4998 9.33301 13.1641 9.33301 12.75ZM7.33301 3.41699C7.33301 2.35855 6.47539 1.50018 5.41699 1.5C4.35845 1.5 3.5 2.35845 3.5 3.41699C3.50018 4.47539 4.35855 5.33301 5.41699 5.33301C6.47528 5.33283 7.33283 4.47528 7.33301 3.41699ZM8.83301 3.41699C8.83283 5.30371 7.30371 6.83283 5.41699 6.83301C3.53013 6.83301 2.00018 5.30382 2 3.41699C2 1.53002 3.53002 0 5.41699 0C7.30382 0.000175741 8.83301 1.53013 8.83301 3.41699Z", fill: "currentColor" }) })));
|
|
40
|
-
};
|
|
41
|
-
export default UserIcon;
|
|
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 UserIcon = function (_a) {
|
|
14
|
+
var _b = _a.size, size = _b === void 0 ? 'md' : _b, _c = _a.className, className = _c === void 0 ? '' : _c, color = _a.color, _d = _a.defaultColor, defaultColor = _d === void 0 ? '#262626' : _d;
|
|
15
|
+
var getSizeClasses = function () {
|
|
16
|
+
switch (size) {
|
|
17
|
+
case 'xs': return 'w-3 h-3';
|
|
18
|
+
case 'sm': return 'w-4 h-4';
|
|
19
|
+
case 'md': return 'w-5 h-5';
|
|
20
|
+
case 'lg': return 'w-6 h-6';
|
|
21
|
+
case 'xl': return 'w-8 h-8';
|
|
22
|
+
default: return 'w-5 h-5';
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var getSizeValues = function () {
|
|
26
|
+
switch (size) {
|
|
27
|
+
case 'xs': return { width: 8, height: 10 };
|
|
28
|
+
case 'sm': return { width: 9, height: 12 };
|
|
29
|
+
case 'md': return { width: 11, height: 14 };
|
|
30
|
+
case 'lg': return { width: 13, height: 16 };
|
|
31
|
+
case 'xl': return { width: 15, height: 18 };
|
|
32
|
+
default: return { width: 11, height: 14 };
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var sizeClasses = getSizeClasses();
|
|
36
|
+
var sizeValues = getSizeValues();
|
|
37
|
+
var colorClass = color ? "text-".concat(color) : 'text-current';
|
|
38
|
+
var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
|
|
39
|
+
return (_jsx("svg", __assign({ className: classes, width: sizeValues.width, height: sizeValues.height, viewBox: "0 0 11 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M9.33301 12.75V11.417C9.33301 10.9087 9.13093 10.421 8.77148 10.0615C8.41213 9.70226 7.92513 9.50009 7.41699 9.5H3.41699C2.90866 9.5 2.42097 9.70208 2.06152 10.0615C1.70208 10.421 1.5 10.9087 1.5 11.417V12.75C1.5 13.1642 1.16421 13.5 0.75 13.5C0.335786 13.5 0 13.1642 0 12.75V11.417C0 10.5108 0.360227 9.64173 1.00098 9.00098C1.64173 8.36023 2.51084 8 3.41699 8H7.41699C8.32303 8.00009 9.19234 8.3603 9.83301 9.00098C10.4736 9.64169 10.833 10.511 10.833 11.417V12.75C10.833 13.1642 10.4972 13.5 10.083 13.5C9.66894 13.4998 9.33301 13.1641 9.33301 12.75ZM7.33301 3.41699C7.33301 2.35855 6.47539 1.50018 5.41699 1.5C4.35845 1.5 3.5 2.35845 3.5 3.41699C3.50018 4.47539 4.35855 5.33301 5.41699 5.33301C6.47528 5.33283 7.33283 4.47528 7.33301 3.41699ZM8.83301 3.41699C8.83283 5.30371 7.30371 6.83283 5.41699 6.83301C3.53013 6.83301 2.00018 5.30382 2 3.41699C2 1.53002 3.53002 0 5.41699 0C7.30382 0.000175741 8.83301 1.53013 8.83301 3.41699Z", fill: "currentColor" }) })));
|
|
40
|
+
};
|
|
41
|
+
export default UserIcon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface YouTubeIconProps {
|
|
3
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
-
className?: string;
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const YouTubeIcon: React.FC<YouTubeIconProps>;
|
|
8
|
-
export default YouTubeIcon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface YouTubeIconProps {
|
|
3
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
className?: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const YouTubeIcon: React.FC<YouTubeIconProps>;
|
|
8
|
+
export default YouTubeIcon;
|
|
@@ -1,36 +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 YouTubeIcon = 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({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: classes }, { children: _jsx("path", { d: "M22.9024 6.50346C22.6407 5.51804 21.8696 4.74196 20.8906 4.47858C19.116 4 12.0001 4 12.0001 4C12.0001 4 4.88427 4 3.10965 4.47858C2.13061 4.742 1.35952 5.51804 1.09781 6.50346C0.622314 8.28958 0.622314 12.0162 0.622314 12.0162C0.622314 12.0162 0.622314 15.7427 1.09781 17.5289C1.35952 18.5143 2.13061 19.258 3.10965 19.5214C4.88427 20 12.0001 20 12.0001 20C12.0001 20 19.1159 20 20.8906 19.5214C21.8696 19.258 22.6407 18.5143 22.9024 17.5289C23.3779 15.7427 23.3779 12.0162 23.3779 12.0162C23.3779 12.0162 23.3779 8.28958 22.9024 6.50346ZM9.67282 15.3996V8.63271L15.6203 12.0162L9.67282 15.3996Z", fill: "currentColor" }) })));
|
|
35
|
-
};
|
|
36
|
-
export default YouTubeIcon;
|
|
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 YouTubeIcon = 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({ viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: classes }, { children: _jsx("path", { d: "M22.9024 6.50346C22.6407 5.51804 21.8696 4.74196 20.8906 4.47858C19.116 4 12.0001 4 12.0001 4C12.0001 4 4.88427 4 3.10965 4.47858C2.13061 4.742 1.35952 5.51804 1.09781 6.50346C0.622314 8.28958 0.622314 12.0162 0.622314 12.0162C0.622314 12.0162 0.622314 15.7427 1.09781 17.5289C1.35952 18.5143 2.13061 19.258 3.10965 19.5214C4.88427 20 12.0001 20 12.0001 20C12.0001 20 19.1159 20 20.8906 19.5214C21.8696 19.258 22.6407 18.5143 22.9024 17.5289C23.3779 15.7427 23.3779 12.0162 23.3779 12.0162C23.3779 12.0162 23.3779 8.28958 22.9024 6.50346ZM9.67282 15.3996V8.63271L15.6203 12.0162L9.67282 15.3996Z", fill: "currentColor" }) })));
|
|
35
|
+
};
|
|
36
|
+
export default YouTubeIcon;
|
|
@@ -1,14 +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>;
|
|
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>;
|
|
@@ -1,33 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,51 +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;
|
|
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;
|