@oliasoft-open-source/react-ui-library 3.11.0-beta-9 → 3.11.0-beta-11

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,19 +59110,19 @@ 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_j46wi_337";
59114
- const inputHover$2 = "_inputHover_j46wi_346";
59115
- const inputFocus$2 = "_inputFocus_j46wi_351";
59116
- const inputError$2 = "_inputError_j46wi_358";
59117
- const inputWarning$2 = "_inputWarning_j46wi_359";
59118
- const inputDisabled$2 = "_inputDisabled_j46wi_394";
59119
- const hideScrollbars$2 = "_hideScrollbars_j46wi_399";
59120
- const scrollbars$2 = "_scrollbars_j46wi_409";
59121
- const wrapper = "_wrapper_j46wi_446";
59122
- const bordered = "_bordered_j46wi_453";
59123
- const scroll2 = "_scroll_j46wi_409";
59124
- const table = "_table_j46wi_467";
59125
- const striped = "_striped_j46wi_547";
59113
+ const inputInTable$2 = "_inputInTable_gwun7_337";
59114
+ const inputHover$2 = "_inputHover_gwun7_346";
59115
+ const inputFocus$2 = "_inputFocus_gwun7_351";
59116
+ const inputError$2 = "_inputError_gwun7_358";
59117
+ const inputWarning$2 = "_inputWarning_gwun7_359";
59118
+ const inputDisabled$2 = "_inputDisabled_gwun7_394";
59119
+ const hideScrollbars$2 = "_hideScrollbars_gwun7_399";
59120
+ const scrollbars$2 = "_scrollbars_gwun7_409";
59121
+ const wrapper = "_wrapper_gwun7_446";
59122
+ const bordered = "_bordered_gwun7_454";
59123
+ const scroll2 = "_scroll_gwun7_409";
59124
+ const table = "_table_gwun7_468";
59125
+ const striped = "_striped_gwun7_548";
59126
59126
  const styles$a = {
59127
59127
  inputInTable: inputInTable$2,
59128
59128
  inputHover: inputHover$2,
@@ -59260,37 +59260,37 @@ function CgSortAz(props) {
59260
59260
  function CgSortZa(props) {
59261
59261
  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);
59262
59262
  }
59263
- const inputInTable$1 = "_inputInTable_gp6oe_337";
59264
- const inputHover$1 = "_inputHover_gp6oe_346";
59265
- const inputFocus$1 = "_inputFocus_gp6oe_351";
59266
- const inputError$1 = "_inputError_gp6oe_358";
59267
- const inputWarning$1 = "_inputWarning_gp6oe_359";
59268
- const inputDisabled$1 = "_inputDisabled_gp6oe_394";
59269
- const hideScrollbars$1 = "_hideScrollbars_gp6oe_399";
59270
- const scrollbars$1 = "_scrollbars_gp6oe_409";
59271
- const cell = "_cell_gp6oe_436";
59272
- const disabledLink = "_disabledLink_gp6oe_446";
59273
- const inputWrapper = "_inputWrapper_gp6oe_450";
59274
- const breakWord = "_breakWord_gp6oe_465";
59275
- const inputCell = "_inputCell_gp6oe_468";
59276
- const sliderCell = "_sliderCell_gp6oe_471";
59277
- const staticCell = "_staticCell_gp6oe_475";
59278
- const staticCellContent = "_staticCellContent_gp6oe_478";
59279
- const error$1 = "_error_gp6oe_491";
59280
- const warning$2 = "_warning_gp6oe_492";
59281
- const unit = "_unit_gp6oe_501";
59282
- const sortingCell = "_sortingCell_gp6oe_504";
59283
- const sortingCellIcon = "_sortingCellIcon_gp6oe_512";
59284
- const icon = "_icon_gp6oe_519";
59285
- const checkBoxCell = "_checkBoxCell_gp6oe_523";
59286
- const iconCell = "_iconCell_gp6oe_527";
59287
- const iconWrapper = "_iconWrapper_gp6oe_532";
59288
- const actionsCell = "_actionsCell_gp6oe_536";
59289
- const rightAligned = "_rightAligned_gp6oe_544";
59290
- const centerAligned = "_centerAligned_gp6oe_550";
59291
- const leftAligned = "_leftAligned_gp6oe_553";
59292
- const popover = "_popover_gp6oe_556";
59293
- const disabledPointerEvents = "_disabledPointerEvents_gp6oe_559";
59263
+ const inputInTable$1 = "_inputInTable_18of2_337";
59264
+ const inputHover$1 = "_inputHover_18of2_346";
59265
+ const inputFocus$1 = "_inputFocus_18of2_351";
59266
+ const inputError$1 = "_inputError_18of2_358";
59267
+ const inputWarning$1 = "_inputWarning_18of2_359";
59268
+ const inputDisabled$1 = "_inputDisabled_18of2_394";
59269
+ const hideScrollbars$1 = "_hideScrollbars_18of2_399";
59270
+ const scrollbars$1 = "_scrollbars_18of2_409";
59271
+ const cell = "_cell_18of2_436";
59272
+ const disabledLink = "_disabledLink_18of2_446";
59273
+ const inputWrapper = "_inputWrapper_18of2_450";
59274
+ const breakWord = "_breakWord_18of2_465";
59275
+ const inputCell = "_inputCell_18of2_468";
59276
+ const sliderCell = "_sliderCell_18of2_471";
59277
+ const staticCell = "_staticCell_18of2_475";
59278
+ const staticCellContent = "_staticCellContent_18of2_478";
59279
+ const error$1 = "_error_18of2_491";
59280
+ const warning$2 = "_warning_18of2_492";
59281
+ const unit = "_unit_18of2_501";
59282
+ const sortingCell = "_sortingCell_18of2_504";
59283
+ const sortingCellIcon = "_sortingCellIcon_18of2_512";
59284
+ const icon = "_icon_18of2_519";
59285
+ const checkBoxCell = "_checkBoxCell_18of2_523";
59286
+ const iconCell = "_iconCell_18of2_527";
59287
+ const iconWrapper = "_iconWrapper_18of2_532";
59288
+ const actionsCell = "_actionsCell_18of2_536";
59289
+ const rightAligned = "_rightAligned_18of2_544";
59290
+ const centerAligned = "_centerAligned_18of2_550";
59291
+ const leftAligned = "_leftAligned_18of2_556";
59292
+ const popover = "_popover_18of2_559";
59293
+ const disabledPointerEvents = "_disabledPointerEvents_18of2_562";
59294
59294
  const styles$7 = {
59295
59295
  inputInTable: inputInTable$1,
59296
59296
  inputHover: inputHover$1,
@@ -59454,7 +59454,7 @@ const getCellAlignment = (alignment, styles2, isGetText = false) => {
59454
59454
  const left2 = "left";
59455
59455
  const right2 = "right";
59456
59456
  const center2 = "center";
59457
- const cellAlignment = isHeader ? headerAlignment : bodyAlignment;
59457
+ const cellAlignment = isHeader && headerAlignment ? headerAlignment : bodyAlignment;
59458
59458
  switch (cellAlignment) {
59459
59459
  case left2: {
59460
59460
  return isGetText ? left2 : styles2.leftAligned;
@@ -59799,16 +59799,17 @@ const CellWrapper = (props) => {
59799
59799
  }
59800
59800
  };
59801
59801
  const Cell = (props) => {
59802
+ var _a, _b;
59802
59803
  const {
59803
59804
  cell: cell2,
59804
59805
  isHeader,
59805
59806
  columnHeaderAlignment,
59806
59807
  columnAlignment,
59807
- width: widthProp,
59808
+ width: columnWidthProp,
59808
59809
  snapshot,
59809
59810
  testId
59810
59811
  } = props;
59811
- const { style: styleProp, colSpan, rowSpan } = cell2;
59812
+ const { style: styleProp, colSpan, rowSpan, width: cellWidthProp } = cell2;
59812
59813
  const ref2 = useRef(null);
59813
59814
  const alignment = {
59814
59815
  bodyAlignment: columnAlignment,
@@ -59843,8 +59844,8 @@ const Cell = (props) => {
59843
59844
  cellAlignmentStyle,
59844
59845
  cell2.breakWord ? styles$7.breakWord : ""
59845
59846
  );
59846
- const width = widthProp && !(colSpan && colSpan > 1) ? widthProp : (snapshot == null ? void 0 : snapshot.isDragging) && ref2.current ? ref2.current.offsetWidth : void 0;
59847
- const style2 = { ...styleProp, width };
59847
+ 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;
59848
+ const style2 = { ...styleProp, width, minWidth: width };
59848
59849
  const Element2 = isHeader ? "th" : "td";
59849
59850
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Element2, {
59850
59851
  ref: ref2,
@@ -60074,13 +60075,13 @@ Cell.propTypes = {
60074
60075
  cell: cellShape,
60075
60076
  testId: propTypes$1.exports.string
60076
60077
  };
60077
- const clickableRow = "_clickableRow_pj6et_337";
60078
- const hoverableRow = "_hoverableRow_pj6et_340";
60079
- const rowActive = "_rowActive_pj6et_340";
60080
- const expandableRow = "_expandableRow_pj6et_344";
60081
- const flush2 = "_flush_pj6et_344";
60082
- const dragIconCell = "_dragIconCell_pj6et_364";
60083
- const dragIcon = "_dragIcon_pj6et_364";
60078
+ const clickableRow = "_clickableRow_1i409_337";
60079
+ const hoverableRow = "_hoverableRow_1i409_340";
60080
+ const rowActive = "_rowActive_1i409_340";
60081
+ const expandableRow = "_expandableRow_1i409_344";
60082
+ const flush2 = "_flush_1i409_344";
60083
+ const dragIconCell = "_dragIconCell_1i409_364";
60084
+ const dragIcon = "_dragIcon_1i409_364";
60084
60085
  const styles$6 = {
60085
60086
  clickableRow,
60086
60087
  hoverableRow,