@snksergio/design-system 0.43.0 → 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.
@@ -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-B68Q4-Hn.cjs");
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(sheet.AlertDialogContent, { className, children: [
91
- !hideClose && /* @__PURE__ */ jsxRuntime.jsx(
92
- "button",
93
- {
94
- type: "button",
95
- onClick: () => onOpenChange(false),
96
- disabled: loading,
97
- "aria-label": "Fechar",
98
- 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",
99
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-4" })
100
- }
101
- ),
102
- /* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogHeader, { children: [
103
- iconNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: alertModalIcon({ tone }), "aria-hidden": "true", children: iconNode }),
104
- /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogTitle, { children: title2 }),
105
- description && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogDescription, { children: description })
106
- ] }),
107
- /* @__PURE__ */ jsxRuntime.jsxs(sheet.AlertDialogFooter, { children: [
108
- !hideCancel && /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogCancel, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
109
- avatar.Button,
110
- {
111
- type: "button",
112
- color: "secondary",
113
- variant: "outline",
114
- size: "md",
115
- fullWidth: true,
116
- disabled: loading,
117
- children: cancelLabel
118
- }
119
- ) }),
120
- /* @__PURE__ */ jsxRuntime.jsx(sheet.AlertDialogAction, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
121
- avatar.Button,
122
- {
123
- type: "button",
124
- color: TONE_BUTTON_COLOR[tone],
125
- variant: "filled",
126
- size: "md",
127
- fullWidth: true,
128
- loading,
129
- onClick: handleConfirm,
130
- children: confirmLabel
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;
@@ -3167,6 +3176,10 @@ function TableToolbarViews({
3167
3176
  []
3168
3177
  );
3169
3178
  const [tabViewIds, setTabViewIds] = React.useState(initialIds);
3179
+ React.useRef(null);
3180
+ React.useEffect(() => {
3181
+ return;
3182
+ }, [views, maxCustomTabs, maxTabs, myOwnerKey]);
3170
3183
  const prevIdsRef = React.useRef(views.map((v) => v.id));
3171
3184
  React.useEffect(() => {
3172
3185
  const currentIds = views.map((v) => v.id);
@@ -13037,4 +13050,4 @@ exports.useColumnResize = useColumnResize;
13037
13050
  exports.useColumnWidths = useColumnWidths;
13038
13051
  exports.useDataTableContext = useDataTableContext;
13039
13052
  exports.useFloatingPanelResize = useFloatingPanelResize;
13040
- //# sourceMappingURL=panel-C3fekbdr.cjs.map
13053
+ //# sourceMappingURL=panel-CNeCgIpC.cjs.map