create-nextjs-cms 0.5.21 → 0.5.24
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/package.json +3 -5
- package/templates/default/_gitignore +1 -1
- package/templates/default/app/(auth)/auth/login/LoginPage.tsx +5 -5
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/LICENSE +191 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/README.md +118 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/install/build.js +38 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/install/check.js +14 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/channel.js +177 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/colour.js +195 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/composite.js +212 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/constructor.js +499 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/index.d.ts +1971 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/index.js +16 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/input.js +809 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/is.js +143 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/libvips.js +207 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/operation.js +1016 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/output.js +1666 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/resize.js +595 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/sharp.js +121 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/lib/utility.js +291 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/package.json +202 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/binding.gyp +298 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/common.cc +1130 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/common.h +402 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/metadata.cc +346 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/metadata.h +90 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/operations.cc +499 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/operations.h +137 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/pipeline.cc +1814 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/pipeline.h +408 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/sharp.cc +43 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/stats.cc +186 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/stats.h +62 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/utilities.cc +288 -0
- package/templates/default/apps/cms/node_modules/next/node_modules/sharp/src/utilities.h +22 -0
- package/templates/default/apps/cms/node_modules/sharp/LICENSE +191 -0
- package/templates/default/apps/cms/node_modules/sharp/README.md +118 -0
- package/templates/default/apps/cms/node_modules/sharp/install/check.js +41 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/channel.js +174 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/colour.js +180 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/composite.js +210 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/constructor.js +452 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/index.d.ts +1754 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/index.js +16 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/input.js +658 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/is.js +169 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/libvips.js +203 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/operation.js +958 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/output.js +1587 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/resize.js +587 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/sharp.js +114 -0
- package/templates/default/apps/cms/node_modules/sharp/lib/utility.js +296 -0
- package/templates/default/apps/cms/node_modules/sharp/package.json +222 -0
- package/templates/default/apps/cms/node_modules/sharp/src/binding.gyp +280 -0
- package/templates/default/apps/cms/node_modules/sharp/src/common.cc +1091 -0
- package/templates/default/apps/cms/node_modules/sharp/src/common.h +393 -0
- package/templates/default/apps/cms/node_modules/sharp/src/metadata.cc +320 -0
- package/templates/default/apps/cms/node_modules/sharp/src/metadata.h +85 -0
- package/templates/default/apps/cms/node_modules/sharp/src/operations.cc +475 -0
- package/templates/default/apps/cms/node_modules/sharp/src/operations.h +125 -0
- package/templates/default/apps/cms/node_modules/sharp/src/pipeline.cc +1758 -0
- package/templates/default/apps/cms/node_modules/sharp/src/pipeline.h +393 -0
- package/templates/default/apps/cms/node_modules/sharp/src/sharp.cc +40 -0
- package/templates/default/apps/cms/node_modules/sharp/src/stats.cc +183 -0
- package/templates/default/apps/cms/node_modules/sharp/src/stats.h +59 -0
- package/templates/default/apps/cms/node_modules/sharp/src/utilities.cc +269 -0
- package/templates/default/apps/cms/node_modules/sharp/src/utilities.h +19 -0
- package/templates/default/components/AdminCard.tsx +1 -1
- package/templates/default/components/AdminsPage.tsx +1 -1
- package/templates/default/components/AdvancedSettingsPage.tsx +1 -1
- package/templates/default/components/AnalyticsPage.tsx +1 -1
- package/templates/default/components/BrowsePage.tsx +2 -2
- package/templates/default/components/CategorizedSectionPage.tsx +3 -3
- package/templates/default/components/CategoryDeleteConfirmPage.tsx +4 -4
- package/templates/default/components/CategorySectionSelectInput.tsx +1 -1
- package/templates/default/components/ContainerBox.tsx +1 -1
- package/templates/default/components/DashboardPage.tsx +1 -1
- package/templates/default/components/EmailCard.tsx +1 -1
- package/templates/default/components/EmailPasswordForm.tsx +2 -2
- package/templates/default/components/EmailQuotaForm.tsx +1 -1
- package/templates/default/components/EmailsPage.tsx +1 -1
- package/templates/default/components/GalleryPhoto.tsx +1 -1
- package/templates/default/components/ItemEditPage.tsx +2 -2
- package/templates/default/components/Layout.tsx +1 -1
- package/templates/default/components/LogPage.tsx +1 -1
- package/templates/default/components/Navbar.tsx +2 -2
- package/templates/default/components/NavbarAlt.tsx +6 -6
- package/templates/default/components/NewAdminForm.tsx +2 -2
- package/templates/default/components/NewEmailForm.tsx +3 -3
- package/templates/default/components/NewPage.tsx +2 -2
- package/templates/default/components/NewVariantComponent.tsx +1 -1
- package/templates/default/components/ProgressBar.tsx +46 -22
- package/templates/default/components/SectionItemCard.tsx +1 -1
- package/templates/default/components/SectionItemStatusBadge.tsx +1 -1
- package/templates/default/components/SectionPage.tsx +2 -2
- package/templates/default/components/SelectBox.tsx +2 -2
- package/templates/default/components/SettingsPage.tsx +1 -1
- package/templates/default/components/Sidebar.tsx +3 -3
- package/templates/default/components/VariantEditPage.tsx +2 -2
- package/templates/default/components/form/DateRangeFormInput.tsx +8 -6
- package/templates/default/components/form/Form.tsx +1 -1
- package/templates/default/components/form/FormInputElement.tsx +1 -1
- package/templates/default/components/form/helpers/{_section-hot-reload.ts → _section-hot-reload.js} +1 -1
- package/templates/default/components/form/helpers/util.ts +1 -1
- package/templates/default/components/form/inputs/ColorFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/DateFormInput.tsx +82 -34
- package/templates/default/components/form/inputs/DocumentFormInput.tsx +3 -3
- package/templates/default/components/form/inputs/MultipleSelectFormInput.tsx +40 -107
- package/templates/default/components/form/inputs/NumberFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/PasswordFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/PhotoFormInput.tsx +4 -4
- package/templates/default/components/form/inputs/RichTextFormInput.tsx +2 -0
- package/templates/default/components/form/inputs/SelectFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/TagsFormInput.tsx +115 -26
- package/templates/default/components/form/inputs/TextFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/TextareaFormInput.tsx +1 -1
- package/templates/default/components/form/inputs/VideoFormInput.tsx +3 -3
- package/templates/default/components/multi-select.tsx +1144 -0
- package/templates/default/components/ui/badge.tsx +16 -12
- package/templates/default/components/ui/button.tsx +35 -30
- package/templates/default/components/ui/calendar.tsx +145 -47
- package/templates/default/components/ui/card.tsx +1 -1
- package/templates/default/components/ui/checkbox.tsx +1 -1
- package/templates/default/components/ui/command.tsx +184 -0
- package/templates/default/components/ui/dialog.tsx +143 -0
- package/templates/default/components/ui/dropdown-menu.tsx +6 -6
- package/templates/default/components/ui/input.tsx +1 -1
- package/templates/default/components/ui/popover.tsx +39 -22
- package/templates/default/components/ui/progress.tsx +31 -0
- package/templates/default/components/ui/scroll-area.tsx +2 -2
- package/templates/default/components/ui/select.tsx +150 -149
- package/templates/default/components/ui/separator.tsx +28 -0
- package/templates/default/components/ui/sheet.tsx +1 -1
- package/templates/default/components/ui/switch.tsx +1 -1
- package/templates/default/components/ui/table.tsx +3 -3
- package/templates/default/components/ui/tabs.tsx +2 -2
- package/templates/default/components/ui/toast.tsx +4 -4
- package/templates/default/components.json +8 -3
- package/templates/default/{postinstall.js → lib/postinstall.js} +1 -1
- package/templates/default/lib/utils.ts +6 -0
- package/templates/default/package.json +27 -47
- package/templates/default/postcss.config.mjs +7 -0
- package/templates/default/public/tinymce/CHANGELOG.md +155 -0
- package/templates/default/public/tinymce/README.md +12 -12
- package/templates/default/public/tinymce/bower.json +1 -1
- package/templates/default/public/tinymce/composer.json +2 -2
- package/templates/default/public/tinymce/icons/default/icons.js +40 -32
- package/templates/default/public/tinymce/icons/default/icons.min.js +1 -1
- package/templates/default/public/tinymce/license.md +7 -4
- package/templates/default/public/tinymce/models/dom/model.js +36 -50
- package/templates/default/public/tinymce/models/dom/model.min.js +1 -1
- package/templates/default/public/tinymce/notices.txt +2 -2
- package/templates/default/public/tinymce/package.json +2 -2
- package/templates/default/public/tinymce/plugins/accordion/plugin.js +45 -21
- package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/advlist/plugin.js +8 -6
- package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/anchor/plugin.js +1 -1
- package/templates/default/public/tinymce/plugins/autolink/plugin.js +3 -6
- package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/autoresize/plugin.js +4 -6
- package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/autosave/plugin.js +4 -7
- package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/charmap/plugin.js +8 -8
- package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/code/plugin.js +3 -2
- package/templates/default/public/tinymce/plugins/code/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/codesample/plugin.js +11 -10
- package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +2 -2
- package/templates/default/public/tinymce/plugins/directionality/plugin.js +9 -11
- package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/emoticons/plugin.js +7 -7
- package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +11 -13
- package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg-BG.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr-FR.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he-IL.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu-HU.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko-KR.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb-NO.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-BR.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-PT.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl-SI.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv-SE.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th-TH.js +93 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-CN.js +87 -0
- package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-TW.js +93 -0
- package/templates/default/public/tinymce/plugins/help/plugin.js +15 -17
- package/templates/default/public/tinymce/plugins/help/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/image/plugin.js +34 -32
- package/templates/default/public/tinymce/plugins/image/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/importcss/plugin.js +4 -6
- package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +4 -3
- package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/link/plugin.js +170 -38
- package/templates/default/public/tinymce/plugins/link/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/lists/plugin.js +111 -2053
- package/templates/default/public/tinymce/plugins/lists/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/media/plugin.js +15 -23
- package/templates/default/public/tinymce/plugins/media/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +1 -1
- package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +1 -1
- package/templates/default/public/tinymce/plugins/preview/plugin.js +88 -10
- package/templates/default/public/tinymce/plugins/preview/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/quickbars/plugin.js +9 -9
- package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/save/plugin.js +1 -1
- package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +10 -13
- package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/table/plugin.js +13 -24
- package/templates/default/public/tinymce/plugins/table/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +1 -1
- package/templates/default/public/tinymce/plugins/visualchars/plugin.js +9 -10
- package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/templates/default/public/tinymce/plugins/wordcount/plugin.js +1 -1
- package/templates/default/public/tinymce/skins/content/dark/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/dark/content.ts +3 -0
- package/templates/default/public/tinymce/skins/content/default/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/default/content.ts +3 -0
- package/templates/default/public/tinymce/skins/content/document/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/document/content.ts +3 -0
- package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/tinymce-5/content.ts +3 -0
- package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.ts +3 -0
- package/templates/default/public/tinymce/skins/content/writer/content.min.ts +3 -0
- package/templates/default/public/tinymce/skins/content/writer/content.ts +3 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.css +144 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +144 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.inline.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/content.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide/content.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide/skin.css +923 -449
- package/templates/default/public/tinymce/skins/ui/oxide/skin.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide/skin.min.ts +507 -0
- package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/oxide/skin.ts +507 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +144 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +144 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/content.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +926 -452
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.ts +507 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.ts +507 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +144 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +144 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/content.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +924 -450
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.ts +508 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.ts +508 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +144 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +144 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.ts +116 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +925 -451
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.ts +508 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.ts +9 -0
- package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.ts +508 -0
- package/templates/default/public/tinymce/themes/silver/theme.js +543 -593
- package/templates/default/public/tinymce/themes/silver/theme.min.js +1 -1
- package/templates/default/public/tinymce/tinymce.d.ts +559 -496
- package/templates/default/public/tinymce/tinymce.js +6788 -3964
- package/templates/default/public/tinymce/tinymce.min.js +3 -4
- package/templates/default/styles/globals.css +131 -3
- package/templates/default/tsconfig.json +1 -0
- package/templates/default/.prettierrc.json +0 -19
- package/templates/default/postcss.config.js +0 -6
- package/templates/default/tailwind.config.js +0 -95
|
@@ -196,7 +196,7 @@ function NewVariantComponent(
|
|
|
196
196
|
<div className='mt-5'>
|
|
197
197
|
<button
|
|
198
198
|
className={classNames({
|
|
199
|
-
'w-full rounded bg-
|
|
199
|
+
'w-full rounded bg-linear-to-r p-2 font-bold text-white drop-shadow-sm':
|
|
200
200
|
true,
|
|
201
201
|
'from-emerald-700 via-green-700 to-green-500 dark:from-blue-800 dark:via-sky-800 dark:to-slate-500':
|
|
202
202
|
!isSubmitting,
|
|
@@ -1,24 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
import { styled } from '@mui/material/styles'
|
|
3
|
-
import LinearProgress, { linearProgressClasses } from '@mui/material/LinearProgress'
|
|
1
|
+
'use client'
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
3
|
+
import { useTheme } from 'next-themes'
|
|
4
|
+
import { Progress } from '@/components/ui/progress'
|
|
5
|
+
|
|
6
|
+
export default function ProgressBar({ value, variant }: { value: number; variant?: 'determinate' | 'query' }) {
|
|
7
|
+
const { theme } = useTheme()
|
|
8
|
+
const isDark = theme === 'dark'
|
|
9
|
+
|
|
10
|
+
// Colors that match the original Material-UI version exactly
|
|
11
|
+
const bgColor = isDark ? '#424242' : '#eeeeee' // grey[800] : grey[200]
|
|
12
|
+
const progressColor = isDark ? '#308fe8' : '#1a90ff'
|
|
13
|
+
|
|
14
|
+
// Query variant shows indeterminate animation
|
|
15
|
+
const shouldShowIndeterminate = variant === 'query'
|
|
16
|
+
|
|
17
|
+
if (shouldShowIndeterminate) {
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
className='relative h-[10px] w-full overflow-hidden rounded-[5px]'
|
|
21
|
+
style={{ backgroundColor: bgColor }}
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
className='h-full rounded-[5px]'
|
|
25
|
+
style={{
|
|
26
|
+
backgroundColor: progressColor,
|
|
27
|
+
width: '30%',
|
|
28
|
+
animation: 'progress-indeterminate 1.5s ease-in-out infinite',
|
|
29
|
+
}}
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<div
|
|
37
|
+
className='progress-bar-custom relative w-full'
|
|
38
|
+
style={
|
|
39
|
+
{
|
|
40
|
+
'--progress-bg': bgColor,
|
|
41
|
+
'--progress-fg': progressColor,
|
|
42
|
+
} as React.CSSProperties
|
|
43
|
+
}
|
|
44
|
+
>
|
|
45
|
+
<Progress value={value} className='h-[10px] rounded-[5px] border-0 p-0' />
|
|
46
|
+
</div>
|
|
47
|
+
)
|
|
24
48
|
}
|
|
@@ -67,7 +67,7 @@ export default function SectionItemCard({
|
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
69
|
<>
|
|
70
|
-
<Card className='relative mx-auto w-full max-w-md overflow-hidden rounded-lg border-secondary-foreground pb-[85px] shadow'>
|
|
70
|
+
<Card className='relative mx-auto w-full max-w-md overflow-hidden rounded-lg border-secondary-foreground pb-[85px] shadow-sm'>
|
|
71
71
|
{item.coverPhoto ? (
|
|
72
72
|
<div className='relative h-[200px]'>
|
|
73
73
|
{[0, 1].includes(item.permission) ? <SectionItemStatusBadge status={item.permission} /> : null}
|
|
@@ -6,7 +6,7 @@ const SectionItemStatusBadge = ({ status }: { status: number }) => {
|
|
|
6
6
|
return (
|
|
7
7
|
<Badge
|
|
8
8
|
variant={status === 1 ? 'success' : 'destructive'}
|
|
9
|
-
className='absolute top-3 shadow left-3 z-30 font-bold'
|
|
9
|
+
className='absolute top-3 shadow-sm left-3 z-30 font-bold'
|
|
10
10
|
>
|
|
11
11
|
{status === 1 ? getString('approved') : getString('pending_approval')}
|
|
12
12
|
</Badge>
|
|
@@ -100,8 +100,8 @@ export default function SectionPage({ section }: { section: string }) {
|
|
|
100
100
|
{isError ? <div>{error?.message}</div> : null}
|
|
101
101
|
{data ? (
|
|
102
102
|
<div className='flex w-full flex-col'>
|
|
103
|
-
<div className='relative z-
|
|
104
|
-
<div className='absolute left-0 top-0 z-
|
|
103
|
+
<div className='relative z-1 border-b-2 p-8 pt-12 font-extrabold text-foreground'>
|
|
104
|
+
<div className='absolute left-0 top-0 z-2 h-4 w-full bg-linear-to-r from-emerald-800 via-emerald-400 to-sky-600'></div>
|
|
105
105
|
<h1 className='pb-4 text-4xl'>{data.section?.title}</h1>
|
|
106
106
|
<span>
|
|
107
107
|
/{getString('edit')} {data.section?.title}
|
|
@@ -44,7 +44,7 @@ export default function SelectBox({
|
|
|
44
44
|
<>
|
|
45
45
|
{/*<Listbox.Label className='block text-sm font-medium leading-6 text-gray-900'>Fabrics</Listbox.Label>*/}
|
|
46
46
|
<div className={`relative ${classname}`}>
|
|
47
|
-
<ListboxButton className='relative w-full cursor-default rounded bg-input p-3 pe-1 ps-1 text-start text-foreground shadow-
|
|
47
|
+
<ListboxButton className='relative w-full cursor-default rounded bg-input p-3 pe-1 ps-1 text-start text-foreground shadow-xs outline-0 ring-2 ring-gray-300 hover:ring-gray-400 focus:outline-hidden focus:ring-2 focus:ring-blue-500 sm:text-sm sm:leading-6'>
|
|
48
48
|
<span className='ml-3 block truncate'>{selected?.label ? selected.label : ''}</span>
|
|
49
49
|
<span className='pointer-events-none absolute inset-y-0 right-0 ml-3 flex items-center pr-2'>
|
|
50
50
|
<ChevronDownIcon className='h-5 w-5 text-gray-400' aria-hidden='true' />
|
|
@@ -58,7 +58,7 @@ export default function SelectBox({
|
|
|
58
58
|
leaveFrom='opacity-100'
|
|
59
59
|
leaveTo='opacity-0'
|
|
60
60
|
>
|
|
61
|
-
<ListboxOptions className='absolute z-40 mt-1 max-h-56 w-full overflow-auto rounded-md border bg-background py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-
|
|
61
|
+
<ListboxOptions className='absolute z-40 mt-1 max-h-56 w-full overflow-auto rounded-md border bg-background py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-hidden sm:text-sm'>
|
|
62
62
|
{items.map((item: SelectOption, index: number) => (
|
|
63
63
|
<ListboxOption
|
|
64
64
|
key={`${item.label}-${index}`}
|
|
@@ -113,7 +113,7 @@ export default function SettingsPage() {
|
|
|
113
113
|
return (
|
|
114
114
|
<div>
|
|
115
115
|
<div className='w-full overflow-hidden bg-background'>
|
|
116
|
-
<div className='bg-
|
|
116
|
+
<div className='bg-linear-to-r from-rose-200 via-rose-400 to-sky-400 p-8 font-extrabold text-black'>
|
|
117
117
|
<h1 className='text-3xl'>{getString('accountSettings')}</h1>
|
|
118
118
|
</div>
|
|
119
119
|
<div className='flex w-full flex-col'>
|
|
@@ -32,7 +32,7 @@ const Sidebar = (props: SidebarProps) => {
|
|
|
32
32
|
return (
|
|
33
33
|
<div
|
|
34
34
|
className={classNames({
|
|
35
|
-
'fixed z-20 h-full bg-
|
|
35
|
+
'fixed z-20 h-full bg-linear-to-br from-indigo-600 to-sky-500 text-zinc-50 dark:from-slate-950 dark:to-pink-950 md:translate-x-0':
|
|
36
36
|
true,
|
|
37
37
|
'transition-all duration-100 ease-in-out': true,
|
|
38
38
|
'w-[300px] md:w-[275px]': true,
|
|
@@ -55,7 +55,7 @@ const Sidebar = (props: SidebarProps) => {
|
|
|
55
55
|
LAZEMNI
|
|
56
56
|
</span>
|
|
57
57
|
</div>
|
|
58
|
-
<ScrollArea type='always' className='
|
|
58
|
+
<ScrollArea type='always' className='grow'>
|
|
59
59
|
<ul
|
|
60
60
|
className={classNames({
|
|
61
61
|
'my-2 flex flex-col items-stretch gap-2': true,
|
|
@@ -182,7 +182,7 @@ const Sidebar = (props: SidebarProps) => {
|
|
|
182
182
|
width={40}
|
|
183
183
|
height={40}
|
|
184
184
|
// fill={true}
|
|
185
|
-
className='rounded-full ring ring-foreground'
|
|
185
|
+
className='rounded-full ring-3 ring-foreground'
|
|
186
186
|
/>
|
|
187
187
|
) : (
|
|
188
188
|
<Image
|
|
@@ -154,7 +154,7 @@ export default function VariantEditPage({
|
|
|
154
154
|
<div>
|
|
155
155
|
<div className='w-full overflow-hidden'>
|
|
156
156
|
<form onSubmit={handleSubmit}>
|
|
157
|
-
<div className='bg-
|
|
157
|
+
<div className='bg-linear-to-r from-sky-200 via-emerald-300 to-blue-600 p-8 font-extrabold text-black'>
|
|
158
158
|
{data && data.variant && (
|
|
159
159
|
<>
|
|
160
160
|
<h1 className='pb-4 text-4xl'>{data?.variant?.variant_html_name_en}</h1>
|
|
@@ -200,7 +200,7 @@ export default function VariantEditPage({
|
|
|
200
200
|
<div className='mt-5'>
|
|
201
201
|
<button
|
|
202
202
|
className={classNames({
|
|
203
|
-
'w-full rounded bg-
|
|
203
|
+
'w-full rounded bg-linear-to-r p-2 font-bold text-white drop-shadow-sm':
|
|
204
204
|
true,
|
|
205
205
|
'from-emerald-700 via-green-700 to-green-500': !isSubmitting,
|
|
206
206
|
'from-gray-600 via-gray-500 to-gray-400': isSubmitting,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
|
|
3
3
|
import * as React from 'react'
|
|
4
|
-
import
|
|
5
|
-
import { DateRange } from 'react-day-picker'
|
|
4
|
+
import dayjs from 'dayjs'
|
|
5
|
+
import type { DateRange } from 'react-day-picker'
|
|
6
6
|
|
|
7
7
|
import { cn } from 'nextjs-cms/utils'
|
|
8
8
|
import { Button } from '@/components/ui/button'
|
|
@@ -13,7 +13,9 @@ import { CalendarIcon } from '@radix-ui/react-icons'
|
|
|
13
13
|
export function DatePickerWithRange({ className }: React.HTMLAttributes<HTMLDivElement>) {
|
|
14
14
|
const [date, setDate] = React.useState<DateRange | undefined>({
|
|
15
15
|
from: new Date(2020, 0, 20),
|
|
16
|
-
to:
|
|
16
|
+
to: dayjs(new Date(2023, 0, 20))
|
|
17
|
+
.add(20, 'day')
|
|
18
|
+
.toDate(),
|
|
17
19
|
})
|
|
18
20
|
|
|
19
21
|
return (
|
|
@@ -29,10 +31,10 @@ export function DatePickerWithRange({ className }: React.HTMLAttributes<HTMLDivE
|
|
|
29
31
|
{date?.from ? (
|
|
30
32
|
date.to ? (
|
|
31
33
|
<>
|
|
32
|
-
{
|
|
34
|
+
{dayjs(date.from).format('MMM DD, YYYY')} - {dayjs(date.to).format('MMM DD, YYYY')}
|
|
33
35
|
</>
|
|
34
36
|
) : (
|
|
35
|
-
|
|
37
|
+
dayjs(date.from).format('MMM DD, YYYY')
|
|
36
38
|
)
|
|
37
39
|
) : (
|
|
38
40
|
<span>Pick a date</span>
|
|
@@ -41,7 +43,7 @@ export function DatePickerWithRange({ className }: React.HTMLAttributes<HTMLDivE
|
|
|
41
43
|
</PopoverTrigger>
|
|
42
44
|
<PopoverContent className='w-auto p-0' align='start'>
|
|
43
45
|
<Calendar
|
|
44
|
-
|
|
46
|
+
autoFocus
|
|
45
47
|
mode='range'
|
|
46
48
|
defaultMonth={date?.from}
|
|
47
49
|
selected={date}
|
|
@@ -263,7 +263,7 @@ export default function Form({
|
|
|
263
263
|
className={classNames({
|
|
264
264
|
'w-full': buttonType === 'big',
|
|
265
265
|
'float-end': buttonType === 'small',
|
|
266
|
-
'rounded bg-
|
|
266
|
+
'rounded bg-linear-to-r px-4 py-2 font-bold text-white drop-shadow-sm':
|
|
267
267
|
true,
|
|
268
268
|
'from-emerald-700 via-green-700 to-green-500 dark:from-blue-800 dark:via-sky-800 dark:to-slate-500':
|
|
269
269
|
!isSubmitting,
|
|
@@ -53,7 +53,7 @@ export default function FormInputElement({
|
|
|
53
53
|
})}
|
|
54
54
|
>
|
|
55
55
|
{readonly ? (
|
|
56
|
-
<div className='w-full rounded bg-input p-3 text-foreground shadow-
|
|
56
|
+
<div className='w-full rounded bg-input p-3 text-foreground shadow-xs outline-0'>{value}</div>
|
|
57
57
|
) : (
|
|
58
58
|
<>
|
|
59
59
|
{children}
|
|
@@ -9,7 +9,7 @@ try {
|
|
|
9
9
|
// Try to import the auto-generated file from root
|
|
10
10
|
// Using dynamic require to handle missing file gracefully
|
|
11
11
|
// @/ alias resolves to the app root directory
|
|
12
|
-
const sectionInfo = require('./_section-hot-reload.
|
|
12
|
+
const sectionInfo = require('./_section-hot-reload.js')
|
|
13
13
|
sectionSchemaLastUpdated = sectionInfo?.sectionSchemaLastUpdated ?? Date.now()
|
|
14
14
|
} catch {
|
|
15
15
|
// If file doesn't exist or can't be loaded, use current timestamp as fallback
|
|
@@ -37,7 +37,7 @@ export default function ColorFormInput({ input }: { input: ColorFieldClientConfi
|
|
|
37
37
|
onBlur={field.onBlur}
|
|
38
38
|
value={field.value}
|
|
39
39
|
ref={field.ref}
|
|
40
|
-
className='h-10 w-full rounded bg-input p-1 text-foreground shadow-
|
|
40
|
+
className='h-10 w-full rounded bg-input p-1 text-foreground shadow-xs outline-0 ring-2 ring-blue-300 focus:ring-blue-500'
|
|
41
41
|
/>
|
|
42
42
|
</FormInputElement>
|
|
43
43
|
)
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import dayjs from 'dayjs'
|
|
3
3
|
import FormInputElement from '@/components/form/FormInputElement'
|
|
4
|
-
import { format } from 'date-fns'
|
|
5
|
-
import { cn } from 'nextjs-cms/utils'
|
|
6
4
|
import { Button } from '@/components/ui/button'
|
|
7
5
|
import { Calendar } from '@/components/ui/calendar'
|
|
8
6
|
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover'
|
|
9
|
-
import { CalendarIcon } from '@radix-ui/react-icons'
|
|
7
|
+
import { CalendarIcon, ChevronDownIcon } from '@radix-ui/react-icons'
|
|
10
8
|
import getString from 'nextjs-cms/translations'
|
|
11
9
|
import { DateFieldClientConfig } from 'nextjs-cms/core/fields'
|
|
12
10
|
import { useController, useFormContext } from 'react-hook-form'
|
|
11
|
+
import { Input } from '@/components/ui/input'
|
|
12
|
+
import { Label } from '@/components/ui/label'
|
|
13
|
+
import { Clock2Icon } from 'lucide-react'
|
|
13
14
|
|
|
14
15
|
const seasonEmoji: Record<string, string> = {
|
|
15
16
|
winter: '⛄️',
|
|
@@ -28,23 +29,29 @@ const getSeason = (month: Date): string => {
|
|
|
28
29
|
|
|
29
30
|
const formatCaption = (month: Date, options?: any) => {
|
|
30
31
|
const season = getSeason(month)
|
|
31
|
-
return seasonEmoji[season] + ' ' + format(
|
|
32
|
+
return seasonEmoji[season] + ' ' + dayjs(month).format('MMMM')
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export default function DateFormInput({ input }: { input: DateFieldClientConfig }) {
|
|
35
36
|
const { control } = useFormContext()
|
|
37
|
+
const [open, setOpen] = React.useState(false)
|
|
36
38
|
const {
|
|
37
39
|
field,
|
|
38
40
|
fieldState: { invalid, isTouched, isDirty, error },
|
|
39
41
|
} = useController({
|
|
40
42
|
name: input.name,
|
|
41
43
|
control,
|
|
42
|
-
|
|
44
|
+
defaultValue: input.value
|
|
45
|
+
? dayjs(input.value).isValid()
|
|
46
|
+
? dayjs(input.value).toDate()
|
|
47
|
+
: undefined
|
|
48
|
+
: undefined,
|
|
43
49
|
})
|
|
44
50
|
|
|
45
51
|
const [date, setDate] = React.useState<Date | undefined>(
|
|
46
|
-
dayjs(input.value).isValid() ? dayjs(input.value).toDate() : undefined,
|
|
52
|
+
input.value ? (dayjs(input.value).isValid() ? dayjs(input.value).toDate() : undefined) : undefined,
|
|
47
53
|
)
|
|
54
|
+
|
|
48
55
|
return (
|
|
49
56
|
<FormInputElement
|
|
50
57
|
validationError={error}
|
|
@@ -58,48 +65,89 @@ export default function DateFormInput({ input }: { input: DateFieldClientConfig
|
|
|
58
65
|
disabled={field.disabled}
|
|
59
66
|
name={field.name}
|
|
60
67
|
onBlur={field.onBlur}
|
|
61
|
-
value={
|
|
68
|
+
value={
|
|
69
|
+
date
|
|
70
|
+
? dayjs(date).format(input.format !== 'date' ? 'YYYY-MM-DD HH:mm:ss' : 'YYYY-MM-DD')
|
|
71
|
+
: undefined
|
|
72
|
+
}
|
|
62
73
|
ref={field.ref}
|
|
63
74
|
className='rounded border p-2'
|
|
64
75
|
/>
|
|
65
76
|
|
|
66
|
-
<div className='flex flex-
|
|
67
|
-
<
|
|
68
|
-
<
|
|
69
|
-
<
|
|
70
|
-
variant=
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
77
|
+
<div className='flex flex-row items-start gap-2'>
|
|
78
|
+
<div>
|
|
79
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
80
|
+
<PopoverTrigger asChild>
|
|
81
|
+
<Button variant='outline' id='date' className='justify-between font-normal'>
|
|
82
|
+
<div className='flex items-center gap-2'>
|
|
83
|
+
<CalendarIcon />
|
|
84
|
+
{date ? dayjs(date).format('MMMM D, YYYY') : <span>Pick a date</span>}
|
|
85
|
+
</div>
|
|
86
|
+
<ChevronDownIcon />
|
|
87
|
+
</Button>
|
|
88
|
+
</PopoverTrigger>
|
|
89
|
+
<PopoverContent className='w-auto overflow-hidden p-0' align='start'>
|
|
90
|
+
<Calendar
|
|
91
|
+
endMonth={new Date(2099, 11)}
|
|
92
|
+
mode='single'
|
|
93
|
+
captionLayout='dropdown'
|
|
94
|
+
selected={date}
|
|
95
|
+
onSelect={(newDate) => {
|
|
96
|
+
/**
|
|
97
|
+
* We should preserve the time from the previous date if it is set
|
|
98
|
+
*/
|
|
99
|
+
if (input.format !== 'date') {
|
|
100
|
+
const [hours, minutes, seconds] = dayjs(date)
|
|
101
|
+
.format('HH:mm:ss')
|
|
102
|
+
.split(':')
|
|
103
|
+
.map(Number)
|
|
104
|
+
newDate?.setHours(hours ?? 0, minutes ?? 0, seconds ?? 0, 0)
|
|
105
|
+
}
|
|
106
|
+
setDate(newDate)
|
|
107
|
+
field.onChange(newDate)
|
|
108
|
+
}}
|
|
109
|
+
autoFocus
|
|
110
|
+
className='rounded-lg border'
|
|
111
|
+
formatters={{ formatCaption }}
|
|
112
|
+
/>
|
|
113
|
+
</PopoverContent>
|
|
114
|
+
</Popover>
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
{input.format !== 'date' ? (
|
|
118
|
+
<div className='relative flex items-center gap-2'>
|
|
119
|
+
<Clock2Icon className='text-muted-foreground pointer-events-none absolute left-2.5 size-4 select-none' />
|
|
120
|
+
<Input
|
|
121
|
+
type='time'
|
|
122
|
+
step='1'
|
|
123
|
+
defaultValue={'--:--:--'}
|
|
124
|
+
value={date ? dayjs(date).format('HH:mm:ss') : '--:--:--'}
|
|
125
|
+
onChange={(e) => {
|
|
126
|
+
const time = e.target.value
|
|
127
|
+
if (time && date) {
|
|
128
|
+
const [hours, minutes, seconds] = time.split(':').map(Number)
|
|
129
|
+
const newDate = new Date(date)
|
|
130
|
+
newDate.setHours(hours ?? 0, minutes ?? 0, seconds ?? 0, 0)
|
|
131
|
+
setDate(newDate)
|
|
132
|
+
field.onChange(newDate)
|
|
133
|
+
}
|
|
87
134
|
}}
|
|
88
|
-
|
|
89
|
-
formatters={{ formatCaption }}
|
|
135
|
+
className='appearance-none pl-8 [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none'
|
|
90
136
|
/>
|
|
91
|
-
</
|
|
92
|
-
|
|
137
|
+
</div>
|
|
138
|
+
) : null}
|
|
139
|
+
|
|
93
140
|
<Button
|
|
141
|
+
className='px-1.5'
|
|
94
142
|
onClick={() => {
|
|
95
143
|
setDate(undefined)
|
|
96
144
|
field.onChange(undefined)
|
|
97
145
|
}}
|
|
98
146
|
variant='default'
|
|
99
147
|
type='button'
|
|
100
|
-
size='
|
|
148
|
+
size='default'
|
|
101
149
|
>
|
|
102
|
-
{getString('
|
|
150
|
+
{getString('unset')}
|
|
103
151
|
</Button>
|
|
104
152
|
</div>
|
|
105
153
|
</FormInputElement>
|
|
@@ -44,7 +44,7 @@ export default function DocumentFormInput({
|
|
|
44
44
|
file={input.value}
|
|
45
45
|
width={450}
|
|
46
46
|
height={620}
|
|
47
|
-
className='mb-4 rounded p-1 ring ring-gray-400'
|
|
47
|
+
className='mb-4 rounded p-1 ring-3 ring-gray-400'
|
|
48
48
|
/>
|
|
49
49
|
)
|
|
50
50
|
|
|
@@ -79,7 +79,7 @@ export default function DocumentFormInput({
|
|
|
79
79
|
/>
|
|
80
80
|
<embed
|
|
81
81
|
src={image}
|
|
82
|
-
className='mb-4 max-w-full rounded p-1 ring ring-green-600'
|
|
82
|
+
className='mb-4 max-w-full rounded p-1 ring-3 ring-green-600'
|
|
83
83
|
width={350}
|
|
84
84
|
height={520}
|
|
85
85
|
/>
|
|
@@ -105,7 +105,7 @@ export default function DocumentFormInput({
|
|
|
105
105
|
<div className='w-full flex-1 md:flex-[0.5]'>
|
|
106
106
|
<button
|
|
107
107
|
type='button'
|
|
108
|
-
className='w-full rounded border bg-
|
|
108
|
+
className='w-full rounded border bg-linear-to-r from-blue-700 to-sky-500 p-2 text-center text-sm font-bold uppercase text-white drop-shadow-sm'
|
|
109
109
|
onClick={() => {
|
|
110
110
|
if (fileInputContainerRef.current?.firstChild) {
|
|
111
111
|
;(fileInputContainerRef.current.firstChild as HTMLInputElement).click()
|