@snksergio/design-system 0.43.1 → 0.43.2
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-lib/chunks/{panel-D43Xnc-N.cjs → panel-CNeCgIpC.cjs} +56 -47
- package/dist-lib/chunks/panel-CNeCgIpC.cjs.map +1 -0
- package/dist-lib/chunks/{panel-BhXMif_f.mjs → panel-DFhNjXRJ.mjs} +56 -47
- package/dist-lib/chunks/panel-DFhNjXRJ.mjs.map +1 -0
- package/dist-lib/chunks/{sheet-BgA2g6m4.mjs → sheet-D1vQth7X.mjs} +10 -3
- package/dist-lib/chunks/sheet-D1vQth7X.mjs.map +1 -0
- package/dist-lib/chunks/{sheet-B68Q4-Hn.cjs → sheet-j-d_UX7R.cjs} +10 -3
- package/dist-lib/chunks/sheet-j-d_UX7R.cjs.map +1 -0
- package/dist-lib/index.cjs +2 -2
- package/dist-lib/index.mjs +4 -4
- package/dist-lib/preview/clientes.cjs +2 -2
- package/dist-lib/preview/clientes.mjs +2 -2
- package/dist-lib/shadcn.cjs +1 -1
- package/dist-lib/shadcn.mjs +1 -1
- package/dist-lib/src/components/shadcn/alert-dialog.d.ts.map +1 -1
- package/dist-lib/src/components/ui/AlertModal/alert-modal.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist-lib/chunks/panel-BhXMif_f.mjs.map +0 -1
- package/dist-lib/chunks/panel-D43Xnc-N.cjs.map +0 -1
- package/dist-lib/chunks/sheet-B68Q4-Hn.cjs.map +0 -1
- package/dist-lib/chunks/sheet-BgA2g6m4.mjs.map +0 -1
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { A as AlertDialog, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction, T as Textarea, S as Select, D as SelectTrigger, E as SelectValue, u as SelectContent, w as SelectItem, l as Checkbox, Q as Switch, C as Calendar$1, R as getPaginationRange, P as Pagination, o as PaginationFirst, t as PaginationPrevious, m as PaginationContent, p as PaginationItem, n as PaginationEllipsis, r as PaginationLink, s as PaginationNext, q as PaginationLast, N as SheetTitle, I as SheetDescription, G as SheetClose, F as Sheet, O as SheetTrigger, L as SheetOverlay } from "./sheet-
|
|
5
|
+
import { A as AlertDialog, c as AlertDialogContent, f as AlertDialogHeader, i as AlertDialogTitle, d as AlertDialogDescription, e as AlertDialogFooter, b as AlertDialogCancel, a as AlertDialogAction, T as Textarea, S as Select, D as SelectTrigger, E as SelectValue, u as SelectContent, w as SelectItem, l as Checkbox, Q as Switch, C as Calendar$1, R as getPaginationRange, P as Pagination, o as PaginationFirst, t as PaginationPrevious, m as PaginationContent, p as PaginationItem, n as PaginationEllipsis, r as PaginationLink, s as PaginationNext, q as PaginationLast, N as SheetTitle, I as SheetDescription, G as SheetClose, F as Sheet, O as SheetTrigger, L as SheetOverlay } from "./sheet-D1vQth7X.mjs";
|
|
6
6
|
import { forwardRef, createContext, useContext, useId, useState, useRef, useCallback, useEffect, useMemo, Fragment as Fragment$1, useImperativeHandle, memo } from "react";
|
|
7
7
|
import { useSensors, useSensor, PointerSensor, KeyboardSensor, DndContext, closestCorners, DragOverlay, useDroppable, useDraggable, closestCenter } from "@dnd-kit/core";
|
|
8
8
|
import { useSortable, sortableKeyboardCoordinates, SortableContext, horizontalListSortingStrategy, arrayMove } from "@dnd-kit/sortable";
|
|
@@ -69,51 +69,60 @@ function AlertModal({
|
|
|
69
69
|
}
|
|
70
70
|
onConfirm?.();
|
|
71
71
|
};
|
|
72
|
-
return /* @__PURE__ */ jsx(AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
72
|
+
return /* @__PURE__ */ jsx(AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxs(
|
|
73
|
+
AlertDialogContent,
|
|
74
|
+
{
|
|
75
|
+
className,
|
|
76
|
+
onEscapeKeyDown: (e) => {
|
|
77
|
+
if (loading) e.preventDefault();
|
|
78
|
+
},
|
|
79
|
+
children: [
|
|
80
|
+
!hideClose && /* @__PURE__ */ jsx(
|
|
81
|
+
"button",
|
|
82
|
+
{
|
|
83
|
+
type: "button",
|
|
84
|
+
onClick: () => onOpenChange(false),
|
|
85
|
+
disabled: loading,
|
|
86
|
+
"aria-label": "Fechar",
|
|
87
|
+
className: "absolute top-pad-lg right-pad-lg z-10 grid place-items-center size-form-sm rounded-radius-md bg-transparent text-fg-muted opacity-55 transition-[background-color,color,opacity] outline-none hover:bg-bg-muted hover:text-fg-default hover:opacity-100 focus-visible:opacity-100 focus-visible:shadow-sh-ring disabled:pointer-events-none",
|
|
88
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4" })
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsxs(AlertDialogHeader, { children: [
|
|
92
|
+
iconNode && /* @__PURE__ */ jsx("div", { className: alertModalIcon({ tone }), "aria-hidden": "true", children: iconNode }),
|
|
93
|
+
/* @__PURE__ */ jsx(AlertDialogTitle, { children: title2 }),
|
|
94
|
+
description && /* @__PURE__ */ jsx(AlertDialogDescription, { children: description })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ jsxs(AlertDialogFooter, { children: [
|
|
97
|
+
!hideCancel && /* @__PURE__ */ jsx(AlertDialogCancel, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
98
|
+
Button,
|
|
99
|
+
{
|
|
100
|
+
type: "button",
|
|
101
|
+
color: "secondary",
|
|
102
|
+
variant: "outline",
|
|
103
|
+
size: "md",
|
|
104
|
+
fullWidth: true,
|
|
105
|
+
disabled: loading,
|
|
106
|
+
children: cancelLabel
|
|
107
|
+
}
|
|
108
|
+
) }),
|
|
109
|
+
/* @__PURE__ */ jsx(AlertDialogAction, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
110
|
+
Button,
|
|
111
|
+
{
|
|
112
|
+
type: "button",
|
|
113
|
+
color: TONE_BUTTON_COLOR[tone],
|
|
114
|
+
variant: "filled",
|
|
115
|
+
size: "md",
|
|
116
|
+
fullWidth: true,
|
|
117
|
+
loading,
|
|
118
|
+
onClick: handleConfirm,
|
|
119
|
+
children: confirmLabel
|
|
120
|
+
}
|
|
121
|
+
) })
|
|
122
|
+
] })
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
) });
|
|
117
126
|
}
|
|
118
127
|
function hexToRgb(hex) {
|
|
119
128
|
if (typeof hex !== "string") return null;
|
|
@@ -13025,4 +13034,4 @@ export {
|
|
|
13025
13034
|
DataTableActionsCell as y,
|
|
13026
13035
|
DataTableEditCell as z
|
|
13027
13036
|
};
|
|
13028
|
-
//# sourceMappingURL=panel-
|
|
13037
|
+
//# sourceMappingURL=panel-DFhNjXRJ.mjs.map
|