@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,24 @@
|
|
|
1
|
+
const d = "2px", e = "4px", t = "8px", s = "16px", o = "999px", r = "1px", a = "2px", c = "3px", n = "6px", i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2
|
+
__proto__: null,
|
|
3
|
+
teddyBorderRadiusFull: o,
|
|
4
|
+
teddyBorderRadiusLg: s,
|
|
5
|
+
teddyBorderRadiusMd: t,
|
|
6
|
+
teddyBorderRadiusSm: e,
|
|
7
|
+
teddyBorderRadiusXs: d,
|
|
8
|
+
teddyBorderWidthLg: n,
|
|
9
|
+
teddyBorderWidthMd: c,
|
|
10
|
+
teddyBorderWidthSm: a,
|
|
11
|
+
teddyBorderWidthXs: r
|
|
12
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
13
|
+
export {
|
|
14
|
+
e as a,
|
|
15
|
+
t as b,
|
|
16
|
+
s as c,
|
|
17
|
+
o as d,
|
|
18
|
+
r as e,
|
|
19
|
+
a as f,
|
|
20
|
+
c as g,
|
|
21
|
+
n as h,
|
|
22
|
+
d as t,
|
|
23
|
+
i as v
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@telia/teddy",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"main": "dist/main.js",
|
|
5
|
+
"types": "dist/main.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"engines": {
|
|
10
|
+
"node": ">=20",
|
|
11
|
+
"pnpm": ">=8"
|
|
12
|
+
},
|
|
13
|
+
"private": false,
|
|
14
|
+
"version": "0.0.1",
|
|
15
|
+
"sideEffects": [
|
|
16
|
+
"**/*.css"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build:icons": "tsx other/scripts/build-icons.ts",
|
|
20
|
+
"build:tokens": "tsx other/scripts/build-tokens.ts",
|
|
21
|
+
"create:comp": "tsx node_modules/.bin/plop --plopfile other/scripts/plopfile.ts",
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"prebuild": "pnpm run build:icons && pnpm run build:tokens",
|
|
24
|
+
"storybook": "storybook dev -p 6006",
|
|
25
|
+
"build-storybook": "storybook build",
|
|
26
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
27
|
+
"preinstall": "npx only-allow pnpm",
|
|
28
|
+
"dev": "vite",
|
|
29
|
+
"build": "pnpm run clean && tsc --p ./tsconfig.build.json && vite build",
|
|
30
|
+
"preview": "vite preview",
|
|
31
|
+
"release": "pnpm run build && changeset publish",
|
|
32
|
+
"format": "prettier --write .",
|
|
33
|
+
"lint:fix": "eslint . --ext ts,tsx --fix"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^18.0.0",
|
|
37
|
+
"react-dom": "^18.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@changesets/cli": "^2.27.1",
|
|
41
|
+
"@chromatic-com/storybook": "^1.2.1",
|
|
42
|
+
"@laynezh/vite-plugin-lib-assets": "^0.5.19",
|
|
43
|
+
"@storybook/addon-a11y": "^8.0.0-rc.0",
|
|
44
|
+
"@storybook/addon-essentials": "^8.0.0-rc.0",
|
|
45
|
+
"@storybook/addon-interactions": "^8.0.0-rc.0",
|
|
46
|
+
"@storybook/addon-links": "^8.0.0-rc.0",
|
|
47
|
+
"@storybook/addon-mdx-gfm": "^8.0.0-rc.0",
|
|
48
|
+
"@storybook/addon-onboarding": "^8.0.0-rc.0",
|
|
49
|
+
"@storybook/addon-storysource": "^8.0.0-rc.0",
|
|
50
|
+
"@storybook/blocks": "^8.0.0-rc.0",
|
|
51
|
+
"@storybook/manager-api": "^8.0.0-rc.0",
|
|
52
|
+
"@storybook/react": "^8.0.0-rc.0",
|
|
53
|
+
"@storybook/react-vite": "^8.0.0-rc.0",
|
|
54
|
+
"@storybook/test": "^8.0.0-rc.0",
|
|
55
|
+
"@storybook/theming": "^8.0.0-rc.0",
|
|
56
|
+
"@types/fs-extra": "^11.0.4",
|
|
57
|
+
"@types/node": "^20.11.16",
|
|
58
|
+
"@types/react": "^18.2.53",
|
|
59
|
+
"@types/react-dom": "^18.2.18",
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^6.20.0",
|
|
61
|
+
"@typescript-eslint/parser": "^6.20.0",
|
|
62
|
+
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
63
|
+
"axios": "^1.6.7",
|
|
64
|
+
"create": "link:@storybook/theming/create",
|
|
65
|
+
"eslint": "^8.56.0",
|
|
66
|
+
"eslint-config-prettier": "^9.1.0",
|
|
67
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
68
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
69
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
70
|
+
"eslint-plugin-react-refresh": "^0.4.5",
|
|
71
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
72
|
+
"execa": "^8.0.1",
|
|
73
|
+
"fs-extra": "^11.2.0",
|
|
74
|
+
"glob": "^10.3.10",
|
|
75
|
+
"node-html-parser": "^6.1.12",
|
|
76
|
+
"plop": "^4.0.1",
|
|
77
|
+
"prettier": "3.2.5",
|
|
78
|
+
"react": "^18.2.0",
|
|
79
|
+
"react-dom": "^18.2.0",
|
|
80
|
+
"sass": "^1.70.0",
|
|
81
|
+
"storybook": "^8.0.0-rc.0",
|
|
82
|
+
"style-dictionary": "^3.9.2",
|
|
83
|
+
"tsx": "^4.7.0",
|
|
84
|
+
"typescript": "^5.3.3",
|
|
85
|
+
"vite": "^5.1.4",
|
|
86
|
+
"vite-plugin-dts": "^3.7.3",
|
|
87
|
+
"vite-plugin-lib-inject-css": "^2.0.0"
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"@purpurds/tokens": "^3.0.0",
|
|
91
|
+
"@purpurds/visually-hidden": "^3.0.0",
|
|
92
|
+
"@radix-ui/react-label": "^2.0.2",
|
|
93
|
+
"@radix-ui/react-slot": "^1.0.2",
|
|
94
|
+
"clsx": "^2.1.0",
|
|
95
|
+
"rollup-plugin-visualizer": "^5.12.0"
|
|
96
|
+
},
|
|
97
|
+
"description": "",
|
|
98
|
+
"directories": {
|
|
99
|
+
"doc": "docs",
|
|
100
|
+
"lib": "lib"
|
|
101
|
+
},
|
|
102
|
+
"repository": {
|
|
103
|
+
"type": "git",
|
|
104
|
+
"url": "git+https://github.com/telia-company/teddy.git"
|
|
105
|
+
},
|
|
106
|
+
"author": "",
|
|
107
|
+
"license": "AGPL-3.0",
|
|
108
|
+
"bugs": {
|
|
109
|
+
"url": "https://github.com/telia-company/teddy/issues"
|
|
110
|
+
},
|
|
111
|
+
"homepage": "https://github.com/telia-company/teddy#readme"
|
|
112
|
+
}
|