@tsed/tailwind-formio 2.0.1 → 2.0.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.
- package/dist/tailwind.js +1 -1
- package/lib/index.js +3 -5
- package/lib/templates/index.js +3 -5
- package/lib/templates/stories/alert.stories.js +23 -0
- package/lib/templates/stories/badge.stories.js +23 -0
- package/lib/templates/stories/breadcrumbs.stories.js +37 -0
- package/lib/templates/stories/builder.stories.js +1905 -0
- package/lib/templates/stories/pagination.stories.js +20 -0
- package/lib/templates/stories/progress.stories.js +20 -0
- package/lib/templates/stories/wizard.stories.js +1905 -0
- package/lib/templates/tailwind/address/index.js +2 -4
- package/lib/templates/tailwind/alert/index.js +2 -4
- package/lib/templates/tailwind/builder/index.js +2 -4
- package/lib/templates/tailwind/builderComponent/index.js +2 -4
- package/lib/templates/tailwind/builderComponents/index.js +2 -4
- package/lib/templates/tailwind/builderEditForm/index.js +2 -4
- package/lib/templates/tailwind/builderPlaceholder/index.js +2 -4
- package/lib/templates/tailwind/builderSidebar/index.js +2 -4
- package/lib/templates/tailwind/builderSidebarGroup/index.js +2 -4
- package/lib/templates/tailwind/builderWizard/index.js +2 -4
- package/lib/templates/tailwind/button/button.stories.js +36 -0
- package/lib/templates/tailwind/button/index.js +3 -5
- package/lib/templates/tailwind/checkbox/index.js +3 -5
- package/lib/templates/tailwind/columns/index.js +2 -4
- package/lib/templates/tailwind/component/index.js +2 -4
- package/lib/templates/tailwind/componentModal/index.js +2 -4
- package/lib/templates/tailwind/components/index.js +2 -4
- package/lib/templates/tailwind/container/index.js +2 -4
- package/lib/templates/tailwind/cssClasses.js +1 -3
- package/lib/templates/tailwind/datagrid/index.js +3 -5
- package/lib/templates/tailwind/day/index.js +2 -4
- package/lib/templates/tailwind/dialog/index.js +2 -4
- package/lib/templates/tailwind/editgrid/index.js +3 -5
- package/lib/templates/tailwind/editgridTable/index.js +3 -5
- package/lib/templates/tailwind/errorsList/index.js +2 -4
- package/lib/templates/tailwind/field/index.js +3 -5
- package/lib/templates/tailwind/fieldset/index.js +2 -4
- package/lib/templates/tailwind/file/index.js +2 -4
- package/lib/templates/tailwind/html/index.js +2 -4
- package/lib/templates/tailwind/icon/index.js +2 -4
- package/lib/templates/tailwind/iconClass.js +9 -12
- package/lib/templates/tailwind/index.js +133 -140
- package/lib/templates/tailwind/input/index.js +3 -5
- package/lib/templates/tailwind/label/index.js +2 -4
- package/lib/templates/tailwind/loader/index.js +2 -4
- package/lib/templates/tailwind/loading/index.js +2 -4
- package/lib/templates/tailwind/map/index.js +2 -4
- package/lib/templates/tailwind/message/index.js +2 -4
- package/lib/templates/tailwind/modalPreview/index.js +2 -4
- package/lib/templates/tailwind/modaldialog/index.js +2 -4
- package/lib/templates/tailwind/modaledit/index.js +2 -4
- package/lib/templates/tailwind/multiValueRow/index.js +2 -4
- package/lib/templates/tailwind/multiValueTable/index.js +2 -4
- package/lib/templates/tailwind/multipleMasksInput/index.js +2 -4
- package/lib/templates/tailwind/panel/index.js +2 -4
- package/lib/templates/tailwind/pdf/index.js +2 -4
- package/lib/templates/tailwind/pdfBuilder/index.js +2 -4
- package/lib/templates/tailwind/pdfBuilderUpload/index.js +2 -4
- package/lib/templates/tailwind/radio/index.js +3 -5
- package/lib/templates/tailwind/resourceAdd/index.js +2 -4
- package/lib/templates/tailwind/select/index.js +3 -5
- package/lib/templates/tailwind/selectOption/index.js +3 -5
- package/lib/templates/tailwind/signature/index.js +3 -5
- package/lib/templates/tailwind/survey/index.js +3 -5
- package/lib/templates/tailwind/tab/index.js +3 -5
- package/lib/templates/tailwind/table/index.js +2 -4
- package/lib/templates/tailwind/tableComponents/index.js +2 -4
- package/lib/templates/tailwind/tree/index.js +2 -4
- package/lib/templates/tailwind/tree/partials/index.js +5 -7
- package/lib/templates/tailwind/webform/index.js +3 -5
- package/lib/templates/tailwind/well/index.js +2 -4
- package/lib/templates/tailwind/wizard/index.js +3 -5
- package/lib/templates/tailwind/wizardHeader/index.js +2 -4
- package/lib/templates/tailwind/wizardHeaderClassic/index.js +2 -4
- package/lib/templates/tailwind/wizardHeaderVertical/index.js +2 -4
- package/lib/templates/tailwind/wizardNav/index.js +2 -4
- package/package.json +18 -12
- package/styles/checkbox.css +2 -2
- package/styles/form.css +1 -1
- package/tsconfig.json +8 -19
- package/tsconfig.node.json +8 -0
- package/lib/index.d.ts +0 -221
- package/lib/templates/index.d.ts +0 -218
- package/lib/templates/tailwind/address/index.d.ts +0 -4
- package/lib/templates/tailwind/alert/index.d.ts +0 -6
- package/lib/templates/tailwind/builder/index.d.ts +0 -4
- package/lib/templates/tailwind/builderComponent/index.d.ts +0 -4
- package/lib/templates/tailwind/builderComponents/index.d.ts +0 -4
- package/lib/templates/tailwind/builderEditForm/index.d.ts +0 -4
- package/lib/templates/tailwind/builderPlaceholder/index.d.ts +0 -4
- package/lib/templates/tailwind/builderSidebar/index.d.ts +0 -4
- package/lib/templates/tailwind/builderSidebarGroup/index.d.ts +0 -4
- package/lib/templates/tailwind/builderWizard/index.d.ts +0 -4
- package/lib/templates/tailwind/button/index.d.ts +0 -5
- package/lib/templates/tailwind/checkbox/index.d.ts +0 -5
- package/lib/templates/tailwind/columns/index.d.ts +0 -4
- package/lib/templates/tailwind/component/index.d.ts +0 -4
- package/lib/templates/tailwind/componentModal/index.d.ts +0 -4
- package/lib/templates/tailwind/components/index.d.ts +0 -4
- package/lib/templates/tailwind/container/index.d.ts +0 -4
- package/lib/templates/tailwind/cssClasses.d.ts +0 -7
- package/lib/templates/tailwind/datagrid/index.d.ts +0 -5
- package/lib/templates/tailwind/day/index.d.ts +0 -4
- package/lib/templates/tailwind/dialog/index.d.ts +0 -4
- package/lib/templates/tailwind/editgrid/index.d.ts +0 -5
- package/lib/templates/tailwind/editgridTable/index.d.ts +0 -5
- package/lib/templates/tailwind/errorsList/index.d.ts +0 -4
- package/lib/templates/tailwind/field/index.d.ts +0 -5
- package/lib/templates/tailwind/fieldset/index.d.ts +0 -4
- package/lib/templates/tailwind/file/index.d.ts +0 -4
- package/lib/templates/tailwind/html/index.d.ts +0 -4
- package/lib/templates/tailwind/icon/index.d.ts +0 -4
- package/lib/templates/tailwind/iconClass.d.ts +0 -3
- package/lib/templates/tailwind/index.d.ts +0 -216
- package/lib/templates/tailwind/input/index.d.ts +0 -5
- package/lib/templates/tailwind/label/index.d.ts +0 -4
- package/lib/templates/tailwind/loader/index.d.ts +0 -4
- package/lib/templates/tailwind/loading/index.d.ts +0 -4
- package/lib/templates/tailwind/map/index.d.ts +0 -4
- package/lib/templates/tailwind/message/index.d.ts +0 -4
- package/lib/templates/tailwind/modalPreview/index.d.ts +0 -4
- package/lib/templates/tailwind/modaldialog/index.d.ts +0 -4
- package/lib/templates/tailwind/modaledit/index.d.ts +0 -4
- package/lib/templates/tailwind/multiValueRow/index.d.ts +0 -4
- package/lib/templates/tailwind/multiValueTable/index.d.ts +0 -4
- package/lib/templates/tailwind/multipleMasksInput/index.d.ts +0 -4
- package/lib/templates/tailwind/panel/index.d.ts +0 -4
- package/lib/templates/tailwind/pdf/index.d.ts +0 -4
- package/lib/templates/tailwind/pdfBuilder/index.d.ts +0 -4
- package/lib/templates/tailwind/pdfBuilderUpload/index.d.ts +0 -4
- package/lib/templates/tailwind/radio/index.d.ts +0 -5
- package/lib/templates/tailwind/resourceAdd/index.d.ts +0 -4
- package/lib/templates/tailwind/select/index.d.ts +0 -5
- package/lib/templates/tailwind/selectOption/index.d.ts +0 -5
- package/lib/templates/tailwind/signature/index.d.ts +0 -5
- package/lib/templates/tailwind/survey/index.d.ts +0 -5
- package/lib/templates/tailwind/tab/index.d.ts +0 -5
- package/lib/templates/tailwind/table/index.d.ts +0 -4
- package/lib/templates/tailwind/tableComponents/index.d.ts +0 -4
- package/lib/templates/tailwind/tree/index.d.ts +0 -4
- package/lib/templates/tailwind/tree/partials/index.d.ts +0 -9
- package/lib/templates/tailwind/webform/index.d.ts +0 -5
- package/lib/templates/tailwind/well/index.d.ts +0 -4
- package/lib/templates/tailwind/wizard/index.d.ts +0 -5
- package/lib/templates/tailwind/wizardHeader/index.d.ts +0 -4
- package/lib/templates/tailwind/wizardHeaderClassic/index.d.ts +0 -4
- package/lib/templates/tailwind/wizardHeaderVertical/index.d.ts +0 -4
- package/lib/templates/tailwind/wizardNav/index.d.ts +0 -4
- /package/src/templates/tailwind/button/{button.stories.js → button.stories.jsx} +0 -0
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var html_ejs_1 = require("./html.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, html: html_ejs_1.default };
|
|
1
|
+
import form from "./form.ejs";
|
|
2
|
+
import html from "./html.ejs";
|
|
3
|
+
export default { form, html };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var form_ejs_1 = require("./form.ejs");
|
|
5
|
-
exports.default = { flat: flat_ejs_1.default, form: form_ejs_1.default };
|
|
1
|
+
import flat from "./flat.ejs";
|
|
2
|
+
import form from "./form.ejs";
|
|
3
|
+
export default { flat, form };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var view_ejs_1 = require("./view.ejs");
|
|
5
|
-
exports.default = {
|
|
1
|
+
import edit from "./edit.ejs";
|
|
2
|
+
import view from "./view.ejs";
|
|
3
|
+
export default {
|
|
6
4
|
treeView: {
|
|
7
|
-
form:
|
|
5
|
+
form: view
|
|
8
6
|
},
|
|
9
7
|
treeEdit: {
|
|
10
|
-
form:
|
|
8
|
+
form: edit
|
|
11
9
|
}
|
|
12
10
|
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var form_ejs_1 = require("./form.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, builder: builder_ejs_1.default };
|
|
1
|
+
import builder from "./builder.ejs";
|
|
2
|
+
import form from "./form.ejs";
|
|
3
|
+
export default { form, builder };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var form_ejs_1 = require("./form.ejs");
|
|
5
|
-
exports.default = { form: form_ejs_1.default, builder: builder_ejs_1.default };
|
|
1
|
+
import builder from "./builder.ejs";
|
|
2
|
+
import form from "./form.ejs";
|
|
3
|
+
export default { form, builder };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/tailwind-formio",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Tailwind templates for form.io forms.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -11,24 +11,28 @@
|
|
|
11
11
|
"build:storybook": "build-storybook -c ../tailwind-formio/.storybook -o .out",
|
|
12
12
|
"serve": "serve .out",
|
|
13
13
|
"watch": "nodemon --watch ./src --ext ts,js,ejs --exec \"yarn build\"",
|
|
14
|
+
"build:tsc": "tsc --noEmit false",
|
|
15
|
+
"build:templates": "gulp templates",
|
|
14
16
|
"build": "tsc --noEmit false && gulp templates && yarn webpack"
|
|
15
17
|
},
|
|
16
18
|
"devDependencies": {
|
|
17
|
-
"@babel/core": "^7.
|
|
19
|
+
"@babel/core": "^7.18.9",
|
|
18
20
|
"@sambego/storybook-state": "2.0.1",
|
|
19
|
-
"@storybook/addon-actions": "6.5.
|
|
20
|
-
"@storybook/addon-docs": "6.5.
|
|
21
|
-
"@storybook/addon-essentials": "6.5.
|
|
22
|
-
"@storybook/addon-links": "6.5.
|
|
21
|
+
"@storybook/addon-actions": "6.5.16",
|
|
22
|
+
"@storybook/addon-docs": "6.5.16",
|
|
23
|
+
"@storybook/addon-essentials": "6.5.16",
|
|
24
|
+
"@storybook/addon-links": "6.5.16",
|
|
23
25
|
"@storybook/addon-postcss": "^2.0.0",
|
|
24
|
-
"@storybook/addon-viewport": "
|
|
25
|
-
"@storybook/addons": "6.5.
|
|
26
|
-
"@storybook/
|
|
26
|
+
"@storybook/addon-viewport": "6.5.16",
|
|
27
|
+
"@storybook/addons": "6.5.16",
|
|
28
|
+
"@storybook/builder-vite": "0.4.2",
|
|
29
|
+
"@storybook/react": "6.5.16",
|
|
27
30
|
"@svgr/webpack": "6.5.1",
|
|
28
|
-
"@tsed/config": "2.0.
|
|
29
|
-
"@tsed/tailwind": "2.0.
|
|
31
|
+
"@tsed/config": "2.0.3",
|
|
32
|
+
"@tsed/tailwind": "2.0.3",
|
|
30
33
|
"@tsed/yarn-workspaces": "1.19.3",
|
|
31
|
-
"
|
|
34
|
+
"@vitejs/plugin-react": "4.0.0",
|
|
35
|
+
"babel-loader": "^8.2.5",
|
|
32
36
|
"cross-env": "7.0.3",
|
|
33
37
|
"gulp": "^4.0.2",
|
|
34
38
|
"gulp-insert": "^0.5.0",
|
|
@@ -38,6 +42,8 @@
|
|
|
38
42
|
"react-svg": "10.0.23",
|
|
39
43
|
"serve": "^13.0.4",
|
|
40
44
|
"url-loader": "4.1.1",
|
|
45
|
+
"vite": "^4.3.5",
|
|
46
|
+
"vite-plugin-svgr": "^2.4.0",
|
|
41
47
|
"webpack": "4.44.2",
|
|
42
48
|
"webpack-cli": "4.9.2"
|
|
43
49
|
},
|
package/styles/checkbox.css
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
@apply appearance-none p-0 inline-block align-middle flex-shrink-0 bg-white border-1;
|
|
12
12
|
@apply rounded border-gray-300 text-primary-600 shadow-sm;
|
|
13
13
|
@apply mr-2;
|
|
14
|
-
color-adjust: exact;
|
|
14
|
+
print-color-adjust: exact;
|
|
15
15
|
background-origin: border-box;
|
|
16
16
|
user-select: none;
|
|
17
17
|
height: theme('spacing.4');
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
&:disabled ~ span {
|
|
55
55
|
@apply text-gray-600;
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|
package/styles/form.css
CHANGED
|
@@ -103,7 +103,7 @@ textarea.form-control::placeholder {
|
|
|
103
103
|
|
|
104
104
|
select.form-control {
|
|
105
105
|
@apply bg-no-repeat pr-10;
|
|
106
|
-
color-adjust: exact;
|
|
106
|
+
print-color-adjust: exact;
|
|
107
107
|
background-size: 1.5em 1.5em;
|
|
108
108
|
background-position: right theme('spacing.2') center;
|
|
109
109
|
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
|
package/tsconfig.json
CHANGED
|
@@ -1,25 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@tsed/config/tsconfig.web.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"target": "es5",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"preserveConstEnums": true,
|
|
6
4
|
"outDir": "lib",
|
|
7
|
-
"noImplicitAny": true,
|
|
8
|
-
"sourceMap": false,
|
|
9
|
-
"declaration": true,
|
|
10
5
|
"rootDir": "src",
|
|
11
|
-
"allowJs": true
|
|
12
|
-
"noEmit": true,
|
|
13
|
-
"lib": ["dom", "esnext"],
|
|
14
|
-
"noImplicitReturns": true,
|
|
15
|
-
"noImplicitThis": true,
|
|
16
|
-
"strictNullChecks": false,
|
|
17
|
-
"noUnusedLocals": true,
|
|
18
|
-
"noUnusedParameters": false,
|
|
19
|
-
"skipLibCheck": true,
|
|
20
|
-
"forceConsistentCasingInFileNames": true,
|
|
21
|
-
"noFallthroughCasesInSwitch": true
|
|
6
|
+
"allowJs": true
|
|
22
7
|
},
|
|
23
|
-
"include": ["src
|
|
24
|
-
"
|
|
8
|
+
"include": ["src"],
|
|
9
|
+
"references": [
|
|
10
|
+
{
|
|
11
|
+
"path": "./tsconfig.node.json"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
25
14
|
}
|