@planetaexo/design-system 0.4.18 → 0.4.19
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/dist/index.cjs +12 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +12 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2216,7 +2216,9 @@ function AdventureSection({
|
|
|
2216
2216
|
onAddContactAsTraveller,
|
|
2217
2217
|
onEditTraveller,
|
|
2218
2218
|
onRemoveTraveller,
|
|
2219
|
-
onAddSuggestedTraveller
|
|
2219
|
+
onAddSuggestedTraveller,
|
|
2220
|
+
onAddTraveller,
|
|
2221
|
+
onUnassignFromAdventure
|
|
2220
2222
|
}) {
|
|
2221
2223
|
var _a, _b, _c;
|
|
2222
2224
|
const [detailsOpen, setDetailsOpen] = React22__namespace.useState(false);
|
|
@@ -2370,7 +2372,7 @@ function AdventureSection({
|
|
|
2370
2372
|
"button",
|
|
2371
2373
|
{
|
|
2372
2374
|
type: "button",
|
|
2373
|
-
onClick: () => setAddModalOpen(true),
|
|
2375
|
+
onClick: () => onAddTraveller ? onAddTraveller(adventure.id) : setAddModalOpen(true),
|
|
2374
2376
|
className: "flex items-center gap-1.5 rounded-full border border-border px-3 py-1.5 text-xs font-ui text-primary hover:border-primary hover:bg-primary/5 transition-colors",
|
|
2375
2377
|
children: [
|
|
2376
2378
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.PlusIcon, { className: "w-3 h-3" }),
|
|
@@ -2453,12 +2455,12 @@ function AdventureSection({
|
|
|
2453
2455
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2Icon, { className: "w-3.5 h-3.5" })
|
|
2454
2456
|
}
|
|
2455
2457
|
),
|
|
2456
|
-
onRemoveTraveller && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2458
|
+
(onUnassignFromAdventure || onRemoveTraveller) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
2459
|
"button",
|
|
2458
2460
|
{
|
|
2459
2461
|
type: "button",
|
|
2460
|
-
onClick: () => onRemoveTraveller(adventure.id, t.id),
|
|
2461
|
-
className: "flex h-8 w-8 sm:h-7 sm:w-7 items-center justify-center rounded-lg text-muted-foreground hover:text-
|
|
2462
|
+
onClick: () => onUnassignFromAdventure ? onUnassignFromAdventure(adventure.id, t.id) : onRemoveTraveller(adventure.id, t.id),
|
|
2463
|
+
className: "flex h-8 w-8 sm:h-7 sm:w-7 items-center justify-center rounded-lg text-muted-foreground hover:text-amber-500 hover:bg-amber-500/10 transition-colors",
|
|
2462
2464
|
"aria-label": `Remove ${t.firstName} from adventure`,
|
|
2463
2465
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserMinusIcon, { className: "w-3.5 h-3.5" })
|
|
2464
2466
|
}
|
|
@@ -2740,6 +2742,8 @@ function BookingDetails({
|
|
|
2740
2742
|
onEditTraveller,
|
|
2741
2743
|
onRemoveTraveller,
|
|
2742
2744
|
onAddSuggestedTraveller,
|
|
2745
|
+
onAddTraveller,
|
|
2746
|
+
onUnassignFromAdventure,
|
|
2743
2747
|
onPayBalance,
|
|
2744
2748
|
onCancelRequest,
|
|
2745
2749
|
className
|
|
@@ -2821,7 +2825,9 @@ function BookingDetails({
|
|
|
2821
2825
|
onAddContactAsTraveller,
|
|
2822
2826
|
onEditTraveller,
|
|
2823
2827
|
onRemoveTraveller,
|
|
2824
|
-
onAddSuggestedTraveller
|
|
2828
|
+
onAddSuggestedTraveller,
|
|
2829
|
+
onAddTraveller,
|
|
2830
|
+
onUnassignFromAdventure
|
|
2825
2831
|
},
|
|
2826
2832
|
adventure.id
|
|
2827
2833
|
))
|