@amboss/design-system 1.16.3 → 1.16.4--canary1

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 (86) hide show
  1. package/README.md +6 -3
  2. package/build/cjs/build-tokens/visualConfig.js +12 -8
  3. package/build/cjs/src/components/Container/Container.js +5 -5
  4. package/build/cjs/src/components/DropdownMenu/DropdownMenu.js +5 -5
  5. package/build/cjs/src/components/Form/Select/Select.js +6 -6
  6. package/build/esm/build-tokens/_colors.json +40 -0
  7. package/build/esm/build-tokens/_subThemeType.d.ts +1 -1
  8. package/build/esm/build-tokens/visualConfig.d.ts +10 -12
  9. package/build/esm/build-tokens/visualConfig.js +12 -8
  10. package/build/esm/build-tokens/visualConfig.js.map +1 -1
  11. package/build/esm/src/components/Badge/Badge.d.ts +1 -1
  12. package/build/esm/src/components/Box/Box.d.ts +1 -1
  13. package/build/esm/src/components/Button/Button.d.ts +3 -3
  14. package/build/esm/src/components/Callout/Callout.d.ts +1 -1
  15. package/build/esm/src/components/Card/Card.d.ts +1 -1
  16. package/build/esm/src/components/Card/CardBox.d.ts +1 -1
  17. package/build/esm/src/components/Collapsible/Collapsible.d.ts +2 -2
  18. package/build/esm/src/components/Column/Columns.d.ts +2 -2
  19. package/build/esm/src/components/Container/Container.d.ts +1 -1
  20. package/build/esm/src/components/Container/Container.js +5 -5
  21. package/build/esm/src/components/Container/Container.js.map +1 -1
  22. package/build/esm/src/components/DataTable/DataTable.d.ts +1 -1
  23. package/build/esm/src/components/DataTable/TableBody.d.ts +1 -1
  24. package/build/esm/src/components/DataTable/TableCell.d.ts +1 -1
  25. package/build/esm/src/components/DataTable/TableHeader.d.ts +1 -1
  26. package/build/esm/src/components/DataTable/types.d.ts +2 -2
  27. package/build/esm/src/components/DataTable/useDataTableSort.d.ts +1 -1
  28. package/build/esm/src/components/Divider/Divider.d.ts +1 -1
  29. package/build/esm/src/components/DropdownMenu/DropdownMenu.d.ts +5 -5
  30. package/build/esm/src/components/DropdownMenu/DropdownMenu.js +5 -5
  31. package/build/esm/src/components/DropdownMenu/DropdownMenu.js.map +1 -1
  32. package/build/esm/src/components/DropdownMenu/MenuItem.d.ts +1 -1
  33. package/build/esm/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
  34. package/build/esm/src/components/Form/FormErrorMessages/FormErrorMessages.d.ts +1 -1
  35. package/build/esm/src/components/Form/FormField/FormField.d.ts +2 -2
  36. package/build/esm/src/components/Form/FormFieldGroup/FormFieldGroup.d.ts +1 -1
  37. package/build/esm/src/components/Form/FormLabelText/FormLabelText.d.ts +1 -1
  38. package/build/esm/src/components/Form/Input/Input.d.ts +1 -1
  39. package/build/esm/src/components/Form/PasswordInput/PasswordInput.d.ts +2 -2
  40. package/build/esm/src/components/Form/Radio/Radio.d.ts +1 -1
  41. package/build/esm/src/components/Form/RadioButton/RadioButton.d.ts +1 -1
  42. package/build/esm/src/components/Form/SegmentedControl/SegmentedControl.d.ts +2 -2
  43. package/build/esm/src/components/Form/SegmentedControl/SegmentedControlOption.d.ts +1 -1
  44. package/build/esm/src/components/Form/Select/Select.d.ts +2 -2
  45. package/build/esm/src/components/Form/Select/Select.js +6 -6
  46. package/build/esm/src/components/Form/Select/Select.js.map +1 -1
  47. package/build/esm/src/components/Form/Textarea/Textarea.d.ts +1 -1
  48. package/build/esm/src/components/Form/Toggle/Toggle.d.ts +1 -1
  49. package/build/esm/src/components/Form/ToggleButton/ToggleButton.d.ts +1 -1
  50. package/build/esm/src/components/Icon/Icon.d.ts +3 -3
  51. package/build/esm/src/components/Inline/Inline.d.ts +1 -1
  52. package/build/esm/src/components/Link/Link.d.ts +2 -2
  53. package/build/esm/src/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
  54. package/build/esm/src/components/Logo/Logo.d.ts +1 -1
  55. package/build/esm/src/components/MediaItem/MediaItem.d.ts +1 -1
  56. package/build/esm/src/components/MediaViewerBar/MediaViewerBar.d.ts +1 -1
  57. package/build/esm/src/components/Notification/Notification.d.ts +1 -1
  58. package/build/esm/src/components/Pagination/Pagination.d.ts +1 -1
  59. package/build/esm/src/components/Patterns/ButtonGroup/ButtonGroup.d.ts +2 -2
  60. package/build/esm/src/components/Patterns/Modal/Modal.d.ts +1 -1
  61. package/build/esm/src/components/PictogramButton/PictogramButton.d.ts +2 -2
  62. package/build/esm/src/components/Portal/Portal.d.ts +1 -1
  63. package/build/esm/src/components/ProgressBar/ProgressBar.d.ts +1 -1
  64. package/build/esm/src/components/RoundButton/RoundButton.d.ts +1 -1
  65. package/build/esm/src/components/SearchResult/SearchResult.d.ts +3 -3
  66. package/build/esm/src/components/SegmentedProgressBar/SegmentedProgressBar.d.ts +6 -6
  67. package/build/esm/src/components/Stack/Stack.d.ts +1 -1
  68. package/build/esm/src/components/SubThemeProvider/SubThemeProvider.d.ts +1 -1
  69. package/build/esm/src/components/Tabs/Tabs.d.ts +2 -2
  70. package/build/esm/src/components/Tag/Tag.d.ts +3 -3
  71. package/build/esm/src/components/TagGroup/TagGroup.d.ts +3 -3
  72. package/build/esm/src/components/Tooltip/Tooltip.d.ts +4 -4
  73. package/build/esm/src/components/Typography/Header/Header.d.ts +1 -1
  74. package/build/esm/src/components/Typography/StyledText/StyledText.d.ts +2 -2
  75. package/build/esm/src/components/Typography/Text/Text.d.ts +1 -1
  76. package/build/esm/src/components/Typography/TextClamped/TextClamped.d.ts +1 -1
  77. package/build/esm/src/components/VirtualScrollList/VirtualScrollList.d.ts +1 -1
  78. package/build/esm/src/components/VirtualScrollList/VirtualScrollListReducer.d.ts +3 -3
  79. package/build/esm/src/shared/mediaQueries.d.ts +6 -6
  80. package/build/esm/src/shared/useAutoPosition.d.ts +3 -3
  81. package/build/esm/src/types/index.d.ts +28 -28
  82. package/build/scss/_theming.scss +239 -0
  83. package/build/scss/_variables.scss +111 -0
  84. package/package.json +2 -2
  85. package/build/scss/themes/dark.scss +0 -111
  86. package/build/scss/themes/light.scss +0 -111
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type LogoProps = {
2
+ export type LogoProps = {
3
3
  href: string;
4
4
  ariaLabel?: string;
5
5
  role?: string;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type MediaItemProps = {
2
+ export type MediaItemProps = {
3
3
  src: string;
4
4
  title: string;
5
5
  /** Sets the height of the media to equal the width value making a square <br/>
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from "react";
2
- export declare type MediaViewerBarProps = {
2
+ export type MediaViewerBarProps = {
3
3
  children?: ReactElement | ReactElement[];
4
4
  hasSeparator?: boolean;
5
5
  "data-e2e-test-id"?: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { IconName } from "../Icon/Icon";
3
- export declare type NotificationProps = {
3
+ export type NotificationProps = {
4
4
  "data-e2e-test-id"?: string;
5
5
  text?: string;
6
6
  icon?: IconName;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type PaginationProps = {
2
+ export type PaginationProps = {
3
3
  /** Total number of items */
4
4
  numOfItems: number;
5
5
  /** Current page */
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  import { MQ, SpaceSizes } from "../../../types";
3
3
  import { ButtonProps } from "../../Button/Button";
4
- export declare type ActionButtonProps = {
4
+ export type ActionButtonProps = {
5
5
  text: string;
6
6
  } & ButtonProps;
7
- export declare type ButtonGroupProps = {
7
+ export type ButtonGroupProps = {
8
8
  actionButton?: ActionButtonProps;
9
9
  cancelButtonText?: string;
10
10
  onButtonClick?: (action: "cancel" | "action") => void;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { StackProps } from "../../Stack/Stack";
3
3
  import { ActionButtonProps } from "../ButtonGroup/ButtonGroup";
4
4
  import { TextProps } from "../../Typography/Text/Text";
5
- export declare type ModalProps = {
5
+ export type ModalProps = {
6
6
  header: string;
7
7
  onAction: (action: "cancel" | "action") => void;
8
8
  role?: "dialog" | "alertdialog";
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { IconName } from "../Icon/Icon";
3
3
  import { ButtonProps } from "../Button/Button";
4
4
  import { PolymorphicComponentPropsWithRef } from "../../types";
5
- export declare type PictogramButtonProps = {
5
+ export type PictogramButtonProps = {
6
6
  /** The centered icon to be displayed. */
7
7
  icon: IconName;
8
8
  /** If true, the button has square corners. */
@@ -10,6 +10,6 @@ export declare type PictogramButtonProps = {
10
10
  /** Size */
11
11
  size?: "xs" | "s" | "m";
12
12
  } & Omit<ButtonProps, "size" | "leftIcon" | "rightIcon" | "fullWidth" | "destructive" | "privateProps" | "loading">;
13
- declare type PictogramButtonComponent = <C extends React.ElementType = "button">(props: PolymorphicComponentPropsWithRef<C, PictogramButtonProps>) => React.ReactElement | null;
13
+ type PictogramButtonComponent = <C extends React.ElementType = "button">(props: PolymorphicComponentPropsWithRef<C, PictogramButtonProps>) => React.ReactElement | null;
14
14
  export declare const PictogramButton: PictogramButtonComponent;
15
15
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  export declare const AMBOSS_DS_PORTAL = "amboss-ds-portal";
3
- declare type PortalProps = {
3
+ type PortalProps = {
4
4
  children: React.ReactNode;
5
5
  };
6
6
  export declare function Portal({ children }: PortalProps): React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ProgressBarWeight } from "../SegmentedProgressBar/SegmentedProgressBar";
3
- export declare type ProgressBarProps = {
3
+ export type ProgressBarProps = {
4
4
  /** The value for 100% progress. Consumer does not need to do percentage calculation. */
5
5
  maxValue: number;
6
6
  /** The value already progressed. If progress >= maxValue the bar is filled completely */
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { IconName } from "../Icon/Icon";
3
3
  import { ButtonProps } from "../Button/Button";
4
4
  import { AsProp } from "../../types";
5
- export declare type RoundButtonProps = Omit<ButtonProps, "destructive" | "loading" | "leftIcon" | "rightIcon" | "fullWidth" | "privateProps" | "size"> & {
5
+ export type RoundButtonProps = Omit<ButtonProps, "destructive" | "loading" | "leftIcon" | "rightIcon" | "fullWidth" | "privateProps" | "size"> & {
6
6
  /** The centered icon to be displayed. */
7
7
  icon: IconName;
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { IconName } from "../Icon/Icon";
3
- export declare type SecondaryTarget = {
3
+ export type SecondaryTarget = {
4
4
  title: string;
5
5
  body?: string;
6
6
  link: (props: {
@@ -8,10 +8,10 @@ export declare type SecondaryTarget = {
8
8
  }) => React.ReactElement;
9
9
  "data-e2e-test-id"?: string;
10
10
  };
11
- export declare type SecondaryTargetsProps = {
11
+ export type SecondaryTargetsProps = {
12
12
  data: SecondaryTarget[];
13
13
  };
14
- export declare type SearchResultProps = {
14
+ export type SearchResultProps = {
15
15
  /** The result title. Supports some nested HTML tags like <b> and <i>. Text gets clamped after 3 lines. */
16
16
  title: string;
17
17
  /** The subtitle that accompanies the title. Supports some nested HTML tags like <b> and <i>. Text gets clamped after 3 lines. */
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- export declare type ValuesVariant = "success" | "warning" | "alert";
3
- export declare type StyleVariant = ValuesVariant | "inProgress";
4
- export declare type Value = number;
5
- export declare type ProgressBarWeight = "thin" | "fat";
6
- export declare type SegmentedProgressBarProps = {
2
+ export type ValuesVariant = "success" | "warning" | "alert";
3
+ export type StyleVariant = ValuesVariant | "inProgress";
4
+ export type Value = number;
5
+ export type ProgressBarWeight = "thin" | "fat";
6
+ export type SegmentedProgressBarProps = {
7
7
  /** The value for 100% progress. Consumer does not need to do percentage calculation.
8
8
  * Just pass this number and some values. The progress bar does all percentag calculations */
9
9
  maxValue: number;
@@ -18,7 +18,7 @@ export declare type SegmentedProgressBarProps = {
18
18
  privateProps?: SegmentedProgressBarPrivateProps;
19
19
  "data-e2e-test-id"?: string;
20
20
  };
21
- declare type SegmentedProgressBarPrivateProps = {
21
+ type SegmentedProgressBarPrivateProps = {
22
22
  monochrome?: boolean;
23
23
  };
24
24
  export declare function SegmentedProgressBar({ maxValue, values, weight, squareCorners, privateProps: { monochrome }, "data-e2e-test-id": dataE2eTestId, }: SegmentedProgressBarProps): React.ReactElement;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { HorizontalAlignment, MQ, SpaceSizes } from "../../types";
3
- export declare type StackProps = {
3
+ export type StackProps = {
4
4
  /** Represents the vertical between the Stack's children
5
5
  * specify [small screen space, medium screen space, large screen space] or one space for all screen sizes
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { SubThemeTypes } from "../../../build-tokens/_subThemeType";
3
- export declare type SubThemeProviderProps = {
3
+ export type SubThemeProviderProps = {
4
4
  "data-e2e-test-id"?: string;
5
5
  children: React.ReactNode[] | React.ReactNode;
6
6
  name: "unset" | SubThemeTypes;
@@ -7,13 +7,13 @@ import { IconName } from "../Icon/Icon";
7
7
  * @param icon - An icon to display to the left of the label
8
8
  * @param as - The element to render the tab as, defaults to `button`
9
9
  */
10
- declare type Tab = {
10
+ type Tab = {
11
11
  label: string;
12
12
  sublabel?: string;
13
13
  icon?: IconName;
14
14
  as?: "a" | "button" | React.ComponentType;
15
15
  } & Partial<React.ComponentProps<"button">> & Partial<React.ComponentProps<"a">>;
16
- export declare type TabsProps = {
16
+ export type TabsProps = {
17
17
  children?: React.ReactElement;
18
18
  /** The index of the active tab */
19
19
  activeTab?: number;
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  export declare const MAX_TAG_WIDTH = 200;
3
- declare type BaseTagProps = {
3
+ type BaseTagProps = {
4
4
  label: string;
5
5
  colorVariant?: "gray" | "blue";
6
6
  "data-e2e-test-id"?: string;
7
7
  };
8
- declare type ConditionalTagProps = {
8
+ type ConditionalTagProps = {
9
9
  isRemovable?: false;
10
10
  onClear?: never;
11
11
  clearBtnAriaLabel?: never;
@@ -14,6 +14,6 @@ declare type ConditionalTagProps = {
14
14
  onClear: () => void;
15
15
  clearBtnAriaLabel?: string;
16
16
  };
17
- export declare type TagProps = BaseTagProps & ConditionalTagProps;
17
+ export type TagProps = BaseTagProps & ConditionalTagProps;
18
18
  export declare function Tag({ label, colorVariant, isRemovable, onClear, clearBtnAriaLabel, "data-e2e-test-id": dataE2eTestId, }: TagProps): React.ReactElement;
19
19
  export {};
@@ -1,17 +1,17 @@
1
1
  import React from "react";
2
2
  import { TagProps } from "../Tag/Tag";
3
- declare type BaseTagGroupProps = {
3
+ type BaseTagGroupProps = {
4
4
  tags: TagProps[];
5
5
  colorVariant?: TagProps["colorVariant"];
6
6
  "data-e2e-test-id"?: string;
7
7
  };
8
- declare type ConditionalTagGroupProps = {
8
+ type ConditionalTagGroupProps = {
9
9
  isTagRemovable?: false;
10
10
  onRemoveTag?: never;
11
11
  } | {
12
12
  isTagRemovable: true;
13
13
  onRemoveTag: (tag: TagProps) => void;
14
14
  };
15
- export declare type TagGroupProps = BaseTagGroupProps & ConditionalTagGroupProps;
15
+ export type TagGroupProps = BaseTagGroupProps & ConditionalTagGroupProps;
16
16
  export declare function TagGroup({ colorVariant, isTagRemovable, tags, onRemoveTag, "data-e2e-test-id": dataE2eTestId, }: TagGroupProps): React.ReactElement;
17
17
  export {};
@@ -1,20 +1,20 @@
1
1
  import React, { MutableRefObject } from "react";
2
- export declare type BaseProps = {
2
+ export type BaseProps = {
3
3
  content: string;
4
4
  placement?: "auto" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
5
5
  portalContainer?: HTMLElement;
6
6
  "data-e2e-test-id"?: string;
7
7
  onVisibilityChange?: (isVisible: boolean) => void;
8
8
  };
9
- export declare type ConditionalProps = {
9
+ export type ConditionalProps = {
10
10
  externalTriggerRef?: never;
11
11
  children: React.ReactElement;
12
12
  } | {
13
13
  children?: never;
14
14
  externalTriggerRef: MutableRefObject<any>;
15
15
  };
16
- export declare type TooltipProps = BaseProps & ConditionalProps;
17
- export declare type TooltipPosition = {
16
+ export type TooltipProps = BaseProps & ConditionalProps;
17
+ export type TooltipPosition = {
18
18
  top: number;
19
19
  left: number;
20
20
  horizontalPlacement: "left" | "right" | "center";
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Theme } from "@emotion/react";
3
3
  import { BaseColors } from "src/types";
4
- export declare type HeaderProps = {
4
+ export type HeaderProps = {
5
5
  as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
6
6
  children: React.ReactNode;
7
7
  "data-e2e-test-id"?: string;
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
- export declare type FormattedElementProps = {
2
+ export type FormattedElementProps = {
3
3
  key: string;
4
4
  children: string | React.ReactNode[];
5
5
  };
6
6
  export declare const makeStyledJSX: (string: string) => React.ReactNode[] | string | null;
7
- export declare type StyledTextProps = {
7
+ export type StyledTextProps = {
8
8
  children: string;
9
9
  "data-e2e-test-id"?: string;
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { TextAlignment, TextVariations, TextColors, TextSize, MQ, Hyphens } from "../../../types";
3
- export declare type TextProps = {
3
+ export type TextProps = {
4
4
  children: React.ReactNode;
5
5
  size?: TextSize;
6
6
  weight?: "normal" | "bold" | "black" | "inherit";
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { TextProps } from "../Text/Text";
3
- export declare type TextClampedProps = TextProps & {
3
+ export type TextClampedProps = TextProps & {
4
4
  /** The maximum number of lines. Default is 1. */
5
5
  lines?: number;
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- export declare type VirtualScrollListProps = {
2
+ export type VirtualScrollListProps = {
3
3
  "data-e2e-test-id"?: string;
4
4
  maxHeight: number;
5
5
  itemHeight: number;
@@ -1,8 +1,8 @@
1
- declare type Offset = {
1
+ type Offset = {
2
2
  amount: number;
3
3
  isInterpolated: boolean;
4
4
  };
5
- declare type State = {
5
+ type State = {
6
6
  avgItemHeight?: number;
7
7
  overscan?: number;
8
8
  maxHeight?: number;
@@ -15,7 +15,7 @@ declare type State = {
15
15
  maxContentHeight?: number;
16
16
  recommendedScrollPosition?: number;
17
17
  };
18
- declare type Action = {
18
+ type Action = {
19
19
  type: "scroll";
20
20
  scrollTop: number;
21
21
  } | {
@@ -1,13 +1,13 @@
1
1
  import { ColumnSizes, HorizontalAlignment, MQ, SpaceSizes, TextAlignment, VerticalAlignment, Order, ColumnAlignment, Hyphens } from "../types";
2
- declare type MqProp<T> = [
2
+ type MqProp<T> = [
3
3
  T | MQ<T>,
4
4
  Record<T extends string ? T : never, string | number>
5
5
  ];
6
- declare type MqRules = Record<string, MqProp<TextAlignment> | MqProp<SpaceSizes> | MqProp<HorizontalAlignment> | MqProp<VerticalAlignment> | MqProp<ColumnSizes> | MqProp<Order> | MqProp<ColumnAlignment> | MqProp<Hyphens>>;
7
- declare type EmotionCssPropertyName = string;
8
- declare type EmotionCssValue = string | number;
9
- declare type EmotionCssDescription = Record<EmotionCssPropertyName, EmotionCssValue>;
10
- declare type MqFunc = (rules: MqRules) => Record<string, EmotionCssValue | EmotionCssDescription>;
6
+ type MqRules = Record<string, MqProp<TextAlignment> | MqProp<SpaceSizes> | MqProp<HorizontalAlignment> | MqProp<VerticalAlignment> | MqProp<ColumnSizes> | MqProp<Order> | MqProp<ColumnAlignment> | MqProp<Hyphens>>;
7
+ type EmotionCssPropertyName = string;
8
+ type EmotionCssValue = string | number;
9
+ type EmotionCssDescription = Record<EmotionCssPropertyName, EmotionCssValue>;
10
+ type MqFunc = (rules: MqRules) => Record<string, EmotionCssValue | EmotionCssDescription>;
11
11
  export declare const mq: MqFunc;
12
12
  export declare const mqValue: (rules: Record<EmotionCssPropertyName, EmotionCssValue[] | EmotionCssValue>) => Record<string, EmotionCssValue | EmotionCssDescription>;
13
13
  export declare function getMediaQueryClasses<T>(s: T | MQ<T> | undefined, styles: Record<string, string>, prefix?: string): string[];
@@ -1,5 +1,5 @@
1
1
  import { RefObject } from "react";
2
- export declare type VerticalPosition = "up" | "down";
3
- export declare type HorizontalPosition = "left" | "right";
4
- export declare type Position = [VerticalPosition, HorizontalPosition];
2
+ export type VerticalPosition = "up" | "down";
3
+ export type HorizontalPosition = "left" | "right";
4
+ export type Position = [VerticalPosition, HorizontalPosition];
5
5
  export declare const useAutoPosition: (anchorRef: RefObject<HTMLElement>, contentRef: RefObject<HTMLElement>, isActive: boolean) => Position;
@@ -1,57 +1,57 @@
1
1
  /// <reference types="react" />
2
2
  import { Literal, Union, Static } from "runtypes";
3
3
  export declare const LinkTextSizeRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">, Literal<"l">]>;
4
- export declare type LinkTextSize = Static<typeof LinkTextSizeRuntype>;
4
+ export type LinkTextSize = Static<typeof LinkTextSizeRuntype>;
5
5
  export declare const TextSizeRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">]>;
6
- export declare type TextSize = Static<typeof TextSizeRuntype>;
6
+ export type TextSize = Static<typeof TextSizeRuntype>;
7
7
  export declare const BorderRadiusRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">]>;
8
- export declare type BorderRadius = Static<typeof BorderRadiusRuntype>;
8
+ export type BorderRadius = Static<typeof BorderRadiusRuntype>;
9
9
  export declare const TextAlignmentRuntype: Union<[Literal<"left">, Literal<"right">, Literal<"center">]>;
10
- export declare type TextAlignment = Static<typeof TextAlignmentRuntype>;
10
+ export type TextAlignment = Static<typeof TextAlignmentRuntype>;
11
11
  export declare const HorizontalAlignmentRuntype: Union<[Literal<"left">, Literal<"right">, Literal<"center">, Literal<"spaceBetween">]>;
12
- export declare type HorizontalAlignment = Static<typeof HorizontalAlignmentRuntype>;
12
+ export type HorizontalAlignment = Static<typeof HorizontalAlignmentRuntype>;
13
13
  export declare const VerticalAlignmentRuntype: Union<[Literal<"top">, Literal<"bottom">, Literal<"center">, Literal<"stretch">]>;
14
- export declare type VerticalAlignment = Static<typeof VerticalAlignmentRuntype>;
14
+ export type VerticalAlignment = Static<typeof VerticalAlignmentRuntype>;
15
15
  export declare const SpaceSizesRuntype: Union<[Literal<"zero">, Literal<"xxs">, Literal<"xs">, Literal<"s">, Literal<"m">, Literal<"l">, Literal<"xl">, Literal<"xxl">]>;
16
- export declare type SpaceSizes = Static<typeof SpaceSizesRuntype>;
16
+ export type SpaceSizes = Static<typeof SpaceSizesRuntype>;
17
17
  export declare const ColumsSizesRuntype: Union<[Literal<1>, Literal<2>, Literal<3>, Literal<4>, Literal<5>, Literal<6>, Literal<7>, Literal<8>, Literal<9>, Literal<10>, Literal<11>, Literal<12>, Literal<"auto">, Literal<"narrow">, Literal<"fill">]>;
18
- export declare type ColumnSizes = Static<typeof ColumsSizesRuntype>;
18
+ export type ColumnSizes = Static<typeof ColumsSizesRuntype>;
19
19
  export declare const ColumnAlignmentRunType: Union<[Literal<"auto">, Literal<"start">, Literal<"center">, Literal<"end">]>;
20
- export declare type ColumnAlignment = Static<typeof ColumnAlignmentRunType>;
20
+ export type ColumnAlignment = Static<typeof ColumnAlignmentRunType>;
21
21
  export declare const OrderRuntype: Union<[Literal<"first">, Literal<"last">, Literal<"unset">]>;
22
- export declare type Order = Static<typeof OrderRuntype>;
22
+ export type Order = Static<typeof OrderRuntype>;
23
23
  export declare const BaseVariationsRuntype: Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>;
24
24
  export declare const BaseColorsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>;
25
- export declare type BaseVariations = Static<typeof BaseVariationsRuntype>;
26
- export declare type BaseColors = Static<typeof BaseColorsRuntype>;
25
+ export type BaseVariations = Static<typeof BaseVariationsRuntype>;
26
+ export type BaseColors = Static<typeof BaseColorsRuntype>;
27
27
  declare const TextColorsRuntype: Union<[Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>, Literal<"info">, Literal<"error">, Literal<"warning">]>;
28
- export declare type TextColors = Static<typeof TextColorsRuntype>;
28
+ export type TextColors = Static<typeof TextColorsRuntype>;
29
29
  declare const TextVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">]>;
30
- export declare type TextVariations = Static<typeof TextVariationsRuntype>;
30
+ export type TextVariations = Static<typeof TextVariationsRuntype>;
31
31
  declare const IconsColorsRuntime: Union<[Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">, Literal<"brand">, Literal<"quaternary">]>;
32
- export declare type IconsColors = Static<typeof IconsColorsRuntime>;
32
+ export type IconsColors = Static<typeof IconsColorsRuntime>;
33
33
  declare const IconsVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"info">, Literal<"error">, Literal<"warning">, Literal<"inherit">, Literal<"brand">]>;
34
- export declare type IconsVariations = Static<typeof IconsVariationsRuntype>;
34
+ export type IconsVariations = Static<typeof IconsVariationsRuntype>;
35
35
  declare const CalloutVariationsRuntype: Union<[Literal<"info">, Literal<"success">, Literal<"error">, Literal<"warning">]>;
36
- export declare type CalloutVariations = Static<typeof CalloutVariationsRuntype>;
36
+ export type CalloutVariations = Static<typeof CalloutVariationsRuntype>;
37
37
  declare const LinkVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>]>;
38
- export declare type LinkVariations = Static<typeof LinkVariationsRuntype>;
38
+ export type LinkVariations = Static<typeof LinkVariationsRuntype>;
39
39
  declare const LinkColorsRuntype: Union<[Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>, Literal<"accent">]>]>;
40
- export declare type LinkColors = Static<typeof LinkColorsRuntype>;
41
- export declare type MQ<T> = [T, T?, T?];
40
+ export type LinkColors = Static<typeof LinkColorsRuntype>;
41
+ export type MQ<T> = [T, T?, T?];
42
42
  declare const ButtonSizeRuntype: Union<[Literal<"s">, Literal<"m">, Literal<"l">]>;
43
- export declare type ButtonSize = Static<typeof ButtonSizeRuntype>;
43
+ export type ButtonSize = Static<typeof ButtonSizeRuntype>;
44
44
  export declare const HyphensRuntype: Union<[Literal<"auto">, Literal<"none">, Literal<"manual">]>;
45
- export declare type Hyphens = Static<typeof HyphensRuntype>;
45
+ export type Hyphens = Static<typeof HyphensRuntype>;
46
46
  export declare const ToggleSizeRuntype: Union<[Literal<"s">, Literal<"m">]>;
47
- export declare type ToggleSize = Static<typeof ToggleSizeRuntype>;
48
- export declare type AsProp<C extends React.ElementType> = {
47
+ export type ToggleSize = Static<typeof ToggleSizeRuntype>;
48
+ export type AsProp<C extends React.ElementType> = {
49
49
  as?: C;
50
50
  };
51
- declare type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
52
- export declare type PolymorphicComponentProps<C extends React.ElementType, Props> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
53
- export declare type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
54
- export declare type PolymorphicComponentPropsWithRef<C extends React.ElementType, Props> = PolymorphicComponentProps<C, Props> & {
51
+ type PropsToOmit<C extends React.ElementType, P> = keyof (AsProp<C> & P);
52
+ export type PolymorphicComponentProps<C extends React.ElementType, Props> = React.PropsWithChildren<Props & AsProp<C>> & Omit<React.ComponentPropsWithoutRef<C>, PropsToOmit<C, Props>>;
53
+ export type PolymorphicRef<C extends React.ElementType> = React.ComponentPropsWithRef<C>["ref"];
54
+ export type PolymorphicComponentPropsWithRef<C extends React.ElementType, Props> = PolymorphicComponentProps<C, Props> & {
55
55
  ref?: PolymorphicRef<C>;
56
56
  };
57
57
  export {};