@snksergio/design-system 0.43.1 → 0.43.3
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-BhXMif_f.mjs → panel-CCPe1H70.mjs} +66 -47
- package/dist-lib/chunks/panel-CCPe1H70.mjs.map +1 -0
- package/dist-lib/chunks/{panel-D43Xnc-N.cjs → panel-CvfP8eP1.cjs} +66 -47
- package/dist-lib/chunks/panel-CvfP8eP1.cjs.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/dist-lib/src/components/ui/FloatingPanel/floating-panel.styles.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
|
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
const jsxRuntime = require("react/jsx-runtime");
|
|
6
|
-
const sheet = require("./sheet-
|
|
6
|
+
const sheet = require("./sheet-j-d_UX7R.cjs");
|
|
7
7
|
const React = require("react");
|
|
8
8
|
const core = require("@dnd-kit/core");
|
|
9
9
|
const sortable = require("@dnd-kit/sortable");
|
|
@@ -87,51 +87,60 @@ function AlertModal({
|
|
|
87
87
|
}
|
|
88
88
|
onConfirm?.();
|
|
89
89
|
};
|
|
90
|
-
return /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
90
|
+
return /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialog, { open, onOpenChange, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
|
+
sheet.AlertDialogContent,
|
|
92
|
+
{
|
|
93
|
+
className,
|
|
94
|
+
onEscapeKeyDown: (e) => {
|
|
95
|
+
if (loading) e.preventDefault();
|
|
96
|
+
},
|
|
97
|
+
children: [
|
|
98
|
+
!hideClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
+
"button",
|
|
100
|
+
{
|
|
101
|
+
type: "button",
|
|
102
|
+
onClick: () => onOpenChange(false),
|
|
103
|
+
disabled: loading,
|
|
104
|
+
"aria-label": "Fechar",
|
|
105
|
+
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",
|
|
106
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4" })
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogHeader, { children: [
|
|
110
|
+
iconNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: alertModalIcon({ tone }), "aria-hidden": "true", children: iconNode }),
|
|
111
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogTitle, { children: title2 }),
|
|
112
|
+
description && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogDescription, { children: description })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogFooter, { children: [
|
|
115
|
+
!hideCancel && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogCancel, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
116
|
+
avatar.Button,
|
|
117
|
+
{
|
|
118
|
+
type: "button",
|
|
119
|
+
color: "secondary",
|
|
120
|
+
variant: "outline",
|
|
121
|
+
size: "md",
|
|
122
|
+
fullWidth: true,
|
|
123
|
+
disabled: loading,
|
|
124
|
+
children: cancelLabel
|
|
125
|
+
}
|
|
126
|
+
) }),
|
|
127
|
+
/* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogAction, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
128
|
+
avatar.Button,
|
|
129
|
+
{
|
|
130
|
+
type: "button",
|
|
131
|
+
color: TONE_BUTTON_COLOR[tone],
|
|
132
|
+
variant: "filled",
|
|
133
|
+
size: "md",
|
|
134
|
+
fullWidth: true,
|
|
135
|
+
loading,
|
|
136
|
+
onClick: handleConfirm,
|
|
137
|
+
children: confirmLabel
|
|
138
|
+
}
|
|
139
|
+
) })
|
|
140
|
+
] })
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
) });
|
|
135
144
|
}
|
|
136
145
|
function hexToRgb(hex) {
|
|
137
146
|
if (typeof hex !== "string") return null;
|
|
@@ -4099,6 +4108,16 @@ const floatingPanelStyles = avatar.tv({
|
|
|
4099
4108
|
"rounded-radius-xl border border-border-default outline-float shadow-sh-2xl",
|
|
4100
4109
|
// Desktop (md+) — gutter top/bottom 24px
|
|
4101
4110
|
"md:top-pad-4xl md:bottom-pad-4xl",
|
|
4111
|
+
// …e o mesmo gutter de 24px como TETO de largura, simétrico (24+24=48).
|
|
4112
|
+
//
|
|
4113
|
+
// Sem isto o painel estoura a viewport com props DEFAULT: `side="right"` ancora a
|
|
4114
|
+
// 24px da borda e `resizableMaxWidth` default é 800 → 800+24 = 824px de necessidade.
|
|
4115
|
+
// Em qualquer janela entre 768 e 824 (≥md, então sem o sheet mobile) a borda esquerda
|
|
4116
|
+
// ia pra fora da tela. Mesmo caso com `size={n}` grande num monitor pequeno.
|
|
4117
|
+
//
|
|
4118
|
+
// O `min`/`max` do hook de resize é em PIXEL e cego à viewport — quem clampa é isto.
|
|
4119
|
+
// Não regride nada: `max-width` só age quando a largura já estouraria.
|
|
4120
|
+
"md:max-w-[calc(100vw-48px)]",
|
|
4102
4121
|
// Mobile (max-md) — sheet bottom-up colado nas bordas do device:
|
|
4103
4122
|
// flush nas laterais + bottom, só top arredondado, sem outline/shadow, cap 92vh
|
|
4104
4123
|
"max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:!w-auto",
|
|
@@ -13041,4 +13060,4 @@ exports.useColumnResize = useColumnResize;
|
|
|
13041
13060
|
exports.useColumnWidths = useColumnWidths;
|
|
13042
13061
|
exports.useDataTableContext = useDataTableContext;
|
|
13043
13062
|
exports.useFloatingPanelResize = useFloatingPanelResize;
|
|
13044
|
-
//# sourceMappingURL=panel-
|
|
13063
|
+
//# sourceMappingURL=panel-CvfP8eP1.cjs.map
|