mautourco-components 0.2.9 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/components/atoms/Button/Button.css +28 -0
  2. package/dist/components/atoms/Button/Button.d.ts +1 -1
  3. package/dist/components/atoms/Button/Button.js +2 -1
  4. package/dist/components/atoms/Chip/Chip.css +2238 -0
  5. package/dist/components/atoms/Chip/Chip.d.ts +27 -0
  6. package/dist/components/atoms/Chip/Chip.js +37 -0
  7. package/dist/components/atoms/Divider/Divider.css +2135 -0
  8. package/dist/components/atoms/Divider/Divider.d.ts +14 -0
  9. package/dist/components/atoms/Divider/Divider.js +16 -0
  10. package/dist/components/atoms/Icon/Icon.d.ts +3 -2
  11. package/dist/components/atoms/Icon/Icon.js +3 -117
  12. package/dist/components/atoms/Icon/icons/ArrowRightOutlineIcon.d.ts +8 -0
  13. package/dist/components/atoms/Icon/icons/ArrowRightOutlineIcon.js +36 -0
  14. package/dist/components/atoms/Icon/icons/Building2OutlineIcon.d.ts +8 -0
  15. package/dist/components/atoms/Icon/icons/Building2OutlineIcon.js +36 -0
  16. package/dist/components/atoms/Icon/icons/CalendarRangeOutlineIcon.d.ts +8 -0
  17. package/dist/components/atoms/Icon/icons/CalendarRangeOutlineIcon.js +36 -0
  18. package/dist/components/atoms/Icon/icons/PlaneLandingOutlineIcon.d.ts +8 -0
  19. package/dist/components/atoms/Icon/icons/PlaneLandingOutlineIcon.js +36 -0
  20. package/dist/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.d.ts +8 -0
  21. package/dist/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.js +36 -0
  22. package/dist/components/atoms/Icon/icons/registry.d.ts +55 -0
  23. package/dist/components/atoms/Icon/icons/registry.js +99 -0
  24. package/dist/components/molecules/FeatureRow/FeatureRow.css +2130 -0
  25. package/dist/components/molecules/FeatureRow/FeatureRow.d.ts +17 -0
  26. package/dist/components/molecules/FeatureRow/FeatureRow.js +22 -0
  27. package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +1 -0
  28. package/dist/components/molecules/LocationDropdown/LocationDropdown.js +17 -4
  29. package/dist/components/molecules/Pagination/Pagination.css +2168 -0
  30. package/dist/components/molecules/Pagination/Pagination.d.ts +16 -0
  31. package/dist/components/molecules/Pagination/Pagination.js +90 -0
  32. package/dist/components/molecules/SectionTitle/SectionTitle.css +2112 -0
  33. package/dist/components/molecules/SectionTitle/SectionTitle.d.ts +16 -0
  34. package/dist/components/molecules/SectionTitle/SectionTitle.js +21 -0
  35. package/dist/components/molecules/Stepper/Stepper.css +2144 -0
  36. package/dist/components/molecules/Stepper/Stepper.d.ts +18 -0
  37. package/dist/components/molecules/Stepper/Stepper.js +33 -0
  38. package/dist/components/organisms/CarBookingCard/CarBookingCard.css +2313 -0
  39. package/dist/components/organisms/CarBookingCard/CarBookingCard.d.ts +51 -0
  40. package/dist/components/organisms/CarBookingCard/CarBookingCard.js +39 -0
  41. package/dist/components/organisms/CarBookingCard/index.d.ts +2 -0
  42. package/dist/components/organisms/CarBookingCard/index.js +1 -0
  43. package/dist/index.d.ts +12 -0
  44. package/dist/index.js +7 -0
  45. package/dist/styles/components/molecule/location-dropdown.css +38 -0
  46. package/package.json +1 -1
  47. package/src/components/atoms/Button/Button.css +28 -0
  48. package/src/components/atoms/Button/Button.tsx +3 -2
  49. package/src/components/atoms/Chip/Chip.css +161 -0
  50. package/src/components/atoms/Chip/Chip.tsx +79 -0
  51. package/src/components/atoms/Divider/Divider.css +58 -0
  52. package/src/components/atoms/Divider/Divider.tsx +36 -0
  53. package/src/components/atoms/Icon/Icon.tsx +5 -145
  54. package/src/components/atoms/Icon/icons/ArrowRightOutlineIcon.tsx +55 -0
  55. package/src/components/atoms/Icon/icons/Building2OutlineIcon.tsx +52 -0
  56. package/src/components/atoms/Icon/icons/CalendarRangeOutlineIcon.tsx +55 -0
  57. package/src/components/atoms/Icon/icons/PlaneLandingOutlineIcon.tsx +56 -0
  58. package/src/components/atoms/Icon/icons/PlaneTakeoffOutlineIcon.tsx +52 -0
  59. package/src/components/atoms/Icon/icons/registry.tsx +105 -0
  60. package/src/components/molecules/FeatureRow/FeatureRow.css +53 -0
  61. package/src/components/molecules/FeatureRow/FeatureRow.tsx +46 -0
  62. package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +67 -38
  63. package/src/components/molecules/Pagination/Pagination.css +90 -0
  64. package/src/components/molecules/Pagination/Pagination.tsx +149 -0
  65. package/src/components/molecules/SectionTitle/SectionTitle.css +35 -0
  66. package/src/components/molecules/SectionTitle/SectionTitle.tsx +43 -0
  67. package/src/components/molecules/Stepper/Stepper.css +67 -0
  68. package/src/components/molecules/Stepper/Stepper.tsx +74 -0
  69. package/src/components/organisms/CarBookingCard/CarBookingCard.css +236 -0
  70. package/src/components/organisms/CarBookingCard/CarBookingCard.tsx +238 -0
  71. package/src/components/organisms/CarBookingCard/index.ts +12 -0
  72. package/src/styles/components/molecule/location-dropdown.css +29 -0
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { IconName } from '../Icon/Icon';
3
+ import './Chip.css';
4
+ export interface ChipProps {
5
+ /** Label du chip */
6
+ label?: string;
7
+ /** Contenu du chip (alternative à label) */
8
+ children?: React.ReactNode;
9
+ /** Taille du chip */
10
+ size?: 'sm' | 'md' | 'lg';
11
+ /** Type de chip */
12
+ type?: 'filled' | 'outline';
13
+ /** Couleur du chip */
14
+ color?: 'brand' | 'accent' | 'blue' | 'green' | 'yellow' | 'red' | 'neutral';
15
+ /** Icône affichée avant le label */
16
+ leadingIcon?: IconName;
17
+ /** Icône affichée après le label */
18
+ trailingIcon?: IconName;
19
+ /** Taille des icônes */
20
+ iconSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
21
+ /** Classes CSS supplémentaires */
22
+ className?: string;
23
+ /** Handler de clic (optionnel, rend le chip cliquable) */
24
+ onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
25
+ }
26
+ declare const Chip: React.FC<ChipProps>;
27
+ export default Chip;
@@ -0,0 +1,37 @@
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
+ import Icon from '../Icon/Icon';
14
+ import './Chip.css';
15
+ var Chip = function (_a) {
16
+ var label = _a.label, children = _a.children, _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.type, type = _c === void 0 ? 'filled' : _c, _d = _a.color, color = _d === void 0 ? 'brand' : _d, leadingIcon = _a.leadingIcon, trailingIcon = _a.trailingIcon, _e = _a.iconSize, iconSize = _e === void 0 ? 'sm' : _e, _f = _a.className, className = _f === void 0 ? '' : _f, onClick = _a.onClick;
17
+ var baseClasses = 'chip';
18
+ var sizeClass = "chip--".concat(size);
19
+ var typeClass = "chip--".concat(type);
20
+ var colorClass = "chip--".concat(color);
21
+ var clickableClass = onClick ? 'chip--clickable' : '';
22
+ var chipClasses = [
23
+ baseClasses,
24
+ sizeClass,
25
+ typeClass,
26
+ colorClass,
27
+ clickableClass,
28
+ className,
29
+ ]
30
+ .filter(Boolean)
31
+ .join(' ');
32
+ var hasLeadingIcon = Boolean(leadingIcon);
33
+ var hasTrailingIcon = Boolean(trailingIcon);
34
+ var content = label || children;
35
+ return (_jsxs("div", __assign({ className: chipClasses, onClick: onClick, role: onClick ? 'button' : undefined, tabIndex: onClick ? 0 : undefined }, { children: [hasLeadingIcon && (_jsx("span", __assign({ className: "chip__icon chip__icon--leading" }, { children: _jsx(Icon, { name: leadingIcon, size: iconSize }) }))), _jsx("span", __assign({ className: "chip__label" }, { children: content })), hasTrailingIcon && (_jsx("span", __assign({ className: "chip__icon chip__icon--trailing" }, { children: _jsx(Icon, { name: trailingIcon, size: iconSize }) })))] })));
36
+ };
37
+ export default Chip;