@telia/teddy 0.0.9 → 0.0.11
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/assets/badge.css +1 -1
- package/dist/assets/heading.css +1 -1
- package/dist/assets/main.css +1 -1
- package/dist/assets/navigation-menu.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/badge-DscsRVHR.js +1825 -0
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +3 -3
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/badge/badge.js +3 -3
- package/dist/components/badge/index.js +1 -1
- package/dist/components/box/box.js +8 -8
- package/dist/components/button/button.d.ts +2 -1
- package/dist/components/button/button.js +59 -60
- package/dist/components/card/card.js +3 -3
- package/dist/components/card/index.js +1 -1
- package/dist/components/flex/flex.js +1 -1
- package/dist/components/grid/grid.js +6 -6
- package/dist/components/heading/heading.d.ts +9 -36
- package/dist/components/heading/heading.js +36 -37
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +35 -33
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +4 -0
- package/dist/components/modal/modal.d.ts +76 -0
- package/dist/components/modal/modal.js +28 -0
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu.js +8 -1032
- package/dist/components/notification/index.d.ts +2 -0
- package/dist/components/notification/index.js +4 -0
- package/dist/components/notification/notification.d.ts +59 -0
- package/dist/components/notification/notification.js +27 -0
- package/dist/components/radio-group/index.js +1 -1
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/text-field/text-field.js +15 -15
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toggle/toggle.js +3 -3
- package/dist/{index-0Eg2mucA.js → index-FPIZOCcD.js} +80 -80
- package/dist/main.js +51 -49
- package/dist/navigation-menu-DKuyW8zE.js +1036 -0
- package/dist/{radio-group-BR5SMJXJ.js → radio-group-B--zT3OL.js} +8 -8
- package/dist/tokens/breakpoint/variables.json.d.ts +11 -0
- package/dist/utils/component-props-as.d.ts +5 -0
- package/dist/utils/component-props-as.js +1 -0
- package/dist/utils/layout/align.d.ts +46 -0
- package/dist/utils/layout/align.js +31 -0
- package/dist/utils/layout/flex.d.ts +294 -0
- package/dist/utils/layout/flex.js +60 -0
- package/dist/utils/layout/gap.d.ts +340 -0
- package/dist/utils/layout/gap.js +21 -0
- package/dist/utils/layout/grid.d.ts +313 -0
- package/dist/utils/layout/grid.js +116 -0
- package/dist/utils/layout/height.d.ts +118 -0
- package/dist/utils/layout/height.js +50 -0
- package/dist/utils/layout/index.d.ts +70 -0
- package/dist/utils/layout/index.js +71 -0
- package/dist/utils/layout/justify.d.ts +39 -0
- package/dist/utils/layout/justify.js +16 -0
- package/dist/utils/layout/margin.d.ts +478 -0
- package/dist/utils/layout/margin.js +32 -0
- package/dist/utils/layout/padding.d.ts +478 -0
- package/dist/utils/layout/padding.js +32 -0
- package/dist/utils/layout/util.d.ts +82 -0
- package/dist/utils/layout/util.js +32 -0
- package/dist/utils/layout/width.d.ts +69 -0
- package/dist/utils/layout/width.js +25 -0
- package/package.json +5 -1
- package/dist/badge-9vHb0-Jo.js +0 -721
- package/dist/tokens/spacing/variables.json.d.ts +0 -34
- package/dist/utils/layout.d.ts +0 -150
- package/dist/utils/layout.js +0 -221
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { numberIterator as e } from "./util.js";
|
|
2
|
+
const l = [...e, { key: "none", value: "none" }], n = [
|
|
3
|
+
...e.map((a) => ({ key: a.key, value: `repeat(${a.value}, minmax(0, 1fr))` })),
|
|
4
|
+
{ key: "none", value: "none" }
|
|
5
|
+
], s = [
|
|
6
|
+
...e,
|
|
7
|
+
{
|
|
8
|
+
key: "span-2",
|
|
9
|
+
value: "span 2"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: "span-3",
|
|
13
|
+
value: "span 3"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "span-4",
|
|
17
|
+
value: "span 4"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "span-5",
|
|
21
|
+
value: "span 5"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "span-6",
|
|
25
|
+
value: "span 6"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "span-7",
|
|
29
|
+
value: "span 7"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: "span-8",
|
|
33
|
+
value: "span 8"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: "span-9",
|
|
37
|
+
value: "span 9"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: "span-10",
|
|
41
|
+
value: "span 10"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: "span-11",
|
|
45
|
+
value: "span 11"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "span-12",
|
|
49
|
+
value: "span 12"
|
|
50
|
+
}
|
|
51
|
+
], u = s, d = [
|
|
52
|
+
{ key: "none", value: "none" },
|
|
53
|
+
{ key: "grid", value: "grid" },
|
|
54
|
+
{ key: "inline-grid", value: "inline-grid" }
|
|
55
|
+
], y = [
|
|
56
|
+
{ key: "row", value: "row" },
|
|
57
|
+
{ key: "column", value: "column" },
|
|
58
|
+
{ key: "dense", value: "dense" },
|
|
59
|
+
{ key: "row-dense", value: "row-dense" },
|
|
60
|
+
{ key: "column-dense", value: "column-dense" }
|
|
61
|
+
], r = [
|
|
62
|
+
{ key: "display", className: "teddy-display", values: d },
|
|
63
|
+
{
|
|
64
|
+
key: "rows",
|
|
65
|
+
className: "teddy-gtr",
|
|
66
|
+
values: l
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
key: "columns",
|
|
70
|
+
className: "teddy-gtc",
|
|
71
|
+
values: n
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "flow",
|
|
75
|
+
className: "teddy-gaf",
|
|
76
|
+
values: y
|
|
77
|
+
}
|
|
78
|
+
], k = [
|
|
79
|
+
{
|
|
80
|
+
key: "gridColumnStart",
|
|
81
|
+
className: "teddy-gcs",
|
|
82
|
+
values: e
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
key: "gridColumnEnd",
|
|
86
|
+
className: "teddy-gce",
|
|
87
|
+
values: e
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
key: "gridRowStart",
|
|
91
|
+
className: "teddy-grs",
|
|
92
|
+
values: e
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
key: "gridRowEnd",
|
|
96
|
+
className: "teddy-gre",
|
|
97
|
+
values: e
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "gridColumn",
|
|
101
|
+
className: "teddy-gc",
|
|
102
|
+
values: s
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "gridRow",
|
|
106
|
+
className: "teddy-gr",
|
|
107
|
+
values: u
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
export {
|
|
111
|
+
d as displayGridValues,
|
|
112
|
+
k as gridChildren,
|
|
113
|
+
r as gridLayout,
|
|
114
|
+
n as gridTemplateColumnsValues,
|
|
115
|
+
l as gridTemplateRowsValues
|
|
116
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Responsive } from './util';
|
|
2
|
+
|
|
3
|
+
declare const heightValues: readonly [{
|
|
4
|
+
readonly key: "bp-sm";
|
|
5
|
+
readonly value: "0px";
|
|
6
|
+
}, {
|
|
7
|
+
readonly key: "bp-md";
|
|
8
|
+
readonly value: "600px";
|
|
9
|
+
}, {
|
|
10
|
+
readonly key: "bp-lg";
|
|
11
|
+
readonly value: "1024px";
|
|
12
|
+
}, {
|
|
13
|
+
readonly key: "bp-xl";
|
|
14
|
+
readonly value: "1440px";
|
|
15
|
+
}, {
|
|
16
|
+
readonly key: "auto";
|
|
17
|
+
readonly value: "auto";
|
|
18
|
+
}, {
|
|
19
|
+
readonly key: "100%";
|
|
20
|
+
readonly value: "100%";
|
|
21
|
+
}, {
|
|
22
|
+
readonly key: "50%";
|
|
23
|
+
readonly value: "50%";
|
|
24
|
+
}];
|
|
25
|
+
export type HeightProps = {
|
|
26
|
+
/**
|
|
27
|
+
* Static height.
|
|
28
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/height
|
|
29
|
+
*/
|
|
30
|
+
height?: Responsive<(typeof heightValues)[number]['key']>;
|
|
31
|
+
/**
|
|
32
|
+
* Min height.
|
|
33
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/min-height
|
|
34
|
+
*/
|
|
35
|
+
minHeight?: Responsive<(typeof heightValues)[number]['key']>;
|
|
36
|
+
/**
|
|
37
|
+
* Max height.
|
|
38
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
|
|
39
|
+
*/
|
|
40
|
+
maxHeight?: Responsive<(typeof heightValues)[number]['key']>;
|
|
41
|
+
};
|
|
42
|
+
export declare const heights: readonly [{
|
|
43
|
+
readonly key: "height";
|
|
44
|
+
readonly className: "teddy-h";
|
|
45
|
+
readonly values: readonly [{
|
|
46
|
+
readonly key: "bp-sm";
|
|
47
|
+
readonly value: "0px";
|
|
48
|
+
}, {
|
|
49
|
+
readonly key: "bp-md";
|
|
50
|
+
readonly value: "600px";
|
|
51
|
+
}, {
|
|
52
|
+
readonly key: "bp-lg";
|
|
53
|
+
readonly value: "1024px";
|
|
54
|
+
}, {
|
|
55
|
+
readonly key: "bp-xl";
|
|
56
|
+
readonly value: "1440px";
|
|
57
|
+
}, {
|
|
58
|
+
readonly key: "auto";
|
|
59
|
+
readonly value: "auto";
|
|
60
|
+
}, {
|
|
61
|
+
readonly key: "100%";
|
|
62
|
+
readonly value: "100%";
|
|
63
|
+
}, {
|
|
64
|
+
readonly key: "50%";
|
|
65
|
+
readonly value: "50%";
|
|
66
|
+
}];
|
|
67
|
+
}, {
|
|
68
|
+
readonly key: "minHeight";
|
|
69
|
+
readonly className: "teddy-min-h";
|
|
70
|
+
readonly values: readonly [{
|
|
71
|
+
readonly key: "bp-sm";
|
|
72
|
+
readonly value: "0px";
|
|
73
|
+
}, {
|
|
74
|
+
readonly key: "bp-md";
|
|
75
|
+
readonly value: "600px";
|
|
76
|
+
}, {
|
|
77
|
+
readonly key: "bp-lg";
|
|
78
|
+
readonly value: "1024px";
|
|
79
|
+
}, {
|
|
80
|
+
readonly key: "bp-xl";
|
|
81
|
+
readonly value: "1440px";
|
|
82
|
+
}, {
|
|
83
|
+
readonly key: "auto";
|
|
84
|
+
readonly value: "auto";
|
|
85
|
+
}, {
|
|
86
|
+
readonly key: "100%";
|
|
87
|
+
readonly value: "100%";
|
|
88
|
+
}, {
|
|
89
|
+
readonly key: "50%";
|
|
90
|
+
readonly value: "50%";
|
|
91
|
+
}];
|
|
92
|
+
}, {
|
|
93
|
+
readonly key: "maxHeight";
|
|
94
|
+
readonly className: "teddy-max-h";
|
|
95
|
+
readonly values: readonly [{
|
|
96
|
+
readonly key: "bp-sm";
|
|
97
|
+
readonly value: "0px";
|
|
98
|
+
}, {
|
|
99
|
+
readonly key: "bp-md";
|
|
100
|
+
readonly value: "600px";
|
|
101
|
+
}, {
|
|
102
|
+
readonly key: "bp-lg";
|
|
103
|
+
readonly value: "1024px";
|
|
104
|
+
}, {
|
|
105
|
+
readonly key: "bp-xl";
|
|
106
|
+
readonly value: "1440px";
|
|
107
|
+
}, {
|
|
108
|
+
readonly key: "auto";
|
|
109
|
+
readonly value: "auto";
|
|
110
|
+
}, {
|
|
111
|
+
readonly key: "100%";
|
|
112
|
+
readonly value: "100%";
|
|
113
|
+
}, {
|
|
114
|
+
readonly key: "50%";
|
|
115
|
+
readonly value: "50%";
|
|
116
|
+
}];
|
|
117
|
+
}];
|
|
118
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as a, a as t, b as s, c as l } from "../../variables-BkY5b0io.js";
|
|
2
|
+
const e = [
|
|
3
|
+
{
|
|
4
|
+
key: "bp-sm",
|
|
5
|
+
value: a
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
key: "bp-md",
|
|
9
|
+
value: t
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
key: "bp-lg",
|
|
13
|
+
value: s
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "bp-xl",
|
|
17
|
+
value: l
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "auto",
|
|
21
|
+
value: "auto"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
key: "100%",
|
|
25
|
+
value: "100%"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "50%",
|
|
29
|
+
value: "50%"
|
|
30
|
+
}
|
|
31
|
+
], d = [
|
|
32
|
+
{
|
|
33
|
+
key: "height",
|
|
34
|
+
className: "teddy-h",
|
|
35
|
+
values: e
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: "minHeight",
|
|
39
|
+
className: "teddy-min-h",
|
|
40
|
+
values: e
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
key: "maxHeight",
|
|
44
|
+
className: "teddy-max-h",
|
|
45
|
+
values: e
|
|
46
|
+
}
|
|
47
|
+
];
|
|
48
|
+
export {
|
|
49
|
+
d as heights
|
|
50
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { PaddingProps } from './padding';
|
|
2
|
+
import { Justify } from './justify';
|
|
3
|
+
import { GridLayout, GridChildren } from './grid';
|
|
4
|
+
import { GapProps } from './gap';
|
|
5
|
+
import { Align } from './align';
|
|
6
|
+
import { HTMLAttributes } from 'react';
|
|
7
|
+
import { HeightProps } from './height';
|
|
8
|
+
import { WidthProps } from './width';
|
|
9
|
+
import { FlexChildren, FlexLayout } from './flex';
|
|
10
|
+
import { MarginProps } from './margin';
|
|
11
|
+
import { Responsive } from './util';
|
|
12
|
+
|
|
13
|
+
export declare const displayValues: readonly [{
|
|
14
|
+
readonly key: "none";
|
|
15
|
+
readonly value: "none";
|
|
16
|
+
}, {
|
|
17
|
+
readonly key: "inline-flex";
|
|
18
|
+
readonly value: "inline-flex";
|
|
19
|
+
}, {
|
|
20
|
+
readonly key: "flex";
|
|
21
|
+
readonly value: "flex";
|
|
22
|
+
}, {
|
|
23
|
+
readonly key: "none";
|
|
24
|
+
readonly value: "none";
|
|
25
|
+
}, {
|
|
26
|
+
readonly key: "grid";
|
|
27
|
+
readonly value: "grid";
|
|
28
|
+
}, {
|
|
29
|
+
readonly key: "inline-grid";
|
|
30
|
+
readonly value: "inline-grid";
|
|
31
|
+
}];
|
|
32
|
+
export declare const displayLayout: readonly [{
|
|
33
|
+
readonly key: "display";
|
|
34
|
+
readonly className: "teddy-display";
|
|
35
|
+
readonly values: readonly [{
|
|
36
|
+
readonly key: "none";
|
|
37
|
+
readonly value: "none";
|
|
38
|
+
}, {
|
|
39
|
+
readonly key: "inline-flex";
|
|
40
|
+
readonly value: "inline-flex";
|
|
41
|
+
}, {
|
|
42
|
+
readonly key: "flex";
|
|
43
|
+
readonly value: "flex";
|
|
44
|
+
}, {
|
|
45
|
+
readonly key: "none";
|
|
46
|
+
readonly value: "none";
|
|
47
|
+
}, {
|
|
48
|
+
readonly key: "grid";
|
|
49
|
+
readonly value: "grid";
|
|
50
|
+
}, {
|
|
51
|
+
readonly key: "inline-grid";
|
|
52
|
+
readonly value: "inline-grid";
|
|
53
|
+
}];
|
|
54
|
+
}];
|
|
55
|
+
export type DisplayLayout = Responsive<(typeof displayValues)[number]['key']>;
|
|
56
|
+
export type CommonChildrenLayoutProps = MarginProps & PaddingProps & WidthProps & HeightProps;
|
|
57
|
+
export type ChildrenLayoutProps = FlexChildren & GridChildren & CommonChildrenLayoutProps;
|
|
58
|
+
export type CommonFlexGridLayoutProps = ChildrenLayoutProps & GapProps & {
|
|
59
|
+
align?: Align;
|
|
60
|
+
justify?: Justify;
|
|
61
|
+
};
|
|
62
|
+
export type LayoutFlexProps = CommonFlexGridLayoutProps & FlexLayout;
|
|
63
|
+
export type LayoutGridProps = CommonFlexGridLayoutProps & GridLayout;
|
|
64
|
+
export type LayoutProps = Omit<LayoutGridProps, 'display'> & Omit<LayoutFlexProps, 'display'> & {
|
|
65
|
+
display?: DisplayLayout;
|
|
66
|
+
};
|
|
67
|
+
type InlineStyle = React.CSSProperties | Record<string, string | number | null | undefined> | undefined;
|
|
68
|
+
export declare function mergeStyles(...styles: Array<InlineStyle>): InlineStyle;
|
|
69
|
+
export declare function extractProps<T extends LayoutProps & HTMLAttributes<HTMLElement>>(props: T): Omit<T, keyof LayoutProps>;
|
|
70
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { margins as k } from "./margin.js";
|
|
2
|
+
import { displayFlexValues as N, flexChildren as b, flexLayout as h } from "./flex.js";
|
|
3
|
+
import { widths as j } from "./width.js";
|
|
4
|
+
import { heights as v } from "./height.js";
|
|
5
|
+
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
import { align as $ } from "./align.js";
|
|
7
|
+
import { gap as L } from "./gap.js";
|
|
8
|
+
import { displayGridValues as O, gridLayout as V, gridChildren as C } from "./grid.js";
|
|
9
|
+
import { justify as P } from "./justify.js";
|
|
10
|
+
import { paddings as w } from "./padding.js";
|
|
11
|
+
const E = {
|
|
12
|
+
sm: "0px",
|
|
13
|
+
md: "600px",
|
|
14
|
+
lg: "1024px",
|
|
15
|
+
xl: "1440px"
|
|
16
|
+
}, F = ["initial", ...Object.keys(E)], G = [...N, ...O], K = [
|
|
17
|
+
{
|
|
18
|
+
key: "display",
|
|
19
|
+
className: "teddy-display",
|
|
20
|
+
values: G
|
|
21
|
+
}
|
|
22
|
+
], f = [
|
|
23
|
+
...k,
|
|
24
|
+
...w,
|
|
25
|
+
...j,
|
|
26
|
+
...v,
|
|
27
|
+
...L,
|
|
28
|
+
...$,
|
|
29
|
+
...P,
|
|
30
|
+
...K,
|
|
31
|
+
...b,
|
|
32
|
+
...h,
|
|
33
|
+
...V,
|
|
34
|
+
...C
|
|
35
|
+
];
|
|
36
|
+
function R(o) {
|
|
37
|
+
return typeof o == "object" && Object.keys(o).some((e) => F.includes(e));
|
|
38
|
+
}
|
|
39
|
+
function u(...o) {
|
|
40
|
+
let e = {};
|
|
41
|
+
for (const s of o)
|
|
42
|
+
s && (e = { ...e, ...s });
|
|
43
|
+
return Object.keys(e).length ? e : void 0;
|
|
44
|
+
}
|
|
45
|
+
function Q(o) {
|
|
46
|
+
var m;
|
|
47
|
+
const e = { ...o };
|
|
48
|
+
let s = e.style, r = e.className;
|
|
49
|
+
for (const d in f) {
|
|
50
|
+
const t = f[d], n = t.key, a = e[n];
|
|
51
|
+
if (a && (R(a) && Object.entries(a).forEach(([i, l]) => {
|
|
52
|
+
var p;
|
|
53
|
+
const c = ((p = t.values.find((g) => g.key === l)) == null ? void 0 : p.value) ?? l;
|
|
54
|
+
s = u(s, { [`--${t.className}-${i}`]: c });
|
|
55
|
+
const x = `${i}:${t.className}`;
|
|
56
|
+
r = y(r, x), delete e[n];
|
|
57
|
+
}), typeof a == "string")) {
|
|
58
|
+
const i = ((m = t.values.find((c) => c.key === a)) == null ? void 0 : m.value) ?? a;
|
|
59
|
+
s = u(s, { [`--${t.className}`]: i });
|
|
60
|
+
const l = `${t.className}`;
|
|
61
|
+
r = y(r, l), delete e[n];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return { ...e, className: r, style: s };
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
K as displayLayout,
|
|
68
|
+
G as displayValues,
|
|
69
|
+
Q as extractProps,
|
|
70
|
+
u as mergeStyles
|
|
71
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Responsive } from './util';
|
|
2
|
+
|
|
3
|
+
export declare const justifyValues: readonly [{
|
|
4
|
+
readonly key: "start";
|
|
5
|
+
readonly value: "flex-start";
|
|
6
|
+
}, {
|
|
7
|
+
readonly key: "center";
|
|
8
|
+
readonly value: "center";
|
|
9
|
+
}, {
|
|
10
|
+
readonly key: "end";
|
|
11
|
+
readonly value: "flex-end";
|
|
12
|
+
}, {
|
|
13
|
+
readonly key: "between";
|
|
14
|
+
readonly value: "space-between";
|
|
15
|
+
}];
|
|
16
|
+
export declare const justify: readonly [{
|
|
17
|
+
readonly key: "justify";
|
|
18
|
+
readonly className: "teddy-jc";
|
|
19
|
+
readonly values: readonly [{
|
|
20
|
+
readonly key: "start";
|
|
21
|
+
readonly value: "flex-start";
|
|
22
|
+
}, {
|
|
23
|
+
readonly key: "center";
|
|
24
|
+
readonly value: "center";
|
|
25
|
+
}, {
|
|
26
|
+
readonly key: "end";
|
|
27
|
+
readonly value: "flex-end";
|
|
28
|
+
}, {
|
|
29
|
+
readonly key: "between";
|
|
30
|
+
readonly value: "space-between";
|
|
31
|
+
}];
|
|
32
|
+
}];
|
|
33
|
+
/**
|
|
34
|
+
* The alignment of the grid items. It can be or a responsive value.
|
|
35
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
36
|
+
* @example align={{ sm: 'start', md: 'center' }}
|
|
37
|
+
* @default 'start'
|
|
38
|
+
*/
|
|
39
|
+
export type Justify = Responsive<(typeof justifyValues)[number]['key']>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
{ key: "start", value: "flex-start" },
|
|
3
|
+
{ key: "center", value: "center" },
|
|
4
|
+
{ key: "end", value: "flex-end" },
|
|
5
|
+
{ key: "between", value: "space-between" }
|
|
6
|
+
], t = [
|
|
7
|
+
{
|
|
8
|
+
key: "justify",
|
|
9
|
+
className: "teddy-jc",
|
|
10
|
+
values: e
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
export {
|
|
14
|
+
t as justify,
|
|
15
|
+
e as justifyValues
|
|
16
|
+
};
|