tuix-webcomponents 0.0.3 → 0.0.4

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tuix-webcomponents following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tuix-webcomponents",
6
- "version": "0.0.3",
6
+ "version": "0.0.4",
7
7
  "type": "commonjs",
8
8
  "main": "src/index.js",
9
9
  "module": "src/index.js",
@@ -11,8 +11,8 @@
11
11
  ".": "./src/index.js"
12
12
  },
13
13
  "files": [
14
- "dist/**/*.{js,json}",
15
- "!dist"
14
+ "src/**/*.{js,json}",
15
+ "!dist/**"
16
16
  ],
17
17
  "scripts": {
18
18
  "prepare": "husky install",
package/dist/package.json DELETED
@@ -1,93 +0,0 @@
1
- {
2
- "name": "tuix-webcomponents",
3
- "description": "Webcomponent tuix-webcomponents following open-wc recommendations",
4
- "license": "MIT",
5
- "author": "tuix-webcomponents",
6
- "version": "0.0.1",
7
- "type": "commonjs",
8
- "main": "src/index.js",
9
- "module": "src/index.js",
10
- "exports": {
11
- ".": "./src/index.js"
12
- },
13
- "files": ["dist/**/*"],
14
- "scripts": {
15
- "prepare": "husky install",
16
- "analyze": "cem analyze --litelement",
17
- "start": "rm -rf dist && tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
18
- "build": "rm -rf dist && tsc && cp package.json dist && npm run analyze -- --exclude dist",
19
- "prepublish": "tsc && npm run analyze -- --exclude dist",
20
- "lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
21
- "format": "prettier --write \"src/**/*.ts\" \"stories/**/*.ts\"",
22
- "format:check": "prettier --check \"src/**/*.ts\" \"stories/**/*.ts\"",
23
- "storybook": "rm -rf dist && tsc && npm run analyze -- --exclude dist && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds -c .storybook/server.mjs\"",
24
- "storybook:build": "rm -rf dist && tsc && npm run analyze -- --exclude dist && build-storybook"
25
- },
26
- "devDependencies": {
27
- "@commitlint/cli": "^17.6.1",
28
- "@commitlint/config-conventional": "^17.6.1",
29
- "@custom-elements-manifest/analyzer": "^0.8.0",
30
- "@open-wc/eslint-config": "^10.0.0",
31
- "@typescript-eslint/eslint-plugin": "^5.59.0",
32
- "@typescript-eslint/parser": "^5.59.0",
33
- "@web/dev-server": "^0.1.38",
34
- "@web/dev-server-storybook": "^0.6.2",
35
- "commitlint": "^17.6.1",
36
- "concurrently": "^8.0.1",
37
- "eslint": "^8.38.0",
38
- "eslint-config-prettier": "^8.8.0",
39
- "husky": "^8.0.3",
40
- "lint-staged": "^13.2.1",
41
- "prettier": "^2.8.7",
42
- "tslib": "^2.5.0",
43
- "typescript": "^5.0.4"
44
- },
45
- "customElements": "custom-elements.json",
46
- "eslintConfig": {
47
- "parser": "@typescript-eslint/parser",
48
- "extends": [
49
- "@open-wc",
50
- "prettier"
51
- ],
52
- "plugins": [
53
- "@typescript-eslint"
54
- ],
55
- "rules": {
56
- "no-unused-vars": "off",
57
- "@typescript-eslint/no-unused-vars": [
58
- "error"
59
- ],
60
- "import/no-unresolved": "off",
61
- "import/extensions": [
62
- "error",
63
- "always",
64
- {
65
- "ignorePackages": true
66
- }
67
- ]
68
- }
69
- },
70
- "prettier": {
71
- "singleQuote": true,
72
- "arrowParens": "avoid"
73
- },
74
- "husky": {
75
- "hooks": {
76
- "pre-commit": "lint-staged"
77
- }
78
- },
79
- "lint-staged": {
80
- "*.{ts,tsx}": [
81
- "npm run format",
82
- "npm run lint"
83
- ]
84
- },
85
- "commitlint": {
86
- "extends": [
87
- "@commitlint/config-conventional"
88
- ]
89
- },
90
- "dependencies": {
91
- "lit": "^2.7.2"
92
- }
93
- }
@@ -1,29 +0,0 @@
1
- /* eslint-disable */
2
- export var TextSize;
3
- (function (TextSize) {
4
- TextSize["XL"] = "xl";
5
- TextSize["L"] = "l";
6
- TextSize["M"] = "m";
7
- TextSize["S"] = "s";
8
- TextSize["XS"] = "xs";
9
- })(TextSize || (TextSize = {}));
10
- export var TextColor;
11
- (function (TextColor) {
12
- TextColor["Primary"] = "primary";
13
- TextColor["Secondary"] = "secondary";
14
- TextColor["Grey"] = "grey";
15
- TextColor["LightGrey"] = "lightGrey";
16
- TextColor["Disabled"] = "disabled";
17
- TextColor["Validation"] = "validation";
18
- TextColor["Error"] = "error";
19
- TextColor["Success"] = "success";
20
- })(TextColor || (TextColor = {}));
21
- export var TextType;
22
- (function (TextType) {
23
- TextType["Headline"] = "headline";
24
- TextType["Body"] = "body";
25
- TextType["Button"] = "button_link";
26
- TextType["Link"] = "button_link";
27
- TextType["Fields"] = "fields";
28
- })(TextType || (TextType = {}));
29
- //# sourceMappingURL=tuix-text.enums.js.map
package/dist/src/index.js DELETED
@@ -1,2 +0,0 @@
1
- export { TuixText } from './tuix-text/TuixText.js';
2
- //# sourceMappingURL=index.js.map
@@ -1,152 +0,0 @@
1
- import { __decorate } from "tslib";
2
- import { html, css, LitElement } from 'lit';
3
- import { styleMap } from 'lit/directives/style-map.js';
4
- import { customElement, property } from 'lit/decorators.js';
5
- import { TextType, TextColor } from '../enums/tuix-text.enums.js';
6
- import { ColorText } from '../utils/colors.js';
7
- let TuixText = class TuixText extends LitElement {
8
- getTextClass() {
9
- return `${this.type} ${this.size}`;
10
- }
11
- render() {
12
- return html `<slot
13
- class="text ${this.getTextClass()}"
14
- style="${styleMap({ color: ColorText[this.color || TextColor.Primary] })}"
15
- ></slot>`;
16
- }
17
- };
18
- TuixText.styles = css `
19
- .text {
20
- font-family: 'Rubik', sans-serif;
21
- }
22
-
23
- .text.headline.xl {
24
- font-size: 4rem;
25
- font-weight: 600;
26
- line-height: 4.4rem;
27
- }
28
-
29
- .text.headline.l {
30
- font-size: 3.5rem;
31
- font-weight: 600;
32
- line-height: 4.2rem;
33
- }
34
-
35
- .text.headline.m {
36
- font-size: 2.25rem;
37
- font-weight: 500;
38
- line-height: 2.7rem;
39
- }
40
-
41
- .text.headline.s {
42
- font-size: 1.5rem;
43
- font-weight: 500;
44
- line-height: 1.8rem;
45
- }
46
-
47
- .text.headline.xs {
48
- font-size: 1.125rem;
49
- font-weight: 500;
50
- line-height: 1.35;
51
- }
52
-
53
- .text.body.m {
54
- font-size: 1rem;
55
- font-weight: 300;
56
- line-height: 1.4rem;
57
- }
58
-
59
- .text.body.s {
60
- font-size: 0.875rem;
61
- font-weight: 300;
62
- line-height: 1.225rem;
63
- }
64
-
65
- .text.button_link.xl {
66
- font-size: 1.25rem;
67
- font-weight: 400;
68
- line-height: 1.5rem;
69
- }
70
-
71
- .text.button_link.l {
72
- font-size: 1.25rem;
73
- font-weight: 400;
74
- line-height: 1.5rem;
75
- }
76
-
77
- @media only screen and (max-width: 40rem) {
78
- .text.button_link.m {
79
- font-size: 1rem;
80
- font-weight: 400;
81
- line-height: 1.25rem;
82
- }
83
-
84
- .text.body.m {
85
- line-height: 1.3rem;
86
- }
87
-
88
- .text.body.s {
89
- line-height: 1.1375rem;
90
- }
91
-
92
- .text.headline.xl {
93
- font-size: 3rem;
94
- line-height: 3.3rem;
95
- }
96
- .text.headline.l {
97
- font-size: 2rem;
98
- line-height: 2.4rem;
99
- }
100
- .text.headline.m {
101
- font-size: 1.5rem;
102
- line-height: 1.8rem;
103
- }
104
- .text.headline.s {
105
- font-size: 1.125rem;
106
- line-height: 1.35rem;
107
- }
108
- .text.headline.xs {
109
- font-size: 1rem;
110
- line-height: 1.2rem;
111
- }
112
- }
113
-
114
- @media only screen and (max-width: 20rem) {
115
- .text.button_link.s {
116
- font-size: 0.875rem;
117
- font-weight: 400;
118
- line-height: 1rem;
119
- }
120
- .text.button_link.xs {
121
- font-size: 0.875rem;
122
- font-weight: 400;
123
- line-height: 1rem;
124
- }
125
- .text.headline.xl {
126
- font-size: 1.5rem;
127
- line-height: 1.8rem;
128
- }
129
- .text.headline.l {
130
- font-size: 1.375rem;
131
- line-height: 1.65rem;
132
- }
133
- .text.headline.m {
134
- font-size: 1.25rem;
135
- line-height: 1.5rem;
136
- }
137
- }
138
- `;
139
- __decorate([
140
- property({ type: String })
141
- ], TuixText.prototype, "size", void 0);
142
- __decorate([
143
- property({ type: TextColor })
144
- ], TuixText.prototype, "color", void 0);
145
- __decorate([
146
- property({ type: TextType })
147
- ], TuixText.prototype, "type", void 0);
148
- TuixText = __decorate([
149
- customElement('tuix-text')
150
- ], TuixText);
151
- export { TuixText };
152
- //# sourceMappingURL=TuixText.js.map
@@ -1,11 +0,0 @@
1
- export const ColorText = {
2
- primary: '#000000',
3
- secondary: '#FFFFFF',
4
- grey: '#8A8894',
5
- lightGrey: '#C9C8D3',
6
- disabled: '#BEC0DA',
7
- validation: '#FFB82E',
8
- error: '#F93232',
9
- success: '#439F6E',
10
- };
11
- //# sourceMappingURL=colors.js.map