themelia-react-ui 2.0.6 → 3.0.0
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/CHANGELOG.md +250 -0
- package/MIGRATION.md +746 -7
- package/README.md +27 -23
- package/dist/{accordion-0tQUZ20r.js → accordion-DNVqwEIC.js} +36 -36
- package/dist/accordion-DNVqwEIC.js.map +1 -0
- package/dist/action-menu-D5343RwT.js +286 -0
- package/dist/action-menu-D5343RwT.js.map +1 -0
- package/dist/ai-artifact-otrz9ZwS.js +1214 -0
- package/dist/ai-artifact-otrz9ZwS.js.map +1 -0
- package/dist/anchored-positioning-1U_eBFNx.js +9 -0
- package/dist/anchored-positioning-1U_eBFNx.js.map +1 -0
- package/dist/app-shell-CPN30Nb1.js +372 -0
- package/dist/app-shell-CPN30Nb1.js.map +1 -0
- package/dist/{attachment-BCpA4e7i.js → attachment-D2-fpfmv.js} +15 -15
- package/dist/{attachment-BCpA4e7i.js.map → attachment-D2-fpfmv.js.map} +1 -1
- package/dist/{auth-B0girIk_.js → auth-g_oUTDDC.js} +234 -241
- package/dist/auth-g_oUTDDC.js.map +1 -0
- package/dist/{avatar-B9Jnp-T-.js → avatar-Ca3Ihrq4.js} +4 -4
- package/dist/{avatar-B9Jnp-T-.js.map → avatar-Ca3Ihrq4.js.map} +1 -1
- package/dist/{badge-wWauMgAt.js → badge-oGiXblW7.js} +8 -9
- package/dist/badge-oGiXblW7.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +2 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +11 -11
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +2 -2
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +13 -13
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +203 -2
- package/dist/base/media-gallery.js.map +1 -0
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +32 -22
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +91 -88
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +14 -14
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -12
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +3 -3
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +2 -2
- package/dist/base/upload-queue.js +303 -2
- package/dist/base/upload-queue.js.map +1 -0
- package/dist/base/upload.js +3 -4
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BoqWIIpV.js → batch-action-bar-D6MZQNnC.js} +10 -10
- package/dist/{batch-action-bar-BoqWIIpV.js.map → batch-action-bar-D6MZQNnC.js.map} +1 -1
- package/dist/blocks/admin.js +242 -228
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +395 -357
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/charts.js +1022 -0
- package/dist/blocks/analytics/charts.js.map +1 -0
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +171 -1365
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1487 -1358
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -3
- package/dist/blocks/onboarding.js +91 -82
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +2 -2
- package/dist/{breadcrumbs-Bp9Ke7kd.js → breadcrumbs-CQ9JSlez.js} +52 -45
- package/dist/breadcrumbs-CQ9JSlez.js.map +1 -0
- package/dist/{button-ChBovTx0.js → button-rd6FiHfQ.js} +12 -8
- package/dist/button-rd6FiHfQ.js.map +1 -0
- package/dist/{buttons-DeW0bQeK.js → buttons-pZVgPTZn.js} +230 -246
- package/dist/buttons-pZVgPTZn.js.map +1 -0
- package/dist/{cards-CNXnmvV5.js → cards-CgWyqvgZ.js} +25 -22
- package/dist/{cards-CNXnmvV5.js.map → cards-CgWyqvgZ.js.map} +1 -1
- package/dist/cascader-Cf05pwaq.js +444 -0
- package/dist/cascader-Cf05pwaq.js.map +1 -0
- package/dist/{chart-I7ROnsl8.js → chart-CygRCyIZ.js} +5 -5
- package/dist/{chart-I7ROnsl8.js.map → chart-CygRCyIZ.js.map} +1 -1
- package/dist/{checkbox-MoyHIAPs.js → checkbox-Dy5_XBMZ.js} +4 -4
- package/dist/{checkbox-MoyHIAPs.js.map → checkbox-Dy5_XBMZ.js.map} +1 -1
- package/dist/{choice-inputs-DHGtx0QV.js → choice-inputs-oJEsrb5Y.js} +113 -114
- package/dist/choice-inputs-oJEsrb5Y.js.map +1 -0
- package/dist/{code-block-BSJyq9e-.js → code-block-BrLD7mCi.js} +44 -60
- package/dist/code-block-BrLD7mCi.js.map +1 -0
- package/dist/collapsible-CRCCg_bO.js +80 -0
- package/dist/collapsible-CRCCg_bO.js.map +1 -0
- package/dist/{collection-content-CSnwtOTH.js → collection-content-D7SoDlYd.js} +3 -3
- package/dist/{collection-content-CSnwtOTH.js.map → collection-content-D7SoDlYd.js.map} +1 -1
- package/dist/combobox-Dl6f6kHz.js +362 -0
- package/dist/combobox-Dl6f6kHz.js.map +1 -0
- package/dist/combobox-DrDXtSSt.js +929 -0
- package/dist/combobox-DrDXtSSt.js.map +1 -0
- package/dist/command-CjZ2VzKC.js +432 -0
- package/dist/command-CjZ2VzKC.js.map +1 -0
- package/dist/comments-C2MZyRmh.js +1214 -0
- package/dist/comments-C2MZyRmh.js.map +1 -0
- package/dist/components/base/accordion/accordion.d.ts +11 -3
- package/dist/components/base/action-menu/action-menu.d.ts +11 -3
- package/dist/components/base/buttons/button.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +6 -15
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/partials/card-body-context.d.ts +6 -0
- package/dist/components/base/cards/smart-card.d.ts +0 -2
- package/dist/components/base/cards/smart-card.types.d.ts +12 -10
- package/dist/components/base/cascader/cascader.d.ts +8 -2
- package/dist/components/base/cascader/cascader.types.d.ts +24 -2
- package/dist/components/base/cascader/index.d.ts +1 -1
- package/dist/components/base/choice-inputs/switch.d.ts +1 -1
- package/dist/components/base/code-block/use-code-copy.d.ts +2 -6
- package/dist/components/base/command/command.d.ts +1 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +1 -3
- package/dist/components/base/display/dialog.d.ts +3 -9
- package/dist/components/base/display/index.d.ts +2 -3
- package/dist/components/base/display/separator.d.ts +1 -1
- package/dist/components/base/feedback/alert.d.ts +2 -1
- package/dist/components/base/feedback/empty.d.ts +10 -2
- package/dist/components/base/forms/workflow.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +9 -17
- package/dist/components/base/forms-numeric/index.d.ts +3 -3
- package/dist/components/base/item/item.types.d.ts +6 -2
- package/dist/components/base/metadata-list/index.d.ts +1 -3
- package/dist/components/base/metadata-list/metadata-list.d.ts +4 -1
- package/dist/components/base/navigation/index.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +7 -6
- package/dist/components/base/navigation/navigation-tabs.d.ts +8 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +13 -17
- package/dist/components/base/navigation/pagination.d.ts +5 -5
- package/dist/components/base/popover/popover.recipes.d.ts +0 -1
- package/dist/components/base/qr-code/qr-code.d.ts +4 -0
- package/dist/components/base/repeaters/index.d.ts +1 -1
- package/dist/components/base/repeaters/key-value-editor.d.ts +4 -0
- package/dist/components/base/sheet/sheet.d.ts +6 -15
- package/dist/components/base/sidebar/index.d.ts +1 -6
- package/dist/components/base/sidebar/sidebar.d.ts +38 -10
- package/dist/components/base/skeleton/skeleton.d.ts +1 -1
- package/dist/components/base/structure/structure.types.d.ts +11 -2
- package/dist/components/base/text-inputs/index.d.ts +1 -1
- package/dist/components/base/tree/index.d.ts +1 -0
- package/dist/components/base/tree/tree.d.ts +2 -2
- package/dist/components/base/tree/tree.types.d.ts +7 -1
- package/dist/components/base/upload/file-upload.validation.d.ts +37 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -0
- package/dist/components/base/upload/index.d.ts +3 -9
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -0
- package/dist/components/base/value-inputs/slider.d.ts +5 -2
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +17 -4
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +9 -3
- package/dist/components/blocks/admin/index.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +9 -4
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +1 -1
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +11 -1
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +21 -5
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +7 -2
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +9 -3
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +1 -1
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +1 -1
- package/dist/components/blocks/ai/ai-sources/types.d.ts +8 -2
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +1 -1
- package/dist/components/blocks/ai/ai-task/types.d.ts +10 -1
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +1 -1
- package/dist/components/blocks/analytics/analytics.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +11 -1
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +7 -5
- package/dist/components/blocks/analytics/charts/index.d.ts +27 -0
- package/dist/components/blocks/analytics/index.d.ts +17 -24
- package/dist/components/blocks/analytics/metric/metric.d.ts +5 -5
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +2 -2
- package/dist/components/blocks/analytics/types.d.ts +12 -3
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +5 -16
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +2 -2
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +6 -4
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +0 -2
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +9 -11
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +1 -1
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +7 -3
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +0 -2
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +4 -6
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-balance.d.ts +18 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +0 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +16 -5
- package/dist/components/blocks/commerce/index.d.ts +8 -8
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +0 -5
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +6 -3
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +1 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +11 -5
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +8 -8
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +1 -1
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +3 -1
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +0 -8
- package/dist/components/blocks/commerce/payment-method/types.d.ts +0 -2
- package/dist/components/blocks/commerce/receipt/index.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/types.d.ts +10 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +0 -2
- package/dist/components/blocks/commerce/refund-status/types.d.ts +0 -2
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +7 -0
- package/dist/components/blocks/commerce/shared/code-entry.d.ts +39 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +10 -1
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -1
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +8 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +2 -2
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -5
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +6 -3
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +1 -1
- package/dist/components/blocks/content-block-hooks.d.ts +22 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +5 -1
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +3 -1
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +12 -5
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +6 -0
- package/dist/components/blocks/data-display/index.d.ts +0 -1
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +1 -1
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +5 -3
- package/dist/components/blocks/planning/task-card.types.d.ts +7 -3
- package/dist/components/blocks/timelines/changelog/types.d.ts +2 -2
- package/dist/components/blocks/timelines/index.d.ts +2 -2
- package/dist/components/blocks/timelines/milestones/types.d.ts +2 -2
- package/dist/components/blocks/timelines/shared/timeline.d.ts +6 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -1
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +2 -2
- package/dist/components/blocks/timelines/steps-card/types.d.ts +13 -1
- package/dist/components/features/activities/activities.strings.d.ts +5 -3
- package/dist/components/features/activities/activities.types.d.ts +28 -11
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +6 -0
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts +5 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +12 -13
- package/dist/components/features/activities/partials/row-layers.d.ts +7 -0
- package/dist/components/features/activities/relative-time.d.ts +18 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +6 -2
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +41 -2
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +6 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +5 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +2 -2
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +3 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +6 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +19 -5
- package/dist/components/features/appointment-calendar/index.d.ts +1 -1
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +18 -10
- package/dist/components/features/async-preview/async-preview.d.ts +2 -2
- package/dist/components/features/async-preview/async-preview.types.d.ts +30 -1
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +7 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +12 -3
- package/dist/components/features/combobox/components/error-message.d.ts +3 -1
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -2
- package/dist/components/features/combobox/index.d.ts +1 -1
- package/dist/components/features/combobox/types.d.ts +47 -45
- package/dist/components/features/comments/comments.strings.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts +40 -26
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -1
- package/dist/components/features/comments/hooks/use-comments.d.ts +8 -1
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -2
- package/dist/components/features/data-view/data-view.types.d.ts +15 -2
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/http.d.ts +2 -0
- package/dist/components/features/email-composer/strings.d.ts +17 -2
- package/dist/components/features/email-composer/types.d.ts +17 -2
- package/dist/components/features/email-composer/use-composer.d.ts +2 -78
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +126 -21
- package/dist/components/features/filters/facets/range-facet.d.ts +13 -8
- package/dist/components/features/filters/filter-context.d.ts +9 -0
- package/dist/components/features/filters/filters.strings.d.ts +36 -3
- package/dist/components/features/filters/filters.types.d.ts +72 -5
- package/dist/components/features/filters/hooks/use-filter-draft.d.ts +1 -0
- package/dist/components/features/filters/index.d.ts +2 -2
- package/dist/components/features/filters/operator-options.d.ts +25 -2
- package/dist/components/features/filters/partials/active-filter-item.d.ts +0 -13
- package/dist/components/features/filters/partials/async-options-status.d.ts +32 -0
- package/dist/components/features/filters/partials/filter-draft-footer.d.ts +11 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +4 -2
- package/dist/components/features/filters/partials/filter-pill.d.ts +5 -1
- package/dist/components/features/filters/partials/filter-tabs.d.ts +2 -1
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +1 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +29 -4
- package/dist/components/features/global-search/global-search-dialog.d.ts +7 -1
- package/dist/components/features/global-search/global-search.d.ts +7 -1
- package/dist/components/features/global-search/global-search.strings.d.ts +19 -3
- package/dist/components/features/global-search/global-search.types.d.ts +30 -6
- package/dist/components/features/global-search/index.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +6 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts +2 -0
- package/dist/components/features/kanban/index.d.ts +2 -2
- package/dist/components/features/kanban/kanban-context.d.ts +4 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +7 -2
- package/dist/components/features/kanban/kanban.d.ts +10 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +11 -2
- package/dist/components/features/kanban/kanban.types.d.ts +26 -0
- package/dist/components/features/map/map.d.ts +4 -0
- package/dist/components/features/map/place-autocomplete.d.ts +10 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +3 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +33 -3
- package/dist/components/features/media-library/media-library.types.d.ts +47 -2
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +7 -0
- package/dist/components/features/mentions/index.d.ts +1 -1
- package/dist/components/features/mentions/mentions.strings.d.ts +10 -2
- package/dist/components/features/mentions/partials/mention-chip.d.ts +1 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-search-error.d.ts +6 -0
- package/dist/components/features/mentions/utils/index.d.ts +0 -1
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +2 -2
- package/dist/components/features/overlays/overlays.strings.d.ts +2 -1
- package/dist/components/features/overlays/overlays.types.d.ts +27 -10
- package/dist/components/features/products/components/index.d.ts +0 -10
- package/dist/components/features/products/components/product-contract-overview.d.ts +1 -1
- package/dist/components/features/products/components/product-details-card.d.ts +1 -1
- package/dist/components/features/products/components/product-operations-card.d.ts +1 -1
- package/dist/components/features/products/components/product-option-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-options-summary.d.ts +1 -1
- package/dist/components/features/products/components/product-policies-card.d.ts +1 -1
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +1 -1
- package/dist/components/features/products/components/product-readiness-card.d.ts +1 -1
- package/dist/components/features/products/components/product-structure-card.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-table.d.ts +1 -1
- package/dist/components/features/products/partials/product-surface.d.ts +15 -0
- package/dist/components/features/products/products.strings.d.ts +8 -0
- package/dist/components/features/products/products.types.d.ts +25 -7
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +6 -4
- package/dist/components/features/resource/index.d.ts +2 -3
- package/dist/components/features/resource/resource.d.ts +2 -10
- package/dist/components/features/resource/resource.types.d.ts +7 -149
- package/dist/components/features/resource-assignment/partials/assignment-surface.d.ts +15 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +6 -1
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +6 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +5 -7
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +6 -2
- package/dist/components/features/rich-text-editor/partials/index.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +0 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +2 -3
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +13 -1
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.d.ts +1 -1
- package/dist/components/features/schema-form/schema-form.types.d.ts +13 -5
- package/dist/components/features/suggestions/suggestions.strings.d.ts +14 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +12 -4
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/filter-bar.d.ts +1 -1
- package/dist/components/features/table/pagination.d.ts +1 -1
- package/dist/components/features/table/partials/cell-value.d.ts +1 -1
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +31 -9
- package/dist/components/features/table/table-region.recipes.d.ts +11 -0
- package/dist/components/features/table/table-toolbar.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +1 -0
- package/dist/components/features/table/table.types.d.ts +74 -48
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +4 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +10 -7
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +17 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +46 -49
- package/dist/components/layout/app-shell/index.d.ts +2 -2
- package/dist/components/layout/app-shell/shell-regions.d.ts +9 -0
- package/dist/components/layout/app-shell/shell-skip-link.d.ts +9 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth-shell.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +0 -5
- package/dist/components/layout/containers/inline-gutter-context.d.ts +7 -0
- package/dist/components/layout/containers/main-landmark-context.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +16 -6
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts +1 -1
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +10 -1
- package/dist/components/layout/layout.types.d.ts +2 -2
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +1 -1
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +9 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +8 -1
- package/dist/components/layout/page/index.d.ts +2 -3
- package/dist/components/layout/page/page.strings.d.ts +12 -0
- package/dist/components/layout/page/page.types.d.ts +7 -110
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/index.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +3 -5
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +15 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +10 -12
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +2 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +13 -7
- package/dist/components/primitives/date.d.ts +22 -3
- package/dist/components/primitives/file-size.d.ts +8 -2
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +3 -1
- package/dist/components/primitives/link.d.ts +8 -1
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +2 -1
- package/dist/components/typography/heading.d.ts +9 -3
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/text-link.d.ts +10 -3
- package/dist/components/ui/badge.d.ts +2 -4
- package/dist/components/ui/breadcrumb.d.ts +2 -3
- package/dist/components/ui/button.d.ts +8 -2
- package/dist/components/ui/collapsible.d.ts +1 -4
- package/dist/components/ui/command.d.ts +20 -18
- package/dist/components/ui/dialog.d.ts +3 -9
- package/dist/components/ui/empty.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/popover.d.ts +3 -7
- package/dist/components/ui/sheet.d.ts +4 -12
- package/dist/components/ui/sidebar-state.d.ts +6 -1
- package/dist/components/ui/sidebar.d.ts +7 -4
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/tooltip.d.ts +1 -3
- package/dist/{containers-CSdc32h9.js → containers-BdfLTP4w.js} +37 -32
- package/dist/containers-BdfLTP4w.js.map +1 -0
- package/dist/content-block-hooks-Z3iKjqd1.js +17 -0
- package/dist/content-block-hooks-Z3iKjqd1.js.map +1 -0
- package/dist/{copyable-3fdHfMR3.js → copyable-Bmr14W0d.js} +6 -6
- package/dist/{copyable-3fdHfMR3.js.map → copyable-Bmr14W0d.js.map} +1 -1
- package/dist/{data-display-Cmj-xZYl.js → data-display-CWe9SOYh.js} +264 -251
- package/dist/data-display-CWe9SOYh.js.map +1 -0
- package/dist/date-3qsCE1ID.js +209 -0
- package/dist/date-3qsCE1ID.js.map +1 -0
- package/dist/{date-picker-CyQlFYsP.js → date-picker-D1keJQIG.js} +129 -129
- package/dist/date-picker-D1keJQIG.js.map +1 -0
- package/dist/date-pickers-D8aJoeHc.js +185 -0
- package/dist/date-pickers-D8aJoeHc.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -1
- package/dist/{display-CT_N2a3w.js → display-VlmP1I0i.js} +23 -46
- package/dist/display-VlmP1I0i.js.map +1 -0
- package/dist/{dropdown-menu-C08iIugv.js → dropdown-menu-B8hjvbkS.js} +9 -9
- package/dist/{dropdown-menu-C08iIugv.js.map → dropdown-menu-B8hjvbkS.js.map} +1 -1
- package/dist/dropzone-CHBNK3de.js +116 -0
- package/dist/dropzone-CHBNK3de.js.map +1 -0
- package/dist/features/activities.js +682 -628
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +258 -226
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +436 -340
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +351 -265
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +2 -2
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +212 -151
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +344 -315
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +504 -355
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +250 -206
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +269 -189
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +385 -371
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1571 -1199
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +2 -2
- package/dist/features/products.js +1780 -1691
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +165 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +223 -191
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +55 -220
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +3 -3
- package/dist/features/schema-form.js +280 -228
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +48 -39
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/table.js +2 -2
- package/dist/features/theme-tweaker.js +723 -633
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-DmqmXKLn.js +254 -0
- package/dist/feedback-DmqmXKLn.js.map +1 -0
- package/dist/{field-affordance-recipes-D6H7tVJi.js → field-affordance-recipes-DfbMadot.js} +13 -9
- package/dist/field-affordance-recipes-DfbMadot.js.map +1 -0
- package/dist/{field-state-recipes-7sza8QbC.js → field-state-recipes-EtCxpEy3.js} +6 -2
- package/dist/field-state-recipes-EtCxpEy3.js.map +1 -0
- package/dist/filters-BviMRMLS.js +2692 -0
- package/dist/filters-BviMRMLS.js.map +1 -0
- package/dist/{focus-recipes-B653VaLq.js → focus-recipes-DSkiUvUp.js} +3 -3
- package/dist/focus-recipes-DSkiUvUp.js.map +1 -0
- package/dist/{form-field-CAPdwdnZ.js → form-field-BdfCwSoQ.js} +5 -5
- package/dist/{form-field-CAPdwdnZ.js.map → form-field-BdfCwSoQ.js.map} +1 -1
- package/dist/{form-sizing-CgcrUbLU.js → form-sizing-DE_dZw32.js} +3 -3
- package/dist/{form-sizing-CgcrUbLU.js.map → form-sizing-DE_dZw32.js.map} +1 -1
- package/dist/{forms-B3W8CH7-.js → forms-B8DzJnBN.js} +35 -35
- package/dist/forms-B8DzJnBN.js.map +1 -0
- package/dist/forms-numeric-DOBswjKj.js +992 -0
- package/dist/forms-numeric-DOBswjKj.js.map +1 -0
- package/dist/{header-ZIIsRKxP.js → header-Cq3G0ZRP.js} +100 -95
- package/dist/header-Cq3G0ZRP.js.map +1 -0
- package/dist/{hooks-BitHSh-Y.js → hooks-DHfeSMAO.js} +34 -14
- package/dist/hooks-DHfeSMAO.js.map +1 -0
- package/dist/{http-D_6rOnzU.js → http-Cu-GPpss.js} +61 -35
- package/dist/http-Cu-GPpss.js.map +1 -0
- package/dist/{icon-badge-npxF1SLX.js → icon-badge-B0Kq7wom.js} +3 -3
- package/dist/{icon-badge-npxF1SLX.js.map → icon-badge-B0Kq7wom.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/inline-gutter-context-CSqmrMFZ.js +11 -0
- package/dist/inline-gutter-context-CSqmrMFZ.js.map +1 -0
- package/dist/{input-DIREVYHs.js → input-2YrgTUrz.js} +3 -3
- package/dist/{input-DIREVYHs.js.map → input-2YrgTUrz.js.map} +1 -1
- package/dist/{input-7KAc7XQL.js → input-DfJyrjoR.js} +6 -6
- package/dist/{input-7KAc7XQL.js.map → input-DfJyrjoR.js.map} +1 -1
- package/dist/{interaction-recipes-4wZ2tvfb.js → interaction-recipes-DmuS1ase.js} +2 -2
- package/dist/{interaction-recipes-4wZ2tvfb.js.map → interaction-recipes-DmuS1ase.js.map} +1 -1
- package/dist/item-GJ9mvCcg.js +279 -0
- package/dist/item-GJ9mvCcg.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +2 -2
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/{layout.types-E_GAApzO.js → layout.types-DbtnyAtd.js} +11 -8
- package/dist/layout.types-DbtnyAtd.js.map +1 -0
- package/dist/lib/anchored-positioning.d.ts +11 -0
- package/dist/lib/field-affordance-recipes.d.ts +10 -0
- package/dist/lib/field-state-recipes.d.ts +6 -0
- package/dist/lib/focus-recipes.d.ts +7 -0
- package/dist/lib/format.d.ts +25 -0
- package/dist/lib/money-format.d.ts +6 -0
- package/dist/lib/motion-recipes.d.ts +6 -0
- package/dist/lib/surface-recipes.d.ts +32 -2
- package/dist/lib/theme-scope.d.ts +17 -1
- package/dist/lib/token-merge.generated.d.ts +13 -19
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/types.d.ts +5 -0
- package/dist/lib/use-controllable-state.d.ts +16 -0
- package/dist/lib/use-copy-feedback.d.ts +15 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib/variant-props.d.ts +9 -0
- package/dist/main-landmark-context-BAsyqp2I.js +11 -0
- package/dist/main-landmark-context-BAsyqp2I.js.map +1 -0
- package/dist/mentions-zz0ewNIq.js +670 -0
- package/dist/mentions-zz0ewNIq.js.map +1 -0
- package/dist/{message-BJHnn43M.js → message-BiiVrRrm.js} +10 -7
- package/dist/{message-BJHnn43M.js.map → message-BiiVrRrm.js.map} +1 -1
- package/dist/{metadata-list-XkqZ_UXH.js → metadata-list-G85roWjS.js} +13 -12
- package/dist/metadata-list-G85roWjS.js.map +1 -0
- package/dist/{motion-recipes-DitYv6P2.js → motion-recipes-CUc_aHuG.js} +7 -4
- package/dist/motion-recipes-CUc_aHuG.js.map +1 -0
- package/dist/navigation-C0Be5C3i.js +304 -0
- package/dist/navigation-C0Be5C3i.js.map +1 -0
- package/dist/{navigation-Bt-v7rWP.js → navigation-CmqaQR_G.js} +99 -103
- package/dist/navigation-CmqaQR_G.js.map +1 -0
- package/dist/number-NFWKIoiK.js +340 -0
- package/dist/number-NFWKIoiK.js.map +1 -0
- package/dist/{overflow-tab-bar-BQCA2Zn2.js → overflow-tab-bar-DV7HE_3t.js} +8 -8
- package/dist/{overflow-tab-bar-BQCA2Zn2.js.map → overflow-tab-bar-DV7HE_3t.js.map} +1 -1
- package/dist/overlays-D-gAIfPF.js +1018 -0
- package/dist/overlays-D-gAIfPF.js.map +1 -0
- package/dist/page-D4pQhgSq.js +216 -0
- package/dist/page-D4pQhgSq.js.map +1 -0
- package/dist/{page-header-commands-DIKspJfx.js → page-header-commands-elelNOfd.js} +29 -29
- package/dist/{page-header-commands-DIKspJfx.js.map → page-header-commands-elelNOfd.js.map} +1 -1
- package/dist/{pagination-Br8TdV9A.js → pagination-BuSWw1US.js} +22 -23
- package/dist/pagination-BuSWw1US.js.map +1 -0
- package/dist/{popover-k8TdUcAt.js → popover-BpMxbqEK.js} +73 -69
- package/dist/popover-BpMxbqEK.js.map +1 -0
- package/dist/{popover-menu-yn-o0kyA.js → popover-menu-CO-_iiuz.js} +7 -7
- package/dist/{popover-menu-yn-o0kyA.js.map → popover-menu-CO-_iiuz.js.map} +1 -1
- package/dist/{popover.recipes-DJ0AkUan.js → popover.recipes-BqkdvlZn.js} +3 -4
- package/dist/{popover.recipes-DJ0AkUan.js.map → popover.recipes-BqkdvlZn.js.map} +1 -1
- package/dist/{portal-recipes-DyUXqUtD.js → portal-recipes-BPeS4rGB.js} +2 -2
- package/dist/{portal-recipes-DyUXqUtD.js.map → portal-recipes-BPeS4rGB.js.map} +1 -1
- package/dist/primitives-BlC1lXBr.js +447 -0
- package/dist/primitives-BlC1lXBr.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-DZFXXzPs.js → progress-RARK8AjB.js} +5 -5
- package/dist/{progress-DZFXXzPs.js.map → progress-RARK8AjB.js.map} +1 -1
- package/dist/receipt-CUf2Vegp.js +114 -0
- package/dist/receipt-CUf2Vegp.js.map +1 -0
- package/dist/{rich-text-BnTzZjIo.js → rich-text-Cypm9__d.js} +7 -8
- package/dist/{rich-text-BnTzZjIo.js.map → rich-text-Cypm9__d.js.map} +1 -1
- package/dist/rich-text-editor-Z6cQepsA.js +919 -0
- package/dist/rich-text-editor-Z6cQepsA.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js +100 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js.map +1 -0
- package/dist/rich-text-tree-DdKHIJx4.js +154 -0
- package/dist/rich-text-tree-DdKHIJx4.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/{scroll-area-Bj6CRUif.js → scroll-area-B9HKbji0.js} +3 -3
- package/dist/{scroll-area-Bj6CRUif.js.map → scroll-area-B9HKbji0.js.map} +1 -1
- package/dist/{separator-DM6gs2vu.js → separator-DaDe26sf.js} +3 -3
- package/dist/separator-DaDe26sf.js.map +1 -0
- package/dist/{separator-B9ewiCGO.js → separator-KGsNXt2J.js} +2 -2
- package/dist/{separator-B9ewiCGO.js.map → separator-KGsNXt2J.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +5 -2
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +2 -2
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-D5j_RJvT.js +160 -0
- package/dist/settings-D5j_RJvT.js.map +1 -0
- package/dist/sheet-B6j_BE9O.js +241 -0
- package/dist/sheet-B6j_BE9O.js.map +1 -0
- package/dist/{sidebar-CmD6a-HK.js → sidebar-C-iQ_TJP.js} +377 -351
- package/dist/sidebar-C-iQ_TJP.js.map +1 -0
- package/dist/sidebar-D5VO2W8S.js +715 -0
- package/dist/sidebar-D5VO2W8S.js.map +1 -0
- package/dist/{skeleton-DDgdhmu9.js → skeleton-Cab_KgVo.js} +12 -12
- package/dist/skeleton-Cab_KgVo.js.map +1 -0
- package/dist/{smart-card-B6vLxqa_.js → smart-card-C59z6KFO.js} +217 -210
- package/dist/smart-card-C59z6KFO.js.map +1 -0
- package/dist/{structure-DZJ2wbAU.js → structure-DElaQwwN.js} +2 -2
- package/dist/{structure-DZJ2wbAU.js.map → structure-DElaQwwN.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-C8mNycaY.js → surface-recipes-DV6rrOFq.js} +10 -2
- package/dist/surface-recipes-DV6rrOFq.js.map +1 -0
- package/dist/{table-CXSPHH25.js → table-CSRUgpdK.js} +62 -61
- package/dist/table-CSRUgpdK.js.map +1 -0
- package/dist/table-DdXDBsR_.js +1657 -0
- package/dist/table-DdXDBsR_.js.map +1 -0
- package/dist/{tabs-C4Kr_hCr.js → tabs-WnHfV2pM.js} +27 -27
- package/dist/tabs-WnHfV2pM.js.map +1 -0
- package/dist/{text-inputs-jdkS3ReG.js → text-inputs-ljyBYaCd.js} +112 -112
- package/dist/text-inputs-ljyBYaCd.js.map +1 -0
- package/dist/theme.css +21 -5
- package/dist/timelines-mOmS9Eh3.js +479 -0
- package/dist/timelines-mOmS9Eh3.js.map +1 -0
- package/dist/tooltip-yjX-Uv-p.js +112 -0
- package/dist/tooltip-yjX-Uv-p.js.map +1 -0
- package/dist/{tree-CeYVzdFE.js → tree-YpkxUG2Z.js} +80 -72
- package/dist/tree-YpkxUG2Z.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-C7-YMW1S.js → typography-C0dELqYV.js} +46 -40
- package/dist/typography-C0dELqYV.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-C-74NVLc.js → ui-provider-Bu1S-o96.js} +4 -3
- package/dist/ui-provider-Bu1S-o96.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-Hdm5gObf.js → upload-DMuMYJFT.js} +276 -268
- package/dist/upload-DMuMYJFT.js.map +1 -0
- package/dist/{usage-card-9s8hLDfn.js → usage-card-DDPki5P1.js} +57 -54
- package/dist/usage-card-DDPki5P1.js.map +1 -0
- package/dist/use-controllable-state-BlP8SyBI.js +13 -0
- package/dist/use-controllable-state-BlP8SyBI.js.map +1 -0
- package/dist/use-copy-feedback-CzcaqlLf.js +28 -0
- package/dist/use-copy-feedback-CzcaqlLf.js.map +1 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js +251 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js.map +1 -0
- package/dist/{utils-DhuoqFy4.js → utils-BVbAG2J6.js} +98 -76
- package/dist/utils-BVbAG2J6.js.map +1 -0
- package/dist/value-inputs-h5MwjGCo.js +982 -0
- package/dist/value-inputs-h5MwjGCo.js.map +1 -0
- package/dist/value-typography-D15uwfj-.js +154 -0
- package/dist/value-typography-D15uwfj-.js.map +1 -0
- package/dist/workspace-DIryPqBt.js +400 -0
- package/dist/workspace-DIryPqBt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +7 -0
- package/docs/consumer-skill/agents/themelia-ui-designer.md +11 -2
- package/docs/consumer-skill/examples/analytics.tsx +1 -1
- package/docs/consumer-skill/examples/app-layout.tsx +3 -3
- package/docs/consumer-skill/examples/commerce-lines.tsx +7 -5
- package/docs/consumer-skill/examples/detail.tsx +3 -2
- package/docs/consumer-skill/examples/email-composer.tsx +1 -1
- package/docs/consumer-skill/examples/index-table.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +7 -6
- package/docs/consumer-skill/references/agents-md.md +20 -16
- package/docs/consumer-skill/references/analytics.md +20 -6
- package/docs/consumer-skill/references/building-views.md +213 -0
- package/docs/consumer-skill/references/catalogue.md +617 -0
- package/docs/consumer-skill/references/component-contracts.json +10202 -18084
- package/docs/consumer-skill/references/composition.md +21 -17
- package/docs/consumer-skill/references/discovery.md +8 -5
- package/docs/consumer-skill/references/installation.md +10 -4
- package/docs/consumer-skill/references/integration.md +5 -5
- package/docs/consumer-skill/references/product-composition.md +2 -2
- package/docs/consumer-skill/references/public-api.json +580 -633
- package/docs/consumer-skill/references/review.md +6 -4
- package/docs/consumer-skill/references/screen-archetypes.md +2 -2
- package/docs/consumer-skill/references/theming.md +1 -1
- package/docs/consumer-skill/references/tokens.json +4 -4
- package/docs/consumer-skill/references/workflows.md +7 -7
- package/docs/consumer-skill/scripts/composition-policy.mjs +40 -20
- package/docs/consumer-skill/scripts/composition.mjs +4 -1
- package/docs/consumer-skill/scripts/discovery.mjs +3 -1
- package/docs/consumer-skill/scripts/setup-skills.mjs +31 -4
- package/docs/consumer-skills/themelia-components/SKILL.md +8 -4
- package/docs/consumer-skills/themelia-composition/SKILL.md +7 -3
- package/docs/consumer-skills/themelia-design/SKILL.md +7 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +1 -1
- package/package.json +9 -12
- package/templates/README.md +3 -2
- package/templates/admin-shell-template.tsx +49 -9
- package/templates/analytics-operations-template.tsx +20 -24
- package/templates/customers-template.tsx +12 -9
- package/templates/index.ts +2 -8
- package/templates/orders-template.tsx +28 -24
- package/templates/products-template.tsx +14 -4
- package/templates/user-permissions-template.tsx +11 -14
- package/dist/accordion-0tQUZ20r.js.map +0 -1
- package/dist/action-menu-C0gjzLyE.js +0 -284
- package/dist/action-menu-C0gjzLyE.js.map +0 -1
- package/dist/ai-artifact-CGGpQryR.js +0 -1200
- package/dist/ai-artifact-CGGpQryR.js.map +0 -1
- package/dist/anchored-positioning-DPnKTvNs.js +0 -6
- package/dist/anchored-positioning-DPnKTvNs.js.map +0 -1
- package/dist/app-shell-EHuuRDGy.js +0 -321
- package/dist/app-shell-EHuuRDGy.js.map +0 -1
- package/dist/auth-B0girIk_.js.map +0 -1
- package/dist/badge-wWauMgAt.js.map +0 -1
- package/dist/base/sheet.js +0 -3
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +0 -1
- package/dist/button-ChBovTx0.js.map +0 -1
- package/dist/buttons-DeW0bQeK.js.map +0 -1
- package/dist/cascader-CrAl9zD5.js +0 -439
- package/dist/cascader-CrAl9zD5.js.map +0 -1
- package/dist/choice-inputs-DHGtx0QV.js.map +0 -1
- package/dist/code-block-BSJyq9e-.js.map +0 -1
- package/dist/collapsible-BzJ91LUG.js +0 -81
- package/dist/collapsible-BzJ91LUG.js.map +0 -1
- package/dist/combobox-Bcvu5J8O.js +0 -363
- package/dist/combobox-Bcvu5J8O.js.map +0 -1
- package/dist/combobox-C2JiSQPc.js +0 -915
- package/dist/combobox-C2JiSQPc.js.map +0 -1
- package/dist/command-9e52NPgK.js +0 -425
- package/dist/command-9e52NPgK.js.map +0 -1
- package/dist/comments-BsgErEqd.js +0 -1174
- package/dist/comments-BsgErEqd.js.map +0 -1
- package/dist/components/base/buttons/tooltip-button.d.ts +0 -7
- package/dist/components/base/display/content-block.d.ts +0 -75
- package/dist/components/base/display/content-block.strings.d.ts +0 -5
- package/dist/components/base/sheet/index.d.ts +0 -29
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +0 -6
- package/dist/components/blocks/data-display/metadata/index.d.ts +0 -30
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +0 -10
- package/dist/components/features/resource/resource.strings.d.ts +0 -12
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +0 -8
- package/dist/components/features/sync/index.d.ts +0 -26
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +0 -5
- package/dist/components/features/sync/sync.strings.d.ts +0 -18
- package/dist/components/features/sync/sync.types.d.ts +0 -44
- package/dist/components/layout/page/partials/page-actions.d.ts +0 -3
- package/dist/components/ui/slot.d.ts +0 -6
- package/dist/containers-CSdc32h9.js.map +0 -1
- package/dist/data-display-Cmj-xZYl.js.map +0 -1
- package/dist/date-Br0FicVv.js +0 -144
- package/dist/date-Br0FicVv.js.map +0 -1
- package/dist/date-picker-CyQlFYsP.js.map +0 -1
- package/dist/date-pickers-tj2MXmXd.js +0 -185
- package/dist/date-pickers-tj2MXmXd.js.map +0 -1
- package/dist/display-CT_N2a3w.js.map +0 -1
- package/dist/features/sync.js +0 -142
- package/dist/features/sync.js.map +0 -1
- package/dist/feedback-Dzo1xtAU.js +0 -246
- package/dist/feedback-Dzo1xtAU.js.map +0 -1
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +0 -1
- package/dist/field-state-recipes-7sza8QbC.js.map +0 -1
- package/dist/filters-Dl80yYtN.js +0 -2415
- package/dist/filters-Dl80yYtN.js.map +0 -1
- package/dist/focus-recipes-B653VaLq.js.map +0 -1
- package/dist/forms-B3W8CH7-.js.map +0 -1
- package/dist/forms-numeric-CwjQJe-O.js +0 -991
- package/dist/forms-numeric-CwjQJe-O.js.map +0 -1
- package/dist/header-ZIIsRKxP.js.map +0 -1
- package/dist/hooks-BitHSh-Y.js.map +0 -1
- package/dist/http-D_6rOnzU.js.map +0 -1
- package/dist/item-FfWnaYST.js +0 -278
- package/dist/item-FfWnaYST.js.map +0 -1
- package/dist/layout.types-E_GAApzO.js.map +0 -1
- package/dist/media-gallery-C81DAnKI.js +0 -203
- package/dist/media-gallery-C81DAnKI.js.map +0 -1
- package/dist/mentions-qOnedSt4.js +0 -639
- package/dist/mentions-qOnedSt4.js.map +0 -1
- package/dist/metadata-list-XkqZ_UXH.js.map +0 -1
- package/dist/motion-recipes-DitYv6P2.js.map +0 -1
- package/dist/navigation-BgtPJAhi.js +0 -288
- package/dist/navigation-BgtPJAhi.js.map +0 -1
- package/dist/navigation-Bt-v7rWP.js.map +0 -1
- package/dist/number-CYqBcrSj.js +0 -346
- package/dist/number-CYqBcrSj.js.map +0 -1
- package/dist/overlays-CC8zI3Du.js +0 -1017
- package/dist/overlays-CC8zI3Du.js.map +0 -1
- package/dist/page-BoQ1VaFJ.js +0 -331
- package/dist/page-BoQ1VaFJ.js.map +0 -1
- package/dist/pagination-Br8TdV9A.js.map +0 -1
- package/dist/popover-k8TdUcAt.js.map +0 -1
- package/dist/primitives-BkkQjYl7.js +0 -385
- package/dist/primitives-BkkQjYl7.js.map +0 -1
- package/dist/receipt-C7LhOg7Q.js +0 -116
- package/dist/receipt-C7LhOg7Q.js.map +0 -1
- package/dist/rich-text-editor-CAurDwT5.js +0 -1273
- package/dist/rich-text-editor-CAurDwT5.js.map +0 -1
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +0 -99
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +0 -1
- package/dist/rich-text-tree-BqyQ_7-R.js +0 -66
- package/dist/rich-text-tree-BqyQ_7-R.js.map +0 -1
- package/dist/sanitize-html-BWkH4dLM.js +0 -105
- package/dist/sanitize-html-BWkH4dLM.js.map +0 -1
- package/dist/separator-DM6gs2vu.js.map +0 -1
- package/dist/settings-DZPHgpx4.js +0 -155
- package/dist/settings-DZPHgpx4.js.map +0 -1
- package/dist/sheet-C4DHsgLk.js +0 -250
- package/dist/sheet-C4DHsgLk.js.map +0 -1
- package/dist/sidebar-C8BnDwTH.js +0 -709
- package/dist/sidebar-C8BnDwTH.js.map +0 -1
- package/dist/sidebar-CmD6a-HK.js.map +0 -1
- package/dist/skeleton-DDgdhmu9.js.map +0 -1
- package/dist/slot-CLF9kLrS.js +0 -16
- package/dist/slot-CLF9kLrS.js.map +0 -1
- package/dist/smart-card-B6vLxqa_.js.map +0 -1
- package/dist/surface-recipes-C8mNycaY.js.map +0 -1
- package/dist/table-CBonSdTp.js +0 -1584
- package/dist/table-CBonSdTp.js.map +0 -1
- package/dist/table-CXSPHH25.js.map +0 -1
- package/dist/tabs-C4Kr_hCr.js.map +0 -1
- package/dist/text-inputs-jdkS3ReG.js.map +0 -1
- package/dist/timelines-CoPwdJP0.js +0 -458
- package/dist/timelines-CoPwdJP0.js.map +0 -1
- package/dist/tooltip-31NwIpTo.js +0 -113
- package/dist/tooltip-31NwIpTo.js.map +0 -1
- package/dist/tree-CeYVzdFE.js.map +0 -1
- package/dist/typography-C7-YMW1S.js.map +0 -1
- package/dist/ui-provider-C-74NVLc.js.map +0 -1
- package/dist/upload-Hdm5gObf.js.map +0 -1
- package/dist/upload-queue-D0sYPuqo.js +0 -409
- package/dist/upload-queue-D0sYPuqo.js.map +0 -1
- package/dist/usage-card-9s8hLDfn.js.map +0 -1
- package/dist/utils-DhuoqFy4.js.map +0 -1
- package/dist/value-inputs-D3aPgq9H.js +0 -980
- package/dist/value-inputs-D3aPgq9H.js.map +0 -1
- package/dist/value-typography-uSzzG9Gf.js +0 -122
- package/dist/value-typography-uSzzG9Gf.js.map +0 -1
- package/dist/workspace-CC8Vchiu.js +0 -411
- package/dist/workspace-CC8Vchiu.js.map +0 -1
|
@@ -1,38 +1,41 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { C as e, d as t, f as n } from "../ui-provider-Bu1S-o96.js";
|
|
3
3
|
import { useStrings as r } from "../lib/strings.js";
|
|
4
|
-
import { t as i } from "../utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { t as l } from "../structure-
|
|
4
|
+
import { t as i } from "../utils-BVbAG2J6.js";
|
|
5
|
+
import { c as a, s as o } from "../typography-C0dELqYV.js";
|
|
6
|
+
import { t as s } from "../focus-recipes-DSkiUvUp.js";
|
|
7
|
+
import { n as c } from "../buttons-pZVgPTZn.js";
|
|
8
|
+
import { t as l } from "../structure-DElaQwwN.js";
|
|
9
9
|
import { i as u, t as d } from "../tone-recipes-BPsRAvhu.js";
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
10
|
+
import { a as f, o as p } from "../surface-recipes-DV6rrOFq.js";
|
|
11
|
+
import { n as m, t as h } from "../feedback-DmqmXKLn.js";
|
|
12
|
+
import { t as g } from "../composition.recipes-COdiFhxB.js";
|
|
13
|
+
import { t as _ } from "../interaction-recipes-DmuS1ase.js";
|
|
14
|
+
import { r as v, t as ee } from "../date-3qsCE1ID.js";
|
|
15
|
+
import { n as y } from "../field-affordance-recipes-DfbMadot.js";
|
|
16
|
+
import { l as b } from "../choice-inputs-oJEsrb5Y.js";
|
|
17
|
+
import { t as x } from "../date-pickers-D8aJoeHc.js";
|
|
18
|
+
import { r as S, t as C } from "../control-group-recipes-fMuFo0H7.js";
|
|
19
|
+
import { s as w } from "../data-display-CWe9SOYh.js";
|
|
20
|
+
import { isValidElement as te, useCallback as T, useLayoutEffect as E, useMemo as D, useRef as O, useState as k } from "react";
|
|
21
|
+
import { Fragment as ne, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
22
|
+
import { ChevronLeft as re, ChevronRight as ie, ExternalLink as M } from "lucide-react";
|
|
23
|
+
import { addDays as N, addMonths as ae, addWeeks as oe, eachDayOfInterval as se, endOfDay as ce, endOfMonth as le, endOfWeek as ue, format as P, formatISO as de, isSameDay as F, isSameMonth as fe, isToday as I, isWeekend as pe, startOfDay as L, startOfMonth as me, startOfWeek as he, subMonths as ge, subWeeks as _e } from "date-fns";
|
|
21
24
|
//#region src/components/features/event-calendar/event-calendar.types.ts
|
|
22
|
-
var
|
|
23
|
-
gray:
|
|
24
|
-
red: "bg-chart-
|
|
25
|
+
var R = {
|
|
26
|
+
gray: f.marker,
|
|
27
|
+
red: "bg-chart-6",
|
|
25
28
|
orange: "bg-chart-5",
|
|
26
29
|
amber: "bg-chart-5",
|
|
27
|
-
yellow: "bg-chart-
|
|
28
|
-
green: "bg-chart-
|
|
30
|
+
yellow: "bg-chart-7",
|
|
31
|
+
green: "bg-chart-8",
|
|
29
32
|
blue: "bg-chart-2",
|
|
30
33
|
purple: "bg-chart-3"
|
|
31
34
|
};
|
|
32
|
-
function
|
|
35
|
+
function z(e) {
|
|
33
36
|
return e?.colorToken ?? "gray";
|
|
34
37
|
}
|
|
35
|
-
var
|
|
38
|
+
var B = {
|
|
36
39
|
today: "Today",
|
|
37
40
|
previous: "Previous",
|
|
38
41
|
next: "Next",
|
|
@@ -53,82 +56,89 @@ var W = {
|
|
|
53
56
|
"Thu",
|
|
54
57
|
"Fri",
|
|
55
58
|
"Sat"
|
|
56
|
-
]
|
|
59
|
+
],
|
|
60
|
+
categoryFilterLabel: "Filter event categories",
|
|
61
|
+
formatEventLabel: (e, t) => `${e} at ${t}`,
|
|
62
|
+
errorTitle: "Events unavailable",
|
|
63
|
+
errorDescription: "The events could not be loaded.",
|
|
64
|
+
retry: "Retry"
|
|
57
65
|
};
|
|
58
66
|
//#endregion
|
|
59
67
|
//#region src/components/features/event-calendar/event-calendar-event-badge.tsx
|
|
60
|
-
function
|
|
61
|
-
let
|
|
62
|
-
return /* @__PURE__ */
|
|
68
|
+
function ve({ event: e, category: t, compact: n = !1, onClick: r, disabled: o = !1, locale: s, tabIndex: c, strings: l }) {
|
|
69
|
+
let u = R[z(t)], f = l?.formatTime ?? ((e) => s ? P(e, "p", { locale: s }) : P(e, "HH:mm")), p = l?.formatEventLabel ?? B.formatEventLabel, m = e.allDay ? null : f(e.startDate), h = e.metadata?.calendar_cell_title, g = typeof h == "string" && h.trim() !== "" ? h : e.title, _ = m ? p(g, m) : g;
|
|
70
|
+
return /* @__PURE__ */ A("button", {
|
|
63
71
|
type: "button",
|
|
64
72
|
onClick: (e) => {
|
|
65
|
-
e.stopPropagation(), r?.();
|
|
73
|
+
e.stopPropagation(), o || r?.();
|
|
66
74
|
},
|
|
67
|
-
className: i("event-calendar-event-badge--component",
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
75
|
+
className: i("event-calendar-event-badge--component", y.inline, y.focus, "@container/calendar-event group/calendar-event w-full min-w-0 text-left text-card-foreground", o ? "cursor-not-allowed" : "cursor-pointer"),
|
|
76
|
+
tabIndex: c,
|
|
77
|
+
"aria-label": _,
|
|
78
|
+
"aria-disabled": o || void 0,
|
|
79
|
+
title: _,
|
|
80
|
+
children: /* @__PURE__ */ j("span", {
|
|
71
81
|
className: i("box-border flex w-full min-w-0 flex-wrap items-center gap-x-space-xs overflow-hidden rounded-radius border border-border bg-card px-space-xs group-hover/calendar-event:bg-accent group-hover/calendar-event:text-accent-foreground", n ? "py-space-2xs" : "py-space-xs", "@max-[4rem]/calendar-event:min-h-action-xs @max-[4rem]/calendar-event:justify-center @max-[4rem]/calendar-event:border-transparent @max-[4rem]/calendar-event:bg-transparent @max-[4rem]/calendar-event:px-0 @max-[4rem]/calendar-event:py-space-2xs"),
|
|
72
|
-
children: [/* @__PURE__ */
|
|
82
|
+
children: [/* @__PURE__ */ j("span", {
|
|
73
83
|
className: "event-calendar-event-badge--title flex min-w-0 flex-auto items-center gap-space-xs @max-[4rem]/calendar-event:flex-none",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
84
|
+
children: [/* @__PURE__ */ A("span", {
|
|
75
85
|
"aria-hidden": "true",
|
|
76
|
-
className: i(d.inline,
|
|
77
|
-
}), /* @__PURE__ */
|
|
86
|
+
className: i(d.inline, u)
|
|
87
|
+
}), /* @__PURE__ */ A(a, {
|
|
78
88
|
tag: "span",
|
|
79
89
|
type: "inherit",
|
|
80
90
|
size: "xs",
|
|
81
91
|
weight: "medium",
|
|
82
92
|
className: "hidden min-w-0 flex-1 truncate @min-[4rem]/calendar-event:block",
|
|
83
|
-
children:
|
|
93
|
+
children: g
|
|
84
94
|
})]
|
|
85
|
-
}), !!
|
|
95
|
+
}), !!m && /* @__PURE__ */ A(a, {
|
|
86
96
|
tag: "span",
|
|
87
97
|
size: "xs",
|
|
88
98
|
type: "secondary",
|
|
89
99
|
className: "hidden shrink-0 whitespace-nowrap tabular-nums @min-[4rem]/calendar-event:inline",
|
|
90
|
-
children:
|
|
100
|
+
children: m
|
|
91
101
|
})]
|
|
92
102
|
})
|
|
93
103
|
});
|
|
94
104
|
}
|
|
95
|
-
|
|
105
|
+
ve.displayName = "EventCalendarEventBadge";
|
|
96
106
|
//#endregion
|
|
97
107
|
//#region src/components/features/event-calendar/use-event-calendar-data.tsx
|
|
98
|
-
function
|
|
99
|
-
return
|
|
108
|
+
function V(e) {
|
|
109
|
+
return de(e, { representation: "date" });
|
|
100
110
|
}
|
|
101
|
-
function
|
|
111
|
+
function ye(e, t, n, r = {}) {
|
|
102
112
|
let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
|
|
103
|
-
return
|
|
104
|
-
let r =
|
|
105
|
-
n === "month" ? (c =
|
|
106
|
-
let u =
|
|
113
|
+
return D(() => {
|
|
114
|
+
let r = me(t), s = le(t), c, l;
|
|
115
|
+
n === "month" ? (c = he(r, { weekStartsOn: i }), l = ue(s, { weekStartsOn: i })) : n === "week" ? (c = he(t, { weekStartsOn: i }), l = ue(t, { weekStartsOn: i })) : (c = r, l = s);
|
|
116
|
+
let u = se({
|
|
107
117
|
start: c,
|
|
108
118
|
end: l
|
|
109
119
|
}), d = o && o.length > 0 ? e.filter((e) => o.includes(e.category)) : e, f = /* @__PURE__ */ new Map();
|
|
110
120
|
return d.forEach((e) => {
|
|
111
|
-
let t =
|
|
121
|
+
let t = L(e.startDate);
|
|
112
122
|
if (Number.isNaN(t.getTime())) return;
|
|
113
123
|
let n = t;
|
|
114
124
|
if (e.endDate && !Number.isNaN(e.endDate.getTime())) {
|
|
115
|
-
let r =
|
|
125
|
+
let r = L(e.endDate);
|
|
116
126
|
!Number.isNaN(r.getTime()) && r.getTime() >= t.getTime() && (n = r);
|
|
117
127
|
}
|
|
118
|
-
|
|
128
|
+
se({
|
|
119
129
|
start: t,
|
|
120
130
|
end: n
|
|
121
131
|
}).forEach((t) => {
|
|
122
|
-
let n =
|
|
132
|
+
let n = V(t);
|
|
123
133
|
f.has(n) || f.set(n, []), f.get(n).push(e);
|
|
124
134
|
});
|
|
125
|
-
}), u.filter((e) => a || !
|
|
126
|
-
let n =
|
|
135
|
+
}), u.filter((e) => a || !pe(e)).map((e) => {
|
|
136
|
+
let n = V(e), r = [...f.get(n) || []].sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
127
137
|
return {
|
|
128
138
|
date: e,
|
|
129
|
-
isCurrentMonth:
|
|
130
|
-
isToday:
|
|
131
|
-
isWeekend:
|
|
139
|
+
isCurrentMonth: fe(e, t),
|
|
140
|
+
isToday: I(e),
|
|
141
|
+
isWeekend: pe(e),
|
|
132
142
|
events: r,
|
|
133
143
|
eventCount: r.length,
|
|
134
144
|
hasMultipleEvents: r.length > 1
|
|
@@ -143,185 +153,191 @@ function q(e, t, n, r = {}) {
|
|
|
143
153
|
o
|
|
144
154
|
]);
|
|
145
155
|
}
|
|
146
|
-
function
|
|
156
|
+
function be(e, t) {
|
|
147
157
|
return e.filter((e) => {
|
|
148
|
-
let n =
|
|
158
|
+
let n = L(e.startDate), r = e.endDate ? L(e.endDate) : n, i = L(t);
|
|
149
159
|
return F(i, n) || F(i, r) || i > n && i < r;
|
|
150
160
|
}).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
151
161
|
}
|
|
152
|
-
function
|
|
162
|
+
function H(e, t) {
|
|
153
163
|
return e.find((e) => e.id === t);
|
|
154
164
|
}
|
|
155
165
|
//#endregion
|
|
156
166
|
//#region src/components/features/event-calendar/event-calendar-day-cell.tsx
|
|
157
|
-
function
|
|
158
|
-
let
|
|
159
|
-
booking: c?.booking ??
|
|
160
|
-
bookings: c?.bookings ??
|
|
161
|
-
}, { date:
|
|
162
|
-
|
|
167
|
+
function xe({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick: o, compact: s = !1, strings: c, renderEvent: l, disabled: u = !1, locale: f, tabStop: p }) {
|
|
168
|
+
let m = p === void 0 ? void 0 : p ? 0 : -1, h = {
|
|
169
|
+
booking: c?.booking ?? B.booking,
|
|
170
|
+
bookings: c?.bookings ?? B.bookings
|
|
171
|
+
}, { date: g, isCurrentMonth: _, isToday: v, isWeekend: ee, events: b, eventCount: x } = e, S = b.slice(0, n), C = b.slice(n), w = Math.max(0, x - n), te = [...new Set(C.map((e) => e.category))].slice(0, 3), T = (e) => `${e} ${e === 1 ? h.booking : h.bookings}`, E = P(g, "PPPP", { locale: f }), D = c?.formatDayLabel ? c.formatDayLabel(E, x) : x === 0 ? E : `${E}, ${T(x)}`, O = c?.formatOverflow ? c.formatOverflow(w) : T(w), k = () => {
|
|
172
|
+
u || r();
|
|
173
|
+
};
|
|
174
|
+
return /* @__PURE__ */ A("div", {
|
|
163
175
|
className: i("event-calendar-day-cell--component", "box-border h-full p-0 relative w-full border-r border-b border-border last:border-r-0 [&:nth-child(7n)]:border-r-0"),
|
|
164
|
-
children: /* @__PURE__ */
|
|
165
|
-
onClick:
|
|
166
|
-
className: i("event-calendar-day-cell--surface", "box-border relative h-full w-full min-h-24 p-space-md transition-colors", "hover:bg-accent", "flex flex-col items-start gap-space-xs",
|
|
167
|
-
"data-date":
|
|
168
|
-
"data-today":
|
|
169
|
-
"data-weekend":
|
|
170
|
-
"data-current-month":
|
|
171
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: /* @__PURE__ */ j("div", {
|
|
177
|
+
onClick: k,
|
|
178
|
+
className: i("event-calendar-day-cell--surface", "box-border relative h-full w-full min-h-24 p-space-md transition-colors", "hover:bg-accent", "flex flex-col items-start gap-space-xs", v && "h-full bg-accent text-accent-foreground", s && "min-h-20 p-space-xs"),
|
|
179
|
+
"data-date": g.toISOString(),
|
|
180
|
+
"data-today": v,
|
|
181
|
+
"data-weekend": ee,
|
|
182
|
+
"data-current-month": _,
|
|
183
|
+
children: [/* @__PURE__ */ A("button", {
|
|
172
184
|
type: "button",
|
|
173
185
|
onClick: (e) => {
|
|
174
|
-
e.stopPropagation(),
|
|
186
|
+
e.stopPropagation(), k();
|
|
175
187
|
},
|
|
176
|
-
className: i("event-calendar-day-cell--date",
|
|
177
|
-
|
|
178
|
-
|
|
188
|
+
className: i("event-calendar-day-cell--date", y.target, y.focus, "text-inherit", u && "cursor-not-allowed"),
|
|
189
|
+
tabIndex: m,
|
|
190
|
+
"aria-label": D,
|
|
191
|
+
"aria-current": v ? "date" : void 0,
|
|
192
|
+
"aria-disabled": u || void 0,
|
|
193
|
+
children: /* @__PURE__ */ A(a, {
|
|
179
194
|
size: s ? "xs" : void 0,
|
|
180
|
-
weight:
|
|
181
|
-
type:
|
|
195
|
+
weight: v ? "semibold" : "regular",
|
|
196
|
+
type: _ ? "main" : "secondary",
|
|
182
197
|
lineHeight: "none",
|
|
183
|
-
children:
|
|
198
|
+
children: g.getDate()
|
|
184
199
|
})
|
|
185
|
-
}), /* @__PURE__ */
|
|
200
|
+
}), /* @__PURE__ */ j("div", {
|
|
186
201
|
className: "w-full space-y-space-2xs",
|
|
187
|
-
children: [
|
|
188
|
-
let i =
|
|
189
|
-
return l ? /* @__PURE__ */
|
|
202
|
+
children: [S.map((n) => {
|
|
203
|
+
let i = H(t, n.category);
|
|
204
|
+
return l ? /* @__PURE__ */ A("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ A(ve, {
|
|
190
205
|
event: n,
|
|
191
206
|
category: i,
|
|
192
207
|
compact: s || e.hasMultipleEvents,
|
|
208
|
+
disabled: u,
|
|
209
|
+
locale: f,
|
|
210
|
+
tabIndex: p === !1 ? -1 : void 0,
|
|
211
|
+
strings: c,
|
|
193
212
|
onClick: () => {
|
|
194
|
-
|
|
213
|
+
o ? o(n) : r();
|
|
195
214
|
}
|
|
196
215
|
}, n.id);
|
|
197
|
-
}),
|
|
216
|
+
}), w > 0 && /* @__PURE__ */ j("div", {
|
|
198
217
|
className: "flex items-center gap-space-xs py-space-2xs px-space-md",
|
|
199
|
-
children: [/* @__PURE__ */
|
|
218
|
+
children: [/* @__PURE__ */ A("div", {
|
|
200
219
|
className: "flex items-center -space-x-1",
|
|
201
|
-
children:
|
|
202
|
-
}), /* @__PURE__ */
|
|
220
|
+
children: te.map((e) => /* @__PURE__ */ A("span", { className: i("event-calendar-day-cell--overflow-dot", d.inline, "border border-background", R[z(H(t, e))]) }, e))
|
|
221
|
+
}), /* @__PURE__ */ A(a, {
|
|
203
222
|
size: "xs",
|
|
204
223
|
type: "secondary",
|
|
205
224
|
weight: "medium",
|
|
206
|
-
children:
|
|
207
|
-
y,
|
|
208
|
-
" ",
|
|
209
|
-
y === 1 ? u.booking : u.bookings
|
|
210
|
-
]
|
|
225
|
+
children: O
|
|
211
226
|
})]
|
|
212
227
|
})]
|
|
213
228
|
})]
|
|
214
229
|
})
|
|
215
230
|
});
|
|
216
231
|
}
|
|
217
|
-
|
|
232
|
+
xe.displayName = "EventCalendarDayCell";
|
|
218
233
|
//#endregion
|
|
219
234
|
//#region src/components/features/event-calendar/event-calendar-header.tsx
|
|
220
|
-
var
|
|
235
|
+
var Se = (e, t) => {
|
|
221
236
|
if (!e) return null;
|
|
222
|
-
if (e.element) return /* @__PURE__ */
|
|
237
|
+
if (e.element) return /* @__PURE__ */ A("div", {
|
|
223
238
|
className: "event-calendar-header--action-slot",
|
|
224
239
|
children: e.element
|
|
225
240
|
}, e.id || t);
|
|
226
|
-
let n = e.icon, r = e.id || `action-${t}`,
|
|
241
|
+
let n = e.icon, r = e.id || `action-${t}`, a = () => {
|
|
227
242
|
e.onClick?.();
|
|
228
|
-
},
|
|
229
|
-
return /* @__PURE__ */
|
|
243
|
+
}, o = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "outline";
|
|
244
|
+
return /* @__PURE__ */ j(c, {
|
|
230
245
|
tone: e.tone ?? "secondary",
|
|
231
|
-
buttonStyle:
|
|
232
|
-
onClick:
|
|
246
|
+
buttonStyle: o,
|
|
247
|
+
onClick: a,
|
|
233
248
|
className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-[0.2em]"),
|
|
234
249
|
disabled: !!e.disabled,
|
|
235
|
-
children: [!!n && /* @__PURE__ */
|
|
250
|
+
children: [!!n && /* @__PURE__ */ A(n, { className: "size-icon" }), e.label]
|
|
236
251
|
}, r);
|
|
237
252
|
};
|
|
238
|
-
function
|
|
239
|
-
let { defaultScale:
|
|
253
|
+
function Ce({ currentDate: t, viewMode: a, displayLabel: s, onPrevious: l, onNext: u, onToday: d, onViewModeChange: f, onDateChange: p, locale: m, actions: h, strings: _, rangeMode: v = "date", minDate: ee, maxDate: y, prevDisabled: w = !1, nextDisabled: te = !1, todayDisabled: T = !1 }) {
|
|
254
|
+
let { defaultScale: E } = n(), O = e(void 0, E), k = r(B, _), M = D(() => (h || []).filter((e) => e.visible !== !1), [h]), N = D(() => [
|
|
240
255
|
{
|
|
241
256
|
value: "month",
|
|
242
|
-
label:
|
|
257
|
+
label: k.viewMode.month
|
|
243
258
|
},
|
|
244
259
|
{
|
|
245
260
|
value: "week",
|
|
246
|
-
label:
|
|
261
|
+
label: k.viewMode.week
|
|
247
262
|
},
|
|
248
263
|
{
|
|
249
264
|
value: "agenda",
|
|
250
|
-
label:
|
|
265
|
+
label: k.viewMode.agenda
|
|
251
266
|
}
|
|
252
267
|
], [
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
268
|
+
k.viewMode.month,
|
|
269
|
+
k.viewMode.week,
|
|
270
|
+
k.viewMode.agenda
|
|
256
271
|
]);
|
|
257
|
-
return /* @__PURE__ */
|
|
272
|
+
return /* @__PURE__ */ A("div", {
|
|
258
273
|
className: "event-calendar-header--component @container/event-calendar-header mb-space-xl min-w-0",
|
|
259
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ j("div", {
|
|
260
275
|
className: "event-calendar-header--layout flex min-w-0 flex-col items-stretch gap-space-lg @2xl/event-calendar-header:flex-row @2xl/event-calendar-header:items-center @2xl/event-calendar-header:justify-between @2xl/event-calendar-header:gap-space-xl",
|
|
261
|
-
children: [/* @__PURE__ */
|
|
276
|
+
children: [/* @__PURE__ */ j("div", {
|
|
262
277
|
className: "event-calendar-header--title flex min-w-0 flex-wrap items-center gap-space-lg @2xl/event-calendar-header:flex-none",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ A(o, {
|
|
264
279
|
tag: "h3",
|
|
265
280
|
className: "min-w-0 break-words text-inherit",
|
|
266
|
-
children:
|
|
267
|
-
}), /* @__PURE__ */
|
|
281
|
+
children: s
|
|
282
|
+
}), /* @__PURE__ */ A(x, {
|
|
268
283
|
iconOnly: !0,
|
|
269
284
|
className: "min-w-0 max-w-full",
|
|
270
285
|
value: {
|
|
271
|
-
month:
|
|
272
|
-
year:
|
|
286
|
+
month: t.getMonth(),
|
|
287
|
+
year: t.getFullYear()
|
|
273
288
|
},
|
|
274
289
|
onValueChange: (e) => {
|
|
275
|
-
e.date &&
|
|
290
|
+
e.date && p?.(e.date);
|
|
276
291
|
},
|
|
277
|
-
fromYear:
|
|
278
|
-
toYear:
|
|
279
|
-
locale:
|
|
280
|
-
strings:
|
|
292
|
+
fromYear: ee?.getFullYear(),
|
|
293
|
+
toYear: y?.getFullYear(),
|
|
294
|
+
locale: m,
|
|
295
|
+
strings: k.monthYearPicker
|
|
281
296
|
})]
|
|
282
|
-
}), /* @__PURE__ */
|
|
297
|
+
}), /* @__PURE__ */ j("div", {
|
|
283
298
|
className: "event-calendar-header--controls flex w-full min-w-0 flex-wrap items-center gap-space-md @2xl/event-calendar-header:w-auto @2xl/event-calendar-header:flex-1 @2xl/event-calendar-header:justify-end",
|
|
284
299
|
children: [
|
|
285
|
-
|
|
286
|
-
className: i("event-calendar-header--actions flex min-w-0 flex-wrap items-center",
|
|
287
|
-
children:
|
|
288
|
-
}), /* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
300
|
+
M.length > 0 && /* @__PURE__ */ j(ne, { children: [/* @__PURE__ */ A("div", {
|
|
301
|
+
className: i("event-calendar-header--actions flex min-w-0 flex-wrap items-center", g.commands),
|
|
302
|
+
children: M.map((e, t) => Se(e, t))
|
|
303
|
+
}), /* @__PURE__ */ A("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
|
|
304
|
+
/* @__PURE__ */ A(c, {
|
|
290
305
|
tone: "secondary",
|
|
291
306
|
buttonStyle: "outline",
|
|
292
307
|
onClick: d,
|
|
293
|
-
|
|
308
|
+
disabled: T,
|
|
309
|
+
children: k.today
|
|
294
310
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
className: i("event-calendar-header--navigation",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ j("div", {
|
|
312
|
+
className: i("event-calendar-header--navigation", S.joinedFrame, C[O]),
|
|
313
|
+
children: [/* @__PURE__ */ A(c, {
|
|
298
314
|
tone: "secondary",
|
|
299
315
|
buttonStyle: "ghost",
|
|
300
|
-
size:
|
|
316
|
+
size: O,
|
|
301
317
|
iconOnly: !0,
|
|
302
318
|
onClick: l,
|
|
303
|
-
disabled:
|
|
304
|
-
className: i(
|
|
305
|
-
"aria-label":
|
|
306
|
-
children: /* @__PURE__ */
|
|
307
|
-
}), /* @__PURE__ */
|
|
319
|
+
disabled: w,
|
|
320
|
+
className: i(S.joinedItem, S.firstItem, "border-border border-e"),
|
|
321
|
+
"aria-label": k.previous,
|
|
322
|
+
children: /* @__PURE__ */ A(re, { className: "size-icon rtl:rotate-180" })
|
|
323
|
+
}), /* @__PURE__ */ A(c, {
|
|
308
324
|
tone: "secondary",
|
|
309
325
|
buttonStyle: "ghost",
|
|
310
|
-
size:
|
|
326
|
+
size: O,
|
|
311
327
|
iconOnly: !0,
|
|
312
328
|
onClick: u,
|
|
313
|
-
disabled:
|
|
314
|
-
className: i(
|
|
315
|
-
"aria-label":
|
|
316
|
-
children: /* @__PURE__ */
|
|
329
|
+
disabled: te,
|
|
330
|
+
className: i(S.joinedItem, S.lastItem),
|
|
331
|
+
"aria-label": k.next,
|
|
332
|
+
children: /* @__PURE__ */ A(ie, { className: "size-icon rtl:rotate-180" })
|
|
317
333
|
})]
|
|
318
334
|
}),
|
|
319
|
-
!!
|
|
320
|
-
"aria-label":
|
|
321
|
-
value:
|
|
322
|
-
options:
|
|
335
|
+
!!f && /* @__PURE__ */ A(b, {
|
|
336
|
+
"aria-label": k.viewMode.label,
|
|
337
|
+
value: a,
|
|
338
|
+
options: N,
|
|
323
339
|
onValueChange: (e) => {
|
|
324
|
-
e &&
|
|
340
|
+
e && f(e);
|
|
325
341
|
},
|
|
326
342
|
className: "w-full max-w-full @sm/event-calendar-header:w-28"
|
|
327
343
|
})
|
|
@@ -330,77 +346,77 @@ function oe({ currentDate: n, viewMode: o, displayLabel: c, onPrevious: l, onNex
|
|
|
330
346
|
})
|
|
331
347
|
});
|
|
332
348
|
}
|
|
333
|
-
|
|
349
|
+
Ce.displayName = "EventCalendarHeader";
|
|
334
350
|
//#endregion
|
|
335
351
|
//#region src/components/features/event-calendar/colors.ts
|
|
336
|
-
var
|
|
352
|
+
var U = {
|
|
337
353
|
badgeBg: "bg-muted",
|
|
338
354
|
border: "border-border"
|
|
339
|
-
},
|
|
355
|
+
}, W = {
|
|
340
356
|
gray: {
|
|
341
|
-
...
|
|
342
|
-
swatch:
|
|
357
|
+
...U,
|
|
358
|
+
swatch: R.gray
|
|
343
359
|
},
|
|
344
360
|
red: {
|
|
345
|
-
...
|
|
346
|
-
swatch:
|
|
361
|
+
...U,
|
|
362
|
+
swatch: R.red
|
|
347
363
|
},
|
|
348
364
|
orange: {
|
|
349
|
-
...
|
|
350
|
-
swatch:
|
|
365
|
+
...U,
|
|
366
|
+
swatch: R.orange
|
|
351
367
|
},
|
|
352
368
|
amber: {
|
|
353
|
-
...
|
|
354
|
-
swatch:
|
|
369
|
+
...U,
|
|
370
|
+
swatch: R.amber
|
|
355
371
|
},
|
|
356
372
|
yellow: {
|
|
357
|
-
...
|
|
358
|
-
swatch:
|
|
373
|
+
...U,
|
|
374
|
+
swatch: R.yellow
|
|
359
375
|
},
|
|
360
376
|
green: {
|
|
361
|
-
...
|
|
362
|
-
swatch:
|
|
377
|
+
...U,
|
|
378
|
+
swatch: R.green
|
|
363
379
|
},
|
|
364
380
|
blue: {
|
|
365
|
-
...
|
|
366
|
-
swatch:
|
|
381
|
+
...U,
|
|
382
|
+
swatch: R.blue
|
|
367
383
|
},
|
|
368
384
|
purple: {
|
|
369
|
-
...
|
|
370
|
-
swatch:
|
|
385
|
+
...U,
|
|
386
|
+
swatch: R.purple
|
|
371
387
|
}
|
|
372
388
|
};
|
|
373
|
-
function
|
|
374
|
-
let t =
|
|
389
|
+
function we(e) {
|
|
390
|
+
let t = z(e);
|
|
375
391
|
return {
|
|
376
|
-
dot:
|
|
377
|
-
...
|
|
392
|
+
dot: R[t],
|
|
393
|
+
...W[t]
|
|
378
394
|
};
|
|
379
395
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
396
|
+
function Te(e) {
|
|
397
|
+
return R[z(e)];
|
|
382
398
|
}
|
|
383
399
|
//#endregion
|
|
384
400
|
//#region src/components/features/event-calendar/event-calendar-legend.tsx
|
|
385
|
-
function
|
|
386
|
-
let s = !t || t.length === 0,
|
|
401
|
+
function Ee({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1, strings: o }) {
|
|
402
|
+
let s = !t || t.length === 0, l = (e) => !r || s || t?.includes(e), u = (e) => {
|
|
387
403
|
r && n && n(e);
|
|
388
404
|
};
|
|
389
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
405
|
+
return e.length === 0 ? null : /* @__PURE__ */ A("div", {
|
|
390
406
|
role: r ? "group" : void 0,
|
|
391
|
-
"aria-label": r ?
|
|
407
|
+
"aria-label": r ? o?.categoryFilterLabel ?? B.categoryFilterLabel : void 0,
|
|
392
408
|
className: i("event-calendar-legend--component", "flex flex-wrap items-center gap-space-sm py-space-xs"),
|
|
393
409
|
children: e.map((e) => {
|
|
394
|
-
let t =
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
className: i(
|
|
410
|
+
let t = l(e.id), n = we(e), o = e.icon, s = "group inline-flex items-center gap-space-sm rounded-radius border px-space-sm py-space-xs transition-colors", p = /* @__PURE__ */ j(ne, { children: [
|
|
411
|
+
/* @__PURE__ */ A("span", {
|
|
412
|
+
className: i(d.marker, t ? n.swatch : f.markerIdle),
|
|
397
413
|
"aria-hidden": "true"
|
|
398
414
|
}),
|
|
399
|
-
!!
|
|
415
|
+
!!o && /* @__PURE__ */ A(o, {
|
|
400
416
|
className: i("size-icon-sm", t ? "text-inherit" : "text-muted-foreground"),
|
|
401
417
|
"aria-hidden": "true"
|
|
402
418
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
419
|
+
/* @__PURE__ */ A(a, {
|
|
404
420
|
tag: "span",
|
|
405
421
|
size: "xs",
|
|
406
422
|
weight: "medium",
|
|
@@ -408,253 +424,386 @@ function le({ categories: e, visibleCategories: t, onToggleCategory: n, enableFi
|
|
|
408
424
|
children: e.label
|
|
409
425
|
})
|
|
410
426
|
] });
|
|
411
|
-
return r ? /* @__PURE__ */
|
|
427
|
+
return r ? /* @__PURE__ */ A(c, {
|
|
412
428
|
type: "button",
|
|
413
429
|
tone: "secondary",
|
|
414
430
|
buttonStyle: "ghost",
|
|
415
431
|
size: "sm",
|
|
416
432
|
"aria-pressed": t,
|
|
417
|
-
onClick: () =>
|
|
418
|
-
className: i(
|
|
419
|
-
children:
|
|
420
|
-
}, e.id) : /* @__PURE__ */
|
|
421
|
-
className: i(
|
|
422
|
-
children:
|
|
433
|
+
onClick: () => u(e.id),
|
|
434
|
+
className: i(s, "h-auto min-h-0 cursor-pointer shadow-none", t ? `border-border bg-card text-card-foreground ${_.toggleHover}` : `border-dashed border-border/60 bg-transparent text-muted-foreground ${_.toggleHover}`),
|
|
435
|
+
children: p
|
|
436
|
+
}, e.id) : /* @__PURE__ */ A("span", {
|
|
437
|
+
className: i(s, "border-border bg-card text-card-foreground cursor-default"),
|
|
438
|
+
children: p
|
|
423
439
|
}, e.id);
|
|
424
440
|
})
|
|
425
441
|
});
|
|
426
442
|
}
|
|
427
|
-
|
|
443
|
+
Ee.displayName = "EventCalendarLegend";
|
|
428
444
|
//#endregion
|
|
429
445
|
//#region src/components/features/event-calendar/use-event-calendar.tsx
|
|
430
|
-
function
|
|
431
|
-
let [l, u] =
|
|
446
|
+
function De({ events: e, locale: t, date: n, defaultDate: r, viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
|
|
447
|
+
let [l, u] = k(() => r ?? /* @__PURE__ */ new Date()), [d, f] = k(a), p = n ?? l, m = i ?? d, h = T((e) => {
|
|
432
448
|
n === void 0 && u(e), o?.(e);
|
|
433
|
-
}, [n, o]), g =
|
|
449
|
+
}, [n, o]), g = T((e) => {
|
|
434
450
|
i === void 0 && f(e), s?.(e);
|
|
435
|
-
}, [s, i]), _ =
|
|
451
|
+
}, [s, i]), _ = ye(e, p, m, c), v = D(() => c.visibleCategories && c.visibleCategories.length > 0 ? e.filter((e) => c.visibleCategories.includes(e.category)) : e, [e, c.visibleCategories]);
|
|
436
452
|
return {
|
|
437
453
|
currentDate: p,
|
|
438
454
|
viewMode: m,
|
|
439
455
|
calendarDays: _,
|
|
440
456
|
visibleEvents: v,
|
|
441
|
-
goToToday:
|
|
457
|
+
goToToday: T(() => {
|
|
442
458
|
h(/* @__PURE__ */ new Date());
|
|
443
459
|
}, [h]),
|
|
444
|
-
goToNextPeriod:
|
|
445
|
-
let e = m === "week" ?
|
|
460
|
+
goToNextPeriod: T(() => {
|
|
461
|
+
let e = m === "week" ? oe(p, 1) : ae(p, 1);
|
|
446
462
|
h(e);
|
|
447
463
|
}, [
|
|
448
464
|
h,
|
|
449
465
|
p,
|
|
450
466
|
m
|
|
451
467
|
]),
|
|
452
|
-
goToPreviousPeriod:
|
|
453
|
-
let e = m === "week" ?
|
|
468
|
+
goToPreviousPeriod: T(() => {
|
|
469
|
+
let e = m === "week" ? _e(p, 1) : ge(p, 1);
|
|
454
470
|
h(e);
|
|
455
471
|
}, [
|
|
456
472
|
h,
|
|
457
473
|
p,
|
|
458
474
|
m
|
|
459
475
|
]),
|
|
460
|
-
setDate:
|
|
476
|
+
setDate: T((e) => {
|
|
461
477
|
h(e);
|
|
462
478
|
}, [h]),
|
|
463
|
-
setViewMode:
|
|
479
|
+
setViewMode: T((e) => {
|
|
464
480
|
g(e);
|
|
465
481
|
}, [g]),
|
|
466
|
-
displayLabel:
|
|
467
|
-
if (m === "month") return
|
|
482
|
+
displayLabel: D(() => {
|
|
483
|
+
if (m === "month") return P(p, "MMMM yyyy", { locale: t });
|
|
468
484
|
if (m === "week") {
|
|
469
485
|
let e = _[0]?.date, n = _[_.length - 1]?.date;
|
|
470
|
-
return e && n ? `${
|
|
486
|
+
return e && n ? `${P(e, "MMM d", { locale: t })} - ${P(n, "MMM d, yyyy", { locale: t })}` : P(p, "MMMM yyyy", { locale: t });
|
|
471
487
|
}
|
|
472
|
-
return
|
|
488
|
+
return P(p, "MMMM yyyy", { locale: t });
|
|
473
489
|
}, [
|
|
474
490
|
p,
|
|
475
491
|
m,
|
|
476
492
|
_,
|
|
477
493
|
t
|
|
478
494
|
]),
|
|
479
|
-
hasEvents:
|
|
495
|
+
hasEvents: D(() => v.length > 0, [v])
|
|
480
496
|
};
|
|
481
497
|
}
|
|
482
498
|
//#endregion
|
|
483
499
|
//#region src/components/features/event-calendar/event-calendar.tsx
|
|
484
|
-
function
|
|
500
|
+
function G(e) {
|
|
501
|
+
return P(e, "yyyy-MM-dd");
|
|
502
|
+
}
|
|
503
|
+
function Oe(e, t) {
|
|
504
|
+
return e?.querySelector(`[data-day="${t}"] .event-calendar-day-cell--date`) ?? null;
|
|
505
|
+
}
|
|
506
|
+
function ke(e, t) {
|
|
485
507
|
if (!e) return !1;
|
|
486
508
|
if (Array.isArray(e)) return e.some((e) => e.toDateString() === t.toDateString());
|
|
487
509
|
if (typeof e == "function") return e(t);
|
|
488
510
|
let n = e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1, r = e.predicate?.(t) ?? !1;
|
|
489
511
|
return n || r;
|
|
490
512
|
}
|
|
491
|
-
function
|
|
492
|
-
let
|
|
493
|
-
let t =
|
|
494
|
-
|
|
495
|
-
},
|
|
513
|
+
function K({ events: e, categories: n, viewMode: o, defaultViewMode: c, onViewModeChange: l, date: d, defaultDate: f, onDateChange: g, onEventClick: _, onDayClick: v, maxEventsPerDay: ee = 3, showLegend: y = !0, showHeader: b = !0, showWeekends: x = !0, weekStartsOn: S, locale: C, enableCategoryFilter: T = !1, visibleCategories: ne, onVisibleCategoriesChange: re, loading: ie = !1, error: M, onRetry: oe, showViewSwitcher: se = !0, className: le, compact: ue = !1, actions: de, strings: F, dayHeadingVariant: I = "default", dayHeadingClassName: me, renderDayHeading: ge, rangeMode: _e = "date", minDate: R, maxDate: z, disabledDates: ve, filterEvent: V, renderEvent: ye, renderDayCell: be }) {
|
|
514
|
+
let H = r(B, F), [Se, U] = k([]), W = ne ?? Se, { weekStartsOn: we, locale: Te } = t(), K = S ?? we ?? 1, q = C ?? Te, Ae = (e) => {
|
|
515
|
+
let t = n.map((e) => e.id), r = W.length > 0 ? W : t, i = r.includes(e) ? r.filter((t) => t !== e) : [...r, e], a = t.every((e) => i.includes(e)) || i.length === 0 ? [] : i;
|
|
516
|
+
re ? re(a) : U(a);
|
|
517
|
+
}, J = De({
|
|
496
518
|
events: e,
|
|
497
|
-
locale:
|
|
498
|
-
date:
|
|
499
|
-
defaultDate:
|
|
500
|
-
viewMode:
|
|
501
|
-
defaultViewMode:
|
|
502
|
-
onDateChange:
|
|
503
|
-
onViewModeChange:
|
|
519
|
+
locale: q,
|
|
520
|
+
date: d,
|
|
521
|
+
defaultDate: f,
|
|
522
|
+
viewMode: o,
|
|
523
|
+
defaultViewMode: c,
|
|
524
|
+
onDateChange: g,
|
|
525
|
+
onViewModeChange: l,
|
|
504
526
|
dataOptions: {
|
|
505
|
-
weekStartsOn:
|
|
506
|
-
showWeekends:
|
|
507
|
-
visibleCategories:
|
|
527
|
+
weekStartsOn: K,
|
|
528
|
+
showWeekends: x,
|
|
529
|
+
visibleCategories: W.length > 0 ? W : void 0
|
|
508
530
|
}
|
|
509
|
-
}),
|
|
510
|
-
|
|
511
|
-
|
|
531
|
+
}), je = D(() => Array.from({ length: 7 }, (e, t) => (K + t) % 7).filter((e) => x || e !== 0 && e !== 6), [K, x]), Me = x ? "grid-cols-7" : "grid-cols-5", Ne = D(() => F?.weekdaysShort ?? (q ? Array.from({ length: 7 }, (e, t) => P(new Date(1970, 0, 4 + t), "EEE", { locale: q })) : H.weekdaysShort), [
|
|
532
|
+
F?.weekdaysShort,
|
|
533
|
+
q,
|
|
534
|
+
H.weekdaysShort
|
|
535
|
+
]), Y = D(() => R ? L(R) : void 0, [R]), X = D(() => z ? ce(z) : void 0, [z]), [Pe] = k(() => L(/* @__PURE__ */ new Date())), Fe = !!Y && Pe < Y || !!X && Pe > X;
|
|
536
|
+
function Ie(e) {
|
|
537
|
+
return !!(ke(ve, e) || Y && e < Y || X && e > X);
|
|
538
|
+
}
|
|
539
|
+
let Le = (e) => {
|
|
540
|
+
Ie(e.date) || v?.(e.date, e.events);
|
|
541
|
+
}, Z = D(() => V ? J.calendarDays.map((e) => ({
|
|
512
542
|
...e,
|
|
513
|
-
events: e.events.filter(
|
|
514
|
-
eventCount: e.events.filter(
|
|
515
|
-
hasMultipleEvents: e.events.filter(
|
|
516
|
-
})) :
|
|
517
|
-
|
|
518
|
-
|
|
543
|
+
events: e.events.filter(V),
|
|
544
|
+
eventCount: e.events.filter(V).length,
|
|
545
|
+
hasMultipleEvents: e.events.filter(V).length > 1
|
|
546
|
+
})) : J.calendarDays, [J.calendarDays, V]), Re = Z.some((e) => e.events.length > 0), Q = J.viewMode !== "agenda", ze = O(null), Be = O(null), $ = O(null), Ve = O(!1), [He, Ue] = k(null), We = D(() => new Set(Z.map((e) => G(e.date))), [Z]), Ge = null;
|
|
547
|
+
if (Q) {
|
|
548
|
+
let e = [
|
|
549
|
+
He,
|
|
550
|
+
G(J.currentDate),
|
|
551
|
+
G(Pe)
|
|
552
|
+
], t = Z.find((e) => !Ie(e.date)) ?? Z[0];
|
|
553
|
+
Ge = e.find((e) => !!e && We.has(e)) ?? (t ? G(t.date) : null);
|
|
519
554
|
}
|
|
520
|
-
let
|
|
521
|
-
let e =
|
|
555
|
+
let Ke = D(() => {
|
|
556
|
+
let e = [];
|
|
557
|
+
for (let t of Z) (e.length === 0 || je.indexOf(t.date.getDay()) === 0) && e.push([]), e[e.length - 1].push(t);
|
|
558
|
+
return e;
|
|
559
|
+
}, [Z, je]), qe = (e) => {
|
|
560
|
+
Ve.current = !0;
|
|
561
|
+
let t = e.target.closest("[data-day]")?.dataset.day;
|
|
562
|
+
t && Q && Ue(t);
|
|
563
|
+
}, Je = (e) => {
|
|
564
|
+
e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget) || (Ve.current = !1, $.current = null);
|
|
565
|
+
}, Ye = (e) => {
|
|
566
|
+
if (!Q || e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) return;
|
|
567
|
+
let t = e.target.closest(".event-calendar-day-cell--date")?.closest("[data-day]")?.dataset.day, n = Z.find((e) => G(e.date) === t)?.date;
|
|
568
|
+
if (!n) return;
|
|
569
|
+
let r = (e) => !x && pe(e), i = (e) => {
|
|
570
|
+
let t = N(n, e);
|
|
571
|
+
for (; r(t);) t = N(t, e);
|
|
572
|
+
return t;
|
|
573
|
+
}, a = () => Array.from({ length: 7 }, (e, t) => N(he(n, { weekStartsOn: K }), t)).filter((e) => !r(e)), o = (e) => {
|
|
574
|
+
if (J.viewMode === "week") return N(n, e * 7);
|
|
575
|
+
let t = ae(n, e);
|
|
576
|
+
if (!r(t)) return t;
|
|
577
|
+
let i = t;
|
|
578
|
+
for (; r(i);) i = N(i, -1);
|
|
579
|
+
if (fe(i, t)) return i;
|
|
580
|
+
for (i = t; r(i);) i = N(i, 1);
|
|
581
|
+
return i;
|
|
582
|
+
}, s = {
|
|
583
|
+
ArrowLeft: () => i(-1),
|
|
584
|
+
ArrowRight: () => i(1),
|
|
585
|
+
ArrowUp: () => N(n, -7),
|
|
586
|
+
ArrowDown: () => N(n, 7),
|
|
587
|
+
Home: () => a()[0],
|
|
588
|
+
End: () => a().at(-1),
|
|
589
|
+
PageUp: () => o(-1),
|
|
590
|
+
PageDown: () => o(1)
|
|
591
|
+
}[e.key];
|
|
592
|
+
if (!s) return;
|
|
593
|
+
e.preventDefault(), $.current = null;
|
|
594
|
+
let c = s();
|
|
595
|
+
if (!c || Y && c < Y || X && c > X) return;
|
|
596
|
+
let l = G(c);
|
|
597
|
+
if (We.has(l)) {
|
|
598
|
+
Oe(ze.current, l)?.focus();
|
|
599
|
+
return;
|
|
600
|
+
}
|
|
601
|
+
$.current = l, J.setDate(c);
|
|
602
|
+
}, Xe = D(() => {
|
|
603
|
+
let e = J.calendarDays;
|
|
522
604
|
if (e.length === 0) return {
|
|
523
605
|
prev: !1,
|
|
524
606
|
next: !1
|
|
525
607
|
};
|
|
526
608
|
let t = e[0].date, n = e[e.length - 1].date;
|
|
527
609
|
return {
|
|
528
|
-
prev: !!
|
|
529
|
-
next: !!
|
|
610
|
+
prev: !!Y && t <= Y,
|
|
611
|
+
next: !!X && ce(n) >= X
|
|
530
612
|
};
|
|
531
613
|
}, [
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
])
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
614
|
+
J.calendarDays,
|
|
615
|
+
Y,
|
|
616
|
+
X
|
|
617
|
+
]), Ze = se && (o === void 0 || l) ? J.setViewMode : void 0, Qe = T ? Ae : void 0, $e = {
|
|
618
|
+
booking: H.booking,
|
|
619
|
+
bookings: H.bookings,
|
|
620
|
+
formatDayLabel: H.formatDayLabel,
|
|
621
|
+
formatEventLabel: H.formatEventLabel,
|
|
622
|
+
formatOverflow: H.formatOverflow,
|
|
623
|
+
formatTime: H.formatTime
|
|
624
|
+
}, et = null;
|
|
625
|
+
ie ? et = /* @__PURE__ */ A("div", {
|
|
626
|
+
className: "event-calendar--loading",
|
|
627
|
+
"aria-busy": "true",
|
|
628
|
+
children: /* @__PURE__ */ A(m, { label: H.loading })
|
|
629
|
+
}) : M && (et = te(M) ? M : /* @__PURE__ */ A(h, {
|
|
630
|
+
title: H.errorTitle,
|
|
631
|
+
description: M instanceof Error ? M.message : typeof M == "string" || typeof M == "number" ? String(M) : H.errorDescription,
|
|
632
|
+
onRetry: oe,
|
|
633
|
+
retryLabel: H.retry,
|
|
634
|
+
className: "event-calendar--error"
|
|
635
|
+
}));
|
|
636
|
+
let tt = et ?? (!Re && H.emptyState ? /* @__PURE__ */ A(w, {
|
|
637
|
+
title: H.emptyState,
|
|
638
|
+
description: !1,
|
|
639
|
+
ariaLabel: H.emptyState,
|
|
640
|
+
border: !0,
|
|
641
|
+
padding: "md",
|
|
642
|
+
className: "event-calendar--empty"
|
|
643
|
+
}) : null), nt = tt !== null;
|
|
644
|
+
E(() => {
|
|
645
|
+
if (!Ve.current) return;
|
|
646
|
+
let e = !document.activeElement || document.activeElement === document.body;
|
|
647
|
+
if (nt) {
|
|
648
|
+
e && Be.current?.focus();
|
|
649
|
+
return;
|
|
650
|
+
}
|
|
651
|
+
let t = ze.current, n = $.current;
|
|
652
|
+
if (n && We.has(n)) {
|
|
653
|
+
$.current = null;
|
|
654
|
+
let e = Oe(t, n);
|
|
655
|
+
if (e) {
|
|
656
|
+
e.focus();
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
e && (t?.querySelector(".event-calendar-day-cell--date[tabindex=\"0\"]") ?? t?.querySelector(".event-calendar-day-cell--date"))?.focus();
|
|
661
|
+
});
|
|
662
|
+
let rt = (e) => {
|
|
663
|
+
let t = Ie(e.date), r = G(e.date), a = () => /* @__PURE__ */ A(xe, {
|
|
664
|
+
data: e,
|
|
665
|
+
categories: n,
|
|
666
|
+
maxEvents: ee,
|
|
667
|
+
onClick: () => Le(e),
|
|
668
|
+
onEventClick: _ ? (t) => {
|
|
669
|
+
Ie(e.date) || _(t);
|
|
670
|
+
} : void 0,
|
|
671
|
+
compact: ue,
|
|
672
|
+
strings: $e,
|
|
673
|
+
renderEvent: ye,
|
|
674
|
+
disabled: t,
|
|
675
|
+
locale: q,
|
|
676
|
+
tabStop: Q ? r === Ge : void 0
|
|
677
|
+
});
|
|
678
|
+
return /* @__PURE__ */ A("div", {
|
|
679
|
+
role: Q ? "gridcell" : "listitem",
|
|
680
|
+
"data-day": r,
|
|
681
|
+
style: { gridColumnStart: je.indexOf(e.date.getDay()) + 1 },
|
|
682
|
+
className: i(t && "pointer-events-none opacity-50"),
|
|
683
|
+
"aria-disabled": Q && t || void 0,
|
|
684
|
+
children: be ? be(e, a) : a()
|
|
685
|
+
}, e.date.toISOString());
|
|
686
|
+
}, it = "box-border bg-background text-foreground rounded-surface border border-border", at = /* @__PURE__ */ A("div", {
|
|
687
|
+
role: Q ? "row" : void 0,
|
|
688
|
+
className: i("grid", Me, I === "bordered" && "border-b border-border mb-0", I === "tinted" && i(p.band, "rounded-t-surface mb-0 overflow-hidden"), I === "accent" && i(u.primary.wash, "rounded-t-surface mb-0 overflow-hidden"), I === "default" && "mb-space-md"),
|
|
689
|
+
children: je.map((e, t) => {
|
|
690
|
+
let n = Ne[e];
|
|
691
|
+
return ge ? /* @__PURE__ */ A("div", {
|
|
692
|
+
role: Q ? "columnheader" : void 0,
|
|
693
|
+
children: ge(n, t)
|
|
694
|
+
}, e) : /* @__PURE__ */ A("div", {
|
|
695
|
+
role: Q ? "columnheader" : void 0,
|
|
696
|
+
className: i("text-center h-8 flex items-center justify-center", me),
|
|
697
|
+
children: /* @__PURE__ */ A(a, {
|
|
698
|
+
size: "xs",
|
|
699
|
+
weight: I === "accent" ? "medium" : "regular",
|
|
700
|
+
className: i(I === "default" && "text-muted-foreground", I === "tinted" && "text-muted-foreground", I === "bordered" && "text-foreground", I === "accent" && "text-primary-accent"),
|
|
701
|
+
children: n
|
|
702
|
+
})
|
|
703
|
+
}, e);
|
|
542
704
|
})
|
|
543
705
|
});
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
className: i("event-calendar--component w-full space-y-space-xl", k),
|
|
706
|
+
return /* @__PURE__ */ j("div", {
|
|
707
|
+
className: i("event-calendar--component w-full space-y-space-xl", le),
|
|
547
708
|
children: [
|
|
548
|
-
!!
|
|
549
|
-
currentDate:
|
|
550
|
-
viewMode:
|
|
551
|
-
displayLabel:
|
|
552
|
-
onPrevious:
|
|
553
|
-
onNext:
|
|
554
|
-
onToday:
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
709
|
+
!!b && /* @__PURE__ */ A(Ce, {
|
|
710
|
+
currentDate: J.currentDate,
|
|
711
|
+
viewMode: J.viewMode,
|
|
712
|
+
displayLabel: J.displayLabel,
|
|
713
|
+
onPrevious: J.goToPreviousPeriod,
|
|
714
|
+
onNext: J.goToNextPeriod,
|
|
715
|
+
onToday: J.goToToday,
|
|
716
|
+
todayDisabled: Fe,
|
|
717
|
+
onViewModeChange: Ze,
|
|
718
|
+
onDateChange: J.setDate,
|
|
719
|
+
locale: q,
|
|
720
|
+
actions: de,
|
|
721
|
+
rangeMode: _e,
|
|
722
|
+
minDate: R,
|
|
723
|
+
maxDate: z,
|
|
724
|
+
prevDisabled: Xe.prev,
|
|
725
|
+
nextDisabled: Xe.next,
|
|
564
726
|
strings: {
|
|
565
|
-
today:
|
|
566
|
-
previous:
|
|
567
|
-
next:
|
|
568
|
-
viewMode:
|
|
569
|
-
monthYearPicker:
|
|
727
|
+
today: H.today,
|
|
728
|
+
previous: H.previous,
|
|
729
|
+
next: H.next,
|
|
730
|
+
viewMode: H.viewMode,
|
|
731
|
+
monthYearPicker: H.monthYearPicker
|
|
570
732
|
}
|
|
571
733
|
}),
|
|
572
|
-
!!
|
|
573
|
-
categories:
|
|
574
|
-
visibleCategories:
|
|
575
|
-
onToggleCategory:
|
|
576
|
-
enableFiltering:
|
|
734
|
+
!!y && n.length > 0 && /* @__PURE__ */ A(Ee, {
|
|
735
|
+
categories: n,
|
|
736
|
+
visibleCategories: W,
|
|
737
|
+
onToggleCategory: Qe,
|
|
738
|
+
enableFiltering: T,
|
|
739
|
+
strings: { categoryFilterLabel: H.categoryFilterLabel }
|
|
577
740
|
}),
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
})
|
|
600
|
-
})
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
compact: A,
|
|
612
|
-
strings: {
|
|
613
|
-
booking: V.booking,
|
|
614
|
-
bookings: V.bookings
|
|
615
|
-
},
|
|
616
|
-
renderEvent: ne
|
|
617
|
-
});
|
|
618
|
-
return /* @__PURE__ */ T("div", {
|
|
619
|
-
style: { gridColumnStart: X.indexOf(e.date.getDay()) + 1 },
|
|
620
|
-
className: i(n && "pointer-events-none opacity-50"),
|
|
621
|
-
"aria-disabled": n || void 0,
|
|
622
|
-
children: B ? B(e, r) : r()
|
|
623
|
-
}, e.date.toISOString());
|
|
624
|
-
})
|
|
741
|
+
nt ? /* @__PURE__ */ A("div", {
|
|
742
|
+
ref: Be,
|
|
743
|
+
tabIndex: -1,
|
|
744
|
+
onFocus: qe,
|
|
745
|
+
onBlur: Je,
|
|
746
|
+
className: i("event-calendar--state rounded-surface outline-none", s.edge),
|
|
747
|
+
children: tt
|
|
748
|
+
}) : Q ? /* @__PURE__ */ j("div", {
|
|
749
|
+
ref: ze,
|
|
750
|
+
role: "grid",
|
|
751
|
+
"aria-label": J.displayLabel,
|
|
752
|
+
onKeyDown: Ye,
|
|
753
|
+
onFocus: qe,
|
|
754
|
+
onBlur: Je,
|
|
755
|
+
className: it,
|
|
756
|
+
children: [at, /* @__PURE__ */ A("div", {
|
|
757
|
+
className: "event-calendar--weeks",
|
|
758
|
+
children: Ke.map((e) => /* @__PURE__ */ A("div", {
|
|
759
|
+
role: "row",
|
|
760
|
+
className: i("event-calendar--week grid", Me),
|
|
761
|
+
children: e.map(rt)
|
|
762
|
+
}, e[0].date.toISOString()))
|
|
763
|
+
})]
|
|
764
|
+
}) : /* @__PURE__ */ j("div", {
|
|
765
|
+
ref: ze,
|
|
766
|
+
onFocus: qe,
|
|
767
|
+
onBlur: Je,
|
|
768
|
+
className: it,
|
|
769
|
+
children: [at, /* @__PURE__ */ A("div", {
|
|
770
|
+
role: "list",
|
|
771
|
+
"aria-label": J.displayLabel,
|
|
772
|
+
className: i("grid", Me),
|
|
773
|
+
children: Z.map(rt)
|
|
625
774
|
})]
|
|
626
775
|
})
|
|
627
776
|
]
|
|
628
777
|
});
|
|
629
778
|
}
|
|
630
|
-
|
|
779
|
+
K.displayName = "EventCalendar";
|
|
631
780
|
//#endregion
|
|
632
781
|
//#region src/components/features/event-calendar/event-calendar-event-card.tsx
|
|
633
|
-
var
|
|
782
|
+
var q = {
|
|
634
783
|
guest: "guest",
|
|
635
784
|
guests: "guests"
|
|
636
785
|
};
|
|
637
|
-
function
|
|
638
|
-
let u = r(
|
|
786
|
+
function Ae({ event: e, category: t, onClick: n, strings: c }) {
|
|
787
|
+
let u = r(q, c), f = !!n, p = () => {
|
|
639
788
|
n && n();
|
|
640
|
-
},
|
|
789
|
+
}, m = e.metadata || {}, h = m.customer_name, g = m.guest_count, y = m.service_name, b = Te(t), x = [h, g !== void 0 && g > 0 ? `${g} ${g === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), S = /* @__PURE__ */ j(l, {
|
|
641
790
|
gap: "lg",
|
|
642
791
|
children: [
|
|
643
|
-
/* @__PURE__ */
|
|
792
|
+
/* @__PURE__ */ j("div", {
|
|
644
793
|
className: "event-calendar-event-card--header flex min-w-0 items-start justify-between gap-space-lg",
|
|
645
|
-
children: [/* @__PURE__ */
|
|
794
|
+
children: [/* @__PURE__ */ j("div", {
|
|
646
795
|
className: "flex min-w-0 flex-1 flex-col items-start gap-space-xs sm:flex-row sm:flex-wrap sm:items-center sm:gap-x-space-md",
|
|
647
|
-
children: [/* @__PURE__ */
|
|
796
|
+
children: [/* @__PURE__ */ A(o, {
|
|
648
797
|
tag: "h5",
|
|
649
798
|
containerClassName: "event-calendar-event-card--heading min-w-0 max-w-full sm:w-auto",
|
|
650
799
|
className: "break-words text-inherit",
|
|
651
800
|
children: e.title
|
|
652
|
-
}), !!t && /* @__PURE__ */
|
|
801
|
+
}), !!t && /* @__PURE__ */ j("div", {
|
|
653
802
|
className: "event-calendar-event-card--category inline-flex min-w-0 max-w-full items-center gap-space-xs",
|
|
654
|
-
children: [/* @__PURE__ */
|
|
803
|
+
children: [/* @__PURE__ */ A("span", {
|
|
655
804
|
"aria-hidden": "true",
|
|
656
|
-
className: i("event-calendar-event-card--category-dot", d.inline,
|
|
657
|
-
}), /* @__PURE__ */
|
|
805
|
+
className: i("event-calendar-event-card--category-dot", d.inline, b)
|
|
806
|
+
}), /* @__PURE__ */ A(a, {
|
|
658
807
|
tag: "span",
|
|
659
808
|
type: "inherit",
|
|
660
809
|
size: "xs",
|
|
@@ -663,29 +812,29 @@ function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
|
663
812
|
children: t.label
|
|
664
813
|
})]
|
|
665
814
|
})]
|
|
666
|
-
}), !!f && !!e.url && /* @__PURE__ */
|
|
815
|
+
}), !!f && !!e.url && /* @__PURE__ */ A(M, { className: "size-icon-md text-muted-foreground flex-shrink-0" })]
|
|
667
816
|
}),
|
|
668
|
-
!!(
|
|
817
|
+
!!(x || y) && /* @__PURE__ */ j(l, {
|
|
669
818
|
gap: "xs",
|
|
670
819
|
className: "event-calendar-event-card--details min-w-0",
|
|
671
|
-
children: [!!
|
|
820
|
+
children: [!!x && /* @__PURE__ */ A(a, {
|
|
672
821
|
type: "inherit",
|
|
673
822
|
className: "event-calendar-event-card--facts break-words",
|
|
674
|
-
children:
|
|
675
|
-
}), !!
|
|
823
|
+
children: x
|
|
824
|
+
}), !!y && /* @__PURE__ */ A(a, {
|
|
676
825
|
type: "secondary",
|
|
677
826
|
className: "line-clamp-1",
|
|
678
|
-
children:
|
|
827
|
+
children: y
|
|
679
828
|
})]
|
|
680
829
|
}),
|
|
681
|
-
/* @__PURE__ */
|
|
830
|
+
/* @__PURE__ */ A("div", {
|
|
682
831
|
className: "event-calendar-event-card--date",
|
|
683
|
-
children: e.allDay ? /* @__PURE__ */
|
|
832
|
+
children: e.allDay ? /* @__PURE__ */ A(ee, {
|
|
684
833
|
value: e.startDate,
|
|
685
834
|
preset: "long",
|
|
686
835
|
size: "xs",
|
|
687
836
|
type: "secondary"
|
|
688
|
-
}) : /* @__PURE__ */
|
|
837
|
+
}) : /* @__PURE__ */ A(v, {
|
|
689
838
|
value: e.startDate,
|
|
690
839
|
preset: "long",
|
|
691
840
|
size: "xs",
|
|
@@ -693,19 +842,19 @@ function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
|
693
842
|
})
|
|
694
843
|
})
|
|
695
844
|
]
|
|
696
|
-
}),
|
|
697
|
-
return f ? /* @__PURE__ */
|
|
845
|
+
}), C = i("box-border w-full min-w-0 text-left p-surface border border-border rounded-surface bg-card text-card-foreground transition-none", f ? `cursor-pointer focus-visible:outline-none ${s.frame}` : "");
|
|
846
|
+
return f ? /* @__PURE__ */ A("button", {
|
|
698
847
|
type: "button",
|
|
699
|
-
onClick:
|
|
700
|
-
className: i("event-calendar-event-card--component", `m-0 flex h-auto flex-col items-stretch justify-start whitespace-normal font-sans shadow-none ${
|
|
701
|
-
children:
|
|
702
|
-
}) : /* @__PURE__ */
|
|
703
|
-
className: i("event-calendar-event-card--component",
|
|
704
|
-
children:
|
|
848
|
+
onClick: p,
|
|
849
|
+
className: i("event-calendar-event-card--component", `m-0 flex h-auto flex-col items-stretch justify-start whitespace-normal font-sans shadow-none ${_.rowHover}`, C),
|
|
850
|
+
children: S
|
|
851
|
+
}) : /* @__PURE__ */ A("div", {
|
|
852
|
+
className: i("event-calendar-event-card--component", C),
|
|
853
|
+
children: S
|
|
705
854
|
});
|
|
706
855
|
}
|
|
707
|
-
|
|
856
|
+
Ae.displayName = "EventCalendarEventCard";
|
|
708
857
|
//#endregion
|
|
709
|
-
export {
|
|
858
|
+
export { K as EventCalendar, xe as EventCalendarDayCell, ve as EventCalendarEventBadge, Ae as EventCalendarEventCard, Ce as EventCalendarHeader, Ee as EventCalendarLegend, R as calendarTokenDot, q as defaultEventCalendarEventCardStrings, B as defaultEventCalendarStrings, we as getCalendarColorClasses, Te as getCalendarDotClass, H as getCategoryById, be as getEventsForDay, z as resolveCategoryColorToken, De as useEventCalendar, ye as useEventCalendarData };
|
|
710
859
|
|
|
711
860
|
//# sourceMappingURL=event-calendar.js.map
|