@oliasoft-open-source/react-ui-library 3.11.0-beta-4 → 3.11.0-beta-5

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
@@ -59110,18 +59110,18 @@ Spacer.propTypes = {
59110
59110
  width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
59111
59111
  flex: propTypes$1.exports.bool
59112
59112
  };
59113
- const inputInTable$2 = "_inputInTable_pdn5b_337";
59114
- const inputHover$2 = "_inputHover_pdn5b_346";
59115
- const inputFocus$2 = "_inputFocus_pdn5b_351";
59116
- const inputError$2 = "_inputError_pdn5b_358";
59117
- const inputWarning$2 = "_inputWarning_pdn5b_359";
59118
- const inputDisabled$2 = "_inputDisabled_pdn5b_394";
59119
- const hideScrollbars$2 = "_hideScrollbars_pdn5b_399";
59120
- const scrollbars$2 = "_scrollbars_pdn5b_409";
59121
- const scrollWrapper = "_scrollWrapper_pdn5b_446";
59122
- const bordered = "_bordered_pdn5b_474";
59123
- const table = "_table_pdn5b_477";
59124
- const striped = "_striped_pdn5b_561";
59113
+ const inputInTable$2 = "_inputInTable_15p4y_337";
59114
+ const inputHover$2 = "_inputHover_15p4y_346";
59115
+ const inputFocus$2 = "_inputFocus_15p4y_351";
59116
+ const inputError$2 = "_inputError_15p4y_358";
59117
+ const inputWarning$2 = "_inputWarning_15p4y_359";
59118
+ const inputDisabled$2 = "_inputDisabled_15p4y_394";
59119
+ const hideScrollbars$2 = "_hideScrollbars_15p4y_399";
59120
+ const scrollbars$2 = "_scrollbars_15p4y_409";
59121
+ const scrollWrapper = "_scrollWrapper_15p4y_446";
59122
+ const bordered = "_bordered_15p4y_474";
59123
+ const table = "_table_15p4y_480";
59124
+ const striped = "_striped_15p4y_567";
59125
59125
  const styles$a = {
59126
59126
  inputInTable: inputInTable$2,
59127
59127
  inputHover: inputHover$2,
@@ -59136,12 +59136,12 @@ const styles$a = {
59136
59136
  table,
59137
59137
  striped
59138
59138
  };
59139
- const title$1 = "_title_1ohjd_1";
59139
+ const title$1 = "_title_83v84_337";
59140
59140
  const styles$9 = {
59141
59141
  title: title$1
59142
59142
  };
59143
59143
  const Title$1 = (props) => {
59144
- const { colSpan, name: name2, actions: actions2, actionsRight, testId } = props;
59144
+ const { name: name2, actions: actions2, actionsRight, testId } = props;
59145
59145
  const isNameDefined = name2 !== null;
59146
59146
  const isActionsDefined = actions2 !== null;
59147
59147
  if (!isNameDefined && !isActionsDefined) {
@@ -59161,21 +59161,17 @@ const Title$1 = (props) => {
59161
59161
  children: actionsComponent
59162
59162
  });
59163
59163
  };
59164
- return /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
59165
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("th", {
59166
- colSpan,
59167
- className: styles$9.cellWrapper,
59168
- children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59169
- className: styles$9.title,
59170
- children: [
59171
- isNameDefined ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
59172
- "data-testid": testId,
59173
- children: name2
59174
- }) : null,
59175
- actionsContainer()
59176
- ]
59177
- })
59178
- })
59164
+ return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59165
+ className: styles$9.title,
59166
+ children: [
59167
+ isNameDefined ? /* @__PURE__ */ jsxRuntime.exports.jsx(Heading$2, {
59168
+ children: /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
59169
+ "data-testid": testId,
59170
+ children: name2
59171
+ })
59172
+ }) : null,
59173
+ actionsContainer()
59174
+ ]
59179
59175
  });
59180
59176
  };
59181
59177
  Title$1.defaultProps = {
@@ -59187,7 +59183,6 @@ Title$1.defaultProps = {
59187
59183
  Title$1.propTypes = {
59188
59184
  actions: actionsShape,
59189
59185
  actionsRight: propTypes$1.exports.bool,
59190
- colSpan: propTypes$1.exports.number.isRequired,
59191
59186
  name: propTypes$1.exports.oneOfType([
59192
59187
  propTypes$1.exports.string,
59193
59188
  propTypes$1.exports.number,
@@ -60423,64 +60418,68 @@ const Table = (props) => {
60423
60418
  children: (provided) => {
60424
60419
  return /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
60425
60420
  table: table2,
60426
- children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60427
- className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60428
- "data-testid": testId,
60429
- ref: provided.innerRef,
60421
+ children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
60430
60422
  children: [
60431
- /* @__PURE__ */ jsxRuntime.exports.jsxs("thead", {
60423
+ /* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
60424
+ actions: actions2,
60425
+ actionsRight,
60426
+ name: name2,
60427
+ testId: testId && `${testId}-title`
60428
+ }),
60429
+ /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60430
+ className: cx$2(
60431
+ styles$a.table,
60432
+ striped2 ? styles$a.striped : ""
60433
+ ),
60434
+ "data-testid": testId,
60435
+ ref: provided.innerRef,
60432
60436
  children: [
60433
- /* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
60434
- actions: actions2,
60435
- actionsRight,
60436
- name: name2,
60437
- colSpan,
60438
- testId: testId && `${testId}-title`
60437
+ /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60438
+ children: headers.map((row2, rowIndex) => {
60439
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60440
+ rowIndex,
60441
+ isHeader: true,
60442
+ row: row2,
60443
+ columnCount,
60444
+ columnWidths,
60445
+ colSpan,
60446
+ hasRowActions: rowActions,
60447
+ columnAlignment,
60448
+ columnHeaderAlignments,
60449
+ draggableTable: draggable2
60450
+ }, `0_${rowIndex}`);
60451
+ })
60452
+ }),
60453
+ /* @__PURE__ */ jsxRuntime.exports.jsxs("tbody", {
60454
+ children: [
60455
+ rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
60456
+ draggableId: rowIndex + "",
60457
+ index: rowIndex,
60458
+ isDragDisabled: row2.noDrag,
60459
+ children: (provided2, snapshot) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60460
+ rowIndex,
60461
+ row: row2,
60462
+ columnCount,
60463
+ columnWidths,
60464
+ colSpan,
60465
+ hasRowActions: rowActions,
60466
+ columnAlignment,
60467
+ provided: provided2,
60468
+ snapshot,
60469
+ draggableTable: draggable2,
60470
+ width: dimensions.width
60471
+ }, `1_${rowIndex}`)
60472
+ }, `index_${rowIndex}`)),
60473
+ provided.placeholder
60474
+ ]
60439
60475
  }),
60440
- headers.map((row2, rowIndex) => {
60441
- return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60442
- rowIndex,
60443
- isHeader: true,
60444
- row: row2,
60445
- columnCount,
60446
- columnWidths,
60447
- colSpan,
60448
- hasRowActions: rowActions,
60449
- columnAlignment,
60450
- columnHeaderAlignments,
60451
- draggableTable: draggable2
60452
- }, `0_${rowIndex}`);
60476
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60477
+ colSpan: colSpan + 1,
60478
+ pagination: footer2.pagination,
60479
+ actions: footer2.actions,
60480
+ content: footer2.content
60453
60481
  })
60454
60482
  ]
60455
- }),
60456
- /* @__PURE__ */ jsxRuntime.exports.jsxs("tbody", {
60457
- children: [
60458
- rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
60459
- draggableId: rowIndex + "",
60460
- index: rowIndex,
60461
- isDragDisabled: row2.noDrag,
60462
- children: (provided2, snapshot) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60463
- rowIndex,
60464
- row: row2,
60465
- columnCount,
60466
- columnWidths,
60467
- colSpan,
60468
- hasRowActions: rowActions,
60469
- columnAlignment,
60470
- provided: provided2,
60471
- snapshot,
60472
- draggableTable: draggable2,
60473
- width: dimensions.width
60474
- }, `1_${rowIndex}`)
60475
- }, `index_${rowIndex}`)),
60476
- provided.placeholder
60477
- ]
60478
- }),
60479
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60480
- colSpan: colSpan + 1,
60481
- pagination: footer2.pagination,
60482
- actions: footer2.actions,
60483
- content: footer2.content
60484
60483
  })
60485
60484
  ]
60486
60485
  })
@@ -60490,50 +60489,51 @@ const Table = (props) => {
60490
60489
  })
60491
60490
  }) : /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
60492
60491
  table: table2,
60493
- children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60494
- className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60495
- "data-testid": testId,
60492
+ children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
60496
60493
  children: [
60497
- /* @__PURE__ */ jsxRuntime.exports.jsxs("thead", {
60494
+ /* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
60495
+ actions: actions2,
60496
+ actionsRight,
60497
+ name: name2,
60498
+ testId: testId && `${testId}-title`
60499
+ }),
60500
+ /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
60501
+ className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
60502
+ "data-testid": testId,
60498
60503
  children: [
60499
- /* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
60500
- actions: actions2,
60501
- actionsRight,
60502
- name: name2,
60503
- colSpan,
60504
- testId: testId && `${testId}-title`
60504
+ /* @__PURE__ */ jsxRuntime.exports.jsx("thead", {
60505
+ children: headers.map((row2, rowIndex) => {
60506
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60507
+ rowIndex,
60508
+ isHeader: true,
60509
+ row: row2,
60510
+ columnCount,
60511
+ columnWidths,
60512
+ colSpan,
60513
+ hasRowActions: rowActions,
60514
+ columnAlignment,
60515
+ columnHeaderAlignments
60516
+ }, `0_${rowIndex}`);
60517
+ })
60505
60518
  }),
60506
- headers.map((row2, rowIndex) => {
60507
- return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60519
+ /* @__PURE__ */ jsxRuntime.exports.jsx("tbody", {
60520
+ children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60508
60521
  rowIndex,
60509
- isHeader: true,
60510
60522
  row: row2,
60511
60523
  columnCount,
60512
60524
  columnWidths,
60513
60525
  colSpan,
60514
60526
  hasRowActions: rowActions,
60515
- columnAlignment,
60516
- columnHeaderAlignments
60517
- }, `0_${rowIndex}`);
60527
+ columnAlignment
60528
+ }, `1_${rowIndex}`))
60529
+ }),
60530
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60531
+ colSpan,
60532
+ pagination: footer2.pagination,
60533
+ actions: footer2.actions,
60534
+ content: footer2.content
60518
60535
  })
60519
60536
  ]
60520
- }),
60521
- /* @__PURE__ */ jsxRuntime.exports.jsx("tbody", {
60522
- children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
60523
- rowIndex,
60524
- row: row2,
60525
- columnCount,
60526
- columnWidths,
60527
- colSpan,
60528
- hasRowActions: rowActions,
60529
- columnAlignment
60530
- }, `1_${rowIndex}`))
60531
- }),
60532
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60533
- colSpan,
60534
- pagination: footer2.pagination,
60535
- actions: footer2.actions,
60536
- content: footer2.content
60537
60537
  })
60538
60538
  ]
60539
60539
  })