@alto-avios/alto-ui 2.3.1 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/backgroundColour/backgroundColour.d.ts +1 -1
- package/dist/utils/border/border.d.ts +3 -3
- package/dist/utils/fgColour/fgColor.d.ts +1 -1
- package/dist/utils/flex/flex.d.ts +3 -3
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { fgColorVariants } from '../../utils/fgColour/fgColor';
|
|
4
4
|
declare const heading: (props?: ({
|
|
5
|
-
size?: "lg" | "sm" | "xs" | "md" | "
|
|
5
|
+
size?: "lg" | "sm" | "xs" | "md" | "xl" | "xxs" | null | undefined;
|
|
6
6
|
textAlign?: "start" | "center" | "end" | null | undefined;
|
|
7
7
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
type HeadingVariants = VariantProps<typeof heading>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as Badge } from './Badge';
|
|
2
|
+
export { default as Box } from './Box';
|
|
2
3
|
export { default as Button } from './Button';
|
|
3
4
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
4
5
|
export { default as CardSection } from './CardSection';
|
|
@@ -18,6 +19,7 @@ export { default as IconButton } from './IconButton';
|
|
|
18
19
|
export { default as Link } from './Link';
|
|
19
20
|
export { default as LoadingSpinner } from './LoadingSpinner';
|
|
20
21
|
export { default as NewButton } from './NewButton';
|
|
22
|
+
export { default as Paragraph } from './Paragraph';
|
|
21
23
|
export { default as Radio } from './Radio';
|
|
22
24
|
export { default as RadioGroup } from './RadioGroup';
|
|
23
25
|
export { default as SubHeading } from './SubHeading';
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../assets/global.css';/* empty css */
|
|
2
2
|
import { Badge } from "./Badge/Badge.js";
|
|
3
|
+
import { Box } from "./Box/Box.js";
|
|
3
4
|
import { Button } from "./Button/Button.js";
|
|
4
5
|
import { ButtonGroup } from "./ButtonGroup/ButtonGroup.js";
|
|
5
6
|
import { default as default2 } from "./CardSection/CardSection.js";
|
|
@@ -19,6 +20,7 @@ import { IconButton } from "./IconButton/IconButton.js";
|
|
|
19
20
|
import { default as default4 } from "./Link/Link.js";
|
|
20
21
|
import { default as default5 } from "./LoadingSpinner/LoadingSpinner.js";
|
|
21
22
|
import { NewButton } from "./NewButton/NewButton.js";
|
|
23
|
+
import { Paragraph } from "./Paragraph/Paragraph.js";
|
|
22
24
|
import { Radio } from "./Radio/Radio.js";
|
|
23
25
|
import { RadioGroup } from "./RadioGroup/RadioGroup.js";
|
|
24
26
|
import { SubHeading } from "./SubHeading/SubHeading.js";
|
|
@@ -31,6 +33,7 @@ import { default as default7 } from "./ToggleIconButton/ToggleIconButton.js";
|
|
|
31
33
|
import { Tooltip } from "./Tooltip/Tooltip.js";
|
|
32
34
|
export {
|
|
33
35
|
Badge,
|
|
36
|
+
Box,
|
|
34
37
|
Button,
|
|
35
38
|
ButtonGroup,
|
|
36
39
|
default2 as CardSection,
|
|
@@ -50,6 +53,7 @@ export {
|
|
|
50
53
|
default4 as Link,
|
|
51
54
|
default5 as LoadingSpinner,
|
|
52
55
|
NewButton,
|
|
56
|
+
Paragraph,
|
|
53
57
|
Radio,
|
|
54
58
|
RadioGroup,
|
|
55
59
|
SubHeading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import './assets/global.css';/* empty css */
|
|
2
2
|
import { Badge } from "./components/Badge/Badge.js";
|
|
3
|
+
import { Box } from "./components/Box/Box.js";
|
|
3
4
|
import { Button } from "./components/Button/Button.js";
|
|
4
5
|
import { ButtonGroup } from "./components/ButtonGroup/ButtonGroup.js";
|
|
5
6
|
import { default as default2 } from "./components/CardSection/CardSection.js";
|
|
@@ -19,6 +20,7 @@ import { IconButton } from "./components/IconButton/IconButton.js";
|
|
|
19
20
|
import { default as default4 } from "./components/Link/Link.js";
|
|
20
21
|
import { default as default5 } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
21
22
|
import { NewButton } from "./components/NewButton/NewButton.js";
|
|
23
|
+
import { Paragraph } from "./components/Paragraph/Paragraph.js";
|
|
22
24
|
import { Radio } from "./components/Radio/Radio.js";
|
|
23
25
|
import { RadioGroup } from "./components/RadioGroup/RadioGroup.js";
|
|
24
26
|
import { SubHeading } from "./components/SubHeading/SubHeading.js";
|
|
@@ -31,6 +33,7 @@ import { default as default7 } from "./components/ToggleIconButton/ToggleIconBut
|
|
|
31
33
|
import { Tooltip } from "./components/Tooltip/Tooltip.js";
|
|
32
34
|
export {
|
|
33
35
|
Badge,
|
|
36
|
+
Box,
|
|
34
37
|
Button,
|
|
35
38
|
ButtonGroup,
|
|
36
39
|
default2 as CardSection,
|
|
@@ -50,6 +53,7 @@ export {
|
|
|
50
53
|
default4 as Link,
|
|
51
54
|
default5 as LoadingSpinner,
|
|
52
55
|
NewButton,
|
|
56
|
+
Paragraph,
|
|
53
57
|
Radio,
|
|
54
58
|
RadioGroup,
|
|
55
59
|
SubHeading,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputType } from 'storybook/internal/types';
|
|
3
3
|
export declare const backgroundColorVariants: (props?: ({
|
|
4
|
-
backgroundColour?: "
|
|
4
|
+
backgroundColour?: "transparent" | "base" | "layer1" | "layer2" | "layer3" | "accentVibrant" | "accentSubtle" | "accentDeep" | "criticalVibrant" | "criticalSubtle" | "warningVibrant" | "warningSubtle" | "cautionVibrant" | "cautionSubtle" | "successVibrant" | "successSubtle" | "informationVibrant" | "informationSubtle" | "inverseVibrant" | "inverseSubtle" | "whiteVibrant" | "whiteSubtle" | "disabledVibrant" | "disabledSubtle" | "saleVibrant" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type BackgroundVariants = VariantProps<typeof backgroundColorVariants>;
|
|
7
7
|
export declare const backgroundColourOptions: BackgroundVariants["backgroundColour"][];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { InputType } from 'storybook/internal/types';
|
|
3
3
|
export declare const borderVariants: (props?: ({
|
|
4
|
-
borderRadius?: "lg" | "sm" | "xs" | "none" | "md" | "
|
|
4
|
+
borderRadius?: "lg" | "sm" | "xs" | "none" | "md" | "5xs" | "4xs" | "3xs" | "2xs" | "xl" | "6xs" | "circle" | null | undefined;
|
|
5
5
|
borderWidth?: "lg" | "sm" | "xs" | "none" | "md" | "xl" | null | undefined;
|
|
6
|
-
borderStyle?: "none" | "
|
|
7
|
-
borderColour?: "none" | "white" | "critical" | "warning" | "caution" | "success" | "
|
|
6
|
+
borderStyle?: "none" | "solid" | "dashed" | null | undefined;
|
|
7
|
+
borderColour?: "none" | "white" | "critical" | "warning" | "caution" | "success" | "secondary" | "tertiary" | "accent" | "information" | "inverse" | null | undefined;
|
|
8
8
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export type BorderVariants = VariantProps<typeof borderVariants>;
|
|
10
10
|
export declare const borderArgTypes: Record<string, InputType>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
export declare const fgColorVariants: (props?: ({
|
|
3
|
-
fgColor?: "default" | "
|
|
3
|
+
fgColor?: "default" | "secondary" | "accentPrimary" | "accentSecondary" | "criticalPrimary" | "whitePrimary" | "accentOnVibrant" | "accentOnVibrantAccent" | "accentOnSubtle" | "accentOnDeep" | "criticalOnVibrant" | "criticalOnSubtle" | "warningPrimary" | "warningOnVibrant" | "warningOnSubtle" | "cautionPrimary" | "cautionOnVibrant" | "cautionOnSubtle" | "successPrimary" | "successOnVibrant" | "successOnSubtle" | "informationPrimary" | "informationOnVibrant" | "informationOnSubtle" | "inversePrimary" | "inverseOnVibrant" | "inverseOnSubtle" | "whiteOnVibrant" | "whiteOnSubtle" | "disabledPrimary" | "disabledOnVibrant" | "disabledOnSubtle" | "salePrimary" | "saleOnVibrant" | null | undefined;
|
|
4
4
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
5
5
|
export type FgColorVariants = VariantProps<typeof fgColorVariants>;
|
|
@@ -2,11 +2,11 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
2
2
|
export declare const flexVariants: (props?: ({
|
|
3
3
|
display?: "flex" | "inline-flex" | null | undefined;
|
|
4
4
|
justifyContent?: "start" | "center" | "end" | null | undefined;
|
|
5
|
-
flexWrap?: "
|
|
5
|
+
flexWrap?: "wrap" | "nowrap" | null | undefined;
|
|
6
6
|
flexGrow?: 0 | 1 | null | undefined;
|
|
7
7
|
flexShrink?: 0 | 1 | null | undefined;
|
|
8
|
-
flexDirection?: "row" | "
|
|
8
|
+
flexDirection?: "row" | "row-reverse" | "column" | "column-reverse" | null | undefined;
|
|
9
9
|
alignItems?: "start" | "center" | "end" | null | undefined;
|
|
10
|
-
gap?: "lg" | "sm" | "xs" | "md" | "
|
|
10
|
+
gap?: "lg" | "sm" | "xs" | "md" | "5xs" | "4xs" | "3xs" | "2xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
|
|
11
11
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
12
|
export type FlexVariants = VariantProps<typeof flexVariants>;
|