@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.
Files changed (93) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +82 -0
  3. package/dist/assets/button.css +1 -0
  4. package/dist/assets/f2a2f391a886d395.svg +284 -0
  5. package/dist/assets/field-error-text.css +1 -0
  6. package/dist/assets/helper-text.css +1 -0
  7. package/dist/assets/icon.css +1 -0
  8. package/dist/assets/input.css +1 -0
  9. package/dist/assets/label.css +1 -0
  10. package/dist/assets/main.css +1 -0
  11. package/dist/assets/spinner.css +1 -0
  12. package/dist/assets/text-field.css +1 -0
  13. package/dist/assets/text.css +1 -0
  14. package/dist/clsx-DB4S2d7J.js +22 -0
  15. package/dist/components/button/button.d.ts +24 -0
  16. package/dist/components/button/button.js +95 -0
  17. package/dist/components/button/index.d.ts +2 -0
  18. package/dist/components/button/index.js +4 -0
  19. package/dist/components/field-error-text/field-error-text.d.ts +8 -0
  20. package/dist/components/field-error-text/field-error-text.js +28 -0
  21. package/dist/components/field-error-text/index.d.ts +2 -0
  22. package/dist/components/field-error-text/index.js +4 -0
  23. package/dist/components/helper-text/helper-text.d.ts +5 -0
  24. package/dist/components/helper-text/helper-text.js +20 -0
  25. package/dist/components/helper-text/index.d.ts +2 -0
  26. package/dist/components/helper-text/index.js +4 -0
  27. package/dist/components/icon/icon.d.ts +10 -0
  28. package/dist/components/icon/icon.js +27 -0
  29. package/dist/components/icon/index.d.ts +4 -0
  30. package/dist/components/icon/index.js +6 -0
  31. package/dist/components/index.d.ts +9 -0
  32. package/dist/components/index.js +23 -0
  33. package/dist/components/input/index.d.ts +2 -0
  34. package/dist/components/input/index.js +5 -0
  35. package/dist/components/input/input.d.ts +53 -0
  36. package/dist/components/input/input.js +82 -0
  37. package/dist/components/label/index.d.ts +2 -0
  38. package/dist/components/label/index.js +4 -0
  39. package/dist/components/label/label.d.ts +9 -0
  40. package/dist/components/label/label.js +61 -0
  41. package/dist/components/spinner/index.d.ts +1 -0
  42. package/dist/components/spinner/index.js +4 -0
  43. package/dist/components/spinner/spinner.d.ts +26 -0
  44. package/dist/components/spinner/spinner.js +50 -0
  45. package/dist/components/text/index.d.ts +2 -0
  46. package/dist/components/text/index.js +4 -0
  47. package/dist/components/text/text.d.ts +33 -0
  48. package/dist/components/text/text.js +51 -0
  49. package/dist/components/text-field/index.d.ts +2 -0
  50. package/dist/components/text-field/index.js +4 -0
  51. package/dist/components/text-field/text-field.d.ts +101 -0
  52. package/dist/components/text-field/text-field.js +141 -0
  53. package/dist/icons/name.d.js +1 -0
  54. package/dist/icons/name.d.ts +2 -0
  55. package/dist/icons/name.js +283 -0
  56. package/dist/index-TI1xsy6a.js +70 -0
  57. package/dist/main.d.ts +2 -0
  58. package/dist/main.js +38 -0
  59. package/dist/teams/business/index.d.ts +0 -0
  60. package/dist/teams/business/index.js +1 -0
  61. package/dist/teams/index.d.ts +0 -0
  62. package/dist/teams/index.js +1 -0
  63. package/dist/teams/min-side/index.d.ts +0 -0
  64. package/dist/teams/min-side/index.js +1 -0
  65. package/dist/teams/webshop/index.d.ts +0 -0
  66. package/dist/teams/webshop/index.js +1 -0
  67. package/dist/tokens/border/variables.d.ts +9 -0
  68. package/dist/tokens/border/variables.js +12 -0
  69. package/dist/tokens/breakpoint/variables.d.ts +4 -0
  70. package/dist/tokens/breakpoint/variables.js +7 -0
  71. package/dist/tokens/color/variables.d.ts +226 -0
  72. package/dist/tokens/color/variables.js +229 -0
  73. package/dist/tokens/index.d.ts +7 -0
  74. package/dist/tokens/index.js +16 -0
  75. package/dist/tokens/motion/variables.d.ts +11 -0
  76. package/dist/tokens/motion/variables.js +14 -0
  77. package/dist/tokens/shadow/variables.d.ts +4 -0
  78. package/dist/tokens/shadow/variables.js +7 -0
  79. package/dist/tokens/spacing/variables.d.ts +23 -0
  80. package/dist/tokens/spacing/variables.js +26 -0
  81. package/dist/tokens/typography/variables.d.ts +24 -0
  82. package/dist/tokens/typography/variables.js +27 -0
  83. package/dist/utils/action.d.ts +36 -0
  84. package/dist/utils/action.js +18 -0
  85. package/dist/variables-BKiPmtHY.js +458 -0
  86. package/dist/variables-BkY5b0io.js +14 -0
  87. package/dist/variables-Bq0YUbLS.js +14 -0
  88. package/dist/variables-CDK515QX.js +52 -0
  89. package/dist/variables-CMRTN8qo.js +28 -0
  90. package/dist/variables-Dmoh9YtD.js +54 -0
  91. package/dist/variables-IczXZ5CN.js +24 -0
  92. package/dist/vite-env.d.js +1 -0
  93. 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": "![Teddy - Telia Norway's Design System](/other/stories/assets/teddy200.png)",
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
+ }