nexaas-ui-components 1.0.18 → 1.0.19

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 CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
+ var React4 = require('react');
3
4
  var jsxRuntime = require('react/jsx-runtime');
4
- var clsx7 = require('clsx');
5
+ var clsx9 = require('clsx');
5
6
  var datetime2 = require('@blueprintjs/datetime2');
6
- var React2 = require('react');
7
7
  var reactHookForm = require('react-hook-form');
8
8
  var zustand = require('zustand');
9
9
  var dateFns = require('date-fns');
@@ -39,15 +39,15 @@ function _interopNamespace(e) {
39
39
  return Object.freeze(n);
40
40
  }
41
41
 
42
- var clsx7__default = /*#__PURE__*/_interopDefault(clsx7);
43
- var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
42
+ var React4__namespace = /*#__PURE__*/_interopNamespace(React4);
43
+ var clsx9__default = /*#__PURE__*/_interopDefault(clsx9);
44
44
  var IntlCurrencyInputRaw__default = /*#__PURE__*/_interopDefault(IntlCurrencyInputRaw);
45
45
  var lodashNamespace__namespace = /*#__PURE__*/_interopNamespace(lodashNamespace);
46
46
  var InputMask__default = /*#__PURE__*/_interopDefault(InputMask);
47
47
  var ReactModalNamespace__namespace = /*#__PURE__*/_interopNamespace(ReactModalNamespace);
48
48
  var AsyncSelect__default = /*#__PURE__*/_interopDefault(AsyncSelect);
49
49
 
50
- // src/assets/spinner.tsx
50
+ // src/components/Button.tsx
51
51
  var SpinnerIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
52
52
  "svg",
53
53
  {
@@ -116,9 +116,6 @@ var variants = {
116
116
  blue: {
117
117
  text: "shadow-button bg-blue-500 text-white text-bold"
118
118
  },
119
- link: {
120
- text: "text-left text-blue-500 hover:text-blue-600 hover:underline active:text-blue-600 disabled:text-blue-500 disabled:no-underline shadow-none font-normal disabled:opacity-50"
121
- },
122
119
  iconSecondary: {
123
120
  text: "border-[1px] border-none text-white active:bg-[#0A0A0A40]/20 hover:bg-[#F5F5F526]/10 hover:text-white disabled:text-neutral-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-white disabled:opacity-50 active:shadow-none"
124
121
  },
@@ -151,6 +148,8 @@ var paddingConfig = {
151
148
  var Button = ({
152
149
  variant = "primary",
153
150
  size = "lg",
151
+ hotkey,
152
+ hotkeyPosition = "bottom",
154
153
  ...props
155
154
  }) => {
156
155
  const applyGap = props.icon && props.children;
@@ -158,14 +157,47 @@ var Button = ({
158
157
  const appliedSize = sizes[size];
159
158
  const appliedPadding = props.icon ? paddingConfig[size].icon : paddingConfig[size].normal;
160
159
  const gapText = applyGap ? "gap-[6px]" : "gap-0";
161
- return /* @__PURE__ */ jsxRuntime.jsx(
162
- "button",
160
+ React4.useEffect(() => {
161
+ if (!hotkey || !props.onClick) return;
162
+ const handleKeyDown = (event) => {
163
+ var _a;
164
+ if (props.disabled || props.loading) return;
165
+ const keys = hotkey.toLowerCase().split("+").map((k) => k.trim());
166
+ const primaryKey = keys.pop();
167
+ if (!primaryKey) return;
168
+ const requiredCtrl = keys.includes("ctrl");
169
+ const requiredAlt = keys.includes("alt");
170
+ const requiredShift = keys.includes("shift");
171
+ const requiredMeta = keys.includes("meta") || keys.includes("cmd");
172
+ const match = event.key.toLowerCase() === primaryKey && event.ctrlKey === requiredCtrl && event.altKey === requiredAlt && event.shiftKey === requiredShift && event.metaKey === requiredMeta;
173
+ if (match) {
174
+ event.preventDefault();
175
+ (_a = props.onClick) == null ? void 0 : _a.call(props, event);
176
+ }
177
+ };
178
+ window.addEventListener("keydown", handleKeyDown);
179
+ return () => {
180
+ window.removeEventListener("keydown", handleKeyDown);
181
+ };
182
+ }, [hotkey, props.onClick, props.disabled, props.loading]);
183
+ const hotkeyLabel = hotkey && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-p-sm font-normal", children: hotkey.toUpperCase() });
184
+ return /* @__PURE__ */ jsxRuntime.jsxs(
185
+ "div",
163
186
  {
164
- type: props.type,
165
- id: "button-component",
166
- ...props,
167
- disabled: props.disabled || props.loading,
168
- className: `
187
+ className: clsx9__default.default("inline-flex gap-[8px]", {
188
+ "flex-col items-center": hotkeyPosition === "top" || hotkeyPosition === "bottom",
189
+ "flex-row items-center": hotkeyPosition === "left" || hotkeyPosition === "right"
190
+ }),
191
+ children: [
192
+ hotkey && (hotkeyPosition === "top" || hotkeyPosition === "left") && /* @__PURE__ */ jsxRuntime.jsx("span", { style: { color: "var(--label)" }, className: "text-p-sm font-normal -mt-[5px]", children: hotkeyLabel }),
193
+ /* @__PURE__ */ jsxRuntime.jsx(
194
+ "button",
195
+ {
196
+ type: props.type,
197
+ id: "button-component",
198
+ ...props,
199
+ disabled: props.disabled || props.loading,
200
+ className: `
169
201
  ${props.className}
170
202
  ${appliedVariant}
171
203
  ${appliedSize.text}
@@ -173,20 +205,193 @@ var Button = ({
173
205
  ${gapText}
174
206
  whitespace-nowrap group rounded-lg font-bold disabled:shadow-none active:shadow-none flex items-center
175
207
  `,
176
- children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
177
- props.icon && /* @__PURE__ */ jsxRuntime.jsx(
178
- "div",
179
- {
180
- className: `flex items-center justify-center ${appliedSize.icon}`,
181
- children: props.icon && !props.loading ? props.icon : props.loadingIcon && props.loading ? props.loadingIcon : /* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, { className: "animate-spin" })
208
+ children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
209
+ props.icon && /* @__PURE__ */ jsxRuntime.jsx(
210
+ "div",
211
+ {
212
+ className: `flex items-center justify-center ${appliedSize.icon}`,
213
+ children: props.icon && !props.loading ? props.icon : props.loadingIcon && props.loading ? props.loadingIcon : /* @__PURE__ */ jsxRuntime.jsx(SpinnerIcon, { className: "animate-spin" })
214
+ }
215
+ ),
216
+ props.children,
217
+ props.dropdown && /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-angle-down text-[18px]" })
218
+ ] })
182
219
  }
183
220
  ),
184
- props.children,
185
- props.dropdown && /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-angle-down text-[18px]" })
186
- ] })
221
+ hotkey && (hotkeyPosition === "bottom" || hotkeyPosition === "right") && /* @__PURE__ */ jsxRuntime.jsx(
222
+ "span",
223
+ {
224
+ style: { color: "var(--label)" },
225
+ className: "text-p-sm font-normal -mt-[5px]",
226
+ children: hotkeyLabel
227
+ }
228
+ )
229
+ ]
187
230
  }
188
231
  );
189
232
  };
233
+ var sizes2 = {
234
+ xxs: {
235
+ text: "min-h-[14px] max-h-[40px]"
236
+ },
237
+ xs: {
238
+ text: "h-[36px]"
239
+ },
240
+ sm: {
241
+ text: "h-[40px]"
242
+ },
243
+ md: {
244
+ text: "h-[46px]"
245
+ },
246
+ table: {
247
+ text: "h-8 w-8"
248
+ }
249
+ };
250
+ var variants2 = {
251
+ primary: {
252
+ text: "shadow-button text-button-label bg-gradient-to-b hover:text-white from-rose-start to-rose-end active:bg-gradient-to-b active:from-rose-800 active:to-rose-800 disabled:bg-gradient-to-b disabled:from-rose-800 disabled:to-rose-800 disabled:opacity-50 hover:from-[#FD467F] hover:to-[#DF4573]"
253
+ },
254
+ secondary: {
255
+ text: "shadow-button bg-white border-[0.5px] border-paragraph text-dark-blue-600 hover:text-dark-blue-600 hover:bg-[#f5f5f5] active:bg-light-gray-100 disabled:text-dark-blue-400 disabled:bg-white disabled:border-[0.5px] disabled:border-dark-blue-400"
256
+ },
257
+ link: {
258
+ text: "text-blue-700 hover:text-blue-800 hover:underline active:text-blue-900 active:underline disabled:text-blue-700 disabled:no-underline shadow-none font-normal"
259
+ },
260
+ icon: {
261
+ text: "bg-white border-[0.5px] border-dark-blue-300 hover:bg-[#f5f5f5] active:bg-light-gray-100 hover:text-paragraph disabled:text-dark-blue-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-white disabled:opacity-50"
262
+ },
263
+ iconSecondary: {
264
+ text: "border-[1px] border-none text-white active:bg-[#0A0A0A40]/20 hover:bg-[#F5F5F526]/10 hover:text-white disabled:text-dark-blue-400 disabled:border-[0.5px] disabled:border-disabled disabled:bg-white disabled:opacity-50"
265
+ },
266
+ outline: {
267
+ text: "shadow-button bg-white border-[0.5px] border-rose-700 text-rose-700 hover:bg-[#f5f5f5] active:bg-light-gray-100 disabled:text-rose-700 disabled:bg-white disabled:border-[0.5px] disabled:border-rose-700 disabled:opacity-50"
268
+ },
269
+ dark: {
270
+ text: "shadow-button text-white hover:bg-[#f5f5f526] active:bg-[#0a0a0a40] disabled:opacity-50 disabled:bg-transparent"
271
+ },
272
+ dangerLight: {
273
+ text: "shadow-button text-dangerous-700 font-bold bg-white border-[0.5px] border-dangerous-700 hover:bg-dangerous-100 active:bg-dangerous-700 active:text-white disabled:opacity-50 disabled:bg-white disabled:text-dangerous-700"
274
+ },
275
+ danger: {
276
+ text: "shadow-button text-white bg-gradient-to-b from-danger-start to-danger-end hover:from-[#FD6363] hover:to-[#E34E4E] active:from-dangerous-800 active:to-dangerous-800 disabled:opacity-50 disabled:from-dangerous-700 disabled:to-dangerous-700"
277
+ },
278
+ success: {
279
+ text: "shadow-button text-white bg-gradient-to-b from-success-start to-success-end hover:from-[#3FF09B] hover:to-[#27C579] active:from-success-800 active:to-success-800 disabled:opacity-50 disabled:from-success-700 disabled:to-success-700"
280
+ },
281
+ warn: {
282
+ text: "shadow-button text-white bg-gradient-to-b from-warning-start to-warning-end hover:from-[#FEBD5D] hover:to-[#F4A42D] active:from-warning-800 active:to-warning-800 disabled:opacity-50 disabled:from-warning-700 disabled:to-warning-700"
283
+ },
284
+ blue: {
285
+ text: "shadow-button bg-blue-700 text-white text-bold"
286
+ },
287
+ filter: {
288
+ text: "shadow-button rounded-3xl border border-dark-blue-300 text-paragraph shadow-button hover:bg-light-gray-100 active:border active:border-blue-700 active:text-blue-700 active:bg-blue-100 focus:border focus:border-blue-700 focus:text-blue-700 focus:bg-blue-100"
289
+ },
290
+ filterActive: {
291
+ text: "shadow-button rounded-3xl border border-blue-700 text-blue-700 bg-blue-100 shadow-button hover:bg-blue-700 hover:text-white active:text-white active:bg-blue-900 active:border-blue-900 focus:text-white focus:bg-blue-900 focus:border-blue-900"
292
+ }
293
+ };
294
+ var ButtonLink = React4.forwardRef(
295
+ ({
296
+ size = "md",
297
+ icon,
298
+ padding = "px-3",
299
+ label,
300
+ disabled,
301
+ name,
302
+ target,
303
+ variant = "link",
304
+ className,
305
+ as: LinkComponent = "a",
306
+ hotkey,
307
+ hotkeyPosition = "bottom",
308
+ ...props
309
+ }, ref) => {
310
+ var _a;
311
+ const applyGap = icon;
312
+ React4.useEffect(() => {
313
+ if (!hotkey) return;
314
+ const handleKeyDown = (event) => {
315
+ var _a2;
316
+ if (disabled) return;
317
+ const keys = hotkey.toLowerCase().split("+").map((k) => k.trim());
318
+ const primaryKey = keys.pop();
319
+ if (!primaryKey) return;
320
+ const requiredCtrl = keys.includes("ctrl");
321
+ const requiredAlt = keys.includes("alt");
322
+ const requiredShift = keys.includes("shift");
323
+ const requiredMeta = keys.includes("meta") || keys.includes("cmd");
324
+ const match = event.key.toLowerCase() === primaryKey && event.ctrlKey === requiredCtrl && event.altKey === requiredAlt && event.shiftKey === requiredShift && event.metaKey === requiredMeta;
325
+ if (match) {
326
+ event.preventDefault();
327
+ if (props.onClick) {
328
+ (_a2 = props.onClick) == null ? void 0 : _a2.call(props, event);
329
+ } else {
330
+ const linkElement = document.querySelector(`a[href="${props.href}"]`);
331
+ linkElement == null ? void 0 : linkElement.click();
332
+ }
333
+ }
334
+ };
335
+ window.addEventListener("keydown", handleKeyDown);
336
+ return () => {
337
+ window.removeEventListener("keydown", handleKeyDown);
338
+ };
339
+ }, [hotkey, props.onClick, props.href, disabled]);
340
+ const hotkeyLabel = hotkey && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-p-sm font-normal", children: hotkey.toUpperCase() });
341
+ return /* @__PURE__ */ jsxRuntime.jsxs(
342
+ "div",
343
+ {
344
+ className: clsx9__default.default("inline-flex gap-[8px]", {
345
+ "flex-col items-center justify-center": hotkeyPosition === "top" || hotkeyPosition === "bottom",
346
+ "flex-row items-center justify-center": hotkeyPosition === "left" || hotkeyPosition === "right"
347
+ }),
348
+ children: [
349
+ hotkey && (hotkeyPosition === "top" || hotkeyPosition === "left") && /* @__PURE__ */ jsxRuntime.jsx(
350
+ "span",
351
+ {
352
+ style: { color: "var(--label)" },
353
+ className: "text-p-sm font-normal -mt-[5px]",
354
+ children: hotkeyLabel
355
+ }
356
+ ),
357
+ /* @__PURE__ */ jsxRuntime.jsxs(
358
+ LinkComponent,
359
+ {
360
+ ref,
361
+ className: clsx9__default.default(
362
+ {
363
+ [(_a = variants2[variant]) == null ? void 0 : _a.text]: true,
364
+ [sizes2[size].text]: true,
365
+ ["pointer-events-none shadow-none text-label"]: disabled,
366
+ ["px-2"]: variant !== "link"
367
+ },
368
+ `group rounded-lg font-bold active:shadow-none font-title flex items-center justify-start cursor-pointer
369
+ ${applyGap ? "gap-2" : "gap-0"} ${className}
370
+ `
371
+ ),
372
+ target,
373
+ ...props,
374
+ download: name,
375
+ children: [
376
+ icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[20px] flex items-center justify-center", children: icon }),
377
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "cursor-pointer line-clamp-2", children: label })
378
+ ]
379
+ }
380
+ ),
381
+ hotkey && (hotkeyPosition === "bottom" || hotkeyPosition === "right") && /* @__PURE__ */ jsxRuntime.jsx(
382
+ "span",
383
+ {
384
+ style: { color: "var(--label)" },
385
+ className: "text-p-sm font-normal -mt-[5px]",
386
+ children: hotkeyLabel
387
+ }
388
+ )
389
+ ]
390
+ }
391
+ );
392
+ }
393
+ );
394
+ ButtonLink.displayName = "ButtonLink";
190
395
  var Input = ({
191
396
  label,
192
397
  type,
@@ -237,7 +442,7 @@ var Input = ({
237
442
  value,
238
443
  defaultValue,
239
444
  style: !label && placeholder && icon || icon ? inlineStyles.inputWithIcon : void 0,
240
- className: clsx7__default.default({
445
+ className: clsx9__default.default({
241
446
  [styles.error]: hasError,
242
447
  [styles.input]: true,
243
448
  ["pr-10"]: clearField,
@@ -258,14 +463,14 @@ var Input = ({
258
463
  icon && /* @__PURE__ */ jsxRuntime.jsx(
259
464
  "div",
260
465
  {
261
- className: clsx7__default.default(styles.icon, "flex justify-center items-center"),
466
+ className: clsx9__default.default(styles.icon, "flex justify-center items-center"),
262
467
  children: icon
263
468
  }
264
469
  ),
265
470
  hideInput && /* @__PURE__ */ jsxRuntime.jsx(
266
471
  "div",
267
472
  {
268
- className: clsx7__default.default(
473
+ className: clsx9__default.default(
269
474
  styles.rightIcon,
270
475
  "flex justify-center items-center"
271
476
  ),
@@ -276,7 +481,7 @@ var Input = ({
276
481
  "label",
277
482
  {
278
483
  style: icon ? inlineStyles.labelWithIcon : void 0,
279
- className: clsx7__default.default(
484
+ className: clsx9__default.default(
280
485
  {
281
486
  [styles.label]: true,
282
487
  ["left-2.5"]: !icon
@@ -293,7 +498,7 @@ var Input = ({
293
498
  clearField && value && value !== "" && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
294
499
  "i",
295
500
  {
296
- className: clsx7__default.default(
501
+ className: clsx9__default.default(
297
502
  {
298
503
  [styles.clear]: true
299
504
  },
@@ -419,7 +624,7 @@ var useFieldErrorsStore = zustand.create(
419
624
  }))
420
625
  })
421
626
  );
422
- var DatePickerInput = React2.forwardRef(
627
+ var DatePickerInput = React4.forwardRef(
423
628
  ({
424
629
  icon,
425
630
  label,
@@ -440,12 +645,12 @@ var DatePickerInput = React2.forwardRef(
440
645
  popoverOffset
441
646
  }, ref) => {
442
647
  var _a;
443
- const [invalidDate, setInvalidDate] = React2.useState(false);
444
- const [showCalendar, setShowCalendar] = React2.useState(false);
445
- const [inputWidth, setInputWidth] = React2.useState(0);
446
- const inputContainerRef = React2.useRef(null);
648
+ const [invalidDate, setInvalidDate] = React4.useState(false);
649
+ const [showCalendar, setShowCalendar] = React4.useState(false);
650
+ const [inputWidth, setInputWidth] = React4.useState(0);
651
+ const inputContainerRef = React4.useRef(null);
447
652
  const dateFnsFormat = "dd/MM/yyyy";
448
- React2.useEffect(() => {
653
+ React4.useEffect(() => {
449
654
  const updateWidth = () => {
450
655
  if (inputContainerRef.current) {
451
656
  setInputWidth(inputContainerRef.current.offsetWidth + 10);
@@ -498,7 +703,7 @@ var DatePickerInput = React2.forwardRef(
498
703
  "div",
499
704
  {
500
705
  id: "icon",
501
- className: clsx7__default.default(
706
+ className: clsx9__default.default(
502
707
  styles.icon,
503
708
  "flex justify-center items-center text-[20px] bg-gray-100"
504
709
  ),
@@ -545,7 +750,7 @@ var DatePickerInput = React2.forwardRef(
545
750
  /* @__PURE__ */ jsxRuntime.jsxs(
546
751
  "label",
547
752
  {
548
- className: clsx7__default.default(
753
+ className: clsx9__default.default(
549
754
  "pointer-events-none ",
550
755
  styles.label,
551
756
  `
@@ -562,7 +767,7 @@ var DatePickerInput = React2.forwardRef(
562
767
  clearField && (field == null ? void 0 : field.value) && (field == null ? void 0 : field.value) !== "" && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
563
768
  "i",
564
769
  {
565
- className: clsx7__default.default(
770
+ className: clsx9__default.default(
566
771
  {
567
772
  [styles.clear]: true
568
773
  },
@@ -597,7 +802,7 @@ var DatePickerInput = React2.forwardRef(
597
802
  ] });
598
803
  }
599
804
  );
600
- var variants2 = {
805
+ var variants3 = {
601
806
  success: "bg-success-100 text-success-600",
602
807
  warning: "bg-warning-100 text-warning-600",
603
808
  blue: "bg-blue-100 text-blue-500",
@@ -619,8 +824,8 @@ var Badge = ({
619
824
  return /* @__PURE__ */ jsxRuntime.jsx(
620
825
  "span",
621
826
  {
622
- className: clsx7__default.default(
623
- { [variants2[variant]]: (variant == null ? void 0 : variant.length) > 0 },
827
+ className: clsx9__default.default(
828
+ { [variants3[variant]]: (variant == null ? void 0 : variant.length) > 0 },
624
829
  "py-1 px-2 text-p-md font-normal inline-flex items-center justify-center gap-1 rounded-full text-center",
625
830
  className
626
831
  ),
@@ -894,7 +1099,7 @@ var Checkbox = ({
894
1099
  id: registration ? registration.name : key,
895
1100
  disabled,
896
1101
  type: "checkbox",
897
- className: clsx7__default.default(
1102
+ className: clsx9__default.default(
898
1103
  "disabled:hover:bg-neutral-100 disabled:cursor-default cursor-pointer h-[16px] w-[16px] rounded-[2.5px] border border-neutral-200 text-blue-500 focus:rounded-[4px] focus:border-[1.5px] focus:ring-blue-500 focus-visible:ring-blue-500 checked:after:text-blue-500 disabled:bg-neutral-100"
899
1104
  )
900
1105
  }
@@ -926,8 +1131,8 @@ var FilterCalendar = ({
926
1131
  filterOpen: "rounded-3xl shadow-input border border-blue-500 bg-blue-100 text-blue-500",
927
1132
  filterActive: "rounded-3xl border border-blue-500 text-blue-500 bg-blue-100 shadow-input hover:bg-blue-500 hover:text-white active:text-white active:bg-blue-600 active:border-blue-600"
928
1133
  };
929
- const [currentValue, setCurrentValue] = React2.useState([]);
930
- const [calendarLabel, setCalendarLabel] = React2.useState("");
1134
+ const [currentValue, setCurrentValue] = React4.useState([]);
1135
+ const [calendarLabel, setCalendarLabel] = React4.useState("");
931
1136
  const isMobileSize = (window == null ? void 0 : window.innerWidth) < 768;
932
1137
  const shorcuts = [
933
1138
  {
@@ -1088,7 +1293,7 @@ var FilterCalendar = ({
1088
1293
  ]
1089
1294
  }
1090
1295
  ];
1091
- const [selectedShortcut, setSelectedShortcut] = React2.useState(
1296
+ const [selectedShortcut, setSelectedShortcut] = React4.useState(
1092
1297
  defaultShortcut || shorcuts[0]
1093
1298
  );
1094
1299
  const calendar = /* @__PURE__ */ jsxRuntime.jsx("div", { id: "group-input-calendar", className: "relative", children: rangeCalendar ? /* @__PURE__ */ jsxRuntime.jsx(
@@ -1160,7 +1365,7 @@ var FilterCalendar = ({
1160
1365
  return /* @__PURE__ */ jsxRuntime.jsx(
1161
1366
  react.Popover,
1162
1367
  {
1163
- className: clsx7__default.default(
1368
+ className: clsx9__default.default(
1164
1369
  { ["w-full"]: isMobileSize },
1165
1370
  "relative text-paragraph"
1166
1371
  ),
@@ -1170,7 +1375,7 @@ var FilterCalendar = ({
1170
1375
  /* @__PURE__ */ jsxRuntime.jsx(react$1.Float.Reference, { children: /* @__PURE__ */ jsxRuntime.jsx(react.PopoverButton, { as: "button", children: /* @__PURE__ */ jsxRuntime.jsxs(
1171
1376
  "div",
1172
1377
  {
1173
- className: clsx7__default.default(
1378
+ className: clsx9__default.default(
1174
1379
  {
1175
1380
  [style.filter]: !hasValue && !open,
1176
1381
  [style.filterOpen]: open && !hasValue,
@@ -1182,7 +1387,7 @@ var FilterCalendar = ({
1182
1387
  icon && /* @__PURE__ */ jsxRuntime.jsx(
1183
1388
  "div",
1184
1389
  {
1185
- className: clsx7__default.default({
1390
+ className: clsx9__default.default({
1186
1391
  ["text-label group-active:text-blue-500"]: !field.value && !open,
1187
1392
  ["text-blue-500"]: open && !field.value,
1188
1393
  ["text-blue-500 group-hover:text-white group-active:text-white"]: open && field.value
@@ -1193,7 +1398,7 @@ var FilterCalendar = ({
1193
1398
  /* @__PURE__ */ jsxRuntime.jsx(
1194
1399
  "label",
1195
1400
  {
1196
- className: clsx7__default.default(
1401
+ className: clsx9__default.default(
1197
1402
  {
1198
1403
  ["text-paragraph group-active:text-blue-500"]: !field.value && !open,
1199
1404
  ["text-blue-500"]: open && !field.value,
@@ -1209,7 +1414,7 @@ var FilterCalendar = ({
1209
1414
  /* @__PURE__ */ jsxRuntime.jsx(
1210
1415
  "i",
1211
1416
  {
1212
- className: clsx7__default.default(
1417
+ className: clsx9__default.default(
1213
1418
  {
1214
1419
  ["text-label group-active:text-blue-500"]: !field.value && !open,
1215
1420
  ["text-blue-500"]: open && !field.value,
@@ -1227,7 +1432,7 @@ var FilterCalendar = ({
1227
1432
  setCurrentValue(field.value);
1228
1433
  close();
1229
1434
  };
1230
- React2.useEffect(() => {
1435
+ React4.useEffect(() => {
1231
1436
  setCurrentValue(field.value);
1232
1437
  }, [open]);
1233
1438
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -1236,7 +1441,7 @@ var FilterCalendar = ({
1236
1441
  onClear && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mr-1", children: /* @__PURE__ */ jsxRuntime.jsx(
1237
1442
  Button,
1238
1443
  {
1239
- variant: "link",
1444
+ variant: "secondary",
1240
1445
  size: "xxs",
1241
1446
  onClick: () => {
1242
1447
  if (onClear) {
@@ -1303,7 +1508,7 @@ function InputSmall({
1303
1508
  onClear,
1304
1509
  collapsed
1305
1510
  }) {
1306
- const inputRef = React2.useRef(null);
1511
+ const inputRef = React4.useRef(null);
1307
1512
  const styles = {
1308
1513
  input: `text-p-md text-paragraph w-full outline-none placeholder:text-label`,
1309
1514
  icon: "text-label group-focus-within:text-neutral-600 m-[10px]",
@@ -1311,8 +1516,8 @@ function InputSmall({
1311
1516
  clear: "pr-[5px] cursor-pointer text-label text-[16px]"
1312
1517
  };
1313
1518
  const elem = inputRef == null ? void 0 : inputRef.current;
1314
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx7__default.default(styles.wrapper), children: [
1315
- icon && !searchOnClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx7__default.default(styles.icon), children: icon }),
1519
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx9__default.default(styles.wrapper), children: [
1520
+ icon && !searchOnClick && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx9__default.default(styles.icon), children: icon }),
1316
1521
  /* @__PURE__ */ jsxRuntime.jsx(
1317
1522
  "input",
1318
1523
  {
@@ -1320,7 +1525,7 @@ function InputSmall({
1320
1525
  ...inputProps,
1321
1526
  type: "search-text",
1322
1527
  ref: inputRef,
1323
- className: clsx7__default.default(
1528
+ className: clsx9__default.default(
1324
1529
  {
1325
1530
  ["pl-1"]: collapsed
1326
1531
  },
@@ -1337,7 +1542,7 @@ function InputSmall({
1337
1542
  clearField && value && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
1338
1543
  "i",
1339
1544
  {
1340
- className: clsx7__default.default(styles.clear, "uil uil-times"),
1545
+ className: clsx9__default.default(styles.clear, "uil uil-times"),
1341
1546
  onClick: () => {
1342
1547
  elem.value = "";
1343
1548
  elem == null ? void 0 : elem.focus();
@@ -1352,7 +1557,7 @@ function InputSmall({
1352
1557
  "button",
1353
1558
  {
1354
1559
  type: "button",
1355
- className: clsx7__default.default({
1560
+ className: clsx9__default.default({
1356
1561
  ["border-l border-input pl-1"]: clearField && value && !disabled,
1357
1562
  ["text-blue-500"]: !disabled,
1358
1563
  ["text-neutral-300"]: disabled,
@@ -1386,13 +1591,13 @@ var FilterOptions = ({
1386
1591
  filterOpen: "rounded-3xl shadow-input border border-blue-500 bg-blue-100 text-blue-500",
1387
1592
  filterActive: "rounded-3xl border border-blue-500 text-blue-500 bg-blue-100 shadow-input hover:bg-blue-500 hover:text-white active:text-white active:bg-blue-600 active:border-blue-600"
1388
1593
  };
1389
- const [currentValue, setCurrentValue] = React2.useState(isMulti ? [] : {});
1390
- const [data, setData] = React2.useState(() => options);
1391
- const [filter, setFilter] = React2.useState("");
1392
- const [subFilter, setSubFilter] = React2.useState(
1594
+ const [currentValue, setCurrentValue] = React4.useState(isMulti ? [] : {});
1595
+ const [data, setData] = React4.useState(() => options);
1596
+ const [filter, setFilter] = React4.useState("");
1597
+ const [subFilter, setSubFilter] = React4.useState(
1393
1598
  (subFilters == null ? void 0 : subFilters.length) > 0 ? subFilters[0].id : null
1394
1599
  );
1395
- const [loading, setLoading] = React2.useState(false);
1600
+ const [loading, setLoading] = React4.useState(false);
1396
1601
  const search = async () => {
1397
1602
  if ((filter == null ? void 0 : filter.length) > 0 || (options == null ? void 0 : options.length) > 0) {
1398
1603
  if (fetch) {
@@ -1415,7 +1620,7 @@ var FilterOptions = ({
1415
1620
  }
1416
1621
  setLoading(false);
1417
1622
  };
1418
- React2.useEffect(() => {
1623
+ React4.useEffect(() => {
1419
1624
  setLoading(true);
1420
1625
  const timeout = setTimeout(() => {
1421
1626
  search();
@@ -1428,11 +1633,11 @@ var FilterOptions = ({
1428
1633
  {
1429
1634
  disabled: option.disabled,
1430
1635
  value: option,
1431
- as: React2.Fragment,
1636
+ as: React4.Fragment,
1432
1637
  children: /* @__PURE__ */ jsxRuntime.jsxs(
1433
1638
  "div",
1434
1639
  {
1435
- className: clsx7__default.default(
1640
+ className: clsx9__default.default(
1436
1641
  "relative cursor-pointer outline-none select-none p-3 rounded-lg pr-9 text-paragraph mt-1 first:mt-0 overflow-hidden w-full",
1437
1642
  {
1438
1643
  ["hover:bg-neutral-200"]: !option.disabled && !isSelected,
@@ -1444,7 +1649,7 @@ var FilterOptions = ({
1444
1649
  /* @__PURE__ */ jsxRuntime.jsx(
1445
1650
  "span",
1446
1651
  {
1447
- className: clsx7__default.default(
1652
+ className: clsx9__default.default(
1448
1653
  {
1449
1654
  ["font-semibold text-white"]: isSelected
1450
1655
  },
@@ -1456,7 +1661,7 @@ var FilterOptions = ({
1456
1661
  /* @__PURE__ */ jsxRuntime.jsx(
1457
1662
  "span",
1458
1663
  {
1459
- className: clsx7__default.default(
1664
+ className: clsx9__default.default(
1460
1665
  {
1461
1666
  ["font-semibold text-white"]: isSelected
1462
1667
  },
@@ -1468,7 +1673,7 @@ var FilterOptions = ({
1468
1673
  isSelected ? /* @__PURE__ */ jsxRuntime.jsx(
1469
1674
  "span",
1470
1675
  {
1471
- className: clsx7__default.default(
1676
+ className: clsx9__default.default(
1472
1677
  "absolute inset-y-0 text-white right-0 flex items-center pr-4"
1473
1678
  ),
1474
1679
  children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-check text-lg" })
@@ -1493,7 +1698,7 @@ var FilterOptions = ({
1493
1698
  return /* @__PURE__ */ jsxRuntime.jsx(
1494
1699
  react.Popover,
1495
1700
  {
1496
- className: clsx7__default.default(
1701
+ className: clsx9__default.default(
1497
1702
  { ["w-full"]: isMobileSize },
1498
1703
  "relative text-paragraph"
1499
1704
  ),
@@ -1503,7 +1708,7 @@ var FilterOptions = ({
1503
1708
  /* @__PURE__ */ jsxRuntime.jsx(react$1.Float.Reference, { children: /* @__PURE__ */ jsxRuntime.jsx(react.PopoverButton, { as: "button", children: /* @__PURE__ */ jsxRuntime.jsxs(
1504
1709
  "div",
1505
1710
  {
1506
- className: clsx7__default.default(
1711
+ className: clsx9__default.default(
1507
1712
  {
1508
1713
  [style.filter]: !hasValue && !open,
1509
1714
  [style.filterOpen]: open && !hasValue,
@@ -1515,7 +1720,7 @@ var FilterOptions = ({
1515
1720
  icon && /* @__PURE__ */ jsxRuntime.jsx(
1516
1721
  "div",
1517
1722
  {
1518
- className: clsx7__default.default({
1723
+ className: clsx9__default.default({
1519
1724
  ["text-label group-active:text-blue-500"]: !field.value && !open,
1520
1725
  ["text-blue-500"]: open && !field.value,
1521
1726
  ["text-blue-500 group-hover:text-white group-active:text-white"]: open && field.value
@@ -1526,7 +1731,7 @@ var FilterOptions = ({
1526
1731
  /* @__PURE__ */ jsxRuntime.jsx(
1527
1732
  "label",
1528
1733
  {
1529
- className: clsx7__default.default(
1734
+ className: clsx9__default.default(
1530
1735
  {
1531
1736
  ["text-paragraph group-active:text-blue-500"]: !field.value && !open,
1532
1737
  ["text-blue-500"]: open && !field.value,
@@ -1541,7 +1746,7 @@ var FilterOptions = ({
1541
1746
  /* @__PURE__ */ jsxRuntime.jsx(
1542
1747
  "i",
1543
1748
  {
1544
- className: clsx7__default.default(
1749
+ className: clsx9__default.default(
1545
1750
  {
1546
1751
  ["text-label group-active:text-blue-500"]: !field.value && !open,
1547
1752
  ["text-blue-500"]: open && !field.value,
@@ -1559,7 +1764,7 @@ var FilterOptions = ({
1559
1764
  setCurrentValue(field.value);
1560
1765
  close();
1561
1766
  };
1562
- React2.useEffect(() => {
1767
+ React4.useEffect(() => {
1563
1768
  setCurrentValue(field.value);
1564
1769
  }, [open]);
1565
1770
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -1596,7 +1801,7 @@ var FilterOptions = ({
1596
1801
  return /* @__PURE__ */ jsxRuntime.jsx(
1597
1802
  "button",
1598
1803
  {
1599
- className: clsx7__default.default(
1804
+ className: clsx9__default.default(
1600
1805
  {
1601
1806
  ["bg-blue-500 text-white"]: active,
1602
1807
  ["text-paragraph"]: !active
@@ -1655,7 +1860,7 @@ var FilterOptions = ({
1655
1860
  isMulti && onSelectAll && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-r pr-2 border-neutral-300", children: /* @__PURE__ */ jsxRuntime.jsx(
1656
1861
  Button,
1657
1862
  {
1658
- variant: "link",
1863
+ variant: "secondary",
1659
1864
  size: "xxs",
1660
1865
  onClick: () => {
1661
1866
  onSelectAll();
@@ -1669,7 +1874,7 @@ var FilterOptions = ({
1669
1874
  onClear && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mr-1", children: /* @__PURE__ */ jsxRuntime.jsx(
1670
1875
  Button,
1671
1876
  {
1672
- variant: "link",
1877
+ variant: "secondary",
1673
1878
  size: "xxs",
1674
1879
  onClick: () => {
1675
1880
  if (onClear) {
@@ -1787,7 +1992,7 @@ function InputMoney({
1787
1992
  icon && /* @__PURE__ */ jsxRuntime.jsx(
1788
1993
  "div",
1789
1994
  {
1790
- className: clsx7__default.default(
1995
+ className: clsx9__default.default(
1791
1996
  styles.icon,
1792
1997
  "flex justify-center items-center"
1793
1998
  ),
@@ -1801,7 +2006,7 @@ function InputMoney({
1801
2006
  ...inputProps,
1802
2007
  ...field,
1803
2008
  type: "text",
1804
- className: clsx7__default.default({
2009
+ className: clsx9__default.default({
1805
2010
  [styles.input]: true,
1806
2011
  ["pr-10"]: clearField,
1807
2012
  ["pr-2"]: !clearField,
@@ -1823,7 +2028,7 @@ function InputMoney({
1823
2028
  /* @__PURE__ */ jsxRuntime.jsxs(
1824
2029
  "label",
1825
2030
  {
1826
- className: clsx7__default.default(
2031
+ className: clsx9__default.default(
1827
2032
  {
1828
2033
  [styles.label]: true,
1829
2034
  ["left-[46px]"]: icon,
@@ -1892,13 +2097,13 @@ function InputNumber({
1892
2097
  buttonsWrapper: "absolute top-[7px] right-[10px] cursor-pointer text-label flex flex-col gap-[2px]",
1893
2098
  button: "border-[0.5px] border-neutral-300 rounded shadow-input h-4 w-4 flex items-center justify-center"
1894
2099
  };
1895
- const [debouncedCount, setDebouncedCount] = React2.useState(0);
2100
+ const [debouncedCount, setDebouncedCount] = React4.useState(0);
1896
2101
  const save = () => {
1897
2102
  if (onBlur) {
1898
2103
  onBlur(value);
1899
2104
  }
1900
2105
  };
1901
- const updateCount = React2.useMemo(() => {
2106
+ const updateCount = React4.useMemo(() => {
1902
2107
  return debounce_default(() => {
1903
2108
  save();
1904
2109
  }, 1e3);
@@ -1933,7 +2138,7 @@ function InputNumber({
1933
2138
  icon && /* @__PURE__ */ jsxRuntime.jsx(
1934
2139
  "div",
1935
2140
  {
1936
- className: clsx7__default.default(
2141
+ className: clsx9__default.default(
1937
2142
  styles.icon,
1938
2143
  "flex justify-center items-center"
1939
2144
  ),
@@ -1947,7 +2152,7 @@ function InputNumber({
1947
2152
  type: "number",
1948
2153
  autoComplete: "off",
1949
2154
  id: name,
1950
- className: clsx7__default.default({
2155
+ className: clsx9__default.default({
1951
2156
  [styles.input]: true,
1952
2157
  ["pr-10"]: clearField,
1953
2158
  ["pr-2"]: !clearField,
@@ -1998,7 +2203,7 @@ function InputNumber({
1998
2203
  /* @__PURE__ */ jsxRuntime.jsxs(
1999
2204
  "label",
2000
2205
  {
2001
- className: clsx7__default.default(
2206
+ className: clsx9__default.default(
2002
2207
  {
2003
2208
  [styles.label]: true,
2004
2209
  ["left-[3.5rem]"]: icon,
@@ -2014,12 +2219,12 @@ function InputNumber({
2014
2219
  }
2015
2220
  )
2016
2221
  ] }),
2017
- !hideArrows && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx7__default.default([styles.buttonsWrapper]), children: [
2222
+ !hideArrows && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx9__default.default([styles.buttonsWrapper]), children: [
2018
2223
  /* @__PURE__ */ jsxRuntime.jsx(
2019
2224
  "button",
2020
2225
  {
2021
2226
  type: "button",
2022
- className: clsx7__default.default([styles.button]),
2227
+ className: clsx9__default.default([styles.button]),
2023
2228
  disabled,
2024
2229
  onClick: () => {
2025
2230
  if (!maxValue || maxValue && Number(value2 || 0) + 1 <= maxValue) {
@@ -2033,7 +2238,7 @@ function InputNumber({
2033
2238
  "button",
2034
2239
  {
2035
2240
  type: "button",
2036
- className: clsx7__default.default([styles.button]),
2241
+ className: clsx9__default.default([styles.button]),
2037
2242
  disabled,
2038
2243
  onClick: () => {
2039
2244
  if (!maxValue || maxValue && Number(value2 === 0 ? 0 : Number(value2) - 1) <= maxValue) {
@@ -2123,7 +2328,7 @@ function InputPercentage({
2123
2328
  icon && /* @__PURE__ */ jsxRuntime.jsx(
2124
2329
  "div",
2125
2330
  {
2126
- className: clsx7__default.default(
2331
+ className: clsx9__default.default(
2127
2332
  styles.icon,
2128
2333
  "flex justify-center items-center"
2129
2334
  ),
@@ -2137,7 +2342,7 @@ function InputPercentage({
2137
2342
  ...inputProps,
2138
2343
  ...field,
2139
2344
  type: "text",
2140
- className: clsx7__default.default({
2345
+ className: clsx9__default.default({
2141
2346
  [styles.input]: true,
2142
2347
  ["pr-10"]: clearField,
2143
2348
  ["pr-2"]: !clearField,
@@ -2155,7 +2360,7 @@ function InputPercentage({
2155
2360
  /* @__PURE__ */ jsxRuntime.jsxs(
2156
2361
  "label",
2157
2362
  {
2158
- className: clsx7__default.default(
2363
+ className: clsx9__default.default(
2159
2364
  {
2160
2365
  [styles.label]: true,
2161
2366
  ["left-[3rem]"]: icon,
@@ -2203,7 +2408,7 @@ var MaskedInput = ({
2203
2408
  defaultValue,
2204
2409
  disabled
2205
2410
  }) => {
2206
- const ref = React2.useRef(null);
2411
+ const ref = React4.useRef(null);
2207
2412
  return /* @__PURE__ */ jsxRuntime.jsx(
2208
2413
  reactHookForm.Controller,
2209
2414
  {
@@ -2274,7 +2479,7 @@ var alertTypes = {
2274
2479
  info: "text-blue-500",
2275
2480
  primary: "text-rose-700"
2276
2481
  };
2277
- var sizes2 = {
2482
+ var sizes3 = {
2278
2483
  xs: "w-[350px]",
2279
2484
  sm: "w-[662px]",
2280
2485
  md: "w-[960px]",
@@ -2316,7 +2521,7 @@ var ModalDialog = ({
2316
2521
  zIndex: 9999
2317
2522
  }
2318
2523
  };
2319
- const trigger = triggerButton ? React2.cloneElement(triggerButton, {
2524
+ const trigger = triggerButton ? React4.cloneElement(triggerButton, {
2320
2525
  onClick: () => {
2321
2526
  onOpen();
2322
2527
  }
@@ -2331,10 +2536,10 @@ var ModalDialog = ({
2331
2536
  onRequestClose: onClose,
2332
2537
  style: customStyles3,
2333
2538
  contentLabel: "Example Modal",
2334
- children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx7__default.default(sizes2[size]), children: [
2539
+ children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx9__default.default(sizes3[size]), children: [
2335
2540
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pb-2 border-b border-b-neutral-200 flex items-center justify-between", children: [
2336
2541
  /* @__PURE__ */ jsxRuntime.jsxs("h3", { className: "text-[24px] font-bold flex items-center gap-2", children: [
2337
- alertType && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx7__default.default([alertTypes[alertType]], "text-[30px]"), children: icon }),
2542
+ alertType && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx9__default.default([alertTypes[alertType]], "text-[30px]"), children: icon }),
2338
2543
  title
2339
2544
  ] }),
2340
2545
  /* @__PURE__ */ jsxRuntime.jsx("button", { onClick: onCancel, className: "text-neutral-500 text-[24px]", children: /* @__PURE__ */ jsxRuntime.jsx("i", { className: "uil uil-times" }) })
@@ -2344,7 +2549,7 @@ var ModalDialog = ({
2344
2549
  /* @__PURE__ */ jsxRuntime.jsx(
2345
2550
  "div",
2346
2551
  {
2347
- className: clsx7__default.default({
2552
+ className: clsx9__default.default({
2348
2553
  ["flex-1"]: info
2349
2554
  }),
2350
2555
  children: info
@@ -2539,13 +2744,13 @@ var SelectField = ({
2539
2744
  }) => {
2540
2745
  var _a;
2541
2746
  const { Option, DropdownIndicator, ClearIndicator, SingleValue } = reactSelect.components;
2542
- const selectRef = React2.useRef(null);
2543
- const [inputValue, setInputValue] = React2.useState("");
2544
- const [loading, setLoading] = React2.useState(false);
2545
- const [options, setOptions] = React2.useState(() => optionsList || []);
2546
- const [availableHeight, setAvailableHeight] = React2.useState(300);
2547
- const [isFocused, setIsFocused] = React2.useState(false);
2548
- React2.useEffect(() => {
2747
+ const selectRef = React4.useRef(null);
2748
+ const [inputValue, setInputValue] = React4.useState("");
2749
+ const [loading, setLoading] = React4.useState(false);
2750
+ const [options, setOptions] = React4.useState(() => optionsList || []);
2751
+ const [availableHeight, setAvailableHeight] = React4.useState(300);
2752
+ const [isFocused, setIsFocused] = React4.useState(false);
2753
+ React4.useEffect(() => {
2549
2754
  const updateAvailableHeight = () => {
2550
2755
  var _a2, _b;
2551
2756
  if ((_a2 = selectRef == null ? void 0 : selectRef.current) == null ? void 0 : _a2.getBoundingClientRect) {
@@ -2593,7 +2798,7 @@ var SelectField = ({
2593
2798
  const hasIcon = {
2594
2799
  hasIcon: icon
2595
2800
  };
2596
- React2.useEffect(() => {
2801
+ React4.useEffect(() => {
2597
2802
  setOptions(() => optionsList);
2598
2803
  }, [optionsList]);
2599
2804
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -2618,7 +2823,7 @@ var SelectField = ({
2618
2823
  alignItems: "center",
2619
2824
  justifyContent: "space-between"
2620
2825
  },
2621
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx7__default.default("text-p-md focus:text-white"), children: props.data.label })
2826
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx9__default.default("text-p-md focus:text-white"), children: props.data.label })
2622
2827
  }
2623
2828
  ) });
2624
2829
  };
@@ -2695,7 +2900,7 @@ var SelectField = ({
2695
2900
  icon && /* @__PURE__ */ jsxRuntime.jsx(
2696
2901
  "div",
2697
2902
  {
2698
- className: clsx7__default.default(
2903
+ className: clsx9__default.default(
2699
2904
  "z-[70] absolute bg-neutral-100 top-[1px] left-[1px] rounded-l-lg flex justify-center items-center h-[44px] w-[38px] text-[22px] text-dark-blue-600",
2700
2905
  {
2701
2906
  "text-blue-500": isFocused && hasIcon.hasIcon,
@@ -2747,7 +2952,7 @@ var SelectField = ({
2747
2952
  /* @__PURE__ */ jsxRuntime.jsxs(
2748
2953
  "span",
2749
2954
  {
2750
- className: clsx7__default.default(
2955
+ className: clsx9__default.default(
2751
2956
  "text-label text-sm left-2.5 cursor-pointer pointer-events-none absolute transition-all duration-200",
2752
2957
  {
2753
2958
  "scale-75 -translate-y-3": field.value || inputValue,
@@ -2936,10 +3141,10 @@ var SelectFieldBip = ({
2936
3141
  }) => {
2937
3142
  var _a;
2938
3143
  const { Option, SingleValue } = reactSelect.components;
2939
- const selectRef = React2.useRef(null);
2940
- const [inputValue, setInputValue] = React2.useState("");
2941
- const [loading, setLoading] = React2.useState(false);
2942
- const [cachedOptions, setCachedOptions] = React2.useState([]);
3144
+ const selectRef = React4.useRef(null);
3145
+ const [inputValue, setInputValue] = React4.useState("");
3146
+ const [loading, setLoading] = React4.useState(false);
3147
+ const [cachedOptions, setCachedOptions] = React4.useState([]);
2943
3148
  const fetchOptions = async (value) => {
2944
3149
  if (isSearchable && filterOptions) {
2945
3150
  if (!debounce2 || debounce2 && value.length >= debounce2) {
@@ -2967,12 +3172,12 @@ var SelectFieldBip = ({
2967
3172
  hasIcon: icon
2968
3173
  };
2969
3174
  const iconStyle = `z-[70] absolute bg-neutral-100 h-[44px] top-[1px] left-[1px] rounded-l-lg flex justify-center items-center w-[38px] text-[22px] ${hasError.hasError ? "text-dangerous-500" : "text-label"}`;
2970
- const debouncedFetchOptions = React2.useMemo(() => {
3175
+ const debouncedFetchOptions = React4.useMemo(() => {
2971
3176
  return debounce_default((value, callback) => {
2972
3177
  fetchOptions(value).then(callback);
2973
3178
  }, 300);
2974
3179
  }, [filterOptions]);
2975
- React2.useEffect(() => {
3180
+ React4.useEffect(() => {
2976
3181
  return () => {
2977
3182
  debouncedFetchOptions.cancel();
2978
3183
  };
@@ -2999,7 +3204,7 @@ var SelectFieldBip = ({
2999
3204
  alignItems: "center",
3000
3205
  justifyContent: "space-between"
3001
3206
  },
3002
- children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx7__default.default("text-p-md focus:text-white"), children: props.data.label })
3207
+ children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx9__default.default("text-p-md focus:text-white"), children: props.data.label })
3003
3208
  }
3004
3209
  ) });
3005
3210
  };
@@ -3138,7 +3343,7 @@ var SelectFieldBip = ({
3138
3343
  /* @__PURE__ */ jsxRuntime.jsxs(
3139
3344
  "span",
3140
3345
  {
3141
- className: clsx7__default.default(
3346
+ className: clsx9__default.default(
3142
3347
  "text-label text-sm left-2.5 cursor-pointer pointer-events-none",
3143
3348
  {
3144
3349
  [" scale-75 -translate-y-3 "]: field.value,
@@ -3295,22 +3500,22 @@ function PaginationSelect({
3295
3500
  id: index,
3296
3501
  name: index
3297
3502
  }));
3298
- const [pageSizeSelected, setPageSizeSelected] = React2.useState({
3503
+ const [pageSizeSelected, setPageSizeSelected] = React4.useState({
3299
3504
  id: ((_a = JSON.parse(sessionStorage.getItem("pageSize"))) == null ? void 0 : _a.id) || 20,
3300
3505
  name: ((_b = JSON.parse(sessionStorage.getItem("pageSize"))) == null ? void 0 : _b.name) || 20
3301
3506
  });
3302
- const [pageSelected, setPageSelected] = React2.useState({
3507
+ const [pageSelected, setPageSelected] = React4.useState({
3303
3508
  id: ((_d = (_c = table == null ? void 0 : table.getState()) == null ? void 0 : _c.pagination) == null ? void 0 : _d.pageIndex) || 0,
3304
3509
  name: ((_f = (_e = table == null ? void 0 : table.getState()) == null ? void 0 : _e.pagination) == null ? void 0 : _f.pageIndex) || 0
3305
3510
  });
3306
- const [pagesOptions, setPagesOptions] = React2.useState(() => options);
3307
- const [pageSizesOptions, setPagesSizesOptions] = React2.useState(
3511
+ const [pagesOptions, setPagesOptions] = React4.useState(() => options);
3512
+ const [pageSizesOptions, setPagesSizesOptions] = React4.useState(
3308
3513
  pageSizeOptions == null ? void 0 : pageSizeOptions.map((item) => ({
3309
3514
  id: item,
3310
3515
  name: item
3311
3516
  }))
3312
3517
  );
3313
- const [query, setQuery] = React2.useState("");
3518
+ const [query, setQuery] = React4.useState("");
3314
3519
  const filter = () => {
3315
3520
  let copy = [...options];
3316
3521
  setPagesOptions(
@@ -3322,10 +3527,10 @@ function PaginationSelect({
3322
3527
  const saveSessionStorage = (key, values) => {
3323
3528
  sessionStorage.setItem(key, JSON.stringify(values));
3324
3529
  };
3325
- React2.useEffect(() => {
3530
+ React4.useEffect(() => {
3326
3531
  filter();
3327
3532
  }, [query]);
3328
- React2.useEffect(() => {
3533
+ React4.useEffect(() => {
3329
3534
  saveSessionStorage("pageSize", pageSizeSelected);
3330
3535
  table.setPageSize(pageSizeSelected == null ? void 0 : pageSizeSelected.id);
3331
3536
  table.setPageIndex(0);
@@ -3334,7 +3539,7 @@ function PaginationSelect({
3334
3539
  name: 0
3335
3540
  });
3336
3541
  }, [pageSizeSelected]);
3337
- React2.useEffect(() => {
3542
+ React4.useEffect(() => {
3338
3543
  setPagesOptions(
3339
3544
  pageCount ? [...Array(pageCount)].map((item, index) => ({
3340
3545
  id: index,
@@ -3342,7 +3547,7 @@ function PaginationSelect({
3342
3547
  })) : []
3343
3548
  );
3344
3549
  }, [table == null ? void 0 : table.getPageCount()]);
3345
- React2.useEffect(() => {
3550
+ React4.useEffect(() => {
3346
3551
  var _a2, _b2, _c2, _d2, _e2, _f2;
3347
3552
  if (((_b2 = (_a2 = table == null ? void 0 : table.getState()) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.pageIndex) >= 0) {
3348
3553
  setPageSelected({
@@ -3372,7 +3577,7 @@ function PaginationSelect({
3372
3577
  react.Combobox.Option,
3373
3578
  {
3374
3579
  value: opt,
3375
- className: clsx7__default.default(
3580
+ className: clsx9__default.default(
3376
3581
  "p-2 rounded-lg items-center justify-center cursor-pointer flex whitespace-nowrap no-underline ",
3377
3582
  {
3378
3583
  "bg-blue-500 hover:bg-blue-500 hover:text-[#FFFFFF] text-[#FFFFFF]": selected
@@ -3447,7 +3652,7 @@ function PaginationSelect({
3447
3652
  react.Combobox.Option,
3448
3653
  {
3449
3654
  value: opt,
3450
- className: clsx7__default.default(
3655
+ className: clsx9__default.default(
3451
3656
  "p-2 rounded-lg items-center justify-center cursor-pointer flex whitespace-nowrap no-underline ",
3452
3657
  {
3453
3658
  "bg-blue-500 hover:bg-blue-500 hover:text-[#FFFFFF] text-[#FFFFFF]": selected
@@ -3467,11 +3672,11 @@ function PaginationSelect({
3467
3672
  ] })
3468
3673
  ] });
3469
3674
  }
3470
- var Table = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3675
+ var Table = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3471
3676
  "table",
3472
3677
  {
3473
3678
  ref,
3474
- className: clsx7.clsx(
3679
+ className: clsx9.clsx(
3475
3680
  "table-scroll block text-left border-separate border-spacing-0 w-full",
3476
3681
  className
3477
3682
  ),
@@ -3480,22 +3685,22 @@ var Table = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @_
3480
3685
  }
3481
3686
  ));
3482
3687
  Table.displayName = "Table";
3483
- var TableHeader = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3688
+ var TableHeader = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3484
3689
  "thead",
3485
3690
  {
3486
3691
  ref,
3487
- className: clsx7.clsx("w-full sticky top-0 z-[90]", className),
3692
+ className: clsx9.clsx("w-full sticky top-0 z-[90]", className),
3488
3693
  ...props
3489
3694
  }
3490
3695
  ));
3491
3696
  TableHeader.displayName = "TableHeader";
3492
- var TableBody = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: clsx7.clsx(className), ...props }));
3697
+ var TableBody = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: clsx9.clsx(className), ...props }));
3493
3698
  TableBody.displayName = "TableBody";
3494
- var TableFooter = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3699
+ var TableFooter = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3495
3700
  "div",
3496
3701
  {
3497
3702
  ref,
3498
- className: clsx7.clsx(
3703
+ className: clsx9.clsx(
3499
3704
  " flex flex-col md:flex-row gap-2 md:gap-0 justify-between items-center py-4 px-6 bg-white w-full h-full border border-neutral-200 rounded-t-lg",
3500
3705
  className
3501
3706
  ),
@@ -3503,13 +3708,13 @@ var TableFooter = React2__namespace.forwardRef(({ className, ...props }, ref) =>
3503
3708
  }
3504
3709
  ));
3505
3710
  TableFooter.displayName = "TableFooter";
3506
- var TableRow = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: clsx7.clsx(className), ...props }));
3711
+ var TableRow = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tr", { ref, className: clsx9.clsx(className), ...props }));
3507
3712
  TableRow.displayName = "TableRow";
3508
- var TableHead = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3713
+ var TableHead = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3509
3714
  "th",
3510
3715
  {
3511
3716
  ref,
3512
- className: clsx7.clsx(
3717
+ className: clsx9.clsx(
3513
3718
  {
3514
3719
  "hover:bg-neutral-100": props.sortable
3515
3720
  },
@@ -3520,11 +3725,11 @@ var TableHead = React2__namespace.forwardRef(({ className, ...props }, ref) => /
3520
3725
  }
3521
3726
  ));
3522
3727
  TableHead.displayName = "TableHead";
3523
- var TableCell = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3728
+ var TableCell = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3524
3729
  "td",
3525
3730
  {
3526
3731
  ref,
3527
- className: clsx7.clsx(
3732
+ className: clsx9.clsx(
3528
3733
  "align-middle h-[80px] border-b border-neutral-200 whitespace-nowrap py-4 px-5",
3529
3734
  className
3530
3735
  ),
@@ -3532,11 +3737,11 @@ var TableCell = React2__namespace.forwardRef(({ className, ...props }, ref) => /
3532
3737
  }
3533
3738
  ));
3534
3739
  TableCell.displayName = "TableCell";
3535
- var TableCaption = React2__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3740
+ var TableCaption = React4__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3536
3741
  "caption",
3537
3742
  {
3538
3743
  ref,
3539
- className: clsx7.clsx("text-default mt-4 text-sm", className),
3744
+ className: clsx9.clsx("text-default mt-4 text-sm", className),
3540
3745
  ...props
3541
3746
  }
3542
3747
  ));
@@ -3586,10 +3791,10 @@ function DataTablePagination({
3586
3791
  (pageSizeOptions == null ? void 0 : pageSizeOptions.length) > 0 && /* @__PURE__ */ jsxRuntime.jsx(PaginationSelect, { table, pageSizeOptions }),
3587
3792
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row items-center justify-center md:justify-normal gap-2 md:gap-4", children: [
3588
3793
  footer,
3589
- selectAllOption && /* @__PURE__ */ jsxRuntime.jsx("div", { children: rowsSelected !== totalData ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:border-l border-gray-300 pl-4", children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "xxs", onClick: onSelectAll, variant: "link", children: [
3794
+ selectAllOption && /* @__PURE__ */ jsxRuntime.jsx("div", { children: rowsSelected !== totalData ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:border-l border-gray-300 pl-4", children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { size: "xxs", onClick: onSelectAll, variant: "secondary", children: [
3590
3795
  "Selecionar todos os ",
3591
3796
  totalData
3592
- ] }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:border-l border-gray-300 pl-4", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { size: "xxs", onClick: onRemoveAll, variant: "link", children: "Desmarcar todos" }) }) })
3797
+ ] }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:border-l border-gray-300 pl-4", children: /* @__PURE__ */ jsxRuntime.jsx(Button, { size: "xxs", onClick: onRemoveAll, variant: "secondary", children: "Desmarcar todos" }) }) })
3593
3798
  ] }),
3594
3799
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col md:flex-row items-center md:justify-end justify-center gap-2 flex-1", children: [
3595
3800
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "text-p-md text-paragraph mr-1", children: [
@@ -3645,7 +3850,7 @@ function DataTablePagination({
3645
3850
  pagesArray.map((elem, index) => {
3646
3851
  const checkPageIndexLimit = index <= limitPagePositive && index >= limitPageNegative;
3647
3852
  const isSelectedPage = index === selectedPage;
3648
- return /* @__PURE__ */ jsxRuntime.jsx(React2.Fragment, { children: checkPageIndexLimit && /* @__PURE__ */ jsxRuntime.jsx(
3853
+ return /* @__PURE__ */ jsxRuntime.jsx(React4.Fragment, { children: checkPageIndexLimit && /* @__PURE__ */ jsxRuntime.jsx(
3649
3854
  Button,
3650
3855
  {
3651
3856
  onClick: () => table.setPageIndex(index),
@@ -3755,22 +3960,22 @@ function DataTable({
3755
3960
  onFinishFetch
3756
3961
  }) {
3757
3962
  var _a, _b, _c, _d, _e, _f;
3758
- const tableRef = React2.useRef(null);
3759
- const [columnVisibility, setColumnVisibility] = React2.useState({});
3760
- const [columnFilters, setColumnFilters] = React2.useState([]);
3761
- const [sorting, setSorting] = React2.useState([]);
3762
- const [arrRowSelected, setArrRowSelected] = React2.useState([]);
3763
- const [globalFilter, setGlobalFilter] = React2.useState("");
3764
- const [dataTable, setDataTable] = React2.useState([]);
3765
- const [loading, setLoading] = React2.useState(true);
3766
- const [expanded, setExpanded] = React2.useState({});
3767
- const [total, setTotal] = React2.useState(() => totalData);
3768
- const [{ pageIndex, pageSize }, setPagination] = React2.useState({
3963
+ const tableRef = React4.useRef(null);
3964
+ const [columnVisibility, setColumnVisibility] = React4.useState({});
3965
+ const [columnFilters, setColumnFilters] = React4.useState([]);
3966
+ const [sorting, setSorting] = React4.useState([]);
3967
+ const [arrRowSelected, setArrRowSelected] = React4.useState([]);
3968
+ const [globalFilter, setGlobalFilter] = React4.useState("");
3969
+ const [dataTable, setDataTable] = React4.useState([]);
3970
+ const [loading, setLoading] = React4.useState(true);
3971
+ const [expanded, setExpanded] = React4.useState({});
3972
+ const [total, setTotal] = React4.useState(() => totalData);
3973
+ const [{ pageIndex, pageSize }, setPagination] = React4.useState({
3769
3974
  pageIndex: 0,
3770
3975
  pageSize: hidePagination ? 999999 : perPage ? perPage : 20
3771
3976
  });
3772
- const [paginationScroll, setPaginationScroll] = React2.useState();
3773
- const pagination = React2.useMemo(
3977
+ const [paginationScroll, setPaginationScroll] = React4.useState();
3978
+ const pagination = React4.useMemo(
3774
3979
  () => ({
3775
3980
  pageIndex,
3776
3981
  pageSize
@@ -3825,7 +4030,7 @@ function DataTable({
3825
4030
  pageCount: Number(pageSize2)
3826
4031
  };
3827
4032
  };
3828
- React2.useEffect(() => {
4033
+ React4.useEffect(() => {
3829
4034
  if (!(tableContainerRef == null ? void 0 : tableContainerRef.current)) return;
3830
4035
  const resizeObserver = new ResizeObserver(() => {
3831
4036
  var _a2;
@@ -3834,12 +4039,12 @@ function DataTable({
3834
4039
  resizeObserver.observe(tableContainerRef == null ? void 0 : tableContainerRef.current);
3835
4040
  return () => resizeObserver.disconnect();
3836
4041
  }, []);
3837
- React2.useEffect(() => {
4042
+ React4.useEffect(() => {
3838
4043
  if (fetchData || autoPagination) {
3839
4044
  fetch();
3840
4045
  }
3841
4046
  }, [pageIndex, pageSize, sorting]);
3842
- React2.useEffect(() => {
4047
+ React4.useEffect(() => {
3843
4048
  if (totalData !== total) {
3844
4049
  setPagination({
3845
4050
  pageIndex: 0,
@@ -3848,7 +4053,7 @@ function DataTable({
3848
4053
  setTotal(totalData);
3849
4054
  }
3850
4055
  }, [totalData]);
3851
- React2.useEffect(() => {
4056
+ React4.useEffect(() => {
3852
4057
  if (data) {
3853
4058
  setDataTable(
3854
4059
  () => autoPagination ? data.slice(0, pageSize) : data
@@ -3895,7 +4100,7 @@ function DataTable({
3895
4100
  getRowStyles: rowClassName
3896
4101
  }
3897
4102
  });
3898
- React2.useEffect(() => {
4103
+ React4.useEffect(() => {
3899
4104
  if (enableRowSelection && rowSelection) {
3900
4105
  setArrRowSelected(Object.keys(rowSelection));
3901
4106
  }
@@ -3948,7 +4153,7 @@ function DataTable({
3948
4153
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, {});
3949
4154
  }
3950
4155
  }
3951
- React2.useEffect(() => {
4156
+ React4.useEffect(() => {
3952
4157
  if (rowSelection && Object.keys(rowSelection).length == 0) {
3953
4158
  const elements = document.getElementsByClassName("th-shadow");
3954
4159
  Object.keys(elements).forEach((index) => {
@@ -3987,7 +4192,7 @@ function DataTable({
3987
4192
  /* @__PURE__ */ jsxRuntime.jsxs(
3988
4193
  "div",
3989
4194
  {
3990
- className: clsx7__default.default("w-full flex mt-4 flex-col justify-between", {
4195
+ className: clsx9__default.default("w-full flex mt-4 flex-col justify-between", {
3991
4196
  "flex-1": !hideTableData,
3992
4197
  [tableClass]: tableClass
3993
4198
  }),
@@ -3995,7 +4200,7 @@ function DataTable({
3995
4200
  /* @__PURE__ */ jsxRuntime.jsxs(
3996
4201
  Table,
3997
4202
  {
3998
- className: clsx7__default.default(
4203
+ className: clsx9__default.default(
3999
4204
  "w-full table_container z-20 overflow-x-scroll md:overflow-x-hidden"
4000
4205
  ),
4001
4206
  onScroll,
@@ -4022,7 +4227,7 @@ function DataTable({
4022
4227
  width: header.getSize()
4023
4228
  },
4024
4229
  scope: "col",
4025
- className: clsx7__default.default(
4230
+ className: clsx9__default.default(
4026
4231
  {
4027
4232
  "hover:bg-neutral-100 th-shadow cursor-pointer": header.column.getCanSort(),
4028
4233
  ["with-shadow"]: (arrRowSelected == null ? void 0 : arrRowSelected.length) == 0 && withShadow
@@ -4038,7 +4243,7 @@ function DataTable({
4038
4243
  ((_a2 = sorting[0]) == null ? void 0 : _a2.id) == header.column.id ? /* @__PURE__ */ jsxRuntime.jsx(
4039
4244
  "i",
4040
4245
  {
4041
- className: clsx7__default.default(
4246
+ className: clsx9__default.default(
4042
4247
  {
4043
4248
  ["rotate-0"]: !((_b2 = sorting[0]) == null ? void 0 : _b2.desc),
4044
4249
  ["rotate-180"]: (_c2 = sorting[0]) == null ? void 0 : _c2.desc
@@ -4053,7 +4258,7 @@ function DataTable({
4053
4258
  );
4054
4259
  }) }, headerGroup.id + headerIndex + "header")) }),
4055
4260
  /* @__PURE__ */ jsxRuntime.jsx(TableBody, { children: (_f = (_e = table == null ? void 0 : table.getRowModel()) == null ? void 0 : _e.rows) == null ? void 0 : _f.map((row, rowIndex) => {
4056
- return /* @__PURE__ */ jsxRuntime.jsx(React2__namespace.default.Fragment, { children: !row.original._destroy && /* @__PURE__ */ jsxRuntime.jsxs(React2__namespace.default.Fragment, { children: [
4261
+ return /* @__PURE__ */ jsxRuntime.jsx(React4__namespace.default.Fragment, { children: !row.original._destroy && /* @__PURE__ */ jsxRuntime.jsxs(React4__namespace.default.Fragment, { children: [
4057
4262
  /* @__PURE__ */ jsxRuntime.jsx(
4058
4263
  TableRow,
4059
4264
  {
@@ -4071,7 +4276,7 @@ function DataTable({
4071
4276
  backgroundColor: backgroundColor ? backgroundColor : "",
4072
4277
  ...stylesRow(row)
4073
4278
  },
4074
- className: clsx7__default.default(
4279
+ className: clsx9__default.default(
4075
4280
  {
4076
4281
  ["hidden"]: cell.row.original._destroy,
4077
4282
  ["first:border-l last:border-r"]: borderFull,
@@ -4109,6 +4314,7 @@ function DataTable({
4109
4314
 
4110
4315
  exports.Badge = Badge;
4111
4316
  exports.Button = Button;
4317
+ exports.ButtonLink = ButtonLink;
4112
4318
  exports.Calendar = Calendar;
4113
4319
  exports.Checkbox = Checkbox;
4114
4320
  exports.DataTable = DataTable;
@@ -4140,5 +4346,6 @@ exports.TableHeader = TableHeader;
4140
4346
  exports.TableRow = TableRow;
4141
4347
  exports.Toggle = Toggle;
4142
4348
  exports.ValueContainer = ValueContainer;
4349
+ exports.sizes = sizes2;
4143
4350
  //# sourceMappingURL=index.cjs.map
4144
4351
  //# sourceMappingURL=index.cjs.map