@tsed/tailwind-formio 1.15.0 → 2.0.0

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.
@@ -1,54 +1,3 @@
1
- export declare const ICONS: {
2
- remove: string;
3
- "question-sign": string;
4
- "new-window": string;
5
- "minus-square-o": string;
6
- cog: string;
7
- move: string;
8
- wrench: string;
9
- save: string;
10
- copy: string;
11
- calendar: string;
12
- file: string;
13
- wpforms: string;
14
- "files-o": string;
15
- refresh: string;
16
- indent: string;
17
- tasks: string;
18
- th: string;
19
- "th-list": string;
20
- "folder-open": string;
21
- "folder-o": string;
22
- "user-secret": string;
23
- table: string;
24
- pencil: string;
25
- code: string;
26
- terminal: string;
27
- home: string;
28
- html5: string;
29
- list: string;
30
- usd: string;
31
- hashtag: string;
32
- tags: string;
33
- at: string;
34
- font: string;
35
- asterisk: string;
36
- plus: string;
37
- "plus-square": string;
38
- "plus-square-o": string;
39
- "dot-circle-o": string;
40
- "phone-square": string;
41
- "clock-o": string;
42
- link: string;
43
- columns: string;
44
- "th-large": string;
45
- "list-alt": string;
46
- "square-o": string;
47
- cubes: string;
48
- stop: string;
49
- "check-square": string;
50
- "remove-circle": string;
51
- bars: string;
52
- };
1
+ export declare const ICONS: Record<string, any>;
53
2
  declare const _default: (iconset: string | undefined, name: string, spinning?: boolean) => string;
54
3
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/tailwind-formio",
3
- "version": "1.15.0",
3
+ "version": "2.0.0",
4
4
  "description": "Tailwind templates for form.io forms.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "@storybook/addons": "6.5.9",
26
26
  "@storybook/react": "6.5.9",
27
27
  "@svgr/webpack": "6.5.1",
28
- "@tsed/config": "1.15.0",
29
- "@tsed/tailwind": "1.15.0",
28
+ "@tsed/config": "2.0.0",
29
+ "@tsed/tailwind": "2.0.0",
30
30
  "@tsed/yarn-workspaces": "1.19.3",
31
31
  "babel-loader": "8.2.2",
32
32
  "cross-env": "7.0.3",
@@ -1,4 +1,4 @@
1
- export const ICONS = {
1
+ export const ICONS: Record<string, any> = {
2
2
  remove: "bxs-trash",
3
3
  "question-sign":
4
4
  "bx-question-mark inline-block border-1 bg-gray-400 border-solid border-gray-400 text-white text-xxs rounded-full mx-2 mt-px",
@@ -71,7 +71,7 @@ export default {
71
71
  switch (type) {
72
72
  case "class":
73
73
  // eslint-disable-next-line no-prototype-builtins
74
- return this.cssClasses.hasOwnProperty(text.toString()) ? this.cssClasses[text.toString()] : text;
74
+ return this.cssClasses.hasOwnProperty(text.toString()) ? (this.cssClasses as any)[text.toString()] : text;
75
75
  }
76
76
  return text;
77
77
  },
package/tsconfig.json CHANGED
@@ -14,7 +14,6 @@
14
14
  "noImplicitReturns": true,
15
15
  "noImplicitThis": true,
16
16
  "strictNullChecks": false,
17
- "suppressImplicitAnyIndexErrors": true,
18
17
  "noUnusedLocals": true,
19
18
  "noUnusedParameters": false,
20
19
  "skipLibCheck": true,