@telia/teddy 0.1.0 → 0.1.2
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/card/card-carousel.cjs +1 -1
- package/dist/components/card/card-carousel.js +1 -1
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/checkbox/checkbox-group-list.d.ts +3 -3
- package/dist/components/checkbox/checkbox-group.d.ts +4 -4
- package/dist/components/checkbox/index.d.ts +7 -7
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/color-dot/index.d.ts +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
- package/dist/components/expandable-card/index.d.ts +2 -2
- package/dist/components/image/image.d.ts +1 -1
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/list/index.d.ts +4 -4
- package/dist/components/list/list.d.ts +4 -4
- package/dist/components/modal/modal.cjs +1 -0
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.js +1 -0
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/notification.d.ts +8 -8
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
- package/dist/components/scroll-area/index.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/skeleton/index.cjs +6 -0
- package/dist/components/skeleton/index.d.ts +4 -0
- package/dist/components/skeleton/index.js +6 -0
- package/dist/components/skeleton/skeleton-root.cjs +21 -0
- package/dist/components/skeleton/skeleton-root.d.ts +11 -0
- package/dist/components/skeleton/skeleton-root.js +21 -0
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/text-field-button.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +147 -1
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.cjs +2 -0
- package/dist/utils/generate-styling/index.d.ts +128 -17
- package/dist/utils/generate-styling/index.js +2 -0
- package/dist/utils/generate-styling/radius.cjs +38 -0
- package/dist/utils/generate-styling/radius.d.ts +165 -0
- package/dist/utils/generate-styling/radius.js +38 -0
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import { Responsive } from './util';
|
|
2
|
+
|
|
3
|
+
declare const radiusValues: readonly [{
|
|
4
|
+
readonly key: "none";
|
|
5
|
+
readonly value: "0";
|
|
6
|
+
}, {
|
|
7
|
+
readonly key: "xs";
|
|
8
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
9
|
+
}, {
|
|
10
|
+
readonly key: "sm";
|
|
11
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
12
|
+
}, {
|
|
13
|
+
readonly key: "md";
|
|
14
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
15
|
+
}, {
|
|
16
|
+
readonly key: "lg";
|
|
17
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
18
|
+
}, {
|
|
19
|
+
readonly key: "full";
|
|
20
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
21
|
+
}];
|
|
22
|
+
export declare const radius: readonly [{
|
|
23
|
+
readonly key: "radius";
|
|
24
|
+
readonly className: "teddy-radius";
|
|
25
|
+
readonly values: readonly [{
|
|
26
|
+
readonly key: "none";
|
|
27
|
+
readonly value: "0";
|
|
28
|
+
}, {
|
|
29
|
+
readonly key: "xs";
|
|
30
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
31
|
+
}, {
|
|
32
|
+
readonly key: "sm";
|
|
33
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
34
|
+
}, {
|
|
35
|
+
readonly key: "md";
|
|
36
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
37
|
+
}, {
|
|
38
|
+
readonly key: "lg";
|
|
39
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
40
|
+
}, {
|
|
41
|
+
readonly key: "full";
|
|
42
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
43
|
+
}];
|
|
44
|
+
}, {
|
|
45
|
+
readonly key: "radiusTL";
|
|
46
|
+
readonly className: "teddy-radius-tl";
|
|
47
|
+
readonly values: readonly [{
|
|
48
|
+
readonly key: "none";
|
|
49
|
+
readonly value: "0";
|
|
50
|
+
}, {
|
|
51
|
+
readonly key: "xs";
|
|
52
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
53
|
+
}, {
|
|
54
|
+
readonly key: "sm";
|
|
55
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
56
|
+
}, {
|
|
57
|
+
readonly key: "md";
|
|
58
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
59
|
+
}, {
|
|
60
|
+
readonly key: "lg";
|
|
61
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
62
|
+
}, {
|
|
63
|
+
readonly key: "full";
|
|
64
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
65
|
+
}];
|
|
66
|
+
}, {
|
|
67
|
+
readonly key: "radiusTR";
|
|
68
|
+
readonly className: "teddy-radius-tr";
|
|
69
|
+
readonly values: readonly [{
|
|
70
|
+
readonly key: "none";
|
|
71
|
+
readonly value: "0";
|
|
72
|
+
}, {
|
|
73
|
+
readonly key: "xs";
|
|
74
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
75
|
+
}, {
|
|
76
|
+
readonly key: "sm";
|
|
77
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
78
|
+
}, {
|
|
79
|
+
readonly key: "md";
|
|
80
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
81
|
+
}, {
|
|
82
|
+
readonly key: "lg";
|
|
83
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
84
|
+
}, {
|
|
85
|
+
readonly key: "full";
|
|
86
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
87
|
+
}];
|
|
88
|
+
}, {
|
|
89
|
+
readonly key: "radiusBL";
|
|
90
|
+
readonly className: "teddy-radius-bl";
|
|
91
|
+
readonly values: readonly [{
|
|
92
|
+
readonly key: "none";
|
|
93
|
+
readonly value: "0";
|
|
94
|
+
}, {
|
|
95
|
+
readonly key: "xs";
|
|
96
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
97
|
+
}, {
|
|
98
|
+
readonly key: "sm";
|
|
99
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
100
|
+
}, {
|
|
101
|
+
readonly key: "md";
|
|
102
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
103
|
+
}, {
|
|
104
|
+
readonly key: "lg";
|
|
105
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
106
|
+
}, {
|
|
107
|
+
readonly key: "full";
|
|
108
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
109
|
+
}];
|
|
110
|
+
}, {
|
|
111
|
+
readonly key: "radiusBR";
|
|
112
|
+
readonly className: "teddy-radius-br";
|
|
113
|
+
readonly values: readonly [{
|
|
114
|
+
readonly key: "none";
|
|
115
|
+
readonly value: "0";
|
|
116
|
+
}, {
|
|
117
|
+
readonly key: "xs";
|
|
118
|
+
readonly value: "var(--teddy-border-radius-xs)";
|
|
119
|
+
}, {
|
|
120
|
+
readonly key: "sm";
|
|
121
|
+
readonly value: "var(--teddy-border-radius-sm)";
|
|
122
|
+
}, {
|
|
123
|
+
readonly key: "md";
|
|
124
|
+
readonly value: "var(--teddy-border-radius-md)";
|
|
125
|
+
}, {
|
|
126
|
+
readonly key: "lg";
|
|
127
|
+
readonly value: "var(--teddy-border-radius-lg)";
|
|
128
|
+
}, {
|
|
129
|
+
readonly key: "full";
|
|
130
|
+
readonly value: "var(--teddy-border-radius-full)";
|
|
131
|
+
}];
|
|
132
|
+
}];
|
|
133
|
+
export type RadiusProps = {
|
|
134
|
+
/**
|
|
135
|
+
* The radius of the element. It can be a number, 'none' or a responsive value.
|
|
136
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
137
|
+
* @example radius={{ sm: 'xs', md: 'sm' }}
|
|
138
|
+
*/
|
|
139
|
+
radius?: Responsive<(typeof radiusValues)[number]['key']>;
|
|
140
|
+
/**
|
|
141
|
+
* The radius of the top-left corner of the element. It can be a number, 'none' or a responsive value.
|
|
142
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
143
|
+
* @example radius={{ sm: 'xs', md: 'sm' }}
|
|
144
|
+
*/
|
|
145
|
+
radiusTL?: Responsive<(typeof radiusValues)[number]['key']>;
|
|
146
|
+
/**
|
|
147
|
+
* The radius of the top-right corner of the element. It can be a number, 'none' or a responsive value.
|
|
148
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
149
|
+
* @example radius={{ sm: 'xs', md: 'sm' }}
|
|
150
|
+
*/
|
|
151
|
+
radiusTR?: Responsive<(typeof radiusValues)[number]['key']>;
|
|
152
|
+
/**
|
|
153
|
+
* The radius of the bottom-left corner of the element. It can be a number, 'none' or a responsive value.
|
|
154
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
155
|
+
* @example radius={{ sm: 'xs', md: 'sm' }}
|
|
156
|
+
*/
|
|
157
|
+
radiusBL?: Responsive<(typeof radiusValues)[number]['key']>;
|
|
158
|
+
/**
|
|
159
|
+
* The radius of the bottom-right corner of the element. It can be a number, 'none' or a responsive value.
|
|
160
|
+
* A responsive value is an object with the keys 'sm', 'md', 'lg', 'xl' and a value for the corresponding breakpoint.
|
|
161
|
+
* @example radius={{ sm: 'xs', md: 'sm' }}
|
|
162
|
+
*/
|
|
163
|
+
radiusBR?: Responsive<(typeof radiusValues)[number]['key']>;
|
|
164
|
+
};
|
|
165
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const radiusValues = [
|
|
2
|
+
{ key: "none", value: "0" },
|
|
3
|
+
{ key: "xs", value: "var(--teddy-border-radius-xs)" },
|
|
4
|
+
{ key: "sm", value: "var(--teddy-border-radius-sm)" },
|
|
5
|
+
{ key: "md", value: "var(--teddy-border-radius-md)" },
|
|
6
|
+
{ key: "lg", value: "var(--teddy-border-radius-lg)" },
|
|
7
|
+
{ key: "full", value: "var(--teddy-border-radius-full)" }
|
|
8
|
+
];
|
|
9
|
+
const radius = [
|
|
10
|
+
{
|
|
11
|
+
key: "radius",
|
|
12
|
+
className: "teddy-radius",
|
|
13
|
+
values: radiusValues
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: "radiusTL",
|
|
17
|
+
className: "teddy-radius-tl",
|
|
18
|
+
values: radiusValues
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "radiusTR",
|
|
22
|
+
className: "teddy-radius-tr",
|
|
23
|
+
values: radiusValues
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: "radiusBL",
|
|
27
|
+
className: "teddy-radius-bl",
|
|
28
|
+
values: radiusValues
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: "radiusBR",
|
|
32
|
+
className: "teddy-radius-br",
|
|
33
|
+
values: radiusValues
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
export {
|
|
37
|
+
radius
|
|
38
|
+
};
|
|
@@ -76,7 +76,7 @@ export type Responsive<T> = {
|
|
|
76
76
|
[key in Breakpoint]?: T | AnyCssValue;
|
|
77
77
|
} | (T | AnyCssValue);
|
|
78
78
|
export declare const numberIterator: {
|
|
79
|
-
key: "
|
|
80
|
-
value: "
|
|
79
|
+
key: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12";
|
|
80
|
+
value: "10" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "11" | "12";
|
|
81
81
|
}[];
|
|
82
82
|
export {};
|