@evergis/uilib-gl 1.0.37 → 1.0.38

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,5 +1,6 @@
1
1
  /// <reference types="react" />
2
- export declare const LegendToggler: import("styled-components").StyledComponent<import("react").FC<import("../../molecules/IconButton").IIconButtonProps>, import("styled-components").DefaultTheme, {
2
+ import { IIconButtonProps } from "../../molecules/IconButton";
3
+ export declare const LegendToggler: import("styled-components").StyledComponent<import("react").FC<IIconButtonProps>, import("styled-components").DefaultTheme, {
3
4
  toggled?: boolean | undefined;
4
5
  color?: string | undefined;
5
6
  }, never>;
@@ -11582,7 +11582,11 @@ var IconButtonComponent = function IconButtonComponent(_ref) {
11582
11582
  var IconButton = /*#__PURE__*/memo(IconButtonComponent);
11583
11583
 
11584
11584
  var _templateObject$l;
11585
- var LegendToggler = /*#__PURE__*/styled(IconButton)(_templateObject$l || (_templateObject$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n width: 100%;\n height: auto;\n cursor: pointer;\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n\n &:hover,\n &:active {\n ", ", ", " + span {\n color: ", ";\n transform: scale(1);\n }\n }\n\n ", " + span {\n line-height: 0;\n font: ", ";\n color: ", ";\n margin: 0 0.25rem 0 0;\n }\n\n ", ", ", " + span {\n align-items: center;\n color: ", ";\n display: flex;\n text-align: left;\n\n &:after {\n margin-left: 2px;\n position: static;\n transform: ", ";\n transition: transform 289ms ", ";\n }\n }\n"])), Icon, Icon, function (_ref) {
11585
+ var LegendToggler = /*#__PURE__*/styled(IconButton).attrs(function (props) {
11586
+ return _extends({
11587
+ kind: "expand"
11588
+ }, props);
11589
+ })(_templateObject$l || (_templateObject$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0;\n width: 100%;\n height: auto;\n cursor: pointer;\n display: flex;\n flex-direction: row-reverse;\n justify-content: flex-end;\n\n &:hover,\n &:active {\n ", ", ", " + span {\n color: ", ";\n transform: scale(1);\n }\n }\n\n ", " + span {\n line-height: 0;\n font: ", ";\n color: ", ";\n margin: 0 0.25rem 0 0;\n }\n\n ", ", ", " + span {\n align-items: center;\n color: ", ";\n display: flex;\n text-align: left;\n\n &:after {\n margin-left: 2px;\n position: static;\n transform: ", ";\n transition: transform 289ms ", ";\n }\n }\n"])), Icon, Icon, function (_ref) {
11586
11590
  var palette = _ref.theme.palette,
11587
11591
  color = _ref.color;
11588
11592
  return color || palette.primary;
@@ -11601,9 +11605,6 @@ var LegendToggler = /*#__PURE__*/styled(IconButton)(_templateObject$l || (_templ
11601
11605
  var toggled = _ref5.toggled;
11602
11606
  return "rotate(" + (toggled ? 180 : 0) + "deg)";
11603
11607
  }, transition.upDown);
11604
- LegendToggler.defaultProps = {
11605
- kind: "expand"
11606
- };
11607
11608
 
11608
11609
  var _templateObject$m;
11609
11610
  var Input = /*#__PURE__*/styled.input.attrs(function () {
@@ -19135,12 +19136,19 @@ var CalendarComponent = function CalendarComponent(props) {
19135
19136
 
19136
19137
  var Calendar = /*#__PURE__*/memo(CalendarComponent);
19137
19138
 
19138
- var DatePickerComponent = function DatePickerComponent(props) {
19139
+ var DATE_PICKER_DEFAULTS = {
19140
+ locale: Locale,
19141
+ withTime: false,
19142
+ withHeader: true
19143
+ }; // eslint-disable-next-line max-lines-per-function
19144
+
19145
+ var DatePickerComponent = function DatePickerComponent(inputProps) {
19139
19146
  var _useState = useState(false),
19140
19147
  calendarIsOpen = _useState[0],
19141
19148
  setCalendarIsOpen = _useState[1];
19142
19149
 
19143
19150
  var input = useRef(null);
19151
+ var props = defaults(inputProps, DATE_PICKER_DEFAULTS);
19144
19152
  var withTime = props.withTime,
19145
19153
  value = props.value,
19146
19154
  disabled = props.disabled,
@@ -19253,11 +19261,6 @@ var DatePickerComponent = function DatePickerComponent(props) {
19253
19261
  })));
19254
19262
  };
19255
19263
 
19256
- DatePickerComponent.defaultProps = {
19257
- locale: Locale,
19258
- withTime: false,
19259
- withHeader: true
19260
- };
19261
19264
  var DatePicker = /*#__PURE__*/memo(DatePickerComponent);
19262
19265
 
19263
19266
  var _templateObject$1r, _templateObject2$N;