@oliasoft-open-source/react-ui-library 5.0.2-beta-1 → 5.0.2-beta-3

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/global.css CHANGED
@@ -1409,17 +1409,17 @@ html[data-theme='dark'] {
1409
1409
  ._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
1410
1410
  color: var(--color-text-primary-active);
1411
1411
  }
1412
- ._wrapper_gg13i_1 {
1412
+ ._wrapper_9g7i6_1 {
1413
1413
  display: inline-flex;
1414
1414
  max-width: 100%;
1415
1415
  }
1416
- ._layer_gg13i_5 ._wrapper_gg13i_1 {
1416
+ ._layer_9g7i6_5 ._wrapper_9g7i6_1 {
1417
1417
  width: 100%;
1418
1418
  }
1419
- ._layerContainer_gg13i_8 {
1419
+ ._layerContainer_9g7i6_8 {
1420
1420
  z-index: var(--zindex-dropdown);
1421
1421
  }
1422
- ._layer_gg13i_5 {
1422
+ ._layer_9g7i6_5 {
1423
1423
  border: 1px solid var(--color-border);
1424
1424
  border-radius: var(--border-radius);
1425
1425
  overflow: hidden;
@@ -1432,102 +1432,101 @@ html[data-theme='dark'] {
1432
1432
  overflow-y: auto;
1433
1433
  max-height: 40vh;
1434
1434
  }
1435
- ._layer_gg13i_5._nested_gg13i_24 {
1435
+ ._layer_9g7i6_5._nested_9g7i6_24 {
1436
1436
  margin: -1px 2px;
1437
1437
  }
1438
- ._layer_gg13i_5 ul {
1438
+ ._layer_9g7i6_5 ul {
1439
1439
  margin: 0;
1440
1440
  padding: 0;
1441
1441
  list-style-type: none;
1442
1442
  }
1443
- ._layer_gg13i_5 ul li {
1443
+ ._layer_9g7i6_5 ul li {
1444
1444
  list-style: none;
1445
1445
  display: block;
1446
1446
  }
1447
- ._fileInput_gg13i_36 {
1447
+ ._fileInput_9g7i6_36 {
1448
1448
  opacity: 0;
1449
1449
  position: absolute;
1450
1450
  inset: 0;
1451
1451
  }
1452
- ._trigger_gg13i_41 {
1452
+ ._trigger_9g7i6_41 {
1453
1453
  display: inline-flex;
1454
1454
  align-items: center;
1455
1455
  cursor: pointer;
1456
1456
  max-width: 100%;
1457
1457
  }
1458
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1458
+ ._layer_9g7i6_5 ._trigger_9g7i6_41 {
1459
1459
  width: 100%;
1460
1460
  }
1461
- ._middleAlignedInline_gg13i_50 {
1461
+ ._middleAlignedInline_9g7i6_50 {
1462
1462
  display: flex;
1463
1463
  align-items: center;
1464
1464
  overflow: hidden;
1465
1465
  width: 100%;
1466
1466
  }
1467
- ._heading_gg13i_56 {
1467
+ ._heading_9g7i6_56 {
1468
1468
  color: var(--color-text-muted);
1469
1469
  letter-spacing: var(--letter-spacing-wide);
1470
1470
  text-transform: uppercase;
1471
1471
  font-weight: bold;
1472
1472
  }
1473
- ._heading_gg13i_56 ._headingIcon_gg13i_62 {
1473
+ ._heading_9g7i6_56 ._headingIcon_9g7i6_62 {
1474
1474
  float: right;
1475
+ color: inherit;
1476
+ display: flex;
1477
+ align-items: center;
1478
+ height: var(--line-height);
1475
1479
  }
1476
- ._heading_gg13i_56 ._headingIcon_gg13i_62 svg {
1477
- color: var(--color-text-faint);
1478
- }
1479
- ._heading_gg13i_56 ._headingIcon_gg13i_62:hover {
1480
+ ._heading_9g7i6_56 ._headingIcon_9g7i6_62._clickable_9g7i6_69:hover {
1480
1481
  cursor: pointer;
1481
- }
1482
- ._heading_gg13i_56 ._headingIcon_gg13i_62:hover svg {
1483
1482
  color: var(--color-text-primary-hover);
1484
1483
  }
1485
- ._option_gg13i_74 {
1484
+ ._option_9g7i6_73 {
1486
1485
  color: inherit;
1487
1486
  display: block;
1488
1487
  position: relative;
1489
1488
  }
1490
- ._heading_gg13i_56,
1491
- ._option_gg13i_74,
1492
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1489
+ ._heading_9g7i6_56,
1490
+ ._option_9g7i6_73,
1491
+ ._layer_9g7i6_5 ._trigger_9g7i6_41 {
1493
1492
  padding: var(--padding-input);
1494
1493
  border: 1px solid transparent;
1495
1494
  }
1496
- ._option_gg13i_74,
1497
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1495
+ ._option_9g7i6_73,
1496
+ ._layer_9g7i6_5 ._trigger_9g7i6_41 {
1498
1497
  line-height: var(--line-height);
1499
1498
  display: flex;
1500
1499
  align-items: flex-start;
1501
1500
  }
1502
- ._option_gg13i_74:hover,
1503
- ._layer_gg13i_5 ._trigger_gg13i_41:hover,
1504
- ._option_gg13i_74._active_gg13i_93,
1505
- ._layer_gg13i_5 ._trigger_gg13i_41._active_gg13i_93 {
1501
+ ._option_9g7i6_73:hover,
1502
+ ._layer_9g7i6_5 ._trigger_9g7i6_41:hover,
1503
+ ._option_9g7i6_73._active_9g7i6_92,
1504
+ ._layer_9g7i6_5 ._trigger_9g7i6_41._active_9g7i6_92 {
1506
1505
  background-color: var(--color-background-listitem-hover);
1507
1506
  cursor: pointer;
1508
1507
  }
1509
- ._option_gg13i_74._disabled_gg13i_98,
1510
- ._layer_gg13i_5 ._trigger_gg13i_41._disabled_gg13i_98 {
1508
+ ._option_9g7i6_73._disabled_9g7i6_97,
1509
+ ._layer_9g7i6_5 ._trigger_9g7i6_41._disabled_9g7i6_97 {
1511
1510
  opacity: 0.2;
1512
1511
  }
1513
- ._option_gg13i_74._selected_gg13i_102,
1514
- ._layer_gg13i_5 ._trigger_gg13i_41._selected_gg13i_102 {
1512
+ ._option_9g7i6_73._selected_9g7i6_101,
1513
+ ._layer_9g7i6_5 ._trigger_9g7i6_41._selected_9g7i6_101 {
1515
1514
  background-color: var(--color-background-listitem-active);
1516
1515
  }
1517
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1516
+ ._layer_9g7i6_5 ._trigger_9g7i6_41 {
1518
1517
  align-items: center;
1519
1518
  }
1520
- ._optionContent_gg13i_109 {
1519
+ ._optionContent_9g7i6_108 {
1521
1520
  flex-wrap: wrap;
1522
1521
  margin-right: auto;
1523
1522
  }
1524
- ._inline_gg13i_113 ._optionContent_gg13i_109 {
1523
+ ._inline_9g7i6_112 ._optionContent_9g7i6_108 {
1525
1524
  display: flex;
1526
1525
  justify-content: space-between;
1527
1526
  flex-grow: 1;
1528
1527
  }
1529
- ._icon_gg13i_118,
1530
- ._check_gg13i_119 {
1528
+ ._icon_9g7i6_117,
1529
+ ._check_9g7i6_118 {
1531
1530
  display: flex;
1532
1531
  flex-shrink: 1;
1533
1532
  width: var(--size-xs);
@@ -1535,82 +1534,82 @@ html[data-theme='dark'] {
1535
1534
  justify-content: center;
1536
1535
  align-items: center;
1537
1536
  }
1538
- ._icon_gg13i_118 {
1537
+ ._icon_9g7i6_117 {
1539
1538
  margin-right: var(--padding-xs);
1540
1539
  color: var(--color-text-primary);
1541
1540
  font-size: var(--size-xs);
1542
1541
  }
1543
- ._icon_gg13i_118:empty {
1542
+ ._icon_9g7i6_117:empty {
1544
1543
  display: none;
1545
1544
  }
1546
- ._icon_gg13i_118 img {
1545
+ ._icon_9g7i6_117 img {
1547
1546
  max-height: 16px;
1548
1547
  max-width: 16px;
1549
1548
  width: auto;
1550
1549
  height: auto;
1551
1550
  }
1552
- ._check_gg13i_119 {
1551
+ ._check_9g7i6_118 {
1553
1552
  margin-left: var(--padding-xs);
1554
1553
  color: var(--color-text-primary);
1555
1554
  }
1556
- ._text_gg13i_145 {
1555
+ ._text_9g7i6_144 {
1557
1556
  display: inline-flex;
1558
1557
  align-items: center;
1559
1558
  cursor: pointer;
1560
1559
  }
1561
- ._label_gg13i_150 {
1560
+ ._label_9g7i6_149 {
1562
1561
  margin-right: auto;
1563
1562
  }
1564
- ._label_gg13i_150,
1565
- ._heading_gg13i_56 {
1563
+ ._label_9g7i6_149,
1564
+ ._heading_9g7i6_56 {
1566
1565
  max-width: 100%;
1567
1566
  display: block;
1568
1567
  overflow: hidden;
1569
1568
  text-overflow: ellipsis;
1570
1569
  white-space: nowrap;
1571
1570
  }
1572
- ._description_gg13i_161 {
1571
+ ._description_9g7i6_160 {
1573
1572
  color: #999;
1574
1573
  display: block;
1575
1574
  }
1576
- ._arrow_gg13i_165 {
1575
+ ._arrow_9g7i6_164 {
1577
1576
  margin-left: var(--padding-xxs);
1578
1577
  display: flex;
1579
1578
  }
1580
- ._divider_gg13i_169 {
1579
+ ._divider_9g7i6_168 {
1581
1580
  border: 0;
1582
1581
  border-top: 1px solid var(--color-border);
1583
1582
  }
1584
- ._deprecatedSemanticIcon_gg13i_173 {
1583
+ ._deprecatedSemanticIcon_9g7i6_172 {
1585
1584
  color: var(--color-text-primary) !important;
1586
1585
  margin: -5px 0 0 !important;
1587
1586
  }
1588
- ._disabled_gg13i_98 {
1587
+ ._disabled_9g7i6_97 {
1589
1588
  pointer-events: none;
1590
1589
  cursor: not-allowed !important;
1591
1590
  }
1592
- ._buttonLabel_gg13i_181 {
1591
+ ._buttonLabel_9g7i6_180 {
1593
1592
  overflow: hidden;
1594
1593
  text-overflow: ellipsis;
1595
1594
  display: block;
1596
1595
  margin-right: auto;
1597
1596
  }
1598
- ._buttonCaret_gg13i_187 {
1597
+ ._buttonCaret_9g7i6_186 {
1599
1598
  display: flex;
1600
1599
  margin-left: var(--padding-xxs);
1601
1600
  }
1602
- ._component_gg13i_191 {
1601
+ ._component_9g7i6_190 {
1603
1602
  display: inline-flex;
1604
1603
  align-items: center;
1605
1604
  justify-content: center;
1606
1605
  cursor: pointer;
1607
1606
  }
1608
- ._right_gg13i_197 {
1607
+ ._right_9g7i6_196 {
1609
1608
  margin-left: auto;
1610
1609
  display: flex;
1611
1610
  align-items: center;
1612
1611
  }
1613
- ._actions_gg13i_202 {
1612
+ ._actions_9g7i6_201 {
1614
1613
  margin-left: var(--padding-xs);
1615
1614
  display: flex;
1616
1615
  align-items: center;
package/dist/index.js CHANGED
@@ -858,12 +858,12 @@ const DisabledContext = React__default.createContext(false);
858
858
  const wrapper$5 = "_wrapper_18jt2_1";
859
859
  const customSvg = "_customSvg_18jt2_8";
860
860
  const customPng = "_customPng_18jt2_11";
861
- const clickable$2 = "_clickable_18jt2_16";
861
+ const clickable$3 = "_clickable_18jt2_16";
862
862
  const styles$U = {
863
863
  wrapper: wrapper$5,
864
864
  customSvg,
865
865
  customPng,
866
- clickable: clickable$2
866
+ clickable: clickable$3
867
867
  };
868
868
  var DefaultContext = {
869
869
  color: void 0,
@@ -1566,7 +1566,7 @@ const Chevron = ({ expanded: expanded2 }) => {
1566
1566
  const accordion = "_accordion_15p8j_1";
1567
1567
  const accordionHeader = "_accordionHeader_15p8j_5";
1568
1568
  const heading$6 = "_heading_15p8j_9";
1569
- const clickable$1 = "_clickable_15p8j_12";
1569
+ const clickable$2 = "_clickable_15p8j_12";
1570
1570
  const bordered$4 = "_bordered_15p8j_18";
1571
1571
  const accordionContent = "_accordionContent_15p8j_18";
1572
1572
  const expanded$1 = "_expanded_15p8j_36";
@@ -1576,7 +1576,7 @@ const styles$T = {
1576
1576
  accordion,
1577
1577
  accordionHeader,
1578
1578
  heading: heading$6,
1579
- clickable: clickable$1,
1579
+ clickable: clickable$2,
1580
1580
  bordered: bordered$4,
1581
1581
  accordionContent,
1582
1582
  expanded: expanded$1,
@@ -3804,11 +3804,11 @@ const Tooltip = ({
3804
3804
  };
3805
3805
  const helpIcon = "_helpIcon_hd0z2_1";
3806
3806
  const active$8 = "_active_hd0z2_9";
3807
- const clickable = "_clickable_hd0z2_12";
3807
+ const clickable$1 = "_clickable_hd0z2_12";
3808
3808
  const styles$Q = {
3809
3809
  helpIcon,
3810
3810
  active: active$8,
3811
- clickable
3811
+ clickable: clickable$1
3812
3812
  };
3813
3813
  const HelpIconTooltip = ({
3814
3814
  children,
@@ -4165,32 +4165,33 @@ const styles$N = {
4165
4165
  actions: actions$2,
4166
4166
  childComponent
4167
4167
  };
4168
- const wrapper$4 = "_wrapper_gg13i_1";
4169
- const layer$1 = "_layer_gg13i_5";
4170
- const layerContainer$1 = "_layerContainer_gg13i_8";
4171
- const nested = "_nested_gg13i_24";
4172
- const fileInput$1 = "_fileInput_gg13i_36";
4173
- const trigger$2 = "_trigger_gg13i_41";
4174
- const middleAlignedInline = "_middleAlignedInline_gg13i_50";
4175
- const heading$5 = "_heading_gg13i_56";
4176
- const headingIcon = "_headingIcon_gg13i_62";
4177
- const option$1 = "_option_gg13i_74";
4178
- const active$6 = "_active_gg13i_93";
4179
- const disabled$8 = "_disabled_gg13i_98";
4180
- const selected$1 = "_selected_gg13i_102";
4181
- const optionContent$1 = "_optionContent_gg13i_109";
4182
- const inline$4 = "_inline_gg13i_113";
4183
- const icon$4 = "_icon_gg13i_118";
4184
- const check$1 = "_check_gg13i_119";
4185
- const label$9 = "_label_gg13i_150";
4186
- const description = "_description_gg13i_161";
4187
- const arrow$1 = "_arrow_gg13i_165";
4188
- const divider$1 = "_divider_gg13i_169";
4189
- const buttonLabel = "_buttonLabel_gg13i_181";
4190
- const buttonCaret = "_buttonCaret_gg13i_187";
4191
- const component = "_component_gg13i_191";
4192
- const right$7 = "_right_gg13i_197";
4193
- const actions$1 = "_actions_gg13i_202";
4168
+ const wrapper$4 = "_wrapper_9g7i6_1";
4169
+ const layer$1 = "_layer_9g7i6_5";
4170
+ const layerContainer$1 = "_layerContainer_9g7i6_8";
4171
+ const nested = "_nested_9g7i6_24";
4172
+ const fileInput$1 = "_fileInput_9g7i6_36";
4173
+ const trigger$2 = "_trigger_9g7i6_41";
4174
+ const middleAlignedInline = "_middleAlignedInline_9g7i6_50";
4175
+ const heading$5 = "_heading_9g7i6_56";
4176
+ const headingIcon = "_headingIcon_9g7i6_62";
4177
+ const clickable = "_clickable_9g7i6_69";
4178
+ const option$1 = "_option_9g7i6_73";
4179
+ const active$6 = "_active_9g7i6_92";
4180
+ const disabled$8 = "_disabled_9g7i6_97";
4181
+ const selected$1 = "_selected_9g7i6_101";
4182
+ const optionContent$1 = "_optionContent_9g7i6_108";
4183
+ const inline$4 = "_inline_9g7i6_112";
4184
+ const icon$4 = "_icon_9g7i6_117";
4185
+ const check$1 = "_check_9g7i6_118";
4186
+ const label$9 = "_label_9g7i6_149";
4187
+ const description = "_description_9g7i6_160";
4188
+ const arrow$1 = "_arrow_9g7i6_164";
4189
+ const divider$1 = "_divider_9g7i6_168";
4190
+ const buttonLabel = "_buttonLabel_9g7i6_180";
4191
+ const buttonCaret = "_buttonCaret_9g7i6_186";
4192
+ const component = "_component_9g7i6_190";
4193
+ const right$7 = "_right_9g7i6_196";
4194
+ const actions$1 = "_actions_9g7i6_201";
4194
4195
  const styles$M = {
4195
4196
  wrapper: wrapper$4,
4196
4197
  layer: layer$1,
@@ -4201,6 +4202,7 @@ const styles$M = {
4201
4202
  middleAlignedInline,
4202
4203
  heading: heading$5,
4203
4204
  headingIcon,
4205
+ clickable,
4204
4206
  option: option$1,
4205
4207
  active: active$6,
4206
4208
  disabled: disabled$8,
@@ -4227,7 +4229,14 @@ const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
4227
4229
  "data-testid": testId,
4228
4230
  children: [
4229
4231
  label2,
4230
- /* @__PURE__ */ jsx("span", { className: styles$M.headingIcon, onClick, children: icon2 })
4232
+ !!icon2 && /* @__PURE__ */ jsx(
4233
+ "span",
4234
+ {
4235
+ className: cx$2(styles$M.headingIcon, onClick ? styles$M.clickable : ""),
4236
+ onClick,
4237
+ children: /* @__PURE__ */ jsx(Icon, { icon: icon2 })
4238
+ }
4239
+ )
4231
4240
  ]
4232
4241
  }
4233
4242
  );
@@ -27698,7 +27707,7 @@ function requireCookie() {
27698
27707
  }
27699
27708
  return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
27700
27709
  }
27701
- function formatDate2(date2) {
27710
+ function formatDate(date2) {
27702
27711
  validators2.validate(validators2.isDate(date2), date2);
27703
27712
  return date2.toUTCString();
27704
27713
  }
@@ -28109,7 +28118,7 @@ function requireCookie() {
28109
28118
  let str = this.cookieString();
28110
28119
  if (this.expires != Infinity) {
28111
28120
  if (this.expires instanceof Date) {
28112
- str += `; Expires=${formatDate2(this.expires)}`;
28121
+ str += `; Expires=${formatDate(this.expires)}`;
28113
28122
  } else {
28114
28123
  str += `; Expires=${this.expires}`;
28115
28124
  }
@@ -28700,7 +28709,7 @@ function requireCookie() {
28700
28709
  cookie.Store = Store;
28701
28710
  cookie.MemoryCookieStore = MemoryCookieStore;
28702
28711
  cookie.parseDate = parseDate;
28703
- cookie.formatDate = formatDate2;
28712
+ cookie.formatDate = formatDate;
28704
28713
  cookie.parse = parse2;
28705
28714
  cookie.fromJSON = fromJSON;
28706
28715
  cookie.domainMatch = domainMatch;
@@ -168886,68 +168895,6 @@ const SelectCell = ({
168886
168895
  }
168887
168896
  );
168888
168897
  };
168889
- function formatDate(value, showTime) {
168890
- if (!value) {
168891
- return null;
168892
- }
168893
- const date2 = new Date(value);
168894
- const formattedDate = date2.toLocaleDateString(void 0, {
168895
- year: "numeric",
168896
- month: "short",
168897
- day: "2-digit",
168898
- hour: showTime ? "2-digit" : void 0,
168899
- minute: showTime ? "2-digit" : void 0
168900
- });
168901
- return formattedDate;
168902
- }
168903
- const Date$1 = (props) => {
168904
- const { children, showTime } = props;
168905
- const formattedDate = formatDate(children, showTime);
168906
- return formattedDate;
168907
- };
168908
- const DateInput = (props) => {
168909
- const { value, error: error2, tooltip: tooltip2 } = props;
168910
- const stringValue = value;
168911
- const tooltipText = value || error2 || tooltip2 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
168912
- value && /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Date$1, { children: stringValue }) }),
168913
- (error2 || tooltip2) && /* @__PURE__ */ jsx("div", { children: error2 || tooltip2 })
168914
- ] }) : null;
168915
- return /* @__PURE__ */ jsx(Input$1, { type: "date", ...props, tooltip: tooltipText });
168916
- };
168917
- const DateInputCell = ({
168918
- cell: cell2,
168919
- columnAlignment,
168920
- testId
168921
- }) => {
168922
- return /* @__PURE__ */ jsx(
168923
- DateInput,
168924
- {
168925
- name: cell2.name,
168926
- value: cell2.value,
168927
- onChange: (ev) => {
168928
- var _a2;
168929
- return (_a2 = cell2.onChange) == null ? void 0 : _a2.call(cell2, ev);
168930
- },
168931
- onFocus: cell2.onFocus,
168932
- onBlur: cell2.onBlur,
168933
- onPaste: (ev) => {
168934
- var _a2;
168935
- return (_a2 = cell2.onPaste) == null ? void 0 : _a2.call(cell2, ev);
168936
- },
168937
- placeholder: cell2.placeholder,
168938
- error: cell2.error,
168939
- warning: cell2.warning,
168940
- disabled: cell2.disabled,
168941
- isInTable: true,
168942
- maxTooltipWidth: cell2.maxTooltipWidth,
168943
- right: columnAlignment === Align.RIGHT,
168944
- selectOnFocus: cell2.selectOnFocus,
168945
- testId,
168946
- tabIndex: cell2.disabled ? -1 : 0,
168947
- tooltip: cell2.tooltip
168948
- }
168949
- );
168950
- };
168951
168898
  const InputCellWrapper = ({
168952
168899
  cell: cell2,
168953
168900
  columnAlignment,
@@ -168974,14 +168921,7 @@ const InputCellWrapper = ({
168974
168921
  columnAlignment,
168975
168922
  testId
168976
168923
  }
168977
- ) : cell2.type === "DateInput" ? /* @__PURE__ */ jsx(
168978
- DateInputCell,
168979
- {
168980
- cell: cell2,
168981
- columnAlignment,
168982
- testId
168983
- }
168984
- ) : cell2.type === "Select" ? /* @__PURE__ */ jsx(
168924
+ ) : cell2.type === "DateInput" ? /* @__PURE__ */ jsx(InputCell, { cell: cell2, testId, type: "date" }) : cell2.type === "Select" ? /* @__PURE__ */ jsx(
168985
168925
  SelectCell,
168986
168926
  {
168987
168927
  cell: cell2,