@planetaexo/design-system 0.4.18 → 0.4.20
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 +45 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -2
- package/dist/index.d.ts +19 -2
- package/dist/index.js +40 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -269,6 +269,32 @@ function DialogHeader(_a) {
|
|
|
269
269
|
}, props)
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
|
+
function DialogFooter(_a) {
|
|
273
|
+
var _b = _a, {
|
|
274
|
+
className,
|
|
275
|
+
showCloseButton = false,
|
|
276
|
+
children
|
|
277
|
+
} = _b, props = __objRest(_b, [
|
|
278
|
+
"className",
|
|
279
|
+
"showCloseButton",
|
|
280
|
+
"children"
|
|
281
|
+
]);
|
|
282
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
283
|
+
"div",
|
|
284
|
+
__spreadProps(__spreadValues({
|
|
285
|
+
"data-slot": "dialog-footer",
|
|
286
|
+
className: cn(
|
|
287
|
+
"-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",
|
|
288
|
+
className
|
|
289
|
+
)
|
|
290
|
+
}, props), {
|
|
291
|
+
children: [
|
|
292
|
+
children,
|
|
293
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog.Close, { render: /* @__PURE__ */ jsxRuntime.jsx(Button2, { variant: "outline" }), children: "Close" })
|
|
294
|
+
]
|
|
295
|
+
})
|
|
296
|
+
);
|
|
297
|
+
}
|
|
272
298
|
function DialogTitle(_a) {
|
|
273
299
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
274
300
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2216,7 +2242,9 @@ function AdventureSection({
|
|
|
2216
2242
|
onAddContactAsTraveller,
|
|
2217
2243
|
onEditTraveller,
|
|
2218
2244
|
onRemoveTraveller,
|
|
2219
|
-
onAddSuggestedTraveller
|
|
2245
|
+
onAddSuggestedTraveller,
|
|
2246
|
+
onAddTraveller,
|
|
2247
|
+
onUnassignFromAdventure
|
|
2220
2248
|
}) {
|
|
2221
2249
|
var _a, _b, _c;
|
|
2222
2250
|
const [detailsOpen, setDetailsOpen] = React22__namespace.useState(false);
|
|
@@ -2370,7 +2398,7 @@ function AdventureSection({
|
|
|
2370
2398
|
"button",
|
|
2371
2399
|
{
|
|
2372
2400
|
type: "button",
|
|
2373
|
-
onClick: () => setAddModalOpen(true),
|
|
2401
|
+
onClick: () => onAddTraveller ? onAddTraveller(adventure.id) : setAddModalOpen(true),
|
|
2374
2402
|
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
2403
|
children: [
|
|
2376
2404
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.PlusIcon, { className: "w-3 h-3" }),
|
|
@@ -2453,12 +2481,12 @@ function AdventureSection({
|
|
|
2453
2481
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2Icon, { className: "w-3.5 h-3.5" })
|
|
2454
2482
|
}
|
|
2455
2483
|
),
|
|
2456
|
-
onRemoveTraveller && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2484
|
+
(onUnassignFromAdventure || onRemoveTraveller) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2457
2485
|
"button",
|
|
2458
2486
|
{
|
|
2459
2487
|
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-
|
|
2488
|
+
onClick: () => onUnassignFromAdventure ? onUnassignFromAdventure(adventure.id, t.id) : onRemoveTraveller(adventure.id, t.id),
|
|
2489
|
+
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
2490
|
"aria-label": `Remove ${t.firstName} from adventure`,
|
|
2463
2491
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserMinusIcon, { className: "w-3.5 h-3.5" })
|
|
2464
2492
|
}
|
|
@@ -2740,6 +2768,8 @@ function BookingDetails({
|
|
|
2740
2768
|
onEditTraveller,
|
|
2741
2769
|
onRemoveTraveller,
|
|
2742
2770
|
onAddSuggestedTraveller,
|
|
2771
|
+
onAddTraveller,
|
|
2772
|
+
onUnassignFromAdventure,
|
|
2743
2773
|
onPayBalance,
|
|
2744
2774
|
onCancelRequest,
|
|
2745
2775
|
className
|
|
@@ -2821,7 +2851,9 @@ function BookingDetails({
|
|
|
2821
2851
|
onAddContactAsTraveller,
|
|
2822
2852
|
onEditTraveller,
|
|
2823
2853
|
onRemoveTraveller,
|
|
2824
|
-
onAddSuggestedTraveller
|
|
2854
|
+
onAddSuggestedTraveller,
|
|
2855
|
+
onAddTraveller,
|
|
2856
|
+
onUnassignFromAdventure
|
|
2825
2857
|
},
|
|
2826
2858
|
adventure.id
|
|
2827
2859
|
))
|
|
@@ -8545,6 +8577,13 @@ exports.CountrySearchField = CountrySearchField;
|
|
|
8545
8577
|
exports.DEFAULT_HEADER_LINKS = DEFAULT_HEADER_LINKS;
|
|
8546
8578
|
exports.DEFAULT_LANGUAGES = DEFAULT_LANGUAGES;
|
|
8547
8579
|
exports.DatePickerField = DatePickerField;
|
|
8580
|
+
exports.Dialog = Dialog;
|
|
8581
|
+
exports.DialogClose = DialogClose;
|
|
8582
|
+
exports.DialogContent = DialogContent;
|
|
8583
|
+
exports.DialogDescription = DialogDescription;
|
|
8584
|
+
exports.DialogFooter = DialogFooter;
|
|
8585
|
+
exports.DialogHeader = DialogHeader;
|
|
8586
|
+
exports.DialogTitle = DialogTitle;
|
|
8548
8587
|
exports.FilterPanel = FilterPanel;
|
|
8549
8588
|
exports.FloatingInput = FloatingInput;
|
|
8550
8589
|
exports.FloatingSelect = FloatingSelect;
|