@charlesgomes/leafcode-shared-lib-react 1.0.19 → 1.0.20

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.js CHANGED
@@ -265,6 +265,7 @@ function TableActions({
265
265
  "button",
266
266
  {
267
267
  id: "add",
268
+ type: "button",
268
269
  onClick: onNew,
269
270
  className: cn(
270
271
  "enable-button-table-actions",
@@ -286,6 +287,7 @@ function TableActions({
286
287
  "button",
287
288
  {
288
289
  id: "edit",
290
+ type: "button",
289
291
  onClick: () => onEdit(selectedRows),
290
292
  className: cn(
291
293
  "enable-button-table-actions",
@@ -308,6 +310,7 @@ function TableActions({
308
310
  "button",
309
311
  {
310
312
  id: "delete",
313
+ type: "button",
311
314
  onClick: () => onDelete(selectedRows),
312
315
  className: cn(
313
316
  "enable-button-table-actions",
@@ -332,6 +335,7 @@ function TableActions({
332
335
  "button",
333
336
  {
334
337
  id,
338
+ type: "button",
335
339
  onClick: () => action.onClick(selectedRows),
336
340
  className: cn("enable-button-table-actions", action.className),
337
341
  children: [
@@ -361,6 +365,7 @@ function ActionsColumn({
361
365
  "button",
362
366
  {
363
367
  id: "edit-column",
368
+ type: "button",
364
369
  className: "btn-icone-actions-column",
365
370
  onClick: (e) => {
366
371
  onEdit && onEdit([row]);
@@ -381,6 +386,7 @@ function ActionsColumn({
381
386
  "button",
382
387
  {
383
388
  id: "delete-column",
389
+ type: "button",
384
390
  className: "btn-icone-actions-column",
385
391
  onClick: (e) => {
386
392
  onDelete && onDelete([row]);
@@ -403,6 +409,7 @@ function ActionsColumn({
403
409
  "button",
404
410
  {
405
411
  id,
412
+ type: "button",
406
413
  onClick: () => action.onClick([row]),
407
414
  className: cn("btn-icone-actions-column", action.className),
408
415
  children: [
@@ -706,6 +713,7 @@ function DataTableAdvancedFilterWrapper({
706
713
  PrevPageLink: (options) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
707
714
  "button",
708
715
  {
716
+ type: "button",
709
717
  onClick: options.onClick,
710
718
  disabled: options.disabled,
711
719
  className: `PrevPage ${options.disabled ? "PrevPageDisabled" : "PrevPageEnabled"}`,
@@ -728,6 +736,7 @@ function DataTableAdvancedFilterWrapper({
728
736
  NextPageLink: (options) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
729
737
  "button",
730
738
  {
739
+ type: "button",
731
740
  onClick: options.onClick,
732
741
  disabled: options.disabled,
733
742
  className: `NextPage ${options.disabled ? "NextPageDisabled" : "NextPageEnabled"}`,
package/dist/index.mjs CHANGED
@@ -219,6 +219,7 @@ function TableActions({
219
219
  "button",
220
220
  {
221
221
  id: "add",
222
+ type: "button",
222
223
  onClick: onNew,
223
224
  className: cn(
224
225
  "enable-button-table-actions",
@@ -240,6 +241,7 @@ function TableActions({
240
241
  "button",
241
242
  {
242
243
  id: "edit",
244
+ type: "button",
243
245
  onClick: () => onEdit(selectedRows),
244
246
  className: cn(
245
247
  "enable-button-table-actions",
@@ -262,6 +264,7 @@ function TableActions({
262
264
  "button",
263
265
  {
264
266
  id: "delete",
267
+ type: "button",
265
268
  onClick: () => onDelete(selectedRows),
266
269
  className: cn(
267
270
  "enable-button-table-actions",
@@ -286,6 +289,7 @@ function TableActions({
286
289
  "button",
287
290
  {
288
291
  id,
292
+ type: "button",
289
293
  onClick: () => action.onClick(selectedRows),
290
294
  className: cn("enable-button-table-actions", action.className),
291
295
  children: [
@@ -315,6 +319,7 @@ function ActionsColumn({
315
319
  "button",
316
320
  {
317
321
  id: "edit-column",
322
+ type: "button",
318
323
  className: "btn-icone-actions-column",
319
324
  onClick: (e) => {
320
325
  onEdit && onEdit([row]);
@@ -335,6 +340,7 @@ function ActionsColumn({
335
340
  "button",
336
341
  {
337
342
  id: "delete-column",
343
+ type: "button",
338
344
  className: "btn-icone-actions-column",
339
345
  onClick: (e) => {
340
346
  onDelete && onDelete([row]);
@@ -357,6 +363,7 @@ function ActionsColumn({
357
363
  "button",
358
364
  {
359
365
  id,
366
+ type: "button",
360
367
  onClick: () => action.onClick([row]),
361
368
  className: cn("btn-icone-actions-column", action.className),
362
369
  children: [
@@ -660,6 +667,7 @@ function DataTableAdvancedFilterWrapper({
660
667
  PrevPageLink: (options) => /* @__PURE__ */ jsx9(
661
668
  "button",
662
669
  {
670
+ type: "button",
663
671
  onClick: options.onClick,
664
672
  disabled: options.disabled,
665
673
  className: `PrevPage ${options.disabled ? "PrevPageDisabled" : "PrevPageEnabled"}`,
@@ -682,6 +690,7 @@ function DataTableAdvancedFilterWrapper({
682
690
  NextPageLink: (options) => /* @__PURE__ */ jsx9(
683
691
  "button",
684
692
  {
693
+ type: "button",
685
694
  onClick: options.onClick,
686
695
  disabled: options.disabled,
687
696
  className: `NextPage ${options.disabled ? "NextPageDisabled" : "NextPageEnabled"}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@charlesgomes/leafcode-shared-lib-react",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Lib de componentes react",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",