themelia-react-ui 2.0.5 → 2.0.6
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 +76 -0
- package/MIGRATION.md +119 -0
- package/README.md +13 -6
- package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
- package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
- package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
- package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
- package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
- package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
- package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
- package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
- package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.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 +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +8 -8
- 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 +6 -6
- 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 +195 -188
- 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/skeleton.js +1 -1
- package/dist/base/spinner.js +5 -5
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +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-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
- package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
- package/dist/blocks/admin.js +17 -17
- package/dist/blocks/ai.js +227 -221
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +424 -449
- 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 +225 -220
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +5 -5
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
- package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
- package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
- package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
- package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
- package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
- package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
- package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
- package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
- package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
- package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
- package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
- package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
- package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
- package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
- package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
- package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sidebar/sidebar.d.ts +2 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +18 -11
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
- package/dist/components/features/media-library/hooks/use-media-library.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 +36 -8
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/products.types.d.ts +2 -2
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +2 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +17 -1
- package/dist/components/layout/header/header.types.d.ts +3 -2
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +1 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
- package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
- package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
- package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
- package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
- package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
- package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
- package/dist/features/activities.js +283 -270
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +40 -27
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +126 -126
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +10 -10
- package/dist/features/email-composer.js +24 -19
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +129 -125
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +16 -20
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +18 -28
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +331 -314
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1044 -866
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +978 -964
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +159 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +74 -71
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +400 -399
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
- package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
- package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
- package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
- package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
- package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
- package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
- package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
- package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
- package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
- package/dist/item-FfWnaYST.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 +11 -11
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +6 -6
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
- package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
- package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
- package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
- package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
- package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
- package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
- package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
- package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
- package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
- package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
- package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
- package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
- package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
- package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
- package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/rich-text-editor-CAurDwT5.js +1273 -0
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
- package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
- package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
- package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
- package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
- package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
- package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
- package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
- package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
- package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
- package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
- package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
- package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
- package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
- package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
- package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
- package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
- package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
- package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
- package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
- package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/references/agents-md.md +19 -19
- package/docs/consumer-skill/references/analytics.md +15 -0
- package/docs/consumer-skill/references/component-contracts.json +14724 -13057
- package/docs/consumer-skill/references/composition.md +21 -4
- package/docs/consumer-skill/references/design-contract.md +1 -0
- package/docs/consumer-skill/references/installation.md +51 -8
- package/docs/consumer-skill/references/integration.md +24 -1
- package/docs/consumer-skill/references/public-api.json +172 -34
- package/docs/consumer-skill/references/review.md +51 -11
- package/docs/consumer-skill/references/rhf-workflows.md +72 -0
- package/docs/consumer-skill/references/theming.md +7 -2
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
- package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-B9MHG0cT.js.map +0 -1
- package/dist/ai-artifact-C58tQcBy.js.map +0 -1
- package/dist/auth-DTkkshS8.js.map +0 -1
- package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
- package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
- package/dist/combobox-BwzoXFSG.js +0 -884
- package/dist/combobox-BwzoXFSG.js.map +0 -1
- package/dist/comments-Dmpp0YIc.js.map +0 -1
- package/dist/data-display-BdgCAw8T.js.map +0 -1
- package/dist/date-picker-RlIzKom_.js +0 -1551
- package/dist/date-picker-RlIzKom_.js.map +0 -1
- package/dist/date-pickers-DY-CpXS1.js +0 -179
- package/dist/date-pickers-DY-CpXS1.js.map +0 -1
- package/dist/feedback-Dm4izqFn.js +0 -240
- package/dist/feedback-Dm4izqFn.js.map +0 -1
- package/dist/filters-DzgSJpMK.js.map +0 -1
- package/dist/form-field-BriWAXyg.js +0 -63
- package/dist/form-field-BriWAXyg.js.map +0 -1
- package/dist/forms-numeric-DIhghX1Q.js +0 -910
- package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
- package/dist/header-DMMxG__r.js.map +0 -1
- package/dist/item-DjCcM18E.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-0_4nWuI-.js.map +0 -1
- package/dist/message-g8p7eVtN.js +0 -128
- package/dist/message-g8p7eVtN.js.map +0 -1
- package/dist/navigation-C90-oQFq.js.map +0 -1
- package/dist/navigation-DaRjthVk.js.map +0 -1
- package/dist/number-CRU3kGuk.js.map +0 -1
- package/dist/overlays-BSgCtM2v.js.map +0 -1
- package/dist/popover-B85RenIl.js.map +0 -1
- package/dist/primitives-ByWgGUgt.js.map +0 -1
- package/dist/rich-text-Dth5E882.js +0 -78
- package/dist/rich-text-Dth5E882.js.map +0 -1
- package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
- package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-Bar5wiSo.js +0 -167
- package/dist/settings-Bar5wiSo.js.map +0 -1
- package/dist/sidebar-D-JYMMbY.js +0 -686
- package/dist/sidebar-D-JYMMbY.js.map +0 -1
- package/dist/sidebar-f9gRWXIR.js.map +0 -1
- package/dist/table-B4TE7iOV.js.map +0 -1
- package/dist/table-CFOWY9pQ.js.map +0 -1
- package/dist/tabs-e7ko9S2o.js.map +0 -1
- package/dist/upload-BOW6U2tI.js.map +0 -1
- package/dist/utils-B6kKb8jB.js.map +0 -1
- package/dist/value-typography-uAmWUAL1.js.map +0 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
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-DhuoqFy4.js";
|
|
5
|
+
import { n as a } from "../buttons-DeW0bQeK.js";
|
|
6
|
+
import { c as o, s } from "../typography-C7-YMW1S.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-DZJ2wbAU.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
|
-
import { t as p } from "../interaction-recipes-
|
|
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-
|
|
11
|
+
import { t as p } from "../interaction-recipes-4wZ2tvfb.js";
|
|
12
|
+
import { r as m, t as h } from "../date-Br0FicVv.js";
|
|
13
|
+
import { n as g } from "../field-affordance-recipes-D6H7tVJi.js";
|
|
14
|
+
import { l as _ } from "../choice-inputs-DHGtx0QV.js";
|
|
15
|
+
import { t as v } from "../date-pickers-tj2MXmXd.js";
|
|
16
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 te, endOfWeek as M, format as N,
|
|
20
|
+
import { addMonths as k, addWeeks as A, eachDayOfInterval as j, endOfMonth as te, endOfWeek as M, format as N, formatISO as P, isSameDay as F, isSameMonth as I, isToday as L, isWeekend as R, startOfDay as z, startOfMonth as ne, startOfWeek as B, subMonths as V, subWeeks as re } from "date-fns";
|
|
21
21
|
//#region src/components/features/event-calendar/event-calendar.types.ts
|
|
22
|
-
var
|
|
22
|
+
var H = {
|
|
23
23
|
gray: "bg-muted-foreground",
|
|
24
24
|
red: "bg-chart-4",
|
|
25
25
|
orange: "bg-chart-5",
|
|
@@ -29,10 +29,10 @@ var U = {
|
|
|
29
29
|
blue: "bg-chart-2",
|
|
30
30
|
purple: "bg-chart-3"
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function U(e) {
|
|
33
33
|
return e?.colorToken ?? "gray";
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var W = {
|
|
36
36
|
today: "Today",
|
|
37
37
|
previous: "Previous",
|
|
38
38
|
next: "Next",
|
|
@@ -57,8 +57,8 @@ var G = {
|
|
|
57
57
|
};
|
|
58
58
|
//#endregion
|
|
59
59
|
//#region src/components/features/event-calendar/event-calendar-event-badge.tsx
|
|
60
|
-
function
|
|
61
|
-
let a = U
|
|
60
|
+
function G({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
61
|
+
let a = H[U(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) => {
|
|
@@ -92,40 +92,43 @@ function K({ event: e, category: t, compact: n = !1, onClick: r }) {
|
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
G.displayName = "EventCalendarEventBadge";
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/components/features/event-calendar/use-event-calendar-data.tsx
|
|
98
|
+
function K(e) {
|
|
99
|
+
return P(e, { representation: "date" });
|
|
100
|
+
}
|
|
98
101
|
function q(e, t, n, r = {}) {
|
|
99
102
|
let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
|
|
100
103
|
return S(() => {
|
|
101
|
-
let r =
|
|
104
|
+
let r = ne(t), s = te(t), c, l;
|
|
102
105
|
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);
|
|
103
106
|
let u = j({
|
|
104
107
|
start: c,
|
|
105
108
|
end: l
|
|
106
109
|
}), d = o && o.length > 0 ? e.filter((e) => o.includes(e.category)) : e, f = /* @__PURE__ */ new Map();
|
|
107
110
|
return d.forEach((e) => {
|
|
108
|
-
let t =
|
|
111
|
+
let t = z(e.startDate);
|
|
109
112
|
if (Number.isNaN(t.getTime())) return;
|
|
110
113
|
let n = t;
|
|
111
114
|
if (e.endDate && !Number.isNaN(e.endDate.getTime())) {
|
|
112
|
-
let r =
|
|
115
|
+
let r = z(e.endDate);
|
|
113
116
|
!Number.isNaN(r.getTime()) && r.getTime() >= t.getTime() && (n = r);
|
|
114
117
|
}
|
|
115
118
|
j({
|
|
116
119
|
start: t,
|
|
117
120
|
end: n
|
|
118
121
|
}).forEach((t) => {
|
|
119
|
-
let n = t
|
|
122
|
+
let n = K(t);
|
|
120
123
|
f.has(n) || f.set(n, []), f.get(n).push(e);
|
|
121
124
|
});
|
|
122
|
-
}), u.filter((e) => a || !
|
|
123
|
-
let n = e
|
|
125
|
+
}), u.filter((e) => a || !R(e)).map((e) => {
|
|
126
|
+
let n = K(e), r = [...f.get(n) || []].sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
124
127
|
return {
|
|
125
128
|
date: e,
|
|
126
|
-
isCurrentMonth:
|
|
127
|
-
isToday:
|
|
128
|
-
isWeekend:
|
|
129
|
+
isCurrentMonth: I(e, t),
|
|
130
|
+
isToday: L(e),
|
|
131
|
+
isWeekend: R(e),
|
|
129
132
|
events: r,
|
|
130
133
|
eventCount: r.length,
|
|
131
134
|
hasMultipleEvents: r.length > 1
|
|
@@ -140,21 +143,21 @@ function q(e, t, n, r = {}) {
|
|
|
140
143
|
o
|
|
141
144
|
]);
|
|
142
145
|
}
|
|
143
|
-
function
|
|
146
|
+
function J(e, t) {
|
|
144
147
|
return e.filter((e) => {
|
|
145
|
-
let n =
|
|
146
|
-
return
|
|
148
|
+
let n = z(e.startDate), r = e.endDate ? z(e.endDate) : n, i = z(t);
|
|
149
|
+
return F(i, n) || F(i, r) || i > n && i < r;
|
|
147
150
|
}).sort((e, t) => e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime());
|
|
148
151
|
}
|
|
149
|
-
function
|
|
152
|
+
function ie(e, t) {
|
|
150
153
|
return e.find((e) => e.id === t);
|
|
151
154
|
}
|
|
152
155
|
//#endregion
|
|
153
156
|
//#region src/components/features/event-calendar/event-calendar-day-cell.tsx
|
|
154
|
-
function
|
|
157
|
+
function ae({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick: a, compact: s = !1, strings: c, renderEvent: l }) {
|
|
155
158
|
let u = {
|
|
156
|
-
booking: c?.booking ??
|
|
157
|
-
bookings: c?.bookings ??
|
|
159
|
+
booking: c?.booking ?? W.booking,
|
|
160
|
+
bookings: c?.bookings ?? W.bookings
|
|
158
161
|
}, { date: d, isCurrentMonth: f, isToday: p, isWeekend: m, events: h, eventCount: _ } = e, v = h.slice(0, n), y = Math.max(0, _ - n);
|
|
159
162
|
return /* @__PURE__ */ T("div", {
|
|
160
163
|
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"),
|
|
@@ -182,8 +185,8 @@ function Y({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
182
185
|
}), /* @__PURE__ */ E("div", {
|
|
183
186
|
className: "w-full space-y-space-2xs",
|
|
184
187
|
children: [v.map((n) => {
|
|
185
|
-
let i =
|
|
186
|
-
return l ? /* @__PURE__ */ T("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ T(
|
|
188
|
+
let i = ie(t, n.category);
|
|
189
|
+
return l ? /* @__PURE__ */ T("div", { children: l(n, i) }, n.id) : /* @__PURE__ */ T(G, {
|
|
187
190
|
event: n,
|
|
188
191
|
category: i,
|
|
189
192
|
compact: s || e.hasMultipleEvents,
|
|
@@ -195,7 +198,7 @@ function Y({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
195
198
|
className: "flex items-center gap-space-xs py-space-2xs px-space-md",
|
|
196
199
|
children: [/* @__PURE__ */ T("div", {
|
|
197
200
|
className: "flex items-center -space-x-1",
|
|
198
|
-
children: t.slice(0, 3).map((e, t) => /* @__PURE__ */ T("span", { className: i("h-1.5 w-1.5 rounded-full border border-background", U
|
|
201
|
+
children: t.slice(0, 3).map((e, t) => /* @__PURE__ */ T("span", { className: i("h-1.5 w-1.5 rounded-full border border-background", H[U(e)]) }, e.id || t))
|
|
199
202
|
}), /* @__PURE__ */ E(o, {
|
|
200
203
|
size: "xs",
|
|
201
204
|
type: "secondary",
|
|
@@ -211,10 +214,10 @@ function Y({ data: e, categories: t, maxEvents: n = 3, onClick: r, onEventClick:
|
|
|
211
214
|
})
|
|
212
215
|
});
|
|
213
216
|
}
|
|
214
|
-
|
|
217
|
+
ae.displayName = "EventCalendarDayCell";
|
|
215
218
|
//#endregion
|
|
216
219
|
//#region src/components/features/event-calendar/event-calendar-header.tsx
|
|
217
|
-
var
|
|
220
|
+
var Y = (e, t) => {
|
|
218
221
|
if (!e) return null;
|
|
219
222
|
if (e.element) return /* @__PURE__ */ T("div", {
|
|
220
223
|
className: "event-calendar-header--action-slot",
|
|
@@ -222,9 +225,9 @@ var re = (e, t) => {
|
|
|
222
225
|
}, e.id || t);
|
|
223
226
|
let n = e.icon, r = e.id || `action-${t}`, o = () => {
|
|
224
227
|
e.onClick?.();
|
|
225
|
-
}, s = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "
|
|
228
|
+
}, s = e.buttonStyle === "link" ? "ghost" : e.buttonStyle ?? "outline";
|
|
226
229
|
return /* @__PURE__ */ E(a, {
|
|
227
|
-
tone: e.tone ?? "
|
|
230
|
+
tone: e.tone ?? "secondary",
|
|
228
231
|
buttonStyle: s,
|
|
229
232
|
onClick: o,
|
|
230
233
|
className: i("gap-space-md", e.buttonStyle === "link" && "underline underline-offset-[0.2em]"),
|
|
@@ -232,8 +235,8 @@ var re = (e, t) => {
|
|
|
232
235
|
children: [!!n && /* @__PURE__ */ T(n, { className: "size-icon" }), e.label]
|
|
233
236
|
}, r);
|
|
234
237
|
};
|
|
235
|
-
function
|
|
236
|
-
let { defaultScale: te } = t(), M = e(void 0, te), N = r(
|
|
238
|
+
function oe({ 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 }) {
|
|
239
|
+
let { defaultScale: te } = t(), M = e(void 0, te), N = r(W, x), P = S(() => (g || []).filter((e) => e.visible !== !1), [g]), F = S(() => [
|
|
237
240
|
{
|
|
238
241
|
value: "month",
|
|
239
242
|
label: N.viewMode.month
|
|
@@ -281,7 +284,7 @@ function ie({ currentDate: n, viewMode: o, displayLabel: c, onPrevious: l, onNex
|
|
|
281
284
|
children: [
|
|
282
285
|
P.length > 0 && /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T("div", {
|
|
283
286
|
className: i("event-calendar-header--actions flex min-w-0 flex-wrap items-center", f.commands),
|
|
284
|
-
children: P.map((e, t) =>
|
|
287
|
+
children: P.map((e, t) => Y(e, t))
|
|
285
288
|
}), /* @__PURE__ */ T("div", { className: "event-calendar-header--separator mx-space-sm hidden h-6 w-px bg-border @sm/event-calendar-header:block" })] }),
|
|
286
289
|
/* @__PURE__ */ T(a, {
|
|
287
290
|
tone: "secondary",
|
|
@@ -327,59 +330,59 @@ function ie({ currentDate: n, viewMode: o, displayLabel: c, onPrevious: l, onNex
|
|
|
327
330
|
})
|
|
328
331
|
});
|
|
329
332
|
}
|
|
330
|
-
|
|
333
|
+
oe.displayName = "EventCalendarHeader";
|
|
331
334
|
//#endregion
|
|
332
335
|
//#region src/components/features/event-calendar/colors.ts
|
|
333
336
|
var X = {
|
|
334
337
|
badgeBg: "bg-muted",
|
|
335
338
|
border: "border-border"
|
|
336
|
-
},
|
|
339
|
+
}, se = {
|
|
337
340
|
gray: {
|
|
338
341
|
...X,
|
|
339
|
-
swatch:
|
|
342
|
+
swatch: H.gray
|
|
340
343
|
},
|
|
341
344
|
red: {
|
|
342
345
|
...X,
|
|
343
|
-
swatch:
|
|
346
|
+
swatch: H.red
|
|
344
347
|
},
|
|
345
348
|
orange: {
|
|
346
349
|
...X,
|
|
347
|
-
swatch:
|
|
350
|
+
swatch: H.orange
|
|
348
351
|
},
|
|
349
352
|
amber: {
|
|
350
353
|
...X,
|
|
351
|
-
swatch:
|
|
354
|
+
swatch: H.amber
|
|
352
355
|
},
|
|
353
356
|
yellow: {
|
|
354
357
|
...X,
|
|
355
|
-
swatch:
|
|
358
|
+
swatch: H.yellow
|
|
356
359
|
},
|
|
357
360
|
green: {
|
|
358
361
|
...X,
|
|
359
|
-
swatch:
|
|
362
|
+
swatch: H.green
|
|
360
363
|
},
|
|
361
364
|
blue: {
|
|
362
365
|
...X,
|
|
363
|
-
swatch:
|
|
366
|
+
swatch: H.blue
|
|
364
367
|
},
|
|
365
368
|
purple: {
|
|
366
369
|
...X,
|
|
367
|
-
swatch:
|
|
370
|
+
swatch: H.purple
|
|
368
371
|
}
|
|
369
372
|
};
|
|
370
|
-
function
|
|
371
|
-
let t =
|
|
373
|
+
function ce(e) {
|
|
374
|
+
let t = U(e);
|
|
372
375
|
return {
|
|
373
|
-
dot:
|
|
374
|
-
...
|
|
376
|
+
dot: H[t],
|
|
377
|
+
...se[t]
|
|
375
378
|
};
|
|
376
379
|
}
|
|
377
|
-
function
|
|
378
|
-
return U
|
|
380
|
+
function Z(e) {
|
|
381
|
+
return H[U(e)];
|
|
379
382
|
}
|
|
380
383
|
//#endregion
|
|
381
384
|
//#region src/components/features/event-calendar/event-calendar-legend.tsx
|
|
382
|
-
function
|
|
385
|
+
function le({ categories: e, visibleCategories: t, onToggleCategory: n, enableFiltering: r = !1 }) {
|
|
383
386
|
let s = !t || t.length === 0, c = (e) => !r || s || t?.includes(e), l = (e) => {
|
|
384
387
|
r && n && n(e);
|
|
385
388
|
};
|
|
@@ -388,7 +391,7 @@ function se({ categories: e, visibleCategories: t, onToggleCategory: n, enableFi
|
|
|
388
391
|
"aria-label": r ? "Filter event categories" : void 0,
|
|
389
392
|
className: i("event-calendar-legend--component", "flex flex-wrap items-center gap-space-sm py-space-xs"),
|
|
390
393
|
children: e.map((e) => {
|
|
391
|
-
let t = c(e.id), n =
|
|
394
|
+
let t = c(e.id), n = ce(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: [
|
|
392
395
|
/* @__PURE__ */ T("span", {
|
|
393
396
|
className: i("inline-block size-2 rounded-radius", t ? n.swatch : "bg-muted-foreground/40"),
|
|
394
397
|
"aria-hidden": "true"
|
|
@@ -421,10 +424,10 @@ function se({ categories: e, visibleCategories: t, onToggleCategory: n, enableFi
|
|
|
421
424
|
})
|
|
422
425
|
});
|
|
423
426
|
}
|
|
424
|
-
|
|
427
|
+
le.displayName = "EventCalendarLegend";
|
|
425
428
|
//#endregion
|
|
426
429
|
//#region src/components/features/event-calendar/use-event-calendar.tsx
|
|
427
|
-
function
|
|
430
|
+
function ue({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ new Date(), viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
|
|
428
431
|
let [l, u] = C(r), [d, f] = C(a), p = n ?? l, m = i ?? d, h = x((e) => {
|
|
429
432
|
n === void 0 && u(e), o?.(e);
|
|
430
433
|
}, [n, o]), g = x((e) => {
|
|
@@ -439,7 +442,7 @@ function ce({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ ne
|
|
|
439
442
|
h(/* @__PURE__ */ new Date());
|
|
440
443
|
}, [h]),
|
|
441
444
|
goToNextPeriod: x(() => {
|
|
442
|
-
let e = m === "
|
|
445
|
+
let e = m === "week" ? A(p, 1) : k(p, 1);
|
|
443
446
|
h(e);
|
|
444
447
|
}, [
|
|
445
448
|
h,
|
|
@@ -447,7 +450,7 @@ function ce({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ ne
|
|
|
447
450
|
m
|
|
448
451
|
]),
|
|
449
452
|
goToPreviousPeriod: x(() => {
|
|
450
|
-
let e = m === "
|
|
453
|
+
let e = m === "week" ? re(p, 1) : V(p, 1);
|
|
451
454
|
h(e);
|
|
452
455
|
}, [
|
|
453
456
|
h,
|
|
@@ -478,20 +481,20 @@ function ce({ events: e, locale: t, date: n, defaultDate: r = /* @__PURE__ */ ne
|
|
|
478
481
|
}
|
|
479
482
|
//#endregion
|
|
480
483
|
//#region src/components/features/event-calendar/event-calendar.tsx
|
|
481
|
-
function
|
|
484
|
+
function de(e, t) {
|
|
482
485
|
if (!e) return !1;
|
|
483
486
|
if (Array.isArray(e)) return e.some((e) => e.toDateString() === t.toDateString());
|
|
484
487
|
if (typeof e == "function") return e(t);
|
|
485
488
|
let n = e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1, r = e.predicate?.(t) ?? !1;
|
|
486
489
|
return n || r;
|
|
487
490
|
}
|
|
488
|
-
function
|
|
489
|
-
let
|
|
490
|
-
let t =
|
|
491
|
-
D ? D(t) :
|
|
492
|
-
},
|
|
491
|
+
function fe({ 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: ne, renderDayCell: B }) {
|
|
492
|
+
let V = r(W, te), [re, H] = C([]), U = w ?? re, { weekStartsOn: G, locale: K } = n(), q = y ?? G ?? 1, J = b ?? K, ie = (e) => {
|
|
493
|
+
let t = U.includes(e) ? U.filter((t) => t !== e) : [...U, e];
|
|
494
|
+
D ? D(t) : H(t);
|
|
495
|
+
}, Y = ue({
|
|
493
496
|
events: e,
|
|
494
|
-
locale:
|
|
497
|
+
locale: J,
|
|
495
498
|
date: l,
|
|
496
499
|
defaultDate: d,
|
|
497
500
|
viewMode: a,
|
|
@@ -499,26 +502,23 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
499
502
|
onDateChange: f,
|
|
500
503
|
onViewModeChange: c,
|
|
501
504
|
dataOptions: {
|
|
502
|
-
weekStartsOn:
|
|
505
|
+
weekStartsOn: q,
|
|
503
506
|
showWeekends: v,
|
|
504
|
-
visibleCategories:
|
|
507
|
+
visibleCategories: U.length > 0 ? U : void 0
|
|
505
508
|
}
|
|
506
|
-
}),
|
|
507
|
-
|
|
508
|
-
|
|
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) => ({
|
|
509
|
+
}), X = S(() => Array.from({ length: 7 }, (e, t) => (q + t) % 7).filter((e) => v || e !== 0 && e !== 6), [q, v]), se = v ? "grid-cols-7" : "grid-cols-5", ce = (e) => {
|
|
510
|
+
de(R, e.date) || I && e.date < I || L && e.date > L || m?.(e.date, e.events);
|
|
511
|
+
}, Z = S(() => z ? Y.calendarDays.map((e) => ({
|
|
512
512
|
...e,
|
|
513
513
|
events: e.events.filter(z),
|
|
514
514
|
eventCount: e.events.filter(z).length,
|
|
515
515
|
hasMultipleEvents: e.events.filter(z).length > 1
|
|
516
|
-
})) :
|
|
516
|
+
})) : Y.calendarDays, [Y.calendarDays, z]), fe = Z.some((e) => e.events.length > 0);
|
|
517
517
|
function Q(e) {
|
|
518
|
-
return !!(
|
|
518
|
+
return !!(de(R, e) || I && e < I || L && e > L);
|
|
519
519
|
}
|
|
520
520
|
let $ = S(() => {
|
|
521
|
-
let e =
|
|
521
|
+
let e = Y.calendarDays;
|
|
522
522
|
if (e.length === 0) return {
|
|
523
523
|
prev: !1,
|
|
524
524
|
next: !1
|
|
@@ -529,7 +529,7 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
529
529
|
next: !!L && n >= L
|
|
530
530
|
};
|
|
531
531
|
}, [
|
|
532
|
-
|
|
532
|
+
Y.calendarDays,
|
|
533
533
|
I,
|
|
534
534
|
L
|
|
535
535
|
]);
|
|
@@ -538,23 +538,23 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
538
538
|
role: "status",
|
|
539
539
|
children: /* @__PURE__ */ T(o, {
|
|
540
540
|
type: "secondary",
|
|
541
|
-
children:
|
|
541
|
+
children: V.loading
|
|
542
542
|
})
|
|
543
543
|
});
|
|
544
|
-
let
|
|
544
|
+
let pe = a ? c : void 0, me = x ? ie : void 0;
|
|
545
545
|
return /* @__PURE__ */ E("div", {
|
|
546
546
|
className: i("event-calendar--component w-full space-y-space-xl", k),
|
|
547
547
|
children: [
|
|
548
|
-
!!_ && /* @__PURE__ */ T(
|
|
549
|
-
currentDate:
|
|
550
|
-
viewMode:
|
|
551
|
-
displayLabel:
|
|
552
|
-
onPrevious:
|
|
553
|
-
onNext:
|
|
554
|
-
onToday:
|
|
555
|
-
onViewModeChange:
|
|
556
|
-
onDateChange:
|
|
557
|
-
locale:
|
|
548
|
+
!!_ && /* @__PURE__ */ T(oe, {
|
|
549
|
+
currentDate: Y.currentDate,
|
|
550
|
+
viewMode: Y.viewMode,
|
|
551
|
+
displayLabel: Y.displayLabel,
|
|
552
|
+
onPrevious: Y.goToPreviousPeriod,
|
|
553
|
+
onNext: Y.goToNextPeriod,
|
|
554
|
+
onToday: Y.goToToday,
|
|
555
|
+
onViewModeChange: pe,
|
|
556
|
+
onDateChange: Y.setDate,
|
|
557
|
+
locale: J,
|
|
558
558
|
actions: j,
|
|
559
559
|
rangeMode: F,
|
|
560
560
|
minDate: I,
|
|
@@ -562,20 +562,20 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
562
562
|
prevDisabled: $.prev,
|
|
563
563
|
nextDisabled: $.next,
|
|
564
564
|
strings: {
|
|
565
|
-
today:
|
|
566
|
-
previous:
|
|
567
|
-
next:
|
|
568
|
-
viewMode:
|
|
569
|
-
monthYearPicker:
|
|
565
|
+
today: V.today,
|
|
566
|
+
previous: V.previous,
|
|
567
|
+
next: V.next,
|
|
568
|
+
viewMode: V.viewMode,
|
|
569
|
+
monthYearPicker: V.monthYearPicker
|
|
570
570
|
}
|
|
571
571
|
}),
|
|
572
|
-
!!g && t.length > 0 && /* @__PURE__ */ T(
|
|
572
|
+
!!g && t.length > 0 && /* @__PURE__ */ T(le, {
|
|
573
573
|
categories: t,
|
|
574
|
-
visibleCategories:
|
|
575
|
-
onToggleCategory:
|
|
574
|
+
visibleCategories: U,
|
|
575
|
+
onToggleCategory: me,
|
|
576
576
|
enableFiltering: x
|
|
577
577
|
}),
|
|
578
|
-
!
|
|
578
|
+
!fe && O ? /* @__PURE__ */ T("div", {
|
|
579
579
|
className: "flex items-center justify-center rounded-radius border border-dashed border-border p-surface",
|
|
580
580
|
children: /* @__PURE__ */ T(o, {
|
|
581
581
|
type: "secondary",
|
|
@@ -584,38 +584,42 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
584
584
|
}) : /* @__PURE__ */ E("div", {
|
|
585
585
|
className: "box-border bg-background text-foreground rounded-surface border border-border",
|
|
586
586
|
children: [/* @__PURE__ */ T("div", {
|
|
587
|
-
className: i("grid
|
|
588
|
-
children:
|
|
589
|
-
|
|
590
|
-
children: /* @__PURE__ */ T(
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
587
|
+
className: i("grid", se, 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: X.map((e, t) => {
|
|
589
|
+
let n = V.weekdaysShort[e];
|
|
590
|
+
return P ? /* @__PURE__ */ T("div", { children: P(n, t) }, n) : /* @__PURE__ */ T("div", {
|
|
591
|
+
className: i("text-center h-8 flex items-center justify-center", N),
|
|
592
|
+
children: /* @__PURE__ */ T(o, {
|
|
593
|
+
size: "xs",
|
|
594
|
+
weight: M === "accent" ? "medium" : "regular",
|
|
595
|
+
className: i(M === "default" && "text-muted-foreground", M === "tinted" && "text-muted-foreground", M === "bordered" && "text-foreground", M === "accent" && "text-primary-accent"),
|
|
596
|
+
children: n
|
|
597
|
+
})
|
|
598
|
+
}, n);
|
|
599
|
+
})
|
|
597
600
|
}), /* @__PURE__ */ T("div", {
|
|
598
|
-
className: "grid
|
|
599
|
-
children:
|
|
600
|
-
let n = Q(e.date), r = () => /* @__PURE__ */ T(
|
|
601
|
+
className: i("grid", se),
|
|
602
|
+
children: Z.map((e) => {
|
|
603
|
+
let n = Q(e.date), r = () => /* @__PURE__ */ T(ae, {
|
|
601
604
|
data: e,
|
|
602
605
|
categories: t,
|
|
603
606
|
maxEvents: h,
|
|
604
|
-
onClick: () =>
|
|
607
|
+
onClick: () => ce(e),
|
|
605
608
|
onEventClick: p ? (t) => {
|
|
606
609
|
Q(e.date) || p(t);
|
|
607
610
|
} : void 0,
|
|
608
611
|
compact: A,
|
|
609
612
|
strings: {
|
|
610
|
-
booking:
|
|
611
|
-
bookings:
|
|
613
|
+
booking: V.booking,
|
|
614
|
+
bookings: V.bookings
|
|
612
615
|
},
|
|
613
|
-
renderEvent:
|
|
616
|
+
renderEvent: ne
|
|
614
617
|
});
|
|
615
618
|
return /* @__PURE__ */ T("div", {
|
|
619
|
+
style: { gridColumnStart: X.indexOf(e.date.getDay()) + 1 },
|
|
616
620
|
className: i(n && "pointer-events-none opacity-50"),
|
|
617
621
|
"aria-disabled": n || void 0,
|
|
618
|
-
children:
|
|
622
|
+
children: B ? B(e, r) : r()
|
|
619
623
|
}, e.date.toISOString());
|
|
620
624
|
})
|
|
621
625
|
})]
|
|
@@ -623,7 +627,7 @@ function ue({ events: e, categories: t, viewMode: a, defaultViewMode: s, onViewM
|
|
|
623
627
|
]
|
|
624
628
|
});
|
|
625
629
|
}
|
|
626
|
-
|
|
630
|
+
fe.displayName = "EventCalendar";
|
|
627
631
|
//#endregion
|
|
628
632
|
//#region src/components/features/event-calendar/event-calendar-event-card.tsx
|
|
629
633
|
var Q = {
|
|
@@ -633,7 +637,7 @@ var Q = {
|
|
|
633
637
|
function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
634
638
|
let u = r(Q, a), f = !!n, g = () => {
|
|
635
639
|
n && n();
|
|
636
|
-
}, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x =
|
|
640
|
+
}, _ = e.metadata || {}, v = _.customer_name, y = _.guest_count, b = _.service_name, x = Z(t), S = [v, y !== void 0 && y > 0 ? `${y} ${y === 1 ? u.guest : u.guests}` : void 0].filter(Boolean).join(" · "), C = /* @__PURE__ */ E(l, {
|
|
637
641
|
gap: "lg",
|
|
638
642
|
children: [
|
|
639
643
|
/* @__PURE__ */ E("div", {
|
|
@@ -702,6 +706,6 @@ function $({ event: e, category: t, onClick: n, strings: a }) {
|
|
|
702
706
|
}
|
|
703
707
|
$.displayName = "EventCalendarEventCard";
|
|
704
708
|
//#endregion
|
|
705
|
-
export {
|
|
709
|
+
export { fe as EventCalendar, ae as EventCalendarDayCell, G as EventCalendarEventBadge, $ as EventCalendarEventCard, oe as EventCalendarHeader, le as EventCalendarLegend, H as calendarTokenDot, Q as defaultEventCalendarEventCardStrings, W as defaultEventCalendarStrings, ce as getCalendarColorClasses, Z as getCalendarDotClass, ie as getCategoryById, J as getEventsForDay, U as resolveCategoryColorToken, ue as useEventCalendar, q as useEventCalendarData };
|
|
706
710
|
|
|
707
711
|
//# sourceMappingURL=event-calendar.js.map
|