You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All PR titles and commits to `main` should use the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/) format. During release, the types of commits included since the last release inform what sort of version bump should be made. For example, bugfixes yield a new patch version, whereas breaking changes trigger a major version bump.
@@ -112,7 +123,7 @@ export const Adornments: Story = {
112
123
SIZES.map((size)=>{
113
124
return(
114
125
<Gridsize={{xs: 3}}key={`${i}-${size}`}>
115
-
<Input{...args}size={size}{...props}/>
126
+
<StatefulInput{...args}size={size}{...props}/>
116
127
</Grid>
117
128
)
118
129
}),
@@ -126,6 +137,50 @@ export const Adornments: Story = {
126
137
},
127
138
}
128
139
140
+
exportconstMultiline: Story={
141
+
render: (args)=>{
142
+
return(
143
+
<Stackdirection="column"gap={1}>
144
+
<StatefulInput
145
+
size="small"
146
+
{...args}
147
+
multiline
148
+
endAdornment={ADORNMENTS.SearchIcon}
149
+
/>
150
+
<StatefulInput
151
+
size="medium"
152
+
{...args}
153
+
multiline
154
+
endAdornment={ADORNMENTS.SearchIcon}
155
+
/>
156
+
<StatefulInput
157
+
size="large"
158
+
{...args}
159
+
multiline
160
+
endAdornment={ADORNMENTS.SearchIcon}
161
+
/>
162
+
<StatefulInput
163
+
size="hero"
164
+
{...args}
165
+
multiline
166
+
endAdornment={ADORNMENTS.SearchIcon}
167
+
/>
168
+
<StatefulInput
169
+
size="chat"
170
+
{...args}
171
+
value={`Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
172
+
173
+
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
174
+
175
+
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`}
176
+
multiline
177
+
endAdornment={ADORNMENTS.SearchIcon}
178
+
/>
179
+
</Stack>
180
+
)
181
+
},
182
+
}
183
+
129
184
constPageStyles=styled.div(`
130
185
input {
131
186
background-color: red;
@@ -159,19 +214,19 @@ export const StatesAndParentStyleResistance: Story = {
159
214
<Typography>Placeholder</Typography>
160
215
</Grid>
161
216
<Gridsize={{xs: 8}}>
162
-
<Input{...args}value=""/>
217
+
<StatefulInput{...args}value=""/>
163
218
</Grid>
164
219
<Gridsize={{xs: 4}}>
165
220
<Typography>Default</Typography>
166
221
</Grid>
167
222
<Gridsize={{xs: 8}}>
168
-
<Input{...args}/>
223
+
<StatefulInput{...args}/>
169
224
</Grid>
170
225
<Gridsize={{xs: 4}}>
171
226
<Typography>Initially Focused</Typography>
172
227
</Grid>
173
228
<Gridsize={{xs: 8}}>
174
-
<Input
229
+
<StatefulInput
175
230
// This is a story just demonstrating the autofocus prop
176
231
// eslint-disable-next-line jsx-a11y/no-autofocus
177
232
autoFocus
@@ -182,19 +237,19 @@ export const StatesAndParentStyleResistance: Story = {
0 commit comments