@fixefy/fixefy-ui-components 0.2.20 → 0.2.21

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.
@@ -27,5 +27,6 @@ export type AsyncDropdownPropsType = {
27
27
  query: string;
28
28
  isInitialOpen?: boolean;
29
29
  placeholder?: string;
30
+ rootStyle?: any;
30
31
  };
31
32
  export declare const FxAsyncDropdown: React.ForwardRefExoticComponent<Omit<AsyncDropdownPropsType, "ref"> & React.RefAttributes<unknown>>;
@@ -120,7 +120,7 @@ const checkedIcon = /*#__PURE__*/ (0, _jsxruntime.jsx)(_iconsmaterial.CheckBox,
120
120
  fontSize: "small"
121
121
  });
122
122
  const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
123
- const { onAdd, onRemoveOne, onRemoveAll, fetcher, disabled, type = 'text', variables, search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path } = props;
123
+ const { onAdd, onRemoveOne, onRemoveAll, fetcher, disabled, type = 'text', variables, search_path, modal_type, multiple, name, query, isInitialOpen, placeholder, title_path, rootStyle } = props;
124
124
  const ref = (0, _react.useRef)(null);
125
125
  const theme = (0, _material.useTheme)();
126
126
  const [displayed, setDisplayed] = (0, _react.useState)(multiple ? [] : '');
@@ -532,6 +532,7 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
532
532
  });
533
533
  };
534
534
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_dropdownstyles.Root, {
535
+ style: rootStyle,
535
536
  children: [
536
537
  /*#__PURE__*/ (0, _jsxruntime.jsxs)(_material.Box, {
537
538
  children: [
@@ -84,13 +84,20 @@ function _object_spread_props(target, source) {
84
84
  }
85
85
  return target;
86
86
  }
87
- const Root = (0, _styles.styled)('div')(()=>({
87
+ const Root = (0, _styles.styled)('div')(({ props })=>{
88
+ return _object_spread_props(_object_spread({}, props), {
88
89
  color: 'rgba(0,0,0,.85)',
89
90
  fontSize: 14,
90
91
  background: '#FFFFFF',
91
92
  padding: '0 16px',
92
- position: 'relative'
93
- }));
93
+ position: 'relative',
94
+ ' & .MuiBox-root': {
95
+ ['& > div']: {
96
+ padding: 0
97
+ }
98
+ }
99
+ });
100
+ });
94
101
  const Label = (0, _styles.styled)('label')(()=>({
95
102
  padding: '0 0 4px',
96
103
  lineHeight: '1.5',
package/package.json CHANGED
@@ -65,5 +65,5 @@
65
65
  "require": "./dist/index.js"
66
66
  }
67
67
  },
68
- "version": "0.2.20"
68
+ "version": "0.2.21"
69
69
  }