@aws-amplify/ui 4.1.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/constants.js +1 -1
- package/dist/esm/helpers/authenticator/facade.js +1 -1
- package/dist/esm/helpers/authenticator/textUtil.js +1 -0
- package/dist/esm/helpers/authenticator/utils.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/machines/authenticator/actors/signIn.js +1 -1
- package/dist/esm/machines/authenticator/defaultServices.js +1 -1
- package/dist/esm/machines/authenticator/index.js +1 -1
- package/dist/esm/machines/authenticator/signUp.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/components/inAppMessaging.js +1 -0
- package/dist/esm/theme/tokens/components/index.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/esm/types/primitives/componentClassName.js +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +1164 -977
- package/dist/theme.css +983 -978
- package/dist/types/helpers/authenticator/facade.d.ts +1 -1
- package/dist/types/helpers/authenticator/index.d.ts +1 -0
- package/dist/types/helpers/authenticator/textUtil.d.ts +47 -0
- package/dist/types/helpers/authenticator/utils.d.ts +7 -3
- package/dist/types/i18n/dictionaries/authenticator/defaultTexts.d.ts +2 -1
- package/dist/types/i18n/dictionaries/index.d.ts +2 -1
- package/dist/types/i18n/translations.d.ts +2 -1
- package/dist/types/machines/authenticator/defaultServices.d.ts +2 -1
- 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 +13 -0
- package/dist/types/theme/tokens/components/index.d.ts +59 -48
- 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/stateMachine/authMachine.d.ts +5 -1
- package/dist/types/types/authenticator/stateMachine/event.d.ts +1 -1
- package/dist/types/types/authenticator/user.d.ts +7 -0
- package/dist/types/types/authenticator/utils.d.ts +1 -0
- package/dist/types/types/primitives/componentClassName.d.ts +1 -0
- package/package.json +9 -6
- package/dist/esm/theme/tokens/types/designToken.js +0 -1
- package/dist/types/theme/tokens/types/scales.d.ts +0 -13
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
color
|
|
4
|
-
fontSize
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
color: DesignToken<ColorValue>;
|
|
8
|
-
fontStyle: DesignToken<FontStyleValue>;
|
|
9
|
-
fontSize: DesignToken<FontSizeValue>;
|
|
10
|
-
}
|
|
11
|
-
export interface FieldMessagesTokens {
|
|
12
|
-
error: FieldMessagesErrorTokens;
|
|
13
|
-
description: FieldMessagesDescriptionTokens;
|
|
14
|
-
}
|
|
15
|
-
export declare const fieldmessages: FieldMessagesTokens;
|
|
16
|
-
export {};
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type FieldMessagesTokens<Output extends OutputVariantKey> = {
|
|
3
|
+
error?: DesignTokenProperties<'color' | 'fontSize', Output>;
|
|
4
|
+
description?: DesignTokenProperties<'color' | 'fontSize' | 'fontStyle', Output>;
|
|
5
|
+
};
|
|
6
|
+
export declare const fieldmessages: Required<FieldMessagesTokens<'default'>>;
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
justifyContent: DesignToken<JustifyContentValue>;
|
|
5
|
-
alignItems: DesignToken<AlignItemsValue>;
|
|
6
|
-
alignContent: DesignToken<AlignContentValue>;
|
|
7
|
-
flexWrap: DesignToken<FlexWrapValue>;
|
|
8
|
-
}
|
|
9
|
-
export declare const flex: FlexTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type FlexTokens<Output extends OutputVariantKey> = DesignTokenProperties<'gap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'flexWrap', Output>;
|
|
3
|
+
export declare const flex: Required<FlexTokens<'default'>>;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export interface HeadingTokens {
|
|
7
|
-
color: DesignToken<ColorValue>;
|
|
8
|
-
lineHeight: DesignToken<LineHeightValue>;
|
|
9
|
-
1: HeadingLevelTokens;
|
|
10
|
-
2: HeadingLevelTokens;
|
|
11
|
-
3: HeadingLevelTokens;
|
|
12
|
-
4: HeadingLevelTokens;
|
|
13
|
-
5: HeadingLevelTokens;
|
|
14
|
-
6: HeadingLevelTokens;
|
|
15
|
-
}
|
|
16
|
-
export declare const heading: HeadingTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type HeadingLevelTokens<Output> = DesignTokenProperties<'fontSize' | 'fontWeight', Output>;
|
|
3
|
+
declare type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export declare type HeadingTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'lineHeight'> & Record<Level, HeadingLevelTokens<Output>>;
|
|
5
|
+
export declare const heading: Required<HeadingTokens<'default'>>;
|
|
17
6
|
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
fontWeight
|
|
4
|
-
}
|
|
5
|
-
export
|
|
6
|
-
highlighted: HighlightMatchHighlightedTokens;
|
|
7
|
-
}
|
|
8
|
-
export declare const highlightmatch: HighlightMatchTokens;
|
|
9
|
-
export {};
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type HighlightMatchTokens<OutputType extends OutputVariantKey> = {
|
|
3
|
+
highlighted?: DesignTokenProperties<'fontWeight', OutputType>;
|
|
4
|
+
};
|
|
5
|
+
export declare const highlightmatch: Required<HighlightMatchTokens<'default'>>;
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
height: DesignToken<SpaceValue>;
|
|
5
|
-
}
|
|
6
|
-
export declare const icon: IconTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type IconTokens<Output extends OutputVariantKey> = DesignTokenProperties<'height' | 'lineHeight', Output>;
|
|
3
|
+
export declare const icon: Required<IconTokens<'default'>>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
height: DesignToken<SpaceValue>;
|
|
5
|
-
objectFit: DesignToken<ObjectFitValue>;
|
|
6
|
-
objectPosition: DesignToken<PositionValue>;
|
|
7
|
-
}
|
|
8
|
-
export declare const image: ImageTokens;
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
export declare type ImageTokens<Output extends OutputVariantKey> = DesignTokenProperties<'maxWidth' | 'height' | 'objectFit' | 'objectPosition', Output>;
|
|
3
|
+
export declare const image: Required<ImageTokens<'default'>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
declare type BannerTokens<Output> = DesignTokenProperties<'height' | 'width', Output>;
|
|
3
|
+
declare type ButtonTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderRadius' | 'color', Output>;
|
|
4
|
+
declare type DialogTokens<Output> = DesignTokenProperties<'height' | 'minHeight' | 'minWidth' | 'width', Output>;
|
|
5
|
+
declare type HeaderTokens<Output> = DesignTokenProperties<'fontSize' | 'fontWeight', Output>;
|
|
6
|
+
export declare type InAppMessagingTokens<Output extends OutputVariantKey> = {
|
|
7
|
+
banner?: BannerTokens<Output>;
|
|
8
|
+
button?: ButtonTokens<Output>;
|
|
9
|
+
dialog?: DialogTokens<Output>;
|
|
10
|
+
header?: HeaderTokens<Output>;
|
|
11
|
+
};
|
|
12
|
+
export declare const inappmessaging: Required<InAppMessagingTokens<'default'>>;
|
|
13
|
+
export {};
|
|
@@ -20,6 +20,7 @@ import { HeadingTokens } from './heading';
|
|
|
20
20
|
import { HighlightMatchTokens } from './highlightMatch';
|
|
21
21
|
import { IconTokens } from './icon';
|
|
22
22
|
import { ImageTokens } from './image';
|
|
23
|
+
import { InAppMessagingTokens } from './inAppMessaging';
|
|
23
24
|
import { LinkTokens } from './link';
|
|
24
25
|
import { LoaderTokens } from './loader';
|
|
25
26
|
import { MenuTokens } from './menu';
|
|
@@ -43,51 +44,61 @@ import { TextAreaFieldTokens } from './textAreaField';
|
|
|
43
44
|
import { TextFieldTokens } from './textField';
|
|
44
45
|
import { ToggleButtonTokens } from './toggleButton';
|
|
45
46
|
import { ToggleButtonGroupTokens } from './toggleButtonGroup';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
highlightmatch
|
|
68
|
-
|
|
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
|
-
|
|
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'>>;
|