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

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
@@ -10894,34 +10894,34 @@ Icon.propTypes = {
10894
10894
  clickable: propTypes$1.exports.bool,
10895
10895
  testId: propTypes$1.exports.string
10896
10896
  };
10897
- const wrapper$4 = "_wrapper_1jyel_341";
10898
- const layer$1 = "_layer_1jyel_345";
10899
- const layerContainer$1 = "_layerContainer_1jyel_348";
10900
- const nested = "_nested_1jyel_363";
10901
- const fileInput$1 = "_fileInput_1jyel_375";
10902
- const trigger$2 = "_trigger_1jyel_381";
10903
- const middleAlignedInline = "_middleAlignedInline_1jyel_390";
10904
- const heading$5 = "_heading_1jyel_396";
10905
- const headingIcon = "_headingIcon_1jyel_402";
10906
- const option$1 = "_option_1jyel_414";
10907
- const active$8 = "_active_1jyel_431";
10908
- const selected$1 = "_selected_1jyel_436";
10909
- const optionContent$1 = "_optionContent_1jyel_443";
10910
- const inline$4 = "_inline_1jyel_448";
10911
- const icon$5 = "_icon_1jyel_453";
10912
- const check$1 = "_check_1jyel_454";
10913
- const text$3 = "_text_1jyel_480";
10914
- const label$a = "_label_1jyel_485";
10915
- const description = "_description_1jyel_496";
10916
- const arrow$1 = "_arrow_1jyel_500";
10917
- const divider$1 = "_divider_1jyel_504";
10918
- const deprecatedSemanticIcon = "_deprecatedSemanticIcon_1jyel_508";
10919
- const disabled$8 = "_disabled_1jyel_512";
10920
- const buttonLabel = "_buttonLabel_1jyel_517";
10921
- const buttonCaret = "_buttonCaret_1jyel_524";
10922
- const component = "_component_1jyel_527";
10923
- const right$7 = "_right_1jyel_533";
10924
- const actions$2 = "_actions_1jyel_538";
10897
+ const wrapper$4 = "_wrapper_t0nkm_341";
10898
+ const layer$1 = "_layer_t0nkm_345";
10899
+ const layerContainer$1 = "_layerContainer_t0nkm_348";
10900
+ const nested = "_nested_t0nkm_363";
10901
+ const fileInput$1 = "_fileInput_t0nkm_375";
10902
+ const trigger$2 = "_trigger_t0nkm_381";
10903
+ const middleAlignedInline = "_middleAlignedInline_t0nkm_390";
10904
+ const heading$5 = "_heading_t0nkm_396";
10905
+ const headingIcon = "_headingIcon_t0nkm_402";
10906
+ const option$1 = "_option_t0nkm_414";
10907
+ const active$8 = "_active_t0nkm_431";
10908
+ const selected$1 = "_selected_t0nkm_436";
10909
+ const optionContent$1 = "_optionContent_t0nkm_443";
10910
+ const inline$4 = "_inline_t0nkm_448";
10911
+ const icon$5 = "_icon_t0nkm_453";
10912
+ const check$1 = "_check_t0nkm_454";
10913
+ const text$3 = "_text_t0nkm_480";
10914
+ const label$a = "_label_t0nkm_485";
10915
+ const description = "_description_t0nkm_496";
10916
+ const arrow$1 = "_arrow_t0nkm_500";
10917
+ const divider$1 = "_divider_t0nkm_504";
10918
+ const deprecatedSemanticIcon = "_deprecatedSemanticIcon_t0nkm_508";
10919
+ const disabled$8 = "_disabled_t0nkm_512";
10920
+ const buttonLabel = "_buttonLabel_t0nkm_517";
10921
+ const buttonCaret = "_buttonCaret_t0nkm_524";
10922
+ const component = "_component_t0nkm_527";
10923
+ const right$7 = "_right_t0nkm_533";
10924
+ const actions$2 = "_actions_t0nkm_538";
10925
10925
  const styles$M = {
10926
10926
  wrapper: wrapper$4,
10927
10927
  layer: layer$1,
@@ -11051,7 +11051,7 @@ const Option$2 = ({
11051
11051
  });
11052
11052
  };
11053
11053
  const Section$1 = ({
11054
- section,
11054
+ section: section2,
11055
11055
  closeOnOptionClick,
11056
11056
  close: close2,
11057
11057
  tree: tree2,
@@ -11059,45 +11059,45 @@ const Section$1 = ({
11059
11059
  maxHeight
11060
11060
  }) => {
11061
11061
  const disabledContext = useContext(DisabledContext);
11062
- switch (section.type) {
11062
+ switch (section2.type) {
11063
11063
  case "Heading":
11064
11064
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading$3, {
11065
- label: section.label,
11066
- onClick: section.onClick,
11067
- icon: section.icon,
11068
- testId: section.testId
11065
+ label: section2.label,
11066
+ onClick: section2.onClick,
11067
+ icon: section2.icon,
11068
+ testId: section2.testId
11069
11069
  });
11070
11070
  case "Divider":
11071
11071
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Divider$1, {});
11072
11072
  case "Option":
11073
11073
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Option$2, {
11074
- actions: section.actions,
11075
- label: section.label,
11076
- url: section.url,
11077
- onClick: section.onClick,
11078
- description: section.description,
11079
- icon: section.icon,
11080
- selected: section.selected,
11074
+ actions: section2.actions,
11075
+ label: section2.label,
11076
+ url: section2.url,
11077
+ onClick: section2.onClick,
11078
+ description: section2.description,
11079
+ icon: section2.icon,
11080
+ selected: section2.selected,
11081
11081
  closeOnOptionClick,
11082
11082
  close: close2,
11083
- disabled: section.disabled || disabledContext,
11084
- inline: section.inline,
11085
- title: section.title,
11086
- upload: section.upload,
11087
- onChange: section.onChange,
11088
- testId: section.testId
11083
+ disabled: section2.disabled || disabledContext,
11084
+ inline: section2.inline,
11085
+ title: section2.title,
11086
+ upload: section2.upload,
11087
+ onChange: section2.onChange,
11088
+ testId: section2.testId
11089
11089
  });
11090
11090
  case "Menu":
11091
11091
  return /* @__PURE__ */ jsxRuntime.exports.jsx(DropDownMenu, {
11092
- menu: section.menu,
11093
- title: section.title,
11092
+ menu: section2.menu,
11093
+ title: section2.title,
11094
11094
  closeOnOptionClick,
11095
11095
  isNested: true,
11096
11096
  closeParent: close2,
11097
11097
  tree: tree2,
11098
11098
  path,
11099
11099
  maxHeight,
11100
- testId: section.testId
11100
+ testId: section2.testId
11101
11101
  });
11102
11102
  default:
11103
11103
  return null;
@@ -11153,10 +11153,10 @@ const Layer$2 = ({
11153
11153
  style: { maxWidth: width, maxHeight },
11154
11154
  "data-testid": testId,
11155
11155
  children: /* @__PURE__ */ jsxRuntime.exports.jsx("ul", {
11156
- children: localSections.map((section, i) => /* @__PURE__ */ jsxRuntime.exports.jsx("li", {
11156
+ children: localSections.map((section2, i) => /* @__PURE__ */ jsxRuntime.exports.jsx("li", {
11157
11157
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(Section$1, {
11158
- section,
11159
- closeOnOptionClick: section.closeOnOptionClick,
11158
+ section: section2,
11159
+ closeOnOptionClick: section2.closeOnOptionClick,
11160
11160
  close: close2,
11161
11161
  tree: tree2,
11162
11162
  path: childPath(path, i),
@@ -11665,7 +11665,7 @@ const actionsShape = propTypes$1.exports.arrayOf(
11665
11665
  );
11666
11666
  const isMenuEmpty = (menu2) => {
11667
11667
  const { sections } = menu2;
11668
- return !isValidElement(sections) && (!sections.length || sections.every((section) => lodash.exports.isEmpty(section)));
11668
+ return !isValidElement(sections) && (!sections.length || sections.every((section2) => lodash.exports.isEmpty(section2)));
11669
11669
  };
11670
11670
  const useContextMenu = (sections, width, placement, possiblePlacements, closeOnOptionClick, closeParent, tree2, path, groupOrder, overflowContainer, maxHeight, testId) => {
11671
11671
  const { hasMousePosition, resetMousePosition, handleMouseEvent, trigger: trigger2 } = useMousePositionAsTrigger();
@@ -11814,9 +11814,9 @@ const DropDownMenu = ({
11814
11814
  close2();
11815
11815
  return;
11816
11816
  }
11817
- siblings(tree2, path).forEach((section) => {
11818
- if (section.close) {
11819
- section.close();
11817
+ siblings(tree2, path).forEach((section2) => {
11818
+ if (section2.close) {
11819
+ section2.close();
11820
11820
  }
11821
11821
  });
11822
11822
  open();
@@ -28035,20 +28035,20 @@ var FixedSizeList = /* @__PURE__ */ createListComponent({
28035
28035
  }
28036
28036
  }
28037
28037
  });
28038
- const layerContainer = "_layerContainer_14x30_341";
28039
- const layer = "_layer_14x30_341";
28040
- const small$5 = "_small_14x30_363";
28041
- const heading = "_heading_14x30_366";
28042
- const option = "_option_14x30_367";
28043
- const message = "_message_14x30_368";
28044
- const focused = "_focused_14x30_404";
28045
- const selected = "_selected_14x30_408";
28046
- const disabled$4 = "_disabled_14x30_415";
28047
- const check = "_check_14x30_419";
28048
- const optionContent = "_optionContent_14x30_433";
28049
- const label$5 = "_label_14x30_438";
28050
- const icon$2 = "_icon_14x30_445";
28051
- const details = "_details_14x30_449";
28038
+ const layerContainer = "_layerContainer_1iwwz_341";
28039
+ const layer = "_layer_1iwwz_341";
28040
+ const small$5 = "_small_1iwwz_363";
28041
+ const heading = "_heading_1iwwz_366";
28042
+ const option = "_option_1iwwz_367";
28043
+ const message = "_message_1iwwz_368";
28044
+ const focused = "_focused_1iwwz_404";
28045
+ const selected = "_selected_1iwwz_408";
28046
+ const disabled$4 = "_disabled_1iwwz_415";
28047
+ const check = "_check_1iwwz_419";
28048
+ const optionContent = "_optionContent_1iwwz_433";
28049
+ const label$5 = "_label_1iwwz_438";
28050
+ const icon$2 = "_icon_1iwwz_445";
28051
+ const details = "_details_1iwwz_449";
28052
28052
  const styles$m = {
28053
28053
  layerContainer,
28054
28054
  layer,
@@ -28132,31 +28132,31 @@ const Option = ({
28132
28132
  });
28133
28133
  };
28134
28134
  const Section = ({
28135
- section,
28135
+ section: section2,
28136
28136
  selected: selected2,
28137
28137
  focused: focused2,
28138
28138
  onSelectOption,
28139
28139
  closeLayer
28140
28140
  }) => {
28141
28141
  const disabledContext = useContext(DisabledContext);
28142
- switch (section.type) {
28142
+ switch (section2.type) {
28143
28143
  case "Heading":
28144
28144
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading, {
28145
- label: section.label
28145
+ label: section2.label
28146
28146
  });
28147
28147
  case "Option":
28148
28148
  default:
28149
28149
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Option, {
28150
28150
  closeLayer,
28151
- actions: section.actions,
28152
- label: section.label,
28153
- details: section.details,
28154
- icon: section.icon,
28155
- disabled: section.disabled || disabledContext,
28151
+ actions: section2.actions,
28152
+ label: section2.label,
28153
+ details: section2.details,
28154
+ icon: section2.icon,
28155
+ disabled: section2.disabled || disabledContext,
28156
28156
  selected: selected2,
28157
28157
  focused: focused2,
28158
28158
  onSelectOption,
28159
- testId: section.testId
28159
+ testId: section2.testId
28160
28160
  });
28161
28161
  }
28162
28162
  };
@@ -28213,37 +28213,37 @@ const Layer = ({
28213
28213
  })
28214
28214
  });
28215
28215
  };
28216
- const inputInTable$5 = "_inputInTable_1bne4_341";
28217
- const inputHover$5 = "_inputHover_1bne4_350";
28218
- const inputFocus$5 = "_inputFocus_1bne4_355";
28219
- const inputError$5 = "_inputError_1bne4_362";
28220
- const inputWarning$5 = "_inputWarning_1bne4_363";
28221
- const inputDisabled$5 = "_inputDisabled_1bne4_398";
28222
- const hideScrollbars$5 = "_hideScrollbars_1bne4_403";
28223
- const trigger$1 = "_trigger_1bne4_417";
28224
- const isInTable$1 = "_isInTable_1bne4_432";
28225
- const input = "_input_1bne4_341";
28226
- const isOpen = "_isOpen_1bne4_450";
28227
- const error$2 = "_error_1bne4_458";
28228
- const warning$4 = "_warning_1bne4_475";
28229
- const disabled$3 = "_disabled_1bne4_492";
28230
- const iconOpen = "_iconOpen_1bne4_497";
28231
- const icons = "_icons_1bne4_500";
28232
- const clearAll = "_clearAll_1bne4_508";
28233
- const small$4 = "_small_1bne4_517";
28234
- const focus = "_focus_1bne4_526";
28235
- const triggerInputContainer = "_triggerInputContainer_1bne4_540";
28236
- const right$2 = "_right_1bne4_549";
28237
- const multiOptions = "_multiOptions_1bne4_562";
28238
- const multiOption = "_multiOption_1bne4_562";
28239
- const label$4 = "_label_1bne4_594";
28240
- const closeMultiOption = "_closeMultiOption_1bne4_597";
28241
- const selectedSingleValue = "_selectedSingleValue_1bne4_612";
28242
- const placeHolder = "_placeHolder_1bne4_613";
28243
- const groupOrderFirst = "_groupOrderFirst_1bne4_652";
28244
- const groupOrderMiddle = "_groupOrderMiddle_1bne4_653";
28245
- const groupOrderLast = "_groupOrderLast_1bne4_657";
28246
- const detailedLabel = "_detailedLabel_1bne4_662";
28216
+ const inputInTable$5 = "_inputInTable_16b8a_341";
28217
+ const inputHover$5 = "_inputHover_16b8a_350";
28218
+ const inputFocus$5 = "_inputFocus_16b8a_355";
28219
+ const inputError$5 = "_inputError_16b8a_362";
28220
+ const inputWarning$5 = "_inputWarning_16b8a_363";
28221
+ const inputDisabled$5 = "_inputDisabled_16b8a_398";
28222
+ const hideScrollbars$5 = "_hideScrollbars_16b8a_403";
28223
+ const trigger$1 = "_trigger_16b8a_417";
28224
+ const isInTable$1 = "_isInTable_16b8a_432";
28225
+ const input = "_input_16b8a_341";
28226
+ const isOpen = "_isOpen_16b8a_450";
28227
+ const error$2 = "_error_16b8a_458";
28228
+ const warning$4 = "_warning_16b8a_475";
28229
+ const disabled$3 = "_disabled_16b8a_492";
28230
+ const iconOpen = "_iconOpen_16b8a_497";
28231
+ const icons = "_icons_16b8a_500";
28232
+ const clearAll = "_clearAll_16b8a_508";
28233
+ const small$4 = "_small_16b8a_517";
28234
+ const focus = "_focus_16b8a_526";
28235
+ const triggerInputContainer = "_triggerInputContainer_16b8a_540";
28236
+ const right$2 = "_right_16b8a_549";
28237
+ const multiOptions = "_multiOptions_16b8a_562";
28238
+ const multiOption = "_multiOption_16b8a_562";
28239
+ const label$4 = "_label_16b8a_594";
28240
+ const closeMultiOption = "_closeMultiOption_16b8a_597";
28241
+ const selectedSingleValue = "_selectedSingleValue_16b8a_612";
28242
+ const placeHolder = "_placeHolder_16b8a_613";
28243
+ const groupOrderFirst = "_groupOrderFirst_16b8a_652";
28244
+ const groupOrderMiddle = "_groupOrderMiddle_16b8a_653";
28245
+ const groupOrderLast = "_groupOrderLast_16b8a_657";
28246
+ const detailedLabel = "_detailedLabel_16b8a_662";
28247
28247
  const styles$l = {
28248
28248
  inputInTable: inputInTable$5,
28249
28249
  inputHover: inputHover$5,
@@ -56742,18 +56742,18 @@ const Link$1 = ({ isOpen: isOpen2, items, sectionIndex, onClick, testId }) => {
56742
56742
  };
56743
56743
  const Sections = ({ isOpen: isOpen2, sections, onClick }) => {
56744
56744
  return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
56745
- children: sections.map((section, i) => /* @__PURE__ */ jsxRuntime.exports.jsxs(React__default.Fragment, {
56745
+ children: sections.map((section2, i) => /* @__PURE__ */ jsxRuntime.exports.jsxs(React__default.Fragment, {
56746
56746
  children: [
56747
56747
  /* @__PURE__ */ jsxRuntime.exports.jsx("h5", {
56748
56748
  className: styles$c.subtitle,
56749
- children: section.heading.toUpperCase()
56749
+ children: section2.heading.toUpperCase()
56750
56750
  }),
56751
56751
  /* @__PURE__ */ jsxRuntime.exports.jsx(Link$1, {
56752
56752
  isOpen: isOpen2,
56753
- items: section.items,
56753
+ items: section2.items,
56754
56754
  sectionindex: i,
56755
56755
  onClick,
56756
- testId: section.testId
56756
+ testId: section2.testId
56757
56757
  })
56758
56758
  ]
56759
56759
  }, i))
@@ -59176,9 +59176,11 @@ Title$1.propTypes = {
59176
59176
  ]),
59177
59177
  testId: propTypes$1.exports.string
59178
59178
  };
59179
- const footer = "_footer_1h9g5_341";
59179
+ const footer = "_footer_ho6xu_341";
59180
+ const section = "_section_ho6xu_347";
59180
59181
  const styles$8 = {
59181
- footer
59182
+ footer,
59183
+ section
59182
59184
  };
59183
59185
  const Footer = (props) => {
59184
59186
  const { colSpan, pagination: pagination2, actions: actions2, content: content2 } = props;
@@ -59193,36 +59195,27 @@ const Footer = (props) => {
59193
59195
  return false;
59194
59196
  };
59195
59197
  const showFooter = hasActions2 || hasContent || hasPagination();
59196
- return showFooter ? /* @__PURE__ */ jsxRuntime.exports.jsxs("tfoot", {
59198
+ return showFooter ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59199
+ className: styles$8.footer,
59197
59200
  children: [
59198
- hasContent ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
59199
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
59200
- colSpan,
59201
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59202
- className: styles$8.footer,
59203
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59204
- children: content2
59205
- })
59206
- })
59201
+ hasContent ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59202
+ className: styles$8.section,
59203
+ children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59204
+ children: content2
59207
59205
  })
59208
59206
  }) : null,
59209
- hasActions2 || hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
59210
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
59211
- colSpan,
59212
- children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59213
- className: styles$8.footer,
59214
- children: [
59215
- hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx(Pagination, {
59216
- pagination: pagination2
59217
- }) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
59218
- /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59219
- children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
59220
- actions: actions2
59221
- })
59222
- })
59223
- ]
59207
+ hasActions2 || hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59208
+ className: styles$8.section,
59209
+ children: [
59210
+ hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx(Pagination, {
59211
+ pagination: pagination2
59212
+ }) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
59213
+ /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59214
+ children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
59215
+ actions: actions2
59216
+ })
59224
59217
  })
59225
- })
59218
+ ]
59226
59219
  }) : null
59227
59220
  ]
59228
59221
  }) : null;
@@ -59818,7 +59811,7 @@ const Cell = (props) => {
59818
59811
  cell2.breakWord ? styles$7.breakWord : ""
59819
59812
  );
59820
59813
  const width = (_b = (_a = cellWidthProp != null ? cellWidthProp : columnWidthProp) != null ? _a : (snapshot == null ? void 0 : snapshot.isDragging) && ref2.current && ref2.current.offsetWidth) != null ? _b : void 0;
59821
- const style2 = { ...styleProp, width, minWidth: width };
59814
+ const style2 = { width, minWidth: width, ...styleProp };
59822
59815
  const Element2 = isHeader ? "th" : "td";
59823
59816
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Element2, {
59824
59817
  ref: ref2,
@@ -60440,18 +60433,17 @@ const Table = (props) => {
60440
60433
  }, `index_${rowIndex}`)),
60441
60434
  provided.placeholder
60442
60435
  ]
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
60436
  })
60450
60437
  ]
60451
60438
  })
60452
60439
  });
60453
60440
  }
60454
60441
  })
60442
+ }),
60443
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60444
+ pagination: footer2.pagination,
60445
+ actions: footer2.actions,
60446
+ content: footer2.content
60455
60447
  })
60456
60448
  ]
60457
60449
  }) : /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
@@ -60495,15 +60487,15 @@ const Table = (props) => {
60495
60487
  hasRowActions: rowActions,
60496
60488
  columnAlignment
60497
60489
  }, `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
60490
  })
60505
60491
  ]
60506
60492
  })
60493
+ }),
60494
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60495
+ colSpan,
60496
+ pagination: footer2.pagination,
60497
+ actions: footer2.actions,
60498
+ content: footer2.content
60507
60499
  })
60508
60500
  ]
60509
60501
  });