@evergis/uilib-gl 1.0.115 → 1.0.116
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.
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Обёртка инпута-якоря: даёт полю собственный фон (сам `Input` прозрачен — `background: transparent`
|
|
3
|
+
* в `inputMixin`), а `inline-flex` + `align-self` не дают обёртке растягиваться во flex-контейнере,
|
|
4
|
+
* иначе Popover (`anchorOrigin="bottom-left"`) уводит меню к низу растянутого якоря.
|
|
5
|
+
*/
|
|
6
|
+
export declare const AnchorWrap: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
1
7
|
export declare const FieldIcons: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../atoms/Grid").FlexProps, never>;
|
|
2
8
|
export declare const CountBadge: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
3
9
|
export declare const ResetIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../../atoms/Icon").IIconProps, never>;
|
package/dist/uilib-gl.esm.js
CHANGED
|
@@ -29760,6 +29760,33 @@ const TreeComponent = _ref => {
|
|
|
29760
29760
|
|
|
29761
29761
|
const Tree = /*#__PURE__*/memo(TreeComponent);
|
|
29762
29762
|
|
|
29763
|
+
/**
|
|
29764
|
+
* Обёртка инпута-якоря: даёт полю собственный фон (сам `Input` прозрачен — `background: transparent`
|
|
29765
|
+
* в `inputMixin`), а `inline-flex` + `align-self` не дают обёртке растягиваться во flex-контейнере,
|
|
29766
|
+
* иначе Popover (`anchorOrigin="bottom-left"`) уводит меню к низу растянутого якоря.
|
|
29767
|
+
*/
|
|
29768
|
+
|
|
29769
|
+
const AnchorWrap = styled.div`
|
|
29770
|
+
display: inline-flex;
|
|
29771
|
+
align-self: flex-start;
|
|
29772
|
+
width: max-content;
|
|
29773
|
+
background-color: ${_ref => {
|
|
29774
|
+
let {
|
|
29775
|
+
theme: {
|
|
29776
|
+
palette
|
|
29777
|
+
}
|
|
29778
|
+
} = _ref;
|
|
29779
|
+
return palette.background;
|
|
29780
|
+
}};
|
|
29781
|
+
border-radius: ${_ref2 => {
|
|
29782
|
+
let {
|
|
29783
|
+
theme: {
|
|
29784
|
+
borderRadius
|
|
29785
|
+
}
|
|
29786
|
+
} = _ref2;
|
|
29787
|
+
return borderRadius.medium;
|
|
29788
|
+
}};
|
|
29789
|
+
`;
|
|
29763
29790
|
const FieldIcons = /*#__PURE__*/styled(Flex)`
|
|
29764
29791
|
position: absolute;
|
|
29765
29792
|
top: 50%;
|
|
@@ -29778,20 +29805,20 @@ const CountBadge = styled.span`
|
|
|
29778
29805
|
height: 1rem;
|
|
29779
29806
|
padding: 0;
|
|
29780
29807
|
border-radius: 0.5rem;
|
|
29781
|
-
background-color: ${
|
|
29808
|
+
background-color: ${_ref3 => {
|
|
29782
29809
|
let {
|
|
29783
29810
|
theme: {
|
|
29784
29811
|
palette
|
|
29785
29812
|
}
|
|
29786
|
-
} =
|
|
29813
|
+
} = _ref3;
|
|
29787
29814
|
return palette.primary;
|
|
29788
29815
|
}};
|
|
29789
|
-
color: ${
|
|
29816
|
+
color: ${_ref4 => {
|
|
29790
29817
|
let {
|
|
29791
29818
|
theme: {
|
|
29792
29819
|
palette
|
|
29793
29820
|
}
|
|
29794
|
-
} =
|
|
29821
|
+
} = _ref4;
|
|
29795
29822
|
return palette.background;
|
|
29796
29823
|
}};
|
|
29797
29824
|
font-size: 0.625rem;
|
|
@@ -29802,12 +29829,12 @@ const ResetIcon = /*#__PURE__*/styled(Icon)`
|
|
|
29802
29829
|
width: 0.875rem;
|
|
29803
29830
|
height: 0.875rem;
|
|
29804
29831
|
cursor: pointer;
|
|
29805
|
-
color: ${
|
|
29832
|
+
color: ${_ref5 => {
|
|
29806
29833
|
let {
|
|
29807
29834
|
theme: {
|
|
29808
29835
|
palette
|
|
29809
29836
|
}
|
|
29810
|
-
} =
|
|
29837
|
+
} = _ref5;
|
|
29811
29838
|
return palette.textSecondary;
|
|
29812
29839
|
}};
|
|
29813
29840
|
|
|
@@ -29816,12 +29843,12 @@ const ResetIcon = /*#__PURE__*/styled(Icon)`
|
|
|
29816
29843
|
}
|
|
29817
29844
|
|
|
29818
29845
|
&:hover {
|
|
29819
|
-
color: ${
|
|
29846
|
+
color: ${_ref6 => {
|
|
29820
29847
|
let {
|
|
29821
29848
|
theme: {
|
|
29822
29849
|
palette
|
|
29823
29850
|
}
|
|
29824
|
-
} =
|
|
29851
|
+
} = _ref6;
|
|
29825
29852
|
return palette.textPrimary;
|
|
29826
29853
|
}};
|
|
29827
29854
|
}
|
|
@@ -29830,19 +29857,19 @@ const Chevron = /*#__PURE__*/styled(Icon)`
|
|
|
29830
29857
|
width: 0.875rem;
|
|
29831
29858
|
height: 0.875rem;
|
|
29832
29859
|
cursor: pointer;
|
|
29833
|
-
transform: ${
|
|
29860
|
+
transform: ${_ref7 => {
|
|
29834
29861
|
let {
|
|
29835
29862
|
isOpen
|
|
29836
|
-
} =
|
|
29863
|
+
} = _ref7;
|
|
29837
29864
|
return isOpen ? "rotate(180deg)" : "";
|
|
29838
29865
|
}};
|
|
29839
29866
|
transition: transform ${transition.press};
|
|
29840
|
-
color: ${
|
|
29867
|
+
color: ${_ref8 => {
|
|
29841
29868
|
let {
|
|
29842
29869
|
theme: {
|
|
29843
29870
|
palette
|
|
29844
29871
|
}
|
|
29845
|
-
} =
|
|
29872
|
+
} = _ref8;
|
|
29846
29873
|
return palette.textSecondary;
|
|
29847
29874
|
}};
|
|
29848
29875
|
|
|
@@ -29851,20 +29878,44 @@ const Chevron = /*#__PURE__*/styled(Icon)`
|
|
|
29851
29878
|
}
|
|
29852
29879
|
`;
|
|
29853
29880
|
const Content = styled.div`
|
|
29854
|
-
width: ${
|
|
29881
|
+
width: ${_ref9 => {
|
|
29855
29882
|
let {
|
|
29856
29883
|
width
|
|
29857
|
-
} =
|
|
29884
|
+
} = _ref9;
|
|
29858
29885
|
return width || "auto";
|
|
29859
29886
|
}};
|
|
29860
29887
|
padding: 0.5rem;
|
|
29861
29888
|
box-sizing: border-box;
|
|
29889
|
+
background-color: ${_ref10 => {
|
|
29890
|
+
let {
|
|
29891
|
+
theme: {
|
|
29892
|
+
palette
|
|
29893
|
+
}
|
|
29894
|
+
} = _ref10;
|
|
29895
|
+
return palette.background;
|
|
29896
|
+
}};
|
|
29897
|
+
border-radius: ${_ref11 => {
|
|
29898
|
+
let {
|
|
29899
|
+
theme: {
|
|
29900
|
+
borderRadius
|
|
29901
|
+
}
|
|
29902
|
+
} = _ref11;
|
|
29903
|
+
return borderRadius.medium;
|
|
29904
|
+
}};
|
|
29905
|
+
box-shadow: ${_ref12 => {
|
|
29906
|
+
let {
|
|
29907
|
+
theme: {
|
|
29908
|
+
shadows
|
|
29909
|
+
}
|
|
29910
|
+
} = _ref12;
|
|
29911
|
+
return shadows.raised;
|
|
29912
|
+
}};
|
|
29862
29913
|
`;
|
|
29863
29914
|
const TreeScroll = styled.div`
|
|
29864
|
-
max-height: ${
|
|
29915
|
+
max-height: ${_ref13 => {
|
|
29865
29916
|
let {
|
|
29866
29917
|
maxHeight
|
|
29867
|
-
} =
|
|
29918
|
+
} = _ref13;
|
|
29868
29919
|
return maxHeight || "15rem";
|
|
29869
29920
|
}};
|
|
29870
29921
|
overflow-y: auto;
|
|
@@ -29900,20 +29951,20 @@ const ItemBadge = styled.span`
|
|
|
29900
29951
|
margin-left: 0.25rem;
|
|
29901
29952
|
padding: 0;
|
|
29902
29953
|
border-radius: 0.5rem;
|
|
29903
|
-
background-color: ${
|
|
29954
|
+
background-color: ${_ref14 => {
|
|
29904
29955
|
let {
|
|
29905
29956
|
theme: {
|
|
29906
29957
|
palette
|
|
29907
29958
|
}
|
|
29908
|
-
} =
|
|
29959
|
+
} = _ref14;
|
|
29909
29960
|
return palette.element;
|
|
29910
29961
|
}};
|
|
29911
|
-
color: ${
|
|
29962
|
+
color: ${_ref15 => {
|
|
29912
29963
|
let {
|
|
29913
29964
|
theme: {
|
|
29914
29965
|
palette
|
|
29915
29966
|
}
|
|
29916
|
-
} =
|
|
29967
|
+
} = _ref15;
|
|
29917
29968
|
return palette.textSecondary;
|
|
29918
29969
|
}};
|
|
29919
29970
|
font-size: 0.625rem;
|
|
@@ -30149,7 +30200,7 @@ const TreeDropdownComponent = props => {
|
|
|
30149
30200
|
targetOrigin: "top-left",
|
|
30150
30201
|
animateX: false,
|
|
30151
30202
|
zIndex: zIndex,
|
|
30152
|
-
anchor: React.createElement(
|
|
30203
|
+
anchor: React.createElement(AnchorWrap, {
|
|
30153
30204
|
onClick: toggleOpen
|
|
30154
30205
|
}, React.createElement(Input$1, {
|
|
30155
30206
|
readOnly: true,
|