react-magma-dom 6.0.0-next.0 → 6.0.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.
- package/dist/components/AlertBase/index.d.ts +1 -1
- package/dist/components/Badge/index.d.ts +5 -4
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +22 -0
- package/dist/components/CharacterCounter/CharacterCounter.d.ts +4 -0
- package/dist/components/Checkbox/index.d.ts +7 -1
- package/dist/components/DatePicker/DateField/DateFieldInput.d.ts +1 -0
- package/dist/components/DatePicker/DateField/StyledDateFieldInput.d.ts +1 -0
- package/dist/components/Dropdown/DropdownMenuItem.d.ts +2 -0
- package/dist/components/FormFieldContainer/FormFieldContainer.d.ts +22 -0
- package/dist/components/Input/InputMessage.d.ts +6 -0
- package/dist/components/InputBase/index.d.ts +53 -0
- package/dist/components/Label/index.d.ts +8 -0
- package/dist/components/NativeSelect/NativeSelect.d.ts +4 -3
- package/dist/components/NavTabs/NavTab.d.ts +6 -2
- package/dist/components/NavTabs/NavTabs.d.ts +6 -1
- package/dist/components/Radio/index.d.ts +1 -1
- package/dist/components/Select/components.d.ts +1 -1
- package/dist/components/Select/shared.d.ts +4 -0
- package/dist/components/SelectionControls/StyledLabel.d.ts +1 -0
- package/dist/components/StyledButton/styles.d.ts +2 -0
- package/dist/components/Tabs/Tab.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +18 -6
- package/dist/components/Tag/Tag.d.ts +8 -4
- package/dist/components/TimePicker/TimePicker.d.ts +2 -0
- package/dist/components/TimePicker/useTimePicker.d.ts +5 -0
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/TreeView/utils.d.ts +2 -1
- package/dist/esm/index.js +2140 -1374
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/properties.json +860 -318
- package/dist/react-magma-dom.cjs.development.js +2102 -1360
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/dist/theme/GlobalStyles/index.d.ts +2 -0
- package/dist/theme/ThemeContext.d.ts +2 -674
- package/dist/theme/magma.d.ts +237 -82
- package/package.json +1 -1
|
@@ -33,7 +33,7 @@ export interface AlertBaseProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
33
33
|
}
|
|
34
34
|
export declare const transitionDuration = 500;
|
|
35
35
|
export declare function buildAlertBackground(props: any): any;
|
|
36
|
-
export declare function buildAlertBorder(props: any):
|
|
36
|
+
export declare function buildAlertBorder(props: any): string;
|
|
37
37
|
export declare function buildAlertColor(props: any): any;
|
|
38
38
|
export declare function buildLinkColor(props: any): any;
|
|
39
39
|
export declare function buildLinkHoverColor(props: any): any;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { IconProps } from 'react-magma-icons';
|
|
3
|
-
/**
|
|
4
|
-
* @children required
|
|
5
|
-
*/
|
|
6
3
|
export interface BadgeProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/**
|
|
5
|
+
* @children required
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
7
8
|
/**
|
|
8
9
|
* The color variant of the badge
|
|
9
10
|
* @default BadgeColor.primary
|
|
@@ -54,7 +55,7 @@ export declare enum BadgeWeight {
|
|
|
54
55
|
default = "default",
|
|
55
56
|
light = "light"
|
|
56
57
|
}
|
|
57
|
-
export declare function buildInverseLightWeightBadgeBackground(props: any):
|
|
58
|
+
export declare function buildInverseLightWeightBadgeBackground(props: any): any;
|
|
58
59
|
export declare function buildLightWeightBadgeBackground(props: any): any;
|
|
59
60
|
export declare function buildBadgeBackground(props: any): any;
|
|
60
61
|
export declare function buildInverseLightWeightBadgeTextColor(props: any): any;
|
|
@@ -18,6 +18,16 @@ export interface CardProps extends React.LabelHTMLAttributes<HTMLDivElement> {
|
|
|
18
18
|
* @default none
|
|
19
19
|
*/
|
|
20
20
|
calloutType?: CardCalloutType;
|
|
21
|
+
/**
|
|
22
|
+
* Sets the radius size used by the card corners.
|
|
23
|
+
* @default CardBorderRadius.medium
|
|
24
|
+
*/
|
|
25
|
+
borderRadius?: CardBorderRadius;
|
|
26
|
+
/**
|
|
27
|
+
* Sets whether all corners are rounded or the top-left corner is square.
|
|
28
|
+
* @default CardCornerTreatment.all
|
|
29
|
+
*/
|
|
30
|
+
cornerTreatment?: CardCornerTreatment;
|
|
21
31
|
/**
|
|
22
32
|
* If true, card will render with a box-shadow
|
|
23
33
|
* @default false
|
|
@@ -45,6 +55,18 @@ export declare enum CardCalloutType {
|
|
|
45
55
|
warning = "warning",
|
|
46
56
|
info = "info"
|
|
47
57
|
}
|
|
58
|
+
export declare enum CardBorderRadius {
|
|
59
|
+
none = "none",
|
|
60
|
+
extraSmall = "extraSmall",
|
|
61
|
+
small = "small",
|
|
62
|
+
medium = "medium",
|
|
63
|
+
large = "large",
|
|
64
|
+
extraLarge = "extraLarge"
|
|
65
|
+
}
|
|
66
|
+
export declare enum CardCornerTreatment {
|
|
67
|
+
all = "all",
|
|
68
|
+
squareTopLeft = "squareTopLeft"
|
|
69
|
+
}
|
|
48
70
|
export declare function buildCalloutBackground(props: CardProps & {
|
|
49
71
|
theme: ThemeInterface;
|
|
50
72
|
}): string;
|
|
@@ -12,7 +12,7 @@ export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElemen
|
|
|
12
12
|
checked?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Hex code for the background color
|
|
15
|
-
* @default #
|
|
15
|
+
* @default #007085 (theme.colors.cyan700)
|
|
16
16
|
*/
|
|
17
17
|
color?: string;
|
|
18
18
|
/**
|
|
@@ -82,13 +82,19 @@ export declare const HiddenInput: React.FC<React.InputHTMLAttributes<HTMLInputEl
|
|
|
82
82
|
interface FakeInputStyleProps {
|
|
83
83
|
isChecked?: boolean;
|
|
84
84
|
color: string;
|
|
85
|
+
disabledColor?: string;
|
|
85
86
|
disabled?: boolean;
|
|
86
87
|
isIndeterminate?: boolean;
|
|
87
88
|
isInverse?: boolean;
|
|
88
89
|
hasError?: boolean;
|
|
89
90
|
hideFocus?: boolean;
|
|
91
|
+
inverseCheckedColor?: string;
|
|
92
|
+
inverseDisabledColor?: string;
|
|
93
|
+
inverseErrorColor?: string;
|
|
94
|
+
inverseUncheckedColor?: string;
|
|
90
95
|
textPosition?: CheckboxTextPosition;
|
|
91
96
|
theme: ThemeInterface;
|
|
97
|
+
uncheckedColor?: string;
|
|
92
98
|
}
|
|
93
99
|
export interface StyledFakeInputProps extends FakeInputStyleProps {
|
|
94
100
|
children?: React.ReactNode;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ReferenceType } from '@floating-ui/react-dom';
|
|
3
3
|
import { FormFieldContainerBaseProps } from '../../FormFieldContainer';
|
|
4
4
|
export interface DateFieldInputProps extends Omit<FormFieldContainerBaseProps, 'inputSize' | 'fieldId'> {
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
id?: string;
|
|
6
7
|
dateFormat?: string;
|
|
7
8
|
inputStyle?: React.CSSProperties;
|
|
@@ -4,6 +4,7 @@ export declare const InputsContainer: import("@emotion/styled").StyledComponent<
|
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: import("react").ElementType<any>;
|
|
6
6
|
} & {
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
hasError?: boolean;
|
|
8
9
|
isInverse?: boolean;
|
|
9
10
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -30,11 +30,13 @@ export interface DropdownMenuItemProps extends Omit<React.HTMLAttributes<HTMLDiv
|
|
|
30
30
|
}
|
|
31
31
|
export declare function menuColors(props: any): any;
|
|
32
32
|
export declare function menuBackground(props: any): any;
|
|
33
|
+
export declare function menuFocusBackground(): string;
|
|
33
34
|
export declare const MenuItemStyles: (props: any) => import("@emotion/react").SerializedStyles;
|
|
34
35
|
export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
|
|
35
36
|
theme?: import("@emotion/react").Theme;
|
|
36
37
|
as?: React.ElementType<any>;
|
|
37
38
|
} & {
|
|
39
|
+
disabled?: boolean;
|
|
38
40
|
isInverse?: boolean;
|
|
39
41
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
40
42
|
export declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { ThemeInterface } from '../../theme/magma';
|
|
2
3
|
import { InputIconPosition, InputSize } from '../InputBase';
|
|
3
4
|
import { LabelPosition } from '../Label';
|
|
4
5
|
/**
|
|
@@ -20,6 +21,14 @@ export interface FormFieldContainerBaseProps {
|
|
|
20
21
|
* Content of the error message. If a value is provided, the field will be styled as an error state and the error message will display.
|
|
21
22
|
*/
|
|
22
23
|
errorMessage?: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
errorMessageColor?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
errorIconColor?: string;
|
|
23
32
|
/**
|
|
24
33
|
* ID of the form field. Also used in the description ID.
|
|
25
34
|
*/
|
|
@@ -72,6 +81,14 @@ export interface FormFieldContainerBaseProps {
|
|
|
72
81
|
* If the labelPosition value is 'left' then Input labels have a specified width in percentage, otherwise no width is set.
|
|
73
82
|
*/
|
|
74
83
|
labelWidth?: number;
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
labelColor?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
91
|
+
labelFontWeight?: React.CSSProperties['fontWeight'];
|
|
75
92
|
/**
|
|
76
93
|
* Enables the Character Counter and sets the maximum amount of characters allowed within the Input.
|
|
77
94
|
*/
|
|
@@ -85,6 +102,10 @@ export interface FormFieldContainerBaseProps {
|
|
|
85
102
|
* Style properties for the helper or error message
|
|
86
103
|
*/
|
|
87
104
|
messageStyle?: React.CSSProperties;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
messageColor?: string;
|
|
88
109
|
/**
|
|
89
110
|
* @internal
|
|
90
111
|
*/
|
|
@@ -94,4 +115,5 @@ export interface FormFieldContainerBaseProps {
|
|
|
94
115
|
*/
|
|
95
116
|
additionalContent?: React.ReactNode;
|
|
96
117
|
}
|
|
118
|
+
export declare const getInputFormFieldColors: (theme: ThemeInterface, isInverse: boolean) => Pick<FormFieldContainerBaseProps, 'errorIconColor' | 'errorMessageColor' | 'labelColor' | 'labelFontWeight' | 'messageColor'>;
|
|
97
119
|
export declare const FormFieldContainer: React.ForwardRefExoticComponent<FormFieldContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { InputSize } from '../InputBase';
|
|
3
3
|
export interface InputMessageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
errorColor?: string;
|
|
5
|
+
errorIconColor?: string;
|
|
4
6
|
hasError?: boolean;
|
|
5
7
|
id?: string;
|
|
6
8
|
/**
|
|
@@ -9,5 +11,9 @@ export interface InputMessageProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
9
11
|
inputSize?: InputSize;
|
|
10
12
|
isInverse?: boolean;
|
|
11
13
|
maxCount?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
messageColor?: string;
|
|
12
18
|
}
|
|
13
19
|
export declare const InputMessage: React.FunctionComponent<InputMessageProps>;
|
|
@@ -23,6 +23,38 @@ export declare enum InputIconPosition {
|
|
|
23
23
|
right = "right"
|
|
24
24
|
}
|
|
25
25
|
export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
borderColor?: string;
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
errorBorderColor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
disabledBackgroundColor?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
disabledBorderColor?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
disabledIconColor?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
*/
|
|
53
|
+
disabledPlaceholderColor?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
disabledTextColor?: string;
|
|
26
58
|
/**
|
|
27
59
|
* @internal
|
|
28
60
|
*/
|
|
@@ -47,6 +79,10 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
47
79
|
* Icon to display within the component
|
|
48
80
|
*/
|
|
49
81
|
icon?: React.ReactElement<IconProps>;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
iconColor?: string;
|
|
50
86
|
/**
|
|
51
87
|
* Text for the aria-label attribute for an icon, if provided
|
|
52
88
|
*/
|
|
@@ -147,6 +183,14 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
147
183
|
* @default LabelPosition.top
|
|
148
184
|
*/
|
|
149
185
|
labelPosition?: LabelPosition;
|
|
186
|
+
/**
|
|
187
|
+
* @internal
|
|
188
|
+
*/
|
|
189
|
+
placeholderColor?: string;
|
|
190
|
+
/**
|
|
191
|
+
* @internal
|
|
192
|
+
*/
|
|
193
|
+
textColor?: string;
|
|
150
194
|
/**
|
|
151
195
|
* If true, label text will be hidden visually, but will still be read by assistive technology
|
|
152
196
|
* @default false
|
|
@@ -163,6 +207,11 @@ export interface InputWrapperStylesProps {
|
|
|
163
207
|
hasError?: boolean;
|
|
164
208
|
disabled?: boolean;
|
|
165
209
|
inputSize?: InputSize;
|
|
210
|
+
backgroundColor?: string;
|
|
211
|
+
borderColor?: string;
|
|
212
|
+
errorBorderColor?: string;
|
|
213
|
+
disabledBackgroundColor?: string;
|
|
214
|
+
disabledBorderColor?: string;
|
|
166
215
|
}
|
|
167
216
|
export declare const inputWrapperStyles: (props: InputWrapperStylesProps) => import("@emotion/react").SerializedStyles;
|
|
168
217
|
export interface InputBaseStylesProps {
|
|
@@ -175,6 +224,10 @@ export interface InputBaseStylesProps {
|
|
|
175
224
|
disabled?: boolean;
|
|
176
225
|
hasError?: boolean;
|
|
177
226
|
isClearable?: boolean;
|
|
227
|
+
placeholderColor?: string;
|
|
228
|
+
textColor?: string;
|
|
229
|
+
disabledPlaceholderColor?: string;
|
|
230
|
+
disabledTextColor?: string;
|
|
178
231
|
}
|
|
179
232
|
export declare const inputBaseStyles: (props: InputBaseStylesProps) => import("@emotion/react").SerializedStyles;
|
|
180
233
|
export declare const InputWrapper: import("@emotion/styled").StyledComponent<{
|
|
@@ -13,10 +13,18 @@ export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement>
|
|
|
13
13
|
* @default LabelPosition.top
|
|
14
14
|
*/
|
|
15
15
|
labelPosition?: LabelPosition;
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
fontWeight?: React.CSSProperties['fontWeight'];
|
|
16
20
|
/**
|
|
17
21
|
* @default InputSize.medium
|
|
18
22
|
*/
|
|
19
23
|
size?: InputSize;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
textColor?: string;
|
|
20
28
|
theme?: ThemeInterface;
|
|
21
29
|
/**
|
|
22
30
|
* @internal
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormFieldContainerBaseProps } from '../FormFieldContainer';
|
|
3
|
-
/**
|
|
4
|
-
* @children required
|
|
5
|
-
*/
|
|
6
3
|
export interface NativeSelectProps extends Omit<FormFieldContainerBaseProps, 'inputSize'>, React.SelectHTMLAttributes<HTMLSelectElement> {
|
|
4
|
+
/**
|
|
5
|
+
* @children required
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
7
8
|
/**
|
|
8
9
|
* Content above the select. For use with Icon Buttons to relay information.
|
|
9
10
|
*/
|
|
@@ -28,7 +28,7 @@ export interface BaseNavTabProps extends React.HTMLAttributes<HTMLAnchorElement>
|
|
|
28
28
|
orientation?: TabsOrientation;
|
|
29
29
|
/**
|
|
30
30
|
* Determines whether the tab appears in all-caps
|
|
31
|
-
* @default TabsTextTransform.
|
|
31
|
+
* @default TabsTextTransform.none
|
|
32
32
|
*/
|
|
33
33
|
textTransform?: TabsTextTransform;
|
|
34
34
|
/**
|
|
@@ -64,9 +64,13 @@ export interface NavTabComponentProps extends BaseNavTabProps {
|
|
|
64
64
|
isFullWidth?: boolean;
|
|
65
65
|
}
|
|
66
66
|
export declare type NavTabProps = XOR<NavTabChildrenProps, NavTabComponentProps>;
|
|
67
|
-
|
|
67
|
+
interface StyledCustomTabProps extends NavTabComponentProps {
|
|
68
|
+
hasStackedIcon?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export declare const StyledCustomTab: React.ForwardRefExoticComponent<StyledCustomTabProps & React.RefAttributes<any>>;
|
|
68
71
|
export declare const NavTab: React.ForwardRefExoticComponent<({} & NavTabComponentProps & React.RefAttributes<any>) | ({
|
|
69
72
|
component?: never;
|
|
70
73
|
iconPosition?: never;
|
|
71
74
|
isFullWidth?: never;
|
|
72
75
|
} & NavTabChildrenProps & React.RefAttributes<any>)>;
|
|
76
|
+
export {};
|
|
@@ -2,8 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
import { TabsBorderPosition, TabsIconPosition, TabsProps } from '../Tabs';
|
|
3
3
|
import { Omit } from '../../utils';
|
|
4
4
|
import { TabsOrientation, TabsTextTransform } from '../Tabs/shared';
|
|
5
|
-
export interface NavTabsProps extends Omit<TabsProps, 'onChange'> {
|
|
5
|
+
export interface NavTabsProps extends Omit<TabsProps, 'hasBorder' | 'onChange'> {
|
|
6
6
|
'aria-label'?: string;
|
|
7
|
+
/**
|
|
8
|
+
* If true, a divider border is displayed
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
hasBorder?: boolean;
|
|
7
12
|
}
|
|
8
13
|
interface NavTabsContextInterface {
|
|
9
14
|
borderPosition?: TabsBorderPosition;
|
|
@@ -23,7 +23,7 @@ export declare type SelectComponents<T> = {
|
|
|
23
23
|
export declare const DefaultClearIndicator: (props: any) => React.JSX.Element;
|
|
24
24
|
export declare const DefaultDropdownIndicator: (props: any) => React.JSX.Element;
|
|
25
25
|
export declare const DefaultLoadingIndicator: (props: any) => React.JSX.Element;
|
|
26
|
-
export declare function DefaultItem<T>({ itemRef, itemString, isInverse, isDisabled, isSelected, ...props }: ItemRenderOptions<T>): React.JSX.Element;
|
|
26
|
+
export declare function DefaultItem<T>({ itemRef, itemString, isInverse, isDisabled, isSelected, theme, ...props }: ItemRenderOptions<T>): React.JSX.Element;
|
|
27
27
|
export declare function defaultComponents<T>(props: SelectComponents<T>): {
|
|
28
28
|
ClearIndicator: React.FunctionComponent<({} & import("../IconButton").IconTextButtonProps) | ({
|
|
29
29
|
children?: never;
|
|
@@ -39,6 +39,10 @@ export declare const StyledItem: import("@emotion/styled").StyledComponent<{
|
|
|
39
39
|
isFocused?: boolean;
|
|
40
40
|
isDisabled?: boolean;
|
|
41
41
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
42
|
+
export declare const SelectedItemIndicator: import("@emotion/styled").StyledComponent<{
|
|
43
|
+
theme?: import("@emotion/react").Theme;
|
|
44
|
+
as?: import("react").ElementType<any>;
|
|
45
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
42
46
|
export declare const SelectedItemsWrapper: import("@emotion/styled").StyledComponent<{
|
|
43
47
|
theme?: import("@emotion/react").Theme;
|
|
44
48
|
as?: import("react").ElementType<any>;
|
|
@@ -9,6 +9,8 @@ export declare function buildBorderWidth(props: any): "1px solid" | 0;
|
|
|
9
9
|
export declare function buildBorderColor(props: any): any;
|
|
10
10
|
export declare function buildColor(props: any): any;
|
|
11
11
|
export declare function buildFocusBackground(props: any): any;
|
|
12
|
+
export declare function buildHoverBackground(props: any): any;
|
|
12
13
|
export declare function buildFocusColor(props: any): any;
|
|
14
|
+
export declare function buildHoverColor(props: any): any;
|
|
13
15
|
export declare function buildActiveBackground(props: any): any;
|
|
14
16
|
export declare function buildActiveColor(props: any): any;
|
|
@@ -15,7 +15,7 @@ export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement>
|
|
|
15
15
|
unstyled?: boolean;
|
|
16
16
|
/**
|
|
17
17
|
* Determines whether the tab appears in all-caps
|
|
18
|
-
* @default TabsTextTransform.
|
|
18
|
+
* @default TabsTextTransform.none
|
|
19
19
|
*/
|
|
20
20
|
textTransform?: TabsTextTransform;
|
|
21
21
|
/**
|
|
@@ -47,6 +47,11 @@ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
|
|
|
47
47
|
* @default TabsIconPosition.left
|
|
48
48
|
*/
|
|
49
49
|
iconPosition?: TabsIconPosition;
|
|
50
|
+
/**
|
|
51
|
+
* If false, the divider border is hidden
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
hasBorder?: boolean;
|
|
50
55
|
/**
|
|
51
56
|
* If true, the components takes the full width of the screen
|
|
52
57
|
*/
|
|
@@ -62,7 +67,7 @@ export interface TabsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'o
|
|
|
62
67
|
orientation?: TabsOrientation;
|
|
63
68
|
/**
|
|
64
69
|
* Determines whether the tab appears in all-caps
|
|
65
|
-
* @default TabsTextTransform.
|
|
70
|
+
* @default TabsTextTransform.none
|
|
66
71
|
*/
|
|
67
72
|
textTransform?: TabsTextTransform;
|
|
68
73
|
/**
|
|
@@ -82,20 +87,25 @@ interface TabsContextInterface {
|
|
|
82
87
|
registerTabButton: (itemRefArray: React.MutableRefObject<React.MutableRefObject<Element>[]>, itemRef: React.MutableRefObject<Element>) => void;
|
|
83
88
|
}
|
|
84
89
|
export declare const TabsContext: React.Context<TabsContextInterface>;
|
|
85
|
-
|
|
86
|
-
theme?: import("@emotion/react").Theme;
|
|
87
|
-
as?: React.ElementType<any>;
|
|
88
|
-
} & {
|
|
90
|
+
interface StyledContainerProps {
|
|
89
91
|
as?: string;
|
|
92
|
+
borderPosition?: TabsBorderPosition;
|
|
93
|
+
hasBorder?: boolean;
|
|
90
94
|
orientation: TabsOrientation;
|
|
91
95
|
isInverse: boolean;
|
|
92
96
|
backgroundColor: string;
|
|
93
97
|
theme: ThemeInterface;
|
|
94
|
-
}
|
|
98
|
+
}
|
|
99
|
+
export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
|
|
100
|
+
theme?: import("@emotion/react").Theme;
|
|
101
|
+
as?: React.ElementType<any>;
|
|
102
|
+
} & StyledContainerProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
95
103
|
export declare const StyledTabsWrapper: import("@emotion/styled").StyledComponent<{
|
|
96
104
|
theme?: import("@emotion/react").Theme;
|
|
97
105
|
as?: React.ElementType<any>;
|
|
98
106
|
} & {
|
|
107
|
+
borderPosition?: TabsBorderPosition;
|
|
108
|
+
hasBorder?: boolean;
|
|
99
109
|
orientation: TabsOrientation;
|
|
100
110
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
101
111
|
export declare const StyledTabs: import("@emotion/styled").StyledComponent<{
|
|
@@ -103,6 +113,8 @@ export declare const StyledTabs: import("@emotion/styled").StyledComponent<{
|
|
|
103
113
|
as?: React.ElementType<any>;
|
|
104
114
|
} & {
|
|
105
115
|
alignment?: TabsAlignment;
|
|
116
|
+
borderPosition?: TabsBorderPosition;
|
|
117
|
+
hasBorder?: boolean;
|
|
106
118
|
orientation: TabsOrientation;
|
|
107
119
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
108
120
|
export declare const Tabs: React.ForwardRefExoticComponent<(TabsProps & VerticalTabsProps & React.RefAttributes<HTMLDivElement>) | (TabsProps & HorizontalTabsProps & React.RefAttributes<HTMLDivElement>)>;
|
|
@@ -10,16 +10,20 @@ export declare enum TagColor {
|
|
|
10
10
|
blue = "blue",
|
|
11
11
|
teal = "teal",
|
|
12
12
|
pink = "pink",
|
|
13
|
-
purple = "purple"
|
|
13
|
+
purple = "purple",
|
|
14
|
+
tangerine = "tangerine",
|
|
15
|
+
indigo = "indigo",
|
|
16
|
+
violet = "violet"
|
|
14
17
|
}
|
|
15
18
|
export declare enum TagSize {
|
|
16
19
|
medium = "medium",
|
|
17
20
|
small = "small"
|
|
18
21
|
}
|
|
19
|
-
/**
|
|
20
|
-
* @children required
|
|
21
|
-
*/
|
|
22
22
|
export interface BaseTagProps extends Omit<React.HTMLAttributes<HTMLButtonElement>, 'onClick'> {
|
|
23
|
+
/**
|
|
24
|
+
* @children required
|
|
25
|
+
*/
|
|
26
|
+
children: React.ReactNode;
|
|
23
27
|
/**
|
|
24
28
|
* Color changes between 'primary', 'low contrast', and 'high contrast' style variants between each Tag.
|
|
25
29
|
* @default TagColor.default
|
|
@@ -8,6 +8,7 @@ export interface TimePickerProps extends UseTimePickerProps {
|
|
|
8
8
|
inputStyle?: React.CSSProperties;
|
|
9
9
|
}
|
|
10
10
|
interface StyledNumInputProps {
|
|
11
|
+
disabled?: boolean;
|
|
11
12
|
isFocused?: boolean;
|
|
12
13
|
isInverse?: boolean;
|
|
13
14
|
size?: number;
|
|
@@ -17,6 +18,7 @@ export declare const Divider: import("@emotion/styled").StyledComponent<{
|
|
|
17
18
|
theme?: import("@emotion/react").Theme;
|
|
18
19
|
as?: React.ElementType<any>;
|
|
19
20
|
} & {
|
|
21
|
+
disabled?: boolean;
|
|
20
22
|
isInverse?: boolean;
|
|
21
23
|
isFocused?: boolean;
|
|
22
24
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -2,6 +2,11 @@ import * as React from 'react';
|
|
|
2
2
|
import { Omit } from '../../utils';
|
|
3
3
|
import { FormFieldContainerBaseProps } from '../FormFieldContainer';
|
|
4
4
|
export interface UseTimePickerProps extends Omit<FormFieldContainerBaseProps, 'inputSize' | 'fieldId'> {
|
|
5
|
+
/**
|
|
6
|
+
* If true, the time picker cannot be edited.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
disabled?: boolean;
|
|
5
10
|
/**
|
|
6
11
|
* ID of the hidden input that stores the time value. Also the prefix for other fields.
|
|
7
12
|
*/
|
|
@@ -66,7 +66,7 @@ export declare enum ToggleButtonRole {
|
|
|
66
66
|
}
|
|
67
67
|
export declare function getToggleButtonRole(groupRole?: ToggleButtonGroupRole, exclusive?: boolean): ToggleButtonRole;
|
|
68
68
|
export declare function setIconWidth(props: ToggleButtonIconProps): string;
|
|
69
|
-
export declare function setBackgroundColor(props: any):
|
|
69
|
+
export declare function setBackgroundColor(props: any): any;
|
|
70
70
|
export declare const ToggleButtonStyles: (props: any) => import("@emotion/react").SerializedStyles;
|
|
71
71
|
export declare const ToggleButton: React.ForwardRefExoticComponent<({} & ToggleButtonIconProps & React.RefAttributes<HTMLButtonElement>) | ({
|
|
72
72
|
icon?: never;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { TreeItemSelectedInterface, TreeViewItemInterface } from './TreeViewContext';
|
|
2
3
|
import { TreeViewSelectable } from './types';
|
|
3
4
|
import { UseTreeViewProps } from './useTreeView';
|
|
4
5
|
import { ThemeInterface } from '../../theme/magma';
|
|
5
6
|
import { IndeterminateCheckboxStatus } from '../IndeterminateCheckbox';
|
|
6
|
-
import { TreeItemSelectedInterface, TreeViewItemInterface } from './TreeViewContext';
|
|
7
7
|
export declare enum TreeNodeType {
|
|
8
8
|
branch = "branch",
|
|
9
9
|
leaf = "leaf"
|
|
@@ -22,6 +22,7 @@ export declare enum TreeNodeType {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function calculateOffset(type: TreeNodeType, depth?: number, labelElem?: boolean, negative?: boolean, isVirtualized?: boolean): string;
|
|
24
24
|
export declare function getTreeItemLabelColor(isInverse: boolean, disabled: boolean, theme: ThemeInterface): string;
|
|
25
|
+
export declare function getTreeItemIconColor(isInverse: boolean, disabled: boolean, theme: ThemeInterface): string;
|
|
25
26
|
export declare function getTreeItemWrapperCursor(disabled: boolean, selectable: TreeViewSelectable, nodeType: TreeNodeType): "not-allowed" | "pointer" | "default";
|
|
26
27
|
export declare function getChildrenItemIds(children: any, status?: string): any[];
|
|
27
28
|
export declare function getChildrenItemIdsFlat(children: any): any[];
|