@telia/teddy 0.0.15 → 0.0.17
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/accordion/accordion.d.ts +2 -1
- package/dist/components/accordion/accordion.js +90 -24
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/badge/badge.js +40 -24
- package/dist/components/badge/index.js +2 -2
- package/dist/components/box/box.js +14 -10
- package/dist/components/box/index.js +2 -2
- package/dist/components/button/button.js +60 -52
- package/dist/components/button/index.js +2 -2
- package/dist/components/card/card.d.ts +35 -3
- package/dist/components/card/card.js +209 -25
- package/dist/components/card/index.js +2 -2
- package/dist/components/field-error-text/field-error-text.js +21 -19
- package/dist/components/field-error-text/index.js +2 -2
- package/dist/components/flex/flex.js +15 -12
- package/dist/components/flex/index.js +2 -2
- package/dist/components/grid/grid.js +15 -12
- package/dist/components/grid/index.js +2 -2
- package/dist/components/heading/heading.js +22 -19
- package/dist/components/heading/index.js +2 -2
- package/dist/components/helper-text/helper-text.js +14 -13
- package/dist/components/helper-text/index.js +2 -2
- package/dist/components/icon/icon.js +16 -14
- package/dist/components/icon/index.js +4 -4
- package/dist/components/index.js +51 -46
- package/dist/components/input/index.js +3 -3
- package/dist/components/input/input.js +79 -66
- package/dist/components/label/index.js +2 -2
- package/dist/components/label/label.js +17 -23
- package/dist/components/link/index.js +2 -2
- package/dist/components/link/link.js +20 -19
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/modal.js +173 -14
- package/dist/components/navigation-menu/index.js +2 -2
- package/dist/components/navigation-menu/navigation-menu.js +391 -8
- package/dist/components/notification/index.js +2 -2
- package/dist/components/notification/notification.d.ts +8 -7
- package/dist/components/notification/notification.js +96 -24
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.js +91 -8
- package/dist/components/spinner/index.js +2 -2
- package/dist/components/spinner/spinner.js +36 -29
- package/dist/components/text/index.js +2 -2
- package/dist/components/text/text.js +18 -17
- package/dist/components/text-field/index.js +2 -2
- package/dist/components/text-field/text-field.js +110 -90
- package/dist/components/text-spacing/index.js +2 -2
- package/dist/components/text-spacing/text-spacing.js +14 -12
- package/dist/components/toggle/index.js +2 -2
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.js +84 -23
- package/dist/components/visually-hidden/index.js +2 -2
- package/dist/components/visually-hidden/visually-hidden.js +17 -15
- package/dist/icons/category.js +2 -2
- package/dist/icons/name.js +2 -2
- package/dist/main.js +359 -61
- package/dist/style.css +3406 -0
- package/dist/tokens/border/variables.js +18 -10
- package/dist/tokens/breakpoint/variables.js +8 -5
- package/dist/tokens/color/variables.js +452 -227
- package/dist/tokens/index.d.ts +7 -7
- package/dist/tokens/index.js +308 -14
- package/dist/tokens/motion/variables.js +22 -12
- package/dist/tokens/shadow/variables.js +8 -5
- package/dist/tokens/spacing/variables.js +46 -24
- package/dist/tokens/typography/variables.js +48 -25
- package/dist/utils/action.js +10 -7
- package/dist/utils/composeEventHandlers.js +7 -5
- package/dist/utils/composeRefs.js +13 -9
- package/dist/utils/layout/align.js +5 -4
- package/dist/utils/layout/flex.js +25 -18
- package/dist/utils/layout/gap.js +7 -6
- package/dist/utils/layout/grid.js +31 -24
- package/dist/utils/layout/height.js +12 -11
- package/dist/utils/layout/index.d.ts +1863 -0
- package/dist/utils/layout/index.js +77 -59
- package/dist/utils/layout/inset.js +10 -9
- package/dist/utils/layout/justify.js +6 -5
- package/dist/utils/layout/margin.js +10 -9
- package/dist/utils/layout/padding.js +10 -9
- package/dist/utils/layout/position.js +6 -5
- package/dist/utils/layout/util.js +7 -6
- package/dist/utils/layout/width.js +8 -7
- package/package.json +22 -14
- package/dist/assets/badge.css +0 -1
- package/dist/assets/button.css +0 -1
- package/dist/assets/field-error-text.css +0 -1
- package/dist/assets/flex.css +0 -1
- package/dist/assets/grid.css +0 -1
- package/dist/assets/heading.css +0 -1
- package/dist/assets/helper-text.css +0 -1
- package/dist/assets/icon.css +0 -1
- package/dist/assets/input.css +0 -1
- package/dist/assets/label.css +0 -1
- package/dist/assets/link.css +0 -1
- package/dist/assets/main.css +0 -1
- package/dist/assets/navigation-menu.css +0 -1
- package/dist/assets/radio-group.css +0 -1
- package/dist/assets/spinner.css +0 -1
- package/dist/assets/text-field.css +0 -1
- package/dist/assets/text-spacing.css +0 -1
- package/dist/assets/text.css +0 -1
- package/dist/assets/visually-hidden.css +0 -1
- package/dist/badge-Cnug5TzH.js +0 -1855
- package/dist/clsx-DB4S2d7J.js +0 -22
- package/dist/index-DM5e-Whg.js +0 -43
- package/dist/index-DpfSJps6.js +0 -75
- package/dist/index-FPIZOCcD.js +0 -305
- package/dist/navigation-menu-DKuyW8zE.js +0 -1036
- package/dist/radio-group-B--zT3OL.js +0 -440
- package/dist/variables-BKiPmtHY.js +0 -458
- package/dist/variables-BkY5b0io.js +0 -14
- package/dist/variables-Bq0YUbLS.js +0 -14
- package/dist/variables-CDK515QX.js +0 -52
- package/dist/variables-CMRTN8qo.js +0 -28
- package/dist/variables-Dmoh9YtD.js +0 -54
- package/dist/variables-IczXZ5CN.js +0 -24
|
@@ -1,26 +1,87 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
5
5
|
import "../../assets/4bbd022cee9b0f06.svg";
|
|
6
|
-
import "../icon/icon.js";
|
|
7
|
-
import "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
import { Icon } from "../icon/icon.js";
|
|
7
|
+
import { Label } from "../label/label.js";
|
|
8
|
+
const styles = {
|
|
9
|
+
"teddy-toggle": "_teddy-toggle_1rp8d_3",
|
|
10
|
+
"teddy-toggle__input": "_teddy-toggle__input_1rp8d_10",
|
|
11
|
+
"teddy-toggle__thumb": "_teddy-toggle__thumb_1rp8d_78",
|
|
12
|
+
"teddy-toggle__indicator": "_teddy-toggle__indicator_1rp8d_104"
|
|
13
|
+
};
|
|
14
|
+
const rootClassName = "teddy-toggle";
|
|
15
|
+
const ToggleContext = React__default.createContext(void 0);
|
|
16
|
+
const ToggleRoot = React__default.forwardRef(
|
|
17
|
+
({ className, id, children, ...props }, forwardRef) => {
|
|
18
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
19
|
+
const fallbackId = React__default.useId();
|
|
20
|
+
const [isDisabled, setIsDisabled] = React__default.useState(false);
|
|
21
|
+
const [isRequired, setIsRequired] = React__default.useState(false);
|
|
22
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes, children: /* @__PURE__ */ jsx(ToggleContext.Provider, { value: { id: id ?? fallbackId, isDisabled, setIsDisabled, isRequired, setIsRequired }, children }) });
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
ToggleRoot.displayName = "Toggle";
|
|
26
|
+
const ToggleLabel = React__default.forwardRef(
|
|
27
|
+
({ className, ...props }, forwardRef) => {
|
|
28
|
+
const classes = clsx([styles[`${rootClassName}__label`]], className);
|
|
29
|
+
const context = React__default.useContext(ToggleContext);
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
Label,
|
|
32
|
+
{
|
|
33
|
+
...props,
|
|
34
|
+
htmlFor: context == null ? void 0 : context.id,
|
|
35
|
+
isRequired: context == null ? void 0 : context.isRequired,
|
|
36
|
+
disabled: context == null ? void 0 : context.isDisabled,
|
|
37
|
+
ref: forwardRef,
|
|
38
|
+
className: classes
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
ToggleLabel.displayName = "Toggle.Label";
|
|
44
|
+
const ToggleInput = React__default.forwardRef(
|
|
45
|
+
({ className, children, ...props }, forwardRef) => {
|
|
46
|
+
const classes = clsx([styles[`${rootClassName}__input`]], className);
|
|
47
|
+
const context = React__default.useContext(ToggleContext);
|
|
48
|
+
React__default.useEffect(() => {
|
|
49
|
+
if (!context)
|
|
50
|
+
return;
|
|
51
|
+
context.setIsDisabled(props.disabled === true);
|
|
52
|
+
}, [context, props.disabled]);
|
|
53
|
+
React__default.useEffect(() => {
|
|
54
|
+
if (!context)
|
|
55
|
+
return;
|
|
56
|
+
context.setIsRequired(props.required === true);
|
|
57
|
+
}, [context, props.required]);
|
|
58
|
+
return /* @__PURE__ */ jsx(SwitchPrimitive.Root, { ...props, id: context == null ? void 0 : context.id, ref: forwardRef, className: classes, children: children || /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx(ToggleThumb, {}),
|
|
60
|
+
/* @__PURE__ */ jsx(ToggleIndicator, {})
|
|
61
|
+
] }) });
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
ToggleInput.displayName = "Toggle.Input";
|
|
65
|
+
const ToggleThumb = React__default.forwardRef(
|
|
66
|
+
({ className, ...props }, forwardRef) => {
|
|
67
|
+
const classes = clsx([styles[`${rootClassName}__thumb`]], className);
|
|
68
|
+
return /* @__PURE__ */ jsx(SwitchPrimitive.Thumb, { ...props, ref: forwardRef, className: classes });
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
ToggleThumb.displayName = "Toggle.Thumb";
|
|
72
|
+
const ToggleIndicator = React__default.forwardRef(
|
|
73
|
+
({ className, ...props }, forwardRef) => {
|
|
74
|
+
const classes = clsx([styles[`${rootClassName}__indicator`]], className);
|
|
75
|
+
return /* @__PURE__ */ jsx(Icon, { name: "checkmark-bold", size: "xxs", ...props, ref: forwardRef, className: classes });
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
ToggleThumb.displayName = "Toggle.Indicator";
|
|
79
|
+
const Toggle = Object.assign(ToggleRoot, {
|
|
80
|
+
Label: ToggleLabel,
|
|
81
|
+
Input: ToggleInput,
|
|
82
|
+
Thumb: ToggleThumb,
|
|
83
|
+
Indicator: ToggleIndicator
|
|
84
|
+
});
|
|
24
85
|
export {
|
|
25
|
-
|
|
86
|
+
Toggle
|
|
26
87
|
};
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const e = {
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
5
|
+
const styles = {
|
|
7
6
|
"teddy-visually-hidden": "_teddy-visually-hidden_15nus_1",
|
|
8
7
|
"teddy-visually-hidden--focusable": "_teddy-visually-hidden--focusable_15nus_15"
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
};
|
|
9
|
+
const rootClassName = "teddy-visually-hidden";
|
|
10
|
+
const VisuallyHidden = React__default.forwardRef(
|
|
11
|
+
({ className, visibleOnFocus, asChild, ...props }, forwardRef) => {
|
|
12
|
+
const Comp = asChild ? Slot : "span";
|
|
13
|
+
const classes = clsx(
|
|
12
14
|
{
|
|
13
|
-
[
|
|
14
|
-
[
|
|
15
|
+
[styles[`${rootClassName}`]]: !visibleOnFocus,
|
|
16
|
+
[styles[`${rootClassName}--focusable`]]: visibleOnFocus
|
|
15
17
|
},
|
|
16
|
-
|
|
18
|
+
className
|
|
17
19
|
);
|
|
18
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ jsx(Comp, { ...props, ref: forwardRef, className: classes });
|
|
19
21
|
}
|
|
20
22
|
);
|
|
21
|
-
|
|
23
|
+
VisuallyHidden.displayName = "VisuallyHidden";
|
|
22
24
|
export {
|
|
23
|
-
|
|
25
|
+
VisuallyHidden
|
|
24
26
|
};
|
package/dist/icons/category.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const iconCategories = [
|
|
2
2
|
{ category: "action", name: "alarm-off" },
|
|
3
3
|
{ category: "action", name: "alarm-on" },
|
|
4
4
|
{ category: "action", name: "attachment" },
|
|
@@ -330,5 +330,5 @@ const e = [
|
|
|
330
330
|
{ category: "utility", name: "table-view" }
|
|
331
331
|
];
|
|
332
332
|
export {
|
|
333
|
-
|
|
333
|
+
iconCategories
|
|
334
334
|
};
|
package/dist/icons/name.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -1,63 +1,361 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Box
|
|
5
|
-
import { Flex
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
1
|
+
import { Modal } from "./components/modal/modal.js";
|
|
2
|
+
import { Notification } from "./components/notification/notification.js";
|
|
3
|
+
import { RadioGroup } from "./components/radio-group/radio-group.js";
|
|
4
|
+
import { Box } from "./components/box/box.js";
|
|
5
|
+
import { Flex } from "./components/flex/flex.js";
|
|
6
|
+
import { Card } from "./components/card/card.js";
|
|
7
|
+
import { Grid } from "./components/grid/grid.js";
|
|
8
|
+
import { NavigationMenu } from "./components/navigation-menu/navigation-menu.js";
|
|
9
|
+
import { Toggle } from "./components/toggle/toggle.js";
|
|
10
|
+
import { Accordion } from "./components/accordion/accordion.js";
|
|
11
|
+
import { Link } from "./components/link/link.js";
|
|
12
|
+
import { Badge } from "./components/badge/badge.js";
|
|
13
|
+
import { Button } from "./components/button/button.js";
|
|
14
|
+
import { FieldErrorText } from "./components/field-error-text/field-error-text.js";
|
|
15
|
+
import { HelperText } from "./components/helper-text/helper-text.js";
|
|
16
|
+
import { default as default2 } from "./assets/4bbd022cee9b0f06.svg";
|
|
17
|
+
import { Icon } from "./components/icon/icon.js";
|
|
18
|
+
import { Input, InputGroup } from "./components/input/input.js";
|
|
19
|
+
import { Label } from "./components/label/label.js";
|
|
20
|
+
import { Spinner } from "./components/spinner/spinner.js";
|
|
21
|
+
import { Text } from "./components/text/text.js";
|
|
22
|
+
import { TextField } from "./components/text-field/text-field.js";
|
|
23
|
+
import { Heading } from "./components/heading/heading.js";
|
|
24
|
+
import { VisuallyHidden } from "./components/visually-hidden/visually-hidden.js";
|
|
25
|
+
import { TextSpacing } from "./components/text-spacing/text-spacing.js";
|
|
26
|
+
import { teddyBorderRadiusFull, teddyBorderRadiusLg, teddyBorderRadiusMd, teddyBorderRadiusSm, teddyBorderRadiusXs, teddyBorderWidthLg, teddyBorderWidthMd, teddyBorderWidthSm, teddyBorderWidthXs } from "./tokens/border/variables.js";
|
|
27
|
+
import { teddyBreakpointLg, teddyBreakpointMd, teddyBreakpointSm, teddyBreakpointXl } from "./tokens/breakpoint/variables.js";
|
|
28
|
+
import { teddyColorBackgroundInteractiveDestructive, teddyColorBackgroundInteractiveDestructiveActive, teddyColorBackgroundInteractiveDestructiveHover, teddyColorBackgroundInteractiveDisabled, teddyColorBackgroundInteractiveDisabledNegative, teddyColorBackgroundInteractiveExpressive, teddyColorBackgroundInteractiveExpressiveActive, teddyColorBackgroundInteractiveExpressiveHover, teddyColorBackgroundInteractiveExpressiveNegative, teddyColorBackgroundInteractiveExpressiveNegativeActive, teddyColorBackgroundInteractiveExpressiveNegativeHover, teddyColorBackgroundInteractiveInactive, teddyColorBackgroundInteractiveInactiveNegative, teddyColorBackgroundInteractivePrimary, teddyColorBackgroundInteractivePrimaryActive, teddyColorBackgroundInteractivePrimaryHover, teddyColorBackgroundInteractivePrimaryNegative, teddyColorBackgroundInteractivePrimaryNegativeActive, teddyColorBackgroundInteractivePrimaryNegativeHover, teddyColorBackgroundInteractiveReadOnly, teddyColorBackgroundInteractiveTransparent, teddyColorBackgroundInteractiveTransparentActive, teddyColorBackgroundInteractiveTransparentHover, teddyColorBackgroundInteractiveTransparentNegativeActive, teddyColorBackgroundInteractiveTransparentNegativeHover, teddyColorBackgroundPrimary, teddyColorBackgroundSecondary, teddyColorBackgroundStatusAttention, teddyColorBackgroundStatusError, teddyColorBackgroundStatusErrorStrong, teddyColorBackgroundStatusInfo, teddyColorBackgroundStatusInfoStrong, teddyColorBackgroundStatusNeutral, teddyColorBackgroundStatusSpecial, teddyColorBackgroundStatusSuccess, teddyColorBackgroundStatusSuccessStrong, teddyColorBackgroundStatusWarning, teddyColorBackgroundStatusWarningStrong, teddyColorBackgroundToneOnTonePrimary, teddyColorBackgroundToneOnToneQuaternary, teddyColorBackgroundToneOnToneSecondary, teddyColorBackgroundToneOnToneTertiary, teddyColorBeige100, teddyColorBeige200, teddyColorBeige300, teddyColorBeige400, teddyColorBeige50, teddyColorBeige500, teddyColorBeige600, teddyColorBeige700, teddyColorBeige800, teddyColorBeige900, teddyColorBeige950, teddyColorBlue100, teddyColorBlue200, teddyColorBlue300, teddyColorBlue400, teddyColorBlue50, teddyColorBlue500, teddyColorBlue600, teddyColorBlue700, teddyColorBlue800, teddyColorBlue900, teddyColorBlue950, teddyColorBorderInteractiveFocus, teddyColorBorderInteractivePrimary, teddyColorBorderInteractivePrimaryActive, teddyColorBorderInteractivePrimaryHover, teddyColorBorderInteractivePrimaryNegative, teddyColorBorderInteractivePrimaryNegativeActive, teddyColorBorderInteractivePrimaryNegativeHover, teddyColorBorderInteractiveSelected, teddyColorBorderInteractiveSubtle, teddyColorBorderInteractiveSubtleHover, teddyColorBorderMedium, teddyColorBorderMediumNegative, teddyColorBorderStatusError, teddyColorBorderStatusInfo, teddyColorBorderStatusSuccess, teddyColorBorderStatusWarning, teddyColorBorderStrong, teddyColorBorderStrongNegative, teddyColorBorderWeak, teddyColorBorderWeakNegative, teddyColorBrandBeige, teddyColorBrandCorePurple, teddyColorBrandDeepBeige, teddyColorBrandDeepPurple, teddyColorBrandLightBeige, teddyColorBrandLightPurple, teddyColorBrandOffBlack, teddyColorBrandWhite, teddyColorFunctionalBlack, teddyColorFunctionalTransparent, teddyColorFunctionalWhite, teddyColorGray100, teddyColorGray150, teddyColorGray200, teddyColorGray300, teddyColorGray400, teddyColorGray50, teddyColorGray500, teddyColorGray600, teddyColorGray700, teddyColorGray800, teddyColorGray850, teddyColorGray900, teddyColorGray950, teddyColorGreen100, teddyColorGreen200, teddyColorGreen300, teddyColorGreen400, teddyColorGreen50, teddyColorGreen500, teddyColorGreen600, teddyColorGreen700, teddyColorGreen800, teddyColorGreen900, teddyColorGreen950, teddyColorOrange100, teddyColorOrange200, teddyColorOrange300, teddyColorOrange400, teddyColorOrange50, teddyColorOrange500, teddyColorOrange600, teddyColorOrange700, teddyColorOrange800, teddyColorOrange900, teddyColorOrange950, teddyColorOverlayDefault, teddyColorPurple100, teddyColorPurple200, teddyColorPurple300, teddyColorPurple400, teddyColorPurple50, teddyColorPurple500, teddyColorPurple550, teddyColorPurple600, teddyColorPurple700, teddyColorPurple800, teddyColorPurple900, teddyColorPurple950, teddyColorRed100, teddyColorRed200, teddyColorRed300, teddyColorRed400, teddyColorRed50, teddyColorRed500, teddyColorRed600, teddyColorRed700, teddyColorRed800, teddyColorRed900, teddyColorRed950, teddyColorTeal100, teddyColorTeal200, teddyColorTeal300, teddyColorTeal400, teddyColorTeal50, teddyColorTeal500, teddyColorTeal600, teddyColorTeal700, teddyColorTeal800, teddyColorTeal900, teddyColorTeal950, teddyColorTextDefault, teddyColorTextDefaultNegative, teddyColorTextInteractiveOnDestructive, teddyColorTextInteractiveOnExpressive, teddyColorTextInteractiveOnExpressiveNegative, teddyColorTextInteractiveOnExpressiveNegativeActive, teddyColorTextInteractiveOnExpressiveNegativeHover, teddyColorTextInteractiveOnPrimary, teddyColorTextInteractiveOnPrimaryNegative, teddyColorTextInteractivePrimary, teddyColorTextInteractivePrimaryActive, teddyColorTextInteractivePrimaryHover, teddyColorTextInteractivePrimaryNegative, teddyColorTextInteractivePrimaryNegativeActive, teddyColorTextInteractivePrimaryNegativeHover, teddyColorTextInteractiveSelected, teddyColorTextMedium, teddyColorTextMediumNegative, teddyColorTextStatusAttention, teddyColorTextStatusDiscount, teddyColorTextStatusErrorMedium, teddyColorTextStatusErrorStrong, teddyColorTextStatusInfoMedium, teddyColorTextStatusInfoStrong, teddyColorTextStatusNeutral, teddyColorTextStatusSpecial, teddyColorTextStatusSuccessMedium, teddyColorTextStatusSuccessStrong, teddyColorTextStatusWarningMedium, teddyColorTextStatusWarningStrong, teddyColorTextToneOnTonePrimary, teddyColorTextToneOnToneSecondary, teddyColorTextToneOnToneTertiary, teddyColorTextWeak, teddyColorTextWeakNegative, teddyColorTransparentBlack100, teddyColorTransparentBlack150, teddyColorTransparentBlack200, teddyColorTransparentBlack300, teddyColorTransparentBlack400, teddyColorTransparentBlack50, teddyColorTransparentBlack500, teddyColorTransparentBlack600, teddyColorTransparentBlack700, teddyColorTransparentBlack800, teddyColorTransparentBlack850, teddyColorTransparentBlack900, teddyColorTransparentBlack950, teddyColorTransparentWhite100, teddyColorTransparentWhite150, teddyColorTransparentWhite200, teddyColorTransparentWhite300, teddyColorTransparentWhite400, teddyColorTransparentWhite50, teddyColorTransparentWhite500, teddyColorTransparentWhite600, teddyColorTransparentWhite700, teddyColorTransparentWhite800, teddyColorTransparentWhite850, teddyColorTransparentWhite900, teddyColorTransparentWhite950 } from "./tokens/color/variables.js";
|
|
29
|
+
import { teddyMotionDuration100, teddyMotionDuration150, teddyMotionDuration1500, teddyMotionDuration200, teddyMotionDuration2000, teddyMotionDuration300, teddyMotionDuration400, teddyMotionDuration500, teddyMotionEasingEaseIn, teddyMotionEasingEaseInOut, teddyMotionEasingEaseOut } from "./tokens/motion/variables.js";
|
|
30
|
+
import { teddyShadowLg, teddyShadowMd, teddyShadowNone, teddyShadowSm } from "./tokens/shadow/variables.js";
|
|
31
|
+
import { teddySpacing0, teddySpacing10, teddySpacing100, teddySpacing1000, teddySpacing1200, teddySpacing150, teddySpacing1600, teddySpacing200, teddySpacing25, teddySpacing250, teddySpacing300, teddySpacing400, teddySpacing50, teddySpacing600, teddySpacing800, teddySpacingGutterLg, teddySpacingGutterMd, teddySpacingGutterSm, teddySpacingGutterXl, teddySpacingPagePaddingLg, teddySpacingPagePaddingMd, teddySpacingPagePaddingSm, teddySpacingPagePaddingXl } from "./tokens/spacing/variables.js";
|
|
32
|
+
import { teddyTypographyFamilyDefault, teddyTypographyFamilyDisplay, teddyTypographyLineHeightDefault, teddyTypographyLineHeightLoose, teddyTypographyLineHeightLooser, teddyTypographyLineHeightTight, teddyTypographyScale100, teddyTypographyScale1000, teddyTypographyScale1100, teddyTypographyScale150, teddyTypographyScale200, teddyTypographyScale400, teddyTypographyScale50, teddyTypographyScale500, teddyTypographyScale600, teddyTypographyScale650, teddyTypographyScale700, teddyTypographyScale75, teddyTypographyScale800, teddyTypographyScale850, teddyTypographyScale900, teddyTypographyWeightBold, teddyTypographyWeightMedium, teddyTypographyWeightNormal } from "./tokens/typography/variables.js";
|
|
29
33
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
34
|
+
Accordion,
|
|
35
|
+
Badge,
|
|
36
|
+
Box,
|
|
37
|
+
Button,
|
|
38
|
+
Card,
|
|
39
|
+
FieldErrorText,
|
|
40
|
+
Flex,
|
|
41
|
+
Grid,
|
|
42
|
+
Heading,
|
|
43
|
+
HelperText,
|
|
44
|
+
Icon,
|
|
45
|
+
Input,
|
|
46
|
+
InputGroup,
|
|
47
|
+
Label,
|
|
48
|
+
Link,
|
|
49
|
+
Modal,
|
|
50
|
+
NavigationMenu,
|
|
51
|
+
Notification,
|
|
52
|
+
RadioGroup,
|
|
53
|
+
Spinner,
|
|
54
|
+
Text,
|
|
55
|
+
TextField,
|
|
56
|
+
TextSpacing,
|
|
57
|
+
Toggle,
|
|
58
|
+
VisuallyHidden,
|
|
59
|
+
default2 as iconsHref,
|
|
60
|
+
teddyBorderRadiusFull,
|
|
61
|
+
teddyBorderRadiusLg,
|
|
62
|
+
teddyBorderRadiusMd,
|
|
63
|
+
teddyBorderRadiusSm,
|
|
64
|
+
teddyBorderRadiusXs,
|
|
65
|
+
teddyBorderWidthLg,
|
|
66
|
+
teddyBorderWidthMd,
|
|
67
|
+
teddyBorderWidthSm,
|
|
68
|
+
teddyBorderWidthXs,
|
|
69
|
+
teddyBreakpointLg,
|
|
70
|
+
teddyBreakpointMd,
|
|
71
|
+
teddyBreakpointSm,
|
|
72
|
+
teddyBreakpointXl,
|
|
73
|
+
teddyColorBackgroundInteractiveDestructive,
|
|
74
|
+
teddyColorBackgroundInteractiveDestructiveActive,
|
|
75
|
+
teddyColorBackgroundInteractiveDestructiveHover,
|
|
76
|
+
teddyColorBackgroundInteractiveDisabled,
|
|
77
|
+
teddyColorBackgroundInteractiveDisabledNegative,
|
|
78
|
+
teddyColorBackgroundInteractiveExpressive,
|
|
79
|
+
teddyColorBackgroundInteractiveExpressiveActive,
|
|
80
|
+
teddyColorBackgroundInteractiveExpressiveHover,
|
|
81
|
+
teddyColorBackgroundInteractiveExpressiveNegative,
|
|
82
|
+
teddyColorBackgroundInteractiveExpressiveNegativeActive,
|
|
83
|
+
teddyColorBackgroundInteractiveExpressiveNegativeHover,
|
|
84
|
+
teddyColorBackgroundInteractiveInactive,
|
|
85
|
+
teddyColorBackgroundInteractiveInactiveNegative,
|
|
86
|
+
teddyColorBackgroundInteractivePrimary,
|
|
87
|
+
teddyColorBackgroundInteractivePrimaryActive,
|
|
88
|
+
teddyColorBackgroundInteractivePrimaryHover,
|
|
89
|
+
teddyColorBackgroundInteractivePrimaryNegative,
|
|
90
|
+
teddyColorBackgroundInteractivePrimaryNegativeActive,
|
|
91
|
+
teddyColorBackgroundInteractivePrimaryNegativeHover,
|
|
92
|
+
teddyColorBackgroundInteractiveReadOnly,
|
|
93
|
+
teddyColorBackgroundInteractiveTransparent,
|
|
94
|
+
teddyColorBackgroundInteractiveTransparentActive,
|
|
95
|
+
teddyColorBackgroundInteractiveTransparentHover,
|
|
96
|
+
teddyColorBackgroundInteractiveTransparentNegativeActive,
|
|
97
|
+
teddyColorBackgroundInteractiveTransparentNegativeHover,
|
|
98
|
+
teddyColorBackgroundPrimary,
|
|
99
|
+
teddyColorBackgroundSecondary,
|
|
100
|
+
teddyColorBackgroundStatusAttention,
|
|
101
|
+
teddyColorBackgroundStatusError,
|
|
102
|
+
teddyColorBackgroundStatusErrorStrong,
|
|
103
|
+
teddyColorBackgroundStatusInfo,
|
|
104
|
+
teddyColorBackgroundStatusInfoStrong,
|
|
105
|
+
teddyColorBackgroundStatusNeutral,
|
|
106
|
+
teddyColorBackgroundStatusSpecial,
|
|
107
|
+
teddyColorBackgroundStatusSuccess,
|
|
108
|
+
teddyColorBackgroundStatusSuccessStrong,
|
|
109
|
+
teddyColorBackgroundStatusWarning,
|
|
110
|
+
teddyColorBackgroundStatusWarningStrong,
|
|
111
|
+
teddyColorBackgroundToneOnTonePrimary,
|
|
112
|
+
teddyColorBackgroundToneOnToneQuaternary,
|
|
113
|
+
teddyColorBackgroundToneOnToneSecondary,
|
|
114
|
+
teddyColorBackgroundToneOnToneTertiary,
|
|
115
|
+
teddyColorBeige100,
|
|
116
|
+
teddyColorBeige200,
|
|
117
|
+
teddyColorBeige300,
|
|
118
|
+
teddyColorBeige400,
|
|
119
|
+
teddyColorBeige50,
|
|
120
|
+
teddyColorBeige500,
|
|
121
|
+
teddyColorBeige600,
|
|
122
|
+
teddyColorBeige700,
|
|
123
|
+
teddyColorBeige800,
|
|
124
|
+
teddyColorBeige900,
|
|
125
|
+
teddyColorBeige950,
|
|
126
|
+
teddyColorBlue100,
|
|
127
|
+
teddyColorBlue200,
|
|
128
|
+
teddyColorBlue300,
|
|
129
|
+
teddyColorBlue400,
|
|
130
|
+
teddyColorBlue50,
|
|
131
|
+
teddyColorBlue500,
|
|
132
|
+
teddyColorBlue600,
|
|
133
|
+
teddyColorBlue700,
|
|
134
|
+
teddyColorBlue800,
|
|
135
|
+
teddyColorBlue900,
|
|
136
|
+
teddyColorBlue950,
|
|
137
|
+
teddyColorBorderInteractiveFocus,
|
|
138
|
+
teddyColorBorderInteractivePrimary,
|
|
139
|
+
teddyColorBorderInteractivePrimaryActive,
|
|
140
|
+
teddyColorBorderInteractivePrimaryHover,
|
|
141
|
+
teddyColorBorderInteractivePrimaryNegative,
|
|
142
|
+
teddyColorBorderInteractivePrimaryNegativeActive,
|
|
143
|
+
teddyColorBorderInteractivePrimaryNegativeHover,
|
|
144
|
+
teddyColorBorderInteractiveSelected,
|
|
145
|
+
teddyColorBorderInteractiveSubtle,
|
|
146
|
+
teddyColorBorderInteractiveSubtleHover,
|
|
147
|
+
teddyColorBorderMedium,
|
|
148
|
+
teddyColorBorderMediumNegative,
|
|
149
|
+
teddyColorBorderStatusError,
|
|
150
|
+
teddyColorBorderStatusInfo,
|
|
151
|
+
teddyColorBorderStatusSuccess,
|
|
152
|
+
teddyColorBorderStatusWarning,
|
|
153
|
+
teddyColorBorderStrong,
|
|
154
|
+
teddyColorBorderStrongNegative,
|
|
155
|
+
teddyColorBorderWeak,
|
|
156
|
+
teddyColorBorderWeakNegative,
|
|
157
|
+
teddyColorBrandBeige,
|
|
158
|
+
teddyColorBrandCorePurple,
|
|
159
|
+
teddyColorBrandDeepBeige,
|
|
160
|
+
teddyColorBrandDeepPurple,
|
|
161
|
+
teddyColorBrandLightBeige,
|
|
162
|
+
teddyColorBrandLightPurple,
|
|
163
|
+
teddyColorBrandOffBlack,
|
|
164
|
+
teddyColorBrandWhite,
|
|
165
|
+
teddyColorFunctionalBlack,
|
|
166
|
+
teddyColorFunctionalTransparent,
|
|
167
|
+
teddyColorFunctionalWhite,
|
|
168
|
+
teddyColorGray100,
|
|
169
|
+
teddyColorGray150,
|
|
170
|
+
teddyColorGray200,
|
|
171
|
+
teddyColorGray300,
|
|
172
|
+
teddyColorGray400,
|
|
173
|
+
teddyColorGray50,
|
|
174
|
+
teddyColorGray500,
|
|
175
|
+
teddyColorGray600,
|
|
176
|
+
teddyColorGray700,
|
|
177
|
+
teddyColorGray800,
|
|
178
|
+
teddyColorGray850,
|
|
179
|
+
teddyColorGray900,
|
|
180
|
+
teddyColorGray950,
|
|
181
|
+
teddyColorGreen100,
|
|
182
|
+
teddyColorGreen200,
|
|
183
|
+
teddyColorGreen300,
|
|
184
|
+
teddyColorGreen400,
|
|
185
|
+
teddyColorGreen50,
|
|
186
|
+
teddyColorGreen500,
|
|
187
|
+
teddyColorGreen600,
|
|
188
|
+
teddyColorGreen700,
|
|
189
|
+
teddyColorGreen800,
|
|
190
|
+
teddyColorGreen900,
|
|
191
|
+
teddyColorGreen950,
|
|
192
|
+
teddyColorOrange100,
|
|
193
|
+
teddyColorOrange200,
|
|
194
|
+
teddyColorOrange300,
|
|
195
|
+
teddyColorOrange400,
|
|
196
|
+
teddyColorOrange50,
|
|
197
|
+
teddyColorOrange500,
|
|
198
|
+
teddyColorOrange600,
|
|
199
|
+
teddyColorOrange700,
|
|
200
|
+
teddyColorOrange800,
|
|
201
|
+
teddyColorOrange900,
|
|
202
|
+
teddyColorOrange950,
|
|
203
|
+
teddyColorOverlayDefault,
|
|
204
|
+
teddyColorPurple100,
|
|
205
|
+
teddyColorPurple200,
|
|
206
|
+
teddyColorPurple300,
|
|
207
|
+
teddyColorPurple400,
|
|
208
|
+
teddyColorPurple50,
|
|
209
|
+
teddyColorPurple500,
|
|
210
|
+
teddyColorPurple550,
|
|
211
|
+
teddyColorPurple600,
|
|
212
|
+
teddyColorPurple700,
|
|
213
|
+
teddyColorPurple800,
|
|
214
|
+
teddyColorPurple900,
|
|
215
|
+
teddyColorPurple950,
|
|
216
|
+
teddyColorRed100,
|
|
217
|
+
teddyColorRed200,
|
|
218
|
+
teddyColorRed300,
|
|
219
|
+
teddyColorRed400,
|
|
220
|
+
teddyColorRed50,
|
|
221
|
+
teddyColorRed500,
|
|
222
|
+
teddyColorRed600,
|
|
223
|
+
teddyColorRed700,
|
|
224
|
+
teddyColorRed800,
|
|
225
|
+
teddyColorRed900,
|
|
226
|
+
teddyColorRed950,
|
|
227
|
+
teddyColorTeal100,
|
|
228
|
+
teddyColorTeal200,
|
|
229
|
+
teddyColorTeal300,
|
|
230
|
+
teddyColorTeal400,
|
|
231
|
+
teddyColorTeal50,
|
|
232
|
+
teddyColorTeal500,
|
|
233
|
+
teddyColorTeal600,
|
|
234
|
+
teddyColorTeal700,
|
|
235
|
+
teddyColorTeal800,
|
|
236
|
+
teddyColorTeal900,
|
|
237
|
+
teddyColorTeal950,
|
|
238
|
+
teddyColorTextDefault,
|
|
239
|
+
teddyColorTextDefaultNegative,
|
|
240
|
+
teddyColorTextInteractiveOnDestructive,
|
|
241
|
+
teddyColorTextInteractiveOnExpressive,
|
|
242
|
+
teddyColorTextInteractiveOnExpressiveNegative,
|
|
243
|
+
teddyColorTextInteractiveOnExpressiveNegativeActive,
|
|
244
|
+
teddyColorTextInteractiveOnExpressiveNegativeHover,
|
|
245
|
+
teddyColorTextInteractiveOnPrimary,
|
|
246
|
+
teddyColorTextInteractiveOnPrimaryNegative,
|
|
247
|
+
teddyColorTextInteractivePrimary,
|
|
248
|
+
teddyColorTextInteractivePrimaryActive,
|
|
249
|
+
teddyColorTextInteractivePrimaryHover,
|
|
250
|
+
teddyColorTextInteractivePrimaryNegative,
|
|
251
|
+
teddyColorTextInteractivePrimaryNegativeActive,
|
|
252
|
+
teddyColorTextInteractivePrimaryNegativeHover,
|
|
253
|
+
teddyColorTextInteractiveSelected,
|
|
254
|
+
teddyColorTextMedium,
|
|
255
|
+
teddyColorTextMediumNegative,
|
|
256
|
+
teddyColorTextStatusAttention,
|
|
257
|
+
teddyColorTextStatusDiscount,
|
|
258
|
+
teddyColorTextStatusErrorMedium,
|
|
259
|
+
teddyColorTextStatusErrorStrong,
|
|
260
|
+
teddyColorTextStatusInfoMedium,
|
|
261
|
+
teddyColorTextStatusInfoStrong,
|
|
262
|
+
teddyColorTextStatusNeutral,
|
|
263
|
+
teddyColorTextStatusSpecial,
|
|
264
|
+
teddyColorTextStatusSuccessMedium,
|
|
265
|
+
teddyColorTextStatusSuccessStrong,
|
|
266
|
+
teddyColorTextStatusWarningMedium,
|
|
267
|
+
teddyColorTextStatusWarningStrong,
|
|
268
|
+
teddyColorTextToneOnTonePrimary,
|
|
269
|
+
teddyColorTextToneOnToneSecondary,
|
|
270
|
+
teddyColorTextToneOnToneTertiary,
|
|
271
|
+
teddyColorTextWeak,
|
|
272
|
+
teddyColorTextWeakNegative,
|
|
273
|
+
teddyColorTransparentBlack100,
|
|
274
|
+
teddyColorTransparentBlack150,
|
|
275
|
+
teddyColorTransparentBlack200,
|
|
276
|
+
teddyColorTransparentBlack300,
|
|
277
|
+
teddyColorTransparentBlack400,
|
|
278
|
+
teddyColorTransparentBlack50,
|
|
279
|
+
teddyColorTransparentBlack500,
|
|
280
|
+
teddyColorTransparentBlack600,
|
|
281
|
+
teddyColorTransparentBlack700,
|
|
282
|
+
teddyColorTransparentBlack800,
|
|
283
|
+
teddyColorTransparentBlack850,
|
|
284
|
+
teddyColorTransparentBlack900,
|
|
285
|
+
teddyColorTransparentBlack950,
|
|
286
|
+
teddyColorTransparentWhite100,
|
|
287
|
+
teddyColorTransparentWhite150,
|
|
288
|
+
teddyColorTransparentWhite200,
|
|
289
|
+
teddyColorTransparentWhite300,
|
|
290
|
+
teddyColorTransparentWhite400,
|
|
291
|
+
teddyColorTransparentWhite50,
|
|
292
|
+
teddyColorTransparentWhite500,
|
|
293
|
+
teddyColorTransparentWhite600,
|
|
294
|
+
teddyColorTransparentWhite700,
|
|
295
|
+
teddyColorTransparentWhite800,
|
|
296
|
+
teddyColorTransparentWhite850,
|
|
297
|
+
teddyColorTransparentWhite900,
|
|
298
|
+
teddyColorTransparentWhite950,
|
|
299
|
+
teddyMotionDuration100,
|
|
300
|
+
teddyMotionDuration150,
|
|
301
|
+
teddyMotionDuration1500,
|
|
302
|
+
teddyMotionDuration200,
|
|
303
|
+
teddyMotionDuration2000,
|
|
304
|
+
teddyMotionDuration300,
|
|
305
|
+
teddyMotionDuration400,
|
|
306
|
+
teddyMotionDuration500,
|
|
307
|
+
teddyMotionEasingEaseIn,
|
|
308
|
+
teddyMotionEasingEaseInOut,
|
|
309
|
+
teddyMotionEasingEaseOut,
|
|
310
|
+
teddyShadowLg,
|
|
311
|
+
teddyShadowMd,
|
|
312
|
+
teddyShadowNone,
|
|
313
|
+
teddyShadowSm,
|
|
314
|
+
teddySpacing0,
|
|
315
|
+
teddySpacing10,
|
|
316
|
+
teddySpacing100,
|
|
317
|
+
teddySpacing1000,
|
|
318
|
+
teddySpacing1200,
|
|
319
|
+
teddySpacing150,
|
|
320
|
+
teddySpacing1600,
|
|
321
|
+
teddySpacing200,
|
|
322
|
+
teddySpacing25,
|
|
323
|
+
teddySpacing250,
|
|
324
|
+
teddySpacing300,
|
|
325
|
+
teddySpacing400,
|
|
326
|
+
teddySpacing50,
|
|
327
|
+
teddySpacing600,
|
|
328
|
+
teddySpacing800,
|
|
329
|
+
teddySpacingGutterLg,
|
|
330
|
+
teddySpacingGutterMd,
|
|
331
|
+
teddySpacingGutterSm,
|
|
332
|
+
teddySpacingGutterXl,
|
|
333
|
+
teddySpacingPagePaddingLg,
|
|
334
|
+
teddySpacingPagePaddingMd,
|
|
335
|
+
teddySpacingPagePaddingSm,
|
|
336
|
+
teddySpacingPagePaddingXl,
|
|
337
|
+
teddyTypographyFamilyDefault,
|
|
338
|
+
teddyTypographyFamilyDisplay,
|
|
339
|
+
teddyTypographyLineHeightDefault,
|
|
340
|
+
teddyTypographyLineHeightLoose,
|
|
341
|
+
teddyTypographyLineHeightLooser,
|
|
342
|
+
teddyTypographyLineHeightTight,
|
|
343
|
+
teddyTypographyScale100,
|
|
344
|
+
teddyTypographyScale1000,
|
|
345
|
+
teddyTypographyScale1100,
|
|
346
|
+
teddyTypographyScale150,
|
|
347
|
+
teddyTypographyScale200,
|
|
348
|
+
teddyTypographyScale400,
|
|
349
|
+
teddyTypographyScale50,
|
|
350
|
+
teddyTypographyScale500,
|
|
351
|
+
teddyTypographyScale600,
|
|
352
|
+
teddyTypographyScale650,
|
|
353
|
+
teddyTypographyScale700,
|
|
354
|
+
teddyTypographyScale75,
|
|
355
|
+
teddyTypographyScale800,
|
|
356
|
+
teddyTypographyScale850,
|
|
357
|
+
teddyTypographyScale900,
|
|
358
|
+
teddyTypographyWeightBold,
|
|
359
|
+
teddyTypographyWeightMedium,
|
|
360
|
+
teddyTypographyWeightNormal
|
|
63
361
|
};
|