@oliasoft-open-source/react-ui-library 10.7.0-beta-5 → 10.7.0-beta-7
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 +128 -127
- package/dist/index.d.ts +0 -3
- package/dist/index.js +76 -78
- package/package.json +1 -1
package/dist/global.css
CHANGED
|
@@ -1577,7 +1577,7 @@ html[data-theme='dark'] {
|
|
|
1577
1577
|
._actionComponentContainer_1t7vd_14._active_1t7vd_36 {
|
|
1578
1578
|
color: var(--color-text-primary-active);
|
|
1579
1579
|
}
|
|
1580
|
-
.
|
|
1580
|
+
._layer_o0cfv_1 {
|
|
1581
1581
|
border: 1px solid var(--color-border);
|
|
1582
1582
|
border-radius: var(--border-radius);
|
|
1583
1583
|
overflow: hidden;
|
|
@@ -1590,107 +1590,95 @@ html[data-theme='dark'] {
|
|
|
1590
1590
|
overflow-y: auto;
|
|
1591
1591
|
max-height: 40vh;
|
|
1592
1592
|
}
|
|
1593
|
-
.
|
|
1593
|
+
._layer_o0cfv_1._nested_o0cfv_14 {
|
|
1594
1594
|
margin: -1px 2px;
|
|
1595
1595
|
}
|
|
1596
|
-
.
|
|
1596
|
+
._fileInput_o0cfv_17 {
|
|
1597
1597
|
opacity: 0;
|
|
1598
1598
|
position: absolute;
|
|
1599
1599
|
inset: 0;
|
|
1600
1600
|
pointer-events: none;
|
|
1601
1601
|
}
|
|
1602
|
-
.
|
|
1602
|
+
._trigger_o0cfv_23 {
|
|
1603
1603
|
display: inline-flex;
|
|
1604
1604
|
align-items: center;
|
|
1605
1605
|
cursor: pointer;
|
|
1606
1606
|
max-width: 100%;
|
|
1607
1607
|
}
|
|
1608
|
-
.
|
|
1608
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23 {
|
|
1609
1609
|
width: 100%;
|
|
1610
1610
|
}
|
|
1611
|
-
.
|
|
1611
|
+
._heading_o0cfv_32 {
|
|
1612
1612
|
color: var(--color-text-muted);
|
|
1613
1613
|
letter-spacing: var(--letter-spacing-wide);
|
|
1614
1614
|
text-transform: uppercase;
|
|
1615
1615
|
font-weight: bold;
|
|
1616
1616
|
}
|
|
1617
|
-
.
|
|
1617
|
+
._heading_o0cfv_32 ._headingIcon_o0cfv_38 {
|
|
1618
1618
|
float: right;
|
|
1619
1619
|
color: inherit;
|
|
1620
1620
|
display: flex;
|
|
1621
1621
|
align-items: center;
|
|
1622
1622
|
height: var(--line-height);
|
|
1623
1623
|
}
|
|
1624
|
-
.
|
|
1624
|
+
._heading_o0cfv_32 ._headingIcon_o0cfv_38._clickable_o0cfv_45:hover {
|
|
1625
1625
|
cursor: pointer;
|
|
1626
1626
|
color: var(--color-text-primary-hover);
|
|
1627
1627
|
}
|
|
1628
|
-
.
|
|
1628
|
+
._option_o0cfv_49 {
|
|
1629
1629
|
color: inherit;
|
|
1630
1630
|
display: block;
|
|
1631
1631
|
position: relative;
|
|
1632
1632
|
}
|
|
1633
|
-
.
|
|
1634
|
-
.
|
|
1635
|
-
.
|
|
1633
|
+
._heading_o0cfv_32,
|
|
1634
|
+
._option_o0cfv_49,
|
|
1635
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23 {
|
|
1636
1636
|
padding: var(--padding-input);
|
|
1637
|
-
border: solid transparent;
|
|
1638
|
-
border-width: 1px 0;
|
|
1637
|
+
border: 1px solid transparent;
|
|
1639
1638
|
}
|
|
1640
|
-
.
|
|
1641
|
-
.
|
|
1639
|
+
._option_o0cfv_49,
|
|
1640
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23 {
|
|
1642
1641
|
line-height: var(--line-height);
|
|
1643
1642
|
display: flex;
|
|
1644
1643
|
align-items: flex-start;
|
|
1645
1644
|
}
|
|
1646
|
-
.
|
|
1647
|
-
.
|
|
1648
|
-
.
|
|
1649
|
-
.
|
|
1645
|
+
._option_o0cfv_49:hover,
|
|
1646
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23:hover,
|
|
1647
|
+
._option_o0cfv_49._active_o0cfv_68,
|
|
1648
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23._active_o0cfv_68 {
|
|
1650
1649
|
background-color: var(--color-background-listitem-hover);
|
|
1651
1650
|
cursor: pointer;
|
|
1652
1651
|
}
|
|
1653
|
-
.
|
|
1652
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23._disabled_o0cfv_73 {
|
|
1654
1653
|
opacity: 0.2;
|
|
1655
1654
|
}
|
|
1656
|
-
.
|
|
1657
|
-
.
|
|
1655
|
+
._option_o0cfv_49._selected_o0cfv_76,
|
|
1656
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23._selected_o0cfv_76 {
|
|
1658
1657
|
background-color: var(--color-background-listitem-active);
|
|
1659
1658
|
}
|
|
1660
|
-
.
|
|
1659
|
+
._option_o0cfv_49._selected_o0cfv_76:hover,
|
|
1660
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23._selected_o0cfv_76:hover,
|
|
1661
|
+
._option_o0cfv_49._selected_o0cfv_76._active_o0cfv_68,
|
|
1662
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23._selected_o0cfv_76._active_o0cfv_68 {
|
|
1663
|
+
background-color: var(--color-background-listitem-active-hover);
|
|
1664
|
+
}
|
|
1665
|
+
._layer_o0cfv_1 ._trigger_o0cfv_23 {
|
|
1661
1666
|
align-items: center;
|
|
1662
1667
|
}
|
|
1663
|
-
.
|
|
1668
|
+
._optionContent_o0cfv_89 {
|
|
1664
1669
|
flex-wrap: wrap;
|
|
1665
1670
|
margin-right: auto;
|
|
1666
1671
|
}
|
|
1667
|
-
.
|
|
1672
|
+
._optionContent_o0cfv_89:has(._description_o0cfv_93) {
|
|
1668
1673
|
width: max-content;
|
|
1669
1674
|
max-width: 100%;
|
|
1670
1675
|
}
|
|
1671
|
-
.
|
|
1676
|
+
._inline_o0cfv_97 ._optionContent_o0cfv_89 {
|
|
1672
1677
|
display: flex;
|
|
1673
|
-
justify-content: space-between;
|
|
1674
|
-
column-gap: var(--padding);
|
|
1675
1678
|
flex-grow: 1;
|
|
1676
1679
|
}
|
|
1677
|
-
.
|
|
1678
|
-
|
|
1679
|
-
margin-left: auto;
|
|
1680
|
-
text-align: right;
|
|
1681
|
-
}
|
|
1682
|
-
._alignRight_1hkuy_98 ._label_1hkuy_103 {
|
|
1683
|
-
margin-right: 0;
|
|
1684
|
-
}
|
|
1685
|
-
._alignRight_1hkuy_98 ._right_1hkuy_106 {
|
|
1686
|
-
margin-left: 0;
|
|
1687
|
-
}
|
|
1688
|
-
._alignRight_1hkuy_98._inline_1hkuy_92 ._optionContent_1hkuy_84 {
|
|
1689
|
-
justify-content: flex-end;
|
|
1690
|
-
column-gap: var(--padding-input-x);
|
|
1691
|
-
}
|
|
1692
|
-
._icon_1hkuy_113,
|
|
1693
|
-
._check_1hkuy_114 {
|
|
1680
|
+
._icon_o0cfv_101,
|
|
1681
|
+
._check_o0cfv_102 {
|
|
1694
1682
|
display: flex;
|
|
1695
1683
|
flex-shrink: 1;
|
|
1696
1684
|
width: var(--size-xs);
|
|
@@ -1698,118 +1686,123 @@ html[data-theme='dark'] {
|
|
|
1698
1686
|
justify-content: center;
|
|
1699
1687
|
align-items: center;
|
|
1700
1688
|
}
|
|
1701
|
-
.
|
|
1689
|
+
._icon_o0cfv_101 {
|
|
1702
1690
|
margin-right: var(--padding-xs);
|
|
1703
1691
|
color: var(--color-text-primary);
|
|
1704
1692
|
font-size: var(--size-xs);
|
|
1705
1693
|
}
|
|
1706
|
-
.
|
|
1694
|
+
._icon_o0cfv_101:empty {
|
|
1707
1695
|
display: none;
|
|
1708
1696
|
}
|
|
1709
|
-
.
|
|
1697
|
+
._icon_o0cfv_101 img {
|
|
1710
1698
|
max-height: 16px;
|
|
1711
1699
|
max-width: 16px;
|
|
1712
1700
|
width: auto;
|
|
1713
1701
|
height: auto;
|
|
1714
1702
|
}
|
|
1715
|
-
.
|
|
1703
|
+
._check_o0cfv_102 {
|
|
1716
1704
|
width: 1em;
|
|
1717
1705
|
margin: 0 -2px 0 var(--padding-xxs);
|
|
1718
1706
|
color: var(--color-text-primary);
|
|
1719
1707
|
}
|
|
1720
|
-
.
|
|
1721
|
-
|
|
1708
|
+
._label_o0cfv_129 {
|
|
1709
|
+
flex: 1;
|
|
1710
|
+
min-width: 0;
|
|
1722
1711
|
pointer-events: initial;
|
|
1723
1712
|
}
|
|
1724
|
-
.
|
|
1725
|
-
.
|
|
1713
|
+
._label_o0cfv_129,
|
|
1714
|
+
._heading_o0cfv_32 {
|
|
1726
1715
|
max-width: 100%;
|
|
1727
1716
|
display: block;
|
|
1728
1717
|
overflow: hidden;
|
|
1729
1718
|
text-overflow: ellipsis;
|
|
1730
1719
|
white-space: nowrap;
|
|
1731
1720
|
}
|
|
1732
|
-
.
|
|
1721
|
+
._description_o0cfv_93 {
|
|
1733
1722
|
color: #999;
|
|
1734
1723
|
display: block;
|
|
1735
1724
|
}
|
|
1736
|
-
.
|
|
1725
|
+
._arrow_o0cfv_146 {
|
|
1737
1726
|
margin-left: var(--padding-xxs);
|
|
1738
1727
|
display: flex;
|
|
1739
1728
|
}
|
|
1740
|
-
.
|
|
1729
|
+
._divider_o0cfv_150 {
|
|
1741
1730
|
border: 0;
|
|
1742
1731
|
border-top: 1px solid var(--color-border);
|
|
1743
1732
|
}
|
|
1744
|
-
.
|
|
1733
|
+
._disabled_o0cfv_73 {
|
|
1745
1734
|
pointer-events: none;
|
|
1746
1735
|
cursor: not-allowed !important;
|
|
1747
1736
|
}
|
|
1748
|
-
.
|
|
1737
|
+
._buttonLabel_o0cfv_158 {
|
|
1749
1738
|
white-space: nowrap;
|
|
1750
1739
|
overflow: hidden;
|
|
1751
1740
|
text-overflow: ellipsis;
|
|
1752
1741
|
display: block;
|
|
1753
1742
|
margin-right: auto;
|
|
1754
1743
|
}
|
|
1755
|
-
.
|
|
1744
|
+
._component_o0cfv_165 {
|
|
1756
1745
|
display: inline-flex;
|
|
1757
1746
|
align-items: center;
|
|
1758
1747
|
justify-content: center;
|
|
1759
1748
|
cursor: pointer;
|
|
1760
1749
|
}
|
|
1761
|
-
.
|
|
1750
|
+
._right_o0cfv_171 {
|
|
1762
1751
|
margin-left: auto;
|
|
1763
1752
|
display: flex;
|
|
1764
1753
|
align-items: center;
|
|
1765
1754
|
}
|
|
1766
|
-
.
|
|
1755
|
+
._actions_o0cfv_176 {
|
|
1767
1756
|
margin-left: var(--padding-xs);
|
|
1768
1757
|
display: flex;
|
|
1769
1758
|
align-items: center;
|
|
1770
1759
|
margin-top: -2px;
|
|
1771
1760
|
margin-bottom: -2px;
|
|
1772
1761
|
}
|
|
1773
|
-
.
|
|
1762
|
+
._menuPopover_o0cfv_183 {
|
|
1774
1763
|
outline: none;
|
|
1775
1764
|
z-index: var(--zindex-dropdown) !important;
|
|
1776
1765
|
transition: opacity 0.1s, transform 0.1s;
|
|
1777
1766
|
}
|
|
1778
|
-
.
|
|
1779
|
-
.
|
|
1767
|
+
._menuPopover_o0cfv_183[data-entering],
|
|
1768
|
+
._menuPopover_o0cfv_183[data-exiting] {
|
|
1780
1769
|
transform: var(--origin);
|
|
1781
1770
|
opacity: 0;
|
|
1782
1771
|
}
|
|
1783
|
-
.
|
|
1772
|
+
._menuPopover_o0cfv_183[data-placement='top'] {
|
|
1784
1773
|
--origin: translateY(4px);
|
|
1785
1774
|
}
|
|
1786
|
-
.
|
|
1775
|
+
._menuPopover_o0cfv_183[data-placement='bottom'] {
|
|
1787
1776
|
--origin: translateY(-4px);
|
|
1788
1777
|
}
|
|
1789
|
-
.
|
|
1778
|
+
._menuPopover_o0cfv_183[data-placement='right'] {
|
|
1790
1779
|
--origin: translateX(-4px);
|
|
1791
1780
|
}
|
|
1792
|
-
.
|
|
1781
|
+
._menuPopover_o0cfv_183[data-placement='left'] {
|
|
1793
1782
|
--origin: translateX(4px);
|
|
1794
1783
|
}
|
|
1795
|
-
.
|
|
1784
|
+
._menuPopoverNested_o0cfv_205 {
|
|
1796
1785
|
padding: 0;
|
|
1797
1786
|
}
|
|
1798
|
-
.
|
|
1787
|
+
._menuItem_o0cfv_208 {
|
|
1799
1788
|
outline: none;
|
|
1800
1789
|
cursor: pointer;
|
|
1801
1790
|
}
|
|
1802
|
-
.
|
|
1791
|
+
._menuItem_o0cfv_208[data-disabled] {
|
|
1803
1792
|
opacity: 0.2;
|
|
1804
1793
|
cursor: not-allowed;
|
|
1805
1794
|
}
|
|
1806
|
-
.
|
|
1807
|
-
.
|
|
1795
|
+
._menuItem_o0cfv_208[data-focused],
|
|
1796
|
+
._menuItem_o0cfv_208[data-hovered] {
|
|
1808
1797
|
background-color: var(--color-background-listitem-hover);
|
|
1809
1798
|
}
|
|
1810
|
-
.
|
|
1799
|
+
._menuItem_o0cfv_208[data-selected] {
|
|
1811
1800
|
background-color: var(--color-background-listitem-active);
|
|
1812
1801
|
}
|
|
1802
|
+
._menuItem_o0cfv_208[data-selected][data-focused],
|
|
1803
|
+
._menuItem_o0cfv_208[data-selected][data-hovered] {
|
|
1804
|
+
background-color: var(--color-background-listitem-active-hover);
|
|
1805
|
+
}
|
|
1813
1806
|
._wrapper_14vly_1 {
|
|
1814
1807
|
display: inline-flex;
|
|
1815
1808
|
position: relative;
|
|
@@ -2628,90 +2621,90 @@ html[data-theme='dark'] {
|
|
|
2628
2621
|
height: 100%;
|
|
2629
2622
|
align-items: stretch;
|
|
2630
2623
|
}
|
|
2631
|
-
.
|
|
2624
|
+
._inputInTable_1w4lm_1 {
|
|
2632
2625
|
background-color: transparent;
|
|
2633
2626
|
border-radius: inherit !important;
|
|
2634
2627
|
height: var(--size);
|
|
2635
2628
|
min-height: 100%;
|
|
2636
2629
|
}
|
|
2637
|
-
.
|
|
2630
|
+
._inputInTable_1w4lm_1:not(:hover):not([data-error]):not([data-warning]) {
|
|
2638
2631
|
border-color: transparent;
|
|
2639
2632
|
}
|
|
2640
|
-
.
|
|
2633
|
+
._inputInTable_1w4lm_1:not(:focus) {
|
|
2641
2634
|
box-shadow: none;
|
|
2642
2635
|
}
|
|
2643
|
-
.
|
|
2636
|
+
._inputHover_1w4lm_13 {
|
|
2644
2637
|
position: relative;
|
|
2645
2638
|
border-color: var(--color-border-hover);
|
|
2646
2639
|
z-index: 2;
|
|
2647
2640
|
}
|
|
2648
|
-
.
|
|
2641
|
+
._inputFocus_1w4lm_18 {
|
|
2649
2642
|
position: relative;
|
|
2650
2643
|
outline: none !important;
|
|
2651
2644
|
border-color: var(--color-border-focus) !important;
|
|
2652
2645
|
box-shadow: var(--shadow-focus);
|
|
2653
2646
|
z-index: 3;
|
|
2654
2647
|
}
|
|
2655
|
-
.
|
|
2648
|
+
._controlFocusVisible_1w4lm_25 {
|
|
2656
2649
|
outline: none;
|
|
2657
2650
|
box-shadow: var(--shadow-focus);
|
|
2658
2651
|
}
|
|
2659
|
-
.
|
|
2660
|
-
.
|
|
2652
|
+
._inputError_1w4lm_29,
|
|
2653
|
+
._inputWarning_1w4lm_30 {
|
|
2661
2654
|
position: relative;
|
|
2662
2655
|
}
|
|
2663
|
-
.
|
|
2656
|
+
._inputError_1w4lm_29 {
|
|
2664
2657
|
z-index: 2;
|
|
2665
2658
|
border-color: var(--color-border-error);
|
|
2666
2659
|
color: var(--color-text-error) !important;
|
|
2667
2660
|
background-color: var(--color-background-error-muted);
|
|
2668
2661
|
}
|
|
2669
|
-
.
|
|
2662
|
+
._inputError_1w4lm_29:hover {
|
|
2670
2663
|
border-color: var(--color-border-error-hover) !important;
|
|
2671
2664
|
}
|
|
2672
|
-
.
|
|
2665
|
+
._inputError_1w4lm_29:focus {
|
|
2673
2666
|
position: relative;
|
|
2674
2667
|
outline: none !important;
|
|
2675
2668
|
border-color: var(--color-border-focus) !important;
|
|
2676
2669
|
box-shadow: var(--shadow-focus);
|
|
2677
2670
|
z-index: 3;
|
|
2678
2671
|
}
|
|
2679
|
-
.
|
|
2672
|
+
._inputWarning_1w4lm_30 {
|
|
2680
2673
|
z-index: 1;
|
|
2681
2674
|
border-color: var(--color-border-warning);
|
|
2682
2675
|
color: var(--color-text-warning) !important;
|
|
2683
2676
|
background-color: var(--color-background-warning-muted);
|
|
2684
2677
|
}
|
|
2685
|
-
.
|
|
2678
|
+
._inputWarning_1w4lm_30:hover {
|
|
2686
2679
|
border-color: var(--color-border-warning-hover) !important;
|
|
2687
2680
|
}
|
|
2688
|
-
.
|
|
2681
|
+
._inputWarning_1w4lm_30:focus {
|
|
2689
2682
|
position: relative;
|
|
2690
2683
|
outline: none !important;
|
|
2691
2684
|
border-color: var(--color-border-focus) !important;
|
|
2692
2685
|
box-shadow: var(--shadow-focus);
|
|
2693
2686
|
z-index: 3;
|
|
2694
2687
|
}
|
|
2695
|
-
.
|
|
2688
|
+
._inputDisabled_1w4lm_65 {
|
|
2696
2689
|
pointer-events: none;
|
|
2697
2690
|
background-color: var(--color-background-disabled);
|
|
2698
2691
|
color: var(--color-text-muted);
|
|
2699
2692
|
box-shadow: none;
|
|
2700
2693
|
}
|
|
2701
|
-
.
|
|
2694
|
+
._hideScrollbars_1w4lm_71 {
|
|
2702
2695
|
/* Firefox */
|
|
2703
2696
|
scrollbar-width: none;
|
|
2704
2697
|
/* IE 10+ */
|
|
2705
2698
|
-ms-overflow-style: none;
|
|
2706
2699
|
/* Chrome, Safari and Opera */
|
|
2707
2700
|
}
|
|
2708
|
-
.
|
|
2701
|
+
._hideScrollbars_1w4lm_71::-webkit-scrollbar {
|
|
2709
2702
|
display: none;
|
|
2710
2703
|
}
|
|
2711
|
-
.
|
|
2704
|
+
._wrapper_1w4lm_81 {
|
|
2712
2705
|
position: relative;
|
|
2713
2706
|
}
|
|
2714
|
-
.
|
|
2707
|
+
._input_1w4lm_1 {
|
|
2715
2708
|
margin: 0;
|
|
2716
2709
|
outline: 0;
|
|
2717
2710
|
text-align: left;
|
|
@@ -2731,93 +2724,93 @@ html[data-theme='dark'] {
|
|
|
2731
2724
|
position: relative;
|
|
2732
2725
|
font-variant-numeric: tabular-nums;
|
|
2733
2726
|
}
|
|
2734
|
-
.
|
|
2727
|
+
._input_1w4lm_1::placeholder {
|
|
2735
2728
|
color: var(--color-text-placeholder);
|
|
2736
2729
|
}
|
|
2737
|
-
.
|
|
2730
|
+
._input_1w4lm_1._isInTable_1w4lm_107 {
|
|
2738
2731
|
background-color: transparent;
|
|
2739
2732
|
border-radius: inherit !important;
|
|
2740
2733
|
height: var(--size);
|
|
2741
2734
|
min-height: 100%;
|
|
2742
2735
|
}
|
|
2743
|
-
.
|
|
2736
|
+
._input_1w4lm_1._isInTable_1w4lm_107:not(:hover):not([data-error]):not([data-warning]) {
|
|
2744
2737
|
border-color: transparent;
|
|
2745
2738
|
}
|
|
2746
|
-
.
|
|
2739
|
+
._input_1w4lm_1._isInTable_1w4lm_107:not(:focus) {
|
|
2747
2740
|
box-shadow: none;
|
|
2748
2741
|
}
|
|
2749
|
-
.
|
|
2742
|
+
._input_1w4lm_1:hover {
|
|
2750
2743
|
position: relative;
|
|
2751
2744
|
border-color: var(--color-border-hover);
|
|
2752
2745
|
z-index: 2;
|
|
2753
2746
|
}
|
|
2754
|
-
.
|
|
2747
|
+
._input_1w4lm_1:focus {
|
|
2755
2748
|
position: relative;
|
|
2756
2749
|
outline: none !important;
|
|
2757
2750
|
border-color: var(--color-border-focus) !important;
|
|
2758
2751
|
box-shadow: var(--shadow-focus);
|
|
2759
2752
|
z-index: 3;
|
|
2760
2753
|
}
|
|
2761
|
-
.
|
|
2754
|
+
._input_1w4lm_1._small_1w4lm_131 {
|
|
2762
2755
|
font-size: var(--font-size-sm);
|
|
2763
2756
|
height: var(--size-sm);
|
|
2764
2757
|
padding: var(--padding-input-sm);
|
|
2765
2758
|
line-height: var(--size-sm);
|
|
2766
2759
|
}
|
|
2767
|
-
.
|
|
2760
|
+
._input_1w4lm_1[data-warning] {
|
|
2768
2761
|
position: relative;
|
|
2769
2762
|
z-index: 1;
|
|
2770
2763
|
border-color: var(--color-border-warning);
|
|
2771
2764
|
color: var(--color-text-warning) !important;
|
|
2772
2765
|
background-color: var(--color-background-warning-muted);
|
|
2773
2766
|
}
|
|
2774
|
-
.
|
|
2767
|
+
._input_1w4lm_1[data-warning]:hover {
|
|
2775
2768
|
border-color: var(--color-border-warning-hover) !important;
|
|
2776
2769
|
}
|
|
2777
|
-
.
|
|
2770
|
+
._input_1w4lm_1[data-warning]:focus {
|
|
2778
2771
|
position: relative;
|
|
2779
2772
|
outline: none !important;
|
|
2780
2773
|
border-color: var(--color-border-focus) !important;
|
|
2781
2774
|
box-shadow: var(--shadow-focus);
|
|
2782
2775
|
z-index: 3;
|
|
2783
2776
|
}
|
|
2784
|
-
.
|
|
2777
|
+
._input_1w4lm_1[data-error] {
|
|
2785
2778
|
position: relative;
|
|
2786
2779
|
z-index: 2;
|
|
2787
2780
|
border-color: var(--color-border-error);
|
|
2788
2781
|
color: var(--color-text-error) !important;
|
|
2789
2782
|
background-color: var(--color-background-error-muted);
|
|
2790
2783
|
}
|
|
2791
|
-
.
|
|
2784
|
+
._input_1w4lm_1[data-error]:hover {
|
|
2792
2785
|
border-color: var(--color-border-error-hover) !important;
|
|
2793
2786
|
}
|
|
2794
|
-
.
|
|
2787
|
+
._input_1w4lm_1[data-error]:focus {
|
|
2795
2788
|
position: relative;
|
|
2796
2789
|
outline: none !important;
|
|
2797
2790
|
border-color: var(--color-border-focus) !important;
|
|
2798
2791
|
box-shadow: var(--shadow-focus);
|
|
2799
2792
|
z-index: 3;
|
|
2800
2793
|
}
|
|
2801
|
-
.
|
|
2794
|
+
._input_1w4lm_1[disabled] {
|
|
2802
2795
|
pointer-events: none;
|
|
2803
2796
|
background-color: var(--color-background-disabled);
|
|
2804
2797
|
color: var(--color-text-muted);
|
|
2805
2798
|
box-shadow: none;
|
|
2806
2799
|
}
|
|
2807
|
-
.
|
|
2800
|
+
._input_1w4lm_1._right_1w4lm_177 {
|
|
2808
2801
|
text-align: right;
|
|
2809
2802
|
}
|
|
2810
|
-
.
|
|
2811
|
-
.
|
|
2803
|
+
._groupOrderFirst_1w4lm_180 ._input_1w4lm_1,
|
|
2804
|
+
._groupOrderMiddle_1w4lm_181 ._input_1w4lm_1 {
|
|
2812
2805
|
border-top-right-radius: 0 !important;
|
|
2813
2806
|
border-bottom-right-radius: 0 !important;
|
|
2814
2807
|
}
|
|
2815
|
-
.
|
|
2816
|
-
.
|
|
2808
|
+
._groupOrderLast_1w4lm_185 ._input_1w4lm_1,
|
|
2809
|
+
._groupOrderMiddle_1w4lm_181 ._input_1w4lm_1 {
|
|
2817
2810
|
border-top-left-radius: 0 !important;
|
|
2818
2811
|
border-bottom-left-radius: 0 !important;
|
|
2819
2812
|
}
|
|
2820
|
-
.
|
|
2813
|
+
._slot_1w4lm_190 {
|
|
2821
2814
|
position: absolute;
|
|
2822
2815
|
top: 1px;
|
|
2823
2816
|
bottom: 1px;
|
|
@@ -2827,33 +2820,32 @@ html[data-theme='dark'] {
|
|
|
2827
2820
|
overflow: hidden;
|
|
2828
2821
|
pointer-events: none;
|
|
2829
2822
|
}
|
|
2830
|
-
.
|
|
2823
|
+
._slot_1w4lm_190 button {
|
|
2831
2824
|
min-height: 0;
|
|
2832
2825
|
border-radius: 0;
|
|
2833
|
-
line-height: 1;
|
|
2834
2826
|
}
|
|
2835
|
-
.
|
|
2827
|
+
:where(._slot_1w4lm_190 > *) {
|
|
2836
2828
|
pointer-events: auto;
|
|
2837
2829
|
}
|
|
2838
|
-
.
|
|
2830
|
+
._slotLeft_1w4lm_207 {
|
|
2839
2831
|
left: 1px;
|
|
2840
2832
|
border-top-left-radius: calc(var(--border-radius) - 1px);
|
|
2841
2833
|
border-bottom-left-radius: calc(var(--border-radius) - 1px);
|
|
2842
2834
|
}
|
|
2843
|
-
.
|
|
2835
|
+
._slotRight_1w4lm_212 {
|
|
2844
2836
|
right: 1px;
|
|
2845
2837
|
border-top-right-radius: calc(var(--border-radius) - 1px);
|
|
2846
2838
|
border-bottom-right-radius: calc(var(--border-radius) - 1px);
|
|
2847
2839
|
}
|
|
2848
|
-
.
|
|
2849
|
-
.
|
|
2840
|
+
._groupOrderFirst_1w4lm_180 ._slotRight_1w4lm_212,
|
|
2841
|
+
._groupOrderMiddle_1w4lm_181 ._slotRight_1w4lm_212 {
|
|
2850
2842
|
border-radius: 0;
|
|
2851
2843
|
}
|
|
2852
|
-
.
|
|
2853
|
-
.
|
|
2844
|
+
._groupOrderLast_1w4lm_185 ._slotLeft_1w4lm_207,
|
|
2845
|
+
._groupOrderMiddle_1w4lm_181 ._slotLeft_1w4lm_207 {
|
|
2854
2846
|
border-radius: 0;
|
|
2855
2847
|
}
|
|
2856
|
-
.
|
|
2848
|
+
._icon_1w4lm_225 {
|
|
2857
2849
|
aspect-ratio: 1;
|
|
2858
2850
|
display: flex;
|
|
2859
2851
|
align-items: center;
|
|
@@ -4485,14 +4477,23 @@ tbody ._staticCell_1vfnu_133 ._staticCellContent_1vfnu_136 {
|
|
|
4485
4477
|
display: flex;
|
|
4486
4478
|
justify-content: center;
|
|
4487
4479
|
}
|
|
4488
|
-
.
|
|
4480
|
+
._unitInput_aj94u_1 {
|
|
4489
4481
|
flex: 1 1 auto;
|
|
4490
4482
|
min-width: 0;
|
|
4491
4483
|
}
|
|
4492
|
-
.
|
|
4484
|
+
._unitTriggerLabel_aj94u_5 {
|
|
4485
|
+
font-weight: normal;
|
|
4486
|
+
}
|
|
4487
|
+
._unitValue_aj94u_8 {
|
|
4488
|
+
display: block;
|
|
4489
|
+
text-align: right;
|
|
4490
|
+
font-variant-numeric: tabular-nums;
|
|
4491
|
+
padding-right: var(--padding-input-x);
|
|
4492
|
+
}
|
|
4493
|
+
._predefinedMenuActive_aj94u_14 input {
|
|
4493
4494
|
color: var(--color-text-faint) !important;
|
|
4494
4495
|
}
|
|
4495
|
-
.
|
|
4496
|
+
._isInTable_aj94u_17 {
|
|
4496
4497
|
height: 100%;
|
|
4497
4498
|
}
|
|
4498
4499
|
._container_9tr5w_1 {
|
package/dist/index.d.ts
CHANGED
|
@@ -315,7 +315,6 @@ export declare interface IButtonProps {
|
|
|
315
315
|
small?: boolean;
|
|
316
316
|
styles?: string;
|
|
317
317
|
width?: TStringOrNumber;
|
|
318
|
-
fontWeight?: default_2.CSSProperties['fontWeight'];
|
|
319
318
|
title?: string;
|
|
320
319
|
type?: TButtonType | string;
|
|
321
320
|
error?: string;
|
|
@@ -964,7 +963,6 @@ export declare interface IMenuMenu {
|
|
|
964
963
|
title?: string;
|
|
965
964
|
colored?: boolean | string;
|
|
966
965
|
basic?: boolean;
|
|
967
|
-
fontWeight?: default_2.CSSProperties['fontWeight'];
|
|
968
966
|
small?: boolean;
|
|
969
967
|
label?: ReactNode | string;
|
|
970
968
|
component?: ReactNode;
|
|
@@ -1005,7 +1003,6 @@ export declare interface IMenuSection {
|
|
|
1005
1003
|
selected?: boolean;
|
|
1006
1004
|
disabled?: boolean;
|
|
1007
1005
|
inline?: boolean;
|
|
1008
|
-
align?: 'left' | 'right';
|
|
1009
1006
|
title?: string;
|
|
1010
1007
|
download?: boolean;
|
|
1011
1008
|
onChange?: TChangeEventHandler;
|
package/dist/index.js
CHANGED
|
@@ -979,7 +979,7 @@ var ButtonTooltipWrapper = ({ children, tooltip = null }) => {
|
|
|
979
979
|
children
|
|
980
980
|
});
|
|
981
981
|
};
|
|
982
|
-
var Button = React.forwardRef(({ active = false, basic = false, colored = false, disabled = false, ignoreDisabledContext = false, groupOrder, icon = null, rightIcon = null, label = "", loading = false, name, pill = false, round = false, small = false, styles = "", width = "",
|
|
982
|
+
var Button = React.forwardRef(({ active = false, basic = false, colored = false, disabled = false, ignoreDisabledContext = false, groupOrder, icon = null, rightIcon = null, label = "", loading = false, name, pill = false, round = false, small = false, styles = "", width = "", title = "", type = ButtonType.BUTTON, onClick = () => {}, error, warning, testId, tooltip, inverted = false, component: Component = "button", url, tabIndex, ...domProps }, ref) => {
|
|
983
983
|
const disabledContext = useContext(DisabledContext);
|
|
984
984
|
const isInTable = useIsInTable();
|
|
985
985
|
const color = (() => {
|
|
@@ -1012,10 +1012,7 @@ var Button = React.forwardRef(({ active = false, basic = false, colored = false,
|
|
|
1012
1012
|
name: name !== null && name !== void 0 ? name : "",
|
|
1013
1013
|
onClick,
|
|
1014
1014
|
...title ? { title } : {},
|
|
1015
|
-
style: {
|
|
1016
|
-
width,
|
|
1017
|
-
fontWeight
|
|
1018
|
-
},
|
|
1015
|
+
style: { width },
|
|
1019
1016
|
"data-error": error || null,
|
|
1020
1017
|
"data-warning": warning || null,
|
|
1021
1018
|
"data-testid": testId,
|
|
@@ -1060,33 +1057,32 @@ var isMenuEmpty = (menu) => {
|
|
|
1060
1057
|
return !isValidElement(sections) && (!Array.isArray(sections) || sections.every((section) => isEmpty(section)));
|
|
1061
1058
|
};
|
|
1062
1059
|
var menu_module_default = {
|
|
1063
|
-
layer: "
|
|
1064
|
-
nested: "
|
|
1065
|
-
fileInput: "
|
|
1066
|
-
trigger: "
|
|
1067
|
-
heading: "
|
|
1068
|
-
headingIcon: "
|
|
1069
|
-
clickable: "
|
|
1070
|
-
option: "
|
|
1071
|
-
active: "
|
|
1072
|
-
disabled: "
|
|
1073
|
-
selected: "
|
|
1074
|
-
optionContent: "
|
|
1075
|
-
description: "
|
|
1076
|
-
inline: "
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
menuItem: "_menuItem_1hkuy_219"
|
|
1060
|
+
layer: "_layer_o0cfv_1",
|
|
1061
|
+
nested: "_nested_o0cfv_14",
|
|
1062
|
+
fileInput: "_fileInput_o0cfv_17",
|
|
1063
|
+
trigger: "_trigger_o0cfv_23",
|
|
1064
|
+
heading: "_heading_o0cfv_32",
|
|
1065
|
+
headingIcon: "_headingIcon_o0cfv_38",
|
|
1066
|
+
clickable: "_clickable_o0cfv_45",
|
|
1067
|
+
option: "_option_o0cfv_49",
|
|
1068
|
+
active: "_active_o0cfv_68",
|
|
1069
|
+
disabled: "_disabled_o0cfv_73",
|
|
1070
|
+
selected: "_selected_o0cfv_76",
|
|
1071
|
+
optionContent: "_optionContent_o0cfv_89",
|
|
1072
|
+
description: "_description_o0cfv_93",
|
|
1073
|
+
inline: "_inline_o0cfv_97",
|
|
1074
|
+
icon: "_icon_o0cfv_101",
|
|
1075
|
+
check: "_check_o0cfv_102",
|
|
1076
|
+
label: "_label_o0cfv_129",
|
|
1077
|
+
arrow: "_arrow_o0cfv_146",
|
|
1078
|
+
divider: "_divider_o0cfv_150",
|
|
1079
|
+
buttonLabel: "_buttonLabel_o0cfv_158",
|
|
1080
|
+
component: "_component_o0cfv_165",
|
|
1081
|
+
right: "_right_o0cfv_171",
|
|
1082
|
+
actions: "_actions_o0cfv_176",
|
|
1083
|
+
menuPopover: "_menuPopover_o0cfv_183",
|
|
1084
|
+
menuPopoverNested: "_menuPopoverNested_o0cfv_205",
|
|
1085
|
+
menuItem: "_menuItem_o0cfv_208"
|
|
1090
1086
|
};
|
|
1091
1087
|
//#endregion
|
|
1092
1088
|
//#region src/components/menu/layer/heading.tsx
|
|
@@ -1107,7 +1103,7 @@ var getTextValue$1 = (label) => {
|
|
|
1107
1103
|
if (typeof label === "string" || typeof label === "number") return String(label);
|
|
1108
1104
|
return "";
|
|
1109
1105
|
};
|
|
1110
|
-
var Option$2 = ({ actions, label, url, onClick, description, icon, selected, closeOnOptionClick = true, close, disabled, inline,
|
|
1106
|
+
var Option$2 = ({ actions, label, url, onClick, description, icon, selected, closeOnOptionClick = true, close, disabled, inline, title, upload, uploadType, onChange, testId }) => {
|
|
1111
1107
|
const fileInputRef = useRef(null);
|
|
1112
1108
|
const handleClick = (evt) => {
|
|
1113
1109
|
if (disabled) {
|
|
@@ -1140,7 +1136,7 @@ var Option$2 = ({ actions, label, url, onClick, description, icon, selected, clo
|
|
|
1140
1136
|
}
|
|
1141
1137
|
};
|
|
1142
1138
|
return /* @__PURE__ */ jsxs(MenuItem, {
|
|
1143
|
-
className: cx(menu_module_default.menuItem, menu_module_default.option, inline && menu_module_default.inline,
|
|
1139
|
+
className: cx(menu_module_default.menuItem, menu_module_default.option, inline && menu_module_default.inline, selected && menu_module_default.selected),
|
|
1144
1140
|
textValue: getTextValue$1(label),
|
|
1145
1141
|
href: url,
|
|
1146
1142
|
isDisabled: disabled,
|
|
@@ -1235,7 +1231,6 @@ var Section$1 = ({ section, closeOnOptionClick, close }) => {
|
|
|
1235
1231
|
close,
|
|
1236
1232
|
disabled: (section === null || section === void 0 ? void 0 : section.disabled) || disabledContext,
|
|
1237
1233
|
inline: section === null || section === void 0 ? void 0 : section.inline,
|
|
1238
|
-
align: section === null || section === void 0 ? void 0 : section.align,
|
|
1239
1234
|
title: section === null || section === void 0 ? void 0 : section.title,
|
|
1240
1235
|
upload: section === null || section === void 0 ? void 0 : section.upload,
|
|
1241
1236
|
uploadType: section === null || section === void 0 ? void 0 : section.uploadType,
|
|
@@ -1406,7 +1401,7 @@ var Badge = ({ children, color = "", textColor: textColorProp = "", title = null
|
|
|
1406
1401
|
};
|
|
1407
1402
|
//#endregion
|
|
1408
1403
|
//#region src/components/menu/trigger/button.tsx
|
|
1409
|
-
var Button$1 = React.forwardRef(({ trigger, label, colored, basic,
|
|
1404
|
+
var Button$1 = React.forwardRef(({ trigger, label, colored, basic, small, width, disabled, groupOrder, loading, error, warning, active, tabIndex, testId, ...domProps }, ref) => {
|
|
1410
1405
|
const disabledContext = useContext(DisabledContext);
|
|
1411
1406
|
const isDropdown = trigger === TriggerType.DROP_DOWN_BUTTON;
|
|
1412
1407
|
return /* @__PURE__ */ jsx(Button, {
|
|
@@ -1417,7 +1412,6 @@ var Button$1 = React.forwardRef(({ trigger, label, colored, basic, fontWeight, s
|
|
|
1417
1412
|
}),
|
|
1418
1413
|
colored,
|
|
1419
1414
|
basic,
|
|
1420
|
-
fontWeight,
|
|
1421
1415
|
small,
|
|
1422
1416
|
width,
|
|
1423
1417
|
groupOrder,
|
|
@@ -1500,7 +1494,7 @@ var withBadge = (children, { isNested, badgeTitle, badgeDot }) => !isNested && (
|
|
|
1500
1494
|
* Renders the menu trigger control only (Button / Text / Component).
|
|
1501
1495
|
* OverlayTriggerChild owns the Pressable host — do not wrap a focus shell here.
|
|
1502
1496
|
*/
|
|
1503
|
-
var Trigger$1 = React.forwardRef(({ active, disabled, loading, width, trigger, label, title, colored, basic,
|
|
1497
|
+
var Trigger$1 = React.forwardRef(({ active, disabled, loading, width, trigger, label, title, colored, basic, small, isNested, component, groupOrder, isOpen, error, warning, testId, selected, tabIndex, ...domProps }, ref) => {
|
|
1504
1498
|
const isButtonTrigger = trigger === TriggerType.BUTTON || trigger === TriggerType.DROP_DOWN_BUTTON;
|
|
1505
1499
|
const isComponentTrigger = trigger === TriggerType.COMPONENT;
|
|
1506
1500
|
if (isButtonTrigger) return /* @__PURE__ */ jsx(Button$1, {
|
|
@@ -1509,7 +1503,6 @@ var Trigger$1 = React.forwardRef(({ active, disabled, loading, width, trigger, l
|
|
|
1509
1503
|
label: label !== null && label !== void 0 ? label : "",
|
|
1510
1504
|
colored,
|
|
1511
1505
|
basic,
|
|
1512
|
-
fontWeight,
|
|
1513
1506
|
small,
|
|
1514
1507
|
width,
|
|
1515
1508
|
disabled,
|
|
@@ -1550,7 +1543,7 @@ var Menu = ({ menu, width, disabled = false, badgeTitle, badgeDot = false, loadi
|
|
|
1550
1543
|
const disabledContext = useContext(DisabledContext);
|
|
1551
1544
|
const triggerRef = useRef(null);
|
|
1552
1545
|
const [internalOpen, setInternalOpen] = useState(false);
|
|
1553
|
-
const { label, title, trigger, colored, basic,
|
|
1546
|
+
const { label, title, trigger, colored, basic, small, sections, component, placement, showAllButton } = menu;
|
|
1554
1547
|
const isControlled = isBoolean(openProp) && isFunction(setOpenProp);
|
|
1555
1548
|
const isOpen = isControlled ? openProp : internalOpen;
|
|
1556
1549
|
const isDisabled = disabled || isMenuEmpty(menu) || disabledContext;
|
|
@@ -1596,7 +1589,6 @@ var Menu = ({ menu, width, disabled = false, badgeTitle, badgeDot = false, loadi
|
|
|
1596
1589
|
title,
|
|
1597
1590
|
colored,
|
|
1598
1591
|
basic,
|
|
1599
|
-
fontWeight,
|
|
1600
1592
|
small,
|
|
1601
1593
|
component,
|
|
1602
1594
|
groupOrder,
|
|
@@ -2728,10 +2720,12 @@ var InputGroup = ({ children, small = false, width = "100%", isInTable: isInTabl
|
|
|
2728
2720
|
//#endregion
|
|
2729
2721
|
//#region src/hooks/use-element-width.ts
|
|
2730
2722
|
var useElementWidth = (enabled = true) => {
|
|
2731
|
-
const
|
|
2723
|
+
const [element, setElement] = useState(null);
|
|
2732
2724
|
const [width, setWidth] = useState(null);
|
|
2725
|
+
const ref = useCallback((node) => {
|
|
2726
|
+
setElement(node);
|
|
2727
|
+
}, []);
|
|
2733
2728
|
useLayoutEffect(() => {
|
|
2734
|
-
const element = ref.current;
|
|
2735
2729
|
if (!enabled || !element) {
|
|
2736
2730
|
setWidth(null);
|
|
2737
2731
|
return;
|
|
@@ -2742,30 +2736,30 @@ var useElementWidth = (enabled = true) => {
|
|
|
2742
2736
|
const observer = new ResizeObserver(measure);
|
|
2743
2737
|
observer.observe(element);
|
|
2744
2738
|
return () => observer.disconnect();
|
|
2745
|
-
}, [enabled]);
|
|
2739
|
+
}, [enabled, element]);
|
|
2746
2740
|
return [ref, width];
|
|
2747
2741
|
};
|
|
2748
2742
|
var input_module_default = {
|
|
2749
|
-
inputInTable: "
|
|
2750
|
-
inputHover: "
|
|
2751
|
-
inputFocus: "
|
|
2752
|
-
controlFocusVisible: "
|
|
2753
|
-
inputError: "
|
|
2754
|
-
inputWarning: "
|
|
2755
|
-
inputDisabled: "
|
|
2756
|
-
hideScrollbars: "
|
|
2757
|
-
wrapper: "
|
|
2758
|
-
input: "
|
|
2759
|
-
isInTable: "
|
|
2760
|
-
small: "
|
|
2761
|
-
right: "
|
|
2762
|
-
groupOrderFirst: "
|
|
2763
|
-
groupOrderMiddle: "
|
|
2764
|
-
groupOrderLast: "
|
|
2765
|
-
slot: "
|
|
2766
|
-
slotLeft: "
|
|
2767
|
-
slotRight: "
|
|
2768
|
-
icon: "
|
|
2743
|
+
inputInTable: "_inputInTable_1w4lm_1",
|
|
2744
|
+
inputHover: "_inputHover_1w4lm_13",
|
|
2745
|
+
inputFocus: "_inputFocus_1w4lm_18",
|
|
2746
|
+
controlFocusVisible: "_controlFocusVisible_1w4lm_25",
|
|
2747
|
+
inputError: "_inputError_1w4lm_29",
|
|
2748
|
+
inputWarning: "_inputWarning_1w4lm_30",
|
|
2749
|
+
inputDisabled: "_inputDisabled_1w4lm_65",
|
|
2750
|
+
hideScrollbars: "_hideScrollbars_1w4lm_71",
|
|
2751
|
+
wrapper: "_wrapper_1w4lm_81",
|
|
2752
|
+
input: "_input_1w4lm_1",
|
|
2753
|
+
isInTable: "_isInTable_1w4lm_107",
|
|
2754
|
+
small: "_small_1w4lm_131",
|
|
2755
|
+
right: "_right_1w4lm_177",
|
|
2756
|
+
groupOrderFirst: "_groupOrderFirst_1w4lm_180",
|
|
2757
|
+
groupOrderMiddle: "_groupOrderMiddle_1w4lm_181",
|
|
2758
|
+
groupOrderLast: "_groupOrderLast_1w4lm_185",
|
|
2759
|
+
slot: "_slot_1w4lm_190",
|
|
2760
|
+
slotLeft: "_slotLeft_1w4lm_207",
|
|
2761
|
+
slotRight: "_slotRight_1w4lm_212",
|
|
2762
|
+
icon: "_icon_1w4lm_225"
|
|
2769
2763
|
};
|
|
2770
2764
|
//#endregion
|
|
2771
2765
|
//#region src/components/input/input.tsx
|
|
@@ -2828,8 +2822,8 @@ var Input = forwardRef(({ error = null, tooltip = null, isInTable: isInTableProp
|
|
|
2828
2822
|
className: cx(input_module_default.input, right ? input_module_default.right : "", small ? input_module_default.small : "", isInTable ? input_module_default.isInTable : ""),
|
|
2829
2823
|
style: {
|
|
2830
2824
|
width,
|
|
2831
|
-
...leftSlotWidth
|
|
2832
|
-
...rightSlotWidth
|
|
2825
|
+
...leftSlotWidth ? { paddingLeft: leftSlotWidth } : null,
|
|
2826
|
+
...rightSlotWidth ? { paddingRight: rightSlotWidth } : null
|
|
2833
2827
|
},
|
|
2834
2828
|
"data-error": error || null,
|
|
2835
2829
|
"data-warning": warning || null,
|
|
@@ -5190,9 +5184,11 @@ var safeRoundNumbers = (value) => {
|
|
|
5190
5184
|
return !isScientificStringNum(value) ? roundByMagnitude(value) : value;
|
|
5191
5185
|
};
|
|
5192
5186
|
var unit_input_module_default = {
|
|
5193
|
-
unitInput: "
|
|
5194
|
-
|
|
5195
|
-
|
|
5187
|
+
unitInput: "_unitInput_aj94u_1",
|
|
5188
|
+
unitTriggerLabel: "_unitTriggerLabel_aj94u_5",
|
|
5189
|
+
unitValue: "_unitValue_aj94u_8",
|
|
5190
|
+
predefinedMenuActive: "_predefinedMenuActive_aj94u_14",
|
|
5191
|
+
isInTable: "_isInTable_aj94u_17"
|
|
5196
5192
|
};
|
|
5197
5193
|
//#endregion
|
|
5198
5194
|
//#region src/components/unit-input/unit-input.tsx
|
|
@@ -5219,12 +5215,9 @@ var UnitInput = ({ name, placeholder = "", disabled = false, disabledUnit = fals
|
|
|
5219
5215
|
defaultFromUnit: propUnit,
|
|
5220
5216
|
doNotConvertValue: noConversion
|
|
5221
5217
|
});
|
|
5222
|
-
const [displayLayer, setDisplayLayer] = useState(
|
|
5223
|
-
value: convertedValue,
|
|
5218
|
+
const [displayLayer, setDisplayLayer] = useState({
|
|
5219
|
+
value: convertedValue !== "" ? convertedValue : propValue,
|
|
5224
5220
|
unit: initDisplayUnit
|
|
5225
|
-
} : {
|
|
5226
|
-
value: propValue,
|
|
5227
|
-
unit: propUnit
|
|
5228
5221
|
});
|
|
5229
5222
|
const derivedAllowEmpty = allowEmpty || (displayLayer === null || displayLayer === void 0 ? void 0 : displayLayer.value) === void 0;
|
|
5230
5223
|
const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
|
|
@@ -5468,20 +5461,25 @@ var UnitInput = ({ name, placeholder = "", disabled = false, disabledUnit = fals
|
|
|
5468
5461
|
tabIndex: -1,
|
|
5469
5462
|
menu: {
|
|
5470
5463
|
trigger: TriggerType.DROP_DOWN_BUTTON,
|
|
5471
|
-
label:
|
|
5464
|
+
label: /* @__PURE__ */ jsx("span", {
|
|
5465
|
+
className: unit_input_module_default.unitTriggerLabel,
|
|
5466
|
+
children: displayUnitLabel
|
|
5467
|
+
}),
|
|
5472
5468
|
colored: Color.MUTED,
|
|
5473
5469
|
basic: true,
|
|
5474
|
-
fontWeight: "normal",
|
|
5475
5470
|
placement: "bottom-end",
|
|
5476
5471
|
small,
|
|
5477
5472
|
sections: alternativeUnits.map(([value = "", altUnit = "", label]) => {
|
|
5478
5473
|
const displayUnit = label || altUnit || "";
|
|
5479
5474
|
const safeValue = isValidNum(value) ? value : "";
|
|
5475
|
+
const displayValue = enableCosmeticRounding ? safeRoundNumbers(safeValue) : safeValue;
|
|
5480
5476
|
return {
|
|
5481
5477
|
type: "Option",
|
|
5482
|
-
label:
|
|
5478
|
+
label: /* @__PURE__ */ jsx("span", {
|
|
5479
|
+
className: unit_input_module_default.unitValue,
|
|
5480
|
+
children: displayValue
|
|
5481
|
+
}),
|
|
5483
5482
|
inline: true,
|
|
5484
|
-
align: "right",
|
|
5485
5483
|
onClick: (evt) => {
|
|
5486
5484
|
evt.stopPropagation();
|
|
5487
5485
|
onClickUnit(value, altUnit);
|
package/package.json
CHANGED