@oliasoft-open-source/react-ui-library 3.11.0-beta-3 → 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
@@ -13900,31 +13900,31 @@ const dialogShape = propTypes$1.exports.shape({
13900
13900
  Dialog.propTypes = {
13901
13901
  dialog: dialogShape.isRequired
13902
13902
  };
13903
- const inputInTable$a = "_inputInTable_1k7ti_337";
13904
- const inputHover$a = "_inputHover_1k7ti_346";
13905
- const inputFocus$a = "_inputFocus_1k7ti_351";
13906
- const inputError$a = "_inputError_1k7ti_358";
13907
- const inputWarning$a = "_inputWarning_1k7ti_359";
13908
- const inputDisabled$a = "_inputDisabled_1k7ti_394";
13909
- const hideScrollbars$a = "_hideScrollbars_1k7ti_399";
13910
- const scrollbars$a = "_scrollbars_1k7ti_409";
13911
- const inline$2 = "_inline_1k7ti_448";
13912
- const left$2 = "_left_1k7ti_451";
13913
- const right$6 = "_right_1k7ti_454";
13914
- const fixed$1 = "_fixed_1k7ti_457";
13915
- const border$1 = "_border_1k7ti_469";
13916
- const shadow = "_shadow_1k7ti_475";
13917
- const drawerContent = "_drawerContent_1k7ti_478";
13918
- const isResizing = "_isResizing_1k7ti_490";
13919
- const toggleButton = "_toggleButton_1k7ti_501";
13920
- const top = "_top_1k7ti_514";
13921
- const bottom = "_bottom_1k7ti_517";
13922
- const toggleButtonOpen = "_toggleButtonOpen_1k7ti_520";
13923
- const tabs$1 = "_tabs_1k7ti_523";
13924
- const tab$1 = "_tab_1k7ti_523";
13925
- const active$4 = "_active_1k7ti_554";
13926
- const tabsContent = "_tabsContent_1k7ti_576";
13927
- const resizeHandle = "_resizeHandle_1k7ti_582";
13903
+ const inputInTable$a = "_inputInTable_yeflg_337";
13904
+ const inputHover$a = "_inputHover_yeflg_346";
13905
+ const inputFocus$a = "_inputFocus_yeflg_351";
13906
+ const inputError$a = "_inputError_yeflg_358";
13907
+ const inputWarning$a = "_inputWarning_yeflg_359";
13908
+ const inputDisabled$a = "_inputDisabled_yeflg_394";
13909
+ const hideScrollbars$a = "_hideScrollbars_yeflg_399";
13910
+ const scrollbars$a = "_scrollbars_yeflg_409";
13911
+ const inline$2 = "_inline_yeflg_448";
13912
+ const left$2 = "_left_yeflg_451";
13913
+ const right$6 = "_right_yeflg_454";
13914
+ const fixed$1 = "_fixed_yeflg_457";
13915
+ const border$1 = "_border_yeflg_469";
13916
+ const shadow = "_shadow_yeflg_475";
13917
+ const drawerContent = "_drawerContent_yeflg_478";
13918
+ const isResizing = "_isResizing_yeflg_490";
13919
+ const toggleButton = "_toggleButton_yeflg_501";
13920
+ const top = "_top_yeflg_514";
13921
+ const bottom = "_bottom_yeflg_517";
13922
+ const toggleButtonOpen = "_toggleButtonOpen_yeflg_520";
13923
+ const tabs$1 = "_tabs_yeflg_523";
13924
+ const tab$1 = "_tab_yeflg_523";
13925
+ const active$4 = "_active_yeflg_554";
13926
+ const tabsContent = "_tabsContent_yeflg_576";
13927
+ const resizeHandle = "_resizeHandle_yeflg_582";
13928
13928
  const styles$B = {
13929
13929
  inputInTable: inputInTable$a,
13930
13930
  inputHover: inputHover$a,
@@ -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,
@@ -59263,37 +59258,37 @@ function CgSortAz(props) {
59263
59258
  function CgSortZa(props) {
59264
59259
  return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "none" }, "child": [{ "tag": "path", "attr": { "d": "M6 16C6 16.5523 6.44772 17 7 17H17C17.5523 17 18 16.5523 18 16C18 15.4477 17.5523 15 17 15H7C6.44772 15 6 15.4477 6 16Z", "fill": "currentColor" } }, { "tag": "path", "attr": { "d": "M8 12C8 12.5523 8.44772 13 9 13H15C15.5523 13 16 12.5523 16 12C16 11.4477 15.5523 11 15 11H9C8.44772 11 8 11.4477 8 12Z", "fill": "currentColor" } }, { "tag": "path", "attr": { "d": "M11 9C10.4477 9 10 8.55229 10 8C10 7.44771 10.4477 7 11 7H13C13.5523 7 14 7.44771 14 8C14 8.55229 13.5523 9 13 9H11Z", "fill": "currentColor" } }] })(props);
59265
59260
  }
59266
- const inputInTable$1 = "_inputInTable_oppsm_337";
59267
- const inputHover$1 = "_inputHover_oppsm_346";
59268
- const inputFocus$1 = "_inputFocus_oppsm_351";
59269
- const inputError$1 = "_inputError_oppsm_358";
59270
- const inputWarning$1 = "_inputWarning_oppsm_359";
59271
- const inputDisabled$1 = "_inputDisabled_oppsm_394";
59272
- const hideScrollbars$1 = "_hideScrollbars_oppsm_399";
59273
- const scrollbars$1 = "_scrollbars_oppsm_409";
59274
- const cell = "_cell_oppsm_436";
59275
- const disabledLink = "_disabledLink_oppsm_446";
59276
- const inputWrapper = "_inputWrapper_oppsm_450";
59277
- const breakWord = "_breakWord_oppsm_466";
59278
- const inputCell = "_inputCell_oppsm_469";
59279
- const sliderCell = "_sliderCell_oppsm_472";
59280
- const staticCell = "_staticCell_oppsm_476";
59281
- const staticCellContent = "_staticCellContent_oppsm_479";
59282
- const error$1 = "_error_oppsm_492";
59283
- const warning$2 = "_warning_oppsm_493";
59284
- const unit = "_unit_oppsm_530";
59285
- const sortingCell = "_sortingCell_oppsm_533";
59286
- const sortingCellIcon = "_sortingCellIcon_oppsm_541";
59287
- const icon = "_icon_oppsm_548";
59288
- const checkBoxCell = "_checkBoxCell_oppsm_552";
59289
- const iconCell = "_iconCell_oppsm_556";
59290
- const iconWrapper = "_iconWrapper_oppsm_561";
59291
- const actionsCell = "_actionsCell_oppsm_565";
59292
- const rightAligned = "_rightAligned_oppsm_572";
59293
- const centerAligned = "_centerAligned_oppsm_578";
59294
- const leftAligned = "_leftAligned_oppsm_581";
59295
- const popover = "_popover_oppsm_584";
59296
- const disabledPointerEvents = "_disabledPointerEvents_oppsm_587";
59261
+ const inputInTable$1 = "_inputInTable_ibs3l_337";
59262
+ const inputHover$1 = "_inputHover_ibs3l_346";
59263
+ const inputFocus$1 = "_inputFocus_ibs3l_351";
59264
+ const inputError$1 = "_inputError_ibs3l_358";
59265
+ const inputWarning$1 = "_inputWarning_ibs3l_359";
59266
+ const inputDisabled$1 = "_inputDisabled_ibs3l_394";
59267
+ const hideScrollbars$1 = "_hideScrollbars_ibs3l_399";
59268
+ const scrollbars$1 = "_scrollbars_ibs3l_409";
59269
+ const cell = "_cell_ibs3l_436";
59270
+ const disabledLink = "_disabledLink_ibs3l_446";
59271
+ const inputWrapper = "_inputWrapper_ibs3l_450";
59272
+ const breakWord = "_breakWord_ibs3l_466";
59273
+ const inputCell = "_inputCell_ibs3l_469";
59274
+ const sliderCell = "_sliderCell_ibs3l_472";
59275
+ const staticCell = "_staticCell_ibs3l_476";
59276
+ const staticCellContent = "_staticCellContent_ibs3l_479";
59277
+ const error$1 = "_error_ibs3l_492";
59278
+ const warning$2 = "_warning_ibs3l_493";
59279
+ const unit = "_unit_ibs3l_530";
59280
+ const sortingCell = "_sortingCell_ibs3l_533";
59281
+ const sortingCellIcon = "_sortingCellIcon_ibs3l_541";
59282
+ const icon = "_icon_ibs3l_548";
59283
+ const checkBoxCell = "_checkBoxCell_ibs3l_552";
59284
+ const iconCell = "_iconCell_ibs3l_556";
59285
+ const iconWrapper = "_iconWrapper_ibs3l_561";
59286
+ const actionsCell = "_actionsCell_ibs3l_565";
59287
+ const rightAligned = "_rightAligned_ibs3l_573";
59288
+ const centerAligned = "_centerAligned_ibs3l_579";
59289
+ const leftAligned = "_leftAligned_ibs3l_582";
59290
+ const popover = "_popover_ibs3l_585";
59291
+ const disabledPointerEvents = "_disabledPointerEvents_ibs3l_588";
59297
59292
  const styles$7 = {
59298
59293
  inputInTable: inputInTable$1,
59299
59294
  inputHover: inputHover$1,
@@ -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
  })