react-magma-dom 4.1.0-next.9 → 4.1.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,5 +1,12 @@
1
1
  import * as React from 'react';
2
2
  export interface CharacterCounterProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Enables Character Counter by default.
5
+ * When set to false, the default HTML attribute of 'maxlength' will work.
6
+ * Note: This is a temporary prop and will be removed in future releases.
7
+ @default true
8
+ */
9
+ hasCharacterCounter?: boolean;
3
10
  /**
4
11
  * Identifier to associate Character Counter with Input.
5
12
  */
@@ -12,6 +19,11 @@ export interface CharacterCounterProps extends React.HTMLAttributes<HTMLDivEleme
12
19
  /**
13
20
  * Sets the maximum amount of characters allowed.
14
21
  */
22
+ maxCount: number;
23
+ /**
24
+ * Sets the maximum amount of characters allowed.
25
+ * @deprecated = true
26
+ */
15
27
  maxLength: number;
16
28
  /**
17
29
  * @internal
@@ -6,9 +6,11 @@ export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("
6
6
  export declare const WithChildren: {
7
7
  (args: any): JSX.Element;
8
8
  args: {
9
+ hasCharacterCounter?: boolean;
9
10
  id?: string;
10
11
  inputLength?: number;
11
12
  isInverse?: boolean;
13
+ maxCount?: number;
12
14
  maxLength?: number;
13
15
  testId?: string;
14
16
  defaultChecked?: boolean;
@@ -272,9 +274,11 @@ export declare const WithChildren: {
272
274
  export declare const TextArea: {
273
275
  (args: any): JSX.Element;
274
276
  args: {
277
+ hasCharacterCounter?: boolean;
275
278
  id?: string;
276
279
  inputLength?: number;
277
280
  isInverse?: boolean;
281
+ maxCount?: number;
278
282
  maxLength?: number;
279
283
  testId?: string;
280
284
  defaultChecked?: boolean;
@@ -540,3 +544,15 @@ export declare const TextArea: {
540
544
  };
541
545
  };
542
546
  };
547
+ export declare const MaxCountAndMaxLength: {
548
+ (args: any): JSX.Element;
549
+ args: {
550
+ maxCount: number;
551
+ maxLength: number;
552
+ };
553
+ parameters: {
554
+ controls: {
555
+ exclude: string[];
556
+ };
557
+ };
558
+ };
@@ -24,6 +24,13 @@ export interface FormFieldContainerBaseProps {
24
24
  * ID of the form field. Also used in the descrption ID.
25
25
  */
26
26
  fieldId: string;
27
+ /**
28
+ * Enables Character Counter by default.
29
+ * When set to false, the default HTML attribute of 'maxlength' will work.
30
+ * Note: This is a temporary prop and will be removed in future releases.
31
+ @default true
32
+ */
33
+ hasCharacterCounter?: boolean;
27
34
  /**
28
35
  * Content of the helper message.
29
36
  */
@@ -68,6 +75,11 @@ export interface FormFieldContainerBaseProps {
68
75
  /**
69
76
  * Enables the Character Counter and sets the maximum amount of characters allowed within the Input.
70
77
  */
78
+ maxCount?: number;
79
+ /**
80
+ * Enables the Character Counter and sets the maximum amount of characters allowed within the Input.
81
+ * @deprecated = true
82
+ */
71
83
  maxLength?: number;
72
84
  /**
73
85
  * Style properties for the helper or error message
@@ -18,6 +18,7 @@ export declare const IconPositions: {
18
18
  containerStyle?: React.CSSProperties;
19
19
  actionable?: boolean;
20
20
  errorMessage?: React.ReactNode;
21
+ hasCharacterCounter?: boolean;
21
22
  inputLength?: number;
22
23
  inputSize?: InputSize;
23
24
  isLabelVisuallyHidden?: boolean;
@@ -25,6 +26,7 @@ export declare const IconPositions: {
25
26
  labelStyle?: React.CSSProperties;
26
27
  labelText?: React.ReactNode;
27
28
  labelWidth?: number;
29
+ maxCount?: number;
28
30
  maxLength?: number;
29
31
  messageStyle?: React.CSSProperties;
30
32
  hasError?: boolean;
@@ -344,6 +346,7 @@ export declare const WithChildren: {
344
346
  containerStyle?: React.CSSProperties;
345
347
  actionable?: boolean;
346
348
  errorMessage?: React.ReactNode;
349
+ hasCharacterCounter?: boolean;
347
350
  helperMessage?: React.ReactNode;
348
351
  inputLength?: number;
349
352
  inputSize?: InputSize;
@@ -352,6 +355,7 @@ export declare const WithChildren: {
352
355
  labelStyle?: React.CSSProperties;
353
356
  labelText?: React.ReactNode;
354
357
  labelWidth?: number;
358
+ maxCount?: number;
355
359
  maxLength?: number;
356
360
  messageStyle?: React.CSSProperties;
357
361
  hasError?: boolean;
@@ -8,6 +8,6 @@ export interface InputMessageProps extends React.HTMLAttributes<HTMLDivElement>
8
8
  */
9
9
  inputSize?: InputSize;
10
10
  isInverse?: boolean;
11
- maxLength?: number;
11
+ maxCount?: number;
12
12
  }
13
13
  export declare const InputMessage: React.FunctionComponent<InputMessageProps>;
@@ -23,6 +23,13 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
23
23
  * Style properties for the component container element
24
24
  */
25
25
  containerStyle?: React.CSSProperties;
26
+ /**
27
+ * Enables Character Counter by default.
28
+ * When set to false, the default HTML attribute of 'maxlength' will work.
29
+ * Note: This is a temporary prop and will be removed in future releases.
30
+ @default true
31
+ */
32
+ hasCharacterCounter?: boolean;
26
33
  /**
27
34
  * @internal
28
35
  */
@@ -74,6 +81,11 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
74
81
  /**
75
82
  * A number value which gives Character Counter the maximum length of allowable characters in an Input.
76
83
  */
84
+ maxCount?: number;
85
+ /**
86
+ * A number value which gives Character Counter the maximum length of allowable characters in an Input.
87
+ * @deprecated = true
88
+ */
77
89
  maxLength?: number;
78
90
  /**
79
91
  * Action that will fire when icon is clicked
@@ -118,6 +130,7 @@ export interface InputWrapperStylesProps {
118
130
  }
119
131
  export declare const inputWrapperStyles: (props: InputWrapperStylesProps) => import("@emotion/utils").SerializedStyles;
120
132
  export interface InputBaseStylesProps {
133
+ hasCharacterCounter?: boolean;
121
134
  isInverse?: boolean;
122
135
  iconPosition?: InputIconPosition;
123
136
  inputSize?: InputSize;
@@ -287,6 +287,15 @@ export declare const ControlledPagination: {
287
287
  };
288
288
  };
289
289
  export declare const UncontrolledPagination: (args: any) => JSX.Element;
290
+ export declare const PaginationWithSquareCorners: {
291
+ (args: any): JSX.Element;
292
+ args: {
293
+ hasSquareCorners: boolean;
294
+ hasHoverStyles: boolean;
295
+ hasVerticalBorders: boolean;
296
+ hasZebraStripes: boolean;
297
+ };
298
+ };
290
299
  export declare const PaginationInverse: {
291
300
  (args: any): JSX.Element;
292
301
  args: {
@@ -29,6 +29,11 @@ export interface BaseTablePaginationProps extends React.HTMLAttributes<HTMLDivEl
29
29
  * @internal
30
30
  */
31
31
  testId?: string;
32
+ /**
33
+ * If true, the table paginator will have square edges
34
+ * @default true
35
+ */
36
+ hasSquareCorners?: boolean;
32
37
  }
33
38
  export interface ControlledPageProps {
34
39
  /**
@@ -9,13 +9,14 @@ export declare const OnClear: {
9
9
  args: {
10
10
  containerStyle?: React.CSSProperties;
11
11
  isInverse?: boolean;
12
- maxLength?: number;
12
+ maxCount?: number;
13
13
  testId?: string;
14
14
  textareaStyle?: React.CSSProperties;
15
15
  value?: string | number | readonly string[];
16
16
  iconPosition?: import("../InputBase").InputIconPosition;
17
17
  actionable?: boolean;
18
18
  errorMessage?: React.ReactNode;
19
+ hasCharacterCounter?: boolean;
19
20
  helperMessage?: React.ReactNode;
20
21
  inputLength?: number;
21
22
  isLabelVisuallyHidden?: boolean;
@@ -23,6 +24,7 @@ export declare const OnClear: {
23
24
  labelStyle?: React.CSSProperties;
24
25
  labelText?: React.ReactNode;
25
26
  labelWidth?: number;
27
+ maxLength?: number;
26
28
  messageStyle?: React.CSSProperties;
27
29
  autoComplete?: string;
28
30
  autoFocus?: boolean;
@@ -10,7 +10,7 @@ export interface TextareaProps extends Omit<FormFieldContainerBaseProps, 'inputS
10
10
  /**
11
11
  * A number value which gives Character Counter the maximum length of allowable characters in an Textarea.
12
12
  */
13
- maxLength?: number;
13
+ maxCount?: number;
14
14
  /**
15
15
  * @internal
16
16
  */