@activecollab/components 1.0.10 → 1.0.11
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/cjs/components/Autocomplete/Autocomplete.js +3 -8
- package/dist/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/cjs/components/Autocomplete/Styles.js +17 -4
- package/dist/cjs/components/Autocomplete/Styles.js.map +1 -1
- package/dist/cjs/components/ScrollShadow/ScrollShadow.js.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/esm/components/Autocomplete/Autocomplete.js +4 -7
- package/dist/esm/components/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/esm/components/Autocomplete/Styles.d.ts +4 -0
- package/dist/esm/components/Autocomplete/Styles.d.ts.map +1 -1
- package/dist/esm/components/Autocomplete/Styles.js +13 -3
- package/dist/esm/components/Autocomplete/Styles.js.map +1 -1
- package/dist/esm/components/ScrollShadow/ScrollShadow.d.ts +1 -2
- package/dist/esm/components/ScrollShadow/ScrollShadow.d.ts.map +1 -1
- package/dist/esm/components/ScrollShadow/ScrollShadow.js.map +1 -1
- package/dist/index.js +214 -206
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3775,156 +3775,6 @@
|
|
|
3775
3775
|
});
|
|
3776
3776
|
RadioButton.displayName = "RadioButton";
|
|
3777
3777
|
|
|
3778
|
-
var StyledScrollShadow = styled__default["default"].div.withConfig({
|
|
3779
|
-
displayName: "Styles__StyledScrollShadow",
|
|
3780
|
-
componentId: "sc-17pcaqo-0"
|
|
3781
|
-
})(["", ""], {
|
|
3782
|
-
"position": "relative"
|
|
3783
|
-
});
|
|
3784
|
-
var StyledScrollShadowTop = styled__default["default"].div.withConfig({
|
|
3785
|
-
displayName: "Styles__StyledScrollShadowTop",
|
|
3786
|
-
componentId: "sc-17pcaqo-1"
|
|
3787
|
-
})(["", " background-image:linear-gradient( to top,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3788
|
-
"position": "absolute",
|
|
3789
|
-
"top": "0px",
|
|
3790
|
-
"left": "0px",
|
|
3791
|
-
"right": "0px",
|
|
3792
|
-
"height": "0.5rem"
|
|
3793
|
-
});
|
|
3794
|
-
var StyledScrollShadowBottom = styled__default["default"].div.withConfig({
|
|
3795
|
-
displayName: "Styles__StyledScrollShadowBottom",
|
|
3796
|
-
componentId: "sc-17pcaqo-2"
|
|
3797
|
-
})(["", " background-image:linear-gradient( to top,var(--page-paper-main),var(--page-paper-main-shadow) );"], {
|
|
3798
|
-
"position": "absolute",
|
|
3799
|
-
"bottom": "0px",
|
|
3800
|
-
"left": "0px",
|
|
3801
|
-
"right": "0px",
|
|
3802
|
-
"height": "0.5rem"
|
|
3803
|
-
});
|
|
3804
|
-
var StyledScrollShadowLeft = styled__default["default"].div.withConfig({
|
|
3805
|
-
displayName: "Styles__StyledScrollShadowLeft",
|
|
3806
|
-
componentId: "sc-17pcaqo-3"
|
|
3807
|
-
})(["", " background-image:linear-gradient( to left,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3808
|
-
"position": "absolute",
|
|
3809
|
-
"left": "0px",
|
|
3810
|
-
"top": "0px",
|
|
3811
|
-
"bottom": "0px",
|
|
3812
|
-
"width": "0.5rem"
|
|
3813
|
-
});
|
|
3814
|
-
var StyledScrollShadowRight = styled__default["default"].div.withConfig({
|
|
3815
|
-
displayName: "Styles__StyledScrollShadowRight",
|
|
3816
|
-
componentId: "sc-17pcaqo-4"
|
|
3817
|
-
})(["", " background-image:linear-gradient( to right,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3818
|
-
"position": "absolute",
|
|
3819
|
-
"right": "0px",
|
|
3820
|
-
"top": "0px",
|
|
3821
|
-
"bottom": "0px",
|
|
3822
|
-
"width": "0.5rem"
|
|
3823
|
-
});
|
|
3824
|
-
StyledScrollShadow.displayName = "StyledScrollShadow";
|
|
3825
|
-
StyledScrollShadowTop.displayName = "StyledScrollShadowTop";
|
|
3826
|
-
StyledScrollShadowBottom.displayName = "StyledScrollShadowBottom";
|
|
3827
|
-
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
3828
|
-
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
3829
|
-
|
|
3830
|
-
var _excluded$o = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical"];
|
|
3831
|
-
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3832
|
-
var children = _ref.children,
|
|
3833
|
-
className = _ref.className,
|
|
3834
|
-
_ref$disableVertical = _ref.disableVertical,
|
|
3835
|
-
disableVertical = _ref$disableVertical === void 0 ? false : _ref$disableVertical,
|
|
3836
|
-
_ref$disableHorizonta = _ref.disableHorizontal,
|
|
3837
|
-
disableHorizontal = _ref$disableHorizonta === void 0 ? false : _ref$disableHorizonta,
|
|
3838
|
-
_ref$invertHorizontal = _ref.invertHorizontal,
|
|
3839
|
-
invertHorizontal = _ref$invertHorizontal === void 0 ? false : _ref$invertHorizontal,
|
|
3840
|
-
_ref$invertVertical = _ref.invertVertical,
|
|
3841
|
-
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
3842
|
-
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
3843
|
-
|
|
3844
|
-
var _useState = React.useState({
|
|
3845
|
-
top: 0,
|
|
3846
|
-
right: 0,
|
|
3847
|
-
bottom: 0,
|
|
3848
|
-
left: 0
|
|
3849
|
-
}),
|
|
3850
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3851
|
-
opacity = _useState2[0],
|
|
3852
|
-
setOpacity = _useState2[1];
|
|
3853
|
-
|
|
3854
|
-
var handleScroll = React.useCallback(function (event) {
|
|
3855
|
-
var _ref2 = event.target,
|
|
3856
|
-
scrollHeight = _ref2.scrollHeight,
|
|
3857
|
-
clientHeight = _ref2.clientHeight,
|
|
3858
|
-
scrollWidth = _ref2.scrollWidth,
|
|
3859
|
-
clientWidth = _ref2.clientWidth;
|
|
3860
|
-
var _ref3 = event.target,
|
|
3861
|
-
scrollTop = _ref3.scrollTop,
|
|
3862
|
-
scrollLeft = _ref3.scrollLeft;
|
|
3863
|
-
|
|
3864
|
-
if (scrollLeft < 0) {
|
|
3865
|
-
scrollLeft *= -1;
|
|
3866
|
-
}
|
|
3867
|
-
|
|
3868
|
-
if (scrollTop < 0) {
|
|
3869
|
-
scrollTop *= -1;
|
|
3870
|
-
}
|
|
3871
|
-
|
|
3872
|
-
setOpacity(function (prevState) {
|
|
3873
|
-
var top = 1 / 20 * Math.min(scrollTop, 20);
|
|
3874
|
-
var bottomScrollTop = scrollHeight - clientHeight;
|
|
3875
|
-
var bottom = 1 / 20 * (bottomScrollTop - Math.max(scrollTop, bottomScrollTop - 20));
|
|
3876
|
-
var left = 1 / 20 * Math.min(scrollLeft, 20);
|
|
3877
|
-
var offset = scrollWidth - clientWidth;
|
|
3878
|
-
var right = 1 / 20 * (offset - Math.max(scrollLeft, offset - 20));
|
|
3879
|
-
var newState = {
|
|
3880
|
-
top: 0,
|
|
3881
|
-
bottom: 0,
|
|
3882
|
-
left: 0,
|
|
3883
|
-
right: 0
|
|
3884
|
-
};
|
|
3885
|
-
|
|
3886
|
-
if (!disableVertical) {
|
|
3887
|
-
newState.top = invertVertical ? bottom : top;
|
|
3888
|
-
newState.bottom = invertVertical ? top : bottom;
|
|
3889
|
-
}
|
|
3890
|
-
|
|
3891
|
-
if (!disableHorizontal) {
|
|
3892
|
-
newState.left = invertHorizontal ? right : left;
|
|
3893
|
-
newState.right = invertHorizontal ? left : right;
|
|
3894
|
-
}
|
|
3895
|
-
|
|
3896
|
-
if (newState.top !== prevState.top || newState.bottom !== prevState.bottom || newState.left !== prevState.left || newState.right !== prevState.right) {
|
|
3897
|
-
return newState;
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
return prevState;
|
|
3901
|
-
});
|
|
3902
|
-
}, [invertHorizontal, invertVertical, disableVertical, disableHorizontal]);
|
|
3903
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledScrollShadow, _extends({}, rest, {
|
|
3904
|
-
ref: ref,
|
|
3905
|
-
className: classnames__default["default"]("c-scroll-shadow", className)
|
|
3906
|
-
}), children({
|
|
3907
|
-
onScroll: handleScroll
|
|
3908
|
-
}), !disableVertical ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowTop, {
|
|
3909
|
-
style: {
|
|
3910
|
-
opacity: opacity.top
|
|
3911
|
-
}
|
|
3912
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowBottom, {
|
|
3913
|
-
style: {
|
|
3914
|
-
opacity: opacity.bottom
|
|
3915
|
-
}
|
|
3916
|
-
})) : null, !disableHorizontal ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowLeft, {
|
|
3917
|
-
style: {
|
|
3918
|
-
opacity: opacity.left
|
|
3919
|
-
}
|
|
3920
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowRight, {
|
|
3921
|
-
style: {
|
|
3922
|
-
opacity: opacity.right
|
|
3923
|
-
}
|
|
3924
|
-
})) : null);
|
|
3925
|
-
});
|
|
3926
|
-
ScrollShadow.displayName = "ScrollShadow";
|
|
3927
|
-
|
|
3928
3778
|
var StyledHiglightedText = styled__default["default"].span.withConfig({
|
|
3929
3779
|
displayName: "useHighlightText__StyledHiglightedText",
|
|
3930
3780
|
componentId: "sc-13agf6o-0"
|
|
@@ -4101,14 +3951,208 @@
|
|
|
4101
3951
|
};
|
|
4102
3952
|
OptionGroup.displayName = "OptionGroup";
|
|
4103
3953
|
|
|
3954
|
+
var StyledScrollShadow = styled__default["default"].div.withConfig({
|
|
3955
|
+
displayName: "Styles__StyledScrollShadow",
|
|
3956
|
+
componentId: "sc-17pcaqo-0"
|
|
3957
|
+
})(["", ""], {
|
|
3958
|
+
"position": "relative"
|
|
3959
|
+
});
|
|
3960
|
+
var StyledScrollShadowTop = styled__default["default"].div.withConfig({
|
|
3961
|
+
displayName: "Styles__StyledScrollShadowTop",
|
|
3962
|
+
componentId: "sc-17pcaqo-1"
|
|
3963
|
+
})(["", " background-image:linear-gradient( to top,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3964
|
+
"position": "absolute",
|
|
3965
|
+
"top": "0px",
|
|
3966
|
+
"left": "0px",
|
|
3967
|
+
"right": "0px",
|
|
3968
|
+
"height": "0.5rem"
|
|
3969
|
+
});
|
|
3970
|
+
var StyledScrollShadowBottom = styled__default["default"].div.withConfig({
|
|
3971
|
+
displayName: "Styles__StyledScrollShadowBottom",
|
|
3972
|
+
componentId: "sc-17pcaqo-2"
|
|
3973
|
+
})(["", " background-image:linear-gradient( to top,var(--page-paper-main),var(--page-paper-main-shadow) );"], {
|
|
3974
|
+
"position": "absolute",
|
|
3975
|
+
"bottom": "0px",
|
|
3976
|
+
"left": "0px",
|
|
3977
|
+
"right": "0px",
|
|
3978
|
+
"height": "0.5rem"
|
|
3979
|
+
});
|
|
3980
|
+
var StyledScrollShadowLeft = styled__default["default"].div.withConfig({
|
|
3981
|
+
displayName: "Styles__StyledScrollShadowLeft",
|
|
3982
|
+
componentId: "sc-17pcaqo-3"
|
|
3983
|
+
})(["", " background-image:linear-gradient( to left,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3984
|
+
"position": "absolute",
|
|
3985
|
+
"left": "0px",
|
|
3986
|
+
"top": "0px",
|
|
3987
|
+
"bottom": "0px",
|
|
3988
|
+
"width": "0.5rem"
|
|
3989
|
+
});
|
|
3990
|
+
var StyledScrollShadowRight = styled__default["default"].div.withConfig({
|
|
3991
|
+
displayName: "Styles__StyledScrollShadowRight",
|
|
3992
|
+
componentId: "sc-17pcaqo-4"
|
|
3993
|
+
})(["", " background-image:linear-gradient( to right,var(--page-paper-main-shadow),var(--page-paper-main) );"], {
|
|
3994
|
+
"position": "absolute",
|
|
3995
|
+
"right": "0px",
|
|
3996
|
+
"top": "0px",
|
|
3997
|
+
"bottom": "0px",
|
|
3998
|
+
"width": "0.5rem"
|
|
3999
|
+
});
|
|
4000
|
+
StyledScrollShadow.displayName = "StyledScrollShadow";
|
|
4001
|
+
StyledScrollShadowTop.displayName = "StyledScrollShadowTop";
|
|
4002
|
+
StyledScrollShadowBottom.displayName = "StyledScrollShadowBottom";
|
|
4003
|
+
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
4004
|
+
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
4005
|
+
|
|
4006
|
+
var _excluded$o = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical"];
|
|
4007
|
+
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4008
|
+
var children = _ref.children,
|
|
4009
|
+
className = _ref.className,
|
|
4010
|
+
_ref$disableVertical = _ref.disableVertical,
|
|
4011
|
+
disableVertical = _ref$disableVertical === void 0 ? false : _ref$disableVertical,
|
|
4012
|
+
_ref$disableHorizonta = _ref.disableHorizontal,
|
|
4013
|
+
disableHorizontal = _ref$disableHorizonta === void 0 ? false : _ref$disableHorizonta,
|
|
4014
|
+
_ref$invertHorizontal = _ref.invertHorizontal,
|
|
4015
|
+
invertHorizontal = _ref$invertHorizontal === void 0 ? false : _ref$invertHorizontal,
|
|
4016
|
+
_ref$invertVertical = _ref.invertVertical,
|
|
4017
|
+
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
4018
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
4019
|
+
|
|
4020
|
+
var _useState = React.useState({
|
|
4021
|
+
top: 0,
|
|
4022
|
+
right: 0,
|
|
4023
|
+
bottom: 0,
|
|
4024
|
+
left: 0
|
|
4025
|
+
}),
|
|
4026
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
4027
|
+
opacity = _useState2[0],
|
|
4028
|
+
setOpacity = _useState2[1];
|
|
4029
|
+
|
|
4030
|
+
var handleScroll = React.useCallback(function (event) {
|
|
4031
|
+
var _ref2 = event.target,
|
|
4032
|
+
scrollHeight = _ref2.scrollHeight,
|
|
4033
|
+
clientHeight = _ref2.clientHeight,
|
|
4034
|
+
scrollWidth = _ref2.scrollWidth,
|
|
4035
|
+
clientWidth = _ref2.clientWidth;
|
|
4036
|
+
var _ref3 = event.target,
|
|
4037
|
+
scrollTop = _ref3.scrollTop,
|
|
4038
|
+
scrollLeft = _ref3.scrollLeft;
|
|
4039
|
+
|
|
4040
|
+
if (scrollLeft < 0) {
|
|
4041
|
+
scrollLeft *= -1;
|
|
4042
|
+
}
|
|
4043
|
+
|
|
4044
|
+
if (scrollTop < 0) {
|
|
4045
|
+
scrollTop *= -1;
|
|
4046
|
+
}
|
|
4047
|
+
|
|
4048
|
+
setOpacity(function (prevState) {
|
|
4049
|
+
var top = 1 / 20 * Math.min(scrollTop, 20);
|
|
4050
|
+
var bottomScrollTop = scrollHeight - clientHeight;
|
|
4051
|
+
var bottom = 1 / 20 * (bottomScrollTop - Math.max(scrollTop, bottomScrollTop - 20));
|
|
4052
|
+
var left = 1 / 20 * Math.min(scrollLeft, 20);
|
|
4053
|
+
var offset = scrollWidth - clientWidth;
|
|
4054
|
+
var right = 1 / 20 * (offset - Math.max(scrollLeft, offset - 20));
|
|
4055
|
+
var newState = {
|
|
4056
|
+
top: 0,
|
|
4057
|
+
bottom: 0,
|
|
4058
|
+
left: 0,
|
|
4059
|
+
right: 0
|
|
4060
|
+
};
|
|
4061
|
+
|
|
4062
|
+
if (!disableVertical) {
|
|
4063
|
+
newState.top = invertVertical ? bottom : top;
|
|
4064
|
+
newState.bottom = invertVertical ? top : bottom;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4067
|
+
if (!disableHorizontal) {
|
|
4068
|
+
newState.left = invertHorizontal ? right : left;
|
|
4069
|
+
newState.right = invertHorizontal ? left : right;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
if (newState.top !== prevState.top || newState.bottom !== prevState.bottom || newState.left !== prevState.left || newState.right !== prevState.right) {
|
|
4073
|
+
return newState;
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
return prevState;
|
|
4077
|
+
});
|
|
4078
|
+
}, [invertHorizontal, invertVertical, disableVertical, disableHorizontal]);
|
|
4079
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledScrollShadow, _extends({}, rest, {
|
|
4080
|
+
ref: ref,
|
|
4081
|
+
className: classnames__default["default"]("c-scroll-shadow", className)
|
|
4082
|
+
}), children({
|
|
4083
|
+
onScroll: handleScroll
|
|
4084
|
+
}), !disableVertical ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowTop, {
|
|
4085
|
+
style: {
|
|
4086
|
+
opacity: opacity.top
|
|
4087
|
+
}
|
|
4088
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowBottom, {
|
|
4089
|
+
style: {
|
|
4090
|
+
opacity: opacity.bottom
|
|
4091
|
+
}
|
|
4092
|
+
})) : null, !disableHorizontal ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowLeft, {
|
|
4093
|
+
style: {
|
|
4094
|
+
opacity: opacity.left
|
|
4095
|
+
}
|
|
4096
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledScrollShadowRight, {
|
|
4097
|
+
style: {
|
|
4098
|
+
opacity: opacity.right
|
|
4099
|
+
}
|
|
4100
|
+
})) : null);
|
|
4101
|
+
});
|
|
4102
|
+
ScrollShadow.displayName = "ScrollShadow";
|
|
4103
|
+
|
|
4104
|
+
var useInitScrollRef = function useInitScrollRef(element) {
|
|
4105
|
+
var invert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
4106
|
+
var ref = React.useRef(element);
|
|
4107
|
+
React.useEffect(function () {
|
|
4108
|
+
if (ref.current) {
|
|
4109
|
+
ref.current.scrollTop = invert ? -1 : 1;
|
|
4110
|
+
ref.current.scrollTop = 0;
|
|
4111
|
+
ref.current.scrollLeft = invert ? -1 : 1;
|
|
4112
|
+
ref.current.scrollLeft = 0;
|
|
4113
|
+
}
|
|
4114
|
+
}, [invert]);
|
|
4115
|
+
return ref;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
var _excluded$n = ["as", "className", "invert"];
|
|
4119
|
+
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4120
|
+
var _ref$as = _ref.as,
|
|
4121
|
+
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
4122
|
+
className = _ref.className,
|
|
4123
|
+
_ref$invert = _ref.invert,
|
|
4124
|
+
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
4125
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
4126
|
+
|
|
4127
|
+
var internalRef = useInitScrollRef(null, invert);
|
|
4128
|
+
var handleRef = useForkRef(internalRef, ref);
|
|
4129
|
+
|
|
4130
|
+
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
4131
|
+
ref: handleRef,
|
|
4132
|
+
className: classnames__default["default"]("c-scroll-element tw-overflow-auto", className)
|
|
4133
|
+
});
|
|
4134
|
+
|
|
4135
|
+
return /*#__PURE__*/React__default["default"].createElement(as, props);
|
|
4136
|
+
});
|
|
4137
|
+
ScrollElement.displayName = "ScrollElement";
|
|
4138
|
+
|
|
4139
|
+
var StyledAutocompleteScrollShadow = styled__default["default"](ScrollShadow).withConfig({
|
|
4140
|
+
displayName: "Styles__StyledAutocompleteScrollShadow",
|
|
4141
|
+
componentId: "sc-1bc1vz9-0"
|
|
4142
|
+
})(["margin-top:4px;", ""], function (props) {
|
|
4143
|
+
return props.$isHidden && styled.css(["", ";"], {
|
|
4144
|
+
"display": "none"
|
|
4145
|
+
});
|
|
4146
|
+
});
|
|
4147
|
+
StyledAutocompleteScrollShadow.displayName = "StyledAutocompleteScrollShadow";
|
|
4104
4148
|
var StyledAutocompleteBody = styled__default["default"].div.withConfig({
|
|
4105
4149
|
displayName: "Styles__StyledAutocompleteBody",
|
|
4106
|
-
componentId: "sc-1bc1vz9-
|
|
4150
|
+
componentId: "sc-1bc1vz9-1"
|
|
4107
4151
|
})(["max-height:340px;overflow:auto;margin-bottom:6px;"]);
|
|
4108
4152
|
StyledAutocompleteBody.displayName = "StyledAutocompleteBody";
|
|
4109
4153
|
var StyledAutocompleteNoResult = styled__default["default"].div.withConfig({
|
|
4110
4154
|
displayName: "Styles__StyledAutocompleteNoResult",
|
|
4111
|
-
componentId: "sc-1bc1vz9-
|
|
4155
|
+
componentId: "sc-1bc1vz9-2"
|
|
4112
4156
|
})(["", ";padding:6px 16px;margin:4px 0;&:hover{background-color:var(--color-theme-200);}color:var(--color-theme-600);"], {
|
|
4113
4157
|
"cursor": "pointer",
|
|
4114
4158
|
"userSelect": "none"
|
|
@@ -4116,7 +4160,7 @@
|
|
|
4116
4160
|
StyledAutocompleteNoResult.displayName = "StyledAutocompleteNoResult";
|
|
4117
4161
|
var StyledAutocompleteNewItem = styled__default["default"].label.withConfig({
|
|
4118
4162
|
displayName: "Styles__StyledAutocompleteNewItem",
|
|
4119
|
-
componentId: "sc-1bc1vz9-
|
|
4163
|
+
componentId: "sc-1bc1vz9-3"
|
|
4120
4164
|
})(["", ";padding:6px 16px;margin:4px 0;font-weight:normal;color:var(--color-primary);&:before{content:\"+ \";}", ""], {
|
|
4121
4165
|
"cursor": "pointer",
|
|
4122
4166
|
"userSelect": "none"
|
|
@@ -4457,10 +4501,9 @@
|
|
|
4457
4501
|
var renderNoResult = React.useMemo(function () {
|
|
4458
4502
|
return /*#__PURE__*/React__default["default"].createElement(StyledAutocompleteNoResult, null, noResultText);
|
|
4459
4503
|
}, [noResultText]);
|
|
4460
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
4461
|
-
className:
|
|
4462
|
-
|
|
4463
|
-
}, AutocompleteClassName)
|
|
4504
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledAutocompleteScrollShadow, {
|
|
4505
|
+
className: AutocompleteClassName,
|
|
4506
|
+
$isHidden: !defaultValue && !emptyValue && !noResultText && list.length < 1
|
|
4464
4507
|
}, function (_ref2) {
|
|
4465
4508
|
var onScroll = _ref2.onScroll;
|
|
4466
4509
|
return /*#__PURE__*/React__default["default"].createElement(StyledAutocompleteBody, {
|
|
@@ -4513,7 +4556,7 @@
|
|
|
4513
4556
|
});
|
|
4514
4557
|
StyledInput.displayName = "StyledInput";
|
|
4515
4558
|
|
|
4516
|
-
var _excluded$
|
|
4559
|
+
var _excluded$m = ["className", "type", "disabled"];
|
|
4517
4560
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4518
4561
|
var _ref$className = _ref.className,
|
|
4519
4562
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -4521,7 +4564,7 @@
|
|
|
4521
4564
|
type = _ref$type === void 0 ? "text" : _ref$type,
|
|
4522
4565
|
_ref$disabled = _ref.disabled,
|
|
4523
4566
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
4524
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4567
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
4525
4568
|
|
|
4526
4569
|
return /*#__PURE__*/React__default["default"].createElement(StyledInput, _extends({
|
|
4527
4570
|
ref: ref,
|
|
@@ -4580,7 +4623,7 @@
|
|
|
4580
4623
|
};
|
|
4581
4624
|
OptionContent.displayName = "OptionContent";
|
|
4582
4625
|
|
|
4583
|
-
var _excluded$
|
|
4626
|
+
var _excluded$l = ["type", "mode", "target", "options", "selected", "position", "onChange", "actionIcon", "actionLabel", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose"];
|
|
4584
4627
|
var Select = function Select(_ref) {
|
|
4585
4628
|
var _ref$type = _ref.type,
|
|
4586
4629
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -4610,7 +4653,7 @@
|
|
|
4610
4653
|
keepSameOptionsOrder = _ref$keepSameOptionsO === void 0 ? false : _ref$keepSameOptionsO,
|
|
4611
4654
|
onSelectOpen = _ref.onSelectOpen,
|
|
4612
4655
|
onSelectClose = _ref.onSelectClose,
|
|
4613
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
4656
|
+
prop = _objectWithoutProperties(_ref, _excluded$l);
|
|
4614
4657
|
|
|
4615
4658
|
var _useState = React.useState(),
|
|
4616
4659
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -4885,7 +4928,7 @@
|
|
|
4885
4928
|
});
|
|
4886
4929
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
4887
4930
|
|
|
4888
|
-
var _excluded$
|
|
4931
|
+
var _excluded$k = ["children", "active", "disabled", "className", "role"];
|
|
4889
4932
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
4890
4933
|
var children = _ref.children,
|
|
4891
4934
|
_ref$active = _ref.active,
|
|
@@ -4894,7 +4937,7 @@
|
|
|
4894
4937
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
4895
4938
|
className = _ref.className,
|
|
4896
4939
|
role = _ref.role,
|
|
4897
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4940
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
4898
4941
|
|
|
4899
4942
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
4900
4943
|
className: classnames__default["default"]("c-nav__item", {
|
|
@@ -4936,11 +4979,11 @@
|
|
|
4936
4979
|
});
|
|
4937
4980
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
4938
4981
|
|
|
4939
|
-
var _excluded$
|
|
4982
|
+
var _excluded$j = ["expanded"];
|
|
4940
4983
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4941
4984
|
var _ref$expanded = _ref.expanded,
|
|
4942
4985
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
4943
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
4986
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
4944
4987
|
|
|
4945
4988
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
4946
4989
|
ref: ref,
|
|
@@ -5253,11 +5296,11 @@
|
|
|
5253
5296
|
};
|
|
5254
5297
|
Nav.displayName = "Nav";
|
|
5255
5298
|
|
|
5256
|
-
var _excluded$
|
|
5299
|
+
var _excluded$i = ["expanded"];
|
|
5257
5300
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5258
5301
|
var _ref$expanded = _ref.expanded,
|
|
5259
5302
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
5260
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5303
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
5261
5304
|
|
|
5262
5305
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
5263
5306
|
ref: ref,
|
|
@@ -5302,11 +5345,11 @@
|
|
|
5302
5345
|
})(["border-top:1px solid var(--border-primary);margin:12px 16px;height:1px;"]);
|
|
5303
5346
|
StyledListSeparator.displayName = "StyledListSeparator";
|
|
5304
5347
|
|
|
5305
|
-
var _excluded$
|
|
5348
|
+
var _excluded$h = ["children", "className"];
|
|
5306
5349
|
var List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5307
5350
|
var children = _ref.children,
|
|
5308
5351
|
className = _ref.className,
|
|
5309
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5352
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
5310
5353
|
|
|
5311
5354
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({}, props, {
|
|
5312
5355
|
className: className,
|
|
@@ -5315,11 +5358,11 @@
|
|
|
5315
5358
|
});
|
|
5316
5359
|
List.displayName = "List";
|
|
5317
5360
|
|
|
5318
|
-
var _excluded$
|
|
5361
|
+
var _excluded$g = ["children", "className"];
|
|
5319
5362
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5320
5363
|
var children = _ref.children,
|
|
5321
5364
|
className = _ref.className,
|
|
5322
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5365
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
5323
5366
|
|
|
5324
5367
|
return /*#__PURE__*/React__default["default"].createElement(StyledListItem, _extends({}, props, {
|
|
5325
5368
|
className: classnames__default["default"]("c-list-item", className),
|
|
@@ -5529,41 +5572,6 @@
|
|
|
5529
5572
|
};
|
|
5530
5573
|
MultiAvatar.displayName = "MultiAvatar";
|
|
5531
5574
|
|
|
5532
|
-
var useInitScrollRef = function useInitScrollRef(element) {
|
|
5533
|
-
var invert = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
5534
|
-
var ref = React.useRef(element);
|
|
5535
|
-
React.useEffect(function () {
|
|
5536
|
-
if (ref.current) {
|
|
5537
|
-
ref.current.scrollTop = invert ? -1 : 1;
|
|
5538
|
-
ref.current.scrollTop = 0;
|
|
5539
|
-
ref.current.scrollLeft = invert ? -1 : 1;
|
|
5540
|
-
ref.current.scrollLeft = 0;
|
|
5541
|
-
}
|
|
5542
|
-
}, [invert]);
|
|
5543
|
-
return ref;
|
|
5544
|
-
};
|
|
5545
|
-
|
|
5546
|
-
var _excluded$g = ["as", "className", "invert"];
|
|
5547
|
-
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5548
|
-
var _ref$as = _ref.as,
|
|
5549
|
-
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
5550
|
-
className = _ref.className,
|
|
5551
|
-
_ref$invert = _ref.invert,
|
|
5552
|
-
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
5553
|
-
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
5554
|
-
|
|
5555
|
-
var internalRef = useInitScrollRef(null, invert);
|
|
5556
|
-
var handleRef = useForkRef(internalRef, ref);
|
|
5557
|
-
|
|
5558
|
-
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
5559
|
-
ref: handleRef,
|
|
5560
|
-
className: classnames__default["default"]("c-scroll-element tw-overflow-auto", className)
|
|
5561
|
-
});
|
|
5562
|
-
|
|
5563
|
-
return /*#__PURE__*/React__default["default"].createElement(as, props);
|
|
5564
|
-
});
|
|
5565
|
-
ScrollElement.displayName = "ScrollElement";
|
|
5566
|
-
|
|
5567
5575
|
var ActivityIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
5568
5576
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
5569
5577
|
width: 24,
|