@telia/teddy 0.0.18 → 0.0.19
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 +0 -3
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/box/box.d.ts +1 -1
- package/dist/components/box/box.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/card/card.d.ts +10 -9
- package/dist/components/card/card.js +37 -39
- package/dist/components/chip/chip-indicator.d.ts +9 -0
- package/dist/components/chip/chip-indicator.js +16 -0
- package/dist/components/chip/chip-item.d.ts +9 -0
- package/dist/components/chip/chip-item.js +28 -0
- package/dist/components/chip/chip.d.ts +20 -0
- package/dist/components/chip/chip.js +31 -0
- package/dist/components/chip/index.d.ts +17 -0
- package/dist/components/chip/index.js +10 -0
- package/dist/components/field-error-text/field-error-text.d.ts +2 -2
- package/dist/components/flex/flex.d.ts +1 -1
- package/dist/components/flex/flex.js +1 -1
- package/dist/components/grid/grid.d.ts +1 -1
- package/dist/components/grid/grid.js +1 -1
- package/dist/components/heading/heading.d.ts +1 -1
- package/dist/components/heading/heading.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/modal/modal.d.ts +3 -3
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notification/notification.d.ts +21 -18
- package/dist/components/radio-group/radio-group.d.ts +1 -1
- package/dist/components/text/text.d.ts +3 -1
- package/dist/components/text/text.js +38 -27
- package/dist/components/text-field/text-field.d.ts +4 -4
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/main.js +2 -0
- package/dist/style.css +350 -221
- package/dist/utils/generate-styling/color.d.ts +15 -0
- package/dist/utils/generate-styling/color.js +12 -0
- package/dist/utils/{layout → generate-styling}/index.d.ts +18 -13
- package/dist/utils/{layout → generate-styling}/index.js +2 -0
- package/package.json +1 -1
- /package/dist/utils/{layout → generate-styling}/align.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/align.js +0 -0
- /package/dist/utils/{layout → generate-styling}/flex.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/flex.js +0 -0
- /package/dist/utils/{layout → generate-styling}/gap.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/gap.js +0 -0
- /package/dist/utils/{layout → generate-styling}/grid.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/grid.js +0 -0
- /package/dist/utils/{layout → generate-styling}/height.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/height.js +0 -0
- /package/dist/utils/{layout → generate-styling}/inset.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/inset.js +0 -0
- /package/dist/utils/{layout → generate-styling}/justify.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/justify.js +0 -0
- /package/dist/utils/{layout → generate-styling}/margin.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/margin.js +0 -0
- /package/dist/utils/{layout → generate-styling}/padding.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/padding.js +0 -0
- /package/dist/utils/{layout → generate-styling}/position.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/position.js +0 -0
- /package/dist/utils/{layout → generate-styling}/util.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/util.js +0 -0
- /package/dist/utils/{layout → generate-styling}/width.d.ts +0 -0
- /package/dist/utils/{layout → generate-styling}/width.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Responsive } from './util';
|
|
2
|
+
|
|
3
|
+
export declare const colorValues: readonly [];
|
|
4
|
+
export declare const color: readonly [{
|
|
5
|
+
readonly key: "color";
|
|
6
|
+
readonly className: "teddy-color";
|
|
7
|
+
readonly values: readonly [];
|
|
8
|
+
}];
|
|
9
|
+
/**
|
|
10
|
+
* The color. It can be or a responsive value.
|
|
11
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
12
|
+
*/
|
|
13
|
+
export type ColorProps = {
|
|
14
|
+
color?: Responsive<(typeof colorValues)[number]['key']>;
|
|
15
|
+
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { InsetProps } from './inset';
|
|
2
|
-
import { PositionProps } from './position';
|
|
3
|
-
import { PaddingProps } from './padding';
|
|
4
|
-
import { Justify } from './justify';
|
|
5
|
-
import { GridLayout, GridChildren } from './grid';
|
|
6
|
-
import { GapProps } from './gap';
|
|
7
|
-
import { Align } from './align';
|
|
8
|
-
import { HTMLAttributes } from 'react';
|
|
9
|
-
import { HeightProps } from './height';
|
|
10
|
-
import { WidthProps } from './width';
|
|
11
|
-
import { FlexChildren, FlexLayout } from './flex';
|
|
12
|
-
import { MarginProps } from './margin';
|
|
13
1
|
import { Responsive } from './util';
|
|
2
|
+
import { MarginProps } from './margin';
|
|
3
|
+
import { FlexChildren, FlexLayout } from './flex';
|
|
4
|
+
import { WidthProps } from './width';
|
|
5
|
+
import { HeightProps } from './height';
|
|
6
|
+
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { Align } from './align';
|
|
8
|
+
import { GapProps } from './gap';
|
|
9
|
+
import { GridLayout, GridChildren } from './grid';
|
|
10
|
+
import { Justify } from './justify';
|
|
11
|
+
import { PaddingProps } from './padding';
|
|
12
|
+
import { PositionProps } from './position';
|
|
13
|
+
import { InsetProps } from './inset';
|
|
14
|
+
import { ColorProps } from './color';
|
|
14
15
|
|
|
15
16
|
export declare const displayValues: readonly [{
|
|
16
17
|
readonly key: "none";
|
|
@@ -1556,6 +1557,10 @@ export declare const layout: readonly [{
|
|
|
1556
1557
|
readonly key: "page-padding-xl";
|
|
1557
1558
|
readonly value: "var(--teddy-spacing-page-padding-xl)";
|
|
1558
1559
|
}];
|
|
1560
|
+
}, {
|
|
1561
|
+
readonly key: "color";
|
|
1562
|
+
readonly className: "teddy-color";
|
|
1563
|
+
readonly values: readonly [];
|
|
1559
1564
|
}, {
|
|
1560
1565
|
readonly key: "align";
|
|
1561
1566
|
readonly className: "teddy-ai";
|
|
@@ -1918,7 +1923,7 @@ export declare const layout: readonly [{
|
|
|
1918
1923
|
readonly value: "span 12";
|
|
1919
1924
|
}];
|
|
1920
1925
|
}];
|
|
1921
|
-
export type CommonChildrenLayoutProps = PositionProps & InsetProps & MarginProps & PaddingProps & WidthProps & HeightProps;
|
|
1926
|
+
export type CommonChildrenLayoutProps = PositionProps & InsetProps & MarginProps & PaddingProps & WidthProps & HeightProps & ColorProps;
|
|
1922
1927
|
export type ChildrenLayoutProps = FlexChildren & GridChildren & CommonChildrenLayoutProps;
|
|
1923
1928
|
export type CommonFlexGridLayoutProps = ChildrenLayoutProps & GapProps & {
|
|
1924
1929
|
align?: Align;
|
|
@@ -10,6 +10,7 @@ import { justify } from "./justify.js";
|
|
|
10
10
|
import { paddings } from "./padding.js";
|
|
11
11
|
import { position } from "./position.js";
|
|
12
12
|
import { inset } from "./inset.js";
|
|
13
|
+
import { color } from "./color.js";
|
|
13
14
|
const breakpoint = {
|
|
14
15
|
sm: "0px",
|
|
15
16
|
md: "600px",
|
|
@@ -33,6 +34,7 @@ const layout = [
|
|
|
33
34
|
...widths,
|
|
34
35
|
...heights,
|
|
35
36
|
...gap,
|
|
37
|
+
...color,
|
|
36
38
|
...align,
|
|
37
39
|
...justify,
|
|
38
40
|
...displayLayout,
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|