@tsed/tailwind-formio 2.3.6 → 3.0.0-alpha.10
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/build/config.1e3fca3e.json +1 -0
- package/build/css/app.a4ea028b.css +3 -0
- package/build/js/app.5db1c92a.js +2 -0
- package/build/js/app.5db1c92a.js.map +1 -0
- package/build/js/chunk-vendors.6cab5322.js +8 -0
- package/build/js/chunk-vendors.6cab5322.js.map +1 -0
- package/build/tailwind.html +3 -0
- package/dist/ejs.d.js +2 -0
- package/dist/ejs.d.js.map +1 -0
- package/dist/index.d.ts +222 -222
- package/dist/index.js +6 -2017
- package/dist/index.js.map +1 -1
- package/dist/tailwind/colors.d.ts +328 -0
- package/dist/tailwind/colors.js +15 -0
- package/dist/tailwind/colors.js.map +1 -0
- package/dist/tailwind/preset.d.ts +158 -0
- package/dist/tailwind/preset.js +173 -0
- package/dist/tailwind/preset.js.map +1 -0
- package/dist/templates/index.d.ts +219 -219
- package/dist/templates/index.js +8 -0
- package/dist/templates/index.js.map +1 -0
- package/dist/templates/tailwind/address/index.d.ts +4 -5
- package/dist/templates/tailwind/address/index.js +55 -0
- package/dist/templates/tailwind/address/index.js.map +1 -0
- package/dist/templates/tailwind/alert/index.d.ts +4 -5
- package/dist/templates/tailwind/alert/index.js +22 -0
- package/dist/templates/tailwind/alert/index.js.map +1 -0
- package/dist/templates/tailwind/builder/index.d.ts +4 -5
- package/dist/templates/tailwind/builder/index.js +17 -0
- package/dist/templates/tailwind/builder/index.js.map +1 -0
- package/dist/templates/tailwind/builderComponent/index.d.ts +4 -5
- package/dist/templates/tailwind/builderComponent/index.js +70 -0
- package/dist/templates/tailwind/builderComponent/index.js.map +1 -0
- package/dist/templates/tailwind/builderComponents/index.d.ts +4 -5
- package/dist/templates/tailwind/builderComponents/index.js +12 -0
- package/dist/templates/tailwind/builderComponents/index.js.map +1 -0
- package/dist/templates/tailwind/builderEditForm/index.d.ts +4 -5
- package/dist/templates/tailwind/builderEditForm/index.js +73 -0
- package/dist/templates/tailwind/builderEditForm/index.js.map +1 -0
- package/dist/templates/tailwind/builderPlaceholder/index.d.ts +4 -5
- package/dist/templates/tailwind/builderPlaceholder/index.js +18 -0
- package/dist/templates/tailwind/builderPlaceholder/index.js.map +1 -0
- package/dist/templates/tailwind/builderSidebar/index.d.ts +4 -5
- package/dist/templates/tailwind/builderSidebar/index.js +19 -0
- package/dist/templates/tailwind/builderSidebar/index.js.map +1 -0
- package/dist/templates/tailwind/builderSidebarGroup/index.d.ts +4 -5
- package/dist/templates/tailwind/builderSidebarGroup/index.js +58 -0
- package/dist/templates/tailwind/builderSidebarGroup/index.js.map +1 -0
- package/dist/templates/tailwind/builderWizard/index.d.ts +4 -5
- package/dist/templates/tailwind/builderWizard/index.js +33 -0
- package/dist/templates/tailwind/builderWizard/index.js.map +1 -0
- package/dist/templates/tailwind/button/index.d.ts +5 -7
- package/dist/templates/tailwind/button/index.js +36 -0
- package/dist/templates/tailwind/button/index.js.map +1 -0
- package/dist/templates/tailwind/checkbox/index.d.ts +5 -7
- package/dist/templates/tailwind/checkbox/index.js +42 -0
- package/dist/templates/tailwind/checkbox/index.js.map +1 -0
- package/dist/templates/tailwind/columns/index.d.ts +4 -5
- package/dist/templates/tailwind/columns/index.js +21 -0
- package/dist/templates/tailwind/columns/index.js.map +1 -0
- package/dist/templates/tailwind/component/index.d.ts +4 -5
- package/dist/templates/tailwind/component/index.js +15 -0
- package/dist/templates/tailwind/component/index.js.map +1 -0
- package/dist/templates/tailwind/componentModal/index.d.ts +4 -5
- package/dist/templates/tailwind/componentModal/index.js +35 -0
- package/dist/templates/tailwind/componentModal/index.js.map +1 -0
- package/dist/templates/tailwind/components/index.d.ts +4 -5
- package/dist/templates/tailwind/components/index.js +10 -0
- package/dist/templates/tailwind/components/index.js.map +1 -0
- package/dist/templates/tailwind/container/index.d.ts +4 -5
- package/dist/templates/tailwind/container/index.js +12 -0
- package/dist/templates/tailwind/container/index.js.map +1 -0
- package/dist/templates/tailwind/cssClasses.d.ts +7 -7
- package/dist/templates/tailwind/cssClasses.js +10 -0
- package/dist/templates/tailwind/cssClasses.js.map +1 -0
- package/dist/templates/tailwind/datagrid/index.d.ts +5 -7
- package/dist/templates/tailwind/datagrid/index.js +132 -0
- package/dist/templates/tailwind/datagrid/index.js.map +1 -0
- package/dist/templates/tailwind/day/index.d.ts +4 -5
- package/dist/templates/tailwind/day/index.js +53 -0
- package/dist/templates/tailwind/day/index.js.map +1 -0
- package/dist/templates/tailwind/dialog/index.d.ts +4 -5
- package/dist/templates/tailwind/dialog/index.js +16 -0
- package/dist/templates/tailwind/dialog/index.js.map +1 -0
- package/dist/templates/tailwind/editgrid/index.d.ts +5 -7
- package/dist/templates/tailwind/editgrid/index.js +92 -0
- package/dist/templates/tailwind/editgrid/index.js.map +1 -0
- package/dist/templates/tailwind/editgridTable/index.d.ts +5 -7
- package/dist/templates/tailwind/editgridTable/index.js +121 -0
- package/dist/templates/tailwind/editgridTable/index.js.map +1 -0
- package/dist/templates/tailwind/errorsList/index.d.ts +4 -5
- package/dist/templates/tailwind/errorsList/index.js +30 -0
- package/dist/templates/tailwind/errorsList/index.js.map +1 -0
- package/dist/templates/tailwind/field/index.d.ts +5 -7
- package/dist/templates/tailwind/field/index.js +55 -0
- package/dist/templates/tailwind/field/index.js.map +1 -0
- package/dist/templates/tailwind/fieldset/index.d.ts +4 -5
- package/dist/templates/tailwind/fieldset/index.js +25 -0
- package/dist/templates/tailwind/fieldset/index.js.map +1 -0
- package/dist/templates/tailwind/file/index.d.ts +4 -5
- package/dist/templates/tailwind/file/index.js +158 -0
- package/dist/templates/tailwind/file/index.js.map +1 -0
- package/dist/templates/tailwind/html/index.d.ts +4 -5
- package/dist/templates/tailwind/html/index.js +16 -0
- package/dist/templates/tailwind/html/index.js.map +1 -0
- package/dist/templates/tailwind/icon/index.d.ts +4 -5
- package/dist/templates/tailwind/icon/index.js +10 -0
- package/dist/templates/tailwind/icon/index.js.map +1 -0
- package/dist/templates/tailwind/iconClass.d.ts +3 -3
- package/dist/templates/tailwind/iconClass.js +57 -0
- package/dist/templates/tailwind/iconClass.js.map +1 -0
- package/dist/templates/tailwind/index.d.ts +217 -217
- package/dist/templates/tailwind/index.js +145 -0
- package/dist/templates/tailwind/index.js.map +1 -0
- package/dist/templates/tailwind/input/index.d.ts +5 -7
- package/dist/templates/tailwind/input/index.js +78 -0
- package/dist/templates/tailwind/input/index.js.map +1 -0
- package/dist/templates/tailwind/label/index.d.ts +4 -5
- package/dist/templates/tailwind/label/index.js +23 -0
- package/dist/templates/tailwind/label/index.js.map +1 -0
- package/dist/templates/tailwind/loader/index.d.ts +4 -5
- package/dist/templates/tailwind/loader/index.js +14 -0
- package/dist/templates/tailwind/loader/index.js.map +1 -0
- package/dist/templates/tailwind/loading/index.d.ts +4 -5
- package/dist/templates/tailwind/loading/index.js +10 -0
- package/dist/templates/tailwind/loading/index.js.map +1 -0
- package/dist/templates/tailwind/map/index.d.ts +4 -5
- package/dist/templates/tailwind/map/index.js +10 -0
- package/dist/templates/tailwind/map/index.js.map +1 -0
- package/dist/templates/tailwind/message/index.d.ts +4 -5
- package/dist/templates/tailwind/message/index.js +10 -0
- package/dist/templates/tailwind/message/index.js.map +1 -0
- package/dist/templates/tailwind/modalPreview/index.d.ts +4 -5
- package/dist/templates/tailwind/modalPreview/index.js +24 -0
- package/dist/templates/tailwind/modalPreview/index.js.map +1 -0
- package/dist/templates/tailwind/modaldialog/index.d.ts +4 -5
- package/dist/templates/tailwind/modaldialog/index.js +22 -0
- package/dist/templates/tailwind/modaldialog/index.js.map +1 -0
- package/dist/templates/tailwind/modaledit/index.d.ts +4 -5
- package/dist/templates/tailwind/modaledit/index.js +19 -0
- package/dist/templates/tailwind/modaledit/index.js.map +1 -0
- package/dist/templates/tailwind/multiValueRow/index.d.ts +4 -5
- package/dist/templates/tailwind/multiValueRow/index.js +21 -0
- package/dist/templates/tailwind/multiValueRow/index.js.map +1 -0
- package/dist/templates/tailwind/multiValueTable/index.d.ts +4 -5
- package/dist/templates/tailwind/multiValueTable/index.js +21 -0
- package/dist/templates/tailwind/multiValueTable/index.js.map +1 -0
- package/dist/templates/tailwind/multipleMasksInput/index.d.ts +4 -5
- package/dist/templates/tailwind/multipleMasksInput/index.js +34 -0
- package/dist/templates/tailwind/multipleMasksInput/index.js.map +1 -0
- package/dist/templates/tailwind/panel/index.d.ts +4 -5
- package/dist/templates/tailwind/panel/index.js +39 -0
- package/dist/templates/tailwind/panel/index.js.map +1 -0
- package/dist/templates/tailwind/pdf/index.d.ts +4 -5
- package/dist/templates/tailwind/pdf/index.js +19 -0
- package/dist/templates/tailwind/pdf/index.js.map +1 -0
- package/dist/templates/tailwind/pdfBuilder/index.d.ts +4 -5
- package/dist/templates/tailwind/pdfBuilder/index.js +18 -0
- package/dist/templates/tailwind/pdfBuilder/index.js.map +1 -0
- package/dist/templates/tailwind/pdfBuilderUpload/index.d.ts +4 -5
- package/dist/templates/tailwind/pdfBuilderUpload/index.js +25 -0
- package/dist/templates/tailwind/pdfBuilderUpload/index.js.map +1 -0
- package/dist/templates/tailwind/radio/index.d.ts +5 -7
- package/dist/templates/tailwind/radio/index.js +66 -0
- package/dist/templates/tailwind/radio/index.js.map +1 -0
- package/dist/templates/tailwind/resourceAdd/index.d.ts +4 -5
- package/dist/templates/tailwind/resourceAdd/index.js +26 -0
- package/dist/templates/tailwind/resourceAdd/index.js.map +1 -0
- package/dist/templates/tailwind/select/index.d.ts +5 -7
- package/dist/templates/tailwind/select/index.js +40 -0
- package/dist/templates/tailwind/select/index.js.map +1 -0
- package/dist/templates/tailwind/selectOption/index.d.ts +5 -7
- package/dist/templates/tailwind/selectOption/index.js +25 -0
- package/dist/templates/tailwind/selectOption/index.js.map +1 -0
- package/dist/templates/tailwind/signature/index.d.ts +5 -7
- package/dist/templates/tailwind/signature/index.js +37 -0
- package/dist/templates/tailwind/signature/index.js.map +1 -0
- package/dist/templates/tailwind/survey/index.d.ts +5 -7
- package/dist/templates/tailwind/survey/index.js +71 -0
- package/dist/templates/tailwind/survey/index.js.map +1 -0
- package/dist/templates/tailwind/tab/index.d.ts +5 -7
- package/dist/templates/tailwind/tab/index.js +60 -0
- package/dist/templates/tailwind/tab/index.js.map +1 -0
- package/dist/templates/tailwind/table/index.d.ts +4 -5
- package/dist/templates/tailwind/table/index.js +41 -0
- package/dist/templates/tailwind/table/index.js.map +1 -0
- package/dist/templates/tailwind/tableComponents/index.d.ts +4 -5
- package/dist/templates/tailwind/tableComponents/index.js +16 -0
- package/dist/templates/tailwind/tableComponents/index.js.map +1 -0
- package/dist/templates/tailwind/tree/index.d.ts +4 -5
- package/dist/templates/tailwind/tree/index.js +29 -0
- package/dist/templates/tailwind/tree/index.js.map +1 -0
- package/dist/templates/tailwind/tree/partials/index.d.ts +9 -11
- package/dist/templates/tailwind/tree/partials/index.js +53 -0
- package/dist/templates/tailwind/tree/partials/index.js.map +1 -0
- package/dist/templates/tailwind/webform/index.d.ts +5 -7
- package/dist/templates/tailwind/webform/index.js +15 -0
- package/dist/templates/tailwind/webform/index.js.map +1 -0
- package/dist/templates/tailwind/well/index.d.ts +4 -5
- package/dist/templates/tailwind/well/index.js +14 -0
- package/dist/templates/tailwind/well/index.js.map +1 -0
- package/dist/templates/tailwind/wizard/index.d.ts +5 -7
- package/dist/templates/tailwind/wizard/index.js +44 -0
- package/dist/templates/tailwind/wizard/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeader/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeader/index.js +25 -0
- package/dist/templates/tailwind/wizardHeader/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeaderClassic/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeaderClassic/index.js +27 -0
- package/dist/templates/tailwind/wizardHeaderClassic/index.js.map +1 -0
- package/dist/templates/tailwind/wizardHeaderVertical/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardHeaderVertical/index.js +25 -0
- package/dist/templates/tailwind/wizardHeaderVertical/index.js.map +1 -0
- package/dist/templates/tailwind/wizardNav/index.d.ts +4 -5
- package/dist/templates/tailwind/wizardNav/index.js +39 -0
- package/dist/templates/tailwind/wizardNav/index.js.map +1 -0
- package/package.json +32 -22
- package/readme.md +13 -129
- package/src/tailwind/colors.ts +20 -0
- package/src/tailwind/preset.ts +163 -0
- package/src/templates/stories/__fixtures__/WrapperForm.jsx +103 -0
- package/src/templates/stories/__fixtures__/form-firstname.fixture.json +256 -0
- package/src/templates/stories/__fixtures__/form.fixtures.js +1840 -0
- package/src/templates/stories/__fixtures__/useEditForm.jsx +82 -0
- package/src/templates/stories/breadcrumbs.stories.jsx +2 -1
- package/src/templates/tailwind/address/index.ts +1 -1
- package/src/templates/tailwind/alert/index.ts +3 -0
- package/src/templates/tailwind/builder/index.ts +1 -1
- package/src/templates/tailwind/builderComponent/index.ts +1 -1
- package/src/templates/tailwind/builderComponents/index.ts +1 -1
- package/src/templates/tailwind/builderEditForm/form.ejs +4 -2
- package/src/templates/tailwind/builderEditForm/index.ts +1 -1
- package/src/templates/tailwind/builderPlaceholder/index.ts +1 -1
- package/src/templates/tailwind/builderSidebar/index.ts +1 -1
- package/src/templates/tailwind/builderSidebarGroup/form.ejs +1 -1
- package/src/templates/tailwind/builderSidebarGroup/index.ts +1 -1
- package/src/templates/tailwind/builderWizard/index.ts +1 -1
- package/src/templates/tailwind/button/index.ts +2 -2
- package/src/templates/tailwind/checkbox/index.ts +2 -2
- package/src/templates/tailwind/columns/index.ts +1 -1
- package/src/templates/tailwind/component/index.ts +1 -1
- package/src/templates/tailwind/componentModal/index.ts +1 -1
- package/src/templates/tailwind/components/index.ts +1 -1
- package/src/templates/tailwind/container/index.ts +1 -1
- package/src/templates/tailwind/datagrid/index.ts +2 -2
- package/src/templates/tailwind/day/index.ts +1 -1
- package/src/templates/tailwind/dialog/index.ts +1 -1
- package/src/templates/tailwind/editgrid/index.ts +2 -2
- package/src/templates/tailwind/editgridTable/index.ts +2 -2
- package/src/templates/tailwind/errorsList/index.ts +1 -1
- package/src/templates/tailwind/field/index.ts +2 -2
- package/src/templates/tailwind/fieldset/index.ts +1 -1
- package/src/templates/tailwind/file/index.ts +1 -1
- package/src/templates/tailwind/html/index.ts +1 -1
- package/src/templates/tailwind/icon/index.ts +1 -1
- package/src/templates/tailwind/input/index.ts +2 -2
- package/src/templates/tailwind/label/index.ts +1 -1
- package/src/templates/tailwind/loader/index.ts +1 -1
- package/src/templates/tailwind/loading/index.ts +1 -1
- package/src/templates/tailwind/map/index.ts +1 -1
- package/src/templates/tailwind/message/index.ts +1 -1
- package/src/templates/tailwind/modalPreview/index.ts +1 -1
- package/src/templates/tailwind/modaldialog/index.ts +1 -1
- package/src/templates/tailwind/modaledit/index.ts +1 -1
- package/src/templates/tailwind/multiValueRow/index.ts +1 -1
- package/src/templates/tailwind/multiValueTable/index.ts +1 -1
- package/src/templates/tailwind/multipleMasksInput/index.ts +1 -1
- package/src/templates/tailwind/panel/index.ts +1 -1
- package/src/templates/tailwind/pdf/index.ts +1 -1
- package/src/templates/tailwind/pdfBuilder/index.ts +1 -1
- package/src/templates/tailwind/pdfBuilderUpload/index.ts +1 -1
- package/src/templates/tailwind/radio/index.ts +2 -2
- package/src/templates/tailwind/resourceAdd/index.ts +1 -1
- package/src/templates/tailwind/select/index.ts +2 -2
- package/src/templates/tailwind/selectOption/index.ts +2 -2
- package/src/templates/tailwind/signature/index.ts +2 -2
- package/src/templates/tailwind/survey/index.ts +2 -2
- package/src/templates/tailwind/tab/index.ts +2 -2
- package/src/templates/tailwind/table/index.ts +1 -1
- package/src/templates/tailwind/tableComponents/index.ts +1 -1
- package/src/templates/tailwind/tree/index.ts +1 -1
- package/src/templates/tailwind/tree/partials/index.ts +2 -2
- package/src/templates/tailwind/webform/index.ts +2 -2
- package/src/templates/tailwind/well/index.ts +1 -1
- package/src/templates/tailwind/wizard/index.ts +2 -2
- package/src/templates/tailwind/wizardHeader/index.ts +1 -1
- package/src/templates/tailwind/wizardHeaderClassic/index.ts +1 -1
- package/src/templates/tailwind/wizardHeaderVertical/index.ts +1 -1
- package/src/templates/tailwind/wizardNav/index.ts +1 -1
- package/styles/badge.css +4 -4
- package/styles/choices.css +45 -10
- package/styles/form-edit.css +13 -21
- package/styles/form.css +7 -2
- package/styles/index.css +1 -0
- package/styles/modal.css +1 -0
- package/styles/react-select.css +105 -0
- package/styles/tables.css +20 -57
- package/tsconfig.app.json +11 -0
- package/tsconfig.json +7 -5
- package/tsconfig.node.json +9 -4
- package/vite.config.mts +86 -0
- package/.eslintignore +0 -14
- package/.eslintrc.js +0 -7
- package/dist/index.modern.js +0 -2020
- package/dist/index.modern.js.map +0 -1
- package/dist/templates/stories/alert.stories.d.ts +0 -17
- package/dist/templates/stories/badge.stories.d.ts +0 -17
- package/dist/templates/stories/breadcrumbs.stories.d.ts +0 -37
- package/dist/templates/stories/builder.stories.d.ts +0 -3057
- package/dist/templates/stories/pagination.stories.d.ts +0 -17
- package/dist/templates/stories/progress.stories.d.ts +0 -22
- package/dist/templates/stories/wizard.stories.d.ts +0 -3057
- package/dist/templates/tailwind/address/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/address/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/alert/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderComponent/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderComponents/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderEditForm/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderPlaceholder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderSidebar/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderSidebarGroup/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/builderWizard/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/button/button.stories.d.ts +0 -22
- package/dist/templates/tailwind/button/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/button/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/checkbox/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/checkbox/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/columns/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/component/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/componentModal/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/components/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/container/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/datagrid/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/datagrid/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/day/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/dialog/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgrid/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgrid/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgridTable/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/editgridTable/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/errorsList/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/field/align.ejs.d.ts +0 -1
- package/dist/templates/tailwind/field/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/fieldset/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/file/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/html/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/icon/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/input/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/input/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/label/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/loader/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/loading/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/map/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/message/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modalPreview/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modaldialog/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/modaledit/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multiValueRow/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multiValueTable/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/multipleMasksInput/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/panel/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdf/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdfBuilder/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/pdfBuilderUpload/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/radio/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/radio/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/resourceAdd/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/select/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/select/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/selectOption/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/selectOption/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/signature/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/signature/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/survey/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/survey/html.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tab/flat.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tab/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/table/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tableComponents/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/partials/edit.ejs.d.ts +0 -1
- package/dist/templates/tailwind/tree/partials/view.ejs.d.ts +0 -1
- package/dist/templates/tailwind/webform/builder.ejs.d.ts +0 -1
- package/dist/templates/tailwind/webform/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/well/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizard/builder.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizard/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeader/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeaderClassic/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardHeaderVertical/form.ejs.d.ts +0 -1
- package/dist/templates/tailwind/wizardNav/form.ejs.d.ts +0 -1
- package/gulpfile.js +0 -25
- package/src/templates/stories/builder.stories.jsx +0 -1917
- package/src/templates/stories/wizard.stories.jsx +0 -1917
- package/src/templates/tailwind/address/form.ejs.js +0 -58
- package/src/templates/tailwind/address/html.ejs.js +0 -13
- package/src/templates/tailwind/alert/form.ejs.js +0 -24
- package/src/templates/tailwind/alert/index.js +0 -3
- package/src/templates/tailwind/builder/form.ejs.js +0 -9
- package/src/templates/tailwind/builderComponent/form.ejs.js +0 -24
- package/src/templates/tailwind/builderComponents/form.ejs.js +0 -11
- package/src/templates/tailwind/builderEditForm/form.ejs.js +0 -50
- package/src/templates/tailwind/builderPlaceholder/form.ejs.js +0 -9
- package/src/templates/tailwind/builderSidebar/form.ejs.js +0 -16
- package/src/templates/tailwind/builderSidebarGroup/form.ejs.js +0 -60
- package/src/templates/tailwind/builderWizard/form.ejs.js +0 -30
- package/src/templates/tailwind/button/form.ejs.js +0 -52
- package/src/templates/tailwind/button/html.ejs.js +0 -5
- package/src/templates/tailwind/checkbox/form.ejs.js +0 -50
- package/src/templates/tailwind/checkbox/html.ejs.js +0 -22
- package/src/templates/tailwind/columns/form.ejs.js +0 -30
- package/src/templates/tailwind/component/form.ejs.js +0 -22
- package/src/templates/tailwind/componentModal/form.ejs.js +0 -44
- package/src/templates/tailwind/components/form.ejs.js +0 -7
- package/src/templates/tailwind/container/form.ejs.js +0 -9
- package/src/templates/tailwind/datagrid/form.ejs.js +0 -144
- package/src/templates/tailwind/datagrid/html.ejs.js +0 -46
- package/src/templates/tailwind/day/form.ejs.js +0 -98
- package/src/templates/tailwind/dialog/form.ejs.js +0 -5
- package/src/templates/tailwind/editgrid/form.ejs.js +0 -62
- package/src/templates/tailwind/editgrid/html.ejs.js +0 -52
- package/src/templates/tailwind/editgridTable/form.ejs.js +0 -66
- package/src/templates/tailwind/editgridTable/html.ejs.js +0 -56
- package/src/templates/tailwind/errorsList/form.ejs.js +0 -22
- package/src/templates/tailwind/field/align.ejs.js +0 -38
- package/src/templates/tailwind/field/form.ejs.js +0 -36
- package/src/templates/tailwind/fieldset/form.ejs.js +0 -30
- package/src/templates/tailwind/file/form.ejs.js +0 -224
- package/src/templates/tailwind/html/form.ejs.js +0 -25
- package/src/templates/tailwind/icon/form.ejs.js +0 -13
- package/src/templates/tailwind/input/form.ejs.js +0 -108
- package/src/templates/tailwind/input/html.ejs.js +0 -13
- package/src/templates/tailwind/label/form.ejs.js +0 -32
- package/src/templates/tailwind/loader/form.ejs.js +0 -5
- package/src/templates/tailwind/loading/form.ejs.js +0 -7
- package/src/templates/tailwind/map/form.ejs.js +0 -7
- package/src/templates/tailwind/message/form.ejs.js +0 -13
- package/src/templates/tailwind/modalPreview/form.ejs.js +0 -21
- package/src/templates/tailwind/modaldialog/form.ejs.js +0 -7
- package/src/templates/tailwind/modaledit/form.ejs.js +0 -9
- package/src/templates/tailwind/multiValueRow/form.ejs.js +0 -14
- package/src/templates/tailwind/multiValueTable/form.ejs.js +0 -16
- package/src/templates/tailwind/multipleMasksInput/form.ejs.js +0 -30
- package/src/templates/tailwind/panel/form.ejs.js +0 -58
- package/src/templates/tailwind/pdf/form.ejs.js +0 -13
- package/src/templates/tailwind/pdfBuilder/form.ejs.js +0 -9
- package/src/templates/tailwind/pdfBuilderUpload/form.ejs.js +0 -13
- package/src/templates/tailwind/radio/form.ejs.js +0 -84
- package/src/templates/tailwind/radio/html.ejs.js +0 -10
- package/src/templates/tailwind/resourceAdd/form.ejs.js +0 -11
- package/src/templates/tailwind/select/form.ejs.js +0 -46
- package/src/templates/tailwind/select/html.ejs.js +0 -13
- package/src/templates/tailwind/selectOption/form.ejs.js +0 -20
- package/src/templates/tailwind/selectOption/html.ejs.js +0 -11
- package/src/templates/tailwind/signature/form.ejs.js +0 -30
- package/src/templates/tailwind/signature/html.ejs.js +0 -5
- package/src/templates/tailwind/survey/form.ejs.js +0 -52
- package/src/templates/tailwind/survey/html.ejs.js +0 -22
- package/src/templates/tailwind/tab/flat.ejs.js +0 -16
- package/src/templates/tailwind/tab/form.ejs.js +0 -38
- package/src/templates/tailwind/table/form.ejs.js +0 -48
- package/src/templates/tailwind/tableComponents/form.ejs.js +0 -12
- package/src/templates/tailwind/tree/form.ejs.js +0 -32
- package/src/templates/tailwind/tree/partials/edit.ejs.js +0 -16
- package/src/templates/tailwind/tree/partials/view.ejs.js +0 -34
- package/src/templates/tailwind/webform/builder.ejs.js +0 -7
- package/src/templates/tailwind/webform/form.ejs.js +0 -9
- package/src/templates/tailwind/well/form.ejs.js +0 -9
- package/src/templates/tailwind/wizard/builder.ejs.js +0 -7
- package/src/templates/tailwind/wizard/form.ejs.js +0 -42
- package/src/templates/tailwind/wizardHeader/form.ejs.js +0 -32
- package/src/templates/tailwind/wizardHeaderClassic/form.ejs.js +0 -26
- package/src/templates/tailwind/wizardHeaderVertical/form.ejs.js +0 -28
- package/src/templates/tailwind/wizardNav/form.ejs.js +0 -64
package/styles/choices.css
CHANGED
|
@@ -153,6 +153,7 @@
|
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
+
|
|
156
157
|
&[data-type=select-multiple] {
|
|
157
158
|
&:after {
|
|
158
159
|
@apply h-0 w-0 border-solid absolute border-0 h-full top-0 m-0 right-1.5;
|
|
@@ -168,14 +169,16 @@
|
|
|
168
169
|
@apply pb-0;
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
|
-
}
|
|
172
172
|
|
|
173
|
-
.choices__list--multiple .choices__item {
|
|
174
|
-
|
|
173
|
+
.choices__list--multiple .choices__item {
|
|
174
|
+
@apply rounded-md bg-primary border-0 text-xs py-1 px-2;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
}
|
|
175
177
|
}
|
|
176
178
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
+
|
|
180
|
+
.is-open .choices__inner, .is-flipped.is-open .choices__inner {
|
|
181
|
+
@apply rounded-md;
|
|
179
182
|
}
|
|
180
183
|
|
|
181
184
|
.choices__list {
|
|
@@ -188,7 +191,8 @@
|
|
|
188
191
|
.choices__item {
|
|
189
192
|
@apply w-full;
|
|
190
193
|
}
|
|
191
|
-
|
|
194
|
+
|
|
195
|
+
.choices__item.choices__item--selectable {
|
|
192
196
|
margin-bottom: -0.375rem;
|
|
193
197
|
}
|
|
194
198
|
}
|
|
@@ -201,12 +205,13 @@
|
|
|
201
205
|
}
|
|
202
206
|
|
|
203
207
|
.choices__item {
|
|
204
|
-
@apply inline-
|
|
208
|
+
@apply inline-flex align-middle rounded py-1 px-2.5 text-xs font-semibold mr-1 mb-1 bg-primary-500 border-1 border-solid border-primary-600 text-white ;
|
|
205
209
|
word-break: break-all;
|
|
206
210
|
box-sizing: border-box;
|
|
207
211
|
|
|
208
212
|
&.is-highlighted {
|
|
209
213
|
@apply bg-secondary-500 border-secondary-600;
|
|
214
|
+
|
|
210
215
|
.choices__button {
|
|
211
216
|
@apply border-secondary-600;
|
|
212
217
|
}
|
|
@@ -214,8 +219,8 @@
|
|
|
214
219
|
}
|
|
215
220
|
}
|
|
216
221
|
|
|
217
|
-
&--dropdown {
|
|
218
|
-
@apply invisible absolute z-5 w-full bg-white border-1 border-solid border-gray-300 rounded overflow-hidden break-all top-full;
|
|
222
|
+
&--dropdown[aria-expanded=true] {
|
|
223
|
+
@apply invisible absolute z-5 w-full bg-white border-1 border-solid border-gray-300 rounded-md overflow-hidden break-all top-full;
|
|
219
224
|
will-change: visibility;
|
|
220
225
|
|
|
221
226
|
&.is-active {
|
|
@@ -310,7 +315,6 @@
|
|
|
310
315
|
}
|
|
311
316
|
}
|
|
312
317
|
|
|
313
|
-
|
|
314
318
|
.choices__heading {
|
|
315
319
|
@apply font-semibold p-2.5 border-solid border-gray-200 text-gray-600;
|
|
316
320
|
font-size: inherit;
|
|
@@ -337,3 +341,34 @@
|
|
|
337
341
|
.choices__placeholder {
|
|
338
342
|
@apply opacity-50;
|
|
339
343
|
}
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Choices Size rendering
|
|
347
|
+
*/
|
|
348
|
+
.form-group.-size-small {
|
|
349
|
+
.choices {
|
|
350
|
+
.choices__inner {
|
|
351
|
+
@apply px-2;
|
|
352
|
+
padding-top: 3px;
|
|
353
|
+
min-height: 32px;
|
|
354
|
+
font-size: 14px;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
&[data-type*=select-one] .choices__inner {
|
|
358
|
+
padding-bottom: 1px;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.choices__list--multiple .choices__item {
|
|
362
|
+
@apply py-0.5 px-1 text-xs;
|
|
363
|
+
margin-bottom: 3px;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.choices__input {
|
|
367
|
+
margin-bottom: 1px;
|
|
368
|
+
}
|
|
369
|
+
&[data-type*=select-multiple] .choices__button,
|
|
370
|
+
&[data-type*=text] .choices__button{
|
|
371
|
+
margin: 0 -2px 0 6px;
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
}
|
package/styles/form-edit.css
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
+
.form-edit-container {
|
|
2
|
+
@apply flex flex-col space-y-5;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
.form-edit {
|
|
2
|
-
@apply
|
|
6
|
+
@apply flex space-y-5 space-x-5 pb-5;
|
|
7
|
+
@apply border-b-1 border-solid border-gray-200;
|
|
3
8
|
|
|
4
9
|
&__settings {
|
|
5
|
-
@apply flex-1
|
|
6
|
-
|
|
10
|
+
@apply flex-1 grid grid-cols-3 gap-5;
|
|
7
11
|
> div {
|
|
8
12
|
> .form-group {
|
|
9
|
-
@apply pb-0
|
|
10
|
-
min-width: 25%;
|
|
11
|
-
|
|
12
|
-
&:last-child {
|
|
13
|
-
@apply mb-5;
|
|
14
|
-
}
|
|
13
|
+
@apply pb-0 w-full sm:w-auto;
|
|
15
14
|
|
|
16
15
|
.form-text {
|
|
17
16
|
@apply p-0 h-0 -mb-1;
|
|
@@ -21,24 +20,17 @@
|
|
|
21
20
|
}
|
|
22
21
|
|
|
23
22
|
&__actions {
|
|
24
|
-
@apply flex flex-col justify-
|
|
23
|
+
@apply flex flex-col justify-center;
|
|
24
|
+
|
|
25
25
|
.btn-save {
|
|
26
|
-
@apply
|
|
26
|
+
@apply leading-normal;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
> div {
|
|
30
|
-
@apply flex flex-col
|
|
31
|
-
|
|
32
|
-
> * {
|
|
33
|
-
@apply mb-3;
|
|
34
|
-
}
|
|
30
|
+
@apply flex flex-col space-y-5;
|
|
35
31
|
|
|
36
32
|
> div {
|
|
37
|
-
@apply flex flex-row -
|
|
38
|
-
|
|
39
|
-
> * {
|
|
40
|
-
@apply mx-2;
|
|
41
|
-
}
|
|
33
|
+
@apply flex flex-row space-x-3;
|
|
42
34
|
}
|
|
43
35
|
}
|
|
44
36
|
}
|
package/styles/form.css
CHANGED
|
@@ -23,14 +23,19 @@
|
|
|
23
23
|
@apply mb-5;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
|
|
26
27
|
.form-control {
|
|
27
28
|
@apply appearance-none bg-white leading-normal px-3 py-2 block w-full rounded-md border-1 border-gray-300 shadow-sm;
|
|
29
|
+
}
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
.form-group.-size-small {
|
|
32
|
+
.form-control {
|
|
30
33
|
@apply px-2 py-1 text-sm;
|
|
34
|
+
min-height: 32px;
|
|
31
35
|
}
|
|
32
36
|
}
|
|
33
37
|
|
|
38
|
+
|
|
34
39
|
.form-control:disabled, .form-control[readonly] {
|
|
35
40
|
@apply bg-gray-200 border-transparent shadow-none;
|
|
36
41
|
}
|
|
@@ -148,7 +153,7 @@ textarea.form-control {
|
|
|
148
153
|
}
|
|
149
154
|
|
|
150
155
|
.field-required:after {
|
|
151
|
-
@apply z-
|
|
156
|
+
@apply z-0 ml-1;
|
|
152
157
|
}
|
|
153
158
|
|
|
154
159
|
.formio-component hr,
|
package/styles/index.css
CHANGED
package/styles/modal.css
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
.formio-dialog.formio-dialog-theme-default.component-settings{
|
|
3
3
|
.formio-dialog-close.btn {
|
|
4
4
|
@apply px-4 text-xs text-gray-500 bg-transparent hover:bg-red-600 focus:bg-red-600 hover:text-white focus:text-white focus:shadow-none;
|
|
5
|
+
@apply mt-2 mr-2;
|
|
5
6
|
|
|
6
7
|
&:before {
|
|
7
8
|
@apply text-md p-0 text-current;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
|
|
2
|
+
.react-select-container {
|
|
3
|
+
display: block;
|
|
4
|
+
flex: 1;
|
|
5
|
+
|
|
6
|
+
.react-select__control {
|
|
7
|
+
@apply appearance-none bg-white leading-normal w-full rounded-md border-1 border-gray-300;
|
|
8
|
+
|
|
9
|
+
&--is-focused {
|
|
10
|
+
@apply outline-none border-primary-300 ring ring-primary-50 ring-opacity-50;
|
|
11
|
+
outline-offset: theme('outline.none[1]');
|
|
12
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
|
13
|
+
border-color: theme('colors.blue.600');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.react-select__multi-value {
|
|
18
|
+
@apply bg-primary-600 text-white rounded-md;
|
|
19
|
+
|
|
20
|
+
&__label {
|
|
21
|
+
@apply text-white text-xs py-1 px-2;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__remove {
|
|
26
|
+
@apply opacity-80;
|
|
27
|
+
|
|
28
|
+
&:hover {
|
|
29
|
+
@apply bg-transparent text-white opacity-100;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.react-select__value-container.react-select__value-container--is-multi {
|
|
35
|
+
@apply px-2 py-1;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.form-group.-with-before {
|
|
40
|
+
.react-select-container .react-select__control {
|
|
41
|
+
border-top-left-radius: 0;
|
|
42
|
+
border-bottom-left-radius: 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.form-group.-with-after {
|
|
47
|
+
.react-select-container .react-select__control {
|
|
48
|
+
border-top-right-radius: 0;
|
|
49
|
+
border-bottom-right-radius: 0;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* React Select size rendering
|
|
55
|
+
*/
|
|
56
|
+
.form-group.-size-small {
|
|
57
|
+
.react-select-container {
|
|
58
|
+
.react-select__control {
|
|
59
|
+
min-height: 28px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.react-select__value-container {
|
|
63
|
+
padding-top: 0;
|
|
64
|
+
padding-bottom: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.react-select__indicator {
|
|
68
|
+
padding: 3px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.react-select__multi-value {
|
|
72
|
+
&__label {
|
|
73
|
+
@apply text-white text-xs py-0.5 px-1;
|
|
74
|
+
font-weight: 600;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__remove {
|
|
78
|
+
@apply opacity-80;
|
|
79
|
+
|
|
80
|
+
&:hover {
|
|
81
|
+
@apply bg-transparent text-white opacity-100;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.react-select__input-container {
|
|
87
|
+
margin-top: 1px;
|
|
88
|
+
margin-bottom: 1px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.react-select__placeholder {
|
|
92
|
+
@apply text-gray-500;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.react-select__option,
|
|
96
|
+
.react-select__placeholder,
|
|
97
|
+
.react-select__single-value {
|
|
98
|
+
@apply text-sm;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.react-select__value-container.react-select__value-container--is-multi {
|
|
102
|
+
@apply px-1 py-0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
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,25 @@
|
|
|
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
|
+
|
|
96
104
|
.table {
|
|
97
105
|
@apply border-t-0 mb-0;
|
|
98
106
|
thead th {
|
|
99
107
|
@apply border-t-0;
|
|
100
108
|
}
|
|
101
109
|
}
|
|
110
|
+
|
|
102
111
|
.pagination-group {
|
|
103
|
-
@apply border-t-1 border-gray-300 p-3;
|
|
112
|
+
@apply border-t-1 border-gray-300 dark:border-gray-700 p-3;
|
|
104
113
|
}
|
|
105
114
|
}
|
|
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
115
|
|
|
135
116
|
.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
|
-
}
|
|
117
|
+
@apply block w-full overflow-x-auto;
|
|
154
118
|
}
|
|
155
|
-
*/
|
|
@@ -0,0 +1,11 @@
|
|
|
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
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "@tsed/config/tsconfig.web.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"baseUrl": ".",
|
|
4
|
+
"composite": true,
|
|
5
|
+
"noEmit": true
|
|
7
6
|
},
|
|
8
|
-
"include": [
|
|
7
|
+
"include": [],
|
|
9
8
|
"references": [
|
|
9
|
+
{
|
|
10
|
+
"path": "./tsconfig.app.json"
|
|
11
|
+
},
|
|
10
12
|
{
|
|
11
13
|
"path": "./tsconfig.node.json"
|
|
12
14
|
}
|
package/tsconfig.node.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
+
"extends": "@tsed/typescript/tsconfig.web.json",
|
|
2
3
|
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
4
|
+
"module": "NodeNext",
|
|
5
|
+
"moduleResolution": "NodeNext",
|
|
6
|
+
"baseUrl": ".",
|
|
7
|
+
"noEmit": true,
|
|
8
|
+
"declaration": false,
|
|
9
|
+
"composite": false
|
|
6
10
|
},
|
|
7
|
-
"include": []
|
|
11
|
+
"include": ["vite.config.mts", "tailwind.config.ts"],
|
|
12
|
+
"exclude": ["node_modules", "dist", "src/**/*.spec.ts", "src/**/*.spec.tsx"]
|
|
8
13
|
}
|
package/vite.config.mts
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {fileURLToPath} from "node:url";
|
|
2
|
+
// @ts-ignore
|
|
3
|
+
import compile from "lodash/template";
|
|
4
|
+
import {globbySync} from "globby";
|
|
5
|
+
import {extname, relative} from "path";
|
|
6
|
+
import preserveDirectives from "rollup-preserve-directives";
|
|
7
|
+
import {defineConfig} from "vite";
|
|
8
|
+
import dts from "vite-plugin-dts";
|
|
9
|
+
import {resolve} from "node:path";
|
|
10
|
+
|
|
11
|
+
const ejsPlugin = () => {
|
|
12
|
+
const opts = {
|
|
13
|
+
evaluate: /\{%([\s\S]+?)%\}/g,
|
|
14
|
+
interpolate: /\{\{([\s\S]+?)\}\}/g,
|
|
15
|
+
escape: /\{\{\{([\s\S]+?)\}\}\}/g,
|
|
16
|
+
variable: "ctx"
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
return {
|
|
20
|
+
name: "vite-plugin-ejs",
|
|
21
|
+
transform(src: string, id: string) {
|
|
22
|
+
// Vérifie si le fichier est un fichier .ejs
|
|
23
|
+
if (id.endsWith(".ejs")) {
|
|
24
|
+
const template = compile(src, opts);
|
|
25
|
+
|
|
26
|
+
// Renvoie le contenu JavaScript
|
|
27
|
+
return {
|
|
28
|
+
code: `export default ${template.toString()}`,
|
|
29
|
+
map: null
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// https://vitejs.dev/config/
|
|
37
|
+
export default defineConfig({
|
|
38
|
+
plugins: [
|
|
39
|
+
ejsPlugin(),
|
|
40
|
+
dts({
|
|
41
|
+
tsconfigPath: "./tsconfig.app.json",
|
|
42
|
+
aliasesExclude: [],
|
|
43
|
+
include: ["src/**/*.{ts,tsx}"],
|
|
44
|
+
exclude: ["**/*.spec.{ts,tsx}", "**/*.stories.{ts,tsx}", "**/__*__/**"]
|
|
45
|
+
})
|
|
46
|
+
],
|
|
47
|
+
resolve: {
|
|
48
|
+
alias: {}
|
|
49
|
+
},
|
|
50
|
+
build: {
|
|
51
|
+
sourcemap: true,
|
|
52
|
+
lib: {
|
|
53
|
+
entry: resolve(import.meta.dirname, "src/index.ts"),
|
|
54
|
+
formats: ["es"]
|
|
55
|
+
},
|
|
56
|
+
copyPublicDir: false,
|
|
57
|
+
rollupOptions: {
|
|
58
|
+
external: (source, importer) => {
|
|
59
|
+
return source.includes("node_modules");
|
|
60
|
+
},
|
|
61
|
+
plugins: [preserveDirectives() as any],
|
|
62
|
+
input: Object.fromEntries(
|
|
63
|
+
globbySync("src/**/*.{ts,tsx}", {
|
|
64
|
+
ignore: ["**/*.spec.{ts,tsx}", "**/*.stories.{ts,tsx}", "**/__*__/**"]
|
|
65
|
+
}).map((file) => {
|
|
66
|
+
return [
|
|
67
|
+
// The name of the entry point
|
|
68
|
+
// src/nested/foo.ts becomes nested/foo
|
|
69
|
+
relative("src", file.slice(0, file.length - extname(file).length)),
|
|
70
|
+
// The absolute path to the entry file
|
|
71
|
+
// src/nested/foo.ts becomes /project/src/nested/foo.ts
|
|
72
|
+
fileURLToPath(new URL(file, import.meta.url))
|
|
73
|
+
];
|
|
74
|
+
})
|
|
75
|
+
),
|
|
76
|
+
output: {
|
|
77
|
+
assetFileNames: "assets/[name][extname]",
|
|
78
|
+
chunkFileNames: "chunks/[name].js",
|
|
79
|
+
entryFileNames: "[name].js",
|
|
80
|
+
globals: {
|
|
81
|
+
react: "React"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
package/.eslintignore
DELETED