themelia-react-ui 2.0.0 → 2.0.2
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 +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.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 +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- 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 +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- 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 +1 -1
- package/dist/base/repeaters.js +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +46 -45
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- 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/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.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/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { o as e, s as t, v as n } from "../ui-provider-C_U0Xma4.js";
|
|
3
3
|
import { useStrings as r } from "../lib/strings.js";
|
|
4
|
-
import { t as i } from "../utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as c } from "../
|
|
8
|
-
import {
|
|
9
|
-
import { t as d } from "../
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
4
|
+
import { t as i } from "../utils-BRhFDwuU.js";
|
|
5
|
+
import { n as a } from "../buttons-DPZekJFu.js";
|
|
6
|
+
import { c as o, s } from "../typography-UTnveOEy.js";
|
|
7
|
+
import { t as c } from "../focus-recipes-B653VaLq.js";
|
|
8
|
+
import { t as l } from "../structure-BmisBK-3.js";
|
|
9
|
+
import { i as u, t as d } from "../tone-recipes-BPsRAvhu.js";
|
|
10
|
+
import { t as f } from "../interaction-recipes-XR9ZpVYL.js";
|
|
11
|
+
import { r as p, t as m } from "../date-DCrsDTZc.js";
|
|
12
|
+
import { n as h } from "../field-affordance-recipes-DZhnIL_Y.js";
|
|
13
|
+
import { l as g } from "../choice-inputs-CNHvARCJ.js";
|
|
14
|
+
import { t as _ } from "../date-pickers-Ccw8DL2b.js";
|
|
15
|
+
import { r as v, t as y } from "../control-group-recipes-DBXmfh2E.js";
|
|
16
|
+
import { useCallback as b, useMemo as x, useState as S } from "react";
|
|
17
|
+
import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
18
|
+
import { ChevronLeft as E, ChevronRight as D, ExternalLink as O } from "lucide-react";
|
|
19
|
+
import { addMonths as k, addWeeks as A, eachDayOfInterval as j, endOfMonth as M, endOfWeek as N, format as P, isSameDay as F, isSameMonth as I, isToday as ee, isWeekend as L, startOfDay as R, startOfMonth as z, startOfWeek as B, subMonths as te, subWeeks as V } from "date-fns";
|
|
17
20
|
//#region src/components/features/event-calendar/event-calendar.types.ts
|
|
18
|
-
var
|
|
21
|
+
var H = {
|
|
19
22
|
gray: "bg-muted-foreground",
|
|
20
23
|
red: "bg-destructive",
|
|
21
24
|
orange: "bg-warning",
|
|
@@ -25,10 +28,10 @@ var B = {
|
|
|
25
28
|
blue: "bg-info",
|
|
26
29
|
purple: "bg-primary"
|
|
27
30
|
};
|
|
28
|
-
function
|
|
31
|
+
function U(e) {
|
|
29
32
|
return e?.colorToken ?? "gray";
|
|
30
33
|
}
|
|
31
|
-
var
|
|
34
|
+
var W = {
|
|
32
35
|
today: "Today",
|
|
33
36
|
previous: "Previous",
|
|
34
37
|
next: "Next",
|
|
@@ -53,31 +56,32 @@ var H = {
|
|
|
53
56
|
};
|
|
54
57
|
//#endregion
|
|
55
58
|
//#region src/components/features/event-calendar/event-calendar-event-badge.tsx
|
|
56
|
-
function
|
|
57
|
-
let a =
|
|
58
|
-
return /* @__PURE__ */
|
|
59
|
+
function G({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
60
|
+
let a = H[U(t)], s = e.allDay ? null : P(e.startDate, "HH:mm"), c = e.metadata?.calendar_cell_title, l = typeof c == "string" && c.trim() !== "" ? c : e.title, u = s ? `${l} at ${s}` : l;
|
|
61
|
+
return /* @__PURE__ */ w("button", {
|
|
59
62
|
type: "button",
|
|
60
63
|
onClick: (e) => {
|
|
61
64
|
e.stopPropagation(), r?.();
|
|
62
65
|
},
|
|
63
|
-
className: i("event-calendar-event-badge--component",
|
|
66
|
+
className: i("event-calendar-event-badge--component", h.inline, h.focus, "@container/calendar-event group/calendar-event w-full min-w-0 cursor-pointer text-left text-card-foreground"),
|
|
64
67
|
"aria-label": u,
|
|
65
68
|
title: u,
|
|
66
|
-
children: /* @__PURE__ */
|
|
69
|
+
children: /* @__PURE__ */ T("span", {
|
|
67
70
|
className: i("box-border flex w-full min-w-0 items-center gap-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"),
|
|
68
71
|
children: [
|
|
69
|
-
/* @__PURE__ */
|
|
72
|
+
/* @__PURE__ */ w("span", {
|
|
70
73
|
"aria-hidden": "true",
|
|
71
|
-
className: i(
|
|
74
|
+
className: i(d.inline, a)
|
|
72
75
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ w(o, {
|
|
74
77
|
tag: "span",
|
|
78
|
+
type: "inherit",
|
|
75
79
|
size: "xs",
|
|
76
80
|
weight: "medium",
|
|
77
81
|
className: "hidden min-w-0 flex-1 truncate @min-[4rem]/calendar-event:block",
|
|
78
82
|
children: l
|
|
79
83
|
}),
|
|
80
|
-
!!s && /* @__PURE__ */
|
|
84
|
+
!!s && /* @__PURE__ */ w(o, {
|
|
81
85
|
tag: "span",
|
|
82
86
|
size: "xs",
|
|
83
87
|
type: "secondary",
|
|
@@ -88,40 +92,40 @@ function U({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
|
88
92
|
})
|
|
89
93
|
});
|
|
90
94
|
}
|
|
91
|
-
|
|
95
|
+
G.displayName = "EventCalendarEventBadge";
|
|
92
96
|
//#endregion
|
|
93
97
|
//#region src/components/features/event-calendar/use-event-calendar-data.tsx
|
|
94
|
-
function
|
|
98
|
+
function K(e, t, n, r = {}) {
|
|
95
99
|
let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
|
|
96
|
-
return
|
|
97
|
-
let r =
|
|
98
|
-
n === "month" ? (c =
|
|
99
|
-
let u =
|
|
100
|
+
return x(() => {
|
|
101
|
+
let r = z(t), s = M(t), c, l;
|
|
102
|
+
n === "month" ? (c = B(r, { weekStartsOn: i }), l = N(s, { weekStartsOn: i })) : n === "week" ? (c = B(t, { weekStartsOn: i }), l = N(t, { weekStartsOn: i })) : (c = r, l = s);
|
|
103
|
+
let u = j({
|
|
100
104
|
start: c,
|
|
101
105
|
end: l
|
|
102
106
|
}), d = o && o.length > 0 ? e.filter((e) => o.includes(e.category)) : e, f = /* @__PURE__ */ new Map();
|
|
103
107
|
return d.forEach((e) => {
|
|
104
|
-
let t =
|
|
108
|
+
let t = R(e.startDate);
|
|
105
109
|
if (Number.isNaN(t.getTime())) return;
|
|
106
110
|
let n = t;
|
|
107
111
|
if (e.endDate && !Number.isNaN(e.endDate.getTime())) {
|
|
108
|
-
let r =
|
|
112
|
+
let r = R(e.endDate);
|
|
109
113
|
!Number.isNaN(r.getTime()) && r.getTime() >= t.getTime() && (n = r);
|
|
110
114
|
}
|
|
111
|
-
|
|
115
|
+
j({
|
|
112
116
|
start: t,
|
|
113
117
|
end: n
|
|
114
118
|
}).forEach((t) => {
|
|
115
119
|
let n = t.toISOString().split("T")[0];
|
|
116
120
|
f.has(n) || f.set(n, []), f.get(n).push(e);
|
|
117
121
|
});
|
|
118
|
-
}), u.filter((e) => a || !
|
|
122
|
+
}), u.filter((e) => a || !L(e)).map((e) => {
|
|
119
123
|
let n = e.toISOString().split("T")[0], r = [...f.get(n) || []].sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
120
124
|
return {
|
|
121
125
|
date: e,
|
|
122
|
-
isCurrentMonth:
|
|
123
|
-
isToday:
|
|
124
|
-
isWeekend:
|
|
126
|
+
isCurrentMonth: I(e, t),
|
|
127
|
+
isToday: ee(e),
|
|
128
|
+
isWeekend: L(e),
|
|
125
129
|
events: r,
|
|
126
130
|
eventCount: r.length,
|
|
127
131
|
hasMultipleEvents: r.length > 1
|
|
@@ -136,47 +140,50 @@ function W(e, t, n, r = {}) {
|
|
|
136
140
|
o
|
|
137
141
|
]);
|
|
138
142
|
}
|
|
139
|
-
function
|
|
143
|
+
function ne(e, t) {
|
|
140
144
|
return e.filter((e) => {
|
|
141
|
-
let n =
|
|
142
|
-
return
|
|
145
|
+
let n = R(e.startDate), r = e.endDate ? R(e.endDate) : n, i = R(t);
|
|
146
|
+
return F(i, n) || F(i, r) || i > n && i < r;
|
|
143
147
|
}).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
144
148
|
}
|
|
145
|
-
function
|
|
149
|
+
function q(e, t) {
|
|
146
150
|
return e.find((e) => e.id === t);
|
|
147
151
|
}
|
|
148
152
|
//#endregion
|
|
149
153
|
//#region src/components/features/event-calendar/event-calendar-day-cell.tsx
|
|
150
|
-
function
|
|
154
|
+
function J({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick: a, compact: s = !1, strings: c, renderEvent: l }) {
|
|
151
155
|
let u = {
|
|
152
|
-
booking: c?.booking ??
|
|
153
|
-
bookings: c?.bookings ??
|
|
154
|
-
}, { date:
|
|
155
|
-
return /* @__PURE__ */
|
|
156
|
+
booking: c?.booking ?? W.booking,
|
|
157
|
+
bookings: c?.bookings ?? W.bookings
|
|
158
|
+
}, { date: d, isCurrentMonth: f, isToday: p, isWeekend: m, events: g, eventCount: _ } = e, v = g.slice(0, n), y = Math.max(0, _ - n);
|
|
159
|
+
return /* @__PURE__ */ w("div", {
|
|
156
160
|
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"),
|
|
157
|
-
children: /* @__PURE__ */
|
|
161
|
+
children: /* @__PURE__ */ T("div", {
|
|
158
162
|
onClick: r,
|
|
159
|
-
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",
|
|
160
|
-
"data-date":
|
|
161
|
-
"data-today":
|
|
162
|
-
"data-weekend":
|
|
163
|
-
"data-current-month":
|
|
164
|
-
children: [/* @__PURE__ */
|
|
163
|
+
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", p && "h-full bg-accent text-accent-foreground", s && "min-h-20 p-space-xs"),
|
|
164
|
+
"data-date": d.toISOString(),
|
|
165
|
+
"data-today": p,
|
|
166
|
+
"data-weekend": m,
|
|
167
|
+
"data-current-month": f,
|
|
168
|
+
children: [/* @__PURE__ */ w("button", {
|
|
165
169
|
type: "button",
|
|
166
170
|
onClick: (e) => {
|
|
167
171
|
e.stopPropagation(), r();
|
|
168
172
|
},
|
|
169
|
-
className: i("event-calendar-day-cell--date",
|
|
170
|
-
"aria-label":
|
|
171
|
-
children: /* @__PURE__ */
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
className: i("event-calendar-day-cell--date", h.target, h.focus, "text-inherit"),
|
|
174
|
+
"aria-label": d.toDateString(),
|
|
175
|
+
children: /* @__PURE__ */ w(o, {
|
|
176
|
+
size: s ? "xs" : void 0,
|
|
177
|
+
weight: p ? "semibold" : "regular",
|
|
178
|
+
type: f ? "main" : "secondary",
|
|
179
|
+
lineHeight: "none",
|
|
180
|
+
children: d.getDate()
|
|
174
181
|
})
|
|
175
|
-
}), /* @__PURE__ */
|
|
182
|
+
}), /* @__PURE__ */ T("div", {
|
|
176
183
|
className: "w-full space-y-space-2xs",
|
|
177
184
|
children: [v.map((n) => {
|
|
178
|
-
let i =
|
|
179
|
-
return l ? /* @__PURE__ */
|
|
185
|
+
let i = q(t, n.category);
|
|
186
|
+
return l ? /* @__PURE__ */ w("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ w(G, {
|
|
180
187
|
event: n,
|
|
181
188
|
category: i,
|
|
182
189
|
compact: s || e.hasMultipleEvents,
|
|
@@ -184,15 +191,15 @@ function K({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
184
191
|
a ? a(n) : r();
|
|
185
192
|
}
|
|
186
193
|
}, n.id);
|
|
187
|
-
}), y > 0 && /* @__PURE__ */
|
|
194
|
+
}), y > 0 && /* @__PURE__ */ T("div", {
|
|
188
195
|
className: "flex items-center gap-space-xs py-space-2xs px-space-md",
|
|
189
|
-
children: [/* @__PURE__ */
|
|
196
|
+
children: [/* @__PURE__ */ w("div", {
|
|
190
197
|
className: "flex items-center -space-x-1",
|
|
191
|
-
children: t.slice(0, 3).map((e, t) => /* @__PURE__ */
|
|
192
|
-
}), /* @__PURE__ */
|
|
198
|
+
children: t.slice(0, 3).map((e, t) => /* @__PURE__ */ w("span", { className: i("h-1.5 w-1.5 rounded-full border border-background", H[U(e)]) }, e.id || t))
|
|
199
|
+
}), /* @__PURE__ */ T(o, {
|
|
193
200
|
size: "xs",
|
|
194
201
|
type: "secondary",
|
|
195
|
-
|
|
202
|
+
weight: "medium",
|
|
196
203
|
children: [
|
|
197
204
|
y,
|
|
198
205
|
" ",
|
|
@@ -204,29 +211,29 @@ function K({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
204
211
|
})
|
|
205
212
|
});
|
|
206
213
|
}
|
|
207
|
-
|
|
214
|
+
J.displayName = "EventCalendarDayCell";
|
|
208
215
|
//#endregion
|
|
209
216
|
//#region src/components/features/event-calendar/event-calendar-header.tsx
|
|
210
|
-
var
|
|
217
|
+
var Y = (e, t) => {
|
|
211
218
|
if (!e) return null;
|
|
212
|
-
if (e.element) return /* @__PURE__ */
|
|
219
|
+
if (e.element) return /* @__PURE__ */ w("div", {
|
|
213
220
|
className: "event-calendar-header--action-slot",
|
|
214
221
|
children: e.element
|
|
215
222
|
}, e.id || t);
|
|
216
|
-
let n = e.icon, r = e.id || `action-${t}`,
|
|
223
|
+
let n = e.icon, r = e.id || `action-${t}`, o = () => {
|
|
217
224
|
e.onClick?.();
|
|
218
|
-
},
|
|
219
|
-
return /* @__PURE__ */
|
|
225
|
+
}, s = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "solid";
|
|
226
|
+
return /* @__PURE__ */ T(a, {
|
|
220
227
|
tone: e.tone ?? "primary",
|
|
221
|
-
buttonStyle:
|
|
222
|
-
onClick:
|
|
223
|
-
className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-
|
|
228
|
+
buttonStyle: s,
|
|
229
|
+
onClick: o,
|
|
230
|
+
className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-[0.2em]"),
|
|
224
231
|
disabled: !!e.disabled,
|
|
225
|
-
children: [!!n && /* @__PURE__ */
|
|
232
|
+
children: [!!n && /* @__PURE__ */ w(n, { className: "size-icon" }), e.label]
|
|
226
233
|
}, r);
|
|
227
234
|
};
|
|
228
|
-
function
|
|
229
|
-
let { defaultScale: M } =
|
|
235
|
+
function X({ currentDate: e, viewMode: o, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: f, onDateChange: p, locale: m, actions: h, strings: b, rangeMode: S = "date", minDate: O, maxDate: k, prevDisabled: A = !1, nextDisabled: j = !1 }) {
|
|
236
|
+
let { defaultScale: M } = t(), N = n(void 0, M), P = r(W, b), F = x(() => (h || []).filter((e) => e.visible !== !1), [h]), I = x(() => [
|
|
230
237
|
{
|
|
231
238
|
value: "month",
|
|
232
239
|
label: P.viewMode.month
|
|
@@ -244,74 +251,74 @@ function J({ currentDate: t, viewMode: o, displayLabel: c, onPrevious: l, onNext
|
|
|
244
251
|
P.viewMode.week,
|
|
245
252
|
P.viewMode.agenda
|
|
246
253
|
]);
|
|
247
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ w("div", {
|
|
248
255
|
className: "event-calendar-header--component @container/event-calendar-header mb-space-xl min-w-0",
|
|
249
|
-
children: /* @__PURE__ */
|
|
256
|
+
children: /* @__PURE__ */ T("div", {
|
|
250
257
|
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",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
258
|
+
children: [/* @__PURE__ */ T("div", {
|
|
252
259
|
className: "event-calendar-header--title flex min-w-0 flex-wrap items-center gap-space-lg @2xl/event-calendar-header:flex-none",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ w(s, {
|
|
254
261
|
tag: "h3",
|
|
255
|
-
className: "min-w-0 break-words",
|
|
262
|
+
className: "min-w-0 break-words text-inherit",
|
|
256
263
|
children: c
|
|
257
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ w(_, {
|
|
258
265
|
iconOnly: !0,
|
|
259
266
|
className: "min-w-0 max-w-full",
|
|
260
267
|
value: {
|
|
261
|
-
month:
|
|
262
|
-
year:
|
|
268
|
+
month: e.getMonth(),
|
|
269
|
+
year: e.getFullYear()
|
|
263
270
|
},
|
|
264
271
|
onValueChange: (e) => {
|
|
265
|
-
e.date &&
|
|
272
|
+
e.date && p?.(e.date);
|
|
266
273
|
},
|
|
267
274
|
fromYear: O?.getFullYear(),
|
|
268
275
|
toYear: k?.getFullYear(),
|
|
269
|
-
locale:
|
|
276
|
+
locale: m,
|
|
270
277
|
strings: P.monthYearPicker
|
|
271
278
|
})]
|
|
272
|
-
}), /* @__PURE__ */
|
|
279
|
+
}), /* @__PURE__ */ T("div", {
|
|
273
280
|
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",
|
|
274
281
|
children: [
|
|
275
|
-
F.length > 0 && /* @__PURE__ */
|
|
282
|
+
F.length > 0 && /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w("div", {
|
|
276
283
|
className: "event-calendar-header--actions flex min-w-0 flex-wrap items-center gap-space-md",
|
|
277
|
-
children: F.map((e, t) =>
|
|
278
|
-
}), /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
284
|
+
children: F.map((e, t) => Y(e, t))
|
|
285
|
+
}), /* @__PURE__ */ w("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
|
|
286
|
+
/* @__PURE__ */ w(a, {
|
|
280
287
|
tone: "secondary",
|
|
281
288
|
buttonStyle: "outline",
|
|
282
289
|
onClick: d,
|
|
283
290
|
children: P.today
|
|
284
291
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
className: i("event-calendar-header--navigation",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
292
|
+
/* @__PURE__ */ T("div", {
|
|
293
|
+
className: i("event-calendar-header--navigation", v.joinedFrame, y[N]),
|
|
294
|
+
children: [/* @__PURE__ */ w(a, {
|
|
288
295
|
tone: "secondary",
|
|
289
296
|
buttonStyle: "ghost",
|
|
290
297
|
size: N,
|
|
291
298
|
iconOnly: !0,
|
|
292
299
|
onClick: l,
|
|
293
300
|
disabled: A,
|
|
294
|
-
className: i(
|
|
301
|
+
className: i(v.joinedItem, v.firstItem, "border-border border-e"),
|
|
295
302
|
"aria-label": P.previous,
|
|
296
|
-
children: /* @__PURE__ */
|
|
297
|
-
}), /* @__PURE__ */
|
|
303
|
+
children: /* @__PURE__ */ w(E, { className: "size-icon rtl:rotate-180" })
|
|
304
|
+
}), /* @__PURE__ */ w(a, {
|
|
298
305
|
tone: "secondary",
|
|
299
306
|
buttonStyle: "ghost",
|
|
300
307
|
size: N,
|
|
301
308
|
iconOnly: !0,
|
|
302
309
|
onClick: u,
|
|
303
310
|
disabled: j,
|
|
304
|
-
className: i(
|
|
311
|
+
className: i(v.joinedItem, v.lastItem),
|
|
305
312
|
"aria-label": P.next,
|
|
306
|
-
children: /* @__PURE__ */
|
|
313
|
+
children: /* @__PURE__ */ w(D, { className: "size-icon rtl:rotate-180" })
|
|
307
314
|
})]
|
|
308
315
|
}),
|
|
309
|
-
!!
|
|
316
|
+
!!f && /* @__PURE__ */ w(g, {
|
|
310
317
|
"aria-label": P.viewMode.label,
|
|
311
318
|
value: o,
|
|
312
319
|
options: I,
|
|
313
320
|
onValueChange: (e) => {
|
|
314
|
-
e &&
|
|
321
|
+
e && f(e);
|
|
315
322
|
},
|
|
316
323
|
className: "w-full max-w-full @sm/event-calendar-header:w-28"
|
|
317
324
|
})
|
|
@@ -320,202 +327,202 @@ function J({ currentDate: t, viewMode: o, displayLabel: c, onPrevious: l, onNext
|
|
|
320
327
|
})
|
|
321
328
|
});
|
|
322
329
|
}
|
|
323
|
-
|
|
330
|
+
X.displayName = "EventCalendarHeader";
|
|
324
331
|
//#endregion
|
|
325
332
|
//#region src/components/features/event-calendar/colors.ts
|
|
326
|
-
var
|
|
333
|
+
var Z = {
|
|
327
334
|
gray: {
|
|
328
335
|
badgeBg: "bg-muted",
|
|
329
336
|
border: "border-border",
|
|
330
337
|
swatch: "bg-muted-foreground"
|
|
331
338
|
},
|
|
332
339
|
red: {
|
|
333
|
-
badgeBg:
|
|
334
|
-
border:
|
|
335
|
-
swatch:
|
|
340
|
+
badgeBg: u.destructive.tint,
|
|
341
|
+
border: u.destructive.edge,
|
|
342
|
+
swatch: u.destructive.solid
|
|
336
343
|
},
|
|
337
344
|
orange: {
|
|
338
|
-
badgeBg:
|
|
339
|
-
border:
|
|
340
|
-
swatch:
|
|
345
|
+
badgeBg: u.warning.tint,
|
|
346
|
+
border: u.warning.edge,
|
|
347
|
+
swatch: u.warning.solid
|
|
341
348
|
},
|
|
342
349
|
amber: {
|
|
343
|
-
badgeBg:
|
|
344
|
-
border:
|
|
345
|
-
swatch:
|
|
350
|
+
badgeBg: u.warning.tint,
|
|
351
|
+
border: u.warning.edge,
|
|
352
|
+
swatch: u.warning.solid
|
|
346
353
|
},
|
|
347
354
|
yellow: {
|
|
348
|
-
badgeBg:
|
|
349
|
-
border:
|
|
350
|
-
swatch:
|
|
355
|
+
badgeBg: u.warning.tint,
|
|
356
|
+
border: u.warning.edge,
|
|
357
|
+
swatch: u.warning.solid
|
|
351
358
|
},
|
|
352
359
|
green: {
|
|
353
|
-
badgeBg:
|
|
354
|
-
border:
|
|
355
|
-
swatch:
|
|
360
|
+
badgeBg: u.success.tint,
|
|
361
|
+
border: u.success.edge,
|
|
362
|
+
swatch: u.success.solid
|
|
356
363
|
},
|
|
357
364
|
blue: {
|
|
358
|
-
badgeBg:
|
|
359
|
-
border:
|
|
360
|
-
swatch:
|
|
365
|
+
badgeBg: u.info.tint,
|
|
366
|
+
border: u.info.edge,
|
|
367
|
+
swatch: u.info.solid
|
|
361
368
|
},
|
|
362
369
|
purple: {
|
|
363
|
-
badgeBg:
|
|
364
|
-
border:
|
|
365
|
-
swatch:
|
|
370
|
+
badgeBg: u.primary.tint,
|
|
371
|
+
border: u.primary.edge,
|
|
372
|
+
swatch: u.primary.solid
|
|
366
373
|
}
|
|
367
374
|
};
|
|
368
|
-
function
|
|
369
|
-
let t =
|
|
375
|
+
function Q(e) {
|
|
376
|
+
let t = U(e);
|
|
370
377
|
return {
|
|
371
|
-
dot:
|
|
372
|
-
...
|
|
378
|
+
dot: H[t],
|
|
379
|
+
...Z[t]
|
|
373
380
|
};
|
|
374
381
|
}
|
|
375
|
-
function
|
|
376
|
-
return
|
|
382
|
+
function $(e) {
|
|
383
|
+
return H[U(e)];
|
|
377
384
|
}
|
|
378
385
|
//#endregion
|
|
379
386
|
//#region src/components/features/event-calendar/event-calendar-legend.tsx
|
|
380
|
-
function
|
|
381
|
-
let
|
|
387
|
+
function re({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1 }) {
|
|
388
|
+
let s = !t || t.length === 0, c = (e) => !r || s || t?.includes(e), l = (e) => {
|
|
382
389
|
r && n && n(e);
|
|
383
390
|
};
|
|
384
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
391
|
+
return e.length === 0 ? null : /* @__PURE__ */ w("div", {
|
|
385
392
|
role: r ? "group" : void 0,
|
|
386
393
|
"aria-label": r ? "Filter event categories" : void 0,
|
|
387
394
|
className: i("event-calendar-legend--component", "flex flex-wrap items-center gap-space-sm py-space-xs"),
|
|
388
395
|
children: e.map((e) => {
|
|
389
|
-
let t = c(e.id), n =
|
|
390
|
-
/* @__PURE__ */
|
|
396
|
+
let t = c(e.id), n = Q(e), s = e.icon, u = "group inline-flex items-center gap-space-sm rounded-inner border px-space-sm py-space-xs transition-colors", d = /* @__PURE__ */ T(C, { children: [
|
|
397
|
+
/* @__PURE__ */ w("span", {
|
|
391
398
|
className: i("inline-block size-2 rounded-radius", t ? n.swatch : "bg-muted-foreground/40"),
|
|
392
399
|
"aria-hidden": "true"
|
|
393
400
|
}),
|
|
394
|
-
!!
|
|
395
|
-
className: i("size-icon-sm", t ? "text-
|
|
401
|
+
!!s && /* @__PURE__ */ w(s, {
|
|
402
|
+
className: i("size-icon-sm", t ? "text-inherit" : "text-muted-foreground"),
|
|
396
403
|
"aria-hidden": "true"
|
|
397
404
|
}),
|
|
398
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ w(o, {
|
|
399
406
|
tag: "span",
|
|
400
407
|
size: "xs",
|
|
401
408
|
weight: "medium",
|
|
402
|
-
type: t ? "
|
|
409
|
+
type: t ? "inherit" : "secondary",
|
|
403
410
|
children: e.label
|
|
404
411
|
})
|
|
405
412
|
] });
|
|
406
|
-
return r ? /* @__PURE__ */
|
|
413
|
+
return r ? /* @__PURE__ */ w(a, {
|
|
407
414
|
type: "button",
|
|
408
415
|
tone: "secondary",
|
|
409
416
|
buttonStyle: "ghost",
|
|
410
417
|
size: "sm",
|
|
411
418
|
"aria-pressed": t,
|
|
412
419
|
onClick: () => l(e.id),
|
|
413
|
-
className: i(u, "h-auto min-h-0 cursor-pointer shadow-none
|
|
420
|
+
className: i(u, "h-auto min-h-0 cursor-pointer shadow-none", t ? `border-border bg-card text-card-foreground ${f.toggleHover}` : `border-dashed border-border/60 bg-transparent text-muted-foreground ${f.toggleHover}`),
|
|
414
421
|
children: d
|
|
415
|
-
}, e.id) : /* @__PURE__ */
|
|
416
|
-
className: i(u, "border-border bg-card cursor-default"),
|
|
422
|
+
}, e.id) : /* @__PURE__ */ w("span", {
|
|
423
|
+
className: i(u, "border-border bg-card text-card-foreground cursor-default"),
|
|
417
424
|
children: d
|
|
418
425
|
}, e.id);
|
|
419
426
|
})
|
|
420
427
|
});
|
|
421
428
|
}
|
|
422
|
-
|
|
429
|
+
re.displayName = "EventCalendarLegend";
|
|
423
430
|
//#endregion
|
|
424
431
|
//#region src/components/features/event-calendar/use-event-calendar.tsx
|
|
425
|
-
function
|
|
426
|
-
let [l, u] =
|
|
432
|
+
function ie({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ new Date(), viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
|
|
433
|
+
let [l, u] = S(r), [d, f] = S(a), p = n ?? l, m = i ?? d, h = b((e) => {
|
|
427
434
|
n === void 0 && u(e), o?.(e);
|
|
428
|
-
}, [n, o]),
|
|
435
|
+
}, [n, o]), g = b((e) => {
|
|
429
436
|
i === void 0 && f(e), s?.(e);
|
|
430
|
-
}, [s, i]),
|
|
437
|
+
}, [s, i]), _ = K(e, p, m, c), v = x(() => c.visibleCategories && c.visibleCategories.length > 0 ? e.filter((e) => c.visibleCategories.includes(e.category)) : e, [e, c.visibleCategories]);
|
|
431
438
|
return {
|
|
432
439
|
currentDate: p,
|
|
433
440
|
viewMode: m,
|
|
434
|
-
calendarDays:
|
|
435
|
-
visibleEvents:
|
|
436
|
-
goToToday:
|
|
441
|
+
calendarDays: _,
|
|
442
|
+
visibleEvents: v,
|
|
443
|
+
goToToday: b(() => {
|
|
437
444
|
h(/* @__PURE__ */ new Date());
|
|
438
445
|
}, [h]),
|
|
439
|
-
goToNextPeriod:
|
|
440
|
-
let e = m === "month" ?
|
|
446
|
+
goToNextPeriod: b(() => {
|
|
447
|
+
let e = m === "month" ? k(p, 1) : A(p, 1);
|
|
441
448
|
h(e);
|
|
442
449
|
}, [
|
|
443
450
|
h,
|
|
444
451
|
p,
|
|
445
452
|
m
|
|
446
453
|
]),
|
|
447
|
-
goToPreviousPeriod:
|
|
448
|
-
let e = m === "month" ?
|
|
454
|
+
goToPreviousPeriod: b(() => {
|
|
455
|
+
let e = m === "month" ? te(p, 1) : V(p, 1);
|
|
449
456
|
h(e);
|
|
450
457
|
}, [
|
|
451
458
|
h,
|
|
452
459
|
p,
|
|
453
460
|
m
|
|
454
461
|
]),
|
|
455
|
-
setDate:
|
|
462
|
+
setDate: b((e) => {
|
|
456
463
|
h(e);
|
|
457
464
|
}, [h]),
|
|
458
|
-
setViewMode:
|
|
459
|
-
|
|
460
|
-
}, [
|
|
461
|
-
displayLabel:
|
|
462
|
-
if (m === "month") return
|
|
465
|
+
setViewMode: b((e) => {
|
|
466
|
+
g(e);
|
|
467
|
+
}, [g]),
|
|
468
|
+
displayLabel: x(() => {
|
|
469
|
+
if (m === "month") return P(p, "MMMM yyyy", { locale: t });
|
|
463
470
|
if (m === "week") {
|
|
464
|
-
let e =
|
|
465
|
-
return e && n ? `${
|
|
471
|
+
let e = _[0]?.date, n = _[_.length - 1]?.date;
|
|
472
|
+
return e && n ? `${P(e, "MMM d", { locale: t })} - ${P(n, "MMM d, yyyy", { locale: t })}` : P(p, "MMMM yyyy", { locale: t });
|
|
466
473
|
}
|
|
467
|
-
return
|
|
474
|
+
return P(p, "MMMM yyyy", { locale: t });
|
|
468
475
|
}, [
|
|
469
476
|
p,
|
|
470
477
|
m,
|
|
471
|
-
|
|
478
|
+
_,
|
|
472
479
|
t
|
|
473
480
|
]),
|
|
474
|
-
hasEvents:
|
|
481
|
+
hasEvents: x(() => v.length > 0, [v])
|
|
475
482
|
};
|
|
476
483
|
}
|
|
477
484
|
//#endregion
|
|
478
485
|
//#region src/components/features/event-calendar/event-calendar.tsx
|
|
479
|
-
function
|
|
486
|
+
function ae(e, t) {
|
|
480
487
|
if (!e) return !1;
|
|
481
488
|
if (Array.isArray(e)) return e.some((e) => e.toDateString() === t.toDateString());
|
|
482
489
|
if (typeof e == "function") return e(t);
|
|
483
490
|
let n = e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1, r = e.predicate?.(t) ?? !1;
|
|
484
491
|
return n || r;
|
|
485
492
|
}
|
|
486
|
-
function
|
|
487
|
-
let
|
|
488
|
-
let t =
|
|
489
|
-
|
|
490
|
-
}, $ =
|
|
491
|
-
events:
|
|
492
|
-
locale:
|
|
493
|
+
function oe({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewModeChange: c, date: l, defaultDate: d, onDateChange: f, onEventClick: p, onDayClick: m, maxEventsPerDay: h = 3, showLegend: g = !0, showHeader: _ = !0, showWeekends: v = !0, weekStartsOn: y, locale: b, enableCategoryFilter: C = !1, visibleCategories: E, onVisibleCategoriesChange: D, loading: O = !1, emptyStateMessage: k, className: A, compact: j = !1, actions: M, strings: N, dayHeadingVariant: P = "default", dayHeadingClassName: F, renderDayHeading: I, rangeMode: ee = "date", minDate: L, maxDate: R, disabledDates: z, filterEvent: B, renderEvent: te, renderDayCell: V }) {
|
|
494
|
+
let H = r(W, N), [U, G] = S([]), K = E ?? U, { weekStartsOn: ne, locale: q } = e(), Y = y ?? ne ?? 1, Z = b ?? q, Q = (e) => {
|
|
495
|
+
let t = K.includes(e) ? K.filter((t) => t !== e) : [...K, e];
|
|
496
|
+
D ? D(t) : G(t);
|
|
497
|
+
}, $ = ie({
|
|
498
|
+
events: t,
|
|
499
|
+
locale: Z,
|
|
493
500
|
date: l,
|
|
494
|
-
defaultDate:
|
|
501
|
+
defaultDate: d,
|
|
495
502
|
viewMode: a,
|
|
496
503
|
defaultViewMode: s,
|
|
497
|
-
onDateChange:
|
|
504
|
+
onDateChange: f,
|
|
498
505
|
onViewModeChange: c,
|
|
499
506
|
dataOptions: {
|
|
500
|
-
weekStartsOn:
|
|
501
|
-
showWeekends:
|
|
502
|
-
visibleCategories:
|
|
507
|
+
weekStartsOn: Y,
|
|
508
|
+
showWeekends: v,
|
|
509
|
+
visibleCategories: K.length > 0 ? K : void 0
|
|
503
510
|
}
|
|
504
|
-
}),
|
|
505
|
-
let e =
|
|
506
|
-
return
|
|
507
|
-
}, [
|
|
508
|
-
|
|
509
|
-
},
|
|
511
|
+
}), oe = x(() => {
|
|
512
|
+
let e = H.weekdaysShort;
|
|
513
|
+
return Y === 1 ? [...e.slice(1), e[0]] : e;
|
|
514
|
+
}, [H.weekdaysShort, Y]), se = (e) => {
|
|
515
|
+
ae(z, e.date) || L && e.date < L || R && e.date > R || m?.(e.date, e.events);
|
|
516
|
+
}, ce = x(() => B ? $.calendarDays.map((e) => ({
|
|
510
517
|
...e,
|
|
511
518
|
events: e.events.filter(B),
|
|
512
519
|
eventCount: e.events.filter(B).length,
|
|
513
520
|
hasMultipleEvents: e.events.filter(B).length > 1
|
|
514
521
|
})) : $.calendarDays, [$.calendarDays, B]);
|
|
515
|
-
function
|
|
516
|
-
return !!(
|
|
522
|
+
function le(e) {
|
|
523
|
+
return !!(ae(z, e) || L && e < L || R && e > R);
|
|
517
524
|
}
|
|
518
|
-
let
|
|
525
|
+
let ue = x(() => {
|
|
519
526
|
let e = $.calendarDays;
|
|
520
527
|
if (e.length === 0) return {
|
|
521
528
|
prev: !1,
|
|
@@ -531,89 +538,89 @@ function Q({ events: e, categories: n, viewMode: a, defaultViewMode: s, onViewMo
|
|
|
531
538
|
L,
|
|
532
539
|
R
|
|
533
540
|
]);
|
|
534
|
-
if (
|
|
535
|
-
className: i("event-calendar--component", "flex items-center justify-center p-surface-lg",
|
|
541
|
+
if (O) return /* @__PURE__ */ w("div", {
|
|
542
|
+
className: i("event-calendar--component", "flex items-center justify-center p-surface-lg", A),
|
|
536
543
|
role: "status",
|
|
537
|
-
children: /* @__PURE__ */
|
|
544
|
+
children: /* @__PURE__ */ w(o, {
|
|
538
545
|
type: "secondary",
|
|
539
|
-
children:
|
|
546
|
+
children: H.loading
|
|
540
547
|
})
|
|
541
548
|
});
|
|
542
|
-
let
|
|
543
|
-
return /* @__PURE__ */
|
|
544
|
-
className: i("event-calendar--component w-full space-y-space-xl",
|
|
549
|
+
let de = a ? c : void 0, fe = C ? Q : void 0;
|
|
550
|
+
return /* @__PURE__ */ T("div", {
|
|
551
|
+
className: i("event-calendar--component w-full space-y-space-xl", A),
|
|
545
552
|
children: [
|
|
546
|
-
!!
|
|
553
|
+
!!_ && /* @__PURE__ */ w(X, {
|
|
547
554
|
currentDate: $.currentDate,
|
|
548
555
|
viewMode: $.viewMode,
|
|
549
556
|
displayLabel: $.displayLabel,
|
|
550
557
|
onPrevious: $.goToPreviousPeriod,
|
|
551
558
|
onNext: $.goToNextPeriod,
|
|
552
559
|
onToday: $.goToToday,
|
|
553
|
-
onViewModeChange:
|
|
560
|
+
onViewModeChange: de,
|
|
554
561
|
onDateChange: $.setDate,
|
|
555
|
-
locale:
|
|
556
|
-
actions:
|
|
557
|
-
rangeMode:
|
|
562
|
+
locale: Z,
|
|
563
|
+
actions: M,
|
|
564
|
+
rangeMode: ee,
|
|
558
565
|
minDate: L,
|
|
559
566
|
maxDate: R,
|
|
560
|
-
prevDisabled:
|
|
561
|
-
nextDisabled:
|
|
567
|
+
prevDisabled: ue.prev,
|
|
568
|
+
nextDisabled: ue.next,
|
|
562
569
|
strings: {
|
|
563
|
-
today:
|
|
564
|
-
previous:
|
|
565
|
-
next:
|
|
566
|
-
viewMode:
|
|
567
|
-
monthYearPicker:
|
|
570
|
+
today: H.today,
|
|
571
|
+
previous: H.previous,
|
|
572
|
+
next: H.next,
|
|
573
|
+
viewMode: H.viewMode,
|
|
574
|
+
monthYearPicker: H.monthYearPicker
|
|
568
575
|
}
|
|
569
576
|
}),
|
|
570
|
-
!!
|
|
577
|
+
!!g && n.length > 0 && /* @__PURE__ */ w(re, {
|
|
571
578
|
categories: n,
|
|
572
|
-
visibleCategories:
|
|
573
|
-
onToggleCategory:
|
|
574
|
-
enableFiltering:
|
|
579
|
+
visibleCategories: K,
|
|
580
|
+
onToggleCategory: fe,
|
|
581
|
+
enableFiltering: C
|
|
575
582
|
}),
|
|
576
|
-
!$.hasEvents &&
|
|
583
|
+
!$.hasEvents && k ? /* @__PURE__ */ w("div", {
|
|
577
584
|
className: "flex items-center justify-center rounded-radius border border-dashed border-border p-surface",
|
|
578
|
-
children: /* @__PURE__ */
|
|
585
|
+
children: /* @__PURE__ */ w(o, {
|
|
579
586
|
type: "secondary",
|
|
580
|
-
children:
|
|
587
|
+
children: k
|
|
581
588
|
})
|
|
582
|
-
}) : /* @__PURE__ */
|
|
583
|
-
className: "bg-background rounded-radius border border-border",
|
|
584
|
-
children: [/* @__PURE__ */
|
|
585
|
-
className: i("grid grid-cols-7",
|
|
586
|
-
children:
|
|
587
|
-
className: i("text-center h-8 flex items-center justify-center",
|
|
588
|
-
children: /* @__PURE__ */
|
|
589
|
+
}) : /* @__PURE__ */ T("div", {
|
|
590
|
+
className: "box-border bg-background text-foreground rounded-radius border border-border",
|
|
591
|
+
children: [/* @__PURE__ */ w("div", {
|
|
592
|
+
className: i("grid grid-cols-7", P === "bordered" && "border-b border-border mb-0", P === "tinted" && "bg-muted/50 rounded-t-radius mb-0 overflow-hidden", P === "accent" && i(u.primary.wash, "rounded-t-radius mb-0 overflow-hidden"), P === "default" && "mb-space-md"),
|
|
593
|
+
children: oe.map((e, t) => I ? /* @__PURE__ */ w("div", { children: I(e, t) }, e) : /* @__PURE__ */ w("div", {
|
|
594
|
+
className: i("text-center h-8 flex items-center justify-center", F),
|
|
595
|
+
children: /* @__PURE__ */ w(o, {
|
|
589
596
|
size: "xs",
|
|
590
|
-
weight:
|
|
591
|
-
className: i(
|
|
597
|
+
weight: P === "accent" ? "medium" : "regular",
|
|
598
|
+
className: i(P === "default" && "text-muted-foreground", P === "tinted" && "text-muted-foreground", P === "bordered" && "text-foreground", P === "accent" && "text-primary-accent"),
|
|
592
599
|
children: e
|
|
593
600
|
})
|
|
594
601
|
}, e))
|
|
595
|
-
}), /* @__PURE__ */
|
|
602
|
+
}), /* @__PURE__ */ w("div", {
|
|
596
603
|
className: "grid grid-cols-7",
|
|
597
|
-
children:
|
|
598
|
-
let t =
|
|
604
|
+
children: ce.map((e) => {
|
|
605
|
+
let t = le(e.date), r = () => /* @__PURE__ */ w(J, {
|
|
599
606
|
data: e,
|
|
600
607
|
categories: n,
|
|
601
|
-
maxEvents:
|
|
602
|
-
onClick: () =>
|
|
603
|
-
onEventClick:
|
|
604
|
-
|
|
608
|
+
maxEvents: h,
|
|
609
|
+
onClick: () => se(e),
|
|
610
|
+
onEventClick: p ? (t) => {
|
|
611
|
+
le(e.date) || p(t);
|
|
605
612
|
} : void 0,
|
|
606
|
-
compact:
|
|
613
|
+
compact: j,
|
|
607
614
|
strings: {
|
|
608
|
-
booking:
|
|
609
|
-
bookings:
|
|
615
|
+
booking: H.booking,
|
|
616
|
+
bookings: H.bookings
|
|
610
617
|
},
|
|
611
|
-
renderEvent:
|
|
618
|
+
renderEvent: te
|
|
612
619
|
});
|
|
613
|
-
return /* @__PURE__ */
|
|
614
|
-
className: i(t && "pointer-events-none opacity-
|
|
620
|
+
return /* @__PURE__ */ w("div", {
|
|
621
|
+
className: i(t && "pointer-events-none opacity-50"),
|
|
615
622
|
"aria-disabled": t || void 0,
|
|
616
|
-
children:
|
|
623
|
+
children: V ? V(e, r) : r()
|
|
617
624
|
}, e.date.toISOString());
|
|
618
625
|
})
|
|
619
626
|
})]
|
|
@@ -621,63 +628,65 @@ function Q({ events: e, categories: n, viewMode: a, defaultViewMode: s, onViewMo
|
|
|
621
628
|
]
|
|
622
629
|
});
|
|
623
630
|
}
|
|
624
|
-
|
|
631
|
+
oe.displayName = "EventCalendar";
|
|
625
632
|
//#endregion
|
|
626
633
|
//#region src/components/features/event-calendar/event-calendar-event-card.tsx
|
|
627
|
-
var
|
|
634
|
+
var se = {
|
|
628
635
|
guest: "guest",
|
|
629
636
|
guests: "guests"
|
|
630
637
|
};
|
|
631
|
-
function
|
|
632
|
-
let
|
|
638
|
+
function ce({ event: e, category: t, onClick: n, strings: a }) {
|
|
639
|
+
let u = r(se, a), h = !!n, g = () => {
|
|
633
640
|
n && n();
|
|
634
|
-
},
|
|
641
|
+
}, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x = $(t), S = [v, y !== void 0 && y > 0 ? `${y} ${y === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), C = /* @__PURE__ */ T(l, {
|
|
635
642
|
gap: "lg",
|
|
636
643
|
children: [
|
|
637
|
-
/* @__PURE__ */
|
|
644
|
+
/* @__PURE__ */ T("div", {
|
|
638
645
|
className: "event-calendar-event-card--header flex min-w-0 items-start justify-between gap-space-lg",
|
|
639
|
-
children: [/* @__PURE__ */
|
|
646
|
+
children: [/* @__PURE__ */ T("div", {
|
|
640
647
|
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",
|
|
641
|
-
children: [/* @__PURE__ */
|
|
648
|
+
children: [/* @__PURE__ */ w(s, {
|
|
642
649
|
tag: "h5",
|
|
643
650
|
containerClassName: "event-calendar-event-card--heading min-w-0 max-w-full sm:w-auto",
|
|
644
|
-
className: "break-words",
|
|
651
|
+
className: "break-words text-inherit",
|
|
645
652
|
children: e.title
|
|
646
|
-
}), !!t && /* @__PURE__ */
|
|
653
|
+
}), !!t && /* @__PURE__ */ T("div", {
|
|
647
654
|
className: "event-calendar-event-card--category inline-flex min-w-0 max-w-full items-center gap-space-xs",
|
|
648
|
-
children: [/* @__PURE__ */
|
|
655
|
+
children: [/* @__PURE__ */ w("span", {
|
|
649
656
|
"aria-hidden": "true",
|
|
650
|
-
className: i("event-calendar-event-card--category-dot
|
|
651
|
-
}), /* @__PURE__ */
|
|
657
|
+
className: i("event-calendar-event-card--category-dot", d.inline, x)
|
|
658
|
+
}), /* @__PURE__ */ w(o, {
|
|
652
659
|
tag: "span",
|
|
660
|
+
type: "inherit",
|
|
653
661
|
size: "xs",
|
|
654
662
|
weight: "medium",
|
|
655
663
|
className: "min-w-0 break-words",
|
|
656
664
|
children: t.label
|
|
657
665
|
})]
|
|
658
666
|
})]
|
|
659
|
-
}), !!
|
|
667
|
+
}), !!h && !!e.url && /* @__PURE__ */ w(O, { className: "size-icon-md text-muted-foreground flex-shrink-0" })]
|
|
660
668
|
}),
|
|
661
|
-
!!(
|
|
669
|
+
!!(S || b) && /* @__PURE__ */ T(l, {
|
|
662
670
|
gap: "xs",
|
|
663
671
|
className: "event-calendar-event-card--details min-w-0",
|
|
664
|
-
children: [!!
|
|
672
|
+
children: [!!S && /* @__PURE__ */ w(o, {
|
|
673
|
+
type: "inherit",
|
|
665
674
|
className: "event-calendar-event-card--facts break-words",
|
|
666
|
-
children:
|
|
667
|
-
}), !!
|
|
675
|
+
children: S
|
|
676
|
+
}), !!b && /* @__PURE__ */ w(o, {
|
|
668
677
|
type: "secondary",
|
|
669
678
|
className: "line-clamp-1",
|
|
670
|
-
children:
|
|
679
|
+
children: b
|
|
671
680
|
})]
|
|
672
681
|
}),
|
|
673
|
-
/* @__PURE__ */
|
|
682
|
+
/* @__PURE__ */ w("div", {
|
|
674
683
|
className: "event-calendar-event-card--date",
|
|
675
|
-
children: e.allDay ? /* @__PURE__ */
|
|
684
|
+
children: e.allDay ? /* @__PURE__ */ w(m, {
|
|
676
685
|
value: e.startDate,
|
|
677
686
|
preset: "long",
|
|
678
687
|
size: "xs",
|
|
679
688
|
type: "secondary"
|
|
680
|
-
}) : /* @__PURE__ */
|
|
689
|
+
}) : /* @__PURE__ */ w(p, {
|
|
681
690
|
value: e.startDate,
|
|
682
691
|
preset: "long",
|
|
683
692
|
size: "xs",
|
|
@@ -685,19 +694,19 @@ function $({ event: e, category: t, onClick: n, strings: s }) {
|
|
|
685
694
|
})
|
|
686
695
|
})
|
|
687
696
|
]
|
|
688
|
-
}),
|
|
689
|
-
return
|
|
697
|
+
}), E = i("box-border w-full min-w-0 text-left p-surface border border-border rounded-radius bg-card text-card-foreground transition-none", h ? `cursor-pointer focus-visible:outline-none ${c.frame}` : "");
|
|
698
|
+
return h ? /* @__PURE__ */ w("button", {
|
|
690
699
|
type: "button",
|
|
691
|
-
onClick:
|
|
692
|
-
className: i("event-calendar-event-card--component",
|
|
693
|
-
children:
|
|
694
|
-
}) : /* @__PURE__ */
|
|
695
|
-
className: i("event-calendar-event-card--component",
|
|
696
|
-
children:
|
|
700
|
+
onClick: g,
|
|
701
|
+
className: i("event-calendar-event-card--component", `m-0 flex h-auto flex-col items-stretch justify-start whitespace-normal font-sans shadow-none ${f.rowHover}`, E),
|
|
702
|
+
children: C
|
|
703
|
+
}) : /* @__PURE__ */ w("div", {
|
|
704
|
+
className: i("event-calendar-event-card--component", E),
|
|
705
|
+
children: C
|
|
697
706
|
});
|
|
698
707
|
}
|
|
699
|
-
|
|
708
|
+
ce.displayName = "EventCalendarEventCard";
|
|
700
709
|
//#endregion
|
|
701
|
-
export {
|
|
710
|
+
export { oe as EventCalendar, J as EventCalendarDayCell, G as EventCalendarEventBadge, ce as EventCalendarEventCard, X as EventCalendarHeader, re as EventCalendarLegend, H as calendarTokenDot, se as defaultEventCalendarEventCardStrings, W as defaultEventCalendarStrings, Q as getCalendarColorClasses, $ as getCalendarDotClass, q as getCategoryById, ne as getEventsForDay, U as resolveCategoryColorToken, ie as useEventCalendar, K as useEventCalendarData };
|
|
702
711
|
|
|
703
712
|
//# sourceMappingURL=event-calendar.js.map
|