armtek-uikit-react 1.0.26 → 1.0.27

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.
@@ -109,7 +109,9 @@ $box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
109
109
  --box-shadow: 0px 8px 10px 0px rgba(0, 0, 0, 0.1);
110
110
  }
111
111
 
112
-
112
+ .react-datepicker-popper{
113
+ z-index: 6;
114
+ }
113
115
 
114
116
 
115
117
  @mixin transition($time: 0.5s, $target: all, $animation: ease) {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.26","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.27","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -2,6 +2,7 @@
2
2
 
3
3
  import TextField from "../TextField/TextField";
4
4
  import { forwardRef, useState } from 'react';
5
+ import Card from "../../Card/Card";
5
6
  import DatePicker from "../DatePicker/DatePicker";
6
7
  import ButtonIcon from "../../ButtonIcon";
7
8
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -33,6 +34,7 @@ const DateField = /*#__PURE__*/forwardRef((props, ref) => {
33
34
  onInput,
34
35
  showTime,
35
36
  showTimeOnly,
37
+ disabled,
36
38
  ...restProps
37
39
  } = props;
38
40
  let [date, setDate] = useState(null);
@@ -54,12 +56,18 @@ const DateField = /*#__PURE__*/forwardRef((props, ref) => {
54
56
  ref: ref,
55
57
  ...restProps
56
58
  }),
57
- inline: false
58
- // calendarContainer={Card}
59
- ,
59
+ inline: false,
60
+ disabled: disabled,
61
+ calendarContainer: PickerCard,
60
62
  popperPlacement: "top-end",
61
63
  dateFormat: format
62
64
  })
63
65
  });
64
66
  });
67
+ const PickerCard = props => {
68
+ return /*#__PURE__*/_jsx(Card, {
69
+ className: props.className,
70
+ children: props.children
71
+ });
72
+ };
65
73
  export default DateField;