@aws-amplify/ui 5.5.10 → 5.6.1
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/index.mjs +1 -1
- package/dist/esm/theme/tokens/components/field.mjs +1 -1
- package/dist/esm/theme/tokens/components/index.mjs +1 -1
- package/dist/esm/theme/tokens/components/liveness.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/styles.css +403 -2
- package/dist/theme.css +2 -0
- package/dist/types/helpers/accountSettings/utils.d.ts +1 -1
- package/dist/types/helpers/authenticator/facade.d.ts +5 -5
- package/dist/types/helpers/authenticator/utils.d.ts +1 -1
- package/dist/types/helpers/utils.d.ts +1 -1
- package/dist/types/i18n/dictionaries/authenticator/types.d.ts +2 -2
- package/dist/types/i18n/translations.d.ts +2 -2
- package/dist/types/machines/authenticator/actions.d.ts +27 -27
- package/dist/types/machines/authenticator/actors/resetPassword.d.ts +1 -1
- package/dist/types/machines/authenticator/actors/signIn.d.ts +1 -1
- package/dist/types/machines/authenticator/index.d.ts +1 -1
- package/dist/types/machines/authenticator/signUp.d.ts +1 -1
- package/dist/types/theme/breakpoints.d.ts +1 -1
- package/dist/types/theme/tokens/borderWidths.d.ts +2 -2
- package/dist/types/theme/tokens/colors.d.ts +22 -22
- package/dist/types/theme/tokens/components/alert.d.ts +5 -5
- package/dist/types/theme/tokens/components/authenticator.d.ts +10 -10
- package/dist/types/theme/tokens/components/autocomplete.d.ts +1 -1
- package/dist/types/theme/tokens/components/badge.d.ts +6 -6
- package/dist/types/theme/tokens/components/button.d.ts +8 -8
- package/dist/types/theme/tokens/components/card.d.ts +3 -3
- package/dist/types/theme/tokens/components/checkbox.d.ts +6 -6
- package/dist/types/theme/tokens/components/checkboxField.d.ts +1 -1
- package/dist/types/theme/tokens/components/collection.d.ts +3 -3
- package/dist/types/theme/tokens/components/copy.d.ts +1 -1
- package/dist/types/theme/tokens/components/dialCodeSelect.d.ts +1 -1
- package/dist/types/theme/tokens/components/divider.d.ts +2 -2
- package/dist/types/theme/tokens/components/expander.d.ts +5 -5
- package/dist/types/theme/tokens/components/field.d.ts +2 -2
- package/dist/types/theme/tokens/components/fieldControl.d.ts +6 -6
- package/dist/types/theme/tokens/components/fieldGroup.d.ts +1 -1
- package/dist/types/theme/tokens/components/fieldMessages.d.ts +1 -1
- package/dist/types/theme/tokens/components/fileUploader.d.ts +2 -2
- package/dist/types/theme/tokens/components/flex.d.ts +1 -1
- package/dist/types/theme/tokens/components/heading.d.ts +3 -3
- package/dist/types/theme/tokens/components/highlightMatch.d.ts +1 -1
- package/dist/types/theme/tokens/components/icon.d.ts +1 -1
- package/dist/types/theme/tokens/components/image.d.ts +1 -1
- package/dist/types/theme/tokens/components/inAppMessaging.d.ts +5 -5
- package/dist/types/theme/tokens/components/index.d.ts +6 -4
- package/dist/types/theme/tokens/components/link.d.ts +2 -2
- package/dist/types/theme/tokens/components/liveness.d.ts +8 -0
- package/dist/types/theme/tokens/components/loader.d.ts +4 -4
- package/dist/types/theme/tokens/components/menu.d.ts +2 -2
- package/dist/types/theme/tokens/components/pagination.d.ts +1 -1
- package/dist/types/theme/tokens/components/passwordField.d.ts +3 -3
- package/dist/types/theme/tokens/components/phoneNumberField.d.ts +1 -1
- package/dist/types/theme/tokens/components/placeholder.d.ts +2 -2
- package/dist/types/theme/tokens/components/radio.d.ts +2 -2
- package/dist/types/theme/tokens/components/radioGroup.d.ts +1 -1
- package/dist/types/theme/tokens/components/rating.d.ts +1 -1
- package/dist/types/theme/tokens/components/searchField.d.ts +3 -3
- package/dist/types/theme/tokens/components/select.d.ts +2 -2
- package/dist/types/theme/tokens/components/selectField.d.ts +1 -1
- package/dist/types/theme/tokens/components/sliderField.d.ts +3 -3
- package/dist/types/theme/tokens/components/stepperField.d.ts +2 -2
- package/dist/types/theme/tokens/components/switchField.d.ts +3 -3
- package/dist/types/theme/tokens/components/table.d.ts +5 -5
- package/dist/types/theme/tokens/components/tabs.d.ts +3 -3
- package/dist/types/theme/tokens/components/text.d.ts +4 -4
- package/dist/types/theme/tokens/components/textAreaField.d.ts +2 -2
- package/dist/types/theme/tokens/components/textField.d.ts +1 -1
- package/dist/types/theme/tokens/components/toggleButton.d.ts +2 -2
- package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +2 -2
- package/dist/types/theme/tokens/fontSizes.d.ts +2 -2
- package/dist/types/theme/tokens/fontWeights.d.ts +2 -2
- package/dist/types/theme/tokens/fonts.d.ts +3 -3
- package/dist/types/theme/tokens/index.d.ts +6 -6
- package/dist/types/theme/tokens/lineHeights.d.ts +2 -2
- package/dist/types/theme/tokens/opacities.d.ts +2 -2
- package/dist/types/theme/tokens/outlineOffsets.d.ts +2 -2
- package/dist/types/theme/tokens/outlineWidths.d.ts +2 -2
- package/dist/types/theme/tokens/radii.d.ts +2 -2
- package/dist/types/theme/tokens/shadows.d.ts +2 -2
- package/dist/types/theme/tokens/space.d.ts +4 -4
- package/dist/types/theme/tokens/time.d.ts +2 -2
- package/dist/types/theme/tokens/transforms.d.ts +3 -3
- package/dist/types/theme/tokens/types/designToken.d.ts +66 -66
- package/dist/types/theme/tokens/types/typography.d.ts +1 -1
- package/dist/types/theme/types.d.ts +2 -2
- package/dist/types/theme/utils.d.ts +3 -3
- package/dist/types/types/accountSettings/validator.d.ts +2 -2
- package/dist/types/types/authenticator/attributes.d.ts +7 -7
- package/dist/types/types/authenticator/form.d.ts +6 -6
- package/dist/types/types/authenticator/stateMachine/authMachine.d.ts +3 -3
- package/dist/types/types/authenticator/stateMachine/context.d.ts +2 -2
- package/dist/types/types/authenticator/stateMachine/event.d.ts +3 -3
- package/dist/types/types/authenticator/stateMachine/state.d.ts +6 -6
- package/dist/types/types/authenticator/user.d.ts +2 -2
- package/dist/types/types/authenticator/validator.d.ts +4 -4
- package/dist/types/types/primitives/componentClassName.d.ts +1 -0
- package/dist/types/types/primitives/index.d.ts +1 -1
- package/dist/types/types/util.d.ts +5 -5
- package/dist/types/utils/index.d.ts +18 -1
- package/package.json +1 -1
- package/dist/esm/utils/classname.mjs +0 -1
- package/dist/types/utils/classname.d.ts +0 -19
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BorderWidthValue, DesignTokenValues, OutputVariantKey } from './types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type BorderWidthSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type BorderWidths<Output extends OutputVariantKey = unknown, Platform = unknown> = Output extends 'required' | 'default' ? Required<DesignTokenValues<BorderWidthSize, BorderWidthValue<Platform, Output>, Output, Platform>> : Partial<DesignTokenValues<BorderWidthSize, BorderWidthValue<Platform, Output>, Output, Platform>>;
|
|
4
4
|
export declare const borderWidths: BorderWidths<'default'>;
|
|
5
5
|
export {};
|
|
@@ -2,30 +2,30 @@ import { ColorValue, DesignTokenValues, OutputVariantKey } from './types/designT
|
|
|
2
2
|
/**
|
|
3
3
|
* Util type for creating color interfaces using `ColorValue` from string and number unions
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type BaseColorValues<VariantKey extends string | number, Output, Platform = unknown> = DesignTokenValues<VariantKey, ColorValue, Output, Platform>;
|
|
6
|
+
type ColorValues<VariantKey extends string | number, Output, Platform = unknown> = Output extends 'required' | 'default' ? BaseColorValues<VariantKey, Output, Platform> : Partial<BaseColorValues<VariantKey, Output, Platform>>;
|
|
7
7
|
/**
|
|
8
8
|
* Util type for creating nested color scale interfaces from variant keys
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
10
|
+
type BaseColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Record<VariantKey, ColorValues<ScaleKey, Output, Platform>>;
|
|
11
|
+
type ColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Output extends 'required' | 'default' ? BaseColorValueScale<VariantKey, Output, Platform> : Partial<BaseColorValueScale<VariantKey, Output, Platform>>;
|
|
12
|
+
type ScaleKey = 10 | 20 | 40 | 60 | 80 | 90 | 100;
|
|
13
|
+
type OverlayKey = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
|
|
14
|
+
type ColorPaletteKey = 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink' | 'neutral';
|
|
15
|
+
type GreyscalePaletteKey = 'white' | 'black' | 'transparent';
|
|
16
|
+
type OrderVariant = 'primary' | 'secondary' | 'tertiary';
|
|
17
|
+
type OrderVariantKey<Output = unknown> = Output extends 'default' ? Exclude<OrderVariant, 'quaternary'> : OrderVariant;
|
|
18
|
+
type InformationVariantKey = 'info' | 'warning' | 'error' | 'success';
|
|
19
|
+
type WebStateVariantKey = 'active' | 'disabled' | 'error' | 'hover' | 'focus' | 'pressed';
|
|
20
|
+
type ReactNativeStateVariantKey = Exclude<WebStateVariantKey, 'focused' | 'hover'>;
|
|
21
|
+
type StateVariantKey<Platform> = Platform extends 'react-native' ? ReactNativeStateVariantKey : WebStateVariantKey;
|
|
22
|
+
type BrandVariantKey = Extract<OrderVariantKey, 'primary' | 'secondary'>;
|
|
23
|
+
type FontVariantKey<Output, Platform> = 'inverse' | 'interactive' | Extract<StateVariantKey<Platform>, 'active' | 'disabled' | 'hover' | 'focus'> | OrderVariantKey<Output> | InformationVariantKey;
|
|
24
|
+
type BackgroundColorKey<Platform> = Extract<StateVariantKey<Platform>, 'disabled'> | OrderVariantKey | InformationVariantKey | 'quaternary';
|
|
25
|
+
type BorderColorKey<Output, Platform> = Extract<StateVariantKey<Platform>, 'disabled' | 'error'> | OrderVariantKey<Output> | (Output extends 'default' ? Exclude<StateVariantKey<Platform>, 'active' | 'hover'> : StateVariantKey<Platform>);
|
|
26
|
+
type PaletteValues<Output, Platform> = ColorValueScale<ColorPaletteKey, Output, Platform>;
|
|
27
|
+
type GreyscaleColors<Output, Platform> = ColorValues<GreyscalePaletteKey, Output, Platform>;
|
|
28
|
+
type BaseColors<Output extends OutputVariantKey = unknown, Platform = unknown> = PaletteValues<Output, Platform> & GreyscaleColors<Output, Platform> & {
|
|
29
29
|
brand?: ColorValueScale<BrandVariantKey, Output, Platform>;
|
|
30
30
|
background?: ColorValues<BackgroundColorKey<Platform>, Output, Platform>;
|
|
31
31
|
border?: ColorValues<BorderColorKey<Output, Platform>, Output, Platform>;
|
|
@@ -33,6 +33,6 @@ declare type BaseColors<Output extends OutputVariantKey = unknown, Platform = un
|
|
|
33
33
|
overlay?: ColorValues<OverlayKey, Output, Platform>;
|
|
34
34
|
shadow?: ColorValues<OrderVariantKey, Output, Platform>;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type Colors<Output extends OutputVariantKey = unknown, Platform = unknown> = (Output extends 'required' | 'default' ? Required<BaseColors<Output, Platform>> : BaseColors<Output, Platform>) & Record<string, any>;
|
|
37
37
|
export declare const colors: Colors<'default'>;
|
|
38
38
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
2
|
+
type AlertVariationTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color', OutputType>;
|
|
3
|
+
type AlertIconTokens<OutputType> = DesignTokenProperties<'size', OutputType>;
|
|
4
|
+
type AlertHeadingTokens<OutputType> = DesignTokenProperties<'fontSize' | 'fontWeight', OutputType>;
|
|
5
|
+
type AlertTokenKey = 'alignItems' | 'justifyContent' | 'color' | 'backgroundColor' | 'paddingBlock' | 'paddingInline';
|
|
6
|
+
export type AlertTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<AlertTokenKey, OutputType> & {
|
|
7
7
|
icon?: AlertIconTokens<OutputType>;
|
|
8
8
|
heading?: AlertHeadingTokens<OutputType>;
|
|
9
9
|
info?: AlertVariationTokens<OutputType>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
type ModalTokenKey = 'width' | 'height' | 'backgroundColor' | 'top' | 'left';
|
|
3
|
+
type AuthenticatorModalTokens<OutputType> = DesignTokenProperties<ModalTokenKey, OutputType>;
|
|
4
|
+
type RouterKey = 'borderWidth' | 'borderStyle' | 'borderColor' | 'backgroundColor' | 'boxShadow';
|
|
5
|
+
type AuthenticatorRouterTokens<OutputType> = DesignTokenProperties<RouterKey, OutputType>;
|
|
6
|
+
type AuthenticatorFooterTokens<OutputType> = DesignTokenProperties<'paddingBottom', OutputType>;
|
|
7
|
+
type AuthenticatorFormTokens<OutputType> = DesignTokenProperties<'padding', OutputType>;
|
|
8
|
+
type AuthenticatorStateTokens<OutputType> = {
|
|
9
9
|
inactive?: DesignTokenProperties<'backgroundColor', OutputType>;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type AuthenticatorOrContainerTokens<OutputType> = DesignTokenProperties<'color', OutputType> & {
|
|
12
12
|
orLine?: DesignTokenProperties<'backgroundColor', OutputType>;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type AuthenticatorContainerToken<OutputType> = {
|
|
15
15
|
widthMax?: DesignTokenProperties<'maxWidth', OutputType>['maxWidth'];
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type AuthenticatorTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<'maxWidth', OutputType> & {
|
|
18
18
|
modal?: AuthenticatorModalTokens<OutputType>;
|
|
19
19
|
container?: AuthenticatorContainerToken<OutputType>;
|
|
20
20
|
router?: AuthenticatorRouterTokens<OutputType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type AutocompleteTokens<OutputType extends OutputVariantKey> = {
|
|
3
3
|
menu?: DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'marginBlockStart' | 'width', OutputType> & {
|
|
4
4
|
options?: DesignTokenProperties<'display' | 'flexDirection' | 'maxHeight', OutputType>;
|
|
5
5
|
option?: DesignTokenProperties<'backgroundColor' | 'color' | 'cursor' | 'transitionDuration' | 'transitionProperty' | 'transitionTimingFunction', OutputType> & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
2
|
+
type VariationKey = 'backgroundColor' | 'color';
|
|
3
|
+
type BadgeVariationTokens<OutputType> = DesignTokenProperties<VariationKey, OutputType>;
|
|
4
|
+
type SizeKey = 'fontSize' | 'paddingHorizontal' | 'paddingVertical';
|
|
5
|
+
type BadgeSizeTokens<OutputType> = DesignTokenProperties<SizeKey, OutputType>;
|
|
6
|
+
type BadgeKey = 'backgroundColor' | 'borderRadius' | 'color' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'paddingHorizontal' | 'paddingVertical' | 'textAlign';
|
|
7
|
+
export type BadgeTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<BadgeKey, OutputType> & {
|
|
8
8
|
error?: BadgeVariationTokens<OutputType>;
|
|
9
9
|
large?: BadgeSizeTokens<OutputType>;
|
|
10
10
|
small?: BadgeSizeTokens<OutputType>;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
type StateWithShadowTokens<Output> = StateTokens<Output> & DesignTokenProperties<'boxShadow', Output>;
|
|
4
|
+
type MenuStateTokens<Output> = Omit<StateTokens<Output>, 'borderColor'>;
|
|
5
|
+
type PrimaryVariationTokens<Output> = StateTokens<Output> & DesignTokenProperties<'borderStyle' | 'borderWidth', Output> & {
|
|
6
6
|
_disabled?: StateTokens<Output>;
|
|
7
7
|
_loading?: StateTokens<Output>;
|
|
8
8
|
_hover?: StateTokens<Output>;
|
|
9
9
|
_focus?: StateWithShadowTokens<Output>;
|
|
10
10
|
_active?: StateTokens<Output>;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type MenuVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderWidth' | 'justifyContent', Output> & {
|
|
13
13
|
_hover?: MenuStateTokens<Output>;
|
|
14
14
|
_focus?: MenuStateTokens<Output>;
|
|
15
15
|
_active?: MenuStateTokens<Output>;
|
|
16
16
|
_disabled?: Omit<StateTokens<Output>, 'borderColor' | 'backgroundColor'>;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
type LinkVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderWidth' | 'color', Output> & {
|
|
19
19
|
_hover?: StateTokens<Output>;
|
|
20
20
|
_focus?: StateWithShadowTokens<Output>;
|
|
21
21
|
_active?: StateTokens<Output>;
|
|
22
22
|
_disabled?: StateTokens<Output>;
|
|
23
23
|
_loading?: StateTokens<Output>;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
export
|
|
25
|
+
type ButtonSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
|
|
26
|
+
export type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
|
|
27
27
|
_hover?: StateTokens<Output>;
|
|
28
28
|
_focus?: StateWithShadowTokens<Output>;
|
|
29
29
|
_active?: StateTokens<Output>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
type CardVariationStyleKey = 'backgroundColor' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'boxShadow';
|
|
3
|
+
type CardVariationTokens<OutputType> = DesignTokenProperties<CardVariationStyleKey, OutputType>;
|
|
4
|
+
export type CardTokens<OutputType extends OutputVariantKey> = CardVariationTokens<OutputType> & DesignTokenProperties<'padding', OutputType> & {
|
|
5
5
|
elevated?: CardVariationTokens<OutputType>;
|
|
6
6
|
outlined?: CardVariationTokens<OutputType>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
type ButtonFocusToken<Output> = DesignTokenProperties<'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'borderColor' | 'boxShadow', Output>;
|
|
3
|
+
type BeforeToken<Output> = DesignTokenProperties<'width' | 'height' | 'borderWidth' | 'borderRadius' | 'borderStyle' | 'borderColor', Output>;
|
|
4
|
+
type ButtonToken<Output> = DesignTokenProperties<'position' | 'alignItems' | 'justifyContent' | 'color', Output> & {
|
|
5
5
|
before?: BeforeToken<Output>;
|
|
6
6
|
_focus?: ButtonFocusToken<Output>;
|
|
7
7
|
_disabled?: DesignTokenProperties<'borderColor', Output>;
|
|
@@ -9,14 +9,14 @@ declare type ButtonToken<Output> = DesignTokenProperties<'position' | 'alignItem
|
|
|
9
9
|
_focus?: DesignTokenProperties<'borderColor' | 'boxShadow', Output>;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type IconCheckedStateToken<Output> = DesignTokenProperties<'opacity' | 'transform'> & {
|
|
13
13
|
_disabled?: DesignTokenProperties<'backgroundColor', Output>;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
type IconToken<Output> = DesignTokenProperties<'backgroundColor' | 'borderRadius' | 'opacity' | 'transform' | 'transitionProperty' | 'transitionDuration' | 'transitionTimingFunction', Output> & {
|
|
16
16
|
_checked?: IconCheckedStateToken<Output>;
|
|
17
17
|
_indeterminate?: IconCheckedStateToken<Output>;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type CheckboxTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'cursor', Output> & {
|
|
20
20
|
_disabled?: DesignTokenProperties<'cursor', Output>;
|
|
21
21
|
button?: ButtonToken<Output>;
|
|
22
22
|
icon?: IconToken<Output>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type CheckboxFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'alignContent' | 'flexDirection' | 'justifyContent', Output>;
|
|
3
3
|
export declare const checkboxfield: Required<CheckboxFieldTokens<'default'>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
type PaginationTokens<Output> = {
|
|
4
4
|
current?: DesignTokenProperties<'color' | 'backgroundColor', Output>;
|
|
5
5
|
button?: DesignTokenProperties<'color', Output> & {
|
|
6
6
|
_hover?: DesignTokenProperties<'backgroundColor' | 'color', Output>;
|
|
7
7
|
_disabled?: DesignTokenProperties<'color', Output>;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type SearchTokens<Output> = {
|
|
11
11
|
input?: DesignTokenProperties<'color', Output>;
|
|
12
12
|
button?: DesignTokenProperties<'color', Output> & {
|
|
13
13
|
_active?: StateTokens<Output>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type CopyTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontSize' | 'gap', Output> & {
|
|
3
3
|
svg?: {
|
|
4
4
|
path?: DesignTokenProperties<'fill', Output>;
|
|
5
5
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type DialCodeSelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'height', Output>;
|
|
3
3
|
export declare const dialcodeselect: Required<DialCodeSelectTokens<'default'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type DividerSizeTokens<Output> = DesignTokenProperties<'borderWidth', Output>;
|
|
3
|
+
export type DividerTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderStyle' | 'borderColor' | 'borderWidth' | 'opacity', Output> & {
|
|
4
4
|
label?: DesignTokenProperties<'color' | 'paddingInline' | 'fontSize' | 'backgroundColor', Output>;
|
|
5
5
|
small?: DividerSizeTokens<Output>;
|
|
6
6
|
large?: DividerSizeTokens<Output>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
2
|
+
type ExpanderItemTokens<Output> = DesignTokenProperties<'marginTop' | 'boxShadow' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderStartStartRadius' | 'borderStartEndRadius' | 'borderEndStartRadius' | 'borderEndEndRadius', Output> & {
|
|
3
3
|
_focus?: DesignTokenProperties<'boxShadow', Output>;
|
|
4
4
|
};
|
|
5
|
-
|
|
5
|
+
type ExpanderTriggerTokens<Output> = DesignTokenProperties<'minHeight' | 'paddingInlineStart' | 'paddingInlineEnd' | 'alignItems' | 'justifyContent', Output> & {
|
|
6
6
|
_hover?: DesignTokenProperties<'backgroundColor', Output>;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
type ExpanderContentStateTokens<Output> = DesignTokenProperties<'animationDuration' | 'animationTimingFunction', Output>;
|
|
9
|
+
type ExpanderContentTokens<Output> = DesignTokenProperties<'paddingInlineStart' | 'paddingInlineEnd', Output> & {
|
|
10
10
|
text?: DesignTokenProperties<'color' | 'paddingBlockStart' | 'paddingBlockEnd', Output>;
|
|
11
11
|
_open?: ExpanderContentStateTokens<Output>;
|
|
12
12
|
_closed?: ExpanderContentStateTokens<Output>;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type ExpanderTokens<Output extends OutputVariantKey> = DesignTokenProperties<'display' | 'backgroundColor' | 'borderRadius' | 'boxShadow' | 'width', Output> & {
|
|
15
15
|
content?: ExpanderContentTokens<Output>;
|
|
16
16
|
header?: DesignTokenProperties<'boxShadow', Output>;
|
|
17
17
|
item?: ExpanderItemTokens<Output>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type FieldSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'gap', Output>;
|
|
3
|
+
export type FieldTokens<Output extends OutputVariantKey> = FieldSizeTokens<Output> & DesignTokenProperties<'flexDirection', Output> & {
|
|
4
4
|
small?: FieldSizeTokens<Output>;
|
|
5
5
|
large?: FieldSizeTokens<Output>;
|
|
6
6
|
label?: DesignTokenProperties<'color', Output>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
type FieldControlSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
|
|
3
|
+
type FieldControlFocusTokens<Output> = DesignTokenProperties<'borderColor' | 'boxShadow', Output>;
|
|
4
|
+
type FieldControlDisabledTokens<Output> = DesignTokenProperties<'color' | 'cursor' | 'borderColor' | 'backgroundColor', Output>;
|
|
5
|
+
type FieldControlErrorTokens<Output> = DesignTokenProperties<'borderColor', Output> & {
|
|
6
6
|
_focus?: DesignTokenProperties<'boxShadow', Output>;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type FieldControlQuietTokens<Output> = DesignTokenProperties<'borderStyle' | 'borderInlineStart' | 'borderInlineEnd' | 'borderBlockStart' | 'borderRadius', Output> & {
|
|
9
9
|
_focus?: DesignTokenProperties<'borderBlockEndColor' | 'boxShadow', Output>;
|
|
10
10
|
_error?: DesignTokenProperties<'borderBlockEndColor', Output> & {
|
|
11
11
|
_focus?: DesignTokenProperties<'boxShadow', Output>;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type FieldControlTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderStyle' | 'borderColor' | 'borderWidth' | 'borderRadius' | 'color' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'fontSize' | 'lineHeight' | 'transitionDuration' | 'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset', Output> & {
|
|
15
15
|
small?: FieldControlSizeTokens<Output>;
|
|
16
16
|
large?: FieldControlSizeTokens<Output>;
|
|
17
17
|
quiet?: FieldControlQuietTokens<Output>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type FieldGroupTokens<Output extends OutputVariantKey> = DesignTokenProperties<'gap', Output> & {
|
|
3
3
|
vertical?: DesignTokenProperties<'alignItems', Output>;
|
|
4
4
|
outer?: DesignTokenProperties<'alignItems', Output>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type FieldMessagesTokens<Output extends OutputVariantKey> = {
|
|
3
3
|
error?: DesignTokenProperties<'color' | 'fontSize', Output>;
|
|
4
4
|
description?: DesignTokenProperties<'color' | 'fontSize' | 'fontStyle', Output>;
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
2
|
import { TypographyTokens } from '../types/typography';
|
|
3
|
-
|
|
3
|
+
type BaseDropZoneTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'borderRadius', OutputType>;
|
|
4
4
|
export interface FileUploaderTokens<OutputType extends OutputVariantKey> {
|
|
5
|
-
dropzone?: DesignTokenProperties<'gap' | 'paddingBlock' | 'paddingInline' | 'textAlign'> & BaseDropZoneTokens<OutputType> & {
|
|
5
|
+
dropzone?: DesignTokenProperties<'gap' | 'paddingBlock' | 'paddingInline' | 'textAlign', OutputType> & BaseDropZoneTokens<OutputType> & {
|
|
6
6
|
_active?: BaseDropZoneTokens<OutputType>;
|
|
7
7
|
icon?: DesignTokenProperties<'fontSize' | 'color', OutputType>;
|
|
8
8
|
text?: TypographyTokens<OutputType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type FlexTokens<Output extends OutputVariantKey> = DesignTokenProperties<'gap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'flexWrap', Output>;
|
|
3
3
|
export declare const flex: Required<FlexTokens<'default'>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
2
|
+
type HeadingLevelTokens<Output> = DesignTokenProperties<'fontSize' | 'fontWeight', Output>;
|
|
3
|
+
type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
export type HeadingTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'lineHeight', Output> & Partial<Record<Level, HeadingLevelTokens<Output>>>;
|
|
5
5
|
export declare const heading: Required<HeadingTokens<'default'>>;
|
|
6
6
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type HighlightMatchTokens<OutputType extends OutputVariantKey> = {
|
|
3
3
|
highlighted?: DesignTokenProperties<'fontWeight', OutputType>;
|
|
4
4
|
};
|
|
5
5
|
export declare const highlightmatch: Required<HighlightMatchTokens<'default'>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type IconTokens<Output extends OutputVariantKey> = DesignTokenProperties<'height' | 'lineHeight', Output>;
|
|
3
3
|
export declare const icon: Required<IconTokens<'default'>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type ImageTokens<Output extends OutputVariantKey> = DesignTokenProperties<'maxWidth' | 'height' | 'objectFit' | 'objectPosition', Output>;
|
|
3
3
|
export declare const image: Required<ImageTokens<'default'>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
2
|
+
type BannerTokens<Output> = DesignTokenProperties<'height' | 'width', Output>;
|
|
3
|
+
type ButtonTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderRadius' | 'color', Output>;
|
|
4
|
+
type DialogTokens<Output> = DesignTokenProperties<'height' | 'minHeight' | 'minWidth' | 'width', Output>;
|
|
5
|
+
type HeaderTokens<Output> = DesignTokenProperties<'fontSize' | 'fontWeight', Output>;
|
|
6
|
+
export type InAppMessagingTokens<Output extends OutputVariantKey> = {
|
|
7
7
|
banner?: BannerTokens<Output>;
|
|
8
8
|
button?: ButtonTokens<Output>;
|
|
9
9
|
dialog?: DialogTokens<Output>;
|
|
@@ -23,6 +23,7 @@ import { IconTokens } from './icon';
|
|
|
23
23
|
import { ImageTokens } from './image';
|
|
24
24
|
import { InAppMessagingTokens } from './inAppMessaging';
|
|
25
25
|
import { LinkTokens } from './link';
|
|
26
|
+
import { LivenessTokens } from './liveness';
|
|
26
27
|
import { LoaderTokens } from './loader';
|
|
27
28
|
import { MenuTokens } from './menu';
|
|
28
29
|
import { PaginationTokens } from './pagination';
|
|
@@ -47,7 +48,7 @@ import { TextFieldTokens } from './textField';
|
|
|
47
48
|
import { ToggleButtonTokens } from './toggleButton';
|
|
48
49
|
import { ToggleButtonGroupTokens } from './toggleButtonGroup';
|
|
49
50
|
import { OutputVariantKey } from '../types/designToken';
|
|
50
|
-
|
|
51
|
+
type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
51
52
|
alert?: AlertTokens<Output>;
|
|
52
53
|
authenticator?: AuthenticatorTokens<Output>;
|
|
53
54
|
autocomplete?: AutocompleteTokens<Output>;
|
|
@@ -73,6 +74,7 @@ declare type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
|
73
74
|
image?: ImageTokens<Output>;
|
|
74
75
|
inappmessaging?: InAppMessagingTokens<Output>;
|
|
75
76
|
link?: LinkTokens<Output>;
|
|
77
|
+
liveness?: LivenessTokens<Output>;
|
|
76
78
|
loader?: LoaderTokens<Output>;
|
|
77
79
|
menu?: MenuTokens<Output>;
|
|
78
80
|
pagination?: PaginationTokens<Output>;
|
|
@@ -97,11 +99,11 @@ declare type BaseComponentTokens<Output extends OutputVariantKey> = {
|
|
|
97
99
|
togglebutton?: ToggleButtonTokens<Output>;
|
|
98
100
|
togglebuttongroup?: ToggleButtonGroupTokens<Output>;
|
|
99
101
|
};
|
|
100
|
-
export
|
|
101
|
-
export
|
|
102
|
+
export type ComponentTokens = BaseComponentTokens<'optional'>;
|
|
103
|
+
export type DefaultComponentTokens = Required<{
|
|
102
104
|
[Key in keyof ComponentTokens]: Required<BaseComponentTokens<'default'>[Key]>;
|
|
103
105
|
}>;
|
|
104
|
-
export
|
|
106
|
+
export type WebComponentTokens = Required<{
|
|
105
107
|
[Key in keyof ComponentTokens]: Required<BaseComponentTokens<'required'>[Key]>;
|
|
106
108
|
}>;
|
|
107
109
|
export declare const components: DefaultComponentTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type LinkState = 'active' | 'focus' | 'hover' | 'visited';
|
|
3
|
+
export type LinkTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & Partial<Record<LinkState, DesignTokenProperties<'color', Output>>>;
|
|
4
4
|
export declare const link: Required<LinkTokens<'default'>>;
|
|
5
5
|
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
+
type ModalTokenKey = 'backgroundColor';
|
|
3
|
+
type LivenessModalTokens<OutputType> = DesignTokenProperties<ModalTokenKey, OutputType>;
|
|
4
|
+
export type LivenessTokens<OutputType extends OutputVariantKey> = {
|
|
5
|
+
cameraModule?: LivenessModalTokens<OutputType>;
|
|
6
|
+
};
|
|
7
|
+
export declare const liveness: Required<LivenessTokens<'default'>>;
|
|
8
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export
|
|
2
|
+
type LoaderSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'height' | 'width', Output>;
|
|
3
|
+
type LoaderLinearSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'strokeWidth', Output>;
|
|
4
|
+
type BaseLoaderTokens<Output> = DesignTokenProperties<'animationDuration' | 'fontSize' | 'height' | 'strokeEmpty' | 'strokeFilled' | 'strokeLinecap' | 'width', Output>;
|
|
5
|
+
export type LoaderTokens<Output extends OutputVariantKey> = BaseLoaderTokens<Output> & {
|
|
6
6
|
small?: LoaderSizeTokens<Output>;
|
|
7
7
|
large?: LoaderSizeTokens<Output>;
|
|
8
8
|
linear?: Omit<BaseLoaderTokens<Output> & DesignTokenProperties<'minWidth' | 'strokeWidth', Output> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type MenuSizeTokens<Output> = DesignTokenProperties<'width' | 'height', Output>;
|
|
3
|
+
export type MenuTokens<Output extends OutputVariantKey> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderRadius' | 'borderStyle' | 'borderWidth' | 'boxShadow' | 'flexDirection' | 'gap' | 'maxWidth' | 'minWidth', Output> & {
|
|
4
4
|
small?: MenuSizeTokens<Output>;
|
|
5
5
|
large?: MenuSizeTokens<Output>;
|
|
6
6
|
item?: DesignTokenProperties<'minHeight' | 'paddingInlineEnd' | 'paddingInlineStart', Output>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type PaginationTokens<Output extends OutputVariantKey> = {
|
|
3
3
|
current?: DesignTokenProperties<'alignItems' | 'backgroundColor' | 'color' | 'fontSize' | 'justifyContent', Output>;
|
|
4
4
|
button?: DesignTokenProperties<'color' | 'paddingInlineEnd' | 'paddingInlineStart' | 'transitionDuration' | 'transitionProperty', Output> & {
|
|
5
5
|
hover?: DesignTokenProperties<'backgroundColor' | 'color', Output>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
|
|
3
|
+
type ButtonTokens<Output> = DesignTokenProperties<'color', Output> & {
|
|
4
4
|
_active?: StateTokens<Output>;
|
|
5
5
|
_disabled?: StateTokens<Output>;
|
|
6
6
|
_focus?: StateTokens<Output>;
|
|
7
7
|
_hover?: StateTokens<Output>;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type PasswordFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & {
|
|
10
10
|
button?: ButtonTokens<Output>;
|
|
11
11
|
};
|
|
12
12
|
export declare const passwordfield: Required<PasswordFieldTokens<'default'>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
export
|
|
2
|
+
export type PhoneNumberFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'borderColor' | 'fontSize', Output> & {
|
|
3
3
|
_focus?: DesignTokenProperties<'borderColor', Output>;
|
|
4
4
|
};
|
|
5
5
|
export declare const phonenumberfield: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type PlaceholderSizeTokens<Output> = DesignTokenProperties<'height', Output>;
|
|
3
|
+
export type PlaceholderTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderRadius' | 'transitionDuration' | 'startColor' | 'endColor', Output> & {
|
|
4
4
|
small?: PlaceholderSizeTokens<Output>;
|
|
5
5
|
default?: PlaceholderSizeTokens<Output>;
|
|
6
6
|
large?: PlaceholderSizeTokens<Output>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DesignTokenProperties, OutputVariantKey } from '../types/designToken';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
type RadioButtonSizeTokens<Output> = DesignTokenProperties<'width' | 'height', Output>;
|
|
3
|
+
export type RadioTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'justifyContent' | 'gap', Output> & {
|
|
4
4
|
_disabled?: DesignTokenProperties<'cursor', Output>;
|
|
5
5
|
button?: DesignTokenProperties<'alignItems' | 'justifyContent' | 'width' | 'height' | 'boxSizing' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'borderColor' | 'color' | 'backgroundColor' | 'transitionProperty' | 'transitionDuration' | 'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'padding', Output> & {
|
|
6
6
|
small?: RadioButtonSizeTokens<Output>;
|