@iclips/ui 1.4.13 → 2.0.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/LICENSE +21 -0
- package/MIGRATION-v2.md +214 -0
- package/README.md +106 -0
- package/dist/alert-theme.css +94 -0
- package/dist/assets/illustrations/announcements.png.cjs +2 -0
- package/dist/assets/illustrations/announcements.png.cjs.map +1 -0
- package/dist/assets/illustrations/announcements.png.js +5 -0
- package/dist/assets/illustrations/announcements.png.js.map +1 -0
- package/dist/assets/illustrations/checklist-approved.png.cjs +2 -0
- package/dist/assets/illustrations/checklist-approved.png.cjs.map +1 -0
- package/dist/assets/illustrations/checklist-approved.png.js +5 -0
- package/dist/assets/illustrations/checklist-approved.png.js.map +1 -0
- package/dist/assets/illustrations/client-profile.png.cjs +2 -0
- package/dist/assets/illustrations/client-profile.png.cjs.map +1 -0
- package/dist/assets/illustrations/client-profile.png.js +5 -0
- package/dist/assets/illustrations/client-profile.png.js.map +1 -0
- package/dist/assets/illustrations/contract-agreement.png.cjs +2 -0
- package/dist/assets/illustrations/contract-agreement.png.cjs.map +1 -0
- package/dist/assets/illustrations/contract-agreement.png.js +5 -0
- package/dist/assets/illustrations/contract-agreement.png.js.map +1 -0
- package/dist/assets/illustrations/create-record.png.cjs +2 -0
- package/dist/assets/illustrations/create-record.png.cjs.map +1 -0
- package/dist/assets/illustrations/create-record.png.js +5 -0
- package/dist/assets/illustrations/create-record.png.js.map +1 -0
- package/dist/assets/illustrations/cta-action.png.cjs +2 -0
- package/dist/assets/illustrations/cta-action.png.cjs.map +1 -0
- package/dist/assets/illustrations/cta-action.png.js +5 -0
- package/dist/assets/illustrations/cta-action.png.js.map +1 -0
- package/dist/assets/illustrations/draft-document.png.cjs +2 -0
- package/dist/assets/illustrations/draft-document.png.cjs.map +1 -0
- package/dist/assets/illustrations/draft-document.png.js +5 -0
- package/dist/assets/illustrations/draft-document.png.js.map +1 -0
- package/dist/assets/illustrations/edit-company.png.cjs +2 -0
- package/dist/assets/illustrations/edit-company.png.cjs.map +1 -0
- package/dist/assets/illustrations/edit-company.png.js +5 -0
- package/dist/assets/illustrations/edit-company.png.js.map +1 -0
- package/dist/assets/illustrations/edit-document.png.cjs +2 -0
- package/dist/assets/illustrations/edit-document.png.cjs.map +1 -0
- package/dist/assets/illustrations/edit-document.png.js +5 -0
- package/dist/assets/illustrations/edit-document.png.js.map +1 -0
- package/dist/assets/illustrations/empty-no-results.png.cjs +2 -0
- package/dist/assets/illustrations/empty-no-results.png.cjs.map +1 -0
- package/dist/assets/illustrations/empty-no-results.png.js +5 -0
- package/dist/assets/illustrations/empty-no-results.png.js.map +1 -0
- package/dist/assets/illustrations/empty-not-found.png.cjs +2 -0
- package/dist/assets/illustrations/empty-not-found.png.cjs.map +1 -0
- package/dist/assets/illustrations/empty-not-found.png.js +5 -0
- package/dist/assets/illustrations/empty-not-found.png.js.map +1 -0
- package/dist/assets/illustrations/empty-task-approved.png.cjs +2 -0
- package/dist/assets/illustrations/empty-task-approved.png.cjs.map +1 -0
- package/dist/assets/illustrations/empty-task-approved.png.js +5 -0
- package/dist/assets/illustrations/empty-task-approved.png.js.map +1 -0
- package/dist/assets/illustrations/empty-workflow-status.png.cjs +2 -0
- package/dist/assets/illustrations/empty-workflow-status.png.cjs.map +1 -0
- package/dist/assets/illustrations/empty-workflow-status.png.js +5 -0
- package/dist/assets/illustrations/empty-workflow-status.png.js.map +1 -0
- package/dist/assets/illustrations/integrations.png.cjs +2 -0
- package/dist/assets/illustrations/integrations.png.cjs.map +1 -0
- package/dist/assets/illustrations/integrations.png.js +5 -0
- package/dist/assets/illustrations/integrations.png.js.map +1 -0
- package/dist/assets/illustrations/onboarding-tips.png.cjs +2 -0
- package/dist/assets/illustrations/onboarding-tips.png.cjs.map +1 -0
- package/dist/assets/illustrations/onboarding-tips.png.js +5 -0
- package/dist/assets/illustrations/onboarding-tips.png.js.map +1 -0
- package/dist/assets/illustrations/scheduled-tasks.png.cjs +2 -0
- package/dist/assets/illustrations/scheduled-tasks.png.cjs.map +1 -0
- package/dist/assets/illustrations/scheduled-tasks.png.js +5 -0
- package/dist/assets/illustrations/scheduled-tasks.png.js.map +1 -0
- package/dist/assets/illustrations/search-documents.png.cjs +2 -0
- package/dist/assets/illustrations/search-documents.png.cjs.map +1 -0
- package/dist/assets/illustrations/search-documents.png.js +5 -0
- package/dist/assets/illustrations/search-documents.png.js.map +1 -0
- package/dist/assets/illustrations/success-checkmark.png.cjs +2 -0
- package/dist/assets/illustrations/success-checkmark.png.cjs.map +1 -0
- package/dist/assets/illustrations/success-checkmark.png.js +5 -0
- package/dist/assets/illustrations/success-checkmark.png.js.map +1 -0
- package/dist/components/ui/brand-colors.cjs +2 -0
- package/dist/components/ui/brand-colors.cjs.map +1 -0
- package/dist/components/ui/brand-colors.js +8 -0
- package/dist/components/ui/brand-colors.js.map +1 -0
- package/dist/components/ui/charts/chart.cjs +8 -0
- package/dist/components/ui/charts/chart.cjs.map +1 -0
- package/dist/components/ui/charts/chart.js +214 -0
- package/dist/components/ui/charts/chart.js.map +1 -0
- package/dist/components/ui/charts/donut-chart.cjs +2 -0
- package/dist/components/ui/charts/donut-chart.cjs.map +1 -0
- package/dist/components/ui/charts/donut-chart.js +285 -0
- package/dist/components/ui/charts/donut-chart.js.map +1 -0
- package/dist/components/ui/charts/kpi-card.cjs +2 -0
- package/dist/components/ui/charts/kpi-card.cjs.map +1 -0
- package/dist/components/ui/charts/kpi-card.js +75 -0
- package/dist/components/ui/charts/kpi-card.js.map +1 -0
- package/dist/components/ui/data/advanced-data-table.cjs +2 -0
- package/dist/components/ui/data/advanced-data-table.cjs.map +1 -0
- package/dist/components/ui/data/advanced-data-table.js +69 -0
- package/dist/components/ui/data/advanced-data-table.js.map +1 -0
- package/dist/components/ui/data/comment-system.cjs +2 -0
- package/dist/components/ui/data/comment-system.cjs.map +1 -0
- package/dist/components/ui/data/comment-system.js +492 -0
- package/dist/components/ui/data/comment-system.js.map +1 -0
- package/dist/components/ui/data/data-table-empty-state.cjs +2 -0
- package/dist/components/ui/data/data-table-empty-state.cjs.map +1 -0
- package/dist/components/ui/data/data-table-empty-state.js +40 -0
- package/dist/components/ui/data/data-table-empty-state.js.map +1 -0
- package/dist/components/ui/data/data-table-toolbar.cjs +2 -0
- package/dist/components/ui/data/data-table-toolbar.cjs.map +1 -0
- package/dist/components/ui/data/data-table-toolbar.js +85 -0
- package/dist/components/ui/data/data-table-toolbar.js.map +1 -0
- package/dist/components/ui/data/data-table.cjs +2 -0
- package/dist/components/ui/data/data-table.cjs.map +1 -0
- package/dist/components/ui/data/data-table.js +181 -0
- package/dist/components/ui/data/data-table.js.map +1 -0
- package/dist/components/ui/data/document-editor.cjs +2 -0
- package/dist/components/ui/data/document-editor.cjs.map +1 -0
- package/dist/components/ui/data/document-editor.js +158 -0
- package/dist/components/ui/data/document-editor.js.map +1 -0
- package/dist/components/ui/data/editorial-calendar.cjs +2 -0
- package/dist/components/ui/data/editorial-calendar.cjs.map +1 -0
- package/dist/components/ui/data/editorial-calendar.js +840 -0
- package/dist/components/ui/data/editorial-calendar.js.map +1 -0
- package/dist/components/ui/data/filter-bar.cjs +2 -0
- package/dist/components/ui/data/filter-bar.cjs.map +1 -0
- package/dist/components/ui/data/filter-bar.js +60 -0
- package/dist/components/ui/data/filter-bar.js.map +1 -0
- package/dist/components/ui/data/filter-builder.cjs +2 -0
- package/dist/components/ui/data/filter-builder.cjs.map +1 -0
- package/dist/components/ui/data/filter-builder.js +378 -0
- package/dist/components/ui/data/filter-builder.js.map +1 -0
- package/dist/components/ui/data/filter-chip.cjs +2 -0
- package/dist/components/ui/data/filter-chip.cjs.map +1 -0
- package/dist/components/ui/data/filter-chip.js +39 -0
- package/dist/components/ui/data/filter-chip.js.map +1 -0
- package/dist/components/ui/data/mention-list.cjs +2 -0
- package/dist/components/ui/data/mention-list.cjs.map +1 -0
- package/dist/components/ui/data/mention-list.js +46 -0
- package/dist/components/ui/data/mention-list.js.map +1 -0
- package/dist/components/ui/data/table-pagination.cjs +2 -0
- package/dist/components/ui/data/table-pagination.cjs.map +1 -0
- package/dist/components/ui/data/table-pagination.js +176 -0
- package/dist/components/ui/data/table-pagination.js.map +1 -0
- package/dist/components/ui/data/table-types.cjs +2 -0
- package/dist/components/ui/data/table-types.cjs.map +1 -0
- package/dist/components/ui/data/table-types.js +14 -0
- package/dist/components/ui/data/table-types.js.map +1 -0
- package/dist/components/ui/data/table.cjs +2 -0
- package/dist/components/ui/data/table.cjs.map +1 -0
- package/dist/components/ui/data/table.js +130 -0
- package/dist/components/ui/data/table.js.map +1 -0
- package/dist/components/ui/feedback/alert.cjs +2 -0
- package/dist/components/ui/feedback/alert.cjs.map +1 -0
- package/dist/components/ui/feedback/alert.js +67 -0
- package/dist/components/ui/feedback/alert.js.map +1 -0
- package/dist/components/ui/feedback/empty-state.cjs +2 -0
- package/dist/components/ui/feedback/empty-state.cjs.map +1 -0
- package/dist/components/ui/feedback/empty-state.js +78 -0
- package/dist/components/ui/feedback/empty-state.js.map +1 -0
- package/dist/components/ui/feedback/illustrations.cjs +2 -0
- package/dist/components/ui/feedback/illustrations.cjs.map +1 -0
- package/dist/components/ui/feedback/illustrations.js +157 -0
- package/dist/components/ui/feedback/illustrations.js.map +1 -0
- package/dist/components/ui/feedback/toast.cjs +2 -0
- package/dist/components/ui/feedback/toast.cjs.map +1 -0
- package/dist/components/ui/feedback/toast.js +38 -0
- package/dist/components/ui/feedback/toast.js.map +1 -0
- package/dist/components/ui/forms/calendar.cjs +2 -0
- package/dist/components/ui/forms/calendar.cjs.map +1 -0
- package/dist/components/ui/forms/calendar.js +65 -0
- package/dist/components/ui/forms/calendar.js.map +1 -0
- package/dist/components/ui/forms/checkbox.cjs +2 -0
- package/dist/components/ui/forms/checkbox.cjs.map +1 -0
- package/dist/components/ui/forms/checkbox.js +31 -0
- package/dist/components/ui/forms/checkbox.js.map +1 -0
- package/dist/components/ui/forms/color-picker.cjs +2 -0
- package/dist/components/ui/forms/color-picker.cjs.map +1 -0
- package/dist/components/ui/forms/color-picker.js +151 -0
- package/dist/components/ui/forms/color-picker.js.map +1 -0
- package/dist/components/ui/forms/combobox.cjs +2 -0
- package/dist/components/ui/forms/combobox.cjs.map +1 -0
- package/dist/components/ui/forms/combobox.js +208 -0
- package/dist/components/ui/forms/combobox.js.map +1 -0
- package/dist/components/ui/forms/currency-input.cjs +2 -0
- package/dist/components/ui/forms/currency-input.cjs.map +1 -0
- package/dist/components/ui/forms/currency-input.js +81 -0
- package/dist/components/ui/forms/currency-input.js.map +1 -0
- package/dist/components/ui/forms/date-picker.cjs +2 -0
- package/dist/components/ui/forms/date-picker.cjs.map +1 -0
- package/dist/components/ui/forms/date-picker.js +199 -0
- package/dist/components/ui/forms/date-picker.js.map +1 -0
- package/dist/components/ui/forms/date-range-picker.cjs +2 -0
- package/dist/components/ui/forms/date-range-picker.cjs.map +1 -0
- package/dist/components/ui/forms/date-range-picker.js +305 -0
- package/dist/components/ui/forms/date-range-picker.js.map +1 -0
- package/dist/components/ui/forms/editable-badge.cjs +2 -0
- package/dist/components/ui/forms/editable-badge.cjs.map +1 -0
- package/dist/components/ui/forms/editable-badge.js +137 -0
- package/dist/components/ui/forms/editable-badge.js.map +1 -0
- package/dist/components/ui/forms/file-attachment-list.cjs +2 -0
- package/dist/components/ui/forms/file-attachment-list.cjs.map +1 -0
- package/dist/components/ui/forms/file-attachment-list.js +235 -0
- package/dist/components/ui/forms/file-attachment-list.js.map +1 -0
- package/dist/components/ui/forms/file-upload-zone.cjs +3 -0
- package/dist/components/ui/forms/file-upload-zone.cjs.map +1 -0
- package/dist/components/ui/forms/file-upload-zone.js +142 -0
- package/dist/components/ui/forms/file-upload-zone.js.map +1 -0
- package/dist/components/ui/forms/form.cjs +2 -0
- package/dist/components/ui/forms/form.cjs.map +1 -0
- package/dist/components/ui/forms/form.js +109 -0
- package/dist/components/ui/forms/form.js.map +1 -0
- package/dist/components/ui/forms/input-group.cjs +2 -0
- package/dist/components/ui/forms/input-group.cjs.map +1 -0
- package/dist/components/ui/forms/input-group.js +131 -0
- package/dist/components/ui/forms/input-group.js.map +1 -0
- package/dist/components/ui/forms/input-otp.cjs +2 -0
- package/dist/components/ui/forms/input-otp.cjs.map +1 -0
- package/dist/components/ui/forms/input-otp.js +63 -0
- package/dist/components/ui/forms/input-otp.js.map +1 -0
- package/dist/components/ui/forms/input-validation.cjs +2 -0
- package/dist/components/ui/forms/input-validation.cjs.map +1 -0
- package/dist/components/ui/forms/input-validation.js +55 -0
- package/dist/components/ui/forms/input-validation.js.map +1 -0
- package/dist/components/ui/forms/input.cjs +2 -0
- package/dist/components/ui/forms/input.cjs.map +1 -0
- package/dist/components/ui/forms/input.js +26 -0
- package/dist/components/ui/forms/input.js.map +1 -0
- package/dist/components/ui/forms/month-range-picker.cjs +2 -0
- package/dist/components/ui/forms/month-range-picker.cjs.map +1 -0
- package/dist/components/ui/forms/month-range-picker.js +263 -0
- package/dist/components/ui/forms/month-range-picker.js.map +1 -0
- package/dist/components/ui/forms/multi-select.cjs +2 -0
- package/dist/components/ui/forms/multi-select.cjs.map +1 -0
- package/dist/components/ui/forms/multi-select.js +251 -0
- package/dist/components/ui/forms/multi-select.js.map +1 -0
- package/dist/components/ui/forms/number-input.cjs +2 -0
- package/dist/components/ui/forms/number-input.cjs.map +1 -0
- package/dist/components/ui/forms/number-input.js +220 -0
- package/dist/components/ui/forms/number-input.js.map +1 -0
- package/dist/components/ui/forms/password-input.cjs +2 -0
- package/dist/components/ui/forms/password-input.cjs.map +1 -0
- package/dist/components/ui/forms/password-input.js +43 -0
- package/dist/components/ui/forms/password-input.js.map +1 -0
- package/dist/components/ui/forms/radio-group.cjs +2 -0
- package/dist/components/ui/forms/radio-group.cjs.map +1 -0
- package/dist/components/ui/forms/radio-group.js +41 -0
- package/dist/components/ui/forms/radio-group.js.map +1 -0
- package/dist/components/ui/forms/select.cjs +2 -0
- package/dist/components/ui/forms/select.cjs.map +1 -0
- package/dist/components/ui/forms/select.js +140 -0
- package/dist/components/ui/forms/select.js.map +1 -0
- package/dist/components/ui/forms/slider.cjs +2 -0
- package/dist/components/ui/forms/slider.cjs.map +1 -0
- package/dist/components/ui/forms/slider.js +62 -0
- package/dist/components/ui/forms/slider.js.map +1 -0
- package/dist/components/ui/forms/social-button.cjs +2 -0
- package/dist/components/ui/forms/social-button.cjs.map +1 -0
- package/dist/components/ui/forms/social-button.js +86 -0
- package/dist/components/ui/forms/social-button.js.map +1 -0
- package/dist/components/ui/forms/switch.cjs +2 -0
- package/dist/components/ui/forms/switch.cjs.map +1 -0
- package/dist/components/ui/forms/switch.js +31 -0
- package/dist/components/ui/forms/switch.js.map +1 -0
- package/dist/components/ui/forms/textarea.cjs +2 -0
- package/dist/components/ui/forms/textarea.cjs.map +1 -0
- package/dist/components/ui/forms/textarea.js +22 -0
- package/dist/components/ui/forms/textarea.js.map +1 -0
- package/dist/components/ui/forms/time-picker.cjs +2 -0
- package/dist/components/ui/forms/time-picker.cjs.map +1 -0
- package/dist/components/ui/forms/time-picker.js +195 -0
- package/dist/components/ui/forms/time-picker.js.map +1 -0
- package/dist/components/ui/forms/toggle-group.cjs +2 -0
- package/dist/components/ui/forms/toggle-group.cjs.map +1 -0
- package/dist/components/ui/forms/toggle-group.js +53 -0
- package/dist/components/ui/forms/toggle-group.js.map +1 -0
- package/dist/components/ui/forms/toggle.cjs +2 -0
- package/dist/components/ui/forms/toggle.cjs.map +1 -0
- package/dist/components/ui/forms/toggle.js +40 -0
- package/dist/components/ui/forms/toggle.js.map +1 -0
- package/dist/components/ui/layout/accordion.cjs +2 -0
- package/dist/components/ui/layout/accordion.cjs.map +1 -0
- package/dist/components/ui/layout/accordion.js +53 -0
- package/dist/components/ui/layout/accordion.js.map +1 -0
- package/dist/components/ui/layout/auth-layout.cjs +2 -0
- package/dist/components/ui/layout/auth-layout.cjs.map +1 -0
- package/dist/components/ui/layout/auth-layout.js +74 -0
- package/dist/components/ui/layout/auth-layout.js.map +1 -0
- package/dist/components/ui/layout/card.cjs +2 -0
- package/dist/components/ui/layout/card.cjs.map +1 -0
- package/dist/components/ui/layout/card.js +104 -0
- package/dist/components/ui/layout/card.js.map +1 -0
- package/dist/components/ui/layout/carousel.cjs +2 -0
- package/dist/components/ui/layout/carousel.cjs.map +1 -0
- package/dist/components/ui/layout/carousel.js +189 -0
- package/dist/components/ui/layout/carousel.js.map +1 -0
- package/dist/components/ui/layout/collapsible.cjs +2 -0
- package/dist/components/ui/layout/collapsible.cjs.map +1 -0
- package/dist/components/ui/layout/collapsible.js +30 -0
- package/dist/components/ui/layout/collapsible.js.map +1 -0
- package/dist/components/ui/layout/page-header.cjs +2 -0
- package/dist/components/ui/layout/page-header.cjs.map +1 -0
- package/dist/components/ui/layout/page-header.js +81 -0
- package/dist/components/ui/layout/page-header.js.map +1 -0
- package/dist/components/ui/layout/resizable.cjs +2 -0
- package/dist/components/ui/layout/resizable.cjs.map +1 -0
- package/dist/components/ui/layout/resizable.js +45 -0
- package/dist/components/ui/layout/resizable.js.map +1 -0
- package/dist/components/ui/layout/scroll-area.cjs +2 -0
- package/dist/components/ui/layout/scroll-area.cjs.map +1 -0
- package/dist/components/ui/layout/scroll-area.js +56 -0
- package/dist/components/ui/layout/scroll-area.js.map +1 -0
- package/dist/components/ui/navigation/breadcrumb.cjs +2 -0
- package/dist/components/ui/navigation/breadcrumb.cjs.map +1 -0
- package/dist/components/ui/navigation/breadcrumb.js +94 -0
- package/dist/components/ui/navigation/breadcrumb.js.map +1 -0
- package/dist/components/ui/navigation/navigation-menu.cjs +2 -0
- package/dist/components/ui/navigation/navigation-menu.cjs.map +1 -0
- package/dist/components/ui/navigation/navigation-menu.js +144 -0
- package/dist/components/ui/navigation/navigation-menu.js.map +1 -0
- package/dist/components/ui/navigation/pagination.cjs +2 -0
- package/dist/components/ui/navigation/pagination.cjs.map +1 -0
- package/dist/components/ui/navigation/pagination.js +106 -0
- package/dist/components/ui/navigation/pagination.js.map +1 -0
- package/dist/components/ui/navigation/sidebar.cjs +2 -0
- package/dist/components/ui/navigation/sidebar.cjs.map +1 -0
- package/dist/components/ui/navigation/sidebar.js +579 -0
- package/dist/components/ui/navigation/sidebar.js.map +1 -0
- package/dist/components/ui/navigation/tabs.cjs +2 -0
- package/dist/components/ui/navigation/tabs.cjs.map +1 -0
- package/dist/components/ui/navigation/tabs.js +58 -0
- package/dist/components/ui/navigation/tabs.js.map +1 -0
- package/dist/components/ui/navigation/underline-tabs.cjs +2 -0
- package/dist/components/ui/navigation/underline-tabs.cjs.map +1 -0
- package/dist/components/ui/navigation/underline-tabs.js +109 -0
- package/dist/components/ui/navigation/underline-tabs.js.map +1 -0
- package/dist/components/ui/overlays/alert-dialog.cjs +2 -0
- package/dist/components/ui/overlays/alert-dialog.cjs.map +1 -0
- package/dist/components/ui/overlays/alert-dialog.js +135 -0
- package/dist/components/ui/overlays/alert-dialog.js.map +1 -0
- package/dist/components/ui/overlays/command.cjs +2 -0
- package/dist/components/ui/overlays/command.cjs.map +1 -0
- package/dist/components/ui/overlays/command.js +143 -0
- package/dist/components/ui/overlays/command.js.map +1 -0
- package/dist/components/ui/overlays/context-menu.cjs +2 -0
- package/dist/components/ui/overlays/context-menu.cjs.map +1 -0
- package/dist/components/ui/overlays/context-menu.js +197 -0
- package/dist/components/ui/overlays/context-menu.js.map +1 -0
- package/dist/components/ui/overlays/dialog.cjs +2 -0
- package/dist/components/ui/overlays/dialog.cjs.map +1 -0
- package/dist/components/ui/overlays/dialog.js +112 -0
- package/dist/components/ui/overlays/dialog.js.map +1 -0
- package/dist/components/ui/overlays/drawer.cjs +2 -0
- package/dist/components/ui/overlays/drawer.cjs.map +1 -0
- package/dist/components/ui/overlays/drawer.js +109 -0
- package/dist/components/ui/overlays/drawer.js.map +1 -0
- package/dist/components/ui/overlays/dropdown-menu.cjs +2 -0
- package/dist/components/ui/overlays/dropdown-menu.cjs.map +1 -0
- package/dist/components/ui/overlays/dropdown-menu.js +198 -0
- package/dist/components/ui/overlays/dropdown-menu.js.map +1 -0
- package/dist/components/ui/overlays/hover-card.cjs +2 -0
- package/dist/components/ui/overlays/hover-card.cjs.map +1 -0
- package/dist/components/ui/overlays/hover-card.js +40 -0
- package/dist/components/ui/overlays/hover-card.js.map +1 -0
- package/dist/components/ui/overlays/menubar.cjs +2 -0
- package/dist/components/ui/overlays/menubar.cjs.map +1 -0
- package/dist/components/ui/overlays/menubar.js +213 -0
- package/dist/components/ui/overlays/menubar.js.map +1 -0
- package/dist/components/ui/overlays/popover.cjs +2 -0
- package/dist/components/ui/overlays/popover.cjs.map +1 -0
- package/dist/components/ui/overlays/popover.js +36 -0
- package/dist/components/ui/overlays/popover.js.map +1 -0
- package/dist/components/ui/overlays/sheet.cjs +2 -0
- package/dist/components/ui/overlays/sheet.cjs.map +1 -0
- package/dist/components/ui/overlays/sheet.js +109 -0
- package/dist/components/ui/overlays/sheet.js.map +1 -0
- package/dist/components/ui/overlays/side-panel.cjs +16 -0
- package/dist/components/ui/overlays/side-panel.cjs.map +1 -0
- package/dist/components/ui/overlays/side-panel.js +117 -0
- package/dist/components/ui/overlays/side-panel.js.map +1 -0
- package/dist/components/ui/overlays/tooltip.cjs +2 -0
- package/dist/components/ui/overlays/tooltip.cjs.map +1 -0
- package/dist/components/ui/overlays/tooltip.js +50 -0
- package/dist/components/ui/overlays/tooltip.js.map +1 -0
- package/dist/components/ui/primitives/aspect-ratio.cjs +2 -0
- package/dist/components/ui/primitives/aspect-ratio.cjs.map +1 -0
- package/dist/components/ui/primitives/aspect-ratio.js +10 -0
- package/dist/components/ui/primitives/aspect-ratio.js.map +1 -0
- package/dist/components/ui/primitives/avatar.cjs +2 -0
- package/dist/components/ui/primitives/avatar.cjs.map +1 -0
- package/dist/components/ui/primitives/avatar.js +63 -0
- package/dist/components/ui/primitives/avatar.js.map +1 -0
- package/dist/components/ui/primitives/badge.cjs +2 -0
- package/dist/components/ui/primitives/badge.cjs.map +1 -0
- package/dist/components/ui/primitives/badge.js +50 -0
- package/dist/components/ui/primitives/badge.js.map +1 -0
- package/dist/components/ui/primitives/brand-logo.cjs +2 -0
- package/dist/components/ui/primitives/brand-logo.cjs.map +1 -0
- package/dist/components/ui/primitives/brand-logo.js +74 -0
- package/dist/components/ui/primitives/brand-logo.js.map +1 -0
- package/dist/components/ui/primitives/brand-logo.negative-paths.cjs +2 -0
- package/dist/components/ui/primitives/brand-logo.negative-paths.cjs.map +1 -0
- package/dist/components/ui/primitives/brand-logo.negative-paths.js +15 -0
- package/dist/components/ui/primitives/brand-logo.negative-paths.js.map +1 -0
- package/dist/components/ui/primitives/brand-logo.positive-paths.cjs +2 -0
- package/dist/components/ui/primitives/brand-logo.positive-paths.cjs.map +1 -0
- package/dist/components/ui/primitives/brand-logo.positive-paths.js +15 -0
- package/dist/components/ui/primitives/brand-logo.positive-paths.js.map +1 -0
- package/dist/components/ui/primitives/brand-logo.symbol-paths.cjs +2 -0
- package/dist/components/ui/primitives/brand-logo.symbol-paths.cjs.map +1 -0
- package/dist/components/ui/primitives/brand-logo.symbol-paths.js +8 -0
- package/dist/components/ui/primitives/brand-logo.symbol-paths.js.map +1 -0
- package/dist/components/ui/primitives/button.cjs +2 -0
- package/dist/components/ui/primitives/button.cjs.map +1 -0
- package/dist/components/ui/primitives/button.js +52 -0
- package/dist/components/ui/primitives/button.js.map +1 -0
- package/dist/components/ui/primitives/label.cjs +2 -0
- package/dist/components/ui/primitives/label.cjs.map +1 -0
- package/dist/components/ui/primitives/label.js +22 -0
- package/dist/components/ui/primitives/label.js.map +1 -0
- package/dist/components/ui/primitives/progress.cjs +2 -0
- package/dist/components/ui/primitives/progress.cjs.map +1 -0
- package/dist/components/ui/primitives/progress.js +30 -0
- package/dist/components/ui/primitives/progress.js.map +1 -0
- package/dist/components/ui/primitives/separator.cjs +2 -0
- package/dist/components/ui/primitives/separator.cjs.map +1 -0
- package/dist/components/ui/primitives/separator.js +26 -0
- package/dist/components/ui/primitives/separator.js.map +1 -0
- package/dist/components/ui/primitives/skeleton.cjs +2 -0
- package/dist/components/ui/primitives/skeleton.cjs.map +1 -0
- package/dist/components/ui/primitives/skeleton.js +31 -0
- package/dist/components/ui/primitives/skeleton.js.map +1 -0
- package/dist/components/ui/use-controllable-value.cjs +2 -0
- package/dist/components/ui/use-controllable-value.cjs.map +1 -0
- package/dist/components/ui/use-controllable-value.js +14 -0
- package/dist/components/ui/use-controllable-value.js.map +1 -0
- package/dist/components/ui/utils.cjs +2 -0
- package/dist/components/ui/utils.cjs.map +1 -0
- package/dist/components/ui/utils.js +20 -0
- package/dist/components/ui/utils.js.map +1 -0
- package/dist/editor.cjs +2 -0
- package/dist/editor.cjs.map +1 -0
- package/dist/editor.d.cts +114 -0
- package/dist/editor.d.ts +114 -0
- package/dist/editor.js +12 -0
- package/dist/editor.js.map +1 -0
- package/dist/hooks/use-data-table-filters.cjs +2 -0
- package/dist/hooks/use-data-table-filters.cjs.map +1 -0
- package/dist/hooks/use-data-table-filters.js +118 -0
- package/dist/hooks/use-data-table-filters.js.map +1 -0
- package/dist/hooks/use-data-table.cjs +2 -0
- package/dist/hooks/use-data-table.cjs.map +1 -0
- package/dist/hooks/use-data-table.js +84 -0
- package/dist/hooks/use-data-table.js.map +1 -0
- package/dist/hooks/use-mobile.cjs +2 -0
- package/dist/hooks/use-mobile.cjs.map +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/hooks/use-mobile.js.map +1 -0
- package/dist/hooks/use-table-pagination.cjs +2 -0
- package/dist/hooks/use-table-pagination.cjs.map +1 -0
- package/dist/hooks/use-table-pagination.js +44 -0
- package/dist/hooks/use-table-pagination.js.map +1 -0
- package/dist/index.cjs +1 -242
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.cts +2939 -0
- package/dist/index.d.ts +2939 -149
- package/dist/index.js +375 -63715
- package/dist/index.js.map +1 -1
- package/dist/preset.css +352 -0
- package/dist/toast-theme.css +100 -0
- package/dist/tokens.css +471 -0
- package/package.json +144 -45
- package/scripts/codemod-v2-renames.mjs +101 -0
- package/scripts/codemod-v2-toast.mjs +84 -0
- package/dist/components/figma/ImageWithFallback.d.ts +0 -3
- package/dist/components/figma/ImageWithFallback.d.ts.map +0 -1
- package/dist/components/print-templates/ContractTemplate.d.ts +0 -89
- package/dist/components/print-templates/ContractTemplate.d.ts.map +0 -1
- package/dist/components/print-templates/ProposalTemplate.d.ts +0 -41
- package/dist/components/print-templates/ProposalTemplate.d.ts.map +0 -1
- package/dist/components/print-templates/index.d.ts +0 -22
- package/dist/components/print-templates/index.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintFooter.d.ts +0 -21
- package/dist/components/print-templates/shared/PrintFooter.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintHeader.d.ts +0 -38
- package/dist/components/print-templates/shared/PrintHeader.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintInfoGrid.d.ts +0 -22
- package/dist/components/print-templates/shared/PrintInfoGrid.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintSection.d.ts +0 -29
- package/dist/components/print-templates/shared/PrintSection.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintSignature.d.ts +0 -27
- package/dist/components/print-templates/shared/PrintSignature.d.ts.map +0 -1
- package/dist/components/print-templates/shared/PrintTable.d.ts +0 -44
- package/dist/components/print-templates/shared/PrintTable.d.ts.map +0 -1
- package/dist/components/timeline-demo.d.ts +0 -3
- package/dist/components/timeline-demo.d.ts.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -8
- package/dist/components/ui/accordion.d.ts.map +0 -1
- package/dist/components/ui/advanced-data-table.d.ts +0 -100
- package/dist/components/ui/advanced-data-table.d.ts.map +0 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -15
- package/dist/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/components/ui/alert-toast.d.ts +0 -11
- package/dist/components/ui/alert-toast.d.ts.map +0 -1
- package/dist/components/ui/alert.d.ts +0 -10
- package/dist/components/ui/alert.d.ts.map +0 -1
- package/dist/components/ui/app-layout-primary-nav.d.ts +0 -30
- package/dist/components/ui/app-layout-primary-nav.d.ts.map +0 -1
- package/dist/components/ui/app-layout-secondary-nav.d.ts +0 -34
- package/dist/components/ui/app-layout-secondary-nav.d.ts.map +0 -1
- package/dist/components/ui/app-layout-user-menu.d.ts +0 -28
- package/dist/components/ui/app-layout-user-menu.d.ts.map +0 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -4
- package/dist/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/components/ui/auth-layout.d.ts +0 -28
- package/dist/components/ui/auth-layout.d.ts.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -21
- package/dist/components/ui/avatar.d.ts.map +0 -1
- package/dist/components/ui/badge.d.ts +0 -18
- package/dist/components/ui/badge.d.ts.map +0 -1
- package/dist/components/ui/brand-logo.d.ts +0 -7
- package/dist/components/ui/brand-logo.d.ts.map +0 -1
- package/dist/components/ui/breadcrumb.d.ts +0 -12
- package/dist/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/components/ui/button.d.ts +0 -15
- package/dist/components/ui/button.d.ts.map +0 -1
- package/dist/components/ui/calendar.d.ts +0 -31
- package/dist/components/ui/calendar.d.ts.map +0 -1
- package/dist/components/ui/card.d.ts +0 -10
- package/dist/components/ui/card.d.ts.map +0 -1
- package/dist/components/ui/carousel.d.ts +0 -20
- package/dist/components/ui/carousel.d.ts.map +0 -1
- package/dist/components/ui/chart.d.ts +0 -45
- package/dist/components/ui/chart.d.ts.map +0 -1
- package/dist/components/ui/checkbox.d.ts +0 -5
- package/dist/components/ui/checkbox.d.ts.map +0 -1
- package/dist/components/ui/collapsible.d.ts +0 -6
- package/dist/components/ui/collapsible.d.ts.map +0 -1
- package/dist/components/ui/color-picker.d.ts +0 -13
- package/dist/components/ui/color-picker.d.ts.map +0 -1
- package/dist/components/ui/combobox.d.ts +0 -118
- package/dist/components/ui/combobox.d.ts.map +0 -1
- package/dist/components/ui/command.d.ts +0 -17
- package/dist/components/ui/command.d.ts.map +0 -1
- package/dist/components/ui/comment-system.d.ts +0 -43
- package/dist/components/ui/comment-system.d.ts.map +0 -1
- package/dist/components/ui/context-menu.d.ts +0 -26
- package/dist/components/ui/context-menu.d.ts.map +0 -1
- package/dist/components/ui/contract-print.d.ts +0 -82
- package/dist/components/ui/contract-print.d.ts.map +0 -1
- package/dist/components/ui/currency-input.d.ts +0 -11
- package/dist/components/ui/currency-input.d.ts.map +0 -1
- package/dist/components/ui/data-table.d.ts +0 -30
- package/dist/components/ui/data-table.d.ts.map +0 -1
- package/dist/components/ui/date-picker.d.ts +0 -111
- package/dist/components/ui/date-picker.d.ts.map +0 -1
- package/dist/components/ui/date-range-picker.d.ts +0 -128
- package/dist/components/ui/date-range-picker.d.ts.map +0 -1
- package/dist/components/ui/dialog.d.ts +0 -14
- package/dist/components/ui/dialog.d.ts.map +0 -1
- package/dist/components/ui/document-editor.d.ts +0 -14
- package/dist/components/ui/document-editor.d.ts.map +0 -1
- package/dist/components/ui/donut-chart.d.ts +0 -32
- package/dist/components/ui/donut-chart.d.ts.map +0 -1
- package/dist/components/ui/drawer.d.ts +0 -14
- package/dist/components/ui/drawer.d.ts.map +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -26
- package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/components/ui/editable-badge.d.ts +0 -98
- package/dist/components/ui/editable-badge.d.ts.map +0 -1
- package/dist/components/ui/editorial-calendar.d.ts +0 -22
- package/dist/components/ui/editorial-calendar.d.ts.map +0 -1
- package/dist/components/ui/empty-state.d.ts +0 -59
- package/dist/components/ui/empty-state.d.ts.map +0 -1
- package/dist/components/ui/filter-bar.d.ts +0 -16
- package/dist/components/ui/filter-bar.d.ts.map +0 -1
- package/dist/components/ui/filter-builder.d.ts +0 -39
- package/dist/components/ui/filter-builder.d.ts.map +0 -1
- package/dist/components/ui/filter-chip.d.ts +0 -8
- package/dist/components/ui/filter-chip.d.ts.map +0 -1
- package/dist/components/ui/form.d.ts +0 -25
- package/dist/components/ui/form.d.ts.map +0 -1
- package/dist/components/ui/gantt-chart.d.ts +0 -28
- package/dist/components/ui/gantt-chart.d.ts.map +0 -1
- package/dist/components/ui/hover-card.d.ts +0 -7
- package/dist/components/ui/hover-card.d.ts.map +0 -1
- package/dist/components/ui/illustrations.d.ts +0 -76
- package/dist/components/ui/illustrations.d.ts.map +0 -1
- package/dist/components/ui/index.d.ts +0 -91
- package/dist/components/ui/index.d.ts.map +0 -1
- package/dist/components/ui/input-group.d.ts +0 -19
- package/dist/components/ui/input-group.d.ts.map +0 -1
- package/dist/components/ui/input-otp.d.ts +0 -12
- package/dist/components/ui/input-otp.d.ts.map +0 -1
- package/dist/components/ui/input-validation.d.ts +0 -35
- package/dist/components/ui/input-validation.d.ts.map +0 -1
- package/dist/components/ui/input.d.ts +0 -4
- package/dist/components/ui/input.d.ts.map +0 -1
- package/dist/components/ui/kanban-card.d.ts +0 -59
- package/dist/components/ui/kanban-card.d.ts.map +0 -1
- package/dist/components/ui/kanban-generic-card.d.ts +0 -43
- package/dist/components/ui/kanban-generic-card.d.ts.map +0 -1
- package/dist/components/ui/kpi-card.d.ts +0 -45
- package/dist/components/ui/kpi-card.d.ts.map +0 -1
- package/dist/components/ui/label.d.ts +0 -5
- package/dist/components/ui/label.d.ts.map +0 -1
- package/dist/components/ui/lista-anexos-arquivo.d.ts +0 -47
- package/dist/components/ui/lista-anexos-arquivo.d.ts.map +0 -1
- package/dist/components/ui/mention-list.d.ts +0 -7
- package/dist/components/ui/mention-list.d.ts.map +0 -1
- package/dist/components/ui/menubar.d.ts +0 -27
- package/dist/components/ui/menubar.d.ts.map +0 -1
- package/dist/components/ui/month-range-picker.d.ts +0 -71
- package/dist/components/ui/month-range-picker.d.ts.map +0 -1
- package/dist/components/ui/multi-select.d.ts +0 -98
- package/dist/components/ui/multi-select.d.ts.map +0 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -15
- package/dist/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/components/ui/number-input.d.ts +0 -83
- package/dist/components/ui/number-input.d.ts.map +0 -1
- package/dist/components/ui/page-header.d.ts +0 -32
- package/dist/components/ui/page-header.d.ts.map +0 -1
- package/dist/components/ui/pagination.d.ts +0 -14
- package/dist/components/ui/pagination.d.ts.map +0 -1
- package/dist/components/ui/password-input.d.ts +0 -7
- package/dist/components/ui/password-input.d.ts.map +0 -1
- package/dist/components/ui/popover.d.ts +0 -8
- package/dist/components/ui/popover.d.ts.map +0 -1
- package/dist/components/ui/progress-timeline.d.ts +0 -42
- package/dist/components/ui/progress-timeline.d.ts.map +0 -1
- package/dist/components/ui/progress.d.ts +0 -7
- package/dist/components/ui/progress.d.ts.map +0 -1
- package/dist/components/ui/radio-group.d.ts +0 -6
- package/dist/components/ui/radio-group.d.ts.map +0 -1
- package/dist/components/ui/resizable.d.ts +0 -9
- package/dist/components/ui/resizable.d.ts.map +0 -1
- package/dist/components/ui/saved-filters.d.ts +0 -16
- package/dist/components/ui/saved-filters.d.ts.map +0 -1
- package/dist/components/ui/scroll-area.d.ts +0 -8
- package/dist/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/components/ui/select.d.ts +0 -16
- package/dist/components/ui/select.d.ts.map +0 -1
- package/dist/components/ui/separator.d.ts +0 -5
- package/dist/components/ui/separator.d.ts.map +0 -1
- package/dist/components/ui/sheet.d.ts +0 -14
- package/dist/components/ui/sheet.d.ts.map +0 -1
- package/dist/components/ui/side-panel.d.ts +0 -40
- package/dist/components/ui/side-panel.d.ts.map +0 -1
- package/dist/components/ui/sidebar.d.ts +0 -70
- package/dist/components/ui/sidebar.d.ts.map +0 -1
- package/dist/components/ui/skeleton.d.ts +0 -8
- package/dist/components/ui/skeleton.d.ts.map +0 -1
- package/dist/components/ui/slider.d.ts +0 -5
- package/dist/components/ui/slider.d.ts.map +0 -1
- package/dist/components/ui/social-button.d.ts +0 -13
- package/dist/components/ui/social-button.d.ts.map +0 -1
- package/dist/components/ui/switch.d.ts +0 -5
- package/dist/components/ui/switch.d.ts.map +0 -1
- package/dist/components/ui/table-pagination.d.ts +0 -131
- package/dist/components/ui/table-pagination.d.ts.map +0 -1
- package/dist/components/ui/table-types.d.ts +0 -320
- package/dist/components/ui/table-types.d.ts.map +0 -1
- package/dist/components/ui/table.d.ts +0 -34
- package/dist/components/ui/table.d.ts.map +0 -1
- package/dist/components/ui/tabs.d.ts +0 -8
- package/dist/components/ui/tabs.d.ts.map +0 -1
- package/dist/components/ui/task-edit-dialog.d.ts +0 -15
- package/dist/components/ui/task-edit-dialog.d.ts.map +0 -1
- package/dist/components/ui/textarea.d.ts +0 -4
- package/dist/components/ui/textarea.d.ts.map +0 -1
- package/dist/components/ui/time-picker.d.ts +0 -85
- package/dist/components/ui/time-picker.d.ts.map +0 -1
- package/dist/components/ui/timeline.d.ts +0 -63
- package/dist/components/ui/timeline.d.ts.map +0 -1
- package/dist/components/ui/toast.d.ts +0 -5
- package/dist/components/ui/toast.d.ts.map +0 -1
- package/dist/components/ui/toggle-group.d.ts +0 -8
- package/dist/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/components/ui/toggle.d.ts +0 -10
- package/dist/components/ui/toggle.d.ts.map +0 -1
- package/dist/components/ui/tooltip.d.ts +0 -8
- package/dist/components/ui/tooltip.d.ts.map +0 -1
- package/dist/components/ui/underline-tabs.d.ts +0 -29
- package/dist/components/ui/underline-tabs.d.ts.map +0 -1
- package/dist/components/ui/use-mobile.d.ts +0 -2
- package/dist/components/ui/use-mobile.d.ts.map +0 -1
- package/dist/components/ui/use-print-contract.d.ts +0 -37
- package/dist/components/ui/use-print-contract.d.ts.map +0 -1
- package/dist/components/ui/utils.d.ts +0 -3
- package/dist/components/ui/utils.d.ts.map +0 -1
- package/dist/components/ui/zona-upload-arquivo.d.ts +0 -34
- package/dist/components/ui/zona-upload-arquivo.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
|
@@ -0,0 +1,840 @@
|
|
|
1
|
+
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useMemo as Y } from "react";
|
|
3
|
+
import { format as u, startOfMonth as oe, endOfMonth as ce, startOfWeek as U, endOfWeek as K, eachDayOfInterval as me, isToday as A, isSameDay as V, isSameMonth as he, setHours as ue, getHours as _, getMinutes as q, addMonths as pe, addDays as O, subMonths as fe, addHours as J, differenceInMinutes as ge } from "date-fns";
|
|
4
|
+
import { PanelLeftOpen as xe, PanelLeftClose as be, Plus as z, ChevronLeft as ve, ChevronRight as we, Calendar as I, Youtube as Ne, Twitter as ye, Facebook as ke, Linkedin as De, Instagram as Ce, GripVertical as Te, Clock as Me } from "lucide-react";
|
|
5
|
+
import { cn as f } from "../utils.js";
|
|
6
|
+
import { Button as w } from "../primitives/button.js";
|
|
7
|
+
import { Avatar as L, AvatarImage as B, AvatarFallback as G } from "../primitives/avatar.js";
|
|
8
|
+
import { Badge as S } from "../primitives/badge.js";
|
|
9
|
+
import { Dialog as Oe, DialogContent as Se, DialogHeader as Ae, DialogTitle as ze, DialogDescription as He, DialogFooter as je } from "../overlays/dialog.js";
|
|
10
|
+
import { ToggleGroup as Ee, ToggleGroupItem as E } from "../forms/toggle-group.js";
|
|
11
|
+
import { ScrollArea as Ie } from "../layout/scroll-area.js";
|
|
12
|
+
import { DndProvider as Q, useDrag as Pe, useDrop as $ } from "react-dnd";
|
|
13
|
+
import { HTML5Backend as X } from "react-dnd-html5-backend";
|
|
14
|
+
const C = {
|
|
15
|
+
TASK: "task"
|
|
16
|
+
}, Z = {
|
|
17
|
+
instagram: Ce,
|
|
18
|
+
linkedin: De,
|
|
19
|
+
facebook: ke,
|
|
20
|
+
twitter: ye,
|
|
21
|
+
youtube: Ne,
|
|
22
|
+
blog: I,
|
|
23
|
+
other: I
|
|
24
|
+
}, P = {
|
|
25
|
+
idea: "bg-muted text-muted-foreground border-border",
|
|
26
|
+
planned: "bg-info/10 text-info-emphasis border-info/20",
|
|
27
|
+
"in-progress": "bg-warning/10 text-warning-emphasis border-warning/20",
|
|
28
|
+
approval: "bg-accent text-accent-foreground border-border",
|
|
29
|
+
scheduled: "bg-success/10 text-success-emphasis border-success/20",
|
|
30
|
+
published: "bg-foreground text-background border-foreground"
|
|
31
|
+
}, R = [
|
|
32
|
+
"bg-chart-2/15 border-chart-2/30 text-chart-2",
|
|
33
|
+
"bg-chart-3/15 border-chart-3/30 text-chart-3",
|
|
34
|
+
"bg-chart-1/15 border-chart-1/30 text-chart-1",
|
|
35
|
+
"bg-chart-4/15 border-chart-4/30 text-chart-4",
|
|
36
|
+
"bg-chart-5/15 border-chart-5/30 text-chart-5",
|
|
37
|
+
"bg-chart-8/15 border-chart-8/30 text-chart-8"
|
|
38
|
+
], W = (r) => {
|
|
39
|
+
const t = r.split("").reduce((s, d) => s + d.charCodeAt(0), 0);
|
|
40
|
+
return R[t % R.length];
|
|
41
|
+
};
|
|
42
|
+
function H({
|
|
43
|
+
task: r,
|
|
44
|
+
view: t = "month",
|
|
45
|
+
mode: s = "editorial",
|
|
46
|
+
onClick: d,
|
|
47
|
+
style: c
|
|
48
|
+
}) {
|
|
49
|
+
var y;
|
|
50
|
+
const [{ isDragging: a }, l] = Pe(() => ({
|
|
51
|
+
type: C.TASK,
|
|
52
|
+
item: { id: r.id, type: C.TASK },
|
|
53
|
+
collect: (x) => ({
|
|
54
|
+
isDragging: !!x.isDragging()
|
|
55
|
+
})
|
|
56
|
+
}), [r.id]), m = r.channel ? Z[r.channel] : I, n = r.date ? new Date(r.date) : null, o = r.endDate ? new Date(r.endDate) : n ? J(n, 1) : null, h = n ? u(n, "HH:mm") : null, g = n && o ? `${u(n, "HH:mm")} - ${u(o, "HH:mm")}` : h;
|
|
57
|
+
return s === "editorial" && (t === "week" || t === "day") ? /* @__PURE__ */ i(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
ref: l,
|
|
61
|
+
onClick: d,
|
|
62
|
+
className: f(
|
|
63
|
+
"relative group cursor-pointer bg-card border rounded-md shadow-sm hover:shadow-md transition-all mb-3 overflow-hidden",
|
|
64
|
+
a ? "opacity-50" : "opacity-100",
|
|
65
|
+
r.status === "published" ? "border-l-2 border-l-foreground" : "border-l-2 border-l-primary"
|
|
66
|
+
),
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-between px-3 py-2 border-b bg-muted/50", children: [
|
|
69
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
70
|
+
/* @__PURE__ */ e(m, { size: 14, className: "text-muted-foreground" }),
|
|
71
|
+
h && /* @__PURE__ */ e("span", { className: "text-xs font-medium text-muted-foreground", children: h })
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ e("div", { className: "opacity-0 group-hover:opacity-100 text-muted-foreground cursor-grab", children: /* @__PURE__ */ e(Te, { size: 14 }) })
|
|
74
|
+
] }),
|
|
75
|
+
r.imageUrl && /* @__PURE__ */ e("div", { className: "w-full aspect-video bg-muted relative border-b", children: /* @__PURE__ */ e("img", { src: r.imageUrl, alt: "", className: "w-full h-full object-cover" }) }),
|
|
76
|
+
/* @__PURE__ */ i("div", { className: "p-3", children: [
|
|
77
|
+
/* @__PURE__ */ e("h4", { className: "text-sm font-medium text-foreground line-clamp-2 mb-2 leading-snug", children: r.title }),
|
|
78
|
+
/* @__PURE__ */ i("div", { className: "flex items-center justify-between", children: [
|
|
79
|
+
/* @__PURE__ */ e(S, { variant: "outline", className: f("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", P[r.status]), children: r.status }),
|
|
80
|
+
r.assignees && r.assignees.length > 0 && /* @__PURE__ */ e("div", { className: "flex -space-x-2", children: r.assignees.slice(0, 2).map((x, v) => /* @__PURE__ */ i(L, { className: "w-5 h-5 border border-background", children: [
|
|
81
|
+
/* @__PURE__ */ e(B, { src: x.avatar }),
|
|
82
|
+
/* @__PURE__ */ e(G, { className: "text-[8px]", children: x.name[0] })
|
|
83
|
+
] }, v)) })
|
|
84
|
+
] })
|
|
85
|
+
] })
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
) : s === "editorial" && t === "month" ? /* @__PURE__ */ i(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
ref: l,
|
|
92
|
+
onClick: d,
|
|
93
|
+
className: f(
|
|
94
|
+
"relative group cursor-pointer bg-card border rounded-md shadow-sm hover:shadow-md transition-all mb-1 overflow-hidden flex items-center gap-2 p-1.5",
|
|
95
|
+
a ? "opacity-50" : "opacity-100",
|
|
96
|
+
r.status === "published" ? "border-l-2 border-l-foreground" : "border-l-2 border-l-primary"
|
|
97
|
+
),
|
|
98
|
+
children: [
|
|
99
|
+
r.imageUrl && /* @__PURE__ */ e("div", { className: "w-8 h-8 flex-shrink-0 bg-muted rounded overflow-hidden", children: /* @__PURE__ */ e("img", { src: r.imageUrl, alt: "", className: "w-full h-full object-cover" }) }),
|
|
100
|
+
/* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5", children: [
|
|
101
|
+
/* @__PURE__ */ e(m, { size: 12, className: "text-muted-foreground" }),
|
|
102
|
+
/* @__PURE__ */ e("span", { className: "truncate font-medium text-xs", children: r.title })
|
|
103
|
+
] }) })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
) : s === "execution" && (t === "week" || t === "day") ? /* @__PURE__ */ i(
|
|
107
|
+
"div",
|
|
108
|
+
{
|
|
109
|
+
ref: l,
|
|
110
|
+
onClick: d,
|
|
111
|
+
style: c,
|
|
112
|
+
className: f(
|
|
113
|
+
"absolute z-10 rounded-md border shadow-sm p-1.5 text-xs flex flex-col overflow-hidden hover:overflow-visible hover:h-auto! hover:min-h-[min-content] hover:z-50 transition-all cursor-pointer group",
|
|
114
|
+
a ? "opacity-50" : "opacity-100",
|
|
115
|
+
r.color || W(r.id)
|
|
116
|
+
),
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1 mb-0.5 font-semibold opacity-75 text-[10px] leading-none", children: [
|
|
119
|
+
/* @__PURE__ */ e(Me, { size: 10 }),
|
|
120
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: g })
|
|
121
|
+
] }),
|
|
122
|
+
/* @__PURE__ */ e("div", { className: "font-bold leading-tight mb-1 line-clamp-2 text-[11px]", children: r.title }),
|
|
123
|
+
/* @__PURE__ */ i("div", { className: "mt-auto flex items-center justify-between pt-1", children: [
|
|
124
|
+
/* @__PURE__ */ e("div", { className: "flex -space-x-1.5", children: (y = r.assignees) == null ? void 0 : y.map((x, v) => /* @__PURE__ */ i(L, { className: "w-4 h-4 border border-background", children: [
|
|
125
|
+
/* @__PURE__ */ e(B, { src: x.avatar }),
|
|
126
|
+
/* @__PURE__ */ e(G, { className: "text-[8px]", children: x.name[0] })
|
|
127
|
+
] }, v)) }),
|
|
128
|
+
r.status !== "published" && /* @__PURE__ */ e("div", { className: f("w-2 h-2 rounded-full", P[r.status].split(" ")[1].replace("text-", "bg-")) })
|
|
129
|
+
] })
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
) : s === "execution" && t === "month" ? /* @__PURE__ */ i(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
ref: l,
|
|
136
|
+
onClick: d,
|
|
137
|
+
className: f(
|
|
138
|
+
"relative group cursor-pointer rounded px-2 py-1 mb-1 text-xs truncate font-medium transition-all",
|
|
139
|
+
a ? "opacity-50" : "opacity-100",
|
|
140
|
+
r.color || W(r.id).replace("bg-", "bg-opacity-20 bg-")
|
|
141
|
+
// lighter background
|
|
142
|
+
),
|
|
143
|
+
children: [
|
|
144
|
+
h,
|
|
145
|
+
" ",
|
|
146
|
+
r.title
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
) : /* @__PURE__ */ i(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
ref: l,
|
|
153
|
+
onClick: d,
|
|
154
|
+
className: f(
|
|
155
|
+
"relative group cursor-pointer bg-card border rounded-md shadow-sm hover:shadow-md transition-all mb-2 p-2 flex items-start gap-3",
|
|
156
|
+
a ? "opacity-50" : "opacity-100",
|
|
157
|
+
s === "editorial" && (r.status === "published" ? "border-l-2 border-l-foreground" : "border-l-2 border-l-primary")
|
|
158
|
+
),
|
|
159
|
+
children: [
|
|
160
|
+
s === "editorial" && r.imageUrl && /* @__PURE__ */ e("div", { className: "w-10 h-10 flex-shrink-0 bg-muted rounded overflow-hidden", children: /* @__PURE__ */ e("img", { src: r.imageUrl, alt: "", className: "w-full h-full object-cover" }) }),
|
|
161
|
+
/* @__PURE__ */ i("div", { className: "min-w-0 flex-1", children: [
|
|
162
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-1.5 mb-1", children: [
|
|
163
|
+
s === "editorial" && /* @__PURE__ */ e(m, { size: 12, className: "text-muted-foreground" }),
|
|
164
|
+
/* @__PURE__ */ e("span", { className: "truncate font-medium text-sm", children: r.title })
|
|
165
|
+
] }),
|
|
166
|
+
/* @__PURE__ */ e(S, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: r.status })
|
|
167
|
+
] })
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
function Ve({
|
|
173
|
+
days: r,
|
|
174
|
+
tasks: t,
|
|
175
|
+
onDropTask: s,
|
|
176
|
+
onTaskClick: d,
|
|
177
|
+
onAddClick: c,
|
|
178
|
+
view: a
|
|
179
|
+
}) {
|
|
180
|
+
return /* @__PURE__ */ e("div", { className: f(
|
|
181
|
+
"grid h-full min-h-[calc(100vh-200px)] bg-muted/30",
|
|
182
|
+
a === "week" ? "grid-cols-7 divide-x" : "grid-cols-1 border-x"
|
|
183
|
+
), children: r.map((l) => {
|
|
184
|
+
const m = t.filter((n) => n.date && V(new Date(n.date), l)).sort((n, o) => n.date && o.date ? new Date(n.date).getTime() - new Date(o.date).getTime() : 0);
|
|
185
|
+
return /* @__PURE__ */ e(
|
|
186
|
+
$e,
|
|
187
|
+
{
|
|
188
|
+
day: l,
|
|
189
|
+
tasks: m,
|
|
190
|
+
onDropTask: s,
|
|
191
|
+
onTaskClick: d,
|
|
192
|
+
onAddClick: c,
|
|
193
|
+
isToday: A(l)
|
|
194
|
+
},
|
|
195
|
+
l.toISOString()
|
|
196
|
+
);
|
|
197
|
+
}) });
|
|
198
|
+
}
|
|
199
|
+
function $e({ day: r, tasks: t, onDropTask: s, onTaskClick: d, onAddClick: c, isToday: a }) {
|
|
200
|
+
const [{ isOver: l }, m] = $(() => ({
|
|
201
|
+
accept: C.TASK,
|
|
202
|
+
drop: (n) => s(n.id, r),
|
|
203
|
+
collect: (n) => ({
|
|
204
|
+
isOver: !!n.isOver()
|
|
205
|
+
})
|
|
206
|
+
}), [r, s]);
|
|
207
|
+
return /* @__PURE__ */ i(
|
|
208
|
+
"div",
|
|
209
|
+
{
|
|
210
|
+
ref: m,
|
|
211
|
+
className: f(
|
|
212
|
+
"flex flex-col h-full min-h-0 transition-colors",
|
|
213
|
+
l && "bg-accent ring-inset ring-2 ring-ring"
|
|
214
|
+
),
|
|
215
|
+
children: [
|
|
216
|
+
/* @__PURE__ */ i("div", { className: f(
|
|
217
|
+
"p-2 text-center border-b bg-card sticky top-0 z-10",
|
|
218
|
+
a && "bg-accent/50"
|
|
219
|
+
), children: [
|
|
220
|
+
/* @__PURE__ */ e("div", { className: "text-xs font-semibold uppercase text-muted-foreground mb-1", children: u(r, "EEE") }),
|
|
221
|
+
/* @__PURE__ */ e("div", { className: f(
|
|
222
|
+
"w-8 h-8 rounded-full flex items-center justify-center mx-auto text-sm font-medium",
|
|
223
|
+
a ? "bg-primary text-primary-foreground" : "text-foreground bg-muted"
|
|
224
|
+
), children: u(r, "d") })
|
|
225
|
+
] }),
|
|
226
|
+
/* @__PURE__ */ i("div", { className: "flex-1 p-2 space-y-3 overflow-y-auto", children: [
|
|
227
|
+
/* @__PURE__ */ i(
|
|
228
|
+
w,
|
|
229
|
+
{
|
|
230
|
+
variant: "outline",
|
|
231
|
+
size: "sm",
|
|
232
|
+
className: "w-full mb-2 justify-center px-1",
|
|
233
|
+
onClick: () => c(r),
|
|
234
|
+
children: [
|
|
235
|
+
/* @__PURE__ */ e(z, { size: 12, className: "flex-shrink-0" }),
|
|
236
|
+
/* @__PURE__ */ e("span", { className: "truncate ml-1.5 hidden xl:inline", children: "Add Post" }),
|
|
237
|
+
/* @__PURE__ */ e("span", { className: "truncate ml-1.5 inline xl:hidden", children: "Add" })
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
),
|
|
241
|
+
t.map((n) => /* @__PURE__ */ e(
|
|
242
|
+
H,
|
|
243
|
+
{
|
|
244
|
+
task: n,
|
|
245
|
+
view: "week",
|
|
246
|
+
mode: "editorial",
|
|
247
|
+
onClick: () => d(n)
|
|
248
|
+
},
|
|
249
|
+
n.id
|
|
250
|
+
))
|
|
251
|
+
] })
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
);
|
|
255
|
+
}
|
|
256
|
+
function Fe({
|
|
257
|
+
days: r,
|
|
258
|
+
tasks: t,
|
|
259
|
+
onDropTask: s,
|
|
260
|
+
onTaskClick: d,
|
|
261
|
+
onAddClick: c
|
|
262
|
+
}) {
|
|
263
|
+
const a = Array.from({ length: 24 }, (l, m) => m);
|
|
264
|
+
return /* @__PURE__ */ i("div", { className: "flex h-full relative overflow-y-auto bg-card select-none", children: [
|
|
265
|
+
/* @__PURE__ */ i("div", { className: "w-14 flex-shrink-0 border-r bg-card sticky left-0 z-30", children: [
|
|
266
|
+
/* @__PURE__ */ e("div", { className: "h-10 border-b bg-card sticky top-0 z-40 flex-shrink-0" }),
|
|
267
|
+
" ",
|
|
268
|
+
a.map((l) => /* @__PURE__ */ e("div", { className: "h-24 border-b text-right pr-2 pt-2 text-xs text-muted-foreground font-medium relative", children: /* @__PURE__ */ e("span", { className: "-top-2.5 relative", children: u(ue(/* @__PURE__ */ new Date(), l), "ha") }) }, l))
|
|
269
|
+
] }),
|
|
270
|
+
/* @__PURE__ */ i("div", { className: "flex flex-1 min-w-0 relative", children: [
|
|
271
|
+
r.map((l, m) => {
|
|
272
|
+
const n = t.filter((o) => o.date && V(new Date(o.date), l));
|
|
273
|
+
return /* @__PURE__ */ e(
|
|
274
|
+
Ue,
|
|
275
|
+
{
|
|
276
|
+
day: l,
|
|
277
|
+
tasks: n,
|
|
278
|
+
onDropTask: s,
|
|
279
|
+
onTaskClick: d,
|
|
280
|
+
onAddClick: c,
|
|
281
|
+
isLast: m === r.length - 1,
|
|
282
|
+
HOURS: a
|
|
283
|
+
},
|
|
284
|
+
l.toISOString()
|
|
285
|
+
);
|
|
286
|
+
}),
|
|
287
|
+
/* @__PURE__ */ i("div", { className: "absolute inset-0 pointer-events-none z-0", children: [
|
|
288
|
+
/* @__PURE__ */ e("div", { className: "h-10 border-b bg-transparent" }),
|
|
289
|
+
" ",
|
|
290
|
+
a.map((l) => /* @__PURE__ */ e("div", { className: "h-24 border-b border-dashed border-border w-full" }, l))
|
|
291
|
+
] })
|
|
292
|
+
] })
|
|
293
|
+
] });
|
|
294
|
+
}
|
|
295
|
+
function Ue({
|
|
296
|
+
day: r,
|
|
297
|
+
tasks: t,
|
|
298
|
+
onDropTask: s,
|
|
299
|
+
onTaskClick: d,
|
|
300
|
+
onAddClick: c,
|
|
301
|
+
isLast: a,
|
|
302
|
+
HOURS: l
|
|
303
|
+
}) {
|
|
304
|
+
const [{ isOver: m }, n] = $(() => ({
|
|
305
|
+
accept: C.TASK,
|
|
306
|
+
drop: (o) => {
|
|
307
|
+
s(o.id, r);
|
|
308
|
+
},
|
|
309
|
+
collect: (o) => ({
|
|
310
|
+
isOver: !!o.isOver()
|
|
311
|
+
})
|
|
312
|
+
}), [r, s]);
|
|
313
|
+
return /* @__PURE__ */ i(
|
|
314
|
+
"div",
|
|
315
|
+
{
|
|
316
|
+
ref: n,
|
|
317
|
+
className: f(
|
|
318
|
+
"flex-1 relative min-w-[150px]",
|
|
319
|
+
!a && "border-r",
|
|
320
|
+
m && "bg-accent/50"
|
|
321
|
+
),
|
|
322
|
+
children: [
|
|
323
|
+
/* @__PURE__ */ e("div", { className: "sticky top-0 z-20 bg-card border-b h-10 flex items-center justify-center shadow-sm", children: /* @__PURE__ */ i("div", { className: "text-xs font-bold text-muted-foreground", children: [
|
|
324
|
+
u(r, "EEE"),
|
|
325
|
+
" ",
|
|
326
|
+
/* @__PURE__ */ e("span", { className: f("ml-1", A(r) && "text-primary"), children: u(r, "d") })
|
|
327
|
+
] }) }),
|
|
328
|
+
l.map((o) => /* @__PURE__ */ e(
|
|
329
|
+
"div",
|
|
330
|
+
{
|
|
331
|
+
className: "h-24 w-full absolute hover:bg-muted/50 transition-colors cursor-pointer z-10",
|
|
332
|
+
style: { top: `${o * 96 + 40}px` },
|
|
333
|
+
onClick: (h) => {
|
|
334
|
+
h.stopPropagation();
|
|
335
|
+
const g = new Date(r);
|
|
336
|
+
g.setHours(o, 0), c(g);
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
o
|
|
340
|
+
)),
|
|
341
|
+
t.map((o) => {
|
|
342
|
+
const h = o.date ? new Date(o.date) : /* @__PURE__ */ new Date(), g = o.endDate ? new Date(o.endDate) : J(h, 1), y = _(h), x = q(h);
|
|
343
|
+
let v = ge(g, h);
|
|
344
|
+
v < 30 && (v = 30);
|
|
345
|
+
const T = y * 96 + x / 60 * 96 + 40, j = v / 60 * 96;
|
|
346
|
+
return /* @__PURE__ */ e(
|
|
347
|
+
H,
|
|
348
|
+
{
|
|
349
|
+
task: o,
|
|
350
|
+
view: "week",
|
|
351
|
+
mode: "execution",
|
|
352
|
+
onClick: () => d(o),
|
|
353
|
+
style: {
|
|
354
|
+
top: `${T}px`,
|
|
355
|
+
height: `${j}px`,
|
|
356
|
+
left: "4px",
|
|
357
|
+
right: "4px",
|
|
358
|
+
position: "absolute"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
o.id
|
|
362
|
+
);
|
|
363
|
+
})
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
);
|
|
367
|
+
}
|
|
368
|
+
function ee({
|
|
369
|
+
days: r,
|
|
370
|
+
tasks: t,
|
|
371
|
+
currentDate: s,
|
|
372
|
+
onDropTask: d,
|
|
373
|
+
onTaskClick: c,
|
|
374
|
+
onAddClick: a,
|
|
375
|
+
mode: l
|
|
376
|
+
}) {
|
|
377
|
+
return /* @__PURE__ */ e("div", { className: "grid grid-cols-7 auto-rows-fr min-h-[800px]", children: r.map((m) => {
|
|
378
|
+
const n = t.filter(
|
|
379
|
+
(o) => o.date && V(new Date(o.date), m)
|
|
380
|
+
);
|
|
381
|
+
return /* @__PURE__ */ e(
|
|
382
|
+
Ke,
|
|
383
|
+
{
|
|
384
|
+
date: m,
|
|
385
|
+
tasks: n,
|
|
386
|
+
isCurrentMonth: he(m, s),
|
|
387
|
+
onDropTask: d,
|
|
388
|
+
onTaskClick: c,
|
|
389
|
+
onAddClick: a,
|
|
390
|
+
mode: l
|
|
391
|
+
},
|
|
392
|
+
m.toISOString()
|
|
393
|
+
);
|
|
394
|
+
}) });
|
|
395
|
+
}
|
|
396
|
+
function Ke({
|
|
397
|
+
date: r,
|
|
398
|
+
tasks: t,
|
|
399
|
+
isCurrentMonth: s,
|
|
400
|
+
onDropTask: d,
|
|
401
|
+
onTaskClick: c,
|
|
402
|
+
onAddClick: a,
|
|
403
|
+
mode: l
|
|
404
|
+
}) {
|
|
405
|
+
const [{ isOver: m }, n] = $(() => ({
|
|
406
|
+
accept: C.TASK,
|
|
407
|
+
drop: (h) => d(h.id, r),
|
|
408
|
+
collect: (h) => ({
|
|
409
|
+
isOver: !!h.isOver()
|
|
410
|
+
})
|
|
411
|
+
}), [r, d]), o = A(r);
|
|
412
|
+
return /* @__PURE__ */ i(
|
|
413
|
+
"div",
|
|
414
|
+
{
|
|
415
|
+
ref: n,
|
|
416
|
+
className: f(
|
|
417
|
+
"min-h-[120px] border-b border-r p-2 relative transition-colors group flex flex-col",
|
|
418
|
+
!s && "bg-muted/50 text-muted-foreground",
|
|
419
|
+
m && "bg-accent ring-2 ring-inset ring-ring",
|
|
420
|
+
o && "bg-accent/30"
|
|
421
|
+
),
|
|
422
|
+
children: [
|
|
423
|
+
/* @__PURE__ */ i("div", { className: "flex justify-between items-start mb-2", children: [
|
|
424
|
+
/* @__PURE__ */ e("span", { className: f(
|
|
425
|
+
"text-sm font-medium rounded-full w-7 h-7 flex items-center justify-center",
|
|
426
|
+
o ? "bg-primary text-primary-foreground" : "text-foreground"
|
|
427
|
+
), children: u(r, "d") }),
|
|
428
|
+
/* @__PURE__ */ e(
|
|
429
|
+
w,
|
|
430
|
+
{
|
|
431
|
+
variant: "ghost",
|
|
432
|
+
size: "icon",
|
|
433
|
+
className: "h-6 w-6 opacity-0 group-hover:opacity-100 transition-opacity",
|
|
434
|
+
onClick: () => a(r),
|
|
435
|
+
"aria-label": `Agendar publicação em ${u(r, "d/MM")}`,
|
|
436
|
+
children: /* @__PURE__ */ e(z, { size: 14 })
|
|
437
|
+
}
|
|
438
|
+
)
|
|
439
|
+
] }),
|
|
440
|
+
/* @__PURE__ */ e("div", { className: "flex-1 flex flex-col gap-1", children: t.map((h) => /* @__PURE__ */ e(
|
|
441
|
+
H,
|
|
442
|
+
{
|
|
443
|
+
task: h,
|
|
444
|
+
view: "month",
|
|
445
|
+
mode: l,
|
|
446
|
+
onClick: () => c(h)
|
|
447
|
+
},
|
|
448
|
+
h.id
|
|
449
|
+
)) })
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
);
|
|
453
|
+
}
|
|
454
|
+
function te({
|
|
455
|
+
isOpen: r,
|
|
456
|
+
onClose: t,
|
|
457
|
+
task: s,
|
|
458
|
+
onSave: d,
|
|
459
|
+
isNew: c = !1
|
|
460
|
+
}) {
|
|
461
|
+
const [a, l] = N(s || {});
|
|
462
|
+
Y(() => {
|
|
463
|
+
l(s || {});
|
|
464
|
+
}, [s]);
|
|
465
|
+
const m = () => {
|
|
466
|
+
d(a), t();
|
|
467
|
+
};
|
|
468
|
+
return /* @__PURE__ */ e(Oe, { open: r, onOpenChange: (n) => !n && t(), children: /* @__PURE__ */ i(Se, { className: "sm:max-w-[600px]", children: [
|
|
469
|
+
/* @__PURE__ */ i(Ae, { children: [
|
|
470
|
+
/* @__PURE__ */ e(ze, { children: c ? "Create New Task" : "Edit Task" }),
|
|
471
|
+
/* @__PURE__ */ e(He, { children: c ? "Enter the details for the new task below." : "Modify the details of the selected task." })
|
|
472
|
+
] }),
|
|
473
|
+
/* @__PURE__ */ i("div", { className: "grid gap-6 py-4", children: [
|
|
474
|
+
/* @__PURE__ */ i("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
475
|
+
/* @__PURE__ */ e("label", { htmlFor: "title", className: "text-right text-sm font-medium", children: "Title" }),
|
|
476
|
+
/* @__PURE__ */ e(
|
|
477
|
+
"input",
|
|
478
|
+
{
|
|
479
|
+
id: "title",
|
|
480
|
+
className: "col-span-3 flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
481
|
+
value: a.title || "",
|
|
482
|
+
onChange: (n) => l({ ...a, title: n.target.value }),
|
|
483
|
+
placeholder: "e.g. New Feature Announcement"
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
] }),
|
|
487
|
+
/* @__PURE__ */ i("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
488
|
+
/* @__PURE__ */ e("label", { className: "text-right text-sm font-medium", children: "Time" }),
|
|
489
|
+
/* @__PURE__ */ i("div", { className: "col-span-3 flex gap-2 items-center", children: [
|
|
490
|
+
/* @__PURE__ */ e(
|
|
491
|
+
"input",
|
|
492
|
+
{
|
|
493
|
+
type: "date",
|
|
494
|
+
className: "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",
|
|
495
|
+
value: a.date instanceof Date ? u(a.date, "yyyy-MM-dd") : typeof a.date == "string" ? a.date.split("T")[0] : "",
|
|
496
|
+
onChange: (n) => {
|
|
497
|
+
const o = n.target.value, h = a.date instanceof Date ? a.date : /* @__PURE__ */ new Date(), g = /* @__PURE__ */ new Date(`${o}T${u(h, "HH:mm")}`);
|
|
498
|
+
l({ ...a, date: g });
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
),
|
|
502
|
+
/* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: "at" }),
|
|
503
|
+
/* @__PURE__ */ e(
|
|
504
|
+
"input",
|
|
505
|
+
{
|
|
506
|
+
type: "time",
|
|
507
|
+
className: "w-32 flex h-9 rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",
|
|
508
|
+
value: a.date instanceof Date ? u(a.date, "HH:mm") : "09:00",
|
|
509
|
+
onChange: (n) => {
|
|
510
|
+
const o = n.target.value, h = a.date instanceof Date ? u(a.date, "yyyy-MM-dd") : u(/* @__PURE__ */ new Date(), "yyyy-MM-dd");
|
|
511
|
+
l({ ...a, date: /* @__PURE__ */ new Date(`${h}T${o}`) });
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
)
|
|
515
|
+
] })
|
|
516
|
+
] }),
|
|
517
|
+
/* @__PURE__ */ i("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
518
|
+
/* @__PURE__ */ e("label", { htmlFor: "channel", className: "text-right text-sm font-medium", children: "Channel / Category" }),
|
|
519
|
+
/* @__PURE__ */ e(
|
|
520
|
+
"select",
|
|
521
|
+
{
|
|
522
|
+
id: "channel",
|
|
523
|
+
className: "col-span-3 flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",
|
|
524
|
+
value: a.channel || "instagram",
|
|
525
|
+
onChange: (n) => l({ ...a, channel: n.target.value }),
|
|
526
|
+
children: Object.keys(Z).map((n) => /* @__PURE__ */ e("option", { value: n, children: n.charAt(0).toUpperCase() + n.slice(1) }, n))
|
|
527
|
+
}
|
|
528
|
+
)
|
|
529
|
+
] }),
|
|
530
|
+
/* @__PURE__ */ i("div", { className: "grid grid-cols-4 items-center gap-4", children: [
|
|
531
|
+
/* @__PURE__ */ e("label", { htmlFor: "status", className: "text-right text-sm font-medium", children: "Status" }),
|
|
532
|
+
/* @__PURE__ */ e(
|
|
533
|
+
"select",
|
|
534
|
+
{
|
|
535
|
+
id: "status",
|
|
536
|
+
className: "col-span-3 flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm",
|
|
537
|
+
value: a.status || "idea",
|
|
538
|
+
onChange: (n) => l({ ...a, status: n.target.value }),
|
|
539
|
+
children: Object.keys(P).map((n) => /* @__PURE__ */ e("option", { value: n, children: n.charAt(0).toUpperCase() + n.slice(1) }, n))
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
] }),
|
|
543
|
+
/* @__PURE__ */ i("div", { className: "grid grid-cols-4 items-start gap-4", children: [
|
|
544
|
+
/* @__PURE__ */ e("label", { htmlFor: "description", className: "text-right text-sm font-medium pt-2", children: "Description" }),
|
|
545
|
+
/* @__PURE__ */ e(
|
|
546
|
+
"textarea",
|
|
547
|
+
{
|
|
548
|
+
id: "description",
|
|
549
|
+
className: "col-span-3 flex min-h-[80px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
550
|
+
value: a.description || "",
|
|
551
|
+
onChange: (n) => l({ ...a, description: n.target.value }),
|
|
552
|
+
placeholder: "Details about this post..."
|
|
553
|
+
}
|
|
554
|
+
)
|
|
555
|
+
] })
|
|
556
|
+
] }),
|
|
557
|
+
/* @__PURE__ */ i(je, { children: [
|
|
558
|
+
/* @__PURE__ */ e(w, { variant: "outline", onClick: t, children: "Cancel" }),
|
|
559
|
+
/* @__PURE__ */ e(w, { onClick: m, children: "Save Changes" })
|
|
560
|
+
] })
|
|
561
|
+
] }) });
|
|
562
|
+
}
|
|
563
|
+
function re({
|
|
564
|
+
tasks: r,
|
|
565
|
+
onTaskUpdate: t,
|
|
566
|
+
onTaskCreate: s,
|
|
567
|
+
defaultView: d = "month"
|
|
568
|
+
}) {
|
|
569
|
+
const [c, a] = N(/* @__PURE__ */ new Date()), [l, m] = N(d), [n, o] = N(!0), [h, g] = N(!1), [y, x] = N(null), [v, T] = N(!1), j = Y(() => {
|
|
570
|
+
let p, b;
|
|
571
|
+
if (l === "month") {
|
|
572
|
+
const M = oe(c), k = ce(M);
|
|
573
|
+
p = U(M), b = K(k);
|
|
574
|
+
} else l === "week" ? (p = U(c), b = K(c)) : (p = c, b = c);
|
|
575
|
+
return me({ start: p, end: b });
|
|
576
|
+
}, [c, l]), le = r.filter((p) => !p.date), se = r.filter((p) => p.date);
|
|
577
|
+
return {
|
|
578
|
+
currentDate: c,
|
|
579
|
+
view: l,
|
|
580
|
+
setView: m,
|
|
581
|
+
isSidebarOpen: n,
|
|
582
|
+
setIsSidebarOpen: o,
|
|
583
|
+
isModalOpen: h,
|
|
584
|
+
setIsModalOpen: g,
|
|
585
|
+
editingTask: y,
|
|
586
|
+
isNewTask: v,
|
|
587
|
+
calendarDays: j,
|
|
588
|
+
unplannedTasks: le,
|
|
589
|
+
scheduledTasks: se,
|
|
590
|
+
handlePrev: () => {
|
|
591
|
+
a(l === "month" ? fe(c, 1) : l === "week" ? O(c, -7) : O(c, -1));
|
|
592
|
+
},
|
|
593
|
+
handleNext: () => {
|
|
594
|
+
a(l === "month" ? pe(c, 1) : l === "week" ? O(c, 7) : O(c, 1));
|
|
595
|
+
},
|
|
596
|
+
handleToday: () => a(/* @__PURE__ */ new Date()),
|
|
597
|
+
handleDropTask: (p, b, M) => {
|
|
598
|
+
const k = r.find((D) => D.id === p);
|
|
599
|
+
if (k) {
|
|
600
|
+
let D = new Date(b);
|
|
601
|
+
if (l === "month" || M === "editorial")
|
|
602
|
+
if (k.date) {
|
|
603
|
+
const F = new Date(k.date);
|
|
604
|
+
D.setHours(F.getHours(), F.getMinutes());
|
|
605
|
+
} else
|
|
606
|
+
D.setHours(9, 0);
|
|
607
|
+
const de = { ...k, date: D };
|
|
608
|
+
t(de);
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
handleTaskClick: (p) => {
|
|
612
|
+
x(p), T(!1), g(!0);
|
|
613
|
+
},
|
|
614
|
+
handleAddClick: (p) => {
|
|
615
|
+
const b = p || /* @__PURE__ */ new Date();
|
|
616
|
+
_(b) === 0 && q(b) === 0 && b.setHours(9, 0), x({
|
|
617
|
+
date: b,
|
|
618
|
+
status: "idea",
|
|
619
|
+
channel: "instagram"
|
|
620
|
+
}), T(!0), g(!0);
|
|
621
|
+
},
|
|
622
|
+
handleModalSave: (p) => {
|
|
623
|
+
v ? s && s(p) : p.id && t(p), g(!1);
|
|
624
|
+
}
|
|
625
|
+
};
|
|
626
|
+
}
|
|
627
|
+
function ae({ isOpen: r, setIsOpen: t, tasks: s, onAddClick: d, onTaskClick: c, mode: a }) {
|
|
628
|
+
return r ? /* @__PURE__ */ i("div", { className: "w-72 border-r bg-muted/50 flex flex-col transition-all duration-300 flex-shrink-0", children: [
|
|
629
|
+
/* @__PURE__ */ i("div", { className: "p-4 border-b bg-card flex items-center justify-between", children: [
|
|
630
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
|
|
631
|
+
/* @__PURE__ */ e("h3", { className: "font-semibold text-sm text-foreground", children: "Backlog" }),
|
|
632
|
+
/* @__PURE__ */ e(S, { variant: "secondary", className: "bg-muted text-xs", children: s.length })
|
|
633
|
+
] }),
|
|
634
|
+
/* @__PURE__ */ e(w, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => t(!1), "aria-label": "Recolher backlog", children: /* @__PURE__ */ e(be, { size: 16 }) })
|
|
635
|
+
] }),
|
|
636
|
+
/* @__PURE__ */ e("div", { className: "px-4 pt-3 bg-card pb-3 border-b space-y-2", children: /* @__PURE__ */ i(
|
|
637
|
+
w,
|
|
638
|
+
{
|
|
639
|
+
onClick: d,
|
|
640
|
+
variant: "outline",
|
|
641
|
+
size: "sm",
|
|
642
|
+
className: "w-full justify-start pl-2",
|
|
643
|
+
children: [
|
|
644
|
+
/* @__PURE__ */ e(z, { size: 12, className: "mr-1.5" }),
|
|
645
|
+
" New Task"
|
|
646
|
+
]
|
|
647
|
+
}
|
|
648
|
+
) }),
|
|
649
|
+
/* @__PURE__ */ e(Ie, { className: "flex-1 p-3", children: /* @__PURE__ */ e("div", { className: "space-y-2", children: s.length === 0 ? /* @__PURE__ */ e("div", { className: "text-center py-10 px-4 border-2 border-dashed border-border rounded-lg", children: /* @__PURE__ */ e("p", { className: "text-xs text-foreground/70", children: "Nenhum item sem agenda" }) }) : s.map((l) => /* @__PURE__ */ e(
|
|
650
|
+
H,
|
|
651
|
+
{
|
|
652
|
+
task: l,
|
|
653
|
+
view: "backlog",
|
|
654
|
+
mode: a,
|
|
655
|
+
onClick: () => c(l)
|
|
656
|
+
},
|
|
657
|
+
l.id
|
|
658
|
+
)) }) })
|
|
659
|
+
] }) : /* @__PURE__ */ i("div", { className: "border-r bg-card flex flex-col items-center py-4 w-12 flex-shrink-0 cursor-pointer hover:bg-muted transition-colors", onClick: () => t(!0), children: [
|
|
660
|
+
/* @__PURE__ */ e(xe, { className: "text-muted-foreground mb-4", size: 20 }),
|
|
661
|
+
/* @__PURE__ */ e("div", { className: "flex-1 flex items-center justify-center min-h-0", children: /* @__PURE__ */ e("div", { className: "whitespace-nowrap text-xs font-medium text-muted-foreground -rotate-90 transform", children: "BACKLOG" }) }),
|
|
662
|
+
/* @__PURE__ */ e(S, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-primary text-[10px]", children: s.length })
|
|
663
|
+
] });
|
|
664
|
+
}
|
|
665
|
+
function ne({ title: r, onPrev: t, onNext: s, onToday: d, onAdd: c, view: a, setView: l }) {
|
|
666
|
+
return /* @__PURE__ */ i("div", { className: "flex flex-col xl:flex-row items-center justify-between p-4 border-b gap-4 flex-shrink-0 bg-card", children: [
|
|
667
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-4 w-full xl:w-auto justify-between xl:justify-start", children: [
|
|
668
|
+
/* @__PURE__ */ i("div", { className: "flex items-center border rounded-md bg-card shadow-sm", children: [
|
|
669
|
+
/* @__PURE__ */ e(w, { variant: "ghost", size: "icon", onClick: t, className: "h-8 w-8 rounded-r-none", "aria-label": "Anterior", children: /* @__PURE__ */ e(ve, { className: "h-4 w-4" }) }),
|
|
670
|
+
/* @__PURE__ */ e(w, { variant: "ghost", onClick: d, className: "h-8 px-3 rounded-none border-x text-sm font-medium hover:bg-muted", children: "Hoje" }),
|
|
671
|
+
/* @__PURE__ */ e(w, { variant: "ghost", size: "icon", onClick: s, className: "h-8 w-8 rounded-l-none", "aria-label": "Próximo", children: /* @__PURE__ */ e(we, { className: "h-4 w-4" }) })
|
|
672
|
+
] }),
|
|
673
|
+
/* @__PURE__ */ e("h2", { className: "text-lg font-bold text-foreground whitespace-nowrap", children: r })
|
|
674
|
+
] }),
|
|
675
|
+
/* @__PURE__ */ i("div", { className: "flex items-center gap-3 w-full xl:w-auto overflow-x-auto pb-1 xl:pb-0 justify-end", children: [
|
|
676
|
+
/* @__PURE__ */ i(
|
|
677
|
+
Ee,
|
|
678
|
+
{
|
|
679
|
+
type: "single",
|
|
680
|
+
value: a,
|
|
681
|
+
onValueChange: (m) => m && l(m),
|
|
682
|
+
className: "flex-shrink-0",
|
|
683
|
+
"aria-label": "Visualização do calendário",
|
|
684
|
+
children: [
|
|
685
|
+
/* @__PURE__ */ e(E, { value: "month", className: "text-xs", children: "Mês" }),
|
|
686
|
+
/* @__PURE__ */ e(E, { value: "week", className: "text-xs", children: "Semana" }),
|
|
687
|
+
/* @__PURE__ */ e(E, { value: "day", className: "text-xs", children: "Dia" })
|
|
688
|
+
]
|
|
689
|
+
}
|
|
690
|
+
),
|
|
691
|
+
/* @__PURE__ */ i(
|
|
692
|
+
w,
|
|
693
|
+
{
|
|
694
|
+
variant: "default",
|
|
695
|
+
className: "h-9 px-4 flex-shrink-0",
|
|
696
|
+
onClick: c,
|
|
697
|
+
children: [
|
|
698
|
+
/* @__PURE__ */ e(z, { className: "mr-2 h-4 w-4" }),
|
|
699
|
+
" Criar"
|
|
700
|
+
]
|
|
701
|
+
}
|
|
702
|
+
)
|
|
703
|
+
] })
|
|
704
|
+
] });
|
|
705
|
+
}
|
|
706
|
+
function ie({ days: r }) {
|
|
707
|
+
return /* @__PURE__ */ e("div", { className: "grid grid-cols-7 border-b bg-muted/50 flex-shrink-0 divide-x", children: r.slice(0, 7).map((t, s) => /* @__PURE__ */ e("div", { className: "py-2 text-center group", children: /* @__PURE__ */ e("div", { className: f("text-xs font-semibold uppercase tracking-wider", A(t) ? "text-primary" : "text-foreground/70"), children: u(t, "EEE") }) }, s)) });
|
|
708
|
+
}
|
|
709
|
+
function dt(r) {
|
|
710
|
+
const t = re({ ...r, defaultView: "month" });
|
|
711
|
+
return /* @__PURE__ */ e(Q, { backend: X, children: /* @__PURE__ */ i("div", { className: f("flex h-[calc(100vh-100px)] bg-background border rounded-lg overflow-hidden shadow-sm", r.className), children: [
|
|
712
|
+
/* @__PURE__ */ e(
|
|
713
|
+
ae,
|
|
714
|
+
{
|
|
715
|
+
isOpen: t.isSidebarOpen,
|
|
716
|
+
setIsOpen: t.setIsSidebarOpen,
|
|
717
|
+
tasks: t.unplannedTasks,
|
|
718
|
+
onAddClick: () => t.handleAddClick(),
|
|
719
|
+
onTaskClick: t.handleTaskClick,
|
|
720
|
+
mode: "editorial"
|
|
721
|
+
}
|
|
722
|
+
),
|
|
723
|
+
/* @__PURE__ */ i("div", { className: "flex-1 flex flex-col min-w-0 bg-card", children: [
|
|
724
|
+
/* @__PURE__ */ e(
|
|
725
|
+
ne,
|
|
726
|
+
{
|
|
727
|
+
title: t.view === "day" ? u(t.currentDate, "MMM d, yyyy") : u(t.currentDate, "MMMM yyyy"),
|
|
728
|
+
onPrev: t.handlePrev,
|
|
729
|
+
onNext: t.handleNext,
|
|
730
|
+
onToday: t.handleToday,
|
|
731
|
+
onAdd: () => t.handleAddClick(t.currentDate),
|
|
732
|
+
view: t.view,
|
|
733
|
+
setView: t.setView,
|
|
734
|
+
mode: "editorial"
|
|
735
|
+
}
|
|
736
|
+
),
|
|
737
|
+
t.view === "month" && /* @__PURE__ */ e(ie, { days: t.calendarDays }),
|
|
738
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-hidden flex flex-col relative", children: t.view === "month" ? /* @__PURE__ */ e(
|
|
739
|
+
ee,
|
|
740
|
+
{
|
|
741
|
+
days: t.calendarDays,
|
|
742
|
+
tasks: t.scheduledTasks,
|
|
743
|
+
currentDate: t.currentDate,
|
|
744
|
+
onDropTask: (s, d) => t.handleDropTask(s, d, "editorial"),
|
|
745
|
+
onTaskClick: t.handleTaskClick,
|
|
746
|
+
onAddClick: t.handleAddClick,
|
|
747
|
+
mode: "editorial"
|
|
748
|
+
}
|
|
749
|
+
) : /* @__PURE__ */ e(
|
|
750
|
+
Ve,
|
|
751
|
+
{
|
|
752
|
+
days: t.calendarDays,
|
|
753
|
+
tasks: t.scheduledTasks,
|
|
754
|
+
onDropTask: (s, d) => t.handleDropTask(s, d, "editorial"),
|
|
755
|
+
onTaskClick: t.handleTaskClick,
|
|
756
|
+
onAddClick: t.handleAddClick,
|
|
757
|
+
view: t.view
|
|
758
|
+
}
|
|
759
|
+
) })
|
|
760
|
+
] }),
|
|
761
|
+
t.isModalOpen && /* @__PURE__ */ e(
|
|
762
|
+
te,
|
|
763
|
+
{
|
|
764
|
+
isOpen: t.isModalOpen,
|
|
765
|
+
onClose: () => t.setIsModalOpen(!1),
|
|
766
|
+
task: t.editingTask || {},
|
|
767
|
+
onSave: t.handleModalSave,
|
|
768
|
+
isNew: t.isNewTask
|
|
769
|
+
}
|
|
770
|
+
)
|
|
771
|
+
] }) });
|
|
772
|
+
}
|
|
773
|
+
function ot(r) {
|
|
774
|
+
const t = re({ ...r, defaultView: "week" });
|
|
775
|
+
return /* @__PURE__ */ e(Q, { backend: X, children: /* @__PURE__ */ i("div", { className: f("flex h-[calc(100vh-100px)] bg-background border rounded-lg overflow-hidden shadow-sm", r.className), children: [
|
|
776
|
+
/* @__PURE__ */ e(
|
|
777
|
+
ae,
|
|
778
|
+
{
|
|
779
|
+
isOpen: t.isSidebarOpen,
|
|
780
|
+
setIsOpen: t.setIsSidebarOpen,
|
|
781
|
+
tasks: t.unplannedTasks,
|
|
782
|
+
onAddClick: () => t.handleAddClick(),
|
|
783
|
+
onTaskClick: t.handleTaskClick,
|
|
784
|
+
mode: "execution"
|
|
785
|
+
}
|
|
786
|
+
),
|
|
787
|
+
/* @__PURE__ */ i("div", { className: "flex-1 flex flex-col min-w-0 bg-card", children: [
|
|
788
|
+
/* @__PURE__ */ e(
|
|
789
|
+
ne,
|
|
790
|
+
{
|
|
791
|
+
title: t.view === "day" ? u(t.currentDate, "MMM d, yyyy") : u(t.currentDate, "MMMM yyyy"),
|
|
792
|
+
onPrev: t.handlePrev,
|
|
793
|
+
onNext: t.handleNext,
|
|
794
|
+
onToday: t.handleToday,
|
|
795
|
+
onAdd: () => t.handleAddClick(t.currentDate),
|
|
796
|
+
view: t.view,
|
|
797
|
+
setView: t.setView,
|
|
798
|
+
mode: "execution"
|
|
799
|
+
}
|
|
800
|
+
),
|
|
801
|
+
t.view === "month" && /* @__PURE__ */ e(ie, { days: t.calendarDays }),
|
|
802
|
+
/* @__PURE__ */ e("div", { className: "flex-1 overflow-hidden flex flex-col relative", children: t.view === "month" ? /* @__PURE__ */ e(
|
|
803
|
+
ee,
|
|
804
|
+
{
|
|
805
|
+
days: t.calendarDays,
|
|
806
|
+
tasks: t.scheduledTasks,
|
|
807
|
+
currentDate: t.currentDate,
|
|
808
|
+
onDropTask: (s, d) => t.handleDropTask(s, d, "execution"),
|
|
809
|
+
onTaskClick: t.handleTaskClick,
|
|
810
|
+
onAddClick: t.handleAddClick,
|
|
811
|
+
mode: "execution"
|
|
812
|
+
}
|
|
813
|
+
) : /* @__PURE__ */ e(
|
|
814
|
+
Fe,
|
|
815
|
+
{
|
|
816
|
+
days: t.calendarDays,
|
|
817
|
+
tasks: t.scheduledTasks,
|
|
818
|
+
onDropTask: (s, d) => t.handleDropTask(s, d, "execution"),
|
|
819
|
+
onTaskClick: t.handleTaskClick,
|
|
820
|
+
onAddClick: t.handleAddClick
|
|
821
|
+
}
|
|
822
|
+
) })
|
|
823
|
+
] }),
|
|
824
|
+
t.isModalOpen && /* @__PURE__ */ e(
|
|
825
|
+
te,
|
|
826
|
+
{
|
|
827
|
+
isOpen: t.isModalOpen,
|
|
828
|
+
onClose: () => t.setIsModalOpen(!1),
|
|
829
|
+
task: t.editingTask || {},
|
|
830
|
+
onSave: t.handleModalSave,
|
|
831
|
+
isNew: t.isNewTask
|
|
832
|
+
}
|
|
833
|
+
)
|
|
834
|
+
] }) });
|
|
835
|
+
}
|
|
836
|
+
export {
|
|
837
|
+
dt as EditorialCalendar,
|
|
838
|
+
ot as TaskCalendar
|
|
839
|
+
};
|
|
840
|
+
//# sourceMappingURL=editorial-calendar.js.map
|