@oliasoft-open-source/react-ui-library 4.13.0 → 4.14.0-beta-1

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
@@ -1411,17 +1411,17 @@ html[data-theme='dark'] {
1411
1411
  ._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
1412
1412
  color: var(--color-text-primary-active);
1413
1413
  }
1414
- ._wrapper_1f7k2_1 {
1414
+ ._wrapper_8cxhw_1 {
1415
1415
  display: inline-flex;
1416
1416
  max-width: 100%;
1417
1417
  }
1418
- ._layer_1f7k2_5 ._wrapper_1f7k2_1 {
1418
+ ._layer_8cxhw_5 ._wrapper_8cxhw_1 {
1419
1419
  width: 100%;
1420
1420
  }
1421
- ._layerContainer_1f7k2_8 {
1421
+ ._layerContainer_8cxhw_8 {
1422
1422
  z-index: var(--zindex-dropdown);
1423
1423
  }
1424
- ._layer_1f7k2_5 {
1424
+ ._layer_8cxhw_5 {
1425
1425
  border: 1px solid var(--color-border);
1426
1426
  border-radius: var(--border-radius);
1427
1427
  overflow: hidden;
@@ -1434,97 +1434,98 @@ html[data-theme='dark'] {
1434
1434
  overflow-y: auto;
1435
1435
  max-height: 40vh;
1436
1436
  }
1437
- ._layer_1f7k2_5._nested_1f7k2_24 {
1437
+ ._layer_8cxhw_5._nested_8cxhw_24 {
1438
1438
  margin: -1px 2px;
1439
1439
  }
1440
- ._layer_1f7k2_5 ul {
1440
+ ._layer_8cxhw_5 ul {
1441
1441
  margin: 0;
1442
1442
  padding: 0;
1443
1443
  list-style-type: none;
1444
1444
  }
1445
- ._layer_1f7k2_5 ul li {
1445
+ ._layer_8cxhw_5 ul li {
1446
1446
  list-style: none;
1447
1447
  display: block;
1448
1448
  }
1449
- ._fileInput_1f7k2_36 {
1449
+ ._fileInput_8cxhw_36 {
1450
1450
  opacity: 0;
1451
1451
  position: absolute;
1452
1452
  inset: 0;
1453
1453
  }
1454
- ._trigger_1f7k2_41 {
1454
+ ._trigger_8cxhw_41 {
1455
1455
  display: inline-flex;
1456
1456
  align-items: center;
1457
1457
  cursor: pointer;
1458
1458
  max-width: 100%;
1459
1459
  }
1460
- ._layer_1f7k2_5 ._trigger_1f7k2_41 {
1460
+ ._layer_8cxhw_5 ._trigger_8cxhw_41 {
1461
1461
  width: 100%;
1462
1462
  }
1463
- ._middleAlignedInline_1f7k2_50 {
1463
+ ._middleAlignedInline_8cxhw_50 {
1464
1464
  display: flex;
1465
1465
  align-items: center;
1466
1466
  overflow: hidden;
1467
1467
  width: 100%;
1468
1468
  }
1469
- ._heading_1f7k2_56 {
1469
+ ._heading_8cxhw_56 {
1470
1470
  color: var(--color-text-muted);
1471
1471
  letter-spacing: var(--letter-spacing-wide);
1472
1472
  text-transform: uppercase;
1473
1473
  font-weight: bold;
1474
1474
  }
1475
- ._heading_1f7k2_56 ._headingIcon_1f7k2_62 {
1475
+ ._heading_8cxhw_56 ._headingIcon_8cxhw_62 {
1476
1476
  float: right;
1477
1477
  }
1478
- ._heading_1f7k2_56 ._headingIcon_1f7k2_62 svg {
1478
+ ._heading_8cxhw_56 ._headingIcon_8cxhw_62 svg {
1479
1479
  color: var(--color-text-faint);
1480
1480
  }
1481
- ._heading_1f7k2_56 ._headingIcon_1f7k2_62:hover {
1481
+ ._heading_8cxhw_56 ._headingIcon_8cxhw_62:hover {
1482
1482
  cursor: pointer;
1483
1483
  }
1484
- ._heading_1f7k2_56 ._headingIcon_1f7k2_62:hover svg {
1484
+ ._heading_8cxhw_56 ._headingIcon_8cxhw_62:hover svg {
1485
1485
  color: var(--color-text-primary-hover);
1486
1486
  }
1487
- ._option_1f7k2_74 {
1487
+ ._option_8cxhw_74 {
1488
1488
  color: inherit;
1489
1489
  display: block;
1490
1490
  position: relative;
1491
1491
  }
1492
- ._heading_1f7k2_56,
1493
- ._option_1f7k2_74,
1494
- ._layer_1f7k2_5 ._trigger_1f7k2_41 {
1492
+ ._heading_8cxhw_56,
1493
+ ._option_8cxhw_74,
1494
+ ._layer_8cxhw_5 ._trigger_8cxhw_41 {
1495
1495
  padding: var(--padding-input);
1496
1496
  border: 1px solid transparent;
1497
1497
  }
1498
- ._option_1f7k2_74,
1499
- ._layer_1f7k2_5 ._trigger_1f7k2_41 {
1498
+ ._option_8cxhw_74,
1499
+ ._layer_8cxhw_5 ._trigger_8cxhw_41 {
1500
1500
  line-height: var(--line-height);
1501
1501
  display: flex;
1502
1502
  align-items: flex-start;
1503
1503
  }
1504
- ._option_1f7k2_74:hover,
1505
- ._layer_1f7k2_5 ._trigger_1f7k2_41:hover,
1506
- ._option_1f7k2_74._active_1f7k2_93,
1507
- ._layer_1f7k2_5 ._trigger_1f7k2_41._active_1f7k2_93 {
1504
+ ._option_8cxhw_74:hover,
1505
+ ._layer_8cxhw_5 ._trigger_8cxhw_41:hover,
1506
+ ._option_8cxhw_74._active_8cxhw_93,
1507
+ ._layer_8cxhw_5 ._trigger_8cxhw_41._active_8cxhw_93 {
1508
1508
  background-color: var(--color-background-listitem-hover);
1509
1509
  cursor: pointer;
1510
1510
  }
1511
- ._option_1f7k2_74._selected_1f7k2_98 {
1511
+ ._option_8cxhw_74._selected_8cxhw_98,
1512
+ ._layer_8cxhw_5 ._trigger_8cxhw_41._selected_8cxhw_98 {
1512
1513
  background-color: var(--color-background-listitem-active);
1513
1514
  }
1514
- ._layer_1f7k2_5 ._trigger_1f7k2_41 {
1515
+ ._layer_8cxhw_5 ._trigger_8cxhw_41 {
1515
1516
  align-items: center;
1516
1517
  }
1517
- ._optionContent_1f7k2_104 {
1518
+ ._optionContent_8cxhw_105 {
1518
1519
  flex-wrap: wrap;
1519
1520
  margin-right: auto;
1520
1521
  }
1521
- ._inline_1f7k2_108 ._optionContent_1f7k2_104 {
1522
+ ._inline_8cxhw_109 ._optionContent_8cxhw_105 {
1522
1523
  display: flex;
1523
1524
  justify-content: space-between;
1524
1525
  flex-grow: 1;
1525
1526
  }
1526
- ._icon_1f7k2_113,
1527
- ._check_1f7k2_114 {
1527
+ ._icon_8cxhw_114,
1528
+ ._check_8cxhw_115 {
1528
1529
  display: flex;
1529
1530
  flex-shrink: 1;
1530
1531
  width: var(--size-xs);
@@ -1532,83 +1533,83 @@ html[data-theme='dark'] {
1532
1533
  justify-content: center;
1533
1534
  align-items: center;
1534
1535
  }
1535
- ._icon_1f7k2_113 {
1536
+ ._icon_8cxhw_114 {
1536
1537
  margin-right: var(--padding-xs);
1537
1538
  color: var(--color-text-primary);
1538
1539
  font-size: var(--size-xs);
1539
1540
  }
1540
- ._icon_1f7k2_113:empty {
1541
+ ._icon_8cxhw_114:empty {
1541
1542
  display: none;
1542
1543
  }
1543
- ._icon_1f7k2_113 img {
1544
+ ._icon_8cxhw_114 img {
1544
1545
  max-height: 16px;
1545
1546
  max-width: 16px;
1546
1547
  width: auto;
1547
1548
  height: auto;
1548
1549
  }
1549
- ._check_1f7k2_114 {
1550
+ ._check_8cxhw_115 {
1550
1551
  margin-left: var(--padding-xs);
1551
1552
  color: var(--color-text-primary);
1552
1553
  }
1553
- ._text_1f7k2_140 {
1554
+ ._text_8cxhw_141 {
1554
1555
  display: inline-flex;
1555
1556
  align-items: center;
1556
1557
  cursor: pointer;
1557
1558
  }
1558
- ._label_1f7k2_145 {
1559
+ ._label_8cxhw_146 {
1559
1560
  margin-right: auto;
1560
1561
  }
1561
- ._label_1f7k2_145,
1562
- ._heading_1f7k2_56 {
1562
+ ._label_8cxhw_146,
1563
+ ._heading_8cxhw_56 {
1563
1564
  max-width: 100%;
1564
1565
  display: block;
1565
1566
  overflow: hidden;
1566
1567
  text-overflow: ellipsis;
1567
1568
  white-space: nowrap;
1568
1569
  }
1569
- ._description_1f7k2_156 {
1570
+ ._description_8cxhw_157 {
1570
1571
  color: #999;
1571
1572
  display: block;
1572
1573
  }
1573
- ._arrow_1f7k2_160 {
1574
+ ._arrow_8cxhw_161 {
1574
1575
  margin-left: var(--padding-xxs);
1575
1576
  display: flex;
1576
1577
  }
1577
- ._divider_1f7k2_164 {
1578
+ ._divider_8cxhw_165 {
1578
1579
  border: 0;
1579
1580
  border-top: 1px solid var(--color-border);
1580
1581
  }
1581
- ._deprecatedSemanticIcon_1f7k2_168 {
1582
+ ._deprecatedSemanticIcon_8cxhw_169 {
1582
1583
  color: var(--color-text-primary) !important;
1583
1584
  margin: -5px 0 0 !important;
1584
1585
  }
1585
- ._disabled_1f7k2_172 {
1586
+ ._disabled_8cxhw_173 {
1586
1587
  opacity: 0.2;
1587
1588
  pointer-events: none;
1588
1589
  cursor: not-allowed !important;
1589
1590
  }
1590
- ._buttonLabel_1f7k2_177 {
1591
+ ._buttonLabel_8cxhw_178 {
1591
1592
  overflow: hidden;
1592
1593
  text-overflow: ellipsis;
1593
1594
  display: block;
1594
1595
  margin-right: auto;
1595
1596
  }
1596
- ._buttonCaret_1f7k2_183 {
1597
+ ._buttonCaret_8cxhw_184 {
1597
1598
  display: flex;
1598
1599
  margin-left: var(--padding-xxs);
1599
1600
  }
1600
- ._component_1f7k2_187 {
1601
+ ._component_8cxhw_188 {
1601
1602
  display: inline-flex;
1602
1603
  align-items: center;
1603
1604
  justify-content: center;
1604
1605
  cursor: pointer;
1605
1606
  }
1606
- ._right_1f7k2_193 {
1607
+ ._right_8cxhw_194 {
1607
1608
  margin-left: auto;
1608
1609
  display: flex;
1609
1610
  align-items: center;
1610
1611
  }
1611
- ._actions_1f7k2_198 {
1612
+ ._actions_8cxhw_199 {
1612
1613
  margin-left: var(--padding-xs);
1613
1614
  display: flex;
1614
1615
  align-items: center;
package/dist/index.d.ts CHANGED
@@ -751,6 +751,7 @@ export declare interface IMenuProps {
751
751
  error?: any;
752
752
  warning?: any;
753
753
  title?: string;
754
+ selected?: boolean;
754
755
  }
755
756
 
756
757
  declare interface IMenuSection {
@@ -1038,9 +1039,10 @@ export declare interface IPortalProps {
1038
1039
  }
1039
1040
 
1040
1041
  declare interface IPredefinedOption {
1041
- value?: string;
1042
+ value: string;
1042
1043
  label: string;
1043
1044
  valueKey?: string;
1045
+ unit?: string;
1044
1046
  }
1045
1047
 
1046
1048
  export declare interface IPrintHeaderProps {
@@ -1560,17 +1562,14 @@ export declare interface IUnitInputProps {
1560
1562
  unitkey?: string;
1561
1563
  initUnit?: string;
1562
1564
  noConversion?: boolean;
1563
- doNotConvertValue?: boolean;
1564
1565
  testId?: string;
1565
1566
  warning?: string | boolean | null;
1566
1567
  predefinedOptions?: IPredefinedOption[] | null;
1567
- initialPredefinedOption?: boolean;
1568
- shouldLinkAutomaticly?: boolean;
1569
- selectedPredefinedOptionKey?: string;
1568
+ initialPredefinedOption?: string;
1569
+ predefinedOptionLinked?: boolean;
1570
1570
  validationCallback?: (name: string, error: string | null) => any;
1571
1571
  disabledValidation?: boolean;
1572
1572
  allowEmpty?: boolean;
1573
- autoValue?: string;
1574
1573
  onChange?: TOnChangeEventHandler;
1575
1574
  onSwitchUnit?: (unit: string) => void;
1576
1575
  onClick?: MouseEventHandler<HTMLInputElement>;
@@ -1873,7 +1872,7 @@ declare type TUnitTableCellShape = TCellShape | IUnitTableStaticCell | IUnitTabl
1873
1872
 
1874
1873
  declare type UnitContextType = any;
1875
1874
 
1876
- export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, doNotConvertValue, testId, warning, predefinedOptions, initialPredefinedOption, shouldLinkAutomaticly, selectedPredefinedOptionKey, validationCallback, disabledValidation, allowEmpty, autoValue, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, }: IUnitInputProps) => JSX_2.Element;
1875
+ export declare const UnitInput: ({ name, placeholder, disabled, disabledUnit, error, left, small, width, value, unitkey, initUnit, noConversion, onChange, onClick, onFocus, onSwitchUnit, unitTemplate, testId, warning, predefinedOptions, initialPredefinedOption, predefinedOptionLinked, validationCallback, disabledValidation, allowEmpty, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, roundDisplayValue, }: IUnitInputProps) => JSX_2.Element;
1877
1876
 
1878
1877
  export declare const UnitTable: ({ table, unitConfig, convertBackToStorageUnit, enableCosmeticRounding, enableDisplayRounding, }: IUnitTableProps) => JSX_2.Element;
1879
1878