sag_components 1.0.144 → 1.0.145

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.
@@ -15,13 +15,43 @@ var _demo = require("@mui/x-date-pickers/internals/demo");
15
15
  * SAG Datepicker
16
16
  */
17
17
  var Datepicker = function Datepicker(_ref) {
18
- var _ref$width = _ref.width,
18
+ var shape = _ref.shape,
19
+ _ref$width = _ref.width,
19
20
  width = _ref$width === void 0 ? "100%" : _ref$width,
20
21
  text = _ref.text;
21
22
  /**
22
23
  * SAG Datepicker
23
24
  */
24
25
 
26
+ var getTextFieldStyle = function getTextFieldStyle() {
27
+ if (shape === "round") {
28
+ // round
29
+ return {
30
+ "& .MuiOutlinedInput-root": {
31
+ borderRadius: "12px",
32
+ legend: {
33
+ marginLeft: "6px"
34
+ }
35
+ },
36
+ "& .MuiAutocomplete-inputRoot": {
37
+ paddingLeft: "10px !important",
38
+ borderRadius: "12px"
39
+ },
40
+ "& .MuiInputLabel-outlined": {
41
+ paddingLeft: "10px"
42
+ },
43
+ "& .MuiInputLabel-shrink": {
44
+ marginLeft: "1px",
45
+ paddingLeft: "4px",
46
+ paddingRight: 0,
47
+ background: "white"
48
+ }
49
+ };
50
+ } else {
51
+ //square
52
+ return null;
53
+ }
54
+ };
25
55
  return /*#__PURE__*/_react.default.createElement(_DatepickerStyle.DatepickerContainer, {
26
56
  width: width
27
57
  }, /*#__PURE__*/_react.default.createElement(_LocalizationProvider.LocalizationProvider, {
@@ -29,6 +59,7 @@ var Datepicker = function Datepicker(_ref) {
29
59
  }, /*#__PURE__*/_react.default.createElement(_demo.DemoContainer, {
30
60
  components: ['DatePicker']
31
61
  }, /*#__PURE__*/_react.default.createElement(_DatePicker.DatePicker, {
62
+ sx: getTextFieldStyle(),
32
63
  label: text
33
64
  }))));
34
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.144",
3
+ "version": "1.0.145",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {