@crystaldesign/searchfield 26.6.0 → 26.7.0-beta.10
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/build/esm/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
import
|
|
3
|
-
import createStyles from '@mui/styles/createStyles';
|
|
2
|
+
import { styled } from '@mui/material/styles';
|
|
4
3
|
import SearchIcon from '@mui/icons-material/Search';
|
|
5
4
|
import Input from '@mui/material/Input';
|
|
6
5
|
import InputLabel from '@mui/material/InputLabel';
|
|
7
6
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
8
7
|
import FormControl from '@mui/material/FormControl';
|
|
9
|
-
import classnames from 'classnames';
|
|
10
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
11
9
|
|
|
12
10
|
(function() {
|
|
@@ -27,10 +25,9 @@ function SearchField(_ref) {
|
|
|
27
25
|
placeholder = _ref.placeholder,
|
|
28
26
|
label = _ref.label,
|
|
29
27
|
autoFocus = _ref.autoFocus;
|
|
30
|
-
|
|
31
|
-
return /*#__PURE__*/jsxs(FormControl, {
|
|
28
|
+
return /*#__PURE__*/jsxs(StyledFormControl, {
|
|
32
29
|
margin: "dense",
|
|
33
|
-
className:
|
|
30
|
+
className: "search-field",
|
|
34
31
|
children: [label && /*#__PURE__*/jsx(InputLabel, {
|
|
35
32
|
htmlFor: "search-input",
|
|
36
33
|
children: label
|
|
@@ -43,23 +40,23 @@ function SearchField(_ref) {
|
|
|
43
40
|
autoComplete: "off",
|
|
44
41
|
endAdornment: /*#__PURE__*/jsx(InputAdornment, {
|
|
45
42
|
position: "end",
|
|
46
|
-
children: /*#__PURE__*/jsx(
|
|
47
|
-
className: classes.icon
|
|
48
|
-
})
|
|
43
|
+
children: /*#__PURE__*/jsx(StyledSearchIcon, {})
|
|
49
44
|
})
|
|
50
45
|
})]
|
|
51
46
|
});
|
|
52
47
|
}
|
|
53
|
-
var
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
48
|
+
var StyledFormControl = styled(FormControl)(function (_ref2) {
|
|
49
|
+
var theme = _ref2.theme;
|
|
50
|
+
return {
|
|
51
|
+
marginLeft: theme.spacing(1),
|
|
52
|
+
marginRight: theme.spacing(1)
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
var StyledSearchIcon = styled(SearchIcon)(function (_ref3) {
|
|
56
|
+
var theme = _ref3.theme;
|
|
57
|
+
return {
|
|
58
|
+
color: theme.palette.grey.A700
|
|
59
|
+
};
|
|
63
60
|
});
|
|
64
61
|
|
|
65
62
|
export { SearchField as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,mBAAmB,GAAG,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACjF;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,qBAmBvG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/searchfield",
|
|
3
|
-
"version": "26.
|
|
3
|
+
"version": "26.7.0-beta.10",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"lodash": "^4.17.21"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "f1801f61d8499e919ab175006ec36bfab3a82dd6"
|
|
21
21
|
}
|