mautourco-components 0.2.60 → 0.2.62

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.
@@ -5,5 +5,5 @@
5
5
  .transfer-header {
6
6
  display: grid;
7
7
  grid-template-columns: repeat(2, minmax(0, 1fr));
8
- column-gap: 1rem;
8
+ gap: 1rem;
9
9
  }
@@ -22,6 +22,9 @@
22
22
  border-spacing: 0;
23
23
  &.table-layout-fixed {
24
24
  table-layout: fixed;
25
+ .table {
26
+ table-layout: fixed;
27
+ }
25
28
  }
26
29
  th,
27
30
  td {
@@ -253,7 +256,7 @@
253
256
  &::after {
254
257
  content: '';
255
258
  position: absolute;
256
- inset: -1px -1px 1px -1px;
259
+ inset: -1px;
257
260
  pointer-events: none;
258
261
  max-width: 100%;
259
262
  background-image:
@@ -88,7 +88,10 @@ export var quotationColumns = function (_a) {
88
88
  var isExpanded = (_a = raw.children) === null || _a === void 0 ? void 0 : _a.some(function (child) { return child.visible; });
89
89
  var buttonLabel = isExpanded ? 'See less' : 'See more';
90
90
  var isOnRequest = raw.status.toLowerCase() === 'on request';
91
- var isPast = new Date(raw.created_date) < new Date();
91
+ var isPast = false;
92
+ if (raw.date[0]) {
93
+ isPast = new Date(raw.date[0]) < new Date();
94
+ }
92
95
  return (_jsx("div", { children: hasChildren ? (_jsx(Button, { variant: "outline-primary", size: "sm", trailingIcon: "chevron-down", className: cn('table__button', isExpanded && 'table__button-expanded'), onClick: function () { return onExpand === null || onExpand === void 0 ? void 0 : onExpand(raw, index, childIndex); }, children: buttonLabel })) : (_jsxs("div", { className: "flex items-center gap-x-8", children: [_jsx(Button, { variant: isOnRequest ? 'outline-secondary' : 'secondary', size: "sm", className: cn('table__button', {
93
96
  'opacity-50 pointer-events-none': isPast,
94
97
  }), children: isOnRequest ? 'Request to book' : 'Book now' }), _jsx("div", { children: _jsx(ActionDropdown, { data: actionDropdownData((_b = onAction === null || onAction === void 0 ? void 0 : onAction({ isChild: childIndex !== undefined, quote: raw })) !== null && _b !== void 0 ? _b : (function () { })) }) })] })) }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mautourco-components",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "private": false,
5
5
  "description": "Bibliothèque de composants Mautourco pour le redesign",
6
6
  "main": "dist/index.js",
@@ -1,3 +1,3 @@
1
1
  .transfer-header {
2
- @apply grid grid-cols-2 gap-x-4;
2
+ @apply grid grid-cols-2 gap-4;
3
3
  }
@@ -18,6 +18,9 @@
18
18
  border-spacing: 0;
19
19
  &.table-layout-fixed {
20
20
  table-layout: fixed;
21
+ .table {
22
+ table-layout: fixed;
23
+ }
21
24
  }
22
25
  th,
23
26
  td {
@@ -231,7 +234,7 @@
231
234
  &::after {
232
235
  content: '';
233
236
  position: absolute;
234
- inset: -1px -1px 1px -1px;
237
+ inset: -1px;
235
238
  pointer-events: none;
236
239
  max-width: 100%;
237
240
  background-image:
@@ -152,7 +152,11 @@ export const quotationColumns: (params: {
152
152
  const buttonLabel = isExpanded ? 'See less' : 'See more';
153
153
  const isOnRequest = raw.status.toLowerCase() === 'on request';
154
154
 
155
- const isPast = new Date(raw.created_date) < new Date();
155
+ let isPast = false;
156
+
157
+ if (raw.date[0]) {
158
+ isPast = new Date(raw.date[0]) < new Date();
159
+ }
156
160
 
157
161
  return (
158
162
  <div>