@planetaexo/design-system 0.4.19 → 0.4.21
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 +36 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -2
- package/dist/index.d.ts +16 -2
- package/dist/index.js +31 -3
- 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(
|
|
@@ -5010,13 +5036,15 @@ function RegistrationSuccessCard({
|
|
|
5010
5036
|
answers,
|
|
5011
5037
|
dateFormatter = isoOrDateToString,
|
|
5012
5038
|
formatAnswer,
|
|
5013
|
-
className
|
|
5039
|
+
className,
|
|
5040
|
+
actions
|
|
5014
5041
|
}) {
|
|
5015
5042
|
const sorted = [...fields].sort((a, b) => {
|
|
5016
5043
|
var _a, _b;
|
|
5017
5044
|
return ((_a = a.order) != null ? _a : 0) - ((_b = b.order) != null ? _b : 0);
|
|
5018
5045
|
}).filter((f) => Object.prototype.hasOwnProperty.call(answers, f.id));
|
|
5019
5046
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("rounded-xl border border-border bg-card p-6 sm:p-8 flex flex-col gap-10", className), children: [
|
|
5047
|
+
actions && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3 justify-end", children: actions }),
|
|
5020
5048
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-3 text-center", children: [
|
|
5021
5049
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "inline-flex h-14 w-14 items-center justify-center rounded-full bg-primary/10 text-primary", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.CircleCheckIcon, { size: 28 }) }),
|
|
5022
5050
|
/* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl font-black uppercase tracking-wide text-foreground font-heading leading-tight", children: title }),
|
|
@@ -8551,6 +8579,13 @@ exports.CountrySearchField = CountrySearchField;
|
|
|
8551
8579
|
exports.DEFAULT_HEADER_LINKS = DEFAULT_HEADER_LINKS;
|
|
8552
8580
|
exports.DEFAULT_LANGUAGES = DEFAULT_LANGUAGES;
|
|
8553
8581
|
exports.DatePickerField = DatePickerField;
|
|
8582
|
+
exports.Dialog = Dialog;
|
|
8583
|
+
exports.DialogClose = DialogClose;
|
|
8584
|
+
exports.DialogContent = DialogContent;
|
|
8585
|
+
exports.DialogDescription = DialogDescription;
|
|
8586
|
+
exports.DialogFooter = DialogFooter;
|
|
8587
|
+
exports.DialogHeader = DialogHeader;
|
|
8588
|
+
exports.DialogTitle = DialogTitle;
|
|
8554
8589
|
exports.FilterPanel = FilterPanel;
|
|
8555
8590
|
exports.FloatingInput = FloatingInput;
|
|
8556
8591
|
exports.FloatingSelect = FloatingSelect;
|