@ttoss/ui 1.31.8 → 1.31.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.
- package/dist/esm/index.js +6 -5
- package/dist/index.js +6 -5
- package/package.json +3 -3
- package/src/components/Input.tsx +3 -4
package/dist/esm/index.js
CHANGED
|
@@ -140,13 +140,15 @@ var Input = /*#__PURE__*/React4.forwardRef(({
|
|
|
140
140
|
}, ref) => {
|
|
141
141
|
return /* @__PURE__ */jsxs4(Flex, {
|
|
142
142
|
sx: {
|
|
143
|
-
position: "relative"
|
|
143
|
+
position: "relative",
|
|
144
|
+
width: "100%",
|
|
145
|
+
...sx
|
|
144
146
|
},
|
|
145
147
|
children: [leadingIcon && /* @__PURE__ */jsx5(Text, {
|
|
146
148
|
sx: {
|
|
147
149
|
position: "absolute",
|
|
148
150
|
alignSelf: "center",
|
|
149
|
-
fontSize: "
|
|
151
|
+
fontSize: "base",
|
|
150
152
|
left: "1rem",
|
|
151
153
|
lineHeight: 0
|
|
152
154
|
},
|
|
@@ -158,8 +160,7 @@ var Input = /*#__PURE__*/React4.forwardRef(({
|
|
|
158
160
|
ref,
|
|
159
161
|
sx: {
|
|
160
162
|
paddingLeft: leadingIcon ? "3xl" : void 0,
|
|
161
|
-
paddingRight: trailingIcon ? "3xl" : void 0
|
|
162
|
-
...sx
|
|
163
|
+
paddingRight: trailingIcon ? "3xl" : void 0
|
|
163
164
|
},
|
|
164
165
|
...inputProps
|
|
165
166
|
}), trailingIcon && /* @__PURE__ */jsx5(Text, {
|
|
@@ -167,7 +168,7 @@ var Input = /*#__PURE__*/React4.forwardRef(({
|
|
|
167
168
|
position: "absolute",
|
|
168
169
|
right: "1rem",
|
|
169
170
|
alignSelf: "center",
|
|
170
|
-
fontSize: "
|
|
171
|
+
fontSize: "base",
|
|
171
172
|
lineHeight: 0
|
|
172
173
|
},
|
|
173
174
|
variant: "trailing-icon",
|
package/dist/index.js
CHANGED
|
@@ -209,13 +209,15 @@ var Input = import_react3.default.forwardRef(({
|
|
|
209
209
|
}, ref) => {
|
|
210
210
|
return /* @__PURE__ */(0, import_jsx_runtime5.jsxs)(import_theme_ui8.Flex, {
|
|
211
211
|
sx: {
|
|
212
|
-
position: "relative"
|
|
212
|
+
position: "relative",
|
|
213
|
+
width: "100%",
|
|
214
|
+
...sx
|
|
213
215
|
},
|
|
214
216
|
children: [leadingIcon && /* @__PURE__ */(0, import_jsx_runtime5.jsx)(import_theme_ui16.Text, {
|
|
215
217
|
sx: {
|
|
216
218
|
position: "absolute",
|
|
217
219
|
alignSelf: "center",
|
|
218
|
-
fontSize: "
|
|
220
|
+
fontSize: "base",
|
|
219
221
|
left: "1rem",
|
|
220
222
|
lineHeight: 0
|
|
221
223
|
},
|
|
@@ -227,8 +229,7 @@ var Input = import_react3.default.forwardRef(({
|
|
|
227
229
|
ref,
|
|
228
230
|
sx: {
|
|
229
231
|
paddingLeft: leadingIcon ? "3xl" : void 0,
|
|
230
|
-
paddingRight: trailingIcon ? "3xl" : void 0
|
|
231
|
-
...sx
|
|
232
|
+
paddingRight: trailingIcon ? "3xl" : void 0
|
|
232
233
|
},
|
|
233
234
|
...inputProps
|
|
234
235
|
}), trailingIcon && /* @__PURE__ */(0, import_jsx_runtime5.jsx)(import_theme_ui16.Text, {
|
|
@@ -236,7 +237,7 @@ var Input = import_react3.default.forwardRef(({
|
|
|
236
237
|
position: "absolute",
|
|
237
238
|
right: "1rem",
|
|
238
239
|
alignSelf: "center",
|
|
239
|
-
fontSize: "
|
|
240
|
+
fontSize: "base",
|
|
240
241
|
lineHeight: 0
|
|
241
242
|
},
|
|
242
243
|
variant: "trailing-icon",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ui",
|
|
3
|
-
"version": "1.31.
|
|
3
|
+
"version": "1.31.9",
|
|
4
4
|
"description": "Primitive layout, typographic, and other components for styling applications.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@emotion/react": "^11.10.6",
|
|
25
25
|
"@iconify-icon/react": "^1.0.7",
|
|
26
26
|
"@theme-ui/match-media": "^0.15.5",
|
|
27
|
-
"@ttoss/theme": "^1.4.
|
|
27
|
+
"@ttoss/theme": "^1.4.9",
|
|
28
28
|
"theme-ui": "^0.15.5"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ae4666b1c422a69395485fed34626f7401c49191"
|
|
50
50
|
}
|
package/src/components/Input.tsx
CHANGED
|
@@ -11,13 +11,13 @@ export type InputProps = InputPropsUI & {
|
|
|
11
11
|
export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
12
12
|
({ leadingIcon, trailingIcon, sx, ...inputProps }, ref) => {
|
|
13
13
|
return (
|
|
14
|
-
<Flex sx={{ position: 'relative' }}>
|
|
14
|
+
<Flex sx={{ position: 'relative', width: '100%', ...sx }}>
|
|
15
15
|
{leadingIcon && (
|
|
16
16
|
<Text
|
|
17
17
|
sx={{
|
|
18
18
|
position: 'absolute',
|
|
19
19
|
alignSelf: 'center',
|
|
20
|
-
fontSize: '
|
|
20
|
+
fontSize: 'base',
|
|
21
21
|
left: '1rem',
|
|
22
22
|
lineHeight: 0,
|
|
23
23
|
}}
|
|
@@ -31,7 +31,6 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
31
31
|
sx={{
|
|
32
32
|
paddingLeft: leadingIcon ? '3xl' : undefined,
|
|
33
33
|
paddingRight: trailingIcon ? '3xl' : undefined,
|
|
34
|
-
...sx,
|
|
35
34
|
}}
|
|
36
35
|
{...inputProps}
|
|
37
36
|
/>
|
|
@@ -42,7 +41,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
42
41
|
position: 'absolute',
|
|
43
42
|
right: '1rem',
|
|
44
43
|
alignSelf: 'center',
|
|
45
|
-
fontSize: '
|
|
44
|
+
fontSize: 'base',
|
|
46
45
|
lineHeight: 0,
|
|
47
46
|
}}
|
|
48
47
|
variant="trailing-icon"
|