react-magma-dom 3.6.0 → 3.7.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.
Files changed (31) hide show
  1. package/dist/components/ButtonGroup/ButtonGroup.stories.d.ts +2 -2
  2. package/dist/components/CharacterCounter/CharacterCounter.stories.d.ts +4 -4
  3. package/dist/components/Datagrid/Datagrid.stories.d.ts +8 -8
  4. package/dist/components/FormFieldContainer/FormFieldContainer.d.ts +1 -1
  5. package/dist/components/Heading/Heading.stories.d.ts +9 -3
  6. package/dist/components/Heading/index.d.ts +1 -1
  7. package/dist/components/Input/Input.stories.d.ts +30 -30
  8. package/dist/components/InputBase/index.d.ts +7 -0
  9. package/dist/components/NativeSelect/NativeSelect.d.ts +4 -0
  10. package/dist/components/NativeSelect/NativeSelect.stories.d.ts +1 -0
  11. package/dist/components/Paragraph/Paragraph.stories.d.ts +1 -1
  12. package/dist/components/Paragraph/index.d.ts +10 -0
  13. package/dist/components/Select/Select.stories.d.ts +1 -0
  14. package/dist/components/Select/SelectContainer.d.ts +2 -0
  15. package/dist/components/Select/index.d.ts +4 -0
  16. package/dist/components/Table/Table.stories.d.ts +12 -12
  17. package/dist/components/Tag/Tag.stories.d.ts +4 -4
  18. package/dist/components/Textarea/Textarea.stories.d.ts +4 -4
  19. package/dist/components/ToggleButton/ToggleButton.stories.d.ts +8 -8
  20. package/dist/components/ToggleButtonGroup/ToggleButtonGroup.stories.d.ts +4 -4
  21. package/dist/components/Typography/index.d.ts +4 -1
  22. package/dist/esm/index.js +225 -107
  23. package/dist/esm/index.js.map +1 -1
  24. package/dist/properties.json +162 -84
  25. package/dist/react-magma-dom.cjs.development.js +222 -107
  26. package/dist/react-magma-dom.cjs.development.js.map +1 -1
  27. package/dist/react-magma-dom.cjs.production.min.js +1 -1
  28. package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
  29. package/dist/theme/ThemeContext.d.ts +6 -1
  30. package/dist/theme/magma.d.ts +9 -1
  31. package/package.json +1 -1
@@ -13,21 +13,21 @@ export declare const IconPositions: {
13
13
  placeholder: string;
14
14
  helperMessage: any;
15
15
  isInverse?: boolean;
16
- maxLength?: number;
17
- hasCharacterCounter?: boolean;
18
- iconPosition?: InputIconPosition;
19
- inputSize?: InputSize;
20
16
  testId?: string;
17
+ iconPosition?: InputIconPosition;
21
18
  containerStyle?: React.CSSProperties;
22
19
  actionable?: boolean;
23
20
  errorMessage?: React.ReactNode;
21
+ hasCharacterCounter?: boolean;
24
22
  inputLength?: number;
23
+ inputSize?: InputSize;
25
24
  isLabelVisuallyHidden?: boolean;
26
25
  labelPosition?: LabelPosition;
27
26
  labelStyle?: React.CSSProperties;
28
27
  labelText?: React.ReactNode;
29
28
  labelWidth?: number;
30
29
  maxCount?: number;
30
+ maxLength?: number;
31
31
  messageStyle?: React.CSSProperties;
32
32
  children?: any;
33
33
  hasError?: boolean;
@@ -58,10 +58,10 @@ export declare const IconPositions: {
58
58
  formMethod?: string;
59
59
  formNoValidate?: boolean;
60
60
  formTarget?: string;
61
- height?: string | number;
61
+ height?: React.ReactText;
62
62
  list?: string;
63
- max?: string | number;
64
- min?: string | number;
63
+ max?: React.ReactText;
64
+ min?: React.ReactText;
65
65
  minLength?: number;
66
66
  multiple?: boolean;
67
67
  name?: string;
@@ -70,7 +70,7 @@ export declare const IconPositions: {
70
70
  required?: boolean;
71
71
  size?: number;
72
72
  src?: string;
73
- step?: string | number;
73
+ step?: React.ReactText;
74
74
  value?: string | number | readonly string[];
75
75
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
76
76
  defaultChecked?: boolean;
@@ -125,7 +125,7 @@ export declare const IconPositions: {
125
125
  'aria-colindex'?: number;
126
126
  'aria-colspan'?: number;
127
127
  'aria-controls'?: string;
128
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
128
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
129
129
  'aria-describedby'?: string;
130
130
  'aria-details'?: string;
131
131
  'aria-disabled'?: boolean | "true" | "false";
@@ -159,7 +159,7 @@ export declare const IconPositions: {
159
159
  'aria-rowspan'?: number;
160
160
  'aria-selected'?: boolean | "true" | "false";
161
161
  'aria-setsize'?: number;
162
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
162
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
163
163
  'aria-valuemax'?: number;
164
164
  'aria-valuemin'?: number;
165
165
  'aria-valuenow'?: number;
@@ -341,22 +341,22 @@ export declare const WithChildren: {
341
341
  (args: any): JSX.Element;
342
342
  args: {
343
343
  isInverse?: boolean;
344
- maxLength?: number;
345
- hasCharacterCounter?: boolean;
346
- iconPosition?: InputIconPosition;
347
- inputSize?: InputSize;
348
344
  testId?: string;
345
+ iconPosition?: InputIconPosition;
349
346
  containerStyle?: React.CSSProperties;
350
347
  actionable?: boolean;
351
348
  errorMessage?: React.ReactNode;
349
+ hasCharacterCounter?: boolean;
352
350
  helperMessage?: React.ReactNode;
353
351
  inputLength?: number;
352
+ inputSize?: InputSize;
354
353
  isLabelVisuallyHidden?: boolean;
355
354
  labelPosition?: LabelPosition;
356
355
  labelStyle?: React.CSSProperties;
357
356
  labelText?: React.ReactNode;
358
357
  labelWidth?: number;
359
358
  maxCount?: number;
359
+ maxLength?: number;
360
360
  messageStyle?: React.CSSProperties;
361
361
  children?: any;
362
362
  hasError?: boolean;
@@ -387,10 +387,10 @@ export declare const WithChildren: {
387
387
  formMethod?: string;
388
388
  formNoValidate?: boolean;
389
389
  formTarget?: string;
390
- height?: string | number;
390
+ height?: React.ReactText;
391
391
  list?: string;
392
- max?: string | number;
393
- min?: string | number;
392
+ max?: React.ReactText;
393
+ min?: React.ReactText;
394
394
  minLength?: number;
395
395
  multiple?: boolean;
396
396
  name?: string;
@@ -400,7 +400,7 @@ export declare const WithChildren: {
400
400
  required?: boolean;
401
401
  size?: number;
402
402
  src?: string;
403
- step?: string | number;
403
+ step?: React.ReactText;
404
404
  value?: string | number | readonly string[];
405
405
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
406
406
  defaultChecked?: boolean;
@@ -455,7 +455,7 @@ export declare const WithChildren: {
455
455
  'aria-colindex'?: number;
456
456
  'aria-colspan'?: number;
457
457
  'aria-controls'?: string;
458
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
458
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
459
459
  'aria-describedby'?: string;
460
460
  'aria-details'?: string;
461
461
  'aria-disabled'?: boolean | "true" | "false";
@@ -489,7 +489,7 @@ export declare const WithChildren: {
489
489
  'aria-rowspan'?: number;
490
490
  'aria-selected'?: boolean | "true" | "false";
491
491
  'aria-setsize'?: number;
492
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
492
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
493
493
  'aria-valuemax'?: number;
494
494
  'aria-valuemin'?: number;
495
495
  'aria-valuenow'?: number;
@@ -668,22 +668,22 @@ export declare const WithTwoIcons: {
668
668
  (args: any): JSX.Element;
669
669
  args: {
670
670
  isInverse?: boolean;
671
- maxLength?: number;
672
- hasCharacterCounter?: boolean;
673
- iconPosition?: InputIconPosition;
674
- inputSize?: InputSize;
675
671
  testId?: string;
672
+ iconPosition?: InputIconPosition;
676
673
  containerStyle?: React.CSSProperties;
677
674
  actionable?: boolean;
678
675
  errorMessage?: React.ReactNode;
676
+ hasCharacterCounter?: boolean;
679
677
  helperMessage?: React.ReactNode;
680
678
  inputLength?: number;
679
+ inputSize?: InputSize;
681
680
  isLabelVisuallyHidden?: boolean;
682
681
  labelPosition?: LabelPosition;
683
682
  labelStyle?: React.CSSProperties;
684
683
  labelText?: React.ReactNode;
685
684
  labelWidth?: number;
686
685
  maxCount?: number;
686
+ maxLength?: number;
687
687
  messageStyle?: React.CSSProperties;
688
688
  children?: any;
689
689
  hasError?: boolean;
@@ -714,10 +714,10 @@ export declare const WithTwoIcons: {
714
714
  formMethod?: string;
715
715
  formNoValidate?: boolean;
716
716
  formTarget?: string;
717
- height?: string | number;
717
+ height?: React.ReactText;
718
718
  list?: string;
719
- max?: string | number;
720
- min?: string | number;
719
+ max?: React.ReactText;
720
+ min?: React.ReactText;
721
721
  minLength?: number;
722
722
  multiple?: boolean;
723
723
  name?: string;
@@ -727,7 +727,7 @@ export declare const WithTwoIcons: {
727
727
  required?: boolean;
728
728
  size?: number;
729
729
  src?: string;
730
- step?: string | number;
730
+ step?: React.ReactText;
731
731
  value?: string | number | readonly string[];
732
732
  onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
733
733
  defaultChecked?: boolean;
@@ -782,7 +782,7 @@ export declare const WithTwoIcons: {
782
782
  'aria-colindex'?: number;
783
783
  'aria-colspan'?: number;
784
784
  'aria-controls'?: string;
785
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
785
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
786
786
  'aria-describedby'?: string;
787
787
  'aria-details'?: string;
788
788
  'aria-disabled'?: boolean | "true" | "false";
@@ -816,7 +816,7 @@ export declare const WithTwoIcons: {
816
816
  'aria-rowspan'?: number;
817
817
  'aria-selected'?: boolean | "true" | "false";
818
818
  'aria-setsize'?: number;
819
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
819
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
820
820
  'aria-valuemax'?: number;
821
821
  'aria-valuemin'?: number;
822
822
  'aria-valuenow'?: number;
@@ -147,4 +147,11 @@ export interface InputBaseStylesProps {
147
147
  }
148
148
  export declare const inputBaseStyles: (props: InputBaseStylesProps) => import("@emotion/utils").SerializedStyles;
149
149
  export declare const InputWrapper: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, InputWrapperStylesProps, ThemeInterface>;
150
+ export declare const IconButtonContainer: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
151
+ iconPosition?: InputIconPosition;
152
+ inputSize?: InputSize;
153
+ theme: ThemeInterface;
154
+ isClickable?: boolean;
155
+ hasChildren?: boolean;
156
+ }, ThemeInterface>;
150
157
  export declare const InputBase: React.ForwardRefExoticComponent<InputBaseProps & React.RefAttributes<HTMLInputElement>>;
@@ -4,6 +4,10 @@ import { FormFieldContainerBaseProps } from '../FormFieldContainer';
4
4
  * @children required
5
5
  */
6
6
  export interface NativeSelectProps extends Omit<FormFieldContainerBaseProps, 'inputSize'>, React.SelectHTMLAttributes<HTMLSelectElement> {
7
+ /**
8
+ * Content above the select. For use with Icon Buttons to relay information.
9
+ */
10
+ additionalContent?: React.ReactNode;
7
11
  /**
8
12
  * @internal
9
13
  */
@@ -3,6 +3,7 @@ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@s
3
3
  export default _default;
4
4
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
5
5
  export declare const Disabled: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
6
+ export declare const WithContent: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
6
7
  export declare const HasError: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
7
8
  export declare const HelperMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
8
9
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, NativeSelectProps>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
3
3
  export default _default;
4
- export declare const Default: () => JSX.Element;
4
+ export declare const Default: (args: any) => JSX.Element;
@@ -20,6 +20,16 @@ export interface ParagraphProps extends React.HTMLAttributes<HTMLParagraphElemen
20
20
  * @default false
21
21
  */
22
22
  noMargins?: boolean;
23
+ /**
24
+ * If true, the component will not have the default bottom margin and instead will have a value of 0
25
+ * @default false
26
+ */
27
+ noBottomMargin?: boolean;
28
+ /**
29
+ * If true, the component will not have the default top margin and instead will have a value of 0
30
+ * @default false
31
+ */
32
+ noTopMargin?: boolean;
23
33
  /**
24
34
  * @internal
25
35
  */
@@ -5,6 +5,7 @@ export default _default;
5
5
  export declare const Default: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
6
6
  export declare const Disabled: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
7
7
  export declare const Multi: (props: MultiSelectProps<SelectOptions>) => JSX.Element;
8
+ export declare const WithContent: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, any>;
8
9
  export declare const ErrorMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
9
10
  export declare const HelperMessage: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
10
11
  export declare const Inverse: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react/types-6-0").ReactFramework, SelectProps<any>>;
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  import { LabelPosition } from '../Label';
3
3
  import { UseSelectGetLabelPropsOptions } from 'downshift';
4
4
  export declare const SelectContainerElement: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
5
+ isLabelVisuallyHidden?: boolean;
5
6
  labelPosition?: LabelPosition;
6
7
  labelWidth?: number;
7
8
  }, object>;
8
9
  interface SelectContainerInterface<T> {
10
+ additionalContent?: React.ReactNode;
9
11
  children: React.ReactNode[];
10
12
  containerStyle?: React.CSSProperties;
11
13
  errorMessage?: React.ReactNode;
@@ -94,6 +94,10 @@ export interface InternalMultiProps<T> {
94
94
  onRemoveSelectedItem?: (removedItem: T) => void;
95
95
  }
96
96
  export interface SelectProps<T extends SelectOptions> extends UseSelectProps<T>, InternalSelectProps<T> {
97
+ /**
98
+ * Content above the select. For use with Icon Buttons to relay information.
99
+ */
100
+ additionalContent?: React.ReactNode;
97
101
  /**
98
102
  * Id of the element that describes the select trigger button
99
103
  */
@@ -80,7 +80,7 @@ export declare const ControlledPagination: {
80
80
  'aria-colindex'?: number;
81
81
  'aria-colspan'?: number;
82
82
  'aria-controls'?: string;
83
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
83
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
84
84
  'aria-describedby'?: string;
85
85
  'aria-details'?: string;
86
86
  'aria-disabled'?: boolean | "true" | "false";
@@ -114,7 +114,7 @@ export declare const ControlledPagination: {
114
114
  'aria-rowspan'?: number;
115
115
  'aria-selected'?: boolean | "true" | "false";
116
116
  'aria-setsize'?: number;
117
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
117
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
118
118
  'aria-valuemax'?: number;
119
119
  'aria-valuemin'?: number;
120
120
  'aria-valuenow'?: number;
@@ -364,7 +364,7 @@ export declare const PaginationInverse: {
364
364
  'aria-colindex'?: number;
365
365
  'aria-colspan'?: number;
366
366
  'aria-controls'?: string;
367
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
367
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
368
368
  'aria-describedby'?: string;
369
369
  'aria-details'?: string;
370
370
  'aria-disabled'?: boolean | "true" | "false";
@@ -398,7 +398,7 @@ export declare const PaginationInverse: {
398
398
  'aria-rowspan'?: number;
399
399
  'aria-selected'?: boolean | "true" | "false";
400
400
  'aria-setsize'?: number;
401
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
401
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
402
402
  'aria-valuemax'?: number;
403
403
  'aria-valuemin'?: number;
404
404
  'aria-valuenow'?: number;
@@ -639,7 +639,7 @@ export declare const RowColors: {
639
639
  'aria-colindex'?: number;
640
640
  'aria-colspan'?: number;
641
641
  'aria-controls'?: string;
642
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
642
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
643
643
  'aria-describedby'?: string;
644
644
  'aria-details'?: string;
645
645
  'aria-disabled'?: boolean | "true" | "false";
@@ -673,7 +673,7 @@ export declare const RowColors: {
673
673
  'aria-rowspan'?: number;
674
674
  'aria-selected'?: boolean | "true" | "false";
675
675
  'aria-setsize'?: number;
676
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
676
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
677
677
  'aria-valuemax'?: number;
678
678
  'aria-valuemin'?: number;
679
679
  'aria-valuenow'?: number;
@@ -913,7 +913,7 @@ export declare const RowColorsInverse: {
913
913
  'aria-colindex'?: number;
914
914
  'aria-colspan'?: number;
915
915
  'aria-controls'?: string;
916
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
916
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
917
917
  'aria-describedby'?: string;
918
918
  'aria-details'?: string;
919
919
  'aria-disabled'?: boolean | "true" | "false";
@@ -947,7 +947,7 @@ export declare const RowColorsInverse: {
947
947
  'aria-rowspan'?: number;
948
948
  'aria-selected'?: boolean | "true" | "false";
949
949
  'aria-setsize'?: number;
950
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
950
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
951
951
  'aria-valuemax'?: number;
952
952
  'aria-valuemin'?: number;
953
953
  'aria-valuenow'?: number;
@@ -1187,7 +1187,7 @@ export declare const Sortable: {
1187
1187
  'aria-colindex'?: number;
1188
1188
  'aria-colspan'?: number;
1189
1189
  'aria-controls'?: string;
1190
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
1190
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
1191
1191
  'aria-describedby'?: string;
1192
1192
  'aria-details'?: string;
1193
1193
  'aria-disabled'?: boolean | "true" | "false";
@@ -1221,7 +1221,7 @@ export declare const Sortable: {
1221
1221
  'aria-rowspan'?: number;
1222
1222
  'aria-selected'?: boolean | "true" | "false";
1223
1223
  'aria-setsize'?: number;
1224
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
1224
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
1225
1225
  'aria-valuemax'?: number;
1226
1226
  'aria-valuemin'?: number;
1227
1227
  'aria-valuenow'?: number;
@@ -1461,7 +1461,7 @@ export declare const WithDropdown: {
1461
1461
  'aria-colindex'?: number;
1462
1462
  'aria-colspan'?: number;
1463
1463
  'aria-controls'?: string;
1464
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
1464
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
1465
1465
  'aria-describedby'?: string;
1466
1466
  'aria-details'?: string;
1467
1467
  'aria-disabled'?: boolean | "true" | "false";
@@ -1495,7 +1495,7 @@ export declare const WithDropdown: {
1495
1495
  'aria-rowspan'?: number;
1496
1496
  'aria-selected'?: boolean | "true" | "false";
1497
1497
  'aria-setsize'?: number;
1498
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
1498
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
1499
1499
  'aria-valuemax'?: number;
1500
1500
  'aria-valuemin'?: number;
1501
1501
  'aria-valuenow'?: number;
@@ -92,7 +92,7 @@ export declare const WithDelete: {
92
92
  'aria-colindex'?: number;
93
93
  'aria-colspan'?: number;
94
94
  'aria-controls'?: string;
95
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
95
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
96
96
  'aria-describedby'?: string;
97
97
  'aria-details'?: string;
98
98
  'aria-disabled'?: boolean | "true" | "false";
@@ -126,7 +126,7 @@ export declare const WithDelete: {
126
126
  'aria-rowspan'?: number;
127
127
  'aria-selected'?: boolean | "true" | "false";
128
128
  'aria-setsize'?: number;
129
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
129
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
130
130
  'aria-valuemax'?: number;
131
131
  'aria-valuemin'?: number;
132
132
  'aria-valuenow'?: number;
@@ -359,7 +359,7 @@ export declare const WithDelete: {
359
359
  'aria-colindex'?: number;
360
360
  'aria-colspan'?: number;
361
361
  'aria-controls'?: string;
362
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
362
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
363
363
  'aria-describedby'?: string;
364
364
  'aria-details'?: string;
365
365
  'aria-disabled'?: boolean | "true" | "false";
@@ -393,7 +393,7 @@ export declare const WithDelete: {
393
393
  'aria-rowspan'?: number;
394
394
  'aria-selected'?: boolean | "true" | "false";
395
395
  'aria-setsize'?: number;
396
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
396
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
397
397
  'aria-valuemax'?: number;
398
398
  'aria-valuemin'?: number;
399
399
  'aria-valuenow'?: number;
@@ -13,11 +13,10 @@ export declare const OnClear: {
13
13
  testId?: string;
14
14
  textareaStyle?: React.CSSProperties;
15
15
  value?: string | number | readonly string[];
16
- maxLength?: number;
17
- hasCharacterCounter?: boolean;
18
16
  iconPosition?: import("../InputBase").InputIconPosition;
19
17
  actionable?: boolean;
20
18
  errorMessage?: React.ReactNode;
19
+ hasCharacterCounter?: boolean;
21
20
  helperMessage?: React.ReactNode;
22
21
  inputLength?: number;
23
22
  isLabelVisuallyHidden?: boolean;
@@ -25,6 +24,7 @@ export declare const OnClear: {
25
24
  labelStyle?: React.CSSProperties;
26
25
  labelText?: React.ReactNode;
27
26
  labelWidth?: number;
27
+ maxLength?: number;
28
28
  messageStyle?: React.CSSProperties;
29
29
  autoComplete?: string;
30
30
  autoFocus?: boolean;
@@ -92,7 +92,7 @@ export declare const OnClear: {
92
92
  'aria-colindex'?: number;
93
93
  'aria-colspan'?: number;
94
94
  'aria-controls'?: string;
95
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
95
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
96
96
  'aria-describedby'?: string;
97
97
  'aria-details'?: string;
98
98
  'aria-disabled'?: boolean | "true" | "false";
@@ -126,7 +126,7 @@ export declare const OnClear: {
126
126
  'aria-rowspan'?: number;
127
127
  'aria-selected'?: boolean | "true" | "false";
128
128
  'aria-setsize'?: number;
129
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
129
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
130
130
  'aria-valuemax'?: number;
131
131
  'aria-valuemin'?: number;
132
132
  'aria-valuenow'?: number;
@@ -79,7 +79,7 @@ export declare const Text: {
79
79
  'aria-colindex'?: number;
80
80
  'aria-colspan'?: number;
81
81
  'aria-controls'?: string;
82
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
82
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
83
83
  'aria-describedby'?: string;
84
84
  'aria-details'?: string;
85
85
  'aria-disabled'?: boolean | "true" | "false";
@@ -112,7 +112,7 @@ export declare const Text: {
112
112
  'aria-rowspan'?: number;
113
113
  'aria-selected'?: boolean | "true" | "false";
114
114
  'aria-setsize'?: number;
115
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
115
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
116
116
  'aria-valuemax'?: number;
117
117
  'aria-valuemin'?: number;
118
118
  'aria-valuenow'?: number;
@@ -358,7 +358,7 @@ export declare const Text: {
358
358
  'aria-colindex'?: number;
359
359
  'aria-colspan'?: number;
360
360
  'aria-controls'?: string;
361
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
361
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
362
362
  'aria-describedby'?: string;
363
363
  'aria-details'?: string;
364
364
  'aria-disabled'?: boolean | "true" | "false";
@@ -392,7 +392,7 @@ export declare const Text: {
392
392
  'aria-rowspan'?: number;
393
393
  'aria-selected'?: boolean | "true" | "false";
394
394
  'aria-setsize'?: number;
395
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
395
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
396
396
  'aria-valuemax'?: number;
397
397
  'aria-valuemin'?: number;
398
398
  'aria-valuenow'?: number;
@@ -643,7 +643,7 @@ export declare const TextAndIcon: {
643
643
  'aria-colindex'?: number;
644
644
  'aria-colspan'?: number;
645
645
  'aria-controls'?: string;
646
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
646
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
647
647
  'aria-describedby'?: string;
648
648
  'aria-details'?: string;
649
649
  'aria-disabled'?: boolean | "true" | "false";
@@ -676,7 +676,7 @@ export declare const TextAndIcon: {
676
676
  'aria-rowspan'?: number;
677
677
  'aria-selected'?: boolean | "true" | "false";
678
678
  'aria-setsize'?: number;
679
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
679
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
680
680
  'aria-valuemax'?: number;
681
681
  'aria-valuemin'?: number;
682
682
  'aria-valuenow'?: number;
@@ -922,7 +922,7 @@ export declare const TextAndIcon: {
922
922
  'aria-colindex'?: number;
923
923
  'aria-colspan'?: number;
924
924
  'aria-controls'?: string;
925
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
925
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
926
926
  'aria-describedby'?: string;
927
927
  'aria-details'?: string;
928
928
  'aria-disabled'?: boolean | "true" | "false";
@@ -956,7 +956,7 @@ export declare const TextAndIcon: {
956
956
  'aria-rowspan'?: number;
957
957
  'aria-selected'?: boolean | "true" | "false";
958
958
  'aria-setsize'?: number;
959
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
959
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
960
960
  'aria-valuemax'?: number;
961
961
  'aria-valuemin'?: number;
962
962
  'aria-valuenow'?: number;
@@ -74,7 +74,7 @@ export declare const AlignmentExample: {
74
74
  'aria-colindex'?: number;
75
75
  'aria-colspan'?: number;
76
76
  'aria-controls'?: string;
77
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
77
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
78
78
  'aria-describedby'?: string;
79
79
  'aria-details'?: string;
80
80
  'aria-disabled'?: boolean | "true" | "false";
@@ -108,7 +108,7 @@ export declare const AlignmentExample: {
108
108
  'aria-rowspan'?: number;
109
109
  'aria-selected'?: boolean | "true" | "false";
110
110
  'aria-setsize'?: number;
111
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
111
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
112
112
  'aria-valuemax'?: number;
113
113
  'aria-valuemin'?: number;
114
114
  'aria-valuenow'?: number;
@@ -349,7 +349,7 @@ export declare const DifferentToggleButtons: {
349
349
  'aria-colindex'?: number;
350
350
  'aria-colspan'?: number;
351
351
  'aria-controls'?: string;
352
- 'aria-current'?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date";
352
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date";
353
353
  'aria-describedby'?: string;
354
354
  'aria-details'?: string;
355
355
  'aria-disabled'?: boolean | "true" | "false";
@@ -383,7 +383,7 @@ export declare const DifferentToggleButtons: {
383
383
  'aria-rowspan'?: number;
384
384
  'aria-selected'?: boolean | "true" | "false";
385
385
  'aria-setsize'?: number;
386
- 'aria-sort'?: "none" | "ascending" | "descending" | "other";
386
+ 'aria-sort'?: "none" | "other" | "ascending" | "descending";
387
387
  'aria-valuemax'?: number;
388
388
  'aria-valuemin'?: number;
389
389
  'aria-valuenow'?: number;
@@ -7,6 +7,8 @@ export interface TypographyProps<T = HTMLParagraphElement> extends React.HTMLAtt
7
7
  element?: string;
8
8
  isInverse?: boolean;
9
9
  noMargins?: boolean;
10
+ noBottomMargin?: boolean;
11
+ noTopMargin?: boolean;
10
12
  ref?: any;
11
13
  /**
12
14
  * @internal
@@ -40,7 +42,8 @@ export declare enum TypographyVisualStyle {
40
42
  bodyXSmall = "bodyXSmall"
41
43
  }
42
44
  export declare function getBodyFontFamily(props: any): any;
43
- export declare const colorStyles: (props: any) => import("@emotion/utils").SerializedStyles;
45
+ export declare function getBaseFontColor(props: any, isHeading?: boolean): any;
46
+ export declare const colorStyles: (props: any, isHeading: boolean) => import("@emotion/utils").SerializedStyles;
44
47
  export declare const paragraphLargeStyles: (props: any) => import("@emotion/utils").SerializedStyles;
45
48
  export declare const paragraphMediumStyles: (props: any) => import("@emotion/utils").SerializedStyles;
46
49
  export declare const paragraphSmallStyles: (props: any) => import("@emotion/utils").SerializedStyles;