@tsed/tailwind-formio 2.3.2 → 2.3.3

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.
@@ -10,7 +10,7 @@ declare namespace _default {
10
10
  }
11
11
  }
12
12
  export default _default;
13
- export function Sandbox(args: any): React.JSX.Element;
13
+ export function Sandbox(): React.JSX.Element;
14
14
  export namespace Sandbox {
15
15
  const args: {};
16
16
  }
@@ -10,7 +10,7 @@ declare namespace _default {
10
10
  }
11
11
  }
12
12
  export default _default;
13
- export function Sandbox(args: any): React.JSX.Element;
13
+ export function Sandbox(): React.JSX.Element;
14
14
  export namespace Sandbox {
15
15
  const args: {};
16
16
  }
@@ -10,7 +10,7 @@ declare namespace _default {
10
10
  }
11
11
  }
12
12
  export default _default;
13
- export function Sandbox(args: any): React.JSX.Element;
13
+ export function Sandbox(): React.JSX.Element;
14
14
  export namespace Sandbox {
15
15
  const args: {};
16
16
  }
@@ -10,11 +10,11 @@ declare namespace _default {
10
10
  }
11
11
  }
12
12
  export default _default;
13
- export function Sandbox(args: any): React.JSX.Element;
13
+ export function Sandbox(): React.JSX.Element;
14
14
  export namespace Sandbox {
15
15
  const args: {};
16
16
  }
17
- export function ButtonWithIcon(args: any): React.JSX.Element;
17
+ export function ButtonWithIcon(): React.JSX.Element;
18
18
  export namespace ButtonWithIcon {
19
19
  const args_1: {};
20
20
  export { args_1 as args };
package/package.json CHANGED
@@ -1,22 +1,28 @@
1
1
  {
2
2
  "name": "@tsed/tailwind-formio",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Tailwind templates for form.io forms.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.modern.js",
7
7
  "source": "src/index.ts",
8
8
  "type": "commonjs",
9
+ "exports": {
10
+ ".": {
11
+ "tsed-source": "./src/index.ts",
12
+ "import": "./dist/index.modern.js",
13
+ "require": "./dist/index.js",
14
+ "default": "./dist/index.modern.js"
15
+ }
16
+ },
9
17
  "scripts": {
10
- "lint": "eslint \"**/*.{js,jsx,ts,tsx}\"",
11
- "lint:fix": "yarn lint --fix",
12
18
  "watch": "nodemon --watch ./src --ext ts,js,ejs --exec \"yarn build\"",
13
19
  "build:templates": "gulp templates",
14
20
  "build:source": "microbundle --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment --globals react/jsx-runtime=jsx",
15
21
  "build": "gulp templates && yarn build:source"
16
22
  },
17
23
  "devDependencies": {
18
- "@tsed/config": "2.3.2",
19
- "@tsed/tailwind": "2.3.2",
24
+ "@tsed/config": "2.3.3",
25
+ "@tsed/tailwind": "2.3.3",
20
26
  "cross-env": "7.0.3",
21
27
  "gulp": "^4.0.2",
22
28
  "gulp-insert": "^0.5.0",
@@ -12,7 +12,7 @@ export default {
12
12
  }
13
13
  };
14
14
 
15
- export const Sandbox = (args) => {
15
+ export const Sandbox = () => {
16
16
  return (
17
17
  <div>
18
18
  <div className='alert alert-primary' role='alert'>
@@ -12,7 +12,7 @@ export default {
12
12
  }
13
13
  };
14
14
 
15
- export const Sandbox = (args) => {
15
+ export const Sandbox = () => {
16
16
  return (
17
17
  <div>
18
18
  <span className='badge bg-primary text-white mx-1'>Primary</span>
@@ -39,6 +39,7 @@ export const Sandbox = (args) => {
39
39
  <nav aria-label='breadcrumb'>
40
40
  <ol className={"breadcrumb bg-" + args.bgColor}>
41
41
  <li className='breadcrumb-item'>
42
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
42
43
  <a href='#'>Home</a>
43
44
  </li>
44
45
  <li className='breadcrumb-item active' aria-current='page'>
@@ -50,9 +51,11 @@ export const Sandbox = (args) => {
50
51
  <nav aria-label='breadcrumb'>
51
52
  <ol className={"breadcrumb bg-" + args.bgColor}>
52
53
  <li className='breadcrumb-item'>
54
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
53
55
  <a href='#'>Home</a>
54
56
  </li>
55
57
  <li className='breadcrumb-item'>
58
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
56
59
  <a href='#'>Library</a>
57
60
  </li>
58
61
  <li className='breadcrumb-item active' aria-current='page'>
@@ -12,32 +12,37 @@ export default {
12
12
  }
13
13
  };
14
14
 
15
- export const Sandbox = (args) => {
15
+ export const Sandbox = () => {
16
16
  return (
17
17
  <div>
18
18
  <nav aria-label='...'>
19
19
  <ul className='pagination'>
20
20
  <li className='page-item disabled'>
21
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
21
22
  <a className='page-link' href='#' tabIndex='-1' aria-disabled='true'>
22
23
  Previous
23
24
  </a>
24
25
  </li>
25
26
  <li className='page-item'>
27
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
26
28
  <a className='page-link' href='#'>
27
29
  1
28
30
  </a>
29
31
  </li>
30
32
  <li className='page-item active' aria-current='page'>
33
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
31
34
  <a className='page-link' href='#'>
32
35
  2
33
36
  </a>
34
37
  </li>
35
38
  <li className='page-item'>
39
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
36
40
  <a className='page-link' href='#'>
37
41
  3
38
42
  </a>
39
43
  </li>
40
44
  <li className='page-item'>
45
+ {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
41
46
  <a className='page-link' href='#'>
42
47
  Next
43
48
  </a>
@@ -12,7 +12,7 @@ export default {
12
12
  }
13
13
  };
14
14
 
15
- export const Sandbox = (args) => {
15
+ export const Sandbox = () => {
16
16
  return (
17
17
  <div>
18
18
  <div className={"mb-5"}>
@@ -74,7 +74,7 @@ export const Sandbox = (args) => {
74
74
 
75
75
  Sandbox.args = {};
76
76
 
77
- export const ButtonWithIcon = (args) => {
77
+ export const ButtonWithIcon = () => {
78
78
  return (
79
79
  <div>
80
80
  <div className={"mb-5"}>
@@ -71,7 +71,6 @@ export default {
71
71
  }
72
72
  switch (type) {
73
73
  case "class":
74
- // eslint-disable-next-line no-prototype-builtins
75
74
  return this.cssClasses.hasOwnProperty(text.toString()) ? (this.cssClasses as any)[text.toString()] : text;
76
75
  }
77
76
  return text;