themelia-react-ui 2.0.4 → 2.0.5
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 +135 -0
- package/README.md +113 -18
- package/dist/{accordion-96o0pN62.js → accordion-B9MHG0cT.js} +11 -11
- package/dist/accordion-B9MHG0cT.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-Dr8K-ghE.js} +48 -45
- package/dist/action-menu-Dr8K-ghE.js.map +1 -0
- package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-C58tQcBy.js} +210 -174
- package/dist/ai-artifact-C58tQcBy.js.map +1 -0
- package/dist/app-shell-B_IuNWOo.js +321 -0
- package/dist/app-shell-B_IuNWOo.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-Dg_69lPS.js} +9 -9
- package/dist/{attachment-DkoqHPPl.js.map → attachment-Dg_69lPS.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-DTkkshS8.js} +43 -46
- package/dist/auth-DTkkshS8.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-CeZaFmNH.js} +8 -8
- package/dist/avatar-CeZaFmNH.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-xIiV_E7f.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-xIiV_E7f.js.map} +1 -1
- 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 +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- 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 +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 +6 -6
- 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 +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- 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 +1 -1
- package/dist/base/repeaters.js +12 -12
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +4 -4
- 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 +36 -36
- 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 +1 -1
- package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-Cb8cuvyy.js} +6 -6
- package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +230 -216
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +325 -306
- 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 +1259 -1184
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-B-WFKecD.js → breadcrumbs-J-K2kl4c.js} +6 -6
- package/dist/{breadcrumbs-B-WFKecD.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
- package/dist/{button-DkmK-z8E.js → button-S2Cubiiz.js} +3 -3
- package/dist/button-S2Cubiiz.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-BedGfygC.js} +16 -16
- package/dist/buttons-BedGfygC.js.map +1 -0
- package/dist/cards-rNX1M4Xn.js +69 -0
- package/dist/cards-rNX1M4Xn.js.map +1 -0
- package/dist/cascader-B1MiqkBq.js +439 -0
- package/dist/cascader-B1MiqkBq.js.map +1 -0
- package/dist/chart-Darg_0Kv.js +162 -0
- package/dist/chart-Darg_0Kv.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-fflqmODR.js} +2 -2
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-fflqmODR.js.map} +1 -1
- package/dist/{choice-inputs-JLtij2y4.js → choice-inputs-zUgBZfE4.js} +258 -257
- package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BzmM9Eig.js} +8 -8
- package/dist/code-block-BzmM9Eig.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BkAI_XD4.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BkAI_XD4.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-gDh1v6O4.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-gDh1v6O4.js.map} +1 -1
- package/dist/combobox-BEx0vJgF.js +362 -0
- package/dist/combobox-BEx0vJgF.js.map +1 -0
- package/dist/{combobox-CBJDs6w_.js → combobox-BwzoXFSG.js} +254 -247
- package/dist/combobox-BwzoXFSG.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-CrlPIL6m.js} +11 -11
- package/dist/command-CrlPIL6m.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-Dmpp0YIc.js} +29 -29
- package/dist/{comments-Di4w0H_S.js.map → comments-Dmpp0YIc.js.map} +1 -1
- package/dist/components/base/action-menu/action-menu.d.ts +7 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +6 -4
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
- package/dist/components/base/cards/smart-card.types.d.ts +3 -4
- package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
- package/dist/components/base/chart/chart.d.ts +6 -1
- package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/workflow.d.ts +7 -1
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
- package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
- package/dist/components/base/navigation/page-header/page-header.d.ts +10 -3
- package/dist/components/base/popover/popover.d.ts +3 -3
- package/dist/components/base/popover/popover.recipes.d.ts +10 -6
- package/dist/components/base/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +27 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/features/activities/activities.types.d.ts +8 -2
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -0
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/media-library/media-library.types.d.ts +14 -4
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +43 -6
- package/dist/components/features/resource/resource.d.ts +5 -1
- package/dist/components/features/resource/resource.types.d.ts +12 -1
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -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/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +6 -6
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +9 -2
- 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.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/overlay-layer.d.ts +18 -0
- package/dist/components/ui/sheet.d.ts +5 -1
- package/dist/components/ui/sidebar-state.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts +5 -17
- package/dist/{containers-CRmHf7GP.js → containers-CIxwbZt5.js} +26 -18
- package/dist/containers-CIxwbZt5.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-CnGCZdX4.js → copyable-DIznBqiT.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-DIznBqiT.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-BdgCAw8T.js} +268 -277
- package/dist/data-display-BdgCAw8T.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Cq8ioE4o.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Cq8ioE4o.js.map} +1 -1
- package/dist/{date-picker-zOt1oNss.js → date-picker-RlIzKom_.js} +446 -437
- package/dist/date-picker-RlIzKom_.js.map +1 -0
- package/dist/{date-pickers-cj8IXbDC.js → date-pickers-DY-CpXS1.js} +12 -12
- package/dist/{date-pickers-cj8IXbDC.js.map → date-pickers-DY-CpXS1.js.map} +1 -1
- package/dist/{display-BB4BL_-K.js → display-KsZLw9Ov.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-KsZLw9Ov.js.map} +1 -1
- package/dist/dropdown-menu-CLs8Lihj.js +194 -0
- package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
- package/dist/features/activities.js +302 -253
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +15 -14
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +22 -22
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +11 -10
- 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 +13 -13
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +237 -238
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +140 -146
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +167 -138
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +6 -7
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -260
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +375 -326
- 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 +1266 -1193
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +13 -13
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +69 -66
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +13 -13
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +94 -95
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DZNL5Lg1.js → feedback-Dm4izqFn.js} +80 -79
- package/dist/feedback-Dm4izqFn.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
- package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
- package/dist/{filters-BcT-uoFy.js → filters-DzgSJpMK.js} +693 -645
- package/dist/filters-DzgSJpMK.js.map +1 -0
- package/dist/{form-field-CsgRmdit.js → form-field-BriWAXyg.js} +6 -6
- package/dist/{form-field-CsgRmdit.js.map → form-field-BriWAXyg.js.map} +1 -1
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-Bs2qFUeE.js} +4 -4
- package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-C0RGnJTe.js} +17 -13
- package/dist/forms-C0RGnJTe.js.map +1 -0
- package/dist/{forms-numeric-Cd33AKbD.js → forms-numeric-DIhghX1Q.js} +86 -82
- package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-DMMxG__r.js} +67 -63
- package/dist/header-DMMxG__r.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-DB6CJ4MR.js} +26 -14
- package/dist/hooks-DB6CJ4MR.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-DZF-YjQp.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-CvyDQlY7.js} +8 -8
- package/dist/{input-Cdw4k0fb.js.map → input-CvyDQlY7.js.map} +1 -1
- package/dist/input-DMBwAZmr.js +21 -0
- package/dist/input-DMBwAZmr.js.map +1 -0
- package/dist/{item-BvZ2DR_x.js → item-DjCcM18E.js} +16 -16
- package/dist/item-DjCcM18E.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 +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +11 -11
- package/dist/lib/affordance-geometry.generated.d.ts +35 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/token-merge.generated.d.ts +13 -10
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C-vChPmE.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C-vChPmE.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-0_4nWuI-.js} +10 -10
- package/dist/{mentions-RKOQaaIB.js.map → mentions-0_4nWuI-.js.map} +1 -1
- package/dist/{message-INU2xsxu.js → message-g8p7eVtN.js} +7 -7
- package/dist/message-g8p7eVtN.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-C3MkU-Om.js} +64 -64
- package/dist/metadata-list-C3MkU-Om.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-C90-oQFq.js +255 -0
- package/dist/navigation-C90-oQFq.js.map +1 -0
- package/dist/{navigation-BQNcg1jT.js → navigation-DaRjthVk.js} +101 -82
- package/dist/navigation-DaRjthVk.js.map +1 -0
- package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/{number-E_OiIfJz.js → number-CRU3kGuk.js} +5 -5
- package/dist/{number-E_OiIfJz.js.map → number-CRU3kGuk.js.map} +1 -1
- package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
- package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
- package/dist/overlays-BSgCtM2v.js +1013 -0
- package/dist/overlays-BSgCtM2v.js.map +1 -0
- package/dist/page-DUUKDAjo.js +331 -0
- package/dist/page-DUUKDAjo.js.map +1 -0
- package/dist/page-header-commands-7P3sfE9u.js +193 -0
- package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-CgCjElfu.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-CgCjElfu.js.map} +1 -1
- package/dist/popover-B85RenIl.js +201 -0
- package/dist/popover-B85RenIl.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-DlnQ2zlR.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
- package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
- package/dist/portal-recipes-BpsV_iRw.js +9 -0
- package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-ByWgGUgt.js} +5 -5
- package/dist/{primitives-Du64iDbb.js.map → primitives-ByWgGUgt.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-BJhQP9WX.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-BJhQP9WX.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-tOc7B3hw.js} +7 -7
- package/dist/receipt-tOc7B3hw.js.map +1 -0
- package/dist/{rich-text-CLJEf76s.js → rich-text-Dth5E882.js} +3 -3
- package/dist/{rich-text-CLJEf76s.js.map → rich-text-Dth5E882.js.map} +1 -1
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-C1fOjBTd.js} +429 -430
- package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-L__e4x47.js → rich-text-editor-toolbar-laT3tpBT.js} +32 -28
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-B0dB2cBi.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-Bb17I4pu.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-Bb17I4pu.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-Ct_WSWTJ.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-Ct_WSWTJ.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-BA2iboic.js → settings-Bar5wiSo.js} +31 -38
- package/dist/settings-Bar5wiSo.js.map +1 -0
- package/dist/sheet-BGPERY55.js +250 -0
- package/dist/sheet-BGPERY55.js.map +1 -0
- package/dist/sidebar-D-JYMMbY.js +686 -0
- package/dist/sidebar-D-JYMMbY.js.map +1 -0
- package/dist/sidebar-f9gRWXIR.js +1001 -0
- package/dist/sidebar-f9gRWXIR.js.map +1 -0
- package/dist/skeleton-BapcJd9C.js +265 -0
- package/dist/skeleton-BapcJd9C.js.map +1 -0
- package/dist/smart-card-CW0hjetE.js +617 -0
- package/dist/smart-card-CW0hjetE.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DuxKl954.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DuxKl954.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-CpvnzJn9.js → table-B4TE7iOV.js} +3 -3
- package/dist/{table-CpvnzJn9.js.map → table-B4TE7iOV.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CFOWY9pQ.js} +394 -388
- package/dist/table-CFOWY9pQ.js.map +1 -0
- package/dist/{tabs-eqVsJZWO.js → tabs-e7ko9S2o.js} +11 -11
- package/dist/tabs-e7ko9S2o.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-B1culiSK.js} +17 -17
- package/dist/text-inputs-B1culiSK.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-D3Sl9ueq.js} +13 -12
- package/dist/timelines-D3Sl9ueq.js.map +1 -0
- package/dist/tooltip-8wz5S_Zr.js +113 -0
- package/dist/tooltip-8wz5S_Zr.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CzUJHnFs.js} +8 -8
- package/dist/{tree-CV11PURP.js.map → tree-CzUJHnFs.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-BQnine1k.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-BQnine1k.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/ui-provider-C-74NVLc.js +178 -0
- package/dist/ui-provider-C-74NVLc.js.map +1 -0
- package/dist/ui-provider.js +2 -3
- package/dist/{upload-C9SA0X-8.js → upload-BOW6U2tI.js} +25 -24
- package/dist/upload-BOW6U2tI.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-qUXn1ykN.js} +16 -14
- package/dist/upload-queue-qUXn1ykN.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-BeSLY0i0.js} +24 -17
- package/dist/usage-card-BeSLY0i0.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-B6kKb8jB.js} +237 -141
- package/dist/utils-B6kKb8jB.js.map +1 -0
- package/dist/value-inputs-skdVB2zh.js +980 -0
- package/dist/value-inputs-skdVB2zh.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uAmWUAL1.js} +2 -2
- package/dist/{value-typography-ClupF0Gz.js.map → value-typography-uAmWUAL1.js.map} +1 -1
- package/dist/{workspace-9EFVXUyk.js → workspace-DHeHv0qw.js} +50 -49
- package/dist/workspace-DHeHv0qw.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +4 -3
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +52 -1
- package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
- package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
- package/docs/consumer-skill/examples/detail.tsx +5 -4
- package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
- package/docs/consumer-skill/examples/index-table.tsx +4 -4
- package/docs/consumer-skill/examples/manifest.json +38 -1
- package/docs/consumer-skill/examples/product-media.tsx +41 -0
- package/docs/consumer-skill/examples/product-parts.tsx +81 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +1 -1
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +19 -17
- package/docs/consumer-skill/references/analytics.md +18 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +7131 -1754
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +159 -31
- package/docs/consumer-skill/references/critique-rubric.md +98 -0
- package/docs/consumer-skill/references/custom-composition.md +261 -0
- package/docs/consumer-skill/references/data-reading.md +79 -0
- package/docs/consumer-skill/references/design-contract.md +11 -9
- package/docs/consumer-skill/references/discovery.md +27 -3
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +15 -4
- package/docs/consumer-skill/references/integration.md +35 -0
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +2881 -420
- package/docs/consumer-skill/references/review.md +39 -2
- package/docs/consumer-skill/references/rhf-workflows.md +7 -0
- package/docs/consumer-skill/references/screen-archetypes.md +19 -7
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +17 -18
- package/docs/consumer-skill/references/tokens.json +9 -9
- package/docs/consumer-skill/references/view-craft.md +153 -0
- package/docs/consumer-skill/references/view-spec.md +73 -0
- package/docs/consumer-skill/references/workflows.md +7 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
- package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
- package/docs/consumer-skill/scripts/composition.mjs +61 -5
- package/docs/consumer-skill/scripts/discovery.mjs +54 -0
- package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
- package/docs/consumer-skill/scripts/inspection.mjs +73 -18
- package/docs/consumer-skill/scripts/setup-skills.mjs +41 -6
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
- package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
- package/package.json +1 -1
- package/dist/accordion-96o0pN62.js.map +0 -1
- package/dist/action-menu-CHgs8vmj.js.map +0 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
- package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
- package/dist/app-shell-D63ATkIK.js +0 -237
- package/dist/app-shell-D63ATkIK.js.map +0 -1
- package/dist/auth-D2FVZ1MH.js.map +0 -1
- package/dist/avatar-DWO_HHhB.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
- package/dist/button-DkmK-z8E.js.map +0 -1
- package/dist/buttons-BbfzgczK.js.map +0 -1
- package/dist/cards-4JTWqvVe.js +0 -68
- package/dist/cards-4JTWqvVe.js.map +0 -1
- package/dist/chart-C19flDQb.js +0 -155
- package/dist/chart-C19flDQb.js.map +0 -1
- package/dist/choice-inputs-JLtij2y4.js.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- package/dist/combobox-CBJDs6w_.js.map +0 -1
- package/dist/combobox-hbhSS18O.js +0 -355
- package/dist/combobox-hbhSS18O.js.map +0 -1
- package/dist/command-D8NrBj-b.js.map +0 -1
- package/dist/containers-CRmHf7GP.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-D4oujtx0.js.map +0 -1
- package/dist/date-picker-zOt1oNss.js.map +0 -1
- package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
- package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
- package/dist/feedback-DZNL5Lg1.js.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.js.map +0 -1
- package/dist/form-sizing-NXgjkmBG.js.map +0 -1
- package/dist/forms-BV5m5aQF.js.map +0 -1
- package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
- package/dist/header-BA697l4a.js.map +0 -1
- package/dist/hooks-BQ-L7Uu2.js.map +0 -1
- package/dist/input-DOPL5_QE.js +0 -21
- package/dist/input-DOPL5_QE.js.map +0 -1
- package/dist/item-BvZ2DR_x.js.map +0 -1
- package/dist/message-INU2xsxu.js.map +0 -1
- package/dist/metadata-list-qVV7AVxa.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-BQNcg1jT.js.map +0 -1
- package/dist/navigation-DLF3E1IC.js +0 -145
- package/dist/navigation-DLF3E1IC.js.map +0 -1
- package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
- package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
- package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
- package/dist/overlays-BlKynmde.js +0 -1004
- package/dist/overlays-BlKynmde.js.map +0 -1
- package/dist/page-CIwNUtGr.js +0 -227
- package/dist/page-CIwNUtGr.js.map +0 -1
- package/dist/page-header-commands-DFMlNYzN.js +0 -128
- package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
- package/dist/popover-uwzX2vo7.js +0 -198
- package/dist/popover-uwzX2vo7.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- package/dist/settings-BA2iboic.js.map +0 -1
- package/dist/sheet-DoAxTb2J.js +0 -213
- package/dist/sheet-DoAxTb2J.js.map +0 -1
- package/dist/sidebar-ByqKR_W5.js +0 -512
- package/dist/sidebar-ByqKR_W5.js.map +0 -1
- package/dist/sidebar-D2iSnGJ7.js +0 -619
- package/dist/sidebar-D2iSnGJ7.js.map +0 -1
- package/dist/skeleton-CUj8O5Bd.js +0 -264
- package/dist/skeleton-CUj8O5Bd.js.map +0 -1
- package/dist/smart-card-CqkzQsK-.js +0 -614
- package/dist/smart-card-CqkzQsK-.js.map +0 -1
- package/dist/table-DH7rozUv.js.map +0 -1
- package/dist/tabs-eqVsJZWO.js.map +0 -1
- package/dist/text-inputs-DXItiR0O.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-DmtztAY_.js.map +0 -1
- package/dist/tooltip-B4hjKtoV.js +0 -111
- package/dist/tooltip-B4hjKtoV.js.map +0 -1
- package/dist/ui-provider-CQCuCBcy.js +0 -136
- package/dist/ui-provider-CQCuCBcy.js.map +0 -1
- package/dist/upload-C9SA0X-8.js.map +0 -1
- package/dist/upload-queue-DhQJiSRc.js.map +0 -1
- package/dist/usage-card-DVTRDmGz.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-CF3c95Io.js.map +0 -1
- package/dist/value-inputs-C0o70p-U.js +0 -980
- package/dist/value-inputs-C0o70p-U.js.map +0 -1
- package/dist/workspace-9EFVXUyk.js.map +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { S as e, d as t, u as n } from "../ui-provider-C-74NVLc.js";
|
|
3
3
|
import { useStrings as r } from "../lib/strings.js";
|
|
4
|
-
import { t as i } from "../utils-
|
|
5
|
-
import { n as a } from "../buttons-
|
|
6
|
-
import { c as o, s } from "../typography-
|
|
4
|
+
import { t as i } from "../utils-B6kKb8jB.js";
|
|
5
|
+
import { n as a } from "../buttons-BedGfygC.js";
|
|
6
|
+
import { c as o, s } from "../typography-BQnine1k.js";
|
|
7
7
|
import { t as c } from "../focus-recipes-B653VaLq.js";
|
|
8
|
-
import { t as l } from "../structure-
|
|
8
|
+
import { t as l } from "../structure-DuxKl954.js";
|
|
9
9
|
import { i as u, t as d } from "../tone-recipes-BPsRAvhu.js";
|
|
10
10
|
import { t as f } from "../composition.recipes-COdiFhxB.js";
|
|
11
11
|
import { t as p } from "../interaction-recipes-XR9ZpVYL.js";
|
|
12
|
-
import { r as m, t as h } from "../date-
|
|
13
|
-
import { n as g } from "../field-affordance-recipes-
|
|
14
|
-
import { l as _ } from "../choice-inputs-
|
|
15
|
-
import { t as v } from "../date-pickers-
|
|
16
|
-
import { r as y, t as b } from "../control-group-recipes-
|
|
12
|
+
import { r as m, t as h } from "../date-Cq8ioE4o.js";
|
|
13
|
+
import { n as g } from "../field-affordance-recipes-DWcNcOjh.js";
|
|
14
|
+
import { l as _ } from "../choice-inputs-zUgBZfE4.js";
|
|
15
|
+
import { t as v } from "../date-pickers-DY-CpXS1.js";
|
|
16
|
+
import { r as y, t as b } from "../control-group-recipes-fMuFo0H7.js";
|
|
17
17
|
import { useCallback as x, useMemo as S, useState as C } from "react";
|
|
18
18
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
19
19
|
import { ChevronLeft as D, ChevronRight as ee, ExternalLink as O } from "lucide-react";
|
|
20
|
-
import { addMonths as k, addWeeks as A, eachDayOfInterval as j, endOfMonth as
|
|
20
|
+
import { addMonths as k, addWeeks as A, eachDayOfInterval as j, endOfMonth as te, endOfWeek as M, format as N, isSameDay as P, isSameMonth as F, isToday as I, isWeekend as L, startOfDay as R, startOfMonth as z, startOfWeek as B, subMonths as V, subWeeks as H } from "date-fns";
|
|
21
21
|
//#region src/components/features/event-calendar/event-calendar.types.ts
|
|
22
22
|
var U = {
|
|
23
23
|
gray: "bg-muted-foreground",
|
|
24
|
-
red: "bg-
|
|
25
|
-
orange: "bg-
|
|
26
|
-
amber: "bg-
|
|
27
|
-
yellow: "bg-
|
|
28
|
-
green: "bg-
|
|
29
|
-
blue: "bg-
|
|
30
|
-
purple: "bg-
|
|
24
|
+
red: "bg-chart-4",
|
|
25
|
+
orange: "bg-chart-5",
|
|
26
|
+
amber: "bg-chart-5",
|
|
27
|
+
yellow: "bg-chart-5",
|
|
28
|
+
green: "bg-chart-1",
|
|
29
|
+
blue: "bg-chart-2",
|
|
30
|
+
purple: "bg-chart-3"
|
|
31
31
|
};
|
|
32
32
|
function W(e) {
|
|
33
33
|
return e?.colorToken ?? "gray";
|
|
@@ -58,7 +58,7 @@ var G = {
|
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/features/event-calendar/event-calendar-event-badge.tsx
|
|
60
60
|
function K({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
61
|
-
let a = U[W(t)], s = e.allDay ? null :
|
|
61
|
+
let a = U[W(t)], s = e.allDay ? null : N(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;
|
|
62
62
|
return /* @__PURE__ */ T("button", {
|
|
63
63
|
type: "button",
|
|
64
64
|
onClick: (e) => {
|
|
@@ -68,28 +68,27 @@ function K({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
|
68
68
|
"aria-label": u,
|
|
69
69
|
title: u,
|
|
70
70
|
children: /* @__PURE__ */ E("span", {
|
|
71
|
-
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"),
|
|
72
|
-
children: [
|
|
73
|
-
|
|
71
|
+
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__ */ E("span", {
|
|
73
|
+
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__ */ T("span", {
|
|
74
75
|
"aria-hidden": "true",
|
|
75
76
|
className: i(d.inline, a)
|
|
76
|
-
}),
|
|
77
|
-
/* @__PURE__ */ T(o, {
|
|
77
|
+
}), /* @__PURE__ */ T(o, {
|
|
78
78
|
tag: "span",
|
|
79
79
|
type: "inherit",
|
|
80
80
|
size: "xs",
|
|
81
81
|
weight: "medium",
|
|
82
82
|
className: "hidden min-w-0 flex-1 truncate @min-[4rem]/calendar-event:block",
|
|
83
83
|
children: l
|
|
84
|
-
})
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
]
|
|
84
|
+
})]
|
|
85
|
+
}), !!s && /* @__PURE__ */ T(o, {
|
|
86
|
+
tag: "span",
|
|
87
|
+
size: "xs",
|
|
88
|
+
type: "secondary",
|
|
89
|
+
className: "hidden shrink-0 whitespace-nowrap tabular-nums @min-[4rem]/calendar-event:inline",
|
|
90
|
+
children: s
|
|
91
|
+
})]
|
|
93
92
|
})
|
|
94
93
|
});
|
|
95
94
|
}
|
|
@@ -99,8 +98,8 @@ K.displayName = "EventCalendarEventBadge";
|
|
|
99
98
|
function q(e, t, n, r = {}) {
|
|
100
99
|
let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
|
|
101
100
|
return S(() => {
|
|
102
|
-
let r = z(t), s =
|
|
103
|
-
n === "month" ? (c = B(r, { weekStartsOn: i }), l =
|
|
101
|
+
let r = z(t), s = te(t), c, l;
|
|
102
|
+
n === "month" ? (c = B(r, { weekStartsOn: i }), l = M(s, { weekStartsOn: i })) : n === "week" ? (c = B(t, { weekStartsOn: i }), l = M(t, { weekStartsOn: i })) : (c = r, l = s);
|
|
104
103
|
let u = j({
|
|
105
104
|
start: c,
|
|
106
105
|
end: l
|
|
@@ -124,7 +123,7 @@ function q(e, t, n, r = {}) {
|
|
|
124
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());
|
|
125
124
|
return {
|
|
126
125
|
date: e,
|
|
127
|
-
isCurrentMonth:
|
|
126
|
+
isCurrentMonth: F(e, t),
|
|
128
127
|
isToday: I(e),
|
|
129
128
|
isWeekend: L(e),
|
|
130
129
|
events: r,
|
|
@@ -144,7 +143,7 @@ function q(e, t, n, r = {}) {
|
|
|
144
143
|
function ne(e, t) {
|
|
145
144
|
return e.filter((e) => {
|
|
146
145
|
let n = R(e.startDate), r = e.endDate ? R(e.endDate) : n, i = R(t);
|
|
147
|
-
return
|
|
146
|
+
return P(i, n) || P(i, r) || i > n && i < r;
|
|
148
147
|
}).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
149
148
|
}
|
|
150
149
|
function J(e, t) {
|
|
@@ -215,7 +214,7 @@ function Y({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
215
214
|
Y.displayName = "EventCalendarDayCell";
|
|
216
215
|
//#endregion
|
|
217
216
|
//#region src/components/features/event-calendar/event-calendar-header.tsx
|
|
218
|
-
var
|
|
217
|
+
var re = (e, t) => {
|
|
219
218
|
if (!e) return null;
|
|
220
219
|
if (e.element) return /* @__PURE__ */ T("div", {
|
|
221
220
|
className: "event-calendar-header--action-slot",
|
|
@@ -233,24 +232,24 @@ var X = (e, t) => {
|
|
|
233
232
|
children: [!!n && /* @__PURE__ */ T(n, { className: "size-icon" }), e.label]
|
|
234
233
|
}, r);
|
|
235
234
|
};
|
|
236
|
-
function
|
|
237
|
-
let { defaultScale:
|
|
235
|
+
function ie({ currentDate: n, viewMode: o, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: p, onDateChange: m, locale: h, actions: g, strings: x, rangeMode: C = "date", minDate: O, maxDate: k, prevDisabled: A = !1, nextDisabled: j = !1 }) {
|
|
236
|
+
let { defaultScale: te } = t(), M = e(void 0, te), N = r(G, x), P = S(() => (g || []).filter((e) => e.visible !== !1), [g]), F = S(() => [
|
|
238
237
|
{
|
|
239
238
|
value: "month",
|
|
240
|
-
label:
|
|
239
|
+
label: N.viewMode.month
|
|
241
240
|
},
|
|
242
241
|
{
|
|
243
242
|
value: "week",
|
|
244
|
-
label:
|
|
243
|
+
label: N.viewMode.week
|
|
245
244
|
},
|
|
246
245
|
{
|
|
247
246
|
value: "agenda",
|
|
248
|
-
label:
|
|
247
|
+
label: N.viewMode.agenda
|
|
249
248
|
}
|
|
250
249
|
], [
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
N.viewMode.month,
|
|
251
|
+
N.viewMode.week,
|
|
252
|
+
N.viewMode.agenda
|
|
254
253
|
]);
|
|
255
254
|
return /* @__PURE__ */ T("div", {
|
|
256
255
|
className: "event-calendar-header--component @container/event-calendar-header mb-space-xl min-w-0",
|
|
@@ -266,8 +265,8 @@ function Z({ currentDate: e, viewMode: o, displayLabel: c, onPrevious: l, onNext
|
|
|
266
265
|
iconOnly: !0,
|
|
267
266
|
className: "min-w-0 max-w-full",
|
|
268
267
|
value: {
|
|
269
|
-
month:
|
|
270
|
-
year:
|
|
268
|
+
month: n.getMonth(),
|
|
269
|
+
year: n.getFullYear()
|
|
271
270
|
},
|
|
272
271
|
onValueChange: (e) => {
|
|
273
272
|
e.date && m?.(e.date);
|
|
@@ -275,49 +274,49 @@ function Z({ currentDate: e, viewMode: o, displayLabel: c, onPrevious: l, onNext
|
|
|
275
274
|
fromYear: O?.getFullYear(),
|
|
276
275
|
toYear: k?.getFullYear(),
|
|
277
276
|
locale: h,
|
|
278
|
-
strings:
|
|
277
|
+
strings: N.monthYearPicker
|
|
279
278
|
})]
|
|
280
279
|
}), /* @__PURE__ */ E("div", {
|
|
281
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",
|
|
282
281
|
children: [
|
|
283
|
-
|
|
282
|
+
P.length > 0 && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
|
|
284
283
|
className: i("event-calendar-header--actions flex min-w-0 flex-wrap items-center", f.commands),
|
|
285
|
-
children:
|
|
284
|
+
children: P.map((e, t) => re(e, t))
|
|
286
285
|
}), /* @__PURE__ */ T("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
|
|
287
286
|
/* @__PURE__ */ T(a, {
|
|
288
287
|
tone: "secondary",
|
|
289
288
|
buttonStyle: "outline",
|
|
290
289
|
onClick: d,
|
|
291
|
-
children:
|
|
290
|
+
children: N.today
|
|
292
291
|
}),
|
|
293
292
|
/* @__PURE__ */ E("div", {
|
|
294
|
-
className: i("event-calendar-header--navigation", y.joinedFrame, b[
|
|
293
|
+
className: i("event-calendar-header--navigation", y.joinedFrame, b[M]),
|
|
295
294
|
children: [/* @__PURE__ */ T(a, {
|
|
296
295
|
tone: "secondary",
|
|
297
296
|
buttonStyle: "ghost",
|
|
298
|
-
size:
|
|
297
|
+
size: M,
|
|
299
298
|
iconOnly: !0,
|
|
300
299
|
onClick: l,
|
|
301
300
|
disabled: A,
|
|
302
301
|
className: i(y.joinedItem, y.firstItem, "border-border border-e"),
|
|
303
|
-
"aria-label":
|
|
302
|
+
"aria-label": N.previous,
|
|
304
303
|
children: /* @__PURE__ */ T(D, { className: "size-icon rtl:rotate-180" })
|
|
305
304
|
}), /* @__PURE__ */ T(a, {
|
|
306
305
|
tone: "secondary",
|
|
307
306
|
buttonStyle: "ghost",
|
|
308
|
-
size:
|
|
307
|
+
size: M,
|
|
309
308
|
iconOnly: !0,
|
|
310
309
|
onClick: u,
|
|
311
310
|
disabled: j,
|
|
312
311
|
className: i(y.joinedItem, y.lastItem),
|
|
313
|
-
"aria-label":
|
|
312
|
+
"aria-label": N.next,
|
|
314
313
|
children: /* @__PURE__ */ T(ee, { className: "size-icon rtl:rotate-180" })
|
|
315
314
|
})]
|
|
316
315
|
}),
|
|
317
316
|
!!p && /* @__PURE__ */ T(_, {
|
|
318
|
-
"aria-label":
|
|
317
|
+
"aria-label": N.viewMode.label,
|
|
319
318
|
value: o,
|
|
320
|
-
options:
|
|
319
|
+
options: F,
|
|
321
320
|
onValueChange: (e) => {
|
|
322
321
|
e && p(e);
|
|
323
322
|
},
|
|
@@ -328,64 +327,59 @@ function Z({ currentDate: e, viewMode: o, displayLabel: c, onPrevious: l, onNext
|
|
|
328
327
|
})
|
|
329
328
|
});
|
|
330
329
|
}
|
|
331
|
-
|
|
330
|
+
ie.displayName = "EventCalendarHeader";
|
|
332
331
|
//#endregion
|
|
333
332
|
//#region src/components/features/event-calendar/colors.ts
|
|
334
|
-
var
|
|
333
|
+
var X = {
|
|
334
|
+
badgeBg: "bg-muted",
|
|
335
|
+
border: "border-border"
|
|
336
|
+
}, Z = {
|
|
335
337
|
gray: {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
swatch: "bg-muted-foreground"
|
|
338
|
+
...X,
|
|
339
|
+
swatch: U.gray
|
|
339
340
|
},
|
|
340
341
|
red: {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
swatch: u.destructive.solid
|
|
342
|
+
...X,
|
|
343
|
+
swatch: U.red
|
|
344
344
|
},
|
|
345
345
|
orange: {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
swatch: u.warning.solid
|
|
346
|
+
...X,
|
|
347
|
+
swatch: U.orange
|
|
349
348
|
},
|
|
350
349
|
amber: {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
swatch: u.warning.solid
|
|
350
|
+
...X,
|
|
351
|
+
swatch: U.amber
|
|
354
352
|
},
|
|
355
353
|
yellow: {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
swatch: u.warning.solid
|
|
354
|
+
...X,
|
|
355
|
+
swatch: U.yellow
|
|
359
356
|
},
|
|
360
357
|
green: {
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
swatch: u.success.solid
|
|
358
|
+
...X,
|
|
359
|
+
swatch: U.green
|
|
364
360
|
},
|
|
365
361
|
blue: {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
swatch: u.info.solid
|
|
362
|
+
...X,
|
|
363
|
+
swatch: U.blue
|
|
369
364
|
},
|
|
370
365
|
purple: {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
swatch: u.primary.solid
|
|
366
|
+
...X,
|
|
367
|
+
swatch: U.purple
|
|
374
368
|
}
|
|
375
369
|
};
|
|
376
|
-
function
|
|
370
|
+
function ae(e) {
|
|
377
371
|
let t = W(e);
|
|
378
372
|
return {
|
|
379
373
|
dot: U[t],
|
|
380
|
-
...
|
|
374
|
+
...Z[t]
|
|
381
375
|
};
|
|
382
376
|
}
|
|
383
|
-
function
|
|
377
|
+
function oe(e) {
|
|
384
378
|
return U[W(e)];
|
|
385
379
|
}
|
|
386
380
|
//#endregion
|
|
387
381
|
//#region src/components/features/event-calendar/event-calendar-legend.tsx
|
|
388
|
-
function
|
|
382
|
+
function se({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1 }) {
|
|
389
383
|
let s = !t || t.length === 0, c = (e) => !r || s || t?.includes(e), l = (e) => {
|
|
390
384
|
r && n && n(e);
|
|
391
385
|
};
|
|
@@ -394,7 +388,7 @@ function ae({ categories: e, visibleCategories: t, onToggleCategory: n, enableFi
|
|
|
394
388
|
"aria-label": r ? "Filter event categories" : void 0,
|
|
395
389
|
className: i("event-calendar-legend--component", "flex flex-wrap items-center gap-space-sm py-space-xs"),
|
|
396
390
|
children: e.map((e) => {
|
|
397
|
-
let t = c(e.id), n =
|
|
391
|
+
let t = c(e.id), n = ae(e), s = e.icon, u = "group inline-flex items-center gap-space-sm rounded-radius border px-space-sm py-space-xs transition-colors", d = /* @__PURE__ */ E(w, { children: [
|
|
398
392
|
/* @__PURE__ */ T("span", {
|
|
399
393
|
className: i("inline-block size-2 rounded-radius", t ? n.swatch : "bg-muted-foreground/40"),
|
|
400
394
|
"aria-hidden": "true"
|
|
@@ -427,10 +421,10 @@ function ae({ categories: e, visibleCategories: t, onToggleCategory: n, enableFi
|
|
|
427
421
|
})
|
|
428
422
|
});
|
|
429
423
|
}
|
|
430
|
-
|
|
424
|
+
se.displayName = "EventCalendarLegend";
|
|
431
425
|
//#endregion
|
|
432
426
|
//#region src/components/features/event-calendar/use-event-calendar.tsx
|
|
433
|
-
function
|
|
427
|
+
function ce({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ new Date(), viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
|
|
434
428
|
let [l, u] = C(r), [d, f] = C(a), p = n ?? l, m = i ?? d, h = x((e) => {
|
|
435
429
|
n === void 0 && u(e), o?.(e);
|
|
436
430
|
}, [n, o]), g = x((e) => {
|
|
@@ -467,12 +461,12 @@ function oe({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ ne
|
|
|
467
461
|
g(e);
|
|
468
462
|
}, [g]),
|
|
469
463
|
displayLabel: S(() => {
|
|
470
|
-
if (m === "month") return
|
|
464
|
+
if (m === "month") return N(p, "MMMM yyyy", { locale: t });
|
|
471
465
|
if (m === "week") {
|
|
472
466
|
let e = _[0]?.date, n = _[_.length - 1]?.date;
|
|
473
|
-
return e && n ? `${
|
|
467
|
+
return e && n ? `${N(e, "MMM d", { locale: t })} - ${N(n, "MMM d, yyyy", { locale: t })}` : N(p, "MMMM yyyy", { locale: t });
|
|
474
468
|
}
|
|
475
|
-
return
|
|
469
|
+
return N(p, "MMMM yyyy", { locale: t });
|
|
476
470
|
}, [
|
|
477
471
|
p,
|
|
478
472
|
m,
|
|
@@ -484,20 +478,20 @@ function oe({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ ne
|
|
|
484
478
|
}
|
|
485
479
|
//#endregion
|
|
486
480
|
//#region src/components/features/event-calendar/event-calendar.tsx
|
|
487
|
-
function
|
|
481
|
+
function le(e, t) {
|
|
488
482
|
if (!e) return !1;
|
|
489
483
|
if (Array.isArray(e)) return e.some((e) => e.toDateString() === t.toDateString());
|
|
490
484
|
if (typeof e == "function") return e(t);
|
|
491
485
|
let n = e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1, r = e.predicate?.(t) ?? !1;
|
|
492
486
|
return n || r;
|
|
493
487
|
}
|
|
494
|
-
function
|
|
495
|
-
let H = r(G,
|
|
488
|
+
function ue({ events: e, categories: t, 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: x = !1, visibleCategories: w, onVisibleCategoriesChange: D, loading: ee = !1, emptyStateMessage: O, className: k, compact: A = !1, actions: j, strings: te, dayHeadingVariant: M = "default", dayHeadingClassName: N, renderDayHeading: P, rangeMode: F = "date", minDate: I, maxDate: L, disabledDates: R, filterEvent: z, renderEvent: B, renderDayCell: V }) {
|
|
489
|
+
let H = r(G, te), [U, W] = C([]), K = w ?? U, { weekStartsOn: q, locale: ne } = n(), J = y ?? q ?? 1, re = b ?? ne, X = (e) => {
|
|
496
490
|
let t = K.includes(e) ? K.filter((t) => t !== e) : [...K, e];
|
|
497
491
|
D ? D(t) : W(t);
|
|
498
|
-
},
|
|
499
|
-
events:
|
|
500
|
-
locale:
|
|
492
|
+
}, Z = ce({
|
|
493
|
+
events: e,
|
|
494
|
+
locale: re,
|
|
501
495
|
date: l,
|
|
502
496
|
defaultDate: d,
|
|
503
497
|
viewMode: a,
|
|
@@ -509,22 +503,22 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
509
503
|
showWeekends: v,
|
|
510
504
|
visibleCategories: K.length > 0 ? K : void 0
|
|
511
505
|
}
|
|
512
|
-
}),
|
|
506
|
+
}), ae = S(() => {
|
|
513
507
|
let e = H.weekdaysShort;
|
|
514
508
|
return J === 1 ? [...e.slice(1), e[0]] : e;
|
|
515
|
-
}, [H.weekdaysShort, J]),
|
|
516
|
-
|
|
517
|
-
},
|
|
509
|
+
}, [H.weekdaysShort, J]), oe = (e) => {
|
|
510
|
+
le(R, e.date) || I && e.date < I || L && e.date > L || m?.(e.date, e.events);
|
|
511
|
+
}, ue = S(() => z ? Z.calendarDays.map((e) => ({
|
|
518
512
|
...e,
|
|
519
513
|
events: e.events.filter(z),
|
|
520
514
|
eventCount: e.events.filter(z).length,
|
|
521
515
|
hasMultipleEvents: e.events.filter(z).length > 1
|
|
522
|
-
})) :
|
|
523
|
-
function
|
|
524
|
-
return !!(
|
|
516
|
+
})) : Z.calendarDays, [Z.calendarDays, z]);
|
|
517
|
+
function Q(e) {
|
|
518
|
+
return !!(le(R, e) || I && e < I || L && e > L);
|
|
525
519
|
}
|
|
526
|
-
let
|
|
527
|
-
let e =
|
|
520
|
+
let $ = S(() => {
|
|
521
|
+
let e = Z.calendarDays;
|
|
528
522
|
if (e.length === 0) return {
|
|
529
523
|
prev: !1,
|
|
530
524
|
next: !1
|
|
@@ -535,7 +529,7 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
535
529
|
next: !!L && n >= L
|
|
536
530
|
};
|
|
537
531
|
}, [
|
|
538
|
-
|
|
532
|
+
Z.calendarDays,
|
|
539
533
|
I,
|
|
540
534
|
L
|
|
541
535
|
]);
|
|
@@ -547,26 +541,26 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
547
541
|
children: H.loading
|
|
548
542
|
})
|
|
549
543
|
});
|
|
550
|
-
let de = a ? c : void 0, fe = x ?
|
|
544
|
+
let de = a ? c : void 0, fe = x ? X : void 0;
|
|
551
545
|
return /* @__PURE__ */ E("div", {
|
|
552
546
|
className: i("event-calendar--component w-full space-y-space-xl", k),
|
|
553
547
|
children: [
|
|
554
|
-
!!_ && /* @__PURE__ */ T(
|
|
555
|
-
currentDate:
|
|
556
|
-
viewMode:
|
|
557
|
-
displayLabel:
|
|
558
|
-
onPrevious:
|
|
559
|
-
onNext:
|
|
560
|
-
onToday:
|
|
548
|
+
!!_ && /* @__PURE__ */ T(ie, {
|
|
549
|
+
currentDate: Z.currentDate,
|
|
550
|
+
viewMode: Z.viewMode,
|
|
551
|
+
displayLabel: Z.displayLabel,
|
|
552
|
+
onPrevious: Z.goToPreviousPeriod,
|
|
553
|
+
onNext: Z.goToNextPeriod,
|
|
554
|
+
onToday: Z.goToToday,
|
|
561
555
|
onViewModeChange: de,
|
|
562
|
-
onDateChange:
|
|
563
|
-
locale:
|
|
556
|
+
onDateChange: Z.setDate,
|
|
557
|
+
locale: re,
|
|
564
558
|
actions: j,
|
|
565
|
-
rangeMode:
|
|
559
|
+
rangeMode: F,
|
|
566
560
|
minDate: I,
|
|
567
561
|
maxDate: L,
|
|
568
|
-
prevDisabled:
|
|
569
|
-
nextDisabled:
|
|
562
|
+
prevDisabled: $.prev,
|
|
563
|
+
nextDisabled: $.next,
|
|
570
564
|
strings: {
|
|
571
565
|
today: H.today,
|
|
572
566
|
previous: H.previous,
|
|
@@ -575,41 +569,41 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
575
569
|
monthYearPicker: H.monthYearPicker
|
|
576
570
|
}
|
|
577
571
|
}),
|
|
578
|
-
!!g &&
|
|
579
|
-
categories:
|
|
572
|
+
!!g && t.length > 0 && /* @__PURE__ */ T(se, {
|
|
573
|
+
categories: t,
|
|
580
574
|
visibleCategories: K,
|
|
581
575
|
onToggleCategory: fe,
|
|
582
576
|
enableFiltering: x
|
|
583
577
|
}),
|
|
584
|
-
!
|
|
578
|
+
!Z.hasEvents && O ? /* @__PURE__ */ T("div", {
|
|
585
579
|
className: "flex items-center justify-center rounded-radius border border-dashed border-border p-surface",
|
|
586
580
|
children: /* @__PURE__ */ T(o, {
|
|
587
581
|
type: "secondary",
|
|
588
582
|
children: O
|
|
589
583
|
})
|
|
590
584
|
}) : /* @__PURE__ */ E("div", {
|
|
591
|
-
className: "box-border bg-background text-foreground rounded-
|
|
585
|
+
className: "box-border bg-background text-foreground rounded-surface border border-border",
|
|
592
586
|
children: [/* @__PURE__ */ T("div", {
|
|
593
|
-
className: i("grid grid-cols-7",
|
|
594
|
-
children:
|
|
595
|
-
className: i("text-center h-8 flex items-center justify-center",
|
|
587
|
+
className: i("grid grid-cols-7", M === "bordered" && "border-b border-border mb-0", M === "tinted" && "bg-muted/50 rounded-t-surface mb-0 overflow-hidden", M === "accent" && i(u.primary.wash, "rounded-t-surface mb-0 overflow-hidden"), M === "default" && "mb-space-md"),
|
|
588
|
+
children: ae.map((e, t) => P ? /* @__PURE__ */ T("div", { children: P(e, t) }, e) : /* @__PURE__ */ T("div", {
|
|
589
|
+
className: i("text-center h-8 flex items-center justify-center", N),
|
|
596
590
|
children: /* @__PURE__ */ T(o, {
|
|
597
591
|
size: "xs",
|
|
598
|
-
weight:
|
|
599
|
-
className: i(
|
|
592
|
+
weight: M === "accent" ? "medium" : "regular",
|
|
593
|
+
className: i(M === "default" && "text-muted-foreground", M === "tinted" && "text-muted-foreground", M === "bordered" && "text-foreground", M === "accent" && "text-primary-accent"),
|
|
600
594
|
children: e
|
|
601
595
|
})
|
|
602
596
|
}, e))
|
|
603
597
|
}), /* @__PURE__ */ T("div", {
|
|
604
598
|
className: "grid grid-cols-7",
|
|
605
|
-
children:
|
|
606
|
-
let
|
|
599
|
+
children: ue.map((e) => {
|
|
600
|
+
let n = Q(e.date), r = () => /* @__PURE__ */ T(Y, {
|
|
607
601
|
data: e,
|
|
608
|
-
categories:
|
|
602
|
+
categories: t,
|
|
609
603
|
maxEvents: h,
|
|
610
|
-
onClick: () =>
|
|
604
|
+
onClick: () => oe(e),
|
|
611
605
|
onEventClick: p ? (t) => {
|
|
612
|
-
|
|
606
|
+
Q(e.date) || p(t);
|
|
613
607
|
} : void 0,
|
|
614
608
|
compact: A,
|
|
615
609
|
strings: {
|
|
@@ -619,8 +613,8 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
619
613
|
renderEvent: B
|
|
620
614
|
});
|
|
621
615
|
return /* @__PURE__ */ T("div", {
|
|
622
|
-
className: i(
|
|
623
|
-
"aria-disabled":
|
|
616
|
+
className: i(n && "pointer-events-none opacity-50"),
|
|
617
|
+
"aria-disabled": n || void 0,
|
|
624
618
|
children: V ? V(e, r) : r()
|
|
625
619
|
}, e.date.toISOString());
|
|
626
620
|
})
|
|
@@ -629,17 +623,17 @@ function ce({ events: t, categories: n, viewMode: a, defaultViewMode: s, onViewM
|
|
|
629
623
|
]
|
|
630
624
|
});
|
|
631
625
|
}
|
|
632
|
-
|
|
626
|
+
ue.displayName = "EventCalendar";
|
|
633
627
|
//#endregion
|
|
634
628
|
//#region src/components/features/event-calendar/event-calendar-event-card.tsx
|
|
635
|
-
var
|
|
629
|
+
var Q = {
|
|
636
630
|
guest: "guest",
|
|
637
631
|
guests: "guests"
|
|
638
632
|
};
|
|
639
633
|
function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
640
|
-
let u = r(
|
|
634
|
+
let u = r(Q, a), f = !!n, g = () => {
|
|
641
635
|
n && n();
|
|
642
|
-
}, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x =
|
|
636
|
+
}, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x = oe(t), S = [v, y !== void 0 && y > 0 ? `${y} ${y === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), C = /* @__PURE__ */ E(l, {
|
|
643
637
|
gap: "lg",
|
|
644
638
|
children: [
|
|
645
639
|
/* @__PURE__ */ E("div", {
|
|
@@ -695,7 +689,7 @@ function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
|
695
689
|
})
|
|
696
690
|
})
|
|
697
691
|
]
|
|
698
|
-
}), w = i("box-border w-full min-w-0 text-left p-surface border border-border rounded-
|
|
692
|
+
}), w = 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 ${c.frame}` : "");
|
|
699
693
|
return f ? /* @__PURE__ */ T("button", {
|
|
700
694
|
type: "button",
|
|
701
695
|
onClick: g,
|
|
@@ -708,6 +702,6 @@ function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
|
708
702
|
}
|
|
709
703
|
$.displayName = "EventCalendarEventCard";
|
|
710
704
|
//#endregion
|
|
711
|
-
export {
|
|
705
|
+
export { ue as EventCalendar, Y as EventCalendarDayCell, K as EventCalendarEventBadge, $ as EventCalendarEventCard, ie as EventCalendarHeader, se as EventCalendarLegend, U as calendarTokenDot, Q as defaultEventCalendarEventCardStrings, G as defaultEventCalendarStrings, ae as getCalendarColorClasses, oe as getCalendarDotClass, J as getCategoryById, ne as getEventsForDay, W as resolveCategoryColorToken, ce as useEventCalendar, q as useEventCalendarData };
|
|
712
706
|
|
|
713
707
|
//# sourceMappingURL=event-calendar.js.map
|