@tsed/tailwind-formio 2.1.2 → 2.2.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.
- package/dist/index.js +148 -148
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +149 -149
- package/dist/index.modern.js.map +1 -1
- package/dist/templates/stories/alert.stories.d.ts +2 -1
- package/dist/templates/stories/badge.stories.d.ts +2 -1
- package/dist/templates/stories/breadcrumbs.stories.d.ts +2 -1
- package/dist/templates/stories/builder.stories.d.ts +3 -2
- package/dist/templates/stories/pagination.stories.d.ts +2 -1
- package/dist/templates/stories/progress.stories.d.ts +2 -1
- package/dist/templates/stories/wizard.stories.d.ts +3 -2
- package/dist/templates/tailwind/button/button.stories.d.ts +3 -2
- package/dist/templates/tailwind/iconClass.d.ts +1 -1
- package/package.json +4 -29
- package/readme.md +17 -0
- package/styles/button.css +1 -1
- package/styles/nav.css +2 -2
- package/webpack.config.js +0 -14
|
@@ -10,7 +10,8 @@ declare namespace _default {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export default _default;
|
|
13
|
-
export function Sandbox(args: any): JSX.Element;
|
|
13
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
14
14
|
export namespace Sandbox {
|
|
15
15
|
const args: {};
|
|
16
16
|
}
|
|
17
|
+
import React from "react";
|
|
@@ -10,7 +10,8 @@ declare namespace _default {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export default _default;
|
|
13
|
-
export function Sandbox(args: any): JSX.Element;
|
|
13
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
14
14
|
export namespace Sandbox {
|
|
15
15
|
const args: {};
|
|
16
16
|
}
|
|
17
|
+
import React from "react";
|
|
@@ -25,7 +25,7 @@ declare namespace _default {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
export default _default;
|
|
28
|
-
export function Sandbox(args: any): JSX.Element;
|
|
28
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
29
29
|
export namespace Sandbox {
|
|
30
30
|
namespace args {
|
|
31
31
|
const width_1: string;
|
|
@@ -34,3 +34,4 @@ export namespace Sandbox {
|
|
|
34
34
|
export { bgColor_1 as bgColor };
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
import React from "react";
|
|
@@ -44,7 +44,7 @@ declare namespace _default {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
export default _default;
|
|
47
|
-
export function Sandbox(args: any): JSX.Element;
|
|
47
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
48
48
|
export namespace Sandbox {
|
|
49
49
|
namespace args {
|
|
50
50
|
export namespace form_1 {
|
|
@@ -3053,4 +3053,5 @@ export namespace Sandbox {
|
|
|
3053
3053
|
declare function WrapperFormBuilder({ options, form }: {
|
|
3054
3054
|
options: any;
|
|
3055
3055
|
form: any;
|
|
3056
|
-
}): JSX.Element;
|
|
3056
|
+
}): React.JSX.Element;
|
|
3057
|
+
import React from "react";
|
|
@@ -10,7 +10,8 @@ declare namespace _default {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export default _default;
|
|
13
|
-
export function Sandbox(args: any): JSX.Element;
|
|
13
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
14
14
|
export namespace Sandbox {
|
|
15
15
|
const args: {};
|
|
16
16
|
}
|
|
17
|
+
import React from "react";
|
|
@@ -12,10 +12,11 @@ declare namespace _default {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export default _default;
|
|
15
|
-
export function Sandbox(args: any): JSX.Element;
|
|
15
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
16
16
|
export namespace Sandbox {
|
|
17
17
|
namespace args {
|
|
18
18
|
const width_1: string;
|
|
19
19
|
export { width_1 as width };
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
import React from "react";
|
|
@@ -44,7 +44,7 @@ declare namespace _default {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
export default _default;
|
|
47
|
-
export function Sandbox(args: any): JSX.Element;
|
|
47
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
48
48
|
export namespace Sandbox {
|
|
49
49
|
namespace args {
|
|
50
50
|
export namespace form_1 {
|
|
@@ -3053,4 +3053,5 @@ export namespace Sandbox {
|
|
|
3053
3053
|
declare function WrapperFormBuilder({ options, form }: {
|
|
3054
3054
|
options: any;
|
|
3055
3055
|
form: any;
|
|
3056
|
-
}): JSX.Element;
|
|
3056
|
+
}): React.JSX.Element;
|
|
3057
|
+
import React from "react";
|
|
@@ -10,12 +10,13 @@ declare namespace _default {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
export default _default;
|
|
13
|
-
export function Sandbox(args: any): JSX.Element;
|
|
13
|
+
export function Sandbox(args: any): React.JSX.Element;
|
|
14
14
|
export namespace Sandbox {
|
|
15
15
|
const args: {};
|
|
16
16
|
}
|
|
17
|
-
export function ButtonWithIcon(args: any): JSX.Element;
|
|
17
|
+
export function ButtonWithIcon(args: any): React.JSX.Element;
|
|
18
18
|
export namespace ButtonWithIcon {
|
|
19
19
|
const args_1: {};
|
|
20
20
|
export { args_1 as args };
|
|
21
21
|
}
|
|
22
|
+
import React from "react";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ICONS: Record<string, any>;
|
|
2
|
-
declare const _default: (iconset: string | undefined, name: string, spinning?: boolean
|
|
2
|
+
declare const _default: (iconset: string | undefined, name: string, spinning?: boolean) => string;
|
|
3
3
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/tailwind-formio",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "Tailwind templates for form.io forms.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.modern.js",
|
|
@@ -8,45 +8,20 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\"",
|
|
10
10
|
"lint:fix": "yarn lint --fix",
|
|
11
|
-
"start:storybook": "start-storybook -p 6006",
|
|
12
|
-
"build:storybook": "build-storybook -c ../tailwind-formio/.storybook -o .out",
|
|
13
|
-
"serve": "serve .out",
|
|
14
11
|
"watch": "nodemon --watch ./src --ext ts,js,ejs --exec \"yarn build\"",
|
|
15
12
|
"build:templates": "gulp templates",
|
|
16
13
|
"build:source": "microbundle --no-compress --format modern,cjs --jsx React.createElement --jsxFragment React.Fragment --globals react/jsx-runtime=jsx",
|
|
17
14
|
"build": "gulp templates && yarn build:source"
|
|
18
15
|
},
|
|
19
16
|
"devDependencies": {
|
|
20
|
-
"@
|
|
21
|
-
"@
|
|
22
|
-
"@storybook/addon-actions": "6.5.16",
|
|
23
|
-
"@storybook/addon-docs": "6.5.16",
|
|
24
|
-
"@storybook/addon-essentials": "6.5.16",
|
|
25
|
-
"@storybook/addon-links": "6.5.16",
|
|
26
|
-
"@storybook/addon-postcss": "^2.0.0",
|
|
27
|
-
"@storybook/addon-viewport": "6.5.16",
|
|
28
|
-
"@storybook/addons": "6.5.16",
|
|
29
|
-
"@storybook/builder-vite": "0.4.2",
|
|
30
|
-
"@storybook/react": "6.5.16",
|
|
31
|
-
"@svgr/webpack": "6.5.1",
|
|
32
|
-
"@tsed/config": "2.1.2",
|
|
33
|
-
"@tsed/tailwind": "2.1.2",
|
|
34
|
-
"@tsed/yarn-workspaces": "1.19.3",
|
|
35
|
-
"@vitejs/plugin-react": "4.0.0",
|
|
36
|
-
"babel-loader": "^8.2.5",
|
|
17
|
+
"@tsed/config": "2.2.0",
|
|
18
|
+
"@tsed/tailwind": "2.2.0",
|
|
37
19
|
"cross-env": "7.0.3",
|
|
38
20
|
"gulp": "^4.0.2",
|
|
39
21
|
"gulp-insert": "^0.5.0",
|
|
40
22
|
"gulp-rename": "^2.0.0",
|
|
41
23
|
"gulp-template": "^5.0.0",
|
|
42
|
-
"nodemon": "2.0.20"
|
|
43
|
-
"react-svg": "10.0.23",
|
|
44
|
-
"serve": "^13.0.4",
|
|
45
|
-
"url-loader": "4.1.1",
|
|
46
|
-
"vite": "^4.3.5",
|
|
47
|
-
"vite-plugin-svgr": "^2.4.0",
|
|
48
|
-
"webpack": "4.44.2",
|
|
49
|
-
"webpack-cli": "4.9.2"
|
|
24
|
+
"nodemon": "2.0.20"
|
|
50
25
|
},
|
|
51
26
|
"browserslist": {
|
|
52
27
|
"production": [
|
package/readme.md
CHANGED
|
@@ -56,6 +56,18 @@ module.exports = {
|
|
|
56
56
|
}
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
+
Or:
|
|
60
|
+
|
|
61
|
+
```diff
|
|
62
|
+
export default {
|
|
63
|
+
plugins: {
|
|
64
|
+
'tailwindcss/nesting': {},
|
|
65
|
+
tailwindcss: {},
|
|
66
|
+
autoprefixer: {},
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
59
71
|
### Configure tailwind
|
|
60
72
|
|
|
61
73
|
Generate the initial `tailwind.config.js` with the following command:
|
|
@@ -214,6 +226,11 @@ module.exports = {
|
|
|
214
226
|
2: "2 2 0%",
|
|
215
227
|
3: "3 3 0%"
|
|
216
228
|
}
|
|
229
|
+
},
|
|
230
|
+
outline: {
|
|
231
|
+
none: ["2px solid transparent", "2px"],
|
|
232
|
+
white: ["2px dotted white", "2px"],
|
|
233
|
+
black: ["2px dotted black", "2px"]
|
|
217
234
|
}
|
|
218
235
|
},
|
|
219
236
|
variants: {
|
package/styles/button.css
CHANGED
package/styles/nav.css
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&-link {
|
|
27
|
-
@apply relative
|
|
27
|
+
@apply relative inline-flex flex-col items-stretch overflow-hidden text-xs transition-colors;
|
|
28
28
|
@apply bg-transparent border-transparent text-gray-darker;
|
|
29
29
|
@apply cursor-pointer border-1 border-solid rounded-none border-b-0 relative;
|
|
30
30
|
@apply px-3 py-2;
|
|
@@ -39,4 +39,4 @@
|
|
|
39
39
|
.card-body {
|
|
40
40
|
@apply p-3;
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
package/webpack.config.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
entry: path.join(path.resolve(__dirname, "lib"), "index.js"),
|
|
6
|
-
output: {
|
|
7
|
-
library: "tailwind",
|
|
8
|
-
libraryTarget: "umd",
|
|
9
|
-
path: path.resolve(__dirname, "dist"),
|
|
10
|
-
filename: "tailwind.js"
|
|
11
|
-
},
|
|
12
|
-
mode: "production",
|
|
13
|
-
performance: { hints: false }
|
|
14
|
-
};
|