ingred-ui 23.3.1 → 23.3.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.
@@ -40,6 +40,10 @@ export type InputProps = (React.ComponentPropsWithoutRef<"input"> | React.Compon
40
40
  * エラーメッセージ(アクセシビリティ用)
41
41
  */
42
42
  errorMessage?: string;
43
+ /**
44
+ * 幅を明示的に指定
45
+ */
46
+ width?: string | number;
43
47
  };
44
48
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement | HTMLTextAreaElement>>;
45
49
  export default Input;
@@ -20,4 +20,5 @@ export declare const Example: StoryObj<InputProps>;
20
20
  export declare const Sizes: StoryObj<InputProps>;
21
21
  export declare const Variants: StoryObj<InputProps>;
22
22
  export declare const FullWidth: StoryObj<InputProps>;
23
+ export declare const WithWidth: StoryObj<InputProps>;
23
24
  export declare const Textarea: StoryObj<InputProps>;
package/dist/index.es.js CHANGED
@@ -3105,7 +3105,7 @@ var ha=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
3105
3105
  background-color: ${({theme:e})=>e.palette.gray.light};
3106
3106
  cursor: not-allowed;
3107
3107
  }
3108
- `,zy=e.forwardRef((function(t,n){var{error:r=!1,multiline:i=!1,resize:a="both",size:o="medium",variant:l="light",fullWidth:s=!1,errorMessage:c,onFocus:d,onBlur:u}=t,p=M(t,["error","multiline","resize","size","variant","fullWidth","errorMessage","onFocus","onBlur"]);const[m,g]=e.useState(!1),h=i?"textarea":"input",f=e.useCallback((e=>{e.currentTarget.blur()}),[]),b=e.useCallback((()=>{g(!0)}),[]),v=e.useCallback((()=>{g(!1)}),[]),x=r?Object.assign({"aria-invalid":!0},c&&{"aria-errormessage":c}):{};return e.createElement(Ry,Object.assign({},p,x,{ref:n,as:h,$error:r,$isFocused:m,resize:a,$size:o,$variant:l,$fullWidth:s,onFocus:d?wr(b,d):b,onBlur:u?wr(v,u):v,onWheel:wr("number"===p.type?f:null,p.onWheel)}))})),Ty=w`
3108
+ `,zy=e.forwardRef((function(t,n){var{error:r=!1,multiline:i=!1,resize:a="both",size:o="medium",variant:l="light",fullWidth:s=!1,errorMessage:c,onFocus:d,onBlur:u}=t,p=M(t,["error","multiline","resize","size","variant","fullWidth","errorMessage","onFocus","onBlur"]);const[m,g]=e.useState(!1),h=i?"textarea":"input",f=e.useCallback((e=>{e.currentTarget.blur()}),[]),b=e.useCallback((()=>{g(!0)}),[]),v=e.useCallback((()=>{g(!1)}),[]),x=r?Object.assign({"aria-invalid":!0},c&&{"aria-errormessage":c}):{};return e.createElement(Ry,Object.assign({},p,x,{ref:n,as:h,$error:r,$isFocused:m,resize:a,$size:o,$variant:l,$fullWidth:s,onFocus:d?wr(b,d):b,onBlur:u?wr(v,u):v,onWheel:wr(!i&&"type"in p&&"number"===p.type?f:null,"onWheel"in p?p.onWheel:void 0)}))})),Ty=w`
3109
3109
  0% {
3110
3110
  right: 100%;
3111
3111
  left: -35%;