@open-condo/ui 2.42.0 → 2.43.0

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.
@@ -1,6 +1,7 @@
1
1
  import { Input as InputComponent } from './input';
2
2
  import { Password } from './password';
3
3
  import { Phone } from './phone';
4
+ import { TextArea } from './textArea';
4
5
  import './style.less';
5
6
  export type { BaseInputProps, InputProps } from './input';
6
7
  export type { PasswordInputProps } from './password';
@@ -8,6 +9,7 @@ export type { PhoneInputProps } from './phone';
8
9
  export type InputType = typeof InputComponent & {
9
10
  Password: typeof Password;
10
11
  Phone: typeof Phone;
12
+ TextArea: typeof TextArea;
11
13
  };
12
14
  declare const Input: InputType;
13
15
  export { Input, };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,MAAM,SAAS,GAAG,OAAO,cAAc,GAAG;IAC5C,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,KAAK,EAAE,OAAO,KAAK,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,KAAK,EAAqB,SAAS,CAAA;AAIzC,OAAO,EACH,KAAK,GACR,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Input/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,cAAc,CAAA;AAErB,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzD,YAAY,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACpD,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,MAAM,SAAS,GAAG,OAAO,cAAc,GAAG;IAC5C,QAAQ,EAAE,OAAO,QAAQ,CAAA;IACzB,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,QAAQ,EAAE,OAAO,QAAQ,CAAA;CAC5B,CAAA;AAED,QAAA,MAAM,KAAK,EAAqB,SAAS,CAAA;AAKzC,OAAO,EACH,KAAK,GACR,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { TextAreaProps as AntdTextAreaProps } from 'antd/es/input';
2
+ import React, { TextareaHTMLAttributes } from 'react';
3
+ import type { InputRef } from 'antd';
4
+ export declare const TEXTAREA_CLASS_PREFIX = "condo-input";
5
+ export type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'style' | 'size' | 'onResize'> & Pick<AntdTextAreaProps, 'autoSize'> & {
6
+ value?: string;
7
+ isSubmitDisabled?: boolean;
8
+ showCount?: boolean;
9
+ onSubmit?: (value: string) => void;
10
+ bottomPanelUtils?: React.ReactElement[];
11
+ };
12
+ declare const TextArea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "style" | "onResize"> & Pick<AntdTextAreaProps, "autoSize"> & {
13
+ value?: string;
14
+ isSubmitDisabled?: boolean;
15
+ showCount?: boolean;
16
+ onSubmit?: (value: string) => void;
17
+ bottomPanelUtils?: React.ReactElement[];
18
+ } & React.RefAttributes<InputRef>>;
19
+ export { TextArea };
20
+ //# sourceMappingURL=textArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../src/components/Input/textArea.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAElE,OAAO,KAAK,EAAE,EAAmC,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAMtF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAIpC,eAAO,MAAM,qBAAqB,gBAAgB,CAAA;AAElD,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC,GAC5G,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAG;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,gBAAgB,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,QAAQ;YAPF,MAAM;uBACK,OAAO;gBACd,OAAO;eACR,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;uBACf,KAAK,CAAC,YAAY,EAAE;kCAkIzC,CAAA;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAA"}