@tsed/tailwind-formio 3.0.0-alpha.8 → 3.0.0-rc.1
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.d.ts +4 -1
- package/dist/index.js.map +1 -1
- package/dist/tailwind/colors.js.map +1 -1
- package/dist/tailwind/preset.js.map +1 -1
- package/dist/templates/index.d.ts +4 -1
- package/dist/templates/index.js.map +1 -1
- package/dist/templates/tailwind/address/index.js.map +1 -1
- package/dist/templates/tailwind/alert/index.js.map +1 -1
- package/dist/templates/tailwind/builder/index.js.map +1 -1
- package/dist/templates/tailwind/builderComponent/index.js.map +1 -1
- package/dist/templates/tailwind/builderComponents/index.js.map +1 -1
- package/dist/templates/tailwind/builderEditForm/index.js.map +1 -1
- package/dist/templates/tailwind/builderPlaceholder/index.js.map +1 -1
- package/dist/templates/tailwind/builderSidebar/index.js.map +1 -1
- package/dist/templates/tailwind/builderSidebarGroup/index.js.map +1 -1
- package/dist/templates/tailwind/builderWizard/index.js.map +1 -1
- package/dist/templates/tailwind/button/index.js.map +1 -1
- package/dist/templates/tailwind/bxIconsMapping.d.ts +1 -0
- package/dist/templates/tailwind/bxIconsMapping.js +74 -0
- package/dist/templates/tailwind/bxIconsMapping.js.map +1 -0
- package/dist/templates/tailwind/checkbox/index.js.map +1 -1
- package/dist/templates/tailwind/columns/index.js.map +1 -1
- package/dist/templates/tailwind/component/index.js.map +1 -1
- package/dist/templates/tailwind/componentModal/index.js.map +1 -1
- package/dist/templates/tailwind/components/index.js.map +1 -1
- package/dist/templates/tailwind/container/index.js.map +1 -1
- package/dist/templates/tailwind/cssClasses.js.map +1 -1
- package/dist/templates/tailwind/datagrid/index.js.map +1 -1
- package/dist/templates/tailwind/day/index.js.map +1 -1
- package/dist/templates/tailwind/dialog/index.js.map +1 -1
- package/dist/templates/tailwind/editgrid/index.js.map +1 -1
- package/dist/templates/tailwind/editgridTable/index.js.map +1 -1
- package/dist/templates/tailwind/errorsList/index.js.map +1 -1
- package/dist/templates/tailwind/field/index.js.map +1 -1
- package/dist/templates/tailwind/fieldset/index.js.map +1 -1
- package/dist/templates/tailwind/file/index.js.map +1 -1
- package/dist/templates/tailwind/html/index.js.map +1 -1
- package/dist/templates/tailwind/icon/index.js.map +1 -1
- package/dist/templates/tailwind/iconClass.d.ts +0 -1
- package/dist/templates/tailwind/iconClass.js +4 -54
- package/dist/templates/tailwind/iconClass.js.map +1 -1
- package/dist/templates/tailwind/index.d.ts +4 -1
- package/dist/templates/tailwind/index.js +109 -104
- package/dist/templates/tailwind/index.js.map +1 -1
- package/dist/templates/tailwind/input/index.js.map +1 -1
- package/dist/templates/tailwind/label/index.js.map +1 -1
- package/dist/templates/tailwind/loader/index.js.map +1 -1
- package/dist/templates/tailwind/loading/index.js.map +1 -1
- package/dist/templates/tailwind/lucideIconsMapping.d.ts +1 -0
- package/dist/templates/tailwind/lucideIconsMapping.js +76 -0
- package/dist/templates/tailwind/lucideIconsMapping.js.map +1 -0
- package/dist/templates/tailwind/map/index.js.map +1 -1
- package/dist/templates/tailwind/message/index.js.map +1 -1
- package/dist/templates/tailwind/modalPreview/index.js.map +1 -1
- package/dist/templates/tailwind/modaldialog/index.js.map +1 -1
- package/dist/templates/tailwind/modaledit/index.js.map +1 -1
- package/dist/templates/tailwind/multiValueRow/index.js.map +1 -1
- package/dist/templates/tailwind/multiValueTable/index.js.map +1 -1
- package/dist/templates/tailwind/multipleMasksInput/index.js.map +1 -1
- package/dist/templates/tailwind/panel/index.js.map +1 -1
- package/dist/templates/tailwind/pdf/index.js.map +1 -1
- package/dist/templates/tailwind/pdfBuilder/index.js.map +1 -1
- package/dist/templates/tailwind/pdfBuilderUpload/index.js.map +1 -1
- package/dist/templates/tailwind/radio/index.js.map +1 -1
- package/dist/templates/tailwind/resourceAdd/index.js.map +1 -1
- package/dist/templates/tailwind/select/index.js.map +1 -1
- package/dist/templates/tailwind/selectOption/index.js.map +1 -1
- package/dist/templates/tailwind/signature/index.js.map +1 -1
- package/dist/templates/tailwind/survey/index.js.map +1 -1
- package/dist/templates/tailwind/tab/index.js.map +1 -1
- package/dist/templates/tailwind/table/index.js.map +1 -1
- package/dist/templates/tailwind/tableComponents/index.js.map +1 -1
- package/dist/templates/tailwind/tree/index.js.map +1 -1
- package/dist/templates/tailwind/tree/partials/index.js.map +1 -1
- package/dist/templates/tailwind/webform/index.js.map +1 -1
- package/dist/templates/tailwind/well/index.js.map +1 -1
- package/dist/templates/tailwind/wizard/index.js.map +1 -1
- package/dist/templates/tailwind/wizardHeader/index.js.map +1 -1
- package/dist/templates/tailwind/wizardHeaderClassic/index.js.map +1 -1
- package/dist/templates/tailwind/wizardHeaderVertical/index.js.map +1 -1
- package/dist/templates/tailwind/wizardNav/index.js.map +1 -1
- package/package.json +12 -4
- package/readme.md +20 -42
- package/src/templates/tailwind/button/button.stories.jsx +19 -19
- package/src/templates/tailwind/bxIconsMapping.ts +70 -0
- package/src/templates/tailwind/iconClass.ts +11 -62
- package/src/templates/tailwind/index.ts +8 -3
- package/src/templates/tailwind/lucideIconsMapping.ts +72 -0
- package/styles/animations.css +341 -0
- package/styles/badge.css +4 -4
- package/styles/choices.css +32 -25
- package/styles/form.css +7 -2
- package/styles/icon.css +33 -0
- package/styles/index.css +1 -0
- package/styles/react-select.css +69 -5
- package/styles/tables.css +24 -57
- package/styles/tabs.css +67 -49
- package/vite.config.mts +1 -1
- package/tsconfig.app.json +0 -11
- package/tsconfig.json +0 -16
- package/tsconfig.node.json +0 -13
package/styles/tables.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
th,
|
|
7
7
|
td {
|
|
8
|
-
@apply p-3 align-top text-left border-t-1 border-solid border-gray-300;
|
|
8
|
+
@apply p-3 align-top text-left border-t-1 border-solid border-gray-300 dark:border-gray-700;
|
|
9
9
|
|
|
10
10
|
&.align-middle {
|
|
11
11
|
vertical-align: middle;
|
|
@@ -17,23 +17,30 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
thead th {
|
|
20
|
-
@apply border-b-2 border-solid border-gray-300;
|
|
20
|
+
@apply border-b-2 border-solid border-gray-300 dark:border-gray-700;
|
|
21
21
|
border-style: solid;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
tbody + tbody {
|
|
25
|
-
@apply border-t-2 border-solid border-gray-300;
|
|
25
|
+
@apply border-t-2 border-solid border-gray-300 dark:border-gray-700;
|
|
26
26
|
border-style: solid;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.table-cell-header {
|
|
31
|
+
@apply flex flex-col space-y-2;
|
|
31
32
|
&__label {
|
|
32
|
-
@apply flex;
|
|
33
|
+
@apply flex items-center justify-center;
|
|
34
|
+
|
|
33
35
|
> span:first-child {
|
|
34
36
|
@apply flex-1;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
39
|
+
|
|
40
|
+
&__sort {
|
|
41
|
+
@apply flex items-center justify-center;
|
|
42
|
+
}
|
|
43
|
+
|
|
37
44
|
&__filter {
|
|
38
45
|
@apply mt-1;
|
|
39
46
|
}
|
|
@@ -51,11 +58,11 @@
|
|
|
51
58
|
/* Border versions - Add or remove borders all around the table and between all the columns. */
|
|
52
59
|
|
|
53
60
|
.table-bordered {
|
|
54
|
-
@apply border-1 border-solid border-gray-300;
|
|
61
|
+
@apply border-1 border-solid border-gray-300 dark:border-gray-700;
|
|
55
62
|
|
|
56
63
|
th,
|
|
57
64
|
td {
|
|
58
|
-
@apply border-1 border-solid border-gray-300;
|
|
65
|
+
@apply border-1 border-solid border-gray-300 dark:border-gray-700;
|
|
59
66
|
}
|
|
60
67
|
|
|
61
68
|
thead {
|
|
@@ -79,7 +86,7 @@
|
|
|
79
86
|
|
|
80
87
|
.table-striped {
|
|
81
88
|
tbody tr:nth-of-type(odd) {
|
|
82
|
-
@apply bg-gray-100;
|
|
89
|
+
@apply bg-gray-100 dark:bg-gray-800;
|
|
83
90
|
}
|
|
84
91
|
}
|
|
85
92
|
|
|
@@ -87,69 +94,29 @@
|
|
|
87
94
|
|
|
88
95
|
.table-hover {
|
|
89
96
|
tbody tr {
|
|
90
|
-
@apply hover:text-gray-900 hover:bg-gray-200;
|
|
97
|
+
@apply hover:text-gray-900 hover:bg-gray-200 dark:hover:bg-gray-700 dark:hover:text-gray-100;
|
|
91
98
|
}
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
.table-group {
|
|
95
|
-
@apply border-1 border-gray-300;
|
|
102
|
+
@apply border-1 border-gray-300 dark:border-gray-700;
|
|
103
|
+
|
|
104
|
+
&.border-top-0 {
|
|
105
|
+
@apply border-t-0;
|
|
106
|
+
}
|
|
107
|
+
|
|
96
108
|
.table {
|
|
97
109
|
@apply border-t-0 mb-0;
|
|
98
110
|
thead th {
|
|
99
111
|
@apply border-t-0;
|
|
100
112
|
}
|
|
101
113
|
}
|
|
114
|
+
|
|
102
115
|
.pagination-group {
|
|
103
|
-
@apply border-t-1 border-gray-300 p-3;
|
|
116
|
+
@apply border-t-1 border-gray-300 dark:border-gray-700 p-3;
|
|
104
117
|
}
|
|
105
118
|
}
|
|
106
|
-
/*
|
|
107
|
-
// Dark styles
|
|
108
|
-
//
|
|
109
|
-
// Same table markup, but inverted color scheme: dark background and light text.
|
|
110
|
-
|
|
111
|
-
// stylelint-disable-next-line no-duplicate-selectors
|
|
112
|
-
//.table {
|
|
113
|
-
// .thead-dark {
|
|
114
|
-
// th {
|
|
115
|
-
// color: $table-dark-color;
|
|
116
|
-
// background-color: $table-dark-bg;
|
|
117
|
-
// border-color: $table-dark-border-color;
|
|
118
|
-
// }
|
|
119
|
-
// }
|
|
120
|
-
//
|
|
121
|
-
// .thead-light {
|
|
122
|
-
// th {
|
|
123
|
-
// color: $table-head-color;
|
|
124
|
-
// background-color: $table-head-bg;
|
|
125
|
-
// border-color: $table-border-color;
|
|
126
|
-
// }
|
|
127
|
-
// }
|
|
128
|
-
//}*/
|
|
129
|
-
/*
|
|
130
|
-
// Responsive tables
|
|
131
|
-
//
|
|
132
|
-
// Generate series of `.table-responsive-*` classes for configuring the screen
|
|
133
|
-
// size of where your table will overflow.
|
|
134
119
|
|
|
135
120
|
.table-responsive {
|
|
136
|
-
@
|
|
137
|
-
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
|
138
|
-
$infix: breakpoint-infix($next, $grid-breakpoints);
|
|
139
|
-
|
|
140
|
-
&#{$infix} {
|
|
141
|
-
@include media-breakpoint-down($breakpoint) {
|
|
142
|
-
display: block;
|
|
143
|
-
width: 100%;
|
|
144
|
-
overflow-x: auto;
|
|
145
|
-
-webkit-overflow-scrolling: touch;
|
|
146
|
-
|
|
147
|
-
// Prevent double border on horizontal scroll due to use of `display: block;`
|
|
148
|
-
> .table-bordered {
|
|
149
|
-
border: 0;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
121
|
+
@apply block w-full overflow-x-auto;
|
|
154
122
|
}
|
|
155
|
-
*/
|
package/styles/tabs.css
CHANGED
|
@@ -1,63 +1,81 @@
|
|
|
1
1
|
.tw-tabs {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
&__header {
|
|
3
|
+
@apply overflow-auto;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
&-border {
|
|
9
|
-
@apply border-b-1 border-gray-300 absolute bottom-0 left-0 right-0 z-1;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
5
|
+
&-wrapper{
|
|
6
|
+
@apply relative flex items-center pt-1 gap-1;
|
|
12
7
|
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
> [role="tablist"] {
|
|
9
|
+
@apply relative flex items-center gap-1;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
&-icon {
|
|
20
|
-
@apply mr-2 -ml-1 -mt-px;
|
|
21
|
-
}
|
|
13
|
+
.btn {
|
|
14
|
+
@apply px-3;
|
|
15
|
+
}
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
@apply border-primary;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
&-wrapper {
|
|
30
|
-
@apply relative mr-1;
|
|
31
|
-
|
|
32
|
-
&:last-child{
|
|
33
|
-
@apply mr-0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.-active {
|
|
37
|
-
@apply z-2;
|
|
38
|
-
}
|
|
39
|
-
&.-back{
|
|
40
|
-
@apply -ml-2 mr-0;
|
|
41
|
-
}
|
|
17
|
+
&-border {
|
|
18
|
+
@apply border-b-1 border-gray-300 absolute bottom-0 left-0 right-0 z-1;
|
|
19
|
+
}
|
|
42
20
|
}
|
|
43
21
|
|
|
44
|
-
|
|
45
|
-
|
|
22
|
+
&__button {
|
|
23
|
+
@apply flex items-center border-1 border-b-0 border-gray-300 relative outline-none focus:outline-none bg-gray-100 text-gray-700 hover:text-secondary focus:text-secondary px-4 py-2;
|
|
24
|
+
|
|
25
|
+
&-label {
|
|
26
|
+
@apply text-sm whitespace-nowrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-icon {
|
|
30
|
+
@apply mr-2 -ml-1 -mt-px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&-border {
|
|
34
|
+
@apply border-transparent z-1 absolute top-0 right-0 left-0 border-t-2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&-wrapper {
|
|
38
|
+
@apply relative ;
|
|
39
|
+
|
|
40
|
+
&.-active {
|
|
41
|
+
@apply z-2;
|
|
42
|
+
|
|
43
|
+
.tw-tabs__button {
|
|
44
|
+
@apply text-primary bg-white;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tw-tabs__button-border {
|
|
48
|
+
@apply border-primary;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.-reverse {
|
|
53
|
+
.tw-tabs__button {
|
|
54
|
+
@apply bg-white;
|
|
55
|
+
|
|
56
|
+
&.-active {
|
|
57
|
+
@apply bg-gray-100;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
46
62
|
}
|
|
47
63
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
&.-active {
|
|
51
|
-
@apply bg-gray-100;
|
|
52
|
-
}
|
|
64
|
+
&__body {
|
|
65
|
+
@apply grid grid-rows-1 overflow-hidden;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
|
-
|
|
56
|
-
|
|
68
|
+
&__panel {
|
|
69
|
+
@apply col-start-1 col-end-1 row-start-1 row-end-1 transition-all duration-300 ease-in-out;
|
|
70
|
+
|
|
71
|
+
&.-active {
|
|
72
|
+
@apply z-1 opacity-100 visible;
|
|
73
|
+
height: auto;
|
|
74
|
+
}
|
|
57
75
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
76
|
+
&:not(.-active) {
|
|
77
|
+
@apply z-0 opacity-0 invisible;
|
|
78
|
+
height: 0;
|
|
79
|
+
}
|
|
61
80
|
}
|
|
62
|
-
}
|
|
63
81
|
}
|
package/vite.config.mts
CHANGED
|
@@ -38,7 +38,7 @@ export default defineConfig({
|
|
|
38
38
|
plugins: [
|
|
39
39
|
ejsPlugin(),
|
|
40
40
|
dts({
|
|
41
|
-
tsconfigPath: "
|
|
41
|
+
tsconfigPath: "../../tsconfig.app.json",
|
|
42
42
|
aliasesExclude: [],
|
|
43
43
|
include: ["src/**/*.{ts,tsx}"],
|
|
44
44
|
exclude: ["**/*.spec.{ts,tsx}", "**/*.stories.{ts,tsx}", "**/__*__/**"]
|
package/tsconfig.app.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsed/typescript/tsconfig.web.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": ".",
|
|
5
|
-
"noEmit": true,
|
|
6
|
-
"declaration": false,
|
|
7
|
-
"composite": false
|
|
8
|
-
},
|
|
9
|
-
"include": ["src/**/*.ts", "src/**/*.tsx"],
|
|
10
|
-
"exclude": ["node_modules", "dist", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
|
|
11
|
-
}
|
package/tsconfig.json
DELETED
package/tsconfig.node.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsed/typescript/tsconfig.web.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "NodeNext",
|
|
5
|
-
"moduleResolution": "NodeNext",
|
|
6
|
-
"baseUrl": ".",
|
|
7
|
-
"noEmit": true,
|
|
8
|
-
"declaration": false,
|
|
9
|
-
"composite": false
|
|
10
|
-
},
|
|
11
|
-
"include": ["vite.config.mts", "tailwind.config.ts"],
|
|
12
|
-
"exclude": ["node_modules", "dist", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
|
|
13
|
-
}
|