@carto/meridian-ds 2.6.1-alpha-searchfield.7 → 2.6.1-alpha-searchfield.9
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.
|
@@ -5066,6 +5066,10 @@ const SearchInputAdornment = material.styled(material.InputAdornment, {
|
|
|
5066
5066
|
})(
|
|
5067
5067
|
({ theme, minimized, expanded }) => ({
|
|
5068
5068
|
// Start adornment
|
|
5069
|
+
transition: theme.transitions.create(["width", "margin"], {
|
|
5070
|
+
easing: theme.transitions.easing.easeInOut,
|
|
5071
|
+
duration: theme.transitions.duration.short
|
|
5072
|
+
}),
|
|
5069
5073
|
"&.MuiInputAdornment-positionStart": {
|
|
5070
5074
|
marginLeft: minimized ? theme.spacing(1) : void 0
|
|
5071
5075
|
},
|
|
@@ -5091,9 +5095,9 @@ const SearchFieldBase = material.styled(material.TextField, {
|
|
|
5091
5095
|
})(({ theme, emphasis = "filled", minimized, isInputFocused }) => ({
|
|
5092
5096
|
"&.MuiTextField-root .MuiInputBase-root": {
|
|
5093
5097
|
paddingRight: theme.spacing(1),
|
|
5094
|
-
transition: theme.transitions.create("width", {
|
|
5098
|
+
transition: theme.transitions.create(["width", "padding"], {
|
|
5095
5099
|
easing: theme.transitions.easing.easeInOut,
|
|
5096
|
-
duration: theme.transitions.duration.
|
|
5100
|
+
duration: theme.transitions.duration.standard
|
|
5097
5101
|
}),
|
|
5098
5102
|
"&.MuiInputBase-sizeSmall": {
|
|
5099
5103
|
paddingRight: theme.spacing(0.5)
|
|
@@ -5106,8 +5110,12 @@ const SearchFieldBase = material.styled(material.TextField, {
|
|
|
5106
5110
|
},
|
|
5107
5111
|
// Input
|
|
5108
5112
|
"& .MuiInputBase-input": {
|
|
5109
|
-
pointerEvents: isInputFocused ? "auto" : "none"
|
|
5113
|
+
pointerEvents: isInputFocused ? "auto" : "none",
|
|
5110
5114
|
// Fix Chrome scroll issue https://issues.chromium.org/issues/41245282
|
|
5115
|
+
transition: theme.transitions.create("width", {
|
|
5116
|
+
easing: theme.transitions.easing.easeInOut,
|
|
5117
|
+
duration: theme.transitions.duration.standard
|
|
5118
|
+
})
|
|
5111
5119
|
},
|
|
5112
5120
|
// Error state
|
|
5113
5121
|
"&.Mui-error": {
|
|
@@ -5118,14 +5126,14 @@ const SearchFieldBase = material.styled(material.TextField, {
|
|
|
5118
5126
|
...minimized && {
|
|
5119
5127
|
display: "flex",
|
|
5120
5128
|
alignItems: "center",
|
|
5121
|
-
justifyContent: "center",
|
|
5122
5129
|
padding: 0,
|
|
5123
5130
|
width: theme.spacing(6),
|
|
5124
5131
|
cursor: "pointer",
|
|
5125
5132
|
"& .MuiInputBase-input": {
|
|
5126
|
-
|
|
5133
|
+
width: 0
|
|
5127
5134
|
},
|
|
5128
5135
|
"&.MuiInputBase-sizeSmall": {
|
|
5136
|
+
padding: 0,
|
|
5129
5137
|
width: theme.spacing(4)
|
|
5130
5138
|
}
|
|
5131
5139
|
}
|
|
@@ -5133,6 +5141,10 @@ const SearchFieldBase = material.styled(material.TextField, {
|
|
|
5133
5141
|
// Variants
|
|
5134
5142
|
...emphasis === "filled" && {
|
|
5135
5143
|
"& .MuiInputBase-root": {
|
|
5144
|
+
backgroundColor: minimized ? "transparent !important" : void 0,
|
|
5145
|
+
"&:hover": {
|
|
5146
|
+
backgroundColor: `${theme.palette.action.hover} !important`
|
|
5147
|
+
},
|
|
5136
5148
|
// not disabled
|
|
5137
5149
|
"&:not(.Mui-disabled):hover": {
|
|
5138
5150
|
backgroundColor: `${theme.palette.action.hover} !important`
|
|
@@ -5261,8 +5273,8 @@ function _SearchField({
|
|
|
5261
5273
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5262
5274
|
SearchFieldBase,
|
|
5263
5275
|
{
|
|
5264
|
-
value: minimized ? "" : value,
|
|
5265
5276
|
defaultValue,
|
|
5277
|
+
value: minimized ? "" : value,
|
|
5266
5278
|
placeholder: minimized ? "" : placeholder,
|
|
5267
5279
|
onChange,
|
|
5268
5280
|
onClick,
|
package/dist/components/index.js
CHANGED
|
@@ -5066,6 +5066,10 @@ const SearchInputAdornment = styled(InputAdornment, {
|
|
|
5066
5066
|
})(
|
|
5067
5067
|
({ theme, minimized, expanded }) => ({
|
|
5068
5068
|
// Start adornment
|
|
5069
|
+
transition: theme.transitions.create(["width", "margin"], {
|
|
5070
|
+
easing: theme.transitions.easing.easeInOut,
|
|
5071
|
+
duration: theme.transitions.duration.short
|
|
5072
|
+
}),
|
|
5069
5073
|
"&.MuiInputAdornment-positionStart": {
|
|
5070
5074
|
marginLeft: minimized ? theme.spacing(1) : void 0
|
|
5071
5075
|
},
|
|
@@ -5091,9 +5095,9 @@ const SearchFieldBase = styled(TextField, {
|
|
|
5091
5095
|
})(({ theme, emphasis = "filled", minimized, isInputFocused }) => ({
|
|
5092
5096
|
"&.MuiTextField-root .MuiInputBase-root": {
|
|
5093
5097
|
paddingRight: theme.spacing(1),
|
|
5094
|
-
transition: theme.transitions.create("width", {
|
|
5098
|
+
transition: theme.transitions.create(["width", "padding"], {
|
|
5095
5099
|
easing: theme.transitions.easing.easeInOut,
|
|
5096
|
-
duration: theme.transitions.duration.
|
|
5100
|
+
duration: theme.transitions.duration.standard
|
|
5097
5101
|
}),
|
|
5098
5102
|
"&.MuiInputBase-sizeSmall": {
|
|
5099
5103
|
paddingRight: theme.spacing(0.5)
|
|
@@ -5106,8 +5110,12 @@ const SearchFieldBase = styled(TextField, {
|
|
|
5106
5110
|
},
|
|
5107
5111
|
// Input
|
|
5108
5112
|
"& .MuiInputBase-input": {
|
|
5109
|
-
pointerEvents: isInputFocused ? "auto" : "none"
|
|
5113
|
+
pointerEvents: isInputFocused ? "auto" : "none",
|
|
5110
5114
|
// Fix Chrome scroll issue https://issues.chromium.org/issues/41245282
|
|
5115
|
+
transition: theme.transitions.create("width", {
|
|
5116
|
+
easing: theme.transitions.easing.easeInOut,
|
|
5117
|
+
duration: theme.transitions.duration.standard
|
|
5118
|
+
})
|
|
5111
5119
|
},
|
|
5112
5120
|
// Error state
|
|
5113
5121
|
"&.Mui-error": {
|
|
@@ -5118,14 +5126,14 @@ const SearchFieldBase = styled(TextField, {
|
|
|
5118
5126
|
...minimized && {
|
|
5119
5127
|
display: "flex",
|
|
5120
5128
|
alignItems: "center",
|
|
5121
|
-
justifyContent: "center",
|
|
5122
5129
|
padding: 0,
|
|
5123
5130
|
width: theme.spacing(6),
|
|
5124
5131
|
cursor: "pointer",
|
|
5125
5132
|
"& .MuiInputBase-input": {
|
|
5126
|
-
|
|
5133
|
+
width: 0
|
|
5127
5134
|
},
|
|
5128
5135
|
"&.MuiInputBase-sizeSmall": {
|
|
5136
|
+
padding: 0,
|
|
5129
5137
|
width: theme.spacing(4)
|
|
5130
5138
|
}
|
|
5131
5139
|
}
|
|
@@ -5133,6 +5141,10 @@ const SearchFieldBase = styled(TextField, {
|
|
|
5133
5141
|
// Variants
|
|
5134
5142
|
...emphasis === "filled" && {
|
|
5135
5143
|
"& .MuiInputBase-root": {
|
|
5144
|
+
backgroundColor: minimized ? "transparent !important" : void 0,
|
|
5145
|
+
"&:hover": {
|
|
5146
|
+
backgroundColor: `${theme.palette.action.hover} !important`
|
|
5147
|
+
},
|
|
5136
5148
|
// not disabled
|
|
5137
5149
|
"&:not(.Mui-disabled):hover": {
|
|
5138
5150
|
backgroundColor: `${theme.palette.action.hover} !important`
|
|
@@ -5261,8 +5273,8 @@ function _SearchField({
|
|
|
5261
5273
|
return /* @__PURE__ */ jsx(
|
|
5262
5274
|
SearchFieldBase,
|
|
5263
5275
|
{
|
|
5264
|
-
value: minimized ? "" : value,
|
|
5265
5276
|
defaultValue,
|
|
5277
|
+
value: minimized ? "" : value,
|
|
5266
5278
|
placeholder: minimized ? "" : placeholder,
|
|
5267
5279
|
onChange,
|
|
5268
5280
|
onClick,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchField.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.stories.tsx"],"names":[],"mappings":"AAQA,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CuB,CAAA;AAEpC,eAAe,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"SearchField.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.stories.tsx"],"names":[],"mappings":"AAQA,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CuB,CAAA;AAEpC,eAAe,OAAO,CAAA;AAyYtB,eAAO,MAAM,UAAU;0BAvYkB,kBAAkB;;;;;;CA4Y1D,CAAA;AAED,eAAO,MAAM,QAAQ;uCApY+B,kBAAkB;CAsYrE,CAAA;AAED,eAAO,MAAM,MAAM;qDAvWhB,kBAAkB;;;;;;;;;;;;;;;;;CA2WpB,CAAA;AAED,eAAO,MAAM,KAAK;qDA7Wf,kBAAkB;;;;;;;;;;;;;;;;;CAiXpB,CAAA;AAED,eAAO,MAAM,QAAQ;uCA9H+B,kBAAkB;CAgIrE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchField.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.styled.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,UAAU;gBAEN,OAAO;eAAa,OAAO;UAY3C,CAAA;AAED,eAAO,MAAM,eAAe;;qPAEzB,CAAA;AAEH,eAAO,MAAM,iBAAiB,8KAI3B,CAAA;AAEH,eAAO,MAAM,oBAAoB;;;gBAEhB,OAAO;eAAa,OAAO;
|
|
1
|
+
{"version":3,"file":"SearchField.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchField/SearchField.styled.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,UAAU;gBAEN,OAAO;eAAa,OAAO;UAY3C,CAAA;AAED,eAAO,MAAM,eAAe;;qPAEzB,CAAA;AAEH,eAAO,MAAM,iBAAiB,8KAI3B,CAAA;AAEH,eAAO,MAAM,oBAAoB;;;gBAEhB,OAAO;eAAa,OAAO;UAgC3C,CAAA;AAED,eAAO,MAAM,eAAe;;;eAIf,OAAO;qBACD,OAAO;eACb,gBAAgB,CAAC,SAAS,CAAC;UAuGrC,CAAA"}
|