@aws-amplify/ui 5.0.0 → 5.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.
- package/dist/esm/helpers/authenticator/textUtil.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/defaultTexts.js +1 -1
- package/dist/esm/i18n/dictionaries/authenticator/en.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/theme/createTheme.js +1 -1
- package/dist/esm/theme/defaultDarkModeOverride.js +1 -1
- package/dist/esm/theme/tokens/components/fieldControl.js +1 -1
- package/dist/esm/theme/tokens/index.js +1 -1
- package/dist/esm/theme/utils.js +1 -1
- package/dist/esm/types/authenticator/user.js +1 -1
- package/dist/esm/types/authenticator/utils.js +1 -0
- package/dist/index.js +1 -1
- package/dist/styles.css +982 -986
- package/dist/theme.css +983 -989
- package/dist/types/helpers/authenticator/textUtil.d.ts +5 -2
- package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +2 -0
- package/dist/types/i18n/dictionaries/index.d.ts +2 -0
- package/dist/types/i18n/translations.d.ts +2 -0
- package/dist/types/theme/createTheme.d.ts +2 -2
- package/dist/types/theme/defaultDarkModeOverride.d.ts +2 -0
- package/dist/types/theme/defaultTheme.d.ts +2 -2
- package/dist/types/theme/index.d.ts +3 -2
- package/dist/types/theme/tokens/borderWidths.d.ts +5 -19
- package/dist/types/theme/tokens/colors.d.ts +36 -75
- package/dist/types/theme/tokens/components/alert.d.ts +14 -27
- package/dist/types/theme/tokens/components/authenticator.d.ts +26 -46
- package/dist/types/theme/tokens/components/autocomplete.d.ts +12 -41
- package/dist/types/theme/tokens/components/badge.d.ts +15 -28
- package/dist/types/theme/tokens/components/button.d.ts +39 -82
- package/dist/types/theme/tokens/components/card.d.ts +7 -14
- package/dist/types/theme/tokens/components/checkbox.d.ts +27 -80
- package/dist/types/theme/tokens/components/checkboxField.d.ts +3 -8
- package/dist/types/theme/tokens/components/collection.d.ts +20 -28
- package/dist/types/theme/tokens/components/copy.d.ts +8 -20
- package/dist/types/theme/tokens/components/dialCodeSelect.d.ts +3 -5
- package/dist/types/theme/tokens/components/divider.d.ts +8 -20
- package/dist/types/theme/tokens/components/expander.d.ts +21 -68
- package/dist/types/theme/tokens/components/field.d.ts +8 -16
- package/dist/types/theme/tokens/components/fieldControl.d.ts +22 -71
- package/dist/types/theme/tokens/components/fieldGroup.d.ts +6 -14
- package/dist/types/theme/tokens/components/fieldMessages.d.ts +6 -16
- package/dist/types/theme/tokens/components/flex.d.ts +3 -9
- package/dist/types/theme/tokens/components/heading.d.ts +5 -16
- package/dist/types/theme/tokens/components/highlightMatch.d.ts +5 -9
- package/dist/types/theme/tokens/components/icon.d.ts +3 -6
- package/dist/types/theme/tokens/components/image.d.ts +3 -8
- package/dist/types/theme/tokens/components/inAppMessaging.d.ts +12 -27
- package/dist/types/theme/tokens/components/index.d.ts +58 -49
- package/dist/types/theme/tokens/components/link.d.ts +4 -12
- package/dist/types/theme/tokens/components/loader.d.ts +14 -39
- package/dist/types/theme/tokens/components/menu.d.ts +8 -26
- package/dist/types/theme/tokens/components/pagination.d.ts +12 -48
- package/dist/types/theme/tokens/components/passwordField.d.ts +12 -14
- package/dist/types/theme/tokens/components/phoneNumberField.d.ts +4 -9
- package/dist/types/theme/tokens/components/placeholder.d.ts +8 -14
- package/dist/types/theme/tokens/components/radio.d.ts +21 -72
- package/dist/types/theme/tokens/components/radioGroup.d.ts +8 -17
- package/dist/types/theme/tokens/components/rating.d.ts +9 -19
- package/dist/types/theme/tokens/components/searchField.d.ts +12 -15
- package/dist/types/theme/tokens/components/select.d.ts +11 -35
- package/dist/types/theme/tokens/components/selectField.d.ts +6 -14
- package/dist/types/theme/tokens/components/sliderField.d.ts +20 -61
- package/dist/types/theme/tokens/components/stepperField.d.ts +11 -23
- package/dist/types/theme/tokens/components/switchField.d.ts +20 -54
- package/dist/types/theme/tokens/components/table.d.ts +24 -60
- package/dist/types/theme/tokens/components/tabs.d.ts +12 -43
- package/dist/types/theme/tokens/components/text.d.ts +6 -15
- package/dist/types/theme/tokens/components/textAreaField.d.ts +6 -10
- package/dist/types/theme/tokens/components/textField.d.ts +5 -12
- package/dist/types/theme/tokens/components/toggleButton.d.ts +30 -115
- package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +5 -7
- package/dist/types/theme/tokens/fontSizes.d.ts +5 -17
- package/dist/types/theme/tokens/fontWeights.d.ts +5 -16
- package/dist/types/theme/tokens/fonts.d.ts +7 -12
- package/dist/types/theme/tokens/index.d.ts +58 -48
- package/dist/types/theme/tokens/lineHeights.d.ts +5 -10
- package/dist/types/theme/tokens/opacities.d.ts +5 -18
- package/dist/types/theme/tokens/outlineOffsets.d.ts +5 -10
- package/dist/types/theme/tokens/outlineWidths.d.ts +5 -10
- package/dist/types/theme/tokens/radii.d.ts +5 -14
- package/dist/types/theme/tokens/shadows.d.ts +5 -10
- package/dist/types/theme/tokens/space.d.ts +8 -25
- package/dist/types/theme/tokens/time.d.ts +5 -10
- package/dist/types/theme/tokens/transforms.d.ts +7 -13
- package/dist/types/theme/tokens/types/designToken.d.ts +161 -20
- package/dist/types/theme/types.d.ts +7 -8
- package/dist/types/theme/utils.d.ts +30 -2
- package/dist/types/types/authenticator/index.d.ts +1 -0
- package/dist/types/types/authenticator/user.d.ts +7 -0
- package/dist/types/types/authenticator/utils.d.ts +1 -0
- package/package.json +8 -6
- package/dist/esm/theme/tokens/types/designToken.js +0 -1
- package/dist/types/theme/tokens/types/scales.d.ts +0 -13
|
@@ -44,52 +44,61 @@ import { TextAreaFieldTokens } from './textAreaField';
|
|
|
44
44
|
import { TextFieldTokens } from './textField';
|
|
45
45
|
import { ToggleButtonTokens } from './toggleButton';
|
|
46
46
|
import { ToggleButtonGroupTokens } from './toggleButtonGroup';
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
highlightmatch
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
47
|
+
import { OutputVariantKey } from '../types/designToken';
|
|
48
|
+
declare type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
49
|
+
alert?: AlertTokens<Output>;
|
|
50
|
+
authenticator?: AuthenticatorTokens<Output>;
|
|
51
|
+
autocomplete?: AutocompleteTokens<Output>;
|
|
52
|
+
badge?: BadgeTokens<Output>;
|
|
53
|
+
button?: ButtonTokens<Output>;
|
|
54
|
+
card?: CardTokens<Output>;
|
|
55
|
+
checkbox?: CheckboxTokens<Output>;
|
|
56
|
+
checkboxfield?: CheckboxFieldTokens<Output>;
|
|
57
|
+
collection?: CollectionTokens<Output>;
|
|
58
|
+
copy?: CopyTokens<Output>;
|
|
59
|
+
countrycodeselect?: DialCodeSelectTokens<Output>;
|
|
60
|
+
divider?: DividerTokens<Output>;
|
|
61
|
+
expander?: ExpanderTokens<Output>;
|
|
62
|
+
field?: FieldTokens<Output>;
|
|
63
|
+
fieldcontrol?: FieldControlTokens<Output>;
|
|
64
|
+
fieldgroup?: FieldGroupTokens<Output>;
|
|
65
|
+
fieldmessages?: FieldMessagesTokens<Output>;
|
|
66
|
+
flex?: FlexTokens<Output>;
|
|
67
|
+
heading?: HeadingTokens<Output>;
|
|
68
|
+
highlightmatch?: HighlightMatchTokens<Output>;
|
|
69
|
+
icon?: IconTokens<Output>;
|
|
70
|
+
image?: ImageTokens<Output>;
|
|
71
|
+
inappmessaging?: InAppMessagingTokens<Output>;
|
|
72
|
+
link?: LinkTokens<Output>;
|
|
73
|
+
loader?: LoaderTokens<Output>;
|
|
74
|
+
menu?: MenuTokens<Output>;
|
|
75
|
+
pagination?: PaginationTokens<Output>;
|
|
76
|
+
passwordfield?: PasswordFieldTokens<Output>;
|
|
77
|
+
phonenumberfield?: PhoneNumberFieldTokens<Output>;
|
|
78
|
+
placeholder?: PlaceholderTokens<Output>;
|
|
79
|
+
radio?: RadioTokens<Output>;
|
|
80
|
+
radiogroup?: RadioGroupTokens<Output>;
|
|
81
|
+
rating?: RatingTokens<Output>;
|
|
82
|
+
searchfield?: SearchFieldTokens<Output>;
|
|
83
|
+
select?: SelectTokens<Output>;
|
|
84
|
+
selectfield?: SelectFieldTokens<Output>;
|
|
85
|
+
sliderfield?: SliderFieldTokens<Output>;
|
|
86
|
+
stepperfield?: StepperFieldTokens<Output>;
|
|
87
|
+
switchfield?: SwitchFieldTokens<Output>;
|
|
88
|
+
table?: TableTokens<Output>;
|
|
89
|
+
tabs?: TabsTokens<Output>;
|
|
90
|
+
text?: TextTokens<Output>;
|
|
91
|
+
textareafield?: TextAreaFieldTokens<Output>;
|
|
92
|
+
textfield?: TextFieldTokens<Output>;
|
|
93
|
+
togglebutton?: ToggleButtonTokens<Output>;
|
|
94
|
+
togglebuttongroup?: ToggleButtonGroupTokens<Output>;
|
|
95
|
+
};
|
|
96
|
+
export declare type ComponentTokens = BaseComponentTokens<'optional'>;
|
|
97
|
+
export declare type DefaultComponentTokens = Required<{
|
|
98
|
+
[Key in keyof ComponentTokens]: Required<BaseComponentTokens<'default'>[Key]>;
|
|
99
|
+
}>;
|
|
100
|
+
export declare type WebComponentTokens = Required<{
|
|
101
|
+
[Key in keyof ComponentTokens]: Required<BaseComponentTokens<'required'>[Key]>;
|
|
102
|
+
}>;
|
|
103
|
+
export declare const components: DefaultComponentTokens;
|
|
104
|
+
export {};
|
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface LinkTokens {
|
|
6
|
-
active: LinkStateTokens;
|
|
7
|
-
color: DesignToken<ColorValue>;
|
|
8
|
-
focus: LinkStateTokens;
|
|
9
|
-
hover: LinkStateTokens;
|
|
10
|
-
visited: LinkStateTokens;
|
|
11
|
-
}
|
|
12
|
-
export declare const link: LinkTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type LinkState = 'active' | 'focus' | 'hover' | 'visited';
|
|
3
|
+
export declare type LinkTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color'> & Record<LinkState, DesignTokenProperties<'color', Output>>;
|
|
4
|
+
export declare const link: Required<LinkTokens<'default'>>;
|
|
13
5
|
export {};
|
|
@@ -1,40 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
strokeWidth: DesignToken<SpaceValue>;
|
|
16
|
-
strokeFilled: DesignToken<StrokeFilledValue>;
|
|
17
|
-
strokeEmpty: DesignToken<StrokeEmptyValue>;
|
|
18
|
-
strokeLinecap: DesignToken<StrokeLinecapValue>;
|
|
19
|
-
animationDuration: DesignToken<AnimationDurationValue>;
|
|
20
|
-
small: LoaderLinearSizeTokens;
|
|
21
|
-
large: LoaderLinearSizeTokens;
|
|
22
|
-
}
|
|
23
|
-
interface LoaderTextTokens {
|
|
24
|
-
fill: DesignToken<ColorValue>;
|
|
25
|
-
}
|
|
26
|
-
export interface LoaderTokens {
|
|
27
|
-
width: DesignToken<SpaceValue>;
|
|
28
|
-
height: DesignToken<SpaceValue>;
|
|
29
|
-
fontSize: DesignToken<FontSizeValue>;
|
|
30
|
-
strokeEmpty: DesignToken<StrokeEmptyValue>;
|
|
31
|
-
strokeFilled: DesignToken<StrokeFilledValue>;
|
|
32
|
-
strokeLinecap: DesignToken<StrokeLinecapValue>;
|
|
33
|
-
animationDuration: DesignToken<AnimationDurationValue>;
|
|
34
|
-
small: LoaderSizeTokens;
|
|
35
|
-
large: LoaderSizeTokens;
|
|
36
|
-
linear: LoaderLinearTokens;
|
|
37
|
-
text: LoaderTextTokens;
|
|
38
|
-
}
|
|
39
|
-
export declare const loader: LoaderTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type LoaderSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'height' | 'width', Output>;
|
|
3
|
+
declare type LoaderLinearSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'strokeWidth', Output>;
|
|
4
|
+
declare type BaseLoaderTokens<Output> = DesignTokenProperties<'animationDuration' | 'fontSize' | 'height' | 'strokeEmpty' | 'strokeFilled' | 'strokeLinecap' | 'width', Output>;
|
|
5
|
+
export declare type LoaderTokens<Output extends OutputVariantKey> = BaseLoaderTokens<Output> & {
|
|
6
|
+
small?: LoaderSizeTokens<Output>;
|
|
7
|
+
large?: LoaderSizeTokens<Output>;
|
|
8
|
+
linear?: Omit<BaseLoaderTokens<Output> & DesignTokenProperties<'minWidth' | 'strokeWidth', Output> & {
|
|
9
|
+
small?: LoaderLinearSizeTokens<Output>;
|
|
10
|
+
large?: LoaderLinearSizeTokens<Output>;
|
|
11
|
+
}, Output extends 'default' ? 'height' : never>;
|
|
12
|
+
text?: DesignTokenProperties<'fill', Output>;
|
|
13
|
+
};
|
|
14
|
+
export declare const loader: Required<LoaderTokens<'default'>>;
|
|
40
15
|
export {};
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
paddingInlineEnd: DesignToken<SpaceValue>;
|
|
10
|
-
}
|
|
11
|
-
export interface MenuTokens {
|
|
12
|
-
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
13
|
-
borderRadius: DesignToken<BorderRadiusValue>;
|
|
14
|
-
borderWidth: DesignToken<BorderWidthValue>;
|
|
15
|
-
borderStyle: DesignToken<BorderStyleValue>;
|
|
16
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
17
|
-
boxShadow: DesignToken<BoxShadowValue>;
|
|
18
|
-
flexDirection: DesignToken<FlexDirectionValue>;
|
|
19
|
-
gap: DesignToken<GapValue>;
|
|
20
|
-
maxWidth: DesignToken<SpaceValue>;
|
|
21
|
-
minWidth: DesignToken<SpaceValue>;
|
|
22
|
-
small: MenuSizeTokens;
|
|
23
|
-
large: MenuSizeTokens;
|
|
24
|
-
item: MenuItemTokens;
|
|
25
|
-
}
|
|
26
|
-
export declare const menu: MenuTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type MenuSizeTokens<Output> = DesignTokenProperties<'width' | 'height', Output>;
|
|
3
|
+
export declare type MenuTokens<Output extends OutputVariantKey> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'boxShadow' | 'flexDirection' | 'gap' | 'maxWidth' | 'minWidth', Output> & {
|
|
4
|
+
small?: MenuSizeTokens<Output>;
|
|
5
|
+
large?: MenuSizeTokens<Output>;
|
|
6
|
+
item?: DesignTokenProperties<'minHeight' | 'paddingInlineEnd' | 'paddingInlineStart', Output>;
|
|
7
|
+
};
|
|
8
|
+
export declare const menu: Required<MenuTokens<'default'>>;
|
|
27
9
|
export {};
|
|
@@ -1,48 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
alignItems
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
transitionProperty: DesignToken<TransitionPropertyValue>;
|
|
14
|
-
transitionDuration: DesignToken<TransitionDurationValue>;
|
|
15
|
-
hover: PaginationButtonHoverTokens;
|
|
16
|
-
disabled: PaginationButtonDisabledTokens;
|
|
17
|
-
}
|
|
18
|
-
export interface PaginationButtonHoverTokens {
|
|
19
|
-
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
20
|
-
color: DesignToken<ColorValue>;
|
|
21
|
-
}
|
|
22
|
-
export interface PaginationButtonDisabledTokens {
|
|
23
|
-
color: DesignToken<ColorValue>;
|
|
24
|
-
}
|
|
25
|
-
interface PaginationEllipsisTokens {
|
|
26
|
-
alignItems: DesignToken<AlignItemsValue>;
|
|
27
|
-
justifyContent: DesignToken<JustifyContentValue>;
|
|
28
|
-
paddingInlineStart: DesignToken<SpaceValue>;
|
|
29
|
-
paddingInlineEnd: DesignToken<SpaceValue>;
|
|
30
|
-
}
|
|
31
|
-
interface PaginationItemContainerTokens {
|
|
32
|
-
marginLeft: DesignToken<SpaceValue>;
|
|
33
|
-
marginRight: DesignToken<SpaceValue>;
|
|
34
|
-
}
|
|
35
|
-
interface PaginationItemSharedTokens {
|
|
36
|
-
height: DesignToken<SpaceValue>;
|
|
37
|
-
minWidth: DesignToken<SpaceValue>;
|
|
38
|
-
borderRadius: DesignToken<BorderRadiusValue>;
|
|
39
|
-
}
|
|
40
|
-
export interface PaginationTokens {
|
|
41
|
-
current: PaginationCurrentTokens;
|
|
42
|
-
button: PaginationButtonTokens;
|
|
43
|
-
ellipsis: PaginationEllipsisTokens;
|
|
44
|
-
itemContainer: PaginationItemContainerTokens;
|
|
45
|
-
itemShared: PaginationItemSharedTokens;
|
|
46
|
-
}
|
|
47
|
-
export declare const pagination: PaginationTokens;
|
|
48
|
-
export {};
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type PaginationTokens<Output extends OutputVariantKey> = {
|
|
3
|
+
current?: DesignTokenProperties<'alignItems' | 'backgroundColor' | 'color' | 'fontSize' | 'justifyContent', Output>;
|
|
4
|
+
button?: DesignTokenProperties<'color' | 'paddingInlineEnd' | 'paddingInlineStart' | 'transitionDuration' | 'transitionProperty', Output> & {
|
|
5
|
+
hover?: DesignTokenProperties<'backgroundColor' | 'color', Output>;
|
|
6
|
+
disabled?: DesignTokenProperties<'color', Output>;
|
|
7
|
+
};
|
|
8
|
+
ellipsis?: DesignTokenProperties<'alignItems' | 'justifyContent' | 'paddingInlineEnd' | 'paddingInlineStart', Output>;
|
|
9
|
+
itemContainer?: DesignTokenProperties<'marginLeft' | 'marginRight', Output>;
|
|
10
|
+
itemShared?: DesignTokenProperties<'borderRadius' | 'height' | 'minWidth', Output>;
|
|
11
|
+
};
|
|
12
|
+
export declare const pagination: Required<PaginationTokens<'default'>>;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export declare const passwordfield: PasswordFieldTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
declare type ButtonTokens<Output> = DesignTokenProperties<'color', Output> & {
|
|
4
|
+
_active?: StateTokens<Output>;
|
|
5
|
+
_disabled?: StateTokens<Output>;
|
|
6
|
+
_focus?: StateTokens<Output>;
|
|
7
|
+
_hover?: StateTokens<Output>;
|
|
8
|
+
};
|
|
9
|
+
export declare type PasswordFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & {
|
|
10
|
+
button?: ButtonTokens<Output>;
|
|
11
|
+
};
|
|
12
|
+
export declare const passwordfield: Required<PasswordFieldTokens<'default'>>;
|
|
15
13
|
export {};
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
fontSize: DesignToken<FontSizeValue>;
|
|
6
|
-
_focus: {
|
|
7
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type PhoneNumberFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'borderColor' | 'fontSize', Output> & {
|
|
3
|
+
_focus?: DesignTokenProperties<'borderColor', Output>;
|
|
4
|
+
};
|
|
10
5
|
export declare const phonenumberfield: {
|
|
11
6
|
color: {
|
|
12
7
|
value: string;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
endColor: DesignToken<ColorValue>;
|
|
10
|
-
small: PlaceholderSizeTokens;
|
|
11
|
-
default: PlaceholderSizeTokens;
|
|
12
|
-
large: PlaceholderSizeTokens;
|
|
13
|
-
}
|
|
14
|
-
export declare const placeholder: PlaceholderTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type PlaceholderSizeTokens<Output> = DesignTokenProperties<'height', Output>;
|
|
3
|
+
export declare type PlaceholderTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderRadius' | 'transitionDuration' | 'startColor' | 'endColor', Output> & {
|
|
4
|
+
small?: PlaceholderSizeTokens<Output>;
|
|
5
|
+
default?: PlaceholderSizeTokens<Output>;
|
|
6
|
+
large?: PlaceholderSizeTokens<Output>;
|
|
7
|
+
};
|
|
8
|
+
export declare const placeholder: Required<PlaceholderTokens<'default'>>;
|
|
15
9
|
export {};
|
|
@@ -1,73 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
outlineOffset: DesignToken<OutlineOffsetValue>;
|
|
23
|
-
padding: DesignToken<SpaceValue>;
|
|
24
|
-
small: RadioButtonSizeTokens;
|
|
25
|
-
large: RadioButtonSizeTokens;
|
|
26
|
-
_checked: RadioButtonCheckedTokens;
|
|
27
|
-
_focus: RadioButtonFocusTokens;
|
|
28
|
-
_error: RadioButtonErrorTokens;
|
|
29
|
-
_disabled: RadioButtonDisabledTokens;
|
|
30
|
-
}
|
|
31
|
-
interface RadioButtonSizeTokens {
|
|
32
|
-
width: DesignToken<SpaceValue>;
|
|
33
|
-
height: DesignToken<SpaceValue>;
|
|
34
|
-
}
|
|
35
|
-
interface RadioButtonCheckedTokens {
|
|
36
|
-
color: DesignToken<ColorValue>;
|
|
37
|
-
_disabled: RadioButtonCheckedDisabledTokens;
|
|
38
|
-
}
|
|
39
|
-
interface RadioButtonCheckedDisabledTokens {
|
|
40
|
-
color: DesignToken<ColorValue>;
|
|
41
|
-
}
|
|
42
|
-
interface RadioButtonFocusTokens {
|
|
43
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
44
|
-
boxShadow: DesignToken<BoxShadowValue>;
|
|
45
|
-
}
|
|
46
|
-
interface RadioButtonErrorTokens {
|
|
47
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
48
|
-
_focus: RadioButtonErrorFocusTokens;
|
|
49
|
-
}
|
|
50
|
-
interface RadioButtonErrorFocusTokens {
|
|
51
|
-
boxShadow: DesignToken<BoxShadowValue>;
|
|
52
|
-
}
|
|
53
|
-
interface RadioButtonDisabledTokens {
|
|
54
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
55
|
-
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
56
|
-
}
|
|
57
|
-
interface RadioLabelTokens {
|
|
58
|
-
color: DesignToken<ColorValue>;
|
|
59
|
-
_disabled: RadioLabelDisabledTokens;
|
|
60
|
-
}
|
|
61
|
-
interface RadioLabelDisabledTokens {
|
|
62
|
-
color: DesignToken<ColorValue>;
|
|
63
|
-
}
|
|
64
|
-
export interface RadioTokens {
|
|
65
|
-
alignItems: DesignToken<AlignItemsValue>;
|
|
66
|
-
justifyContent: DesignToken<JustifyContentValue>;
|
|
67
|
-
gap: DesignToken<GapValue>;
|
|
68
|
-
_disabled: RadioDisabledTokens;
|
|
69
|
-
button: RadioButtonTokens;
|
|
70
|
-
label: RadioLabelTokens;
|
|
71
|
-
}
|
|
72
|
-
export declare const radio: RadioTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type RadioButtonSizeTokens<Output> = DesignTokenProperties<'width' | 'height', Output>;
|
|
3
|
+
export declare type RadioTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'justifyContent' | 'gap', Output> & {
|
|
4
|
+
_disabled?: DesignTokenProperties<'cursor', Output>;
|
|
5
|
+
button?: DesignTokenProperties<'alignItems' | 'justifyContent' | 'width' | 'height' | 'boxSizing' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'borderColor' | 'color' | 'backgroundColor' | 'transitionProperty' | 'transitionDuration' | 'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'padding', Output> & {
|
|
6
|
+
small?: RadioButtonSizeTokens<Output>;
|
|
7
|
+
large?: RadioButtonSizeTokens<Output>;
|
|
8
|
+
_checked?: DesignTokenProperties<'color', Output> & {
|
|
9
|
+
_disabled?: DesignTokenProperties<'color', Output>;
|
|
10
|
+
};
|
|
11
|
+
_focus?: DesignTokenProperties<'borderColor' | 'boxShadow', Output>;
|
|
12
|
+
_error?: DesignTokenProperties<'borderColor', Output> & {
|
|
13
|
+
_focus?: DesignTokenProperties<'boxShadow', Output>;
|
|
14
|
+
};
|
|
15
|
+
_disabled?: DesignTokenProperties<'borderColor' | 'backgroundColor', Output>;
|
|
16
|
+
};
|
|
17
|
+
label?: DesignTokenProperties<'color', Output> & {
|
|
18
|
+
_disabled?: DesignTokenProperties<'color', Output>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const radio: Required<RadioTokens<'default'>>;
|
|
73
22
|
export {};
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
radio
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
7
|
-
_checked: {
|
|
8
|
-
color: DesignToken<ColorValue>;
|
|
9
|
-
};
|
|
10
|
-
label: {
|
|
11
|
-
color: DesignToken<ColorValue>;
|
|
12
|
-
};
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type RadioGroupTokens<Output extends OutputVariantKey> = {
|
|
3
|
+
radio?: DesignTokenProperties<'borderWidth' | 'borderColor' | 'backgroundColor', Output> & {
|
|
4
|
+
_checked?: DesignTokenProperties<'color', Output>;
|
|
5
|
+
label?: DesignTokenProperties<'color', Output>;
|
|
13
6
|
};
|
|
14
|
-
label
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export declare const radiogroup: RadioGroupTokens;
|
|
7
|
+
label?: DesignTokenProperties<'color', Output>;
|
|
8
|
+
};
|
|
9
|
+
export declare const radiogroup: Required<RadioGroupTokens<'default'>>;
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
color
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export interface RatingTokens {
|
|
12
|
-
large: RatingSizeTokens;
|
|
13
|
-
default: RatingSizeTokens;
|
|
14
|
-
small: RatingSizeTokens;
|
|
15
|
-
filled: RatingFilledTokens;
|
|
16
|
-
empty: RatingEmptyTokens;
|
|
17
|
-
}
|
|
18
|
-
export declare const rating: RatingTokens;
|
|
19
|
-
export {};
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type RatingTokens<Output extends OutputVariantKey> = {
|
|
3
|
+
large: DesignTokenProperties<'size', Output>;
|
|
4
|
+
default: DesignTokenProperties<'size', Output>;
|
|
5
|
+
small: DesignTokenProperties<'size', Output>;
|
|
6
|
+
filled?: DesignTokenProperties<'color', Output>;
|
|
7
|
+
empty?: DesignTokenProperties<'color', Output>;
|
|
8
|
+
};
|
|
9
|
+
export declare const rating: Required<RatingTokens<'default'>>;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
button: SearchTokens;
|
|
14
|
-
}
|
|
15
|
-
export declare const searchfield: SearchFieldTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
declare type SearchTokens<Output> = DesignTokenProperties<'backgroundColor' | 'color'> & {
|
|
4
|
+
_active?: StateTokens<Output>;
|
|
5
|
+
_disabled?: StateTokens<Output>;
|
|
6
|
+
_focus?: StateTokens<Output>;
|
|
7
|
+
_hover?: StateTokens<Output>;
|
|
8
|
+
};
|
|
9
|
+
export declare type SearchFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & {
|
|
10
|
+
button?: SearchTokens<Output>;
|
|
11
|
+
};
|
|
12
|
+
export declare const searchfield: Required<SearchFieldTokens<'default'>>;
|
|
16
13
|
export {};
|
|
@@ -1,37 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
display
|
|
5
|
-
position
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
interface SelectIconWrapperTokens {
|
|
9
|
-
alignItems: DesignToken<AlignItemsValue>;
|
|
10
|
-
position: DesignToken<PositionValue>;
|
|
11
|
-
top: DesignToken<SpaceValue>;
|
|
12
|
-
right: DesignToken<SpaceValue>;
|
|
13
|
-
transform: DesignToken<TransformValue>;
|
|
14
|
-
pointerEvents: DesignToken<PointerEventsValue>;
|
|
15
|
-
}
|
|
16
|
-
interface SelectOptionTokens {
|
|
17
|
-
backgroundColor: DesignToken<BackgroundColorValue>;
|
|
18
|
-
color: DesignToken<ColorValue>;
|
|
19
|
-
_disabled: {
|
|
20
|
-
color: DesignToken<ColorValue>;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type SelectSizeTokens<Output> = DesignTokenProperties<'minWidth', Output>;
|
|
3
|
+
export declare type SelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'paddingInlineEnd' | 'whiteSpace' | 'minWidth'> & {
|
|
4
|
+
wrapper?: DesignTokenProperties<'cursor' | 'display' | 'flex' | 'position'>;
|
|
5
|
+
iconWrapper?: DesignTokenProperties<'alignItems' | 'position' | 'top' | 'right' | 'transform' | 'pointerEvents'>;
|
|
6
|
+
option?: DesignTokenProperties<'backgroundColor' | 'color'> & {
|
|
7
|
+
_disabled?: DesignTokenProperties<'color'>;
|
|
21
8
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export interface SelectTokens {
|
|
27
|
-
paddingInlineEnd: DesignToken<SpaceValue>;
|
|
28
|
-
wrapper: SelectWrapperTokens;
|
|
29
|
-
iconWrapper: SelectIconWrapperTokens;
|
|
30
|
-
option: SelectOptionTokens;
|
|
31
|
-
whiteSpace: DesignToken<WhiteSpaceValue>;
|
|
32
|
-
minWidth: DesignToken<SpaceValue>;
|
|
33
|
-
small: SelectSizeTokens;
|
|
34
|
-
large: SelectSizeTokens;
|
|
35
|
-
}
|
|
36
|
-
export declare const select: SelectTokens;
|
|
9
|
+
small?: SelectSizeTokens<Output>;
|
|
10
|
+
large?: SelectSizeTokens<Output>;
|
|
11
|
+
};
|
|
12
|
+
export declare const select: Required<SelectTokens<'default'>>;
|
|
37
13
|
export {};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
color
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
_focus: {
|
|
8
|
-
borderColor: DesignToken<BorderColorValue>;
|
|
9
|
-
};
|
|
10
|
-
label: {
|
|
11
|
-
color: DesignToken<ColorValue>;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export declare const selectfield: SelectFieldTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type SelectFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderColor' | 'color' | 'flexDirection' | 'fontSize', Output> & {
|
|
3
|
+
_focus?: DesignTokenProperties<'borderColor', Output>;
|
|
4
|
+
label?: DesignTokenProperties<'color', Output>;
|
|
5
|
+
};
|
|
6
|
+
export declare const selectfield: Required<SelectFieldTokens<'default'>>;
|