@telia/teddy 0.0.1
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/LICENSE +661 -0
- package/README.md +82 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/f2a2f391a886d395.svg +284 -0
- package/dist/assets/field-error-text.css +1 -0
- package/dist/assets/helper-text.css +1 -0
- package/dist/assets/icon.css +1 -0
- package/dist/assets/input.css +1 -0
- package/dist/assets/label.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/assets/spinner.css +1 -0
- package/dist/assets/text-field.css +1 -0
- package/dist/assets/text.css +1 -0
- package/dist/clsx-DB4S2d7J.js +22 -0
- package/dist/components/button/button.d.ts +24 -0
- package/dist/components/button/button.js +95 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +4 -0
- package/dist/components/field-error-text/field-error-text.d.ts +8 -0
- package/dist/components/field-error-text/field-error-text.js +28 -0
- package/dist/components/field-error-text/index.d.ts +2 -0
- package/dist/components/field-error-text/index.js +4 -0
- package/dist/components/helper-text/helper-text.d.ts +5 -0
- package/dist/components/helper-text/helper-text.js +20 -0
- package/dist/components/helper-text/index.d.ts +2 -0
- package/dist/components/helper-text/index.js +4 -0
- package/dist/components/icon/icon.d.ts +10 -0
- package/dist/components/icon/icon.js +27 -0
- package/dist/components/icon/index.d.ts +4 -0
- package/dist/components/icon/index.js +6 -0
- package/dist/components/index.d.ts +9 -0
- package/dist/components/index.js +23 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.js +5 -0
- package/dist/components/input/input.d.ts +53 -0
- package/dist/components/input/input.js +82 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.js +4 -0
- package/dist/components/label/label.d.ts +9 -0
- package/dist/components/label/label.js +61 -0
- package/dist/components/spinner/index.d.ts +1 -0
- package/dist/components/spinner/index.js +4 -0
- package/dist/components/spinner/spinner.d.ts +26 -0
- package/dist/components/spinner/spinner.js +50 -0
- package/dist/components/text/index.d.ts +2 -0
- package/dist/components/text/index.js +4 -0
- package/dist/components/text/text.d.ts +33 -0
- package/dist/components/text/text.js +51 -0
- package/dist/components/text-field/index.d.ts +2 -0
- package/dist/components/text-field/index.js +4 -0
- package/dist/components/text-field/text-field.d.ts +101 -0
- package/dist/components/text-field/text-field.js +141 -0
- package/dist/icons/name.d.js +1 -0
- package/dist/icons/name.d.ts +2 -0
- package/dist/icons/name.js +283 -0
- package/dist/index-TI1xsy6a.js +70 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +38 -0
- package/dist/teams/business/index.d.ts +0 -0
- package/dist/teams/business/index.js +1 -0
- package/dist/teams/index.d.ts +0 -0
- package/dist/teams/index.js +1 -0
- package/dist/teams/min-side/index.d.ts +0 -0
- package/dist/teams/min-side/index.js +1 -0
- package/dist/teams/webshop/index.d.ts +0 -0
- package/dist/teams/webshop/index.js +1 -0
- package/dist/tokens/border/variables.d.ts +9 -0
- package/dist/tokens/border/variables.js +12 -0
- package/dist/tokens/breakpoint/variables.d.ts +4 -0
- package/dist/tokens/breakpoint/variables.js +7 -0
- package/dist/tokens/color/variables.d.ts +226 -0
- package/dist/tokens/color/variables.js +229 -0
- package/dist/tokens/index.d.ts +7 -0
- package/dist/tokens/index.js +16 -0
- package/dist/tokens/motion/variables.d.ts +11 -0
- package/dist/tokens/motion/variables.js +14 -0
- package/dist/tokens/shadow/variables.d.ts +4 -0
- package/dist/tokens/shadow/variables.js +7 -0
- package/dist/tokens/spacing/variables.d.ts +23 -0
- package/dist/tokens/spacing/variables.js +26 -0
- package/dist/tokens/typography/variables.d.ts +24 -0
- package/dist/tokens/typography/variables.js +27 -0
- package/dist/utils/action.d.ts +36 -0
- package/dist/utils/action.js +18 -0
- package/dist/variables-BKiPmtHY.js +458 -0
- package/dist/variables-BkY5b0io.js +14 -0
- package/dist/variables-Bq0YUbLS.js +14 -0
- package/dist/variables-CDK515QX.js +52 -0
- package/dist/variables-CMRTN8qo.js +28 -0
- package/dist/variables-Dmoh9YtD.js +54 -0
- package/dist/variables-IczXZ5CN.js +24 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +112 -0
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
"activity-level",
|
|
3
|
+
"add",
|
|
4
|
+
"address-book",
|
|
5
|
+
"ai-robot",
|
|
6
|
+
"airplay",
|
|
7
|
+
"alert-filled",
|
|
8
|
+
"alert",
|
|
9
|
+
"arrow-down",
|
|
10
|
+
"arrow-left",
|
|
11
|
+
"arrow-right",
|
|
12
|
+
"arrow-subdirectory",
|
|
13
|
+
"arrow-up",
|
|
14
|
+
"attachment",
|
|
15
|
+
"b2b-customer",
|
|
16
|
+
"bag",
|
|
17
|
+
"bar-chart",
|
|
18
|
+
"basketball",
|
|
19
|
+
"battery",
|
|
20
|
+
"blood-pressure",
|
|
21
|
+
"bluetooth",
|
|
22
|
+
"broadband",
|
|
23
|
+
"broken-phone",
|
|
24
|
+
"bulb",
|
|
25
|
+
"business-continuity",
|
|
26
|
+
"business-intelligence",
|
|
27
|
+
"calendar",
|
|
28
|
+
"camera",
|
|
29
|
+
"card-view",
|
|
30
|
+
"care",
|
|
31
|
+
"cast",
|
|
32
|
+
"chat-robot",
|
|
33
|
+
"chat",
|
|
34
|
+
"check-circle-filled",
|
|
35
|
+
"check-circle",
|
|
36
|
+
"checkmark",
|
|
37
|
+
"chevron-down",
|
|
38
|
+
"chevron-left",
|
|
39
|
+
"chevron-right",
|
|
40
|
+
"chevron-up",
|
|
41
|
+
"child-2",
|
|
42
|
+
"close-circle",
|
|
43
|
+
"close",
|
|
44
|
+
"cloud-connect",
|
|
45
|
+
"cloud",
|
|
46
|
+
"coffee",
|
|
47
|
+
"compass",
|
|
48
|
+
"connected-building",
|
|
49
|
+
"connected",
|
|
50
|
+
"construction",
|
|
51
|
+
"conversation",
|
|
52
|
+
"core-router",
|
|
53
|
+
"credit-card",
|
|
54
|
+
"customer-dialogue",
|
|
55
|
+
"daas-device",
|
|
56
|
+
"data-transfer",
|
|
57
|
+
"delivery",
|
|
58
|
+
"desktop",
|
|
59
|
+
"devices",
|
|
60
|
+
"dislike",
|
|
61
|
+
"doc",
|
|
62
|
+
"document-doc",
|
|
63
|
+
"document-edit",
|
|
64
|
+
"document-pdf",
|
|
65
|
+
"document-ppt",
|
|
66
|
+
"download",
|
|
67
|
+
"drone",
|
|
68
|
+
"dsl-hub",
|
|
69
|
+
"edit",
|
|
70
|
+
"education",
|
|
71
|
+
"efficiency",
|
|
72
|
+
"end-user",
|
|
73
|
+
"entertainment",
|
|
74
|
+
"environment",
|
|
75
|
+
"error-filled",
|
|
76
|
+
"error",
|
|
77
|
+
"esim-simcard",
|
|
78
|
+
"esim",
|
|
79
|
+
"euro",
|
|
80
|
+
"excel",
|
|
81
|
+
"external",
|
|
82
|
+
"face-id",
|
|
83
|
+
"facemask",
|
|
84
|
+
"fiber",
|
|
85
|
+
"film",
|
|
86
|
+
"filter",
|
|
87
|
+
"fingerprint",
|
|
88
|
+
"fiveg",
|
|
89
|
+
"flag",
|
|
90
|
+
"focus",
|
|
91
|
+
"folder-copy",
|
|
92
|
+
"folder-new",
|
|
93
|
+
"folder",
|
|
94
|
+
"food",
|
|
95
|
+
"fourg",
|
|
96
|
+
"fraud",
|
|
97
|
+
"games",
|
|
98
|
+
"getting-started",
|
|
99
|
+
"GIF",
|
|
100
|
+
"graph",
|
|
101
|
+
"grid-view",
|
|
102
|
+
"handshake",
|
|
103
|
+
"headphones",
|
|
104
|
+
"help",
|
|
105
|
+
"home-care",
|
|
106
|
+
"home-installation",
|
|
107
|
+
"home",
|
|
108
|
+
"hospital",
|
|
109
|
+
"image",
|
|
110
|
+
"industrial-iot",
|
|
111
|
+
"industry",
|
|
112
|
+
"infinite",
|
|
113
|
+
"info-filled",
|
|
114
|
+
"info",
|
|
115
|
+
"internet",
|
|
116
|
+
"invoice",
|
|
117
|
+
"job-search",
|
|
118
|
+
"key",
|
|
119
|
+
"kontantkort",
|
|
120
|
+
"laptop",
|
|
121
|
+
"late-payment",
|
|
122
|
+
"layers",
|
|
123
|
+
"letter",
|
|
124
|
+
"like",
|
|
125
|
+
"link",
|
|
126
|
+
"list-view",
|
|
127
|
+
"lock-open",
|
|
128
|
+
"lock",
|
|
129
|
+
"login",
|
|
130
|
+
"logout",
|
|
131
|
+
"map",
|
|
132
|
+
"measuring-health",
|
|
133
|
+
"media-content",
|
|
134
|
+
"megaphone",
|
|
135
|
+
"menu",
|
|
136
|
+
"microphone",
|
|
137
|
+
"minus",
|
|
138
|
+
"mms",
|
|
139
|
+
"mobile-broadband",
|
|
140
|
+
"moisture",
|
|
141
|
+
"money-back",
|
|
142
|
+
"money-krone",
|
|
143
|
+
"money",
|
|
144
|
+
"more-horizontal",
|
|
145
|
+
"more-vertical",
|
|
146
|
+
"music",
|
|
147
|
+
"network",
|
|
148
|
+
"new-contact",
|
|
149
|
+
"new-group",
|
|
150
|
+
"news",
|
|
151
|
+
"offering",
|
|
152
|
+
"offshore",
|
|
153
|
+
"optimization",
|
|
154
|
+
"org-chart",
|
|
155
|
+
"pay-monthly",
|
|
156
|
+
"pay-once",
|
|
157
|
+
"payment-success",
|
|
158
|
+
"people",
|
|
159
|
+
"pet-dog",
|
|
160
|
+
"phone-recycling",
|
|
161
|
+
"phone-ringing",
|
|
162
|
+
"phone",
|
|
163
|
+
"pie-chart",
|
|
164
|
+
"pin",
|
|
165
|
+
"plane",
|
|
166
|
+
"player-settings",
|
|
167
|
+
"plus-minus",
|
|
168
|
+
"plus",
|
|
169
|
+
"police",
|
|
170
|
+
"power-grid",
|
|
171
|
+
"premises-datacenter",
|
|
172
|
+
"premises-large",
|
|
173
|
+
"premises-medium",
|
|
174
|
+
"premises-small",
|
|
175
|
+
"premises",
|
|
176
|
+
"present",
|
|
177
|
+
"press-button",
|
|
178
|
+
"price",
|
|
179
|
+
"print",
|
|
180
|
+
"pulse",
|
|
181
|
+
"question-filled",
|
|
182
|
+
"question",
|
|
183
|
+
"rack",
|
|
184
|
+
"radio",
|
|
185
|
+
"record",
|
|
186
|
+
"recycle",
|
|
187
|
+
"refill-card",
|
|
188
|
+
"register",
|
|
189
|
+
"remote-control",
|
|
190
|
+
"repair",
|
|
191
|
+
"report",
|
|
192
|
+
"reservation",
|
|
193
|
+
"reverse",
|
|
194
|
+
"roaming",
|
|
195
|
+
"route",
|
|
196
|
+
"router",
|
|
197
|
+
"ruler",
|
|
198
|
+
"satellite",
|
|
199
|
+
"save",
|
|
200
|
+
"savings",
|
|
201
|
+
"search",
|
|
202
|
+
"secure-device",
|
|
203
|
+
"secured-1",
|
|
204
|
+
"secured-2",
|
|
205
|
+
"security-camera",
|
|
206
|
+
"send",
|
|
207
|
+
"sense-car",
|
|
208
|
+
"server",
|
|
209
|
+
"service-device",
|
|
210
|
+
"service-supervision",
|
|
211
|
+
"services",
|
|
212
|
+
"settings",
|
|
213
|
+
"share",
|
|
214
|
+
"shopping",
|
|
215
|
+
"shuffle",
|
|
216
|
+
"signature",
|
|
217
|
+
"simcard",
|
|
218
|
+
"skip-back-10sec",
|
|
219
|
+
"skip-back-30sec",
|
|
220
|
+
"skip-forward-10sec",
|
|
221
|
+
"skip-forward-30sec",
|
|
222
|
+
"slow-wifi",
|
|
223
|
+
"smart-wifi",
|
|
224
|
+
"smartphone",
|
|
225
|
+
"smartwatch",
|
|
226
|
+
"smiley-happy",
|
|
227
|
+
"sms",
|
|
228
|
+
"snowflake",
|
|
229
|
+
"sorter",
|
|
230
|
+
"speedometer",
|
|
231
|
+
"spell-check",
|
|
232
|
+
"split",
|
|
233
|
+
"spyware",
|
|
234
|
+
"stop",
|
|
235
|
+
"store",
|
|
236
|
+
"stream",
|
|
237
|
+
"suitcase",
|
|
238
|
+
"summary",
|
|
239
|
+
"support",
|
|
240
|
+
"sustainability",
|
|
241
|
+
"switch",
|
|
242
|
+
"sync",
|
|
243
|
+
"table-view",
|
|
244
|
+
"tablet",
|
|
245
|
+
"tag",
|
|
246
|
+
"temperature",
|
|
247
|
+
"thinking",
|
|
248
|
+
"time",
|
|
249
|
+
"trade-phone",
|
|
250
|
+
"trailer",
|
|
251
|
+
"train",
|
|
252
|
+
"transfer",
|
|
253
|
+
"tv-next",
|
|
254
|
+
"tv-pause",
|
|
255
|
+
"tv-previous",
|
|
256
|
+
"tv-stop",
|
|
257
|
+
"tv",
|
|
258
|
+
"undo",
|
|
259
|
+
"upload",
|
|
260
|
+
"usb",
|
|
261
|
+
"user-admin",
|
|
262
|
+
"vcard",
|
|
263
|
+
"video-conference",
|
|
264
|
+
"video",
|
|
265
|
+
"voice-switch",
|
|
266
|
+
"voicemail",
|
|
267
|
+
"wallet",
|
|
268
|
+
"wallplug",
|
|
269
|
+
"warning",
|
|
270
|
+
"wavelength",
|
|
271
|
+
"weather",
|
|
272
|
+
"wireless-off",
|
|
273
|
+
"wireless",
|
|
274
|
+
"world-alert",
|
|
275
|
+
"world-off",
|
|
276
|
+
"world-question",
|
|
277
|
+
"world",
|
|
278
|
+
"zoom-out",
|
|
279
|
+
"zoom"
|
|
280
|
+
];
|
|
281
|
+
export {
|
|
282
|
+
e as iconNames
|
|
283
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { forwardRef as $, Children as s, isValidElement as f, createElement as u, cloneElement as m, Fragment as h } from "react";
|
|
2
|
+
function a() {
|
|
3
|
+
return a = Object.assign ? Object.assign.bind() : function(e) {
|
|
4
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
5
|
+
var n = arguments[r];
|
|
6
|
+
for (var t in n)
|
|
7
|
+
Object.prototype.hasOwnProperty.call(n, t) && (e[t] = n[t]);
|
|
8
|
+
}
|
|
9
|
+
return e;
|
|
10
|
+
}, a.apply(this, arguments);
|
|
11
|
+
}
|
|
12
|
+
function y(e, r) {
|
|
13
|
+
typeof e == "function" ? e(r) : e != null && (e.current = r);
|
|
14
|
+
}
|
|
15
|
+
function b(...e) {
|
|
16
|
+
return (r) => e.forEach(
|
|
17
|
+
(n) => y(n, r)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
const v = /* @__PURE__ */ $((e, r) => {
|
|
21
|
+
const { children: n, ...t } = e, o = s.toArray(n), l = o.find(x);
|
|
22
|
+
if (l) {
|
|
23
|
+
const c = l.props.children, i = o.map((d) => d === l ? s.count(c) > 1 ? s.only(null) : /* @__PURE__ */ f(c) ? c.props.children : null : d);
|
|
24
|
+
return /* @__PURE__ */ u(p, a({}, t, {
|
|
25
|
+
ref: r
|
|
26
|
+
}), /* @__PURE__ */ f(c) ? /* @__PURE__ */ m(c, void 0, i) : null);
|
|
27
|
+
}
|
|
28
|
+
return /* @__PURE__ */ u(p, a({}, t, {
|
|
29
|
+
ref: r
|
|
30
|
+
}), n);
|
|
31
|
+
});
|
|
32
|
+
v.displayName = "Slot";
|
|
33
|
+
const p = /* @__PURE__ */ $((e, r) => {
|
|
34
|
+
const { children: n, ...t } = e;
|
|
35
|
+
return /* @__PURE__ */ f(n) ? /* @__PURE__ */ m(n, {
|
|
36
|
+
...E(t, n.props),
|
|
37
|
+
ref: r ? b(r, n.ref) : n.ref
|
|
38
|
+
}) : s.count(n) > 1 ? s.only(null) : null;
|
|
39
|
+
});
|
|
40
|
+
p.displayName = "SlotClone";
|
|
41
|
+
const g = ({ children: e }) => /* @__PURE__ */ u(h, null, e);
|
|
42
|
+
function x(e) {
|
|
43
|
+
return /* @__PURE__ */ f(e) && e.type === g;
|
|
44
|
+
}
|
|
45
|
+
function E(e, r) {
|
|
46
|
+
const n = {
|
|
47
|
+
...r
|
|
48
|
+
};
|
|
49
|
+
for (const t in r) {
|
|
50
|
+
const o = e[t], l = r[t];
|
|
51
|
+
/^on[A-Z]/.test(t) ? o && l ? n[t] = (...i) => {
|
|
52
|
+
l(...i), o(...i);
|
|
53
|
+
} : o && (n[t] = o) : t === "style" ? n[t] = {
|
|
54
|
+
...o,
|
|
55
|
+
...l
|
|
56
|
+
} : t === "className" && (n[t] = [
|
|
57
|
+
o,
|
|
58
|
+
l
|
|
59
|
+
].filter(Boolean).join(" "));
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
...e,
|
|
63
|
+
...n
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
g as $,
|
|
68
|
+
a as _,
|
|
69
|
+
v as a
|
|
70
|
+
};
|
package/dist/main.d.ts
ADDED
package/dist/main.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./assets/main.css";
|
|
2
|
+
import { Button as t } from "./components/button/button.js";
|
|
3
|
+
import { FieldErrorText as x } from "./components/field-error-text/field-error-text.js";
|
|
4
|
+
import { HelperText as m } from "./components/helper-text/helper-text.js";
|
|
5
|
+
import { default as s } from "./assets/f2a2f391a886d395.svg";
|
|
6
|
+
import { Icon as i } from "./components/icon/icon.js";
|
|
7
|
+
import { Input as l, InputGroup as d } from "./components/input/input.js";
|
|
8
|
+
import { Label as c } from "./components/label/label.js";
|
|
9
|
+
import { Spinner as b } from "./components/spinner/spinner.js";
|
|
10
|
+
import { Text as g } from "./components/text/text.js";
|
|
11
|
+
import { TextField as y } from "./components/text-field/text-field.js";
|
|
12
|
+
import { v as H } from "./variables-IczXZ5CN.js";
|
|
13
|
+
import { v as w } from "./variables-BkY5b0io.js";
|
|
14
|
+
import { v as E } from "./variables-BKiPmtHY.js";
|
|
15
|
+
import { v as L } from "./variables-CMRTN8qo.js";
|
|
16
|
+
import { v as j } from "./variables-Bq0YUbLS.js";
|
|
17
|
+
import { v as z } from "./variables-CDK515QX.js";
|
|
18
|
+
import { v as C } from "./variables-Dmoh9YtD.js";
|
|
19
|
+
export {
|
|
20
|
+
t as Button,
|
|
21
|
+
x as FieldErrorText,
|
|
22
|
+
m as HelperText,
|
|
23
|
+
i as Icon,
|
|
24
|
+
l as Input,
|
|
25
|
+
d as InputGroup,
|
|
26
|
+
c as Label,
|
|
27
|
+
b as Spinner,
|
|
28
|
+
g as Text,
|
|
29
|
+
y as TextField,
|
|
30
|
+
H as border,
|
|
31
|
+
w as breakpoint,
|
|
32
|
+
E as color,
|
|
33
|
+
s as iconsHref,
|
|
34
|
+
L as motion,
|
|
35
|
+
j as shadow,
|
|
36
|
+
z as spacing,
|
|
37
|
+
C as typography
|
|
38
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const teddyBorderRadiusXs = "2px";
|
|
2
|
+
export declare const teddyBorderRadiusSm = "4px";
|
|
3
|
+
export declare const teddyBorderRadiusMd = "8px";
|
|
4
|
+
export declare const teddyBorderRadiusLg = "16px";
|
|
5
|
+
export declare const teddyBorderRadiusFull = "999px";
|
|
6
|
+
export declare const teddyBorderWidthXs = "1px";
|
|
7
|
+
export declare const teddyBorderWidthSm = "2px";
|
|
8
|
+
export declare const teddyBorderWidthMd = "3px";
|
|
9
|
+
export declare const teddyBorderWidthLg = "6px";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { d as r, c as s, b as a, a as t, t as o, h as i, g as y, f as B, e as u } from "../../variables-IczXZ5CN.js";
|
|
2
|
+
export {
|
|
3
|
+
r as teddyBorderRadiusFull,
|
|
4
|
+
s as teddyBorderRadiusLg,
|
|
5
|
+
a as teddyBorderRadiusMd,
|
|
6
|
+
t as teddyBorderRadiusSm,
|
|
7
|
+
o as teddyBorderRadiusXs,
|
|
8
|
+
i as teddyBorderWidthLg,
|
|
9
|
+
y as teddyBorderWidthMd,
|
|
10
|
+
B as teddyBorderWidthSm,
|
|
11
|
+
u as teddyBorderWidthXs
|
|
12
|
+
};
|