mautourco-components 0.2.15 → 0.2.17

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 (126) hide show
  1. package/dist/components/atoms/Icon/icons/BusIcon.js +1 -1
  2. package/dist/components/atoms/Tab/Tab.css +6 -8
  3. package/dist/components/atoms/Typography/Typography.d.ts +1 -1
  4. package/dist/components/atoms/Typography/Typography.js +18 -4
  5. package/dist/components/molecules/ActionDropdown/ActionDropdown.d.ts +4 -0
  6. package/dist/components/molecules/ActionDropdown/ActionDropdown.js +2 -2
  7. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.css +2097 -0
  8. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.d.ts +11 -0
  9. package/dist/components/molecules/Breadcrumbs/Breadcrumbs.js +20 -0
  10. package/dist/components/molecules/DateDisplay/DateDisplay.d.ts +9 -2
  11. package/dist/components/molecules/DateDisplay/DateDisplay.js +5 -5
  12. package/dist/components/molecules/DetailsInfo/DetailsAction.d.ts +9 -0
  13. package/dist/components/molecules/DetailsInfo/DetailsAction.js +46 -0
  14. package/dist/components/molecules/DetailsInfo/DetailsAgency.css +2101 -0
  15. package/dist/components/molecules/DetailsInfo/DetailsAgency.d.ts +9 -0
  16. package/dist/components/molecules/DetailsInfo/DetailsAgency.js +19 -0
  17. package/dist/components/molecules/DetailsInfo/DetailsFile.d.ts +8 -0
  18. package/dist/components/molecules/DetailsInfo/DetailsFile.js +18 -0
  19. package/dist/components/molecules/DetailsInfo/DetailsInfo.d.ts +12 -0
  20. package/dist/components/molecules/DetailsInfo/DetailsInfo.js +22 -0
  21. package/dist/components/molecules/DetailsInfo/index.d.ts +4 -0
  22. package/dist/components/molecules/DetailsInfo/index.js +1 -0
  23. package/dist/components/molecules/ServiceTitle/ServiceTitle.css +2094 -0
  24. package/dist/components/molecules/ServiceTitle/ServiceTitle.d.ts +8 -0
  25. package/dist/components/molecules/ServiceTitle/ServiceTitle.js +18 -0
  26. package/dist/components/molecules/TableServiceItem/DetailsCol.d.ts +2 -2
  27. package/dist/components/molecules/TableServiceItem/DetailsCol.js +3 -2
  28. package/dist/components/molecules/TextWithIcon/TextWithIcon.js +2 -2
  29. package/dist/components/molecules/TimelineItem/ServiceAccommodation.d.ts +9 -0
  30. package/dist/components/molecules/TimelineItem/ServiceAccommodation.js +20 -0
  31. package/dist/components/molecules/TimelineItem/ServiceExcursion.d.ts +8 -0
  32. package/dist/components/molecules/TimelineItem/ServiceExcursion.js +20 -0
  33. package/dist/components/molecules/TimelineItem/ServiceTransfer.d.ts +11 -0
  34. package/dist/components/molecules/TimelineItem/ServiceTransfer.js +19 -0
  35. package/dist/components/molecules/TimelineItem/TimelineHeader.css +2166 -0
  36. package/dist/components/molecules/TimelineItem/TimelineHeader.d.ts +10 -0
  37. package/dist/components/molecules/TimelineItem/TimelineHeader.js +21 -0
  38. package/dist/components/molecules/TimelineItem/TimelineItem.css +2084 -0
  39. package/dist/components/molecules/TimelineItem/TimelineItem.d.ts +12 -0
  40. package/dist/components/molecules/TimelineItem/TimelineItem.js +23 -0
  41. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.d.ts +12 -0
  42. package/dist/components/organisms/TabCancellationPolicy/CancellationAccom.js +19 -0
  43. package/dist/components/organisms/TabCancellationPolicy/CancellationBody.d.ts +11 -0
  44. package/dist/components/organisms/TabCancellationPolicy/CancellationBody.js +21 -0
  45. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.d.ts +8 -0
  46. package/dist/components/organisms/TabCancellationPolicy/CancellationExcursion.js +19 -0
  47. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.d.ts +11 -0
  48. package/dist/components/organisms/TabCancellationPolicy/CancellationHeader.js +21 -0
  49. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.d.ts +7 -0
  50. package/dist/components/organisms/TabCancellationPolicy/CancellationTransfer.js +19 -0
  51. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.d.ts +6 -0
  52. package/dist/components/organisms/TabCancellationPolicy/HeaderAccom.js +27 -0
  53. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +2082 -0
  54. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.d.ts +12 -0
  55. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.js +26 -0
  56. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.d.ts +5 -0
  57. package/dist/components/organisms/TabCancellationPolicy/HeaderExcursion.js +7 -0
  58. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +2094 -0
  59. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.d.ts +13 -0
  60. package/dist/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.js +21 -0
  61. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.d.ts +5 -0
  62. package/dist/components/organisms/TabCancellationPolicy/PolicyExcursion.js +17 -0
  63. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.d.ts +4 -0
  64. package/dist/components/organisms/TabCancellationPolicy/PolicyTransfer.js +44 -0
  65. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.d.ts +13 -0
  66. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicy.js +23 -0
  67. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +2134 -0
  68. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.d.ts +13 -0
  69. package/dist/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.js +19 -0
  70. package/dist/components/organisms/TabCancellationPolicy/index.d.ts +6 -0
  71. package/dist/components/organisms/TabCancellationPolicy/index.js +3 -0
  72. package/dist/components/organisms/Table/columns/booking-columns.js +1 -1
  73. package/dist/components/organisms/Table/columns/detail-resume-columns.js +1 -1
  74. package/dist/components/organisms/Table/columns/quotation-columns.js +3 -3
  75. package/dist/components/organisms/Timeline/Timeline.d.ts +15 -0
  76. package/dist/components/organisms/Timeline/Timeline.js +20 -0
  77. package/dist/index.d.ts +11 -0
  78. package/dist/index.js +5 -0
  79. package/dist/types/table/action-dropdown-type.types.d.ts +1 -0
  80. package/dist/types/table/action-dropdown-type.types.js +1 -0
  81. package/package.json +1 -1
  82. package/src/components/atoms/Icon/icons/BusIcon.tsx +6 -2
  83. package/src/components/atoms/Tab/Tab.css +6 -8
  84. package/src/components/atoms/Typography/Typography.tsx +27 -7
  85. package/src/components/molecules/ActionDropdown/ActionDropdown.tsx +16 -5
  86. package/src/components/molecules/Breadcrumbs/Breadcrumbs.css +10 -0
  87. package/src/components/molecules/Breadcrumbs/Breadcrumbs.tsx +47 -0
  88. package/src/components/molecules/DateDisplay/DateDisplay.tsx +25 -9
  89. package/src/components/molecules/DetailsInfo/DetailsAction.tsx +55 -0
  90. package/src/components/molecules/DetailsInfo/DetailsAgency.css +21 -0
  91. package/src/components/molecules/DetailsInfo/DetailsAgency.tsx +53 -0
  92. package/src/components/molecules/DetailsInfo/DetailsFile.tsx +27 -0
  93. package/src/components/molecules/DetailsInfo/DetailsInfo.tsx +17 -0
  94. package/src/components/molecules/DetailsInfo/index.ts +4 -0
  95. package/src/components/molecules/ServiceTitle/ServiceTitle.css +13 -0
  96. package/src/components/molecules/ServiceTitle/ServiceTitle.tsx +19 -0
  97. package/src/components/molecules/TableServiceItem/DetailsCol.tsx +9 -5
  98. package/src/components/molecules/TextWithIcon/TextWithIcon.tsx +19 -5
  99. package/src/components/molecules/TimelineItem/ServiceAccommodation.tsx +29 -0
  100. package/src/components/molecules/TimelineItem/ServiceExcursion.tsx +28 -0
  101. package/src/components/molecules/TimelineItem/ServiceTransfer.tsx +25 -0
  102. package/src/components/molecules/TimelineItem/TimelineHeader.css +44 -0
  103. package/src/components/molecules/TimelineItem/TimelineHeader.tsx +41 -0
  104. package/src/components/molecules/TimelineItem/TimelineItem.css +7 -0
  105. package/src/components/molecules/TimelineItem/TimelineItem.tsx +17 -0
  106. package/src/components/organisms/TabCancellationPolicy/CancellationAccom.tsx +41 -0
  107. package/src/components/organisms/TabCancellationPolicy/CancellationBody.tsx +12 -0
  108. package/src/components/organisms/TabCancellationPolicy/CancellationExcursion.tsx +31 -0
  109. package/src/components/organisms/TabCancellationPolicy/CancellationHeader.tsx +11 -0
  110. package/src/components/organisms/TabCancellationPolicy/CancellationTransfer.tsx +29 -0
  111. package/src/components/organisms/TabCancellationPolicy/HeaderAccom.tsx +31 -0
  112. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.css +3 -0
  113. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion/HeaderTransfer.tsx +48 -0
  114. package/src/components/organisms/TabCancellationPolicy/HeaderExcursion.tsx +18 -0
  115. package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.css +8 -0
  116. package/src/components/organisms/TabCancellationPolicy/PolicyAccom/PolicyAccom.tsx +47 -0
  117. package/src/components/organisms/TabCancellationPolicy/PolicyExcursion.tsx +26 -0
  118. package/src/components/organisms/TabCancellationPolicy/PolicyTransfer.tsx +62 -0
  119. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicy.tsx +13 -0
  120. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.css +39 -0
  121. package/src/components/organisms/TabCancellationPolicy/TabCancellationPolicyLayout/TabCancellationPolicyLayout.tsx +44 -0
  122. package/src/components/organisms/TabCancellationPolicy/index.ts +7 -0
  123. package/src/components/organisms/Table/columns/booking-columns.tsx +1 -1
  124. package/src/components/organisms/Table/columns/detail-resume-columns.tsx +1 -1
  125. package/src/components/organisms/Table/columns/quotation-columns.tsx +10 -5
  126. package/src/components/organisms/Timeline/Timeline.tsx +59 -0
@@ -31,6 +31,6 @@ var BusIcon = function (_a) {
31
31
  var sizeClasses = getSizeClasses();
32
32
  var colorClass = color ? "text-".concat(color) : 'text-current';
33
33
  var classes = "".concat(sizeClasses, " ").concat(colorClass, " ").concat(className);
34
- return (_jsxs("svg", __assign({ className: classes, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("g", __assign({ "clip-path": "url(#clip0_7033_40084)" }, { children: _jsx("path", { d: "M12.5821 8.08301H3.41512V11.333C3.41512 11.6552 3.67694 11.917 3.99911 11.917H11.9991C12.3211 11.9168 12.5821 11.6551 12.5821 11.333V8.08301ZM5.33895 9.25L5.41512 9.25391C5.79348 9.29216 6.08895 9.61156 6.08895 10C6.08895 10.3884 5.79348 10.7078 5.41512 10.7461L5.33895 10.75H5.33211C4.9179 10.75 4.58211 10.4142 4.58211 10C4.58211 9.58579 4.9179 9.25 5.33211 9.25H5.33895ZM10.672 9.25C11.0862 9.25 11.422 9.58579 11.422 10C11.422 10.4142 11.0862 10.75 10.672 10.75H10.6651C10.2511 10.7498 9.91512 10.4141 9.91512 10C9.91512 9.5859 10.2511 9.25018 10.6651 9.25H10.672ZM3.99911 2.75C3.67705 2.75 3.4153 3.01099 3.41512 3.33301V6.58301H12.5821V3.33301C12.5819 3.0111 12.321 2.75018 11.9991 2.75H3.99911ZM9.33211 3.25C9.74633 3.25 10.0821 3.58579 10.0821 4C10.0821 4.41421 9.74633 4.75 9.33211 4.75H6.66512C6.25106 4.74982 5.91512 4.41411 5.91512 4C5.91512 3.58589 6.25106 3.25018 6.66512 3.25H9.33211ZM14.0821 11.333C14.0821 12.2187 13.5284 12.973 12.7491 13.2744V14C12.7491 14.4141 12.4132 14.7498 11.9991 14.75C11.5849 14.75 11.2491 14.4142 11.2491 14V13.417H4.74911V14C4.74911 14.4141 4.41317 14.7498 3.99911 14.75C3.58489 14.75 3.24911 14.4142 3.24911 14V13.2754C2.46934 12.9742 1.91512 12.219 1.91512 11.333V5.21387L1.66708 5.33789C1.29669 5.52273 0.846371 5.37226 0.661216 5.00195C0.476074 4.63149 0.626713 4.18131 0.997153 3.99609L1.91512 3.53613V3.33301C1.9153 2.18256 2.84862 1.25 3.99911 1.25H11.9991C13.1494 1.25018 14.0819 2.18267 14.0821 3.33301V3.53613L15.0011 3.99609C15.3714 4.18142 15.5212 4.63156 15.336 5.00195C15.1508 5.37235 14.7006 5.52293 14.3302 5.33789L14.0821 5.21289V11.333Z", fill: "#303642" }) })), _jsx("defs", { children: _jsx("clipPath", __assign({ id: "clip0_7033_40084" }, { children: _jsx("rect", { width: "16", height: "16", fill: "white" }) })) })] })));
34
+ return (_jsxs("svg", __assign({ className: classes, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("g", __assign({ "clip-path": "url(#clip0_7033_40084)" }, { children: _jsx("path", { d: "M12.5821 8.08301H3.41512V11.333C3.41512 11.6552 3.67694 11.917 3.99911 11.917H11.9991C12.3211 11.9168 12.5821 11.6551 12.5821 11.333V8.08301ZM5.33895 9.25L5.41512 9.25391C5.79348 9.29216 6.08895 9.61156 6.08895 10C6.08895 10.3884 5.79348 10.7078 5.41512 10.7461L5.33895 10.75H5.33211C4.9179 10.75 4.58211 10.4142 4.58211 10C4.58211 9.58579 4.9179 9.25 5.33211 9.25H5.33895ZM10.672 9.25C11.0862 9.25 11.422 9.58579 11.422 10C11.422 10.4142 11.0862 10.75 10.672 10.75H10.6651C10.2511 10.7498 9.91512 10.4141 9.91512 10C9.91512 9.5859 10.2511 9.25018 10.6651 9.25H10.672ZM3.99911 2.75C3.67705 2.75 3.4153 3.01099 3.41512 3.33301V6.58301H12.5821V3.33301C12.5819 3.0111 12.321 2.75018 11.9991 2.75H3.99911ZM9.33211 3.25C9.74633 3.25 10.0821 3.58579 10.0821 4C10.0821 4.41421 9.74633 4.75 9.33211 4.75H6.66512C6.25106 4.74982 5.91512 4.41411 5.91512 4C5.91512 3.58589 6.25106 3.25018 6.66512 3.25H9.33211ZM14.0821 11.333C14.0821 12.2187 13.5284 12.973 12.7491 13.2744V14C12.7491 14.4141 12.4132 14.7498 11.9991 14.75C11.5849 14.75 11.2491 14.4142 11.2491 14V13.417H4.74911V14C4.74911 14.4141 4.41317 14.7498 3.99911 14.75C3.58489 14.75 3.24911 14.4142 3.24911 14V13.2754C2.46934 12.9742 1.91512 12.219 1.91512 11.333V5.21387L1.66708 5.33789C1.29669 5.52273 0.846371 5.37226 0.661216 5.00195C0.476074 4.63149 0.626713 4.18131 0.997153 3.99609L1.91512 3.53613V3.33301C1.9153 2.18256 2.84862 1.25 3.99911 1.25H11.9991C13.1494 1.25018 14.0819 2.18267 14.0821 3.33301V3.53613L15.0011 3.99609C15.3714 4.18142 15.5212 4.63156 15.336 5.00195C15.1508 5.37235 14.7006 5.52293 14.3302 5.33789L14.0821 5.21289V11.333Z", fill: "currentColor" }) })), _jsx("defs", { children: _jsx("clipPath", __assign({ id: "clip0_7033_40084" }, { children: _jsx("rect", { width: "16", height: "16", fill: "white" }) })) })] })));
35
35
  };
36
36
  export default BusIcon;
@@ -2093,7 +2093,8 @@
2093
2093
  border: none;
2094
2094
  border-radius: calc(var(--tab-border-radius-default, 0) / 16);
2095
2095
  border-bottom-style: solid;
2096
- border-bottom-width: calc(var(--tab-border-width-default, 4rem) / 16);
2096
+ /* border-bottom-width: calc(var(--tab-border-width-default, 4rem) / 16); */
2097
+ border-bottom-width: 4px;
2097
2098
  border-bottom-color: var(--tab-color-normal-default-border, #e5e5e5);
2098
2099
  background-color: var(--tab-color-normal-default-background, #ffffff);
2099
2100
  color: var(--color-text-state-default, #737373);
@@ -2109,8 +2110,7 @@
2109
2110
 
2110
2111
  .tab:focus-visible {
2111
2112
  outline: none;
2112
- box-shadow: 0 0 0 calc(2rem / 16)
2113
- var(--tab-color-normal-focused-border, #e5e5e5);
2113
+ box-shadow: 0 0 0 calc(2rem / 16) var(--tab-color-normal-focused-border, #e5e5e5);
2114
2114
  background-color: var(--tab-color-normal-focused-background, #ffffff);
2115
2115
  }
2116
2116
 
@@ -2144,8 +2144,7 @@
2144
2144
  }
2145
2145
 
2146
2146
  .tab--active:focus-visible {
2147
- box-shadow: 0 0 0 calc(2rem / 16)
2148
- var(--tab-color-active-focused-border, #042c2f);
2147
+ box-shadow: 0 0 0 calc(2rem / 16) var(--tab-color-active-focused-border, #042c2f);
2149
2148
  background-color: var(--tab-color-active-focused-background, #ffffff);
2150
2149
  }
2151
2150
 
@@ -2218,7 +2217,6 @@
2218
2217
  --tab-width: var(--tab-outline-sm-focus-width, 121rem);
2219
2218
  --tab-height: var(--tab-outline-sm-focus-height, 59rem);
2220
2219
  border-radius: calc(var(--border-radius-rounded-sm, 4rem) / 16);
2221
- border-top: calc(var(--border-border, 1rem) / 16)
2222
- solid var(--color-atoll-green-800, #0f7173);
2220
+ border-top: calc(var(--border-border, 1rem) / 16) solid
2221
+ var(--color-atoll-green-800, #0f7173);
2223
2222
  }
2224
-
@@ -19,7 +19,7 @@ interface HeadingProps extends BaseProps {
19
19
  level?: HeadingLevel;
20
20
  as?: keyof React.JSX.IntrinsicElements;
21
21
  }
22
- interface TextProps extends BaseProps {
22
+ export interface TextProps extends BaseProps {
23
23
  size?: BodySizeInput;
24
24
  as?: keyof React.JSX.IntrinsicElements;
25
25
  }
@@ -52,8 +52,12 @@ var mapLeadingToToken = function (leading) {
52
52
  };
53
53
  var getBodyClass = function (size, leading) {
54
54
  var availableLeadings = tokenBodyLeadings[size];
55
- var desiredLeading = leading ? mapLeadingToToken(leading) : mapLeadingToToken(defaultBodyLeading[size]);
56
- var resolvedLeading = availableLeadings.includes(desiredLeading) ? desiredLeading : availableLeadings[0];
55
+ var desiredLeading = leading
56
+ ? mapLeadingToToken(leading)
57
+ : mapLeadingToToken(defaultBodyLeading[size]);
58
+ var resolvedLeading = availableLeadings.includes(desiredLeading)
59
+ ? desiredLeading
60
+ : availableLeadings[0];
57
61
  return {
58
62
  className: "body-".concat(size, "-").concat(resolvedLeading),
59
63
  lineHeightHandled: desiredLeading === resolvedLeading,
@@ -77,7 +81,12 @@ export var Heading = function (_a) {
77
81
  var Tag = as || "h".concat(level);
78
82
  var baseClass = (_b = headingTokenClass[level]) !== null && _b !== void 0 ? _b : headingTokenClass[2];
79
83
  var variantClass = buildVariantClass(baseClass, variant);
80
- var classes = [baseClass, variantClass, leading ? leadingFallback[leading] : '', className]
84
+ var classes = [
85
+ baseClass,
86
+ variantClass,
87
+ leading ? leadingFallback[leading] : '',
88
+ className,
89
+ ]
81
90
  .filter(Boolean)
82
91
  .join(' ');
83
92
  var colorStyle = getColorStyle(color);
@@ -89,7 +98,12 @@ export var Text = function (_a) {
89
98
  var normalizedSize = bodySizeAlias[size];
90
99
  var _e = getBodyClass(normalizedSize, leading), baseClass = _e.className, lineHeightHandled = _e.lineHeightHandled;
91
100
  var variantClass = buildVariantClass(baseClass, variant);
92
- var classes = [baseClass, variantClass, leading && !lineHeightHandled ? leadingFallback[leading] : '', className]
101
+ var classes = [
102
+ baseClass,
103
+ variantClass,
104
+ leading && !lineHeightHandled ? leadingFallback[leading] : '',
105
+ className,
106
+ ]
93
107
  .filter(Boolean)
94
108
  .join(' ');
95
109
  var colorStyle = getColorStyle(color);
@@ -3,12 +3,16 @@ import './ActionDropdown.css';
3
3
  export interface ActionDropdownItem {
4
4
  /** Label for the action dropdown item */
5
5
  label: string;
6
+ /** Disable the action dropdown item */
7
+ disabled?: boolean;
6
8
  /** Callback function to be called when the action dropdown item is clicked */
7
9
  onClick?: () => void;
8
10
  }
9
11
  export interface ActionDropdownProps {
10
12
  /** Data for the action dropdown */
11
13
  data: ActionDropdownItem[];
14
+ /** Trigger element */
15
+ children?: React.ReactNode;
12
16
  }
13
17
  /**
14
18
  * A dropdown component that displays a list of actions triggered by a more icon button. Uses a Popover for the dropdown menu.
@@ -24,9 +24,9 @@ import './ActionDropdown.css';
24
24
  * @returns
25
25
  */
26
26
  export var ActionDropdown = function (_a) {
27
- var data = _a.data;
27
+ var data = _a.data, children = _a.children;
28
28
  var _b = useState(false), open = _b[0], setOpen = _b[1];
29
- return (_jsxs(Popover, __assign({ open: open, onOpenChange: setOpen }, { children: [_jsx(PopoverTrigger, { children: _jsx("button", __assign({ className: "action-dropdown-trigger" }, { children: _jsx(Icon, { name: "more-vertical" }) })) }), _jsx(PopoverContent, __assign({ className: "action-dropdown", align: "end" }, { children: data.map(function (item, index) { return (_jsx("button", __assign({ onClick: function () {
29
+ return (_jsxs(Popover, __assign({ open: open, onOpenChange: setOpen }, { children: [_jsx(PopoverTrigger, { children: children !== null && children !== void 0 ? children : (_jsx("button", __assign({ className: "action-dropdown-trigger" }, { children: _jsx(Icon, { name: "more-vertical" }) }))) }), _jsx(PopoverContent, __assign({ className: "action-dropdown", align: "end", side: "bottom", avoidCollisions: false }, { children: data.map(function (item, index) { return (_jsx("button", __assign({ onClick: function () {
30
30
  var _a;
31
31
  setOpen(false);
32
32
  (_a = item.onClick) === null || _a === void 0 ? void 0 : _a.call(item);