@oliasoft-open-source/react-ui-library 3.11.0-beta-15 → 3.11.0-beta-17

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();
@@ -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
  }
@@ -28031,20 +28035,20 @@ var FixedSizeList = /* @__PURE__ */ createListComponent({
28031
28035
  }
28032
28036
  }
28033
28037
  });
28034
- const layerContainer = "_layerContainer_14x30_341";
28035
- const layer = "_layer_14x30_341";
28036
- const small$5 = "_small_14x30_363";
28037
- const heading = "_heading_14x30_366";
28038
- const option = "_option_14x30_367";
28039
- const message = "_message_14x30_368";
28040
- const focused = "_focused_14x30_404";
28041
- const selected = "_selected_14x30_408";
28042
- const disabled$4 = "_disabled_14x30_415";
28043
- const check = "_check_14x30_419";
28044
- const optionContent = "_optionContent_14x30_433";
28045
- const label$5 = "_label_14x30_438";
28046
- const icon$2 = "_icon_14x30_445";
28047
- 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";
28048
28052
  const styles$m = {
28049
28053
  layerContainer,
28050
28054
  layer,
@@ -28128,31 +28132,31 @@ const Option = ({
28128
28132
  });
28129
28133
  };
28130
28134
  const Section = ({
28131
- section,
28135
+ section: section2,
28132
28136
  selected: selected2,
28133
28137
  focused: focused2,
28134
28138
  onSelectOption,
28135
28139
  closeLayer
28136
28140
  }) => {
28137
28141
  const disabledContext = useContext(DisabledContext);
28138
- switch (section.type) {
28142
+ switch (section2.type) {
28139
28143
  case "Heading":
28140
28144
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading, {
28141
- label: section.label
28145
+ label: section2.label
28142
28146
  });
28143
28147
  case "Option":
28144
28148
  default:
28145
28149
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Option, {
28146
28150
  closeLayer,
28147
- actions: section.actions,
28148
- label: section.label,
28149
- details: section.details,
28150
- icon: section.icon,
28151
- 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,
28152
28156
  selected: selected2,
28153
28157
  focused: focused2,
28154
28158
  onSelectOption,
28155
- testId: section.testId
28159
+ testId: section2.testId
28156
28160
  });
28157
28161
  }
28158
28162
  };
@@ -28209,37 +28213,37 @@ const Layer = ({
28209
28213
  })
28210
28214
  });
28211
28215
  };
28212
- const inputInTable$5 = "_inputInTable_1bne4_341";
28213
- const inputHover$5 = "_inputHover_1bne4_350";
28214
- const inputFocus$5 = "_inputFocus_1bne4_355";
28215
- const inputError$5 = "_inputError_1bne4_362";
28216
- const inputWarning$5 = "_inputWarning_1bne4_363";
28217
- const inputDisabled$5 = "_inputDisabled_1bne4_398";
28218
- const hideScrollbars$5 = "_hideScrollbars_1bne4_403";
28219
- const trigger$1 = "_trigger_1bne4_417";
28220
- const isInTable$1 = "_isInTable_1bne4_432";
28221
- const input = "_input_1bne4_341";
28222
- const isOpen = "_isOpen_1bne4_450";
28223
- const error$2 = "_error_1bne4_458";
28224
- const warning$4 = "_warning_1bne4_475";
28225
- const disabled$3 = "_disabled_1bne4_492";
28226
- const iconOpen = "_iconOpen_1bne4_497";
28227
- const icons = "_icons_1bne4_500";
28228
- const clearAll = "_clearAll_1bne4_508";
28229
- const small$4 = "_small_1bne4_517";
28230
- const focus = "_focus_1bne4_526";
28231
- const triggerInputContainer = "_triggerInputContainer_1bne4_540";
28232
- const right$2 = "_right_1bne4_549";
28233
- const multiOptions = "_multiOptions_1bne4_562";
28234
- const multiOption = "_multiOption_1bne4_562";
28235
- const label$4 = "_label_1bne4_594";
28236
- const closeMultiOption = "_closeMultiOption_1bne4_597";
28237
- const selectedSingleValue = "_selectedSingleValue_1bne4_612";
28238
- const placeHolder = "_placeHolder_1bne4_613";
28239
- const groupOrderFirst = "_groupOrderFirst_1bne4_652";
28240
- const groupOrderMiddle = "_groupOrderMiddle_1bne4_653";
28241
- const groupOrderLast = "_groupOrderLast_1bne4_657";
28242
- 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";
28243
28247
  const styles$l = {
28244
28248
  inputInTable: inputInTable$5,
28245
28249
  inputHover: inputHover$5,
@@ -56738,18 +56742,18 @@ const Link$1 = ({ isOpen: isOpen2, items, sectionIndex, onClick, testId }) => {
56738
56742
  };
56739
56743
  const Sections = ({ isOpen: isOpen2, sections, onClick }) => {
56740
56744
  return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
56741
- 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, {
56742
56746
  children: [
56743
56747
  /* @__PURE__ */ jsxRuntime.exports.jsx("h5", {
56744
56748
  className: styles$c.subtitle,
56745
- children: section.heading.toUpperCase()
56749
+ children: section2.heading.toUpperCase()
56746
56750
  }),
56747
56751
  /* @__PURE__ */ jsxRuntime.exports.jsx(Link$1, {
56748
56752
  isOpen: isOpen2,
56749
- items: section.items,
56753
+ items: section2.items,
56750
56754
  sectionindex: i,
56751
56755
  onClick,
56752
- testId: section.testId
56756
+ testId: section2.testId
56753
56757
  })
56754
56758
  ]
56755
56759
  }, i))
@@ -59172,9 +59176,11 @@ Title$1.propTypes = {
59172
59176
  ]),
59173
59177
  testId: propTypes$1.exports.string
59174
59178
  };
59175
- const footer = "_footer_1h9g5_341";
59179
+ const footer = "_footer_ho6xu_341";
59180
+ const section = "_section_ho6xu_347";
59176
59181
  const styles$8 = {
59177
- footer
59182
+ footer,
59183
+ section
59178
59184
  };
59179
59185
  const Footer = (props) => {
59180
59186
  const { colSpan, pagination: pagination2, actions: actions2, content: content2 } = props;
@@ -59189,36 +59195,27 @@ const Footer = (props) => {
59189
59195
  return false;
59190
59196
  };
59191
59197
  const showFooter = hasActions2 || hasContent || hasPagination();
59192
- return showFooter ? /* @__PURE__ */ jsxRuntime.exports.jsxs("tfoot", {
59198
+ return showFooter ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59199
+ className: styles$8.footer,
59193
59200
  children: [
59194
- hasContent ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
59195
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
59196
- colSpan,
59197
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59198
- className: styles$8.footer,
59199
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59200
- children: content2
59201
- })
59202
- })
59201
+ hasContent ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59202
+ className: styles$8.section,
59203
+ children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59204
+ children: content2
59203
59205
  })
59204
59206
  }) : null,
59205
- hasActions2 || hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
59206
- children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
59207
- colSpan,
59208
- children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
59209
- className: styles$8.footer,
59210
- children: [
59211
- hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx(Pagination, {
59212
- pagination: pagination2
59213
- }) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
59214
- /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
59215
- children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
59216
- actions: actions2
59217
- })
59218
- })
59219
- ]
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
+ })
59220
59217
  })
59221
- })
59218
+ ]
59222
59219
  }) : null
59223
59220
  ]
59224
59221
  }) : null;
@@ -60436,18 +60433,17 @@ const Table = (props) => {
60436
60433
  }, `index_${rowIndex}`)),
60437
60434
  provided.placeholder
60438
60435
  ]
60439
- }),
60440
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60441
- colSpan: colSpan + 1,
60442
- pagination: footer2.pagination,
60443
- actions: footer2.actions,
60444
- content: footer2.content
60445
60436
  })
60446
60437
  ]
60447
60438
  })
60448
60439
  });
60449
60440
  }
60450
60441
  })
60442
+ }),
60443
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60444
+ pagination: footer2.pagination,
60445
+ actions: footer2.actions,
60446
+ content: footer2.content
60451
60447
  })
60452
60448
  ]
60453
60449
  }) : /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
@@ -60491,15 +60487,15 @@ const Table = (props) => {
60491
60487
  hasRowActions: rowActions,
60492
60488
  columnAlignment
60493
60489
  }, `1_${rowIndex}`))
60494
- }),
60495
- footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60496
- colSpan,
60497
- pagination: footer2.pagination,
60498
- actions: footer2.actions,
60499
- content: footer2.content
60500
60490
  })
60501
60491
  ]
60502
60492
  })
60493
+ }),
60494
+ footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
60495
+ colSpan,
60496
+ pagination: footer2.pagination,
60497
+ actions: footer2.actions,
60498
+ content: footer2.content
60503
60499
  })
60504
60500
  ]
60505
60501
  });