@croquiscom/pds 0.28.0 → 0.29.1

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.
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import { InputAffixProps } from './InputAffix';
3
3
  import { InputBaseProps } from './InputBase';
4
4
  export declare type InputProps = InputBaseProps & InputAffixProps;
5
- export declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & import("./InputBase").InputBaseType & InputAffixProps & React.RefAttributes<HTMLInputElement>>;
5
+ export declare const Input: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width"> & import("./InputBase").InputBaseType & InputAffixProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { ComponentMeta } from '@storybook/react';
3
- declare const _default: ComponentMeta<React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & import("./InputBase").InputBaseType & import("./InputAffix").InputAffixProps & React.RefAttributes<HTMLInputElement>>>;
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width"> & import("./InputBase").InputBaseType & import("./InputAffix").InputAffixProps & React.RefAttributes<HTMLInputElement>>>;
4
4
  export default _default;
5
5
  export declare const Base: any;
6
6
  export declare const Error: any;
@@ -9,6 +9,8 @@ export declare const Disabled: any;
9
9
  export declare const EnteredDisabled: any;
10
10
  export declare const RightAlignment: any;
11
11
  export declare const Addon: any;
12
+ export declare const Width: any;
13
+ export declare const AddonWithWidth: any;
12
14
  export declare const AddonWithFormHelperText: () => JSX.Element[];
13
15
  export declare const Password: () => JSX.Element;
14
16
  export declare const Search: any;
@@ -2,6 +2,7 @@ import React, { InputHTMLAttributes, ReactElement, ReactNode } from 'react';
2
2
  import { InputAffixProps } from './InputAffix';
3
3
  import { InputAlignment, InputStatus } from './types';
4
4
  import { IconProps } from '../icons/generated';
5
+ import { CSSValueWithLength } from '../styles';
5
6
  export interface InputBaseType {
6
7
  alignment?: InputAlignment;
7
8
  /** @default info */
@@ -14,6 +15,7 @@ export interface InputBaseType {
14
15
  leftAddon?: InputAffixProps['prefix'];
15
16
  /** @desc suffix */
16
17
  rightAddon?: InputAffixProps['suffix'];
18
+ width?: CSSValueWithLength;
17
19
  }
18
- export declare type InputBaseProps = InputHTMLAttributes<HTMLInputElement> & InputBaseType;
19
- export declare const InputBase: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
20
+ export declare type InputBaseProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'width'> & InputBaseType;
21
+ export declare const InputBase: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "width"> & InputBaseType & React.RefAttributes<HTMLInputElement>>;
@@ -5,6 +5,8 @@ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Omit<React
5
5
  export default _default;
6
6
  export declare const Base: any;
7
7
  export declare const Addon: any;
8
+ export declare const Width: any;
9
+ export declare const AddonWithWidth: any;
8
10
  export declare const Error: any;
9
11
  export declare const Disabled: any;
10
12
  export declare const WhetherNegativeNumbersAreAllowed: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@croquiscom/pds",
3
- "version": "0.28.0",
3
+ "version": "0.29.1",
4
4
  "description": "Design system for Zigzag's Partner Center",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.es.js",