agroptima-design-system 0.16.2-beta.1 → 0.16.2-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agroptima-design-system",
3
- "version": "0.16.2-beta.1",
3
+ "version": "0.16.2-beta.2",
4
4
  "scripts": {
5
5
  "dev": "npm run storybook",
6
6
  "storybook": "storybook dev -p 6006 --ci",
@@ -13,6 +13,7 @@ export interface InputProps extends React.ComponentPropsWithoutRef<'input'> {
13
13
  icon?: IconType
14
14
  helpText?: string
15
15
  variant?: InputVariant
16
+ fullWidth?: boolean
16
17
  id?: string
17
18
  errors?: string[]
18
19
  }
@@ -27,6 +28,7 @@ export function Input({
27
28
  variant = 'primary',
28
29
  disabled,
29
30
  type = 'text',
31
+ fullWidth = false,
30
32
  name,
31
33
  id,
32
34
  errors,
@@ -36,6 +38,7 @@ export function Input({
36
38
  const [showPassword, setShowPassword] = useState(false)
37
39
  const cssClasses = classNames('input', className, {
38
40
  'with-icon': icon,
41
+ 'full-width': fullWidth,
39
42
  invalid: errors?.length,
40
43
  })
41
44
  const helpTexts = buildHelpText(helpText, errors)