@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.
- package/README.md +6 -3
- package/build/cjs/build-tokens/visualConfig.js +12 -8
- package/build/cjs/src/components/Container/Container.js +5 -5
- package/build/cjs/src/components/DropdownMenu/DropdownMenu.js +5 -5
- package/build/cjs/src/components/Form/Select/Select.js +6 -6
- package/build/esm/build-tokens/_colors.json +40 -0
- package/build/esm/build-tokens/_subThemeType.d.ts +1 -1
- package/build/esm/build-tokens/visualConfig.d.ts +10 -12
- package/build/esm/build-tokens/visualConfig.js +12 -8
- package/build/esm/build-tokens/visualConfig.js.map +1 -1
- package/build/esm/src/components/Badge/Badge.d.ts +1 -1
- package/build/esm/src/components/Box/Box.d.ts +1 -1
- package/build/esm/src/components/Button/Button.d.ts +3 -3
- package/build/esm/src/components/Callout/Callout.d.ts +1 -1
- package/build/esm/src/components/Card/Card.d.ts +1 -1
- package/build/esm/src/components/Card/CardBox.d.ts +1 -1
- package/build/esm/src/components/Collapsible/Collapsible.d.ts +2 -2
- package/build/esm/src/components/Column/Columns.d.ts +2 -2
- package/build/esm/src/components/Container/Container.d.ts +1 -1
- package/build/esm/src/components/Container/Container.js +5 -5
- package/build/esm/src/components/Container/Container.js.map +1 -1
- package/build/esm/src/components/DataTable/DataTable.d.ts +1 -1
- package/build/esm/src/components/DataTable/TableBody.d.ts +1 -1
- package/build/esm/src/components/DataTable/TableCell.d.ts +1 -1
- package/build/esm/src/components/DataTable/TableHeader.d.ts +1 -1
- package/build/esm/src/components/DataTable/types.d.ts +2 -2
- package/build/esm/src/components/DataTable/useDataTableSort.d.ts +1 -1
- package/build/esm/src/components/Divider/Divider.d.ts +1 -1
- package/build/esm/src/components/DropdownMenu/DropdownMenu.d.ts +5 -5
- package/build/esm/src/components/DropdownMenu/DropdownMenu.js +5 -5
- package/build/esm/src/components/DropdownMenu/DropdownMenu.js.map +1 -1
- package/build/esm/src/components/DropdownMenu/MenuItem.d.ts +1 -1
- package/build/esm/src/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/build/esm/src/components/Form/FormErrorMessages/FormErrorMessages.d.ts +1 -1
- package/build/esm/src/components/Form/FormField/FormField.d.ts +2 -2
- package/build/esm/src/components/Form/FormFieldGroup/FormFieldGroup.d.ts +1 -1
- package/build/esm/src/components/Form/FormLabelText/FormLabelText.d.ts +1 -1
- package/build/esm/src/components/Form/Input/Input.d.ts +1 -1
- package/build/esm/src/components/Form/PasswordInput/PasswordInput.d.ts +2 -2
- package/build/esm/src/components/Form/Radio/Radio.d.ts +1 -1
- package/build/esm/src/components/Form/RadioButton/RadioButton.d.ts +1 -1
- package/build/esm/src/components/Form/SegmentedControl/SegmentedControl.d.ts +2 -2
- package/build/esm/src/components/Form/SegmentedControl/SegmentedControlOption.d.ts +1 -1
- package/build/esm/src/components/Form/Select/Select.d.ts +2 -2
- package/build/esm/src/components/Form/Select/Select.js +6 -6
- package/build/esm/src/components/Form/Select/Select.js.map +1 -1
- package/build/esm/src/components/Form/Textarea/Textarea.d.ts +1 -1
- package/build/esm/src/components/Form/Toggle/Toggle.d.ts +1 -1
- package/build/esm/src/components/Form/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/esm/src/components/Icon/Icon.d.ts +3 -3
- package/build/esm/src/components/Inline/Inline.d.ts +1 -1
- package/build/esm/src/components/Link/Link.d.ts +2 -2
- package/build/esm/src/components/LoadingSpinner/LoadingSpinner.d.ts +1 -1
- package/build/esm/src/components/Logo/Logo.d.ts +1 -1
- package/build/esm/src/components/MediaItem/MediaItem.d.ts +1 -1
- package/build/esm/src/components/MediaViewerBar/MediaViewerBar.d.ts +1 -1
- package/build/esm/src/components/Notification/Notification.d.ts +1 -1
- package/build/esm/src/components/Pagination/Pagination.d.ts +1 -1
- package/build/esm/src/components/Patterns/ButtonGroup/ButtonGroup.d.ts +2 -2
- package/build/esm/src/components/Patterns/Modal/Modal.d.ts +1 -1
- package/build/esm/src/components/PictogramButton/PictogramButton.d.ts +2 -2
- package/build/esm/src/components/Portal/Portal.d.ts +1 -1
- package/build/esm/src/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/build/esm/src/components/RoundButton/RoundButton.d.ts +1 -1
- package/build/esm/src/components/SearchResult/SearchResult.d.ts +3 -3
- package/build/esm/src/components/SegmentedProgressBar/SegmentedProgressBar.d.ts +6 -6
- package/build/esm/src/components/Stack/Stack.d.ts +1 -1
- package/build/esm/src/components/SubThemeProvider/SubThemeProvider.d.ts +1 -1
- package/build/esm/src/components/Tabs/Tabs.d.ts +2 -2
- package/build/esm/src/components/Tag/Tag.d.ts +3 -3
- package/build/esm/src/components/TagGroup/TagGroup.d.ts +3 -3
- package/build/esm/src/components/Tooltip/Tooltip.d.ts +4 -4
- package/build/esm/src/components/Typography/Header/Header.d.ts +1 -1
- package/build/esm/src/components/Typography/StyledText/StyledText.d.ts +2 -2
- package/build/esm/src/components/Typography/Text/Text.d.ts +1 -1
- package/build/esm/src/components/Typography/TextClamped/TextClamped.d.ts +1 -1
- package/build/esm/src/components/VirtualScrollList/VirtualScrollList.d.ts +1 -1
- package/build/esm/src/components/VirtualScrollList/VirtualScrollListReducer.d.ts +3 -3
- package/build/esm/src/shared/mediaQueries.d.ts +6 -6
- package/build/esm/src/shared/useAutoPosition.d.ts +3 -3
- package/build/esm/src/types/index.d.ts +28 -28
- package/build/scss/_theming.scss +239 -0
- package/build/scss/_variables.scss +111 -0
- package/package.json +2 -2
- package/build/scss/themes/dark.scss +0 -111
- package/build/scss/themes/light.scss +0 -111
|
@@ -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
|
|
4
|
+
export type ActionButtonProps = {
|
|
5
5
|
text: string;
|
|
6
6
|
} & ButtonProps;
|
|
7
|
-
export
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
import { ProgressBarWeight } from "../SegmentedProgressBar/SegmentedProgressBar";
|
|
3
|
-
export
|
|
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
|
|
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
|
|
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
|
|
11
|
+
export type SecondaryTargetsProps = {
|
|
12
12
|
data: SecondaryTarget[];
|
|
13
13
|
};
|
|
14
|
-
export
|
|
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
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
3
|
+
type BaseTagProps = {
|
|
4
4
|
label: string;
|
|
5
5
|
colorVariant?: "gray" | "blue";
|
|
6
6
|
"data-e2e-test-id"?: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
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
|
|
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
|
-
|
|
3
|
+
type BaseTagGroupProps = {
|
|
4
4
|
tags: TagProps[];
|
|
5
5
|
colorVariant?: TagProps["colorVariant"];
|
|
6
6
|
"data-e2e-test-id"?: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
17
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3
|
+
export type TextProps = {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
size?: TextSize;
|
|
6
6
|
weight?: "normal" | "bold" | "black" | "inherit";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type Offset = {
|
|
2
2
|
amount: number;
|
|
3
3
|
isInterpolated: boolean;
|
|
4
4
|
};
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2
|
+
type MqProp<T> = [
|
|
3
3
|
T | MQ<T>,
|
|
4
4
|
Record<T extends string ? T : never, string | number>
|
|
5
5
|
];
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
3
|
-
export
|
|
4
|
-
export
|
|
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
|
|
4
|
+
export type LinkTextSize = Static<typeof LinkTextSizeRuntype>;
|
|
5
5
|
export declare const TextSizeRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">]>;
|
|
6
|
-
export
|
|
6
|
+
export type TextSize = Static<typeof TextSizeRuntype>;
|
|
7
7
|
export declare const BorderRadiusRuntype: Union<[Literal<"xs">, Literal<"s">, Literal<"m">]>;
|
|
8
|
-
export
|
|
8
|
+
export type BorderRadius = Static<typeof BorderRadiusRuntype>;
|
|
9
9
|
export declare const TextAlignmentRuntype: Union<[Literal<"left">, Literal<"right">, Literal<"center">]>;
|
|
10
|
-
export
|
|
10
|
+
export type TextAlignment = Static<typeof TextAlignmentRuntype>;
|
|
11
11
|
export declare const HorizontalAlignmentRuntype: Union<[Literal<"left">, Literal<"right">, Literal<"center">, Literal<"spaceBetween">]>;
|
|
12
|
-
export
|
|
12
|
+
export type HorizontalAlignment = Static<typeof HorizontalAlignmentRuntype>;
|
|
13
13
|
export declare const VerticalAlignmentRuntype: Union<[Literal<"top">, Literal<"bottom">, Literal<"center">, Literal<"stretch">]>;
|
|
14
|
-
export
|
|
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
|
|
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
|
|
18
|
+
export type ColumnSizes = Static<typeof ColumsSizesRuntype>;
|
|
19
19
|
export declare const ColumnAlignmentRunType: Union<[Literal<"auto">, Literal<"start">, Literal<"center">, Literal<"end">]>;
|
|
20
|
-
export
|
|
20
|
+
export type ColumnAlignment = Static<typeof ColumnAlignmentRunType>;
|
|
21
21
|
export declare const OrderRuntype: Union<[Literal<"first">, Literal<"last">, Literal<"unset">]>;
|
|
22
|
-
export
|
|
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
|
|
26
|
-
export
|
|
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
|
|
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
|
|
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
|
|
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
|
|
34
|
+
export type IconsVariations = Static<typeof IconsVariationsRuntype>;
|
|
35
35
|
declare const CalloutVariationsRuntype: Union<[Literal<"info">, Literal<"success">, Literal<"error">, Literal<"warning">]>;
|
|
36
|
-
export
|
|
36
|
+
export type CalloutVariations = Static<typeof CalloutVariationsRuntype>;
|
|
37
37
|
declare const LinkVariationsRuntype: Union<[Union<[Literal<"primary">, Literal<"secondary">, Literal<"tertiary">]>]>;
|
|
38
|
-
export
|
|
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
|
|
41
|
-
export
|
|
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
|
|
43
|
+
export type ButtonSize = Static<typeof ButtonSizeRuntype>;
|
|
44
44
|
export declare const HyphensRuntype: Union<[Literal<"auto">, Literal<"none">, Literal<"manual">]>;
|
|
45
|
-
export
|
|
45
|
+
export type Hyphens = Static<typeof HyphensRuntype>;
|
|
46
46
|
export declare const ToggleSizeRuntype: Union<[Literal<"s">, Literal<"m">]>;
|
|
47
|
-
export
|
|
48
|
-
export
|
|
47
|
+
export type ToggleSize = Static<typeof ToggleSizeRuntype>;
|
|
48
|
+
export type AsProp<C extends React.ElementType> = {
|
|
49
49
|
as?: C;
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
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 {};
|