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

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_k08fp_1 {
1413
1413
  display: inline-flex;
1414
1414
  max-width: 100%;
1415
1415
  }
1416
- ._layer_gg13i_5 ._wrapper_gg13i_1 {
1416
+ ._layer_k08fp_5 ._wrapper_k08fp_1 {
1417
1417
  width: 100%;
1418
1418
  }
1419
- ._layerContainer_gg13i_8 {
1419
+ ._layerContainer_k08fp_8 {
1420
1420
  z-index: var(--zindex-dropdown);
1421
1421
  }
1422
- ._layer_gg13i_5 {
1422
+ ._layer_k08fp_5 {
1423
1423
  border: 1px solid var(--color-border);
1424
1424
  border-radius: var(--border-radius);
1425
1425
  overflow: hidden;
@@ -1432,102 +1432,94 @@ 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_k08fp_5._nested_k08fp_24 {
1436
1436
  margin: -1px 2px;
1437
1437
  }
1438
- ._layer_gg13i_5 ul {
1438
+ ._layer_k08fp_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_k08fp_5 ul li {
1444
1444
  list-style: none;
1445
1445
  display: block;
1446
1446
  }
1447
- ._fileInput_gg13i_36 {
1447
+ ._fileInput_k08fp_36 {
1448
1448
  opacity: 0;
1449
1449
  position: absolute;
1450
1450
  inset: 0;
1451
1451
  }
1452
- ._trigger_gg13i_41 {
1452
+ ._trigger_k08fp_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_k08fp_5 ._trigger_k08fp_41 {
1459
1459
  width: 100%;
1460
1460
  }
1461
- ._middleAlignedInline_gg13i_50 {
1461
+ ._middleAlignedInline_k08fp_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_k08fp_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
+ display: flex;
1472
1473
  }
1473
- ._heading_gg13i_56 ._headingIcon_gg13i_62 {
1474
- float: right;
1475
- }
1476
- ._heading_gg13i_56 ._headingIcon_gg13i_62 svg {
1477
- color: var(--color-text-faint);
1478
- }
1479
- ._heading_gg13i_56 ._headingIcon_gg13i_62:hover {
1480
- cursor: pointer;
1481
- }
1482
- ._heading_gg13i_56 ._headingIcon_gg13i_62:hover svg {
1483
- color: var(--color-text-primary-hover);
1474
+ ._heading_k08fp_56 ._icon_k08fp_63 {
1475
+ color: inherit;
1484
1476
  }
1485
- ._option_gg13i_74 {
1477
+ ._option_k08fp_66 {
1486
1478
  color: inherit;
1487
1479
  display: block;
1488
1480
  position: relative;
1489
1481
  }
1490
- ._heading_gg13i_56,
1491
- ._option_gg13i_74,
1492
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1482
+ ._heading_k08fp_56,
1483
+ ._option_k08fp_66,
1484
+ ._layer_k08fp_5 ._trigger_k08fp_41 {
1493
1485
  padding: var(--padding-input);
1494
1486
  border: 1px solid transparent;
1495
1487
  }
1496
- ._option_gg13i_74,
1497
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1488
+ ._option_k08fp_66,
1489
+ ._layer_k08fp_5 ._trigger_k08fp_41 {
1498
1490
  line-height: var(--line-height);
1499
1491
  display: flex;
1500
1492
  align-items: flex-start;
1501
1493
  }
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 {
1494
+ ._option_k08fp_66:hover,
1495
+ ._layer_k08fp_5 ._trigger_k08fp_41:hover,
1496
+ ._option_k08fp_66._active_k08fp_85,
1497
+ ._layer_k08fp_5 ._trigger_k08fp_41._active_k08fp_85 {
1506
1498
  background-color: var(--color-background-listitem-hover);
1507
1499
  cursor: pointer;
1508
1500
  }
1509
- ._option_gg13i_74._disabled_gg13i_98,
1510
- ._layer_gg13i_5 ._trigger_gg13i_41._disabled_gg13i_98 {
1501
+ ._option_k08fp_66._disabled_k08fp_90,
1502
+ ._layer_k08fp_5 ._trigger_k08fp_41._disabled_k08fp_90 {
1511
1503
  opacity: 0.2;
1512
1504
  }
1513
- ._option_gg13i_74._selected_gg13i_102,
1514
- ._layer_gg13i_5 ._trigger_gg13i_41._selected_gg13i_102 {
1505
+ ._option_k08fp_66._selected_k08fp_94,
1506
+ ._layer_k08fp_5 ._trigger_k08fp_41._selected_k08fp_94 {
1515
1507
  background-color: var(--color-background-listitem-active);
1516
1508
  }
1517
- ._layer_gg13i_5 ._trigger_gg13i_41 {
1509
+ ._layer_k08fp_5 ._trigger_k08fp_41 {
1518
1510
  align-items: center;
1519
1511
  }
1520
- ._optionContent_gg13i_109 {
1512
+ ._optionContent_k08fp_101 {
1521
1513
  flex-wrap: wrap;
1522
1514
  margin-right: auto;
1523
1515
  }
1524
- ._inline_gg13i_113 ._optionContent_gg13i_109 {
1516
+ ._inline_k08fp_105 ._optionContent_k08fp_101 {
1525
1517
  display: flex;
1526
1518
  justify-content: space-between;
1527
1519
  flex-grow: 1;
1528
1520
  }
1529
- ._icon_gg13i_118,
1530
- ._check_gg13i_119 {
1521
+ ._icon_k08fp_63,
1522
+ ._check_k08fp_111 {
1531
1523
  display: flex;
1532
1524
  flex-shrink: 1;
1533
1525
  width: var(--size-xs);
@@ -1535,82 +1527,82 @@ html[data-theme='dark'] {
1535
1527
  justify-content: center;
1536
1528
  align-items: center;
1537
1529
  }
1538
- ._icon_gg13i_118 {
1530
+ ._icon_k08fp_63 {
1539
1531
  margin-right: var(--padding-xs);
1540
1532
  color: var(--color-text-primary);
1541
1533
  font-size: var(--size-xs);
1542
1534
  }
1543
- ._icon_gg13i_118:empty {
1535
+ ._icon_k08fp_63:empty {
1544
1536
  display: none;
1545
1537
  }
1546
- ._icon_gg13i_118 img {
1538
+ ._icon_k08fp_63 img {
1547
1539
  max-height: 16px;
1548
1540
  max-width: 16px;
1549
1541
  width: auto;
1550
1542
  height: auto;
1551
1543
  }
1552
- ._check_gg13i_119 {
1544
+ ._check_k08fp_111 {
1553
1545
  margin-left: var(--padding-xs);
1554
1546
  color: var(--color-text-primary);
1555
1547
  }
1556
- ._text_gg13i_145 {
1548
+ ._text_k08fp_137 {
1557
1549
  display: inline-flex;
1558
1550
  align-items: center;
1559
1551
  cursor: pointer;
1560
1552
  }
1561
- ._label_gg13i_150 {
1553
+ ._label_k08fp_142 {
1562
1554
  margin-right: auto;
1563
1555
  }
1564
- ._label_gg13i_150,
1565
- ._heading_gg13i_56 {
1556
+ ._label_k08fp_142,
1557
+ ._heading_k08fp_56 {
1566
1558
  max-width: 100%;
1567
- display: block;
1559
+ display: flex;
1568
1560
  overflow: hidden;
1569
1561
  text-overflow: ellipsis;
1570
1562
  white-space: nowrap;
1571
1563
  }
1572
- ._description_gg13i_161 {
1564
+ ._description_k08fp_153 {
1573
1565
  color: #999;
1574
1566
  display: block;
1575
1567
  }
1576
- ._arrow_gg13i_165 {
1568
+ ._arrow_k08fp_157 {
1577
1569
  margin-left: var(--padding-xxs);
1578
1570
  display: flex;
1579
1571
  }
1580
- ._divider_gg13i_169 {
1572
+ ._divider_k08fp_161 {
1581
1573
  border: 0;
1582
1574
  border-top: 1px solid var(--color-border);
1583
1575
  }
1584
- ._deprecatedSemanticIcon_gg13i_173 {
1576
+ ._deprecatedSemanticIcon_k08fp_165 {
1585
1577
  color: var(--color-text-primary) !important;
1586
1578
  margin: -5px 0 0 !important;
1587
1579
  }
1588
- ._disabled_gg13i_98 {
1580
+ ._disabled_k08fp_90 {
1589
1581
  pointer-events: none;
1590
1582
  cursor: not-allowed !important;
1591
1583
  }
1592
- ._buttonLabel_gg13i_181 {
1584
+ ._buttonLabel_k08fp_173 {
1593
1585
  overflow: hidden;
1594
1586
  text-overflow: ellipsis;
1595
1587
  display: block;
1596
1588
  margin-right: auto;
1597
1589
  }
1598
- ._buttonCaret_gg13i_187 {
1590
+ ._buttonCaret_k08fp_179 {
1599
1591
  display: flex;
1600
1592
  margin-left: var(--padding-xxs);
1601
1593
  }
1602
- ._component_gg13i_191 {
1594
+ ._component_k08fp_183 {
1603
1595
  display: inline-flex;
1604
1596
  align-items: center;
1605
1597
  justify-content: center;
1606
1598
  cursor: pointer;
1607
1599
  }
1608
- ._right_gg13i_197 {
1600
+ ._right_k08fp_189 {
1609
1601
  margin-left: auto;
1610
1602
  display: flex;
1611
1603
  align-items: center;
1612
1604
  }
1613
- ._actions_gg13i_202 {
1605
+ ._actions_k08fp_194 {
1614
1606
  margin-left: var(--padding-xs);
1615
1607
  display: flex;
1616
1608
  align-items: center;
package/dist/index.js CHANGED
@@ -4165,32 +4165,31 @@ 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_k08fp_1";
4169
+ const layer$1 = "_layer_k08fp_5";
4170
+ const layerContainer$1 = "_layerContainer_k08fp_8";
4171
+ const nested = "_nested_k08fp_24";
4172
+ const fileInput$1 = "_fileInput_k08fp_36";
4173
+ const trigger$2 = "_trigger_k08fp_41";
4174
+ const middleAlignedInline = "_middleAlignedInline_k08fp_50";
4175
+ const heading$5 = "_heading_k08fp_56";
4176
+ const icon$4 = "_icon_k08fp_63";
4177
+ const option$1 = "_option_k08fp_66";
4178
+ const active$6 = "_active_k08fp_85";
4179
+ const disabled$8 = "_disabled_k08fp_90";
4180
+ const selected$1 = "_selected_k08fp_94";
4181
+ const optionContent$1 = "_optionContent_k08fp_101";
4182
+ const inline$4 = "_inline_k08fp_105";
4183
+ const check$1 = "_check_k08fp_111";
4184
+ const label$9 = "_label_k08fp_142";
4185
+ const description = "_description_k08fp_153";
4186
+ const arrow$1 = "_arrow_k08fp_157";
4187
+ const divider$1 = "_divider_k08fp_161";
4188
+ const buttonLabel = "_buttonLabel_k08fp_173";
4189
+ const buttonCaret = "_buttonCaret_k08fp_179";
4190
+ const component = "_component_k08fp_183";
4191
+ const right$7 = "_right_k08fp_189";
4192
+ const actions$1 = "_actions_k08fp_194";
4194
4193
  const styles$M = {
4195
4194
  wrapper: wrapper$4,
4196
4195
  layer: layer$1,
@@ -4200,14 +4199,13 @@ const styles$M = {
4200
4199
  trigger: trigger$2,
4201
4200
  middleAlignedInline,
4202
4201
  heading: heading$5,
4203
- headingIcon,
4202
+ icon: icon$4,
4204
4203
  option: option$1,
4205
4204
  active: active$6,
4206
4205
  disabled: disabled$8,
4207
4206
  selected: selected$1,
4208
4207
  optionContent: optionContent$1,
4209
4208
  inline: inline$4,
4210
- icon: icon$4,
4211
4209
  check: check$1,
4212
4210
  label: label$9,
4213
4211
  description,
@@ -4226,8 +4224,8 @@ const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PUR
4226
4224
  className: styles$M.heading,
4227
4225
  "data-testid": testId,
4228
4226
  children: [
4229
- label2,
4230
- /* @__PURE__ */ jsx("span", { className: styles$M.headingIcon, onClick, children: icon2 })
4227
+ !!icon2 && /* @__PURE__ */ jsx("span", { className: styles$M.icon, onClick, children: /* @__PURE__ */ jsx(Icon, { icon: icon2 }) }),
4228
+ label2
4231
4229
  ]
4232
4230
  }
4233
4231
  );
@@ -27698,7 +27696,7 @@ function requireCookie() {
27698
27696
  }
27699
27697
  return new Date(Date.UTC(year, month, dayOfMonth, hour, minute, second));
27700
27698
  }
27701
- function formatDate2(date2) {
27699
+ function formatDate(date2) {
27702
27700
  validators2.validate(validators2.isDate(date2), date2);
27703
27701
  return date2.toUTCString();
27704
27702
  }
@@ -28109,7 +28107,7 @@ function requireCookie() {
28109
28107
  let str = this.cookieString();
28110
28108
  if (this.expires != Infinity) {
28111
28109
  if (this.expires instanceof Date) {
28112
- str += `; Expires=${formatDate2(this.expires)}`;
28110
+ str += `; Expires=${formatDate(this.expires)}`;
28113
28111
  } else {
28114
28112
  str += `; Expires=${this.expires}`;
28115
28113
  }
@@ -28700,7 +28698,7 @@ function requireCookie() {
28700
28698
  cookie.Store = Store;
28701
28699
  cookie.MemoryCookieStore = MemoryCookieStore;
28702
28700
  cookie.parseDate = parseDate;
28703
- cookie.formatDate = formatDate2;
28701
+ cookie.formatDate = formatDate;
28704
28702
  cookie.parse = parse2;
28705
28703
  cookie.fromJSON = fromJSON;
28706
28704
  cookie.domainMatch = domainMatch;
@@ -168886,68 +168884,6 @@ const SelectCell = ({
168886
168884
  }
168887
168885
  );
168888
168886
  };
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
168887
  const InputCellWrapper = ({
168952
168888
  cell: cell2,
168953
168889
  columnAlignment,
@@ -168974,14 +168910,7 @@ const InputCellWrapper = ({
168974
168910
  columnAlignment,
168975
168911
  testId
168976
168912
  }
168977
- ) : cell2.type === "DateInput" ? /* @__PURE__ */ jsx(
168978
- DateInputCell,
168979
- {
168980
- cell: cell2,
168981
- columnAlignment,
168982
- testId
168983
- }
168984
- ) : cell2.type === "Select" ? /* @__PURE__ */ jsx(
168913
+ ) : cell2.type === "DateInput" ? /* @__PURE__ */ jsx(InputCell, { cell: cell2, testId, type: "date" }) : cell2.type === "Select" ? /* @__PURE__ */ jsx(
168985
168914
  SelectCell,
168986
168915
  {
168987
168916
  cell: cell2,