@oliasoft-open-source/react-ui-library 3.11.0-beta-14 → 3.11.0-beta-16

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
@@ -16133,11 +16133,15 @@ const Drawer = ({
16133
16133
  const currentWidth = open ? openWidth : tabs2 ? TABS_WIDTH : closedWidth;
16134
16134
  const handleTabClick = (index2) => {
16135
16135
  if (activeTab === index2 && open) {
16136
+ if (onClose) {
16137
+ onClose(tabs2[index2]);
16138
+ }
16136
16139
  setOpen(false);
16137
- onClose(index2);
16138
16140
  } else if (!open) {
16141
+ if (onOpen) {
16142
+ onOpen(tabs2[index2]);
16143
+ }
16139
16144
  setOpen(true);
16140
- onOpen(tabs2[index2]);
16141
16145
  if (onResize && width < MIN_OPEN_WIDTH) {
16142
16146
  onResize(MIN_OPEN_WIDTH);
16143
16147
  }
@@ -60393,62 +60397,57 @@ const Table = (props) => {
60393
60397
  children: (provided) => {
60394
60398
  return /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
60395
60399
  table: table2,
60396
- children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
60397
- children: /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60398
- className: cx$2(
60399
- styles$a.table,
60400
- striped2 ? styles$a.striped : ""
60401
- ),
60402
- "data-testid": testId,
60403
- ref: provided.innerRef,
60404
- children: [
60405
- /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60406
- children: headers.map((row2, rowIndex) => {
60407
- return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60400
+ children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60401
+ className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60402
+ "data-testid": testId,
60403
+ ref: provided.innerRef,
60404
+ children: [
60405
+ /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60406
+ children: headers.map((row2, rowIndex) => {
60407
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60408
+ rowIndex,
60409
+ isHeader: true,
60410
+ row: row2,
60411
+ columnCount,
60412
+ columnWidths,
60413
+ colSpan,
60414
+ hasRowActions: rowActions,
60415
+ columnAlignment,
60416
+ columnHeaderAlignments,
60417
+ draggableTable: draggable2
60418
+ }, `0_${rowIndex}`);
60419
+ })
60420
+ }),
60421
+ /* @__PURE__ */ jsxRuntime.exports.jsxs("tbody", {
60422
+ children: [
60423
+ rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
60424
+ draggableId: rowIndex + "",
60425
+ index: rowIndex,
60426
+ isDragDisabled: row2.noDrag,
60427
+ children: (provided2, snapshot) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60408
60428
  rowIndex,
60409
- isHeader: true,
60410
60429
  row: row2,
60411
60430
  columnCount,
60412
60431
  columnWidths,
60413
60432
  colSpan,
60414
60433
  hasRowActions: rowActions,
60415
60434
  columnAlignment,
60416
- columnHeaderAlignments,
60417
- draggableTable: draggable2
60418
- }, `0_${rowIndex}`);
60419
- })
60420
- }),
60421
- /* @__PURE__ */ jsxRuntime.exports.jsxs("tbody", {
60422
- children: [
60423
- rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
60424
- draggableId: rowIndex + "",
60425
- index: rowIndex,
60426
- isDragDisabled: row2.noDrag,
60427
- children: (provided2, snapshot) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60428
- rowIndex,
60429
- row: row2,
60430
- columnCount,
60431
- columnWidths,
60432
- colSpan,
60433
- hasRowActions: rowActions,
60434
- columnAlignment,
60435
- provided: provided2,
60436
- snapshot,
60437
- draggableTable: draggable2,
60438
- width: dimensions.width
60439
- }, `1_${rowIndex}`)
60440
- }, `index_${rowIndex}`)),
60441
- provided.placeholder
60442
- ]
60443
- }),
60444
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60445
- colSpan: colSpan + 1,
60446
- pagination: footer2.pagination,
60447
- actions: footer2.actions,
60448
- content: footer2.content
60449
- })
60450
- ]
60451
- })
60435
+ provided: provided2,
60436
+ snapshot,
60437
+ draggableTable: draggable2,
60438
+ width: dimensions.width
60439
+ }, `1_${rowIndex}`)
60440
+ }, `index_${rowIndex}`)),
60441
+ provided.placeholder
60442
+ ]
60443
+ }),
60444
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60445
+ colSpan: colSpan + 1,
60446
+ pagination: footer2.pagination,
60447
+ actions: footer2.actions,
60448
+ content: footer2.content
60449
+ })
60450
+ ]
60452
60451
  })
60453
60452
  });
60454
60453
  }
@@ -60467,45 +60466,43 @@ const Table = (props) => {
60467
60466
  }),
60468
60467
  /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
60469
60468
  table: table2,
60470
- children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
60471
- children: /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60472
- className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60473
- "data-testid": testId,
60474
- children: [
60475
- /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60476
- children: headers.map((row2, rowIndex) => {
60477
- return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60478
- rowIndex,
60479
- isHeader: true,
60480
- row: row2,
60481
- columnCount,
60482
- columnWidths,
60483
- colSpan,
60484
- hasRowActions: rowActions,
60485
- columnAlignment,
60486
- columnHeaderAlignments
60487
- }, `0_${rowIndex}`);
60488
- })
60489
- }),
60490
- /* @__PURE__ */ jsxRuntime.exports.jsx("tbody", {
60491
- children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60469
+ children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60470
+ className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60471
+ "data-testid": testId,
60472
+ children: [
60473
+ /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60474
+ children: headers.map((row2, rowIndex) => {
60475
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60492
60476
  rowIndex,
60477
+ isHeader: true,
60493
60478
  row: row2,
60494
60479
  columnCount,
60495
60480
  columnWidths,
60496
60481
  colSpan,
60497
60482
  hasRowActions: rowActions,
60498
- columnAlignment
60499
- }, `1_${rowIndex}`))
60500
- }),
60501
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60502
- colSpan,
60503
- pagination: footer2.pagination,
60504
- actions: footer2.actions,
60505
- content: footer2.content
60483
+ columnAlignment,
60484
+ columnHeaderAlignments
60485
+ }, `0_${rowIndex}`);
60506
60486
  })
60507
- ]
60508
- })
60487
+ }),
60488
+ /* @__PURE__ */ jsxRuntime.exports.jsx("tbody", {
60489
+ children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60490
+ rowIndex,
60491
+ row: row2,
60492
+ columnCount,
60493
+ columnWidths,
60494
+ colSpan,
60495
+ hasRowActions: rowActions,
60496
+ columnAlignment
60497
+ }, `1_${rowIndex}`))
60498
+ }),
60499
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60500
+ colSpan,
60501
+ pagination: footer2.pagination,
60502
+ actions: footer2.actions,
60503
+ content: footer2.content
60504
+ })
60505
+ ]
60509
60506
  })
60510
60507
  })
60511
60508
  ]