@salutejs/plasma-new-hope 0.92.0-canary.1252.9663899697.0 → 0.92.0-canary.1261.9663085538.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/cjs/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
  2. package/cjs/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
  3. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
  4. package/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  5. package/cjs/components/TextArea/TextArea.js +6 -4
  6. package/cjs/components/TextArea/TextArea.js.map +1 -1
  7. package/cjs/components/TextArea/hooks/useAutoResize.js +10 -4
  8. package/cjs/components/TextArea/hooks/useAutoResize.js.map +1 -1
  9. package/es/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
  10. package/es/components/Segment/SegmentProvider/SegmentProvider.js.map +1 -1
  11. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
  12. package/es/components/Segment/ui/SegmentGroup/SegmentGroup.js.map +1 -1
  13. package/es/components/TextArea/TextArea.js +7 -5
  14. package/es/components/TextArea/TextArea.js.map +1 -1
  15. package/es/components/TextArea/hooks/useAutoResize.js +10 -4
  16. package/es/components/TextArea/hooks/useAutoResize.js.map +1 -1
  17. package/package.json +2 -2
  18. package/styled-components/cjs/components/Segment/Segment.template-doc.mdx +1 -6
  19. package/styled-components/cjs/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
  20. package/styled-components/cjs/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
  21. package/styled-components/cjs/components/TextArea/TextArea.js +11 -4
  22. package/styled-components/cjs/components/TextArea/TextArea.template-doc.mdx +45 -6
  23. package/styled-components/cjs/components/TextArea/hooks/useAutoResize.js +10 -4
  24. package/styled-components/es/components/Segment/Segment.template-doc.mdx +1 -6
  25. package/styled-components/es/components/Segment/SegmentProvider/SegmentProvider.js +1 -4
  26. package/styled-components/es/components/Segment/ui/SegmentGroup/SegmentGroup.js +2 -9
  27. package/styled-components/es/components/TextArea/TextArea.js +12 -4
  28. package/styled-components/es/components/TextArea/TextArea.template-doc.mdx +45 -6
  29. package/styled-components/es/components/TextArea/hooks/useAutoResize.js +10 -4
  30. package/types/components/Segment/SegmentProvider/SegmentProvider.d.ts.map +1 -1
  31. package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts +3 -4
  32. package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts.map +1 -1
  33. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts +0 -2
  34. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
  35. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +0 -5
  36. package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
  37. package/types/components/TextArea/TextArea.d.ts +2 -2
  38. package/types/components/TextArea/TextArea.d.ts.map +1 -1
  39. package/types/components/TextArea/TextArea.types.d.ts +49 -23
  40. package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
  41. package/types/components/TextArea/hooks/useAutoResize.d.ts +1 -1
  42. package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
  43. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts +0 -1
  44. package/types/examples/plasma_b2c/components/Segment/Segment.d.ts.map +1 -1
  45. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts +31 -1
  46. package/types/examples/plasma_b2c/components/TextArea/TextArea.d.ts.map +1 -1
  47. package/types/examples/plasma_web/components/Segment/Segment.d.ts +0 -1
  48. package/types/examples/plasma_web/components/Segment/Segment.d.ts.map +1 -1
  49. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts +31 -1
  50. package/types/examples/plasma_web/components/TextArea/TextArea.d.ts.map +1 -1
  51. package/types/examples/sds_engineer/components/Segment/Segment.d.ts +0 -1
  52. package/types/examples/sds_engineer/components/Segment/Segment.d.ts.map +1 -1
  53. package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts +31 -1
  54. package/types/examples/sds_engineer/components/TextArea/TextArea.d.ts.map +1 -1
@@ -1,12 +1,11 @@
1
- import type { Dispatch, SetStateAction } from 'react';
1
+ import type { SetStateAction } from 'react';
2
2
  export declare type SegmentSelectionMode = 'single' | 'multiple';
3
3
  export declare type SegmentContextType = {
4
4
  disabledGroup: boolean;
5
- setDisabledGroup: Dispatch<SetStateAction<boolean>>;
5
+ setDisabledGroup: (value: SetStateAction<boolean>) => void;
6
6
  selectedSegmentItems: string[];
7
- setSelectedSegmentItems: Dispatch<SetStateAction<string[]>>;
8
7
  handleSelect: (label: string) => void;
9
8
  selectionMode: SegmentSelectionMode;
10
- setSelectionMode: Dispatch<SetStateAction<SegmentSelectionMode>>;
9
+ setSelectionMode: (mode: SegmentSelectionMode) => void;
11
10
  };
12
11
  //# sourceMappingURL=SegmentProvider.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Segment/SegmentProvider/SegmentProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtD,oBAAY,oBAAoB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzD,oBAAY,kBAAkB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;IACpD,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,uBAAuB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5D,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,aAAa,EAAE,oBAAoB,CAAC;IACpC,gBAAgB,EAAE,QAAQ,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,CAAC;CACpE,CAAC"}
1
+ {"version":3,"file":"SegmentProvider.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Segment/SegmentProvider/SegmentProvider.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,oBAAY,oBAAoB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzD,oBAAY,kBAAkB,GAAG;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC3D,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,aAAa,EAAE,oBAAoB,CAAC;IACpC,gBAAgB,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC1D,CAAC"}
@@ -3,7 +3,6 @@ import type { RootProps } from '../../../../engines/types';
3
3
  import type { SegmentGroupProps } from './SegmentGroup.types';
4
4
  export declare const segmentGroupRoot: (Root: RootProps<HTMLDivElement, SegmentGroupProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
5
5
  selectionMode?: "multiple" | "single" | undefined;
6
- defaultSelected?: string[] | undefined;
7
6
  disabled?: boolean | undefined;
8
7
  stretch?: boolean | undefined;
9
8
  pilled?: boolean | undefined;
@@ -16,7 +15,6 @@ export declare const segmentGroupConfig: {
16
15
  tag: string;
17
16
  layout: (Root: RootProps<HTMLDivElement, SegmentGroupProps>) => React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
18
17
  selectionMode?: "multiple" | "single" | undefined;
19
- defaultSelected?: string[] | undefined;
20
18
  disabled?: boolean | undefined;
21
19
  stretch?: boolean | undefined;
22
20
  pilled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAY3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;wCA4J7E,CAAC;AAEP,eAAO,MAAM,kBAAkB;;;mBA9JQ,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LlF,CAAC"}
1
+ {"version":3,"file":"SegmentGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAI/F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAY3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,eAAO,MAAM,gBAAgB,SAAU,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;wCAqJ7E,CAAC;AAEP,eAAO,MAAM,kBAAkB;;;mBAvJQ,UAAU,cAAc,EAAE,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLlF,CAAC"}
@@ -4,11 +4,6 @@ declare type CustomSegmentGroupProps = {
4
4
  * Сегмент множественного или одиночного выбора
5
5
  */
6
6
  selectionMode?: 'multiple' | 'single';
7
- /**
8
- * Выбранные по умолчанию сегменты.
9
- * Передается массив value сегментов, выбранных по умолчанию
10
- */
11
- defaultSelected?: Array<string>;
12
7
  /**
13
8
  * Группа сегментов неактивна
14
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACtC;;;OAGG;IACH,eAAe,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,uBAAuB,CAAC"}
1
+ {"version":3,"file":"SegmentGroup.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/Segment/ui/SegmentGroup/SegmentGroup.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,aAAK,uBAAuB,GAAG;IAC3B;;OAEG;IACH,aAAa,CAAC,EAAE,UAAU,GAAG,QAAQ,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG,uBAAuB,CAAC"}
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import type { RootProps } from '../../engines/types';
3
3
  import type { TextAreaProps } from './TextArea.types';
4
4
  export declare const getDynamicLabelClasses: (props: TextAreaProps, focused: boolean) => (string | undefined)[];
5
- export declare const textAreaRoot: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<import("../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("./TextArea.types").TextAreaPropsExtends & React.RefAttributes<HTMLTextAreaElement>>;
5
+ export declare const textAreaRoot: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
6
6
  export declare const textAreaConfig: {
7
7
  name: string;
8
8
  tag: string;
9
- layout: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<import("../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("./TextArea.types").TextAreaPropsExtends & React.RefAttributes<HTMLTextAreaElement>>;
9
+ layout: (Root: RootProps<HTMLTextAreaElement, TextAreaProps>) => React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
10
10
  base: import("@linaria/core").LinariaClassName;
11
11
  variations: {
12
12
  size: {
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,oMAkJ1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBApJQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA4K/E,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuD,MAAM,OAAO,CAAC;AAK5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AA6BtD,eAAO,MAAM,sBAAsB,UAAW,aAAa,WAAW,OAAO,2BA4B5E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,UAAU,mBAAmB,EAAE,aAAa,CAAC,8FAiJ1E,CAAC;AAEP,eAAO,MAAM,cAAc;;;mBAnJQ,UAAU,mBAAmB,EAAE,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;CA2K/E,CAAC"}
@@ -1,5 +1,52 @@
1
1
  /// <reference types="react" />
2
2
  import { TextareaHTMLAttributes } from '../../types';
3
+ declare type Only<T, U, R> = {
4
+ [P in keyof T]: T[P];
5
+ } & {
6
+ [P in keyof U]?: never;
7
+ } & {
8
+ [P in keyof R]?: never;
9
+ };
10
+ declare type OneOf<T, U, R> = Only<T, U, R> | Only<U, T, R> | Only<R, T, U>;
11
+ export declare type TextAreaPropsAutoResize = {
12
+ /**
13
+ * Автоматическая высота поля ввода.
14
+ */
15
+ autoResize?: boolean;
16
+ /**
17
+ * Максимальная высота поля ввода в автоматическом режиме (в абсолютных единицах).
18
+ * @example maxAuto="5", maxAuto={5}
19
+ */
20
+ maxAuto?: number;
21
+ /**
22
+ * Минимальная высота поля ввода в автоматическом режиме (в абсолютных единицах).
23
+ * @example minAuto="5", minAuto={5}
24
+ */
25
+ minAuto?: number;
26
+ };
27
+ export declare type TextAreaPropsHeightWidth = {
28
+ /**
29
+ * Высота текстового поля, значения в rem. Отвечает за ВСЮ высоту компонента.
30
+ * @example height="10", height={10}
31
+ */
32
+ height?: number | string;
33
+ /**
34
+ * Ширина текстового поля, значения в rem. Отвечает за ВСЮ ширину компонента.
35
+ * @example width="10", width={10}
36
+ */
37
+ width?: number | string;
38
+ };
39
+ export declare type TextAreaPropsRowsCols = {
40
+ /**
41
+ * Высота текстового поля (в абсолютных единицах) – фиксированное число отображаемых строк без прокрутки.
42
+ */
43
+ rows?: number;
44
+ /**
45
+ * Ширина текстового поля (в абсолютных единицах) – фиксированное число столбцов.
46
+ */
47
+ cols?: number;
48
+ };
49
+ export declare type TextAreaDimensionsProps = OneOf<TextAreaPropsAutoResize, TextAreaPropsHeightWidth, TextAreaPropsRowsCols>;
3
50
  export interface TextAreaPropsBase {
4
51
  /**
5
52
  * Статус компонента: заполнен успешно / с предупреждением / с ошибкой.
@@ -23,16 +70,6 @@ export interface TextAreaPropsBase {
23
70
  * @deprecated устаревшее свойство
24
71
  */
25
72
  resize?: 'none' | 'both' | 'horizontal' | 'vertical';
26
- /**
27
- * Высота текстового поля, значения в rem
28
- * @example height="10", height={10}
29
- */
30
- height?: number | string;
31
- /**
32
- * Ширина текстового поля, значения в rem
33
- * @example width="10", width={10}
34
- */
35
- width?: number | string;
36
73
  /**
37
74
  * Вспомогательный текст снизу слева для поля ввода.
38
75
  * @deprecated свойство устарело, необходимо использовать `leftHelper`.
@@ -46,18 +83,6 @@ export interface TextAreaPropsBase {
46
83
  * Вспомогательный текст снизу справа для поля ввода.
47
84
  */
48
85
  rightHelper?: string;
49
- /**
50
- * Автоматическая высота поля ввода.
51
- */
52
- autoResize?: boolean;
53
- /**
54
- * Максимальная высота поля ввода в автоматическом режиме(в rem).
55
- */
56
- maxAuto?: number;
57
- /**
58
- * Минимальная высота поля ввода в автоматическом режиме(в rem).
59
- */
60
- minAuto?: number;
61
86
  }
62
87
  export interface TextAreaPropsExtends extends TextAreaPropsBase {
63
88
  /**
@@ -69,5 +94,6 @@ export interface TextAreaPropsExtends extends TextAreaPropsBase {
69
94
  */
70
95
  view?: string;
71
96
  }
72
- export declare type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & TextAreaPropsExtends;
97
+ export declare type TextAreaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'rows' | 'cols'> & TextAreaPropsExtends & TextAreaDimensionsProps;
98
+ export {};
73
99
  //# sourceMappingURL=TextArea.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,aAAa,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,GAAG,oBAAoB,CAAC"}
1
+ {"version":3,"file":"TextArea.types.d.ts","sourceRoot":"","sources":["../../../src/components/TextArea/TextArea.types.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,aAAK,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI;KAChB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACvB,GACG;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,GACD;KACK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK;CACzB,CAAC;AAEN,aAAK,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAEpE,oBAAY,uBAAuB,GAAG;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,wBAAwB,GAAG;IACnC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,uBAAuB,GAAG,KAAK,CAAC,uBAAuB,EAAE,wBAAwB,EAAE,qBAAqB,CAAC,CAAC;AAEtH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC9C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAClC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;IACrD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC3D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,oBAAY,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GAC1F,oBAAoB,GACpB,uBAAuB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  export declare const ROOT_FONT_SIZE = 16;
3
- export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined, minHeight?: number | undefined, maxHeight?: number | undefined) => void;
3
+ export declare const useAutoResize: <T extends HTMLTextAreaElement>(active: boolean, ref: MutableRefObject<T | null>, value?: string | number | readonly string[] | undefined, minAuto?: number | undefined, maxAuto?: number | undefined) => void;
4
4
  //# sourceMappingURL=useAutoResize.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,mKA0BlB,CAAC"}
1
+ {"version":3,"file":"useAutoResize.d.ts","sourceRoot":"","sources":["../../../../src/components/TextArea/hooks/useAutoResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAE5D,eAAO,MAAM,cAAc,KAAK,CAAC;AAEjC,eAAO,MAAM,aAAa,0CACd,OAAO,+JAoClB,CAAC"}
@@ -24,7 +24,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
24
24
  };
25
25
  }> & import("react").HTMLAttributes<HTMLDivElement> & {
26
26
  selectionMode?: "multiple" | "single" | undefined;
27
- defaultSelected?: string[] | undefined;
28
27
  disabled?: boolean | undefined;
29
28
  stretch?: boolean | undefined;
30
29
  pilled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
1
+ {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
@@ -15,5 +15,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
15
15
  disabled: {
16
16
  true: import("@linaria/core").LinariaClassName;
17
17
  };
18
- }> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
18
+ }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
19
+ autoResize?: boolean | undefined;
20
+ maxAuto?: number | undefined;
21
+ minAuto?: number | undefined;
22
+ } & {
23
+ height?: undefined;
24
+ width?: undefined;
25
+ } & {
26
+ rows?: undefined;
27
+ cols?: undefined;
28
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
29
+ height?: string | number | undefined;
30
+ width?: string | number | undefined;
31
+ } & {
32
+ autoResize?: undefined;
33
+ maxAuto?: undefined;
34
+ minAuto?: undefined;
35
+ } & {
36
+ rows?: undefined;
37
+ cols?: undefined;
38
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
39
+ rows?: number | undefined;
40
+ cols?: number | undefined;
41
+ } & {
42
+ autoResize?: undefined;
43
+ maxAuto?: undefined;
44
+ minAuto?: undefined;
45
+ } & {
46
+ height?: undefined;
47
+ width?: undefined;
48
+ } & import("react").RefAttributes<HTMLTextAreaElement>))>;
19
49
  //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;kNAA0B,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_b2c/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
@@ -21,7 +21,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
21
21
  };
22
22
  }> & import("react").HTMLAttributes<HTMLDivElement> & {
23
23
  selectionMode?: "multiple" | "single" | undefined;
24
- defaultSelected?: string[] | undefined;
25
24
  disabled?: boolean | undefined;
26
25
  stretch?: boolean | undefined;
27
26
  pilled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
1
+ {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
@@ -15,5 +15,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
15
15
  disabled: {
16
16
  true: import("@linaria/core").LinariaClassName;
17
17
  };
18
- }> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
18
+ }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
19
+ autoResize?: boolean | undefined;
20
+ maxAuto?: number | undefined;
21
+ minAuto?: number | undefined;
22
+ } & {
23
+ height?: undefined;
24
+ width?: undefined;
25
+ } & {
26
+ rows?: undefined;
27
+ cols?: undefined;
28
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
29
+ height?: string | number | undefined;
30
+ width?: string | number | undefined;
31
+ } & {
32
+ autoResize?: undefined;
33
+ maxAuto?: undefined;
34
+ minAuto?: undefined;
35
+ } & {
36
+ rows?: undefined;
37
+ cols?: undefined;
38
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
39
+ rows?: number | undefined;
40
+ cols?: number | undefined;
41
+ } & {
42
+ autoResize?: undefined;
43
+ maxAuto?: undefined;
44
+ minAuto?: undefined;
45
+ } & {
46
+ height?: undefined;
47
+ width?: undefined;
48
+ } & import("react").RefAttributes<HTMLTextAreaElement>))>;
19
49
  //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;kNAA0B,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/plasma_web/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}
@@ -21,7 +21,6 @@ export declare const SegmentGroup: import("react").FunctionComponent<import("../
21
21
  };
22
22
  }> & import("react").HTMLAttributes<HTMLDivElement> & {
23
23
  selectionMode?: "multiple" | "single" | undefined;
24
- defaultSelected?: string[] | undefined;
25
24
  disabled?: boolean | undefined;
26
25
  stretch?: boolean | undefined;
27
26
  pilled?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
1
+ {"version":3,"file":"Segment.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/Segment/Segment.ts"],"names":[],"mappings":";AASA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAAsC,CAAC;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;oDAAqC,CAAC"}
@@ -12,5 +12,35 @@ export declare const TextArea: import("react").FunctionComponent<import("../../.
12
12
  disabled: {
13
13
  true: import("@linaria/core").LinariaClassName;
14
14
  };
15
- }> & import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & import("react").RefAttributes<HTMLTextAreaElement>>;
15
+ }> & ((Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
16
+ autoResize?: boolean | undefined;
17
+ maxAuto?: number | undefined;
18
+ minAuto?: number | undefined;
19
+ } & {
20
+ height?: undefined;
21
+ width?: undefined;
22
+ } & {
23
+ rows?: undefined;
24
+ cols?: undefined;
25
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
26
+ height?: string | number | undefined;
27
+ width?: string | number | undefined;
28
+ } & {
29
+ autoResize?: undefined;
30
+ maxAuto?: undefined;
31
+ minAuto?: undefined;
32
+ } & {
33
+ rows?: undefined;
34
+ cols?: undefined;
35
+ } & import("react").RefAttributes<HTMLTextAreaElement>) | (Omit<import("../../../../types").TextareaHTMLAttributes<HTMLTextAreaElement>, "rows" | "cols"> & import("../../../../components/TextArea/TextArea.types").TextAreaPropsExtends & {
36
+ rows?: number | undefined;
37
+ cols?: number | undefined;
38
+ } & {
39
+ autoResize?: undefined;
40
+ maxAuto?: undefined;
41
+ minAuto?: undefined;
42
+ } & {
43
+ height?: undefined;
44
+ width?: undefined;
45
+ } & import("react").RefAttributes<HTMLTextAreaElement>))>;
16
46
  //# sourceMappingURL=TextArea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;kNAA0B,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/examples/sds_engineer/components/TextArea/TextArea.ts"],"names":[],"mappings":";AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDAA0B,CAAC"}