@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.
Files changed (104) hide show
  1. package/dist/esm/index.mjs +1 -1
  2. package/dist/esm/theme/tokens/components/field.mjs +1 -1
  3. package/dist/esm/theme/tokens/components/index.mjs +1 -1
  4. package/dist/esm/theme/tokens/components/liveness.mjs +1 -0
  5. package/dist/esm/utils/index.mjs +1 -1
  6. package/dist/index.js +1 -1
  7. package/dist/styles.css +403 -2
  8. package/dist/theme.css +2 -0
  9. package/dist/types/helpers/accountSettings/utils.d.ts +1 -1
  10. package/dist/types/helpers/authenticator/facade.d.ts +5 -5
  11. package/dist/types/helpers/authenticator/utils.d.ts +1 -1
  12. package/dist/types/helpers/utils.d.ts +1 -1
  13. package/dist/types/i18n/dictionaries/authenticator/types.d.ts +2 -2
  14. package/dist/types/i18n/translations.d.ts +2 -2
  15. package/dist/types/machines/authenticator/actions.d.ts +27 -27
  16. package/dist/types/machines/authenticator/actors/resetPassword.d.ts +1 -1
  17. package/dist/types/machines/authenticator/actors/signIn.d.ts +1 -1
  18. package/dist/types/machines/authenticator/index.d.ts +1 -1
  19. package/dist/types/machines/authenticator/signUp.d.ts +1 -1
  20. package/dist/types/theme/breakpoints.d.ts +1 -1
  21. package/dist/types/theme/tokens/borderWidths.d.ts +2 -2
  22. package/dist/types/theme/tokens/colors.d.ts +22 -22
  23. package/dist/types/theme/tokens/components/alert.d.ts +5 -5
  24. package/dist/types/theme/tokens/components/authenticator.d.ts +10 -10
  25. package/dist/types/theme/tokens/components/autocomplete.d.ts +1 -1
  26. package/dist/types/theme/tokens/components/badge.d.ts +6 -6
  27. package/dist/types/theme/tokens/components/button.d.ts +8 -8
  28. package/dist/types/theme/tokens/components/card.d.ts +3 -3
  29. package/dist/types/theme/tokens/components/checkbox.d.ts +6 -6
  30. package/dist/types/theme/tokens/components/checkboxField.d.ts +1 -1
  31. package/dist/types/theme/tokens/components/collection.d.ts +3 -3
  32. package/dist/types/theme/tokens/components/copy.d.ts +1 -1
  33. package/dist/types/theme/tokens/components/dialCodeSelect.d.ts +1 -1
  34. package/dist/types/theme/tokens/components/divider.d.ts +2 -2
  35. package/dist/types/theme/tokens/components/expander.d.ts +5 -5
  36. package/dist/types/theme/tokens/components/field.d.ts +2 -2
  37. package/dist/types/theme/tokens/components/fieldControl.d.ts +6 -6
  38. package/dist/types/theme/tokens/components/fieldGroup.d.ts +1 -1
  39. package/dist/types/theme/tokens/components/fieldMessages.d.ts +1 -1
  40. package/dist/types/theme/tokens/components/fileUploader.d.ts +2 -2
  41. package/dist/types/theme/tokens/components/flex.d.ts +1 -1
  42. package/dist/types/theme/tokens/components/heading.d.ts +3 -3
  43. package/dist/types/theme/tokens/components/highlightMatch.d.ts +1 -1
  44. package/dist/types/theme/tokens/components/icon.d.ts +1 -1
  45. package/dist/types/theme/tokens/components/image.d.ts +1 -1
  46. package/dist/types/theme/tokens/components/inAppMessaging.d.ts +5 -5
  47. package/dist/types/theme/tokens/components/index.d.ts +6 -4
  48. package/dist/types/theme/tokens/components/link.d.ts +2 -2
  49. package/dist/types/theme/tokens/components/liveness.d.ts +8 -0
  50. package/dist/types/theme/tokens/components/loader.d.ts +4 -4
  51. package/dist/types/theme/tokens/components/menu.d.ts +2 -2
  52. package/dist/types/theme/tokens/components/pagination.d.ts +1 -1
  53. package/dist/types/theme/tokens/components/passwordField.d.ts +3 -3
  54. package/dist/types/theme/tokens/components/phoneNumberField.d.ts +1 -1
  55. package/dist/types/theme/tokens/components/placeholder.d.ts +2 -2
  56. package/dist/types/theme/tokens/components/radio.d.ts +2 -2
  57. package/dist/types/theme/tokens/components/radioGroup.d.ts +1 -1
  58. package/dist/types/theme/tokens/components/rating.d.ts +1 -1
  59. package/dist/types/theme/tokens/components/searchField.d.ts +3 -3
  60. package/dist/types/theme/tokens/components/select.d.ts +2 -2
  61. package/dist/types/theme/tokens/components/selectField.d.ts +1 -1
  62. package/dist/types/theme/tokens/components/sliderField.d.ts +3 -3
  63. package/dist/types/theme/tokens/components/stepperField.d.ts +2 -2
  64. package/dist/types/theme/tokens/components/switchField.d.ts +3 -3
  65. package/dist/types/theme/tokens/components/table.d.ts +5 -5
  66. package/dist/types/theme/tokens/components/tabs.d.ts +3 -3
  67. package/dist/types/theme/tokens/components/text.d.ts +4 -4
  68. package/dist/types/theme/tokens/components/textAreaField.d.ts +2 -2
  69. package/dist/types/theme/tokens/components/textField.d.ts +1 -1
  70. package/dist/types/theme/tokens/components/toggleButton.d.ts +2 -2
  71. package/dist/types/theme/tokens/components/toggleButtonGroup.d.ts +2 -2
  72. package/dist/types/theme/tokens/fontSizes.d.ts +2 -2
  73. package/dist/types/theme/tokens/fontWeights.d.ts +2 -2
  74. package/dist/types/theme/tokens/fonts.d.ts +3 -3
  75. package/dist/types/theme/tokens/index.d.ts +6 -6
  76. package/dist/types/theme/tokens/lineHeights.d.ts +2 -2
  77. package/dist/types/theme/tokens/opacities.d.ts +2 -2
  78. package/dist/types/theme/tokens/outlineOffsets.d.ts +2 -2
  79. package/dist/types/theme/tokens/outlineWidths.d.ts +2 -2
  80. package/dist/types/theme/tokens/radii.d.ts +2 -2
  81. package/dist/types/theme/tokens/shadows.d.ts +2 -2
  82. package/dist/types/theme/tokens/space.d.ts +4 -4
  83. package/dist/types/theme/tokens/time.d.ts +2 -2
  84. package/dist/types/theme/tokens/transforms.d.ts +3 -3
  85. package/dist/types/theme/tokens/types/designToken.d.ts +66 -66
  86. package/dist/types/theme/tokens/types/typography.d.ts +1 -1
  87. package/dist/types/theme/types.d.ts +2 -2
  88. package/dist/types/theme/utils.d.ts +3 -3
  89. package/dist/types/types/accountSettings/validator.d.ts +2 -2
  90. package/dist/types/types/authenticator/attributes.d.ts +7 -7
  91. package/dist/types/types/authenticator/form.d.ts +6 -6
  92. package/dist/types/types/authenticator/stateMachine/authMachine.d.ts +3 -3
  93. package/dist/types/types/authenticator/stateMachine/context.d.ts +2 -2
  94. package/dist/types/types/authenticator/stateMachine/event.d.ts +3 -3
  95. package/dist/types/types/authenticator/stateMachine/state.d.ts +6 -6
  96. package/dist/types/types/authenticator/user.d.ts +2 -2
  97. package/dist/types/types/authenticator/validator.d.ts +4 -4
  98. package/dist/types/types/primitives/componentClassName.d.ts +1 -0
  99. package/dist/types/types/primitives/index.d.ts +1 -1
  100. package/dist/types/types/util.d.ts +5 -5
  101. package/dist/types/utils/index.d.ts +18 -1
  102. package/package.json +1 -1
  103. package/dist/esm/utils/classname.mjs +0 -1
  104. package/dist/types/utils/classname.d.ts +0 -19
@@ -1,5 +1,5 @@
1
1
  import { BorderWidthValue, DesignTokenValues, OutputVariantKey } from './types/designToken';
2
- declare type BorderWidthSize = 'small' | 'medium' | 'large';
3
- export declare 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>>;
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
- declare type BaseColorValues<VariantKey extends string | number, Output, Platform = unknown> = DesignTokenValues<VariantKey, ColorValue, Output, Platform>;
6
- declare type ColorValues<VariantKey extends string | number, Output, Platform = unknown> = Output extends 'required' | 'default' ? BaseColorValues<VariantKey, Output, Platform> : Partial<BaseColorValues<VariantKey, Output, Platform>>;
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
- declare type BaseColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Record<VariantKey, ColorValues<ScaleKey, Output, Platform>>;
11
- declare type ColorValueScale<VariantKey extends string | number, Output, Platform = unknown> = Output extends 'required' | 'default' ? BaseColorValueScale<VariantKey, Output, Platform> : Partial<BaseColorValueScale<VariantKey, Output, Platform>>;
12
- declare type ScaleKey = 10 | 20 | 40 | 60 | 80 | 90 | 100;
13
- declare type OverlayKey = 10 | 20 | 30 | 40 | 50 | 60 | 70 | 80 | 90;
14
- declare type ColorPaletteKey = 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'purple' | 'pink' | 'neutral';
15
- declare type GreyscalePaletteKey = 'white' | 'black' | 'transparent';
16
- declare type OrderVariant = 'primary' | 'secondary' | 'tertiary';
17
- declare type OrderVariantKey<Output = unknown> = Output extends 'default' ? Exclude<OrderVariant, 'quaternary'> : OrderVariant;
18
- declare type InformationVariantKey = 'info' | 'warning' | 'error' | 'success';
19
- declare type WebStateVariantKey = 'active' | 'disabled' | 'error' | 'hover' | 'focus' | 'pressed';
20
- declare type ReactNativeStateVariantKey = Exclude<WebStateVariantKey, 'focused' | 'hover'>;
21
- declare type StateVariantKey<Platform> = Platform extends 'react-native' ? ReactNativeStateVariantKey : WebStateVariantKey;
22
- declare type BrandVariantKey = Extract<OrderVariantKey, 'primary' | 'secondary'>;
23
- declare type FontVariantKey<Output, Platform> = 'inverse' | 'interactive' | Extract<StateVariantKey<Platform>, 'active' | 'disabled' | 'hover' | 'focus'> | OrderVariantKey<Output> | InformationVariantKey;
24
- declare type BackgroundColorKey<Platform> = Extract<StateVariantKey<Platform>, 'disabled'> | OrderVariantKey | InformationVariantKey | 'quaternary';
25
- declare type BorderColorKey<Output, Platform> = Extract<StateVariantKey<Platform>, 'disabled' | 'error'> | OrderVariantKey<Output> | (Output extends 'default' ? Exclude<StateVariantKey<Platform>, 'active' | 'hover'> : StateVariantKey<Platform>);
26
- declare type PaletteValues<Output, Platform> = ColorValueScale<ColorPaletteKey, Output, Platform>;
27
- declare type GreyscaleColors<Output, Platform> = ColorValues<GreyscalePaletteKey, Output, Platform>;
28
- declare type BaseColors<Output extends OutputVariantKey = unknown, Platform = unknown> = PaletteValues<Output, Platform> & GreyscaleColors<Output, Platform> & {
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 declare type Colors<Output extends OutputVariantKey = unknown, Platform = unknown> = (Output extends 'required' | 'default' ? Required<BaseColors<Output, Platform>> : BaseColors<Output, Platform>) & Record<string, any>;
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
- declare type AlertVariationTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'color', OutputType>;
3
- declare type AlertIconTokens<OutputType> = DesignTokenProperties<'size', OutputType>;
4
- declare type AlertHeadingTokens<OutputType> = DesignTokenProperties<'fontSize' | 'fontWeight', OutputType>;
5
- declare type AlertTokenKey = 'alignItems' | 'justifyContent' | 'color' | 'backgroundColor' | 'paddingBlock' | 'paddingInline';
6
- export declare type AlertTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<AlertTokenKey, OutputType> & {
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
- declare type ModalTokenKey = 'width' | 'height' | 'backgroundColor' | 'top' | 'left';
3
- declare type AuthenticatorModalTokens<OutputType> = DesignTokenProperties<ModalTokenKey, OutputType>;
4
- declare type RouterKey = 'borderWidth' | 'borderStyle' | 'borderColor' | 'backgroundColor' | 'boxShadow';
5
- declare type AuthenticatorRouterTokens<OutputType> = DesignTokenProperties<RouterKey, OutputType>;
6
- declare type AuthenticatorFooterTokens<OutputType> = DesignTokenProperties<'paddingBottom', OutputType>;
7
- declare type AuthenticatorFormTokens<OutputType> = DesignTokenProperties<'padding', OutputType>;
8
- declare type AuthenticatorStateTokens<OutputType> = {
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
- declare type AuthenticatorOrContainerTokens<OutputType> = DesignTokenProperties<'color', OutputType> & {
11
+ type AuthenticatorOrContainerTokens<OutputType> = DesignTokenProperties<'color', OutputType> & {
12
12
  orLine?: DesignTokenProperties<'backgroundColor', OutputType>;
13
13
  };
14
- declare type AuthenticatorContainerToken<OutputType> = {
14
+ type AuthenticatorContainerToken<OutputType> = {
15
15
  widthMax?: DesignTokenProperties<'maxWidth', OutputType>['maxWidth'];
16
16
  };
17
- export declare type AuthenticatorTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<'maxWidth', OutputType> & {
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 declare type AutocompleteTokens<OutputType extends OutputVariantKey> = {
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
- declare type VariationKey = 'backgroundColor' | 'color';
3
- declare type BadgeVariationTokens<OutputType> = DesignTokenProperties<VariationKey, OutputType>;
4
- declare type SizeKey = 'fontSize' | 'paddingHorizontal' | 'paddingVertical';
5
- declare type BadgeSizeTokens<OutputType> = DesignTokenProperties<SizeKey, OutputType>;
6
- declare type BadgeKey = 'backgroundColor' | 'borderRadius' | 'color' | 'fontSize' | 'fontWeight' | 'lineHeight' | 'paddingHorizontal' | 'paddingVertical' | 'textAlign';
7
- export declare type BadgeTokens<OutputType extends OutputVariantKey> = DesignTokenProperties<BadgeKey, OutputType> & {
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
- declare type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
3
- declare type StateWithShadowTokens<Output> = StateTokens<Output> & DesignTokenProperties<'boxShadow', Output>;
4
- declare type MenuStateTokens<Output> = Omit<StateTokens<Output>, 'borderColor'>;
5
- declare type PrimaryVariationTokens<Output> = StateTokens<Output> & DesignTokenProperties<'borderStyle' | 'borderWidth', Output> & {
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
- declare type MenuVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderWidth' | 'justifyContent', Output> & {
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
- declare type LinkVariationTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'borderWidth' | 'color', Output> & {
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
- declare type ButtonSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
26
- export declare type ButtonTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontWeight' | 'transitionDuration' | 'fontSize' | 'lineHeight' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'borderColor' | 'borderWidth' | 'borderStyle' | 'borderRadius' | 'color', Output> & {
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
- declare type CardVariationStyleKey = 'backgroundColor' | 'borderRadius' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'boxShadow';
3
- declare type CardVariationTokens<OutputType> = DesignTokenProperties<CardVariationStyleKey, OutputType>;
4
- export declare type CardTokens<OutputType extends OutputVariantKey> = CardVariationTokens<OutputType> & DesignTokenProperties<'padding', OutputType> & {
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
- declare type ButtonFocusToken<Output> = DesignTokenProperties<'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset' | 'borderColor' | 'boxShadow', Output>;
3
- declare type BeforeToken<Output> = DesignTokenProperties<'width' | 'height' | 'borderWidth' | 'borderRadius' | 'borderStyle' | 'borderColor', Output>;
4
- declare type ButtonToken<Output> = DesignTokenProperties<'position' | 'alignItems' | 'justifyContent' | 'color', Output> & {
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
- declare type IconCheckedStateToken<Output> = DesignTokenProperties<'opacity' | 'transform'> & {
12
+ type IconCheckedStateToken<Output> = DesignTokenProperties<'opacity' | 'transform'> & {
13
13
  _disabled?: DesignTokenProperties<'backgroundColor', Output>;
14
14
  };
15
- declare type IconToken<Output> = DesignTokenProperties<'backgroundColor' | 'borderRadius' | 'opacity' | 'transform' | 'transitionProperty' | 'transitionDuration' | 'transitionTimingFunction', Output> & {
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 declare type CheckboxTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'cursor', Output> & {
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 declare type CheckboxFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'alignContent' | 'flexDirection' | 'justifyContent', Output>;
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
- declare type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
3
- declare type PaginationTokens<Output> = {
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
- declare type SearchTokens<Output> = {
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 declare type CopyTokens<Output extends OutputVariantKey> = DesignTokenProperties<'fontSize' | 'gap', Output> & {
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 declare type DialCodeSelectTokens<Output extends OutputVariantKey> = DesignTokenProperties<'height', Output>;
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
- declare type DividerSizeTokens<Output> = DesignTokenProperties<'borderWidth', Output>;
3
- export declare type DividerTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderStyle' | 'borderColor' | 'borderWidth' | 'opacity', Output> & {
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
- declare type ExpanderItemTokens<Output> = DesignTokenProperties<'marginTop' | 'boxShadow' | 'borderBottomLeftRadius' | 'borderBottomRightRadius' | 'borderTopLeftRadius' | 'borderTopRightRadius' | 'borderStartStartRadius' | 'borderStartEndRadius' | 'borderEndStartRadius' | 'borderEndEndRadius', Output> & {
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
- declare type ExpanderTriggerTokens<Output> = DesignTokenProperties<'minHeight' | 'paddingInlineStart' | 'paddingInlineEnd' | 'alignItems' | 'justifyContent', Output> & {
5
+ type ExpanderTriggerTokens<Output> = DesignTokenProperties<'minHeight' | 'paddingInlineStart' | 'paddingInlineEnd' | 'alignItems' | 'justifyContent', Output> & {
6
6
  _hover?: DesignTokenProperties<'backgroundColor', Output>;
7
7
  };
8
- declare type ExpanderContentStateTokens<Output> = DesignTokenProperties<'animationDuration' | 'animationTimingFunction', Output>;
9
- declare type ExpanderContentTokens<Output> = DesignTokenProperties<'paddingInlineStart' | 'paddingInlineEnd', Output> & {
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 declare type ExpanderTokens<Output extends OutputVariantKey> = DesignTokenProperties<'display' | 'backgroundColor' | 'borderRadius' | 'boxShadow' | 'width', Output> & {
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
- declare type FieldSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'gap', Output>;
3
- export declare type FieldTokens<Output extends OutputVariantKey> = FieldSizeTokens<Output> & {
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
- declare type FieldControlSizeTokens<Output> = DesignTokenProperties<'fontSize' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd', Output>;
3
- declare type FieldControlFocusTokens<Output> = DesignTokenProperties<'borderColor' | 'boxShadow', Output>;
4
- declare type FieldControlDisabledTokens<Output> = DesignTokenProperties<'color' | 'cursor' | 'borderColor' | 'backgroundColor', Output>;
5
- declare type FieldControlErrorTokens<Output> = DesignTokenProperties<'borderColor', Output> & {
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
- declare type FieldControlQuietTokens<Output> = DesignTokenProperties<'borderStyle' | 'borderInlineStart' | 'borderInlineEnd' | 'borderBlockStart' | 'borderRadius', Output> & {
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 declare type FieldControlTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderStyle' | 'borderColor' | 'borderWidth' | 'borderRadius' | 'color' | 'paddingBlockStart' | 'paddingBlockEnd' | 'paddingInlineStart' | 'paddingInlineEnd' | 'fontSize' | 'lineHeight' | 'transitionDuration' | 'outlineColor' | 'outlineStyle' | 'outlineWidth' | 'outlineOffset', Output> & {
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 declare type FieldGroupTokens<Output extends OutputVariantKey> = DesignTokenProperties<'gap', Output> & {
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 declare type FieldMessagesTokens<Output extends OutputVariantKey> = {
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
- declare type BaseDropZoneTokens<OutputType> = DesignTokenProperties<'backgroundColor' | 'borderWidth' | 'borderStyle' | 'borderColor' | 'borderRadius', OutputType>;
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 declare type FlexTokens<Output extends OutputVariantKey> = DesignTokenProperties<'gap' | 'justifyContent' | 'alignItems' | 'alignContent' | 'flexWrap', Output>;
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
- 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', Output> & Partial<Record<Level, HeadingLevelTokens<Output>>>;
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 declare type HighlightMatchTokens<OutputType extends OutputVariantKey> = {
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 declare type IconTokens<Output extends OutputVariantKey> = DesignTokenProperties<'height' | 'lineHeight', Output>;
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 declare type ImageTokens<Output extends OutputVariantKey> = DesignTokenProperties<'maxWidth' | 'height' | 'objectFit' | 'objectPosition', Output>;
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
- 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> = {
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
- declare type BaseComponentTokens<Output extends OutputVariantKey> = {
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 declare type ComponentTokens = BaseComponentTokens<'optional'>;
101
- export declare type DefaultComponentTokens = Required<{
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 declare type WebComponentTokens = Required<{
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
- declare type LinkState = 'active' | 'focus' | 'hover' | 'visited';
3
- export declare type LinkTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & Partial<Record<LinkState, DesignTokenProperties<'color', Output>>>;
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
- 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> & {
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
- 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> & {
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 declare type PaginationTokens<Output extends OutputVariantKey> = {
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
- declare type StateTokens<Output> = DesignTokenProperties<'backgroundColor' | 'borderColor' | 'color', Output>;
3
- declare type ButtonTokens<Output> = DesignTokenProperties<'color', Output> & {
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 declare type PasswordFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color', Output> & {
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 declare type PhoneNumberFieldTokens<Output extends OutputVariantKey> = DesignTokenProperties<'color' | 'borderColor' | 'fontSize', Output> & {
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
- declare type PlaceholderSizeTokens<Output> = DesignTokenProperties<'height', Output>;
3
- export declare type PlaceholderTokens<Output extends OutputVariantKey> = DesignTokenProperties<'borderRadius' | 'transitionDuration' | 'startColor' | 'endColor', Output> & {
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
- declare type RadioButtonSizeTokens<Output> = DesignTokenProperties<'width' | 'height', Output>;
3
- export declare type RadioTokens<Output extends OutputVariantKey> = DesignTokenProperties<'alignItems' | 'justifyContent' | 'gap', Output> & {
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>;