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,44 +1,44 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "./lib/strings.js";
|
|
3
|
-
import { t } from "./utils-
|
|
4
|
-
import { n } from "./buttons-
|
|
5
|
-
import { c as r, o as i } from "./typography-
|
|
6
|
-
import { t as a } from "./structure-
|
|
3
|
+
import { t } from "./utils-DhuoqFy4.js";
|
|
4
|
+
import { n } from "./buttons-DeW0bQeK.js";
|
|
5
|
+
import { c as r, o as i } from "./typography-C7-YMW1S.js";
|
|
6
|
+
import { t as a } from "./structure-DZJ2wbAU.js";
|
|
7
7
|
import { t as o } from "./tone-recipes-BPsRAvhu.js";
|
|
8
|
-
import "./surface-recipes-
|
|
9
|
-
import { i as s } from "./popover.recipes-
|
|
10
|
-
import { a as c, d as l, g as u, i as d, o as f, r as p, s as m, t as h } from "./dropdown-menu-
|
|
11
|
-
import { n as g } from "./action-menu-
|
|
8
|
+
import "./surface-recipes-C8mNycaY.js";
|
|
9
|
+
import { i as s } from "./popover.recipes-DJ0AkUan.js";
|
|
10
|
+
import { a as c, d as l, g as u, i as d, o as f, r as p, s as m, t as h } from "./dropdown-menu-C08iIugv.js";
|
|
11
|
+
import { n as g } from "./action-menu-C0gjzLyE.js";
|
|
12
12
|
import { t as _ } from "./initials-format-CDoQEOd_.js";
|
|
13
|
-
import { i as v, n as y, s as b } from "./avatar-
|
|
14
|
-
import { t as x } from "./separator-
|
|
15
|
-
import { c as S, o as C, t as w } from "./popover-
|
|
16
|
-
import { t as T } from "./breadcrumbs-
|
|
17
|
-
import {
|
|
18
|
-
import { f as
|
|
19
|
-
import { n as
|
|
20
|
-
import * as
|
|
21
|
-
import { forwardRef as
|
|
22
|
-
import { Fragment as
|
|
23
|
-
import { Bell as
|
|
13
|
+
import { i as v, n as y, s as b } from "./avatar-B9Jnp-T-.js";
|
|
14
|
+
import { t as x } from "./separator-DM6gs2vu.js";
|
|
15
|
+
import { c as S, o as C, t as w } from "./popover-k8TdUcAt.js";
|
|
16
|
+
import { t as T } from "./breadcrumbs-Bp9Ke7kd.js";
|
|
17
|
+
import { O as E, w as D } from "./sidebar-CmD6a-HK.js";
|
|
18
|
+
import { f as O, t as k } from "./hooks-BitHSh-Y.js";
|
|
19
|
+
import { n as A } from "./header.recipes-BigdJjw1.js";
|
|
20
|
+
import * as j from "react";
|
|
21
|
+
import { forwardRef as M, useEffect as N, useState as P } from "react";
|
|
22
|
+
import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
|
|
23
|
+
import { Bell as R, ChevronsUpDown as z, LogOut as B, Search as V, Settings as H, User as U } from "lucide-react";
|
|
24
24
|
//#region src/components/layout/header/partials/header-breadcrumbs.tsx
|
|
25
|
-
function
|
|
26
|
-
let s =
|
|
25
|
+
function W({ breadcrumbs: e = [], homeBreadcrumb: n = null, showSidebarTrigger: r = !0, triggerSlot: i, renderLink: a, className: o }) {
|
|
26
|
+
let s = O({ renderLink: a }), c = E(), l = j.useMemo(() => {
|
|
27
27
|
let t = [];
|
|
28
28
|
return n && t.push(n), t.push(...e), t;
|
|
29
|
-
}, [n, e]),
|
|
30
|
-
return /* @__PURE__ */
|
|
29
|
+
}, [n, e]), u = l.length > 0, d = i ?? (c && /* @__PURE__ */ I(D, {})), f = r && d != null && typeof d != "boolean";
|
|
30
|
+
return /* @__PURE__ */ L("div", {
|
|
31
31
|
className: t("relative flex min-h-action min-w-0 items-center gap-space-lg", o),
|
|
32
|
-
children: [
|
|
32
|
+
children: [f && /* @__PURE__ */ I("div", {
|
|
33
33
|
className: "relative flex min-h-action shrink-0 items-center justify-center",
|
|
34
|
-
children:
|
|
35
|
-
}), !!
|
|
34
|
+
children: d
|
|
35
|
+
}), !!u && /* @__PURE__ */ L(F, { children: [f && /* @__PURE__ */ I(x, {
|
|
36
36
|
orientation: "vertical",
|
|
37
37
|
className: "h-icon shrink-0 data-[orientation=vertical]:self-center"
|
|
38
|
-
}), /* @__PURE__ */
|
|
38
|
+
}), /* @__PURE__ */ I("div", {
|
|
39
39
|
className: "flex min-w-0 flex-1 items-center overflow-hidden",
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
breadcrumbs:
|
|
40
|
+
children: /* @__PURE__ */ I(T, {
|
|
41
|
+
breadcrumbs: l,
|
|
42
42
|
size: "sm",
|
|
43
43
|
renderLink: s,
|
|
44
44
|
className: t("min-w-0 overflow-hidden", "[&_[data-slot=breadcrumb-list]]:flex-nowrap [&_[data-slot=breadcrumb-list]]:overflow-hidden [&_[data-slot=breadcrumb-list]]:break-normal", "[&_[data-slot=breadcrumb-item]]:min-w-0", "[&_[data-slot=breadcrumb-item]:not(:last-child)]:max-w-max [&_[data-slot=breadcrumb-item]:not(:last-child)]:grow [&_[data-slot=breadcrumb-item]:not(:last-child)]:basis-0", "[&_[data-slot=breadcrumb-link]]:truncate [&_[data-slot=breadcrumb-page]]:truncate")
|
|
@@ -48,26 +48,26 @@ function U({ breadcrumbs: e = [], homeBreadcrumb: n = null, showSidebarTrigger:
|
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/components/layout/header/header.tsx
|
|
51
|
-
var
|
|
52
|
-
let g =
|
|
53
|
-
return /* @__PURE__ */
|
|
51
|
+
var G = M(function({ showBreadcrumbs: e = !0, breadcrumbs: n = [], homeBreadcrumb: r = null, showSidebarTrigger: i = !0, slots: o, renderLink: s, className: c, contentClassName: l, leftClassName: u, centerClassName: d, rightClassName: f, breadcrumbsClassName: p, ...m }, h) {
|
|
52
|
+
let g = O({ renderLink: s });
|
|
53
|
+
return /* @__PURE__ */ I("header", {
|
|
54
54
|
...m,
|
|
55
55
|
ref: h,
|
|
56
|
-
className: t("header--component @container/app-header box-border sticky top-0 z-40 flex min-w-0 min-h-shell-header items-center border-b border-border bg-background px-surface-lg py-space-sm transition-[width,height] ease-linear",
|
|
57
|
-
children: /* @__PURE__ */
|
|
56
|
+
className: t("header--component @container/app-header box-border sticky top-0 z-40 flex min-w-0 min-h-shell-header items-center border-b border-border bg-background px-surface-lg py-space-sm transition-[width,height] ease-linear", A, c),
|
|
57
|
+
children: /* @__PURE__ */ L(a, {
|
|
58
58
|
direction: "horizontal",
|
|
59
59
|
gap: "xl",
|
|
60
60
|
align: "center",
|
|
61
61
|
wrap: !0,
|
|
62
62
|
className: t("min-w-0 min-h-action flex-1", l),
|
|
63
63
|
children: [
|
|
64
|
-
!!o?.brand && /* @__PURE__ */
|
|
64
|
+
!!o?.brand && /* @__PURE__ */ I("div", {
|
|
65
65
|
className: "hidden min-w-0 shrink-0 items-center @2xl/app-header:flex",
|
|
66
66
|
children: o.brand
|
|
67
67
|
}),
|
|
68
|
-
!!e && /* @__PURE__ */
|
|
68
|
+
!!e && /* @__PURE__ */ I("div", {
|
|
69
69
|
className: "min-w-0 flex-1 basis-32",
|
|
70
|
-
children: o?.breadcrumbs ?? /* @__PURE__ */
|
|
70
|
+
children: o?.breadcrumbs ?? /* @__PURE__ */ I(W, {
|
|
71
71
|
breadcrumbs: n,
|
|
72
72
|
homeBreadcrumb: r,
|
|
73
73
|
showSidebarTrigger: i,
|
|
@@ -75,15 +75,15 @@ var W = j(function({ showBreadcrumbs: e = !0, breadcrumbs: n = [], homeBreadcrum
|
|
|
75
75
|
className: p
|
|
76
76
|
})
|
|
77
77
|
}),
|
|
78
|
-
!!o?.left && /* @__PURE__ */
|
|
78
|
+
!!o?.left && /* @__PURE__ */ I("div", {
|
|
79
79
|
className: t("flex min-w-0 items-center", u),
|
|
80
80
|
children: o.left
|
|
81
81
|
}),
|
|
82
|
-
!!o?.center && /* @__PURE__ */
|
|
82
|
+
!!o?.center && /* @__PURE__ */ I("div", {
|
|
83
83
|
className: t("hidden min-w-0 flex-1 basis-64 items-center justify-center @3xl/app-header:flex [&>*]:min-w-0 [&>*]:max-w-full", d),
|
|
84
84
|
children: o.center
|
|
85
85
|
}),
|
|
86
|
-
!!o?.right && /* @__PURE__ */
|
|
86
|
+
!!o?.right && /* @__PURE__ */ I("div", {
|
|
87
87
|
className: t("ms-auto flex min-w-0 max-w-full flex-wrap items-center justify-end gap-space-md [&>*]:max-w-full", f),
|
|
88
88
|
children: o.right
|
|
89
89
|
})
|
|
@@ -91,47 +91,47 @@ var W = j(function({ showBreadcrumbs: e = !0, breadcrumbs: n = [], homeBreadcrum
|
|
|
91
91
|
})
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
|
-
|
|
94
|
+
G.displayName = "Header";
|
|
95
95
|
//#endregion
|
|
96
96
|
//#region src/components/layout/header/header.types.ts
|
|
97
|
-
var
|
|
97
|
+
var K = {
|
|
98
98
|
triggerLabel: "Notifications",
|
|
99
99
|
heading: "Notifications",
|
|
100
100
|
markAllRead: "Mark all as read",
|
|
101
101
|
empty: "No new notifications",
|
|
102
102
|
viewAll: "View all notifications"
|
|
103
|
-
},
|
|
103
|
+
}, q = {
|
|
104
104
|
placeholder: "Search...",
|
|
105
105
|
shortcutMac: "⌘K",
|
|
106
106
|
shortcutPc: "Ctrl+K"
|
|
107
|
-
},
|
|
107
|
+
}, J = {
|
|
108
108
|
profile: "Profile",
|
|
109
109
|
settings: "Settings",
|
|
110
110
|
logout: "Log out"
|
|
111
111
|
};
|
|
112
112
|
//#endregion
|
|
113
113
|
//#region src/components/layout/header/partials/header-search.tsx
|
|
114
|
-
function
|
|
114
|
+
function Y() {
|
|
115
115
|
if (typeof navigator > "u") return !1;
|
|
116
116
|
let e = navigator.userAgentData;
|
|
117
117
|
return e?.platform ? e.platform === "macOS" : /Mac|iPhone|iPad/.test(navigator.platform);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let d = e(
|
|
121
|
-
|
|
122
|
-
a === void 0 && p(
|
|
119
|
+
function X({ onOpen: i, shortcutModifier: a, enableShortcut: o = !0, strings: s, className: c, iconClassName: l, shortcutSlot: u }) {
|
|
120
|
+
let d = e(q, s), [f, p] = P(!1);
|
|
121
|
+
N(() => {
|
|
122
|
+
a === void 0 && p(Y());
|
|
123
123
|
}, [a]);
|
|
124
124
|
let m = (a ?? (f ? "meta" : "control")) === "meta";
|
|
125
|
-
|
|
125
|
+
k({
|
|
126
126
|
key: "k",
|
|
127
127
|
enabled: o,
|
|
128
128
|
onTrigger: i
|
|
129
129
|
});
|
|
130
|
-
let h = m ? d.shortcutMac : d.shortcutPc, g = u ?? /* @__PURE__ */
|
|
131
|
-
className: t("header-search--shortcut", "pointer-events-none inline-flex h-5 w-fit min-w-5 shrink-0 select-none items-center justify-center gap-space-2xs rounded-radius-xs bg-muted px-space-xs font-sans text-xs font-medium leading-none text-muted-foreground", "hidden lg:inline-flex"),
|
|
130
|
+
let h = m ? d.shortcutMac : d.shortcutPc, g = u ?? /* @__PURE__ */ I("kbd", {
|
|
131
|
+
className: t("header-search--shortcut", "box-border pointer-events-none inline-flex h-5 w-fit min-w-5 shrink-0 select-none items-center justify-center gap-space-2xs rounded-radius-xs bg-muted px-space-xs font-sans text-xs font-medium leading-none text-muted-foreground", "hidden lg:inline-flex"),
|
|
132
132
|
children: m ? d.shortcutMac : d.shortcutPc
|
|
133
133
|
});
|
|
134
|
-
return /* @__PURE__ */
|
|
134
|
+
return /* @__PURE__ */ L(n, {
|
|
135
135
|
"data-component": "header-search",
|
|
136
136
|
"data-slot": "header-search-trigger",
|
|
137
137
|
type: "button",
|
|
@@ -143,12 +143,12 @@ function Y({ onOpen: i, shortcutModifier: a, enableShortcut: o = !0, strings: s,
|
|
|
143
143
|
className: t("header-search--component header-search--trigger h-action w-full min-w-0 justify-start gap-space-md rounded-radius px-control-sm text-foreground shadow-none transition-[background-color,border-color,color,box-shadow]", c),
|
|
144
144
|
title: h,
|
|
145
145
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ I(V, {
|
|
147
147
|
"data-slot": "header-search-icon",
|
|
148
148
|
className: t("header-search--icon size-icon shrink-0 text-muted-foreground", l),
|
|
149
149
|
"aria-hidden": "true"
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ I(r, {
|
|
152
152
|
tag: "span",
|
|
153
153
|
size: "inherit",
|
|
154
154
|
type: "secondary",
|
|
@@ -162,8 +162,8 @@ function Y({ onOpen: i, shortcutModifier: a, enableShortcut: o = !0, strings: s,
|
|
|
162
162
|
}
|
|
163
163
|
//#endregion
|
|
164
164
|
//#region src/components/layout/header/partials/header-global-search-trigger.tsx
|
|
165
|
-
function
|
|
166
|
-
return /* @__PURE__ */
|
|
165
|
+
function Z({ onOpen: e, onOpenChange: t, ...n }) {
|
|
166
|
+
return /* @__PURE__ */ I(X, {
|
|
167
167
|
...n,
|
|
168
168
|
onOpen: () => {
|
|
169
169
|
e?.(), t?.(!0);
|
|
@@ -172,7 +172,7 @@ function X({ onOpen: e, onOpenChange: t, ...n }) {
|
|
|
172
172
|
}
|
|
173
173
|
//#endregion
|
|
174
174
|
//#region src/components/layout/header/partials/header-tool-button.tsx
|
|
175
|
-
var
|
|
175
|
+
var Q = j.forwardRef(({ label: e, icon: i, active: a = !1, disabled: o = !1, badge: s, onClick: c, className: l, iconClassName: u }, d) => /* @__PURE__ */ L(n, {
|
|
176
176
|
ref: d,
|
|
177
177
|
"data-component": "header-tool-button",
|
|
178
178
|
"data-slot": "header-tool-button",
|
|
@@ -188,12 +188,12 @@ var Z = A.forwardRef(({ label: e, icon: i, active: a = !1, disabled: o = !1, bad
|
|
|
188
188
|
onClick: c,
|
|
189
189
|
className: t("header-tool-button--component header-tool-button--trigger relative rounded-radius text-foreground transition-[background-color,color,box-shadow] hover:bg-accent hover:text-accent-foreground", a && "bg-accent text-accent-foreground", l),
|
|
190
190
|
children: [
|
|
191
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ I(i, {
|
|
192
192
|
"data-slot": "header-tool-icon",
|
|
193
193
|
className: t("header-tool-button--icon size-icon", u),
|
|
194
194
|
"aria-hidden": "true"
|
|
195
195
|
}),
|
|
196
|
-
!!s && /* @__PURE__ */
|
|
196
|
+
!!s && /* @__PURE__ */ I(r, {
|
|
197
197
|
tag: "span",
|
|
198
198
|
size: "xs",
|
|
199
199
|
weight: "medium",
|
|
@@ -202,7 +202,7 @@ var Z = A.forwardRef(({ label: e, icon: i, active: a = !1, disabled: o = !1, bad
|
|
|
202
202
|
className: t("header-tool-button--badge", "pointer-events-none absolute -end-1 -top-1 flex h-4.5 min-w-4.5 items-center justify-center rounded-full bg-foreground px-space-xs text-background tabular-nums"),
|
|
203
203
|
children: s
|
|
204
204
|
}),
|
|
205
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ I(r, {
|
|
206
206
|
tag: "span",
|
|
207
207
|
size: "inherit",
|
|
208
208
|
className: "sr-only",
|
|
@@ -210,17 +210,17 @@ var Z = A.forwardRef(({ label: e, icon: i, active: a = !1, disabled: o = !1, bad
|
|
|
210
210
|
})
|
|
211
211
|
]
|
|
212
212
|
}));
|
|
213
|
-
|
|
213
|
+
Q.displayName = "HeaderToolButton";
|
|
214
214
|
//#endregion
|
|
215
215
|
//#region src/components/layout/header/partials/header-tool-popover.tsx
|
|
216
|
-
function
|
|
217
|
-
return /* @__PURE__ */
|
|
216
|
+
function $({ label: e, icon: n, open: r, defaultOpen: i, onOpenChange: a, active: o, disabled: c, badge: l, align: u = "end", side: d = "bottom", sideOffset: f = 8, className: p, triggerClassName: m, contentClassName: h, children: g }) {
|
|
217
|
+
return /* @__PURE__ */ L(C, {
|
|
218
218
|
open: r,
|
|
219
219
|
defaultOpen: i,
|
|
220
220
|
onOpenChange: a,
|
|
221
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ I(S, {
|
|
222
222
|
asChild: !0,
|
|
223
|
-
children: /* @__PURE__ */
|
|
223
|
+
children: /* @__PURE__ */ I(Q, {
|
|
224
224
|
label: e,
|
|
225
225
|
icon: n,
|
|
226
226
|
active: o ?? r,
|
|
@@ -228,7 +228,7 @@ function Q({ label: e, icon: n, open: r, defaultOpen: i, onOpenChange: a, active
|
|
|
228
228
|
badge: l,
|
|
229
229
|
className: m
|
|
230
230
|
})
|
|
231
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ I(w, {
|
|
232
232
|
"data-component": "header-tool-popover",
|
|
233
233
|
"data-slot": "header-tool-popover-content",
|
|
234
234
|
align: u,
|
|
@@ -241,28 +241,28 @@ function Q({ label: e, icon: n, open: r, defaultOpen: i, onOpenChange: a, active
|
|
|
241
241
|
}
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/components/layout/header/partials/header-user-menu.tsx
|
|
244
|
-
function
|
|
245
|
-
let w = e(
|
|
244
|
+
function ee({ user: i, showEmail: a = !0, customContent: o, onProfile: s, onSettings: c, onLogout: l, align: d = "end", side: f = "bottom", strings: m, triggerClassName: x, contentClassName: S, renderTrigger: C }) {
|
|
245
|
+
let w = e(J, m), T = _(i.name, { strategy: "first-words" }), E = a && !!i.email, D = [
|
|
246
246
|
...s ? [{
|
|
247
247
|
id: "profile",
|
|
248
248
|
label: w.profile,
|
|
249
|
-
icon:
|
|
249
|
+
icon: U,
|
|
250
250
|
onClick: s
|
|
251
251
|
}] : [],
|
|
252
252
|
...c ? [{
|
|
253
253
|
id: "settings",
|
|
254
254
|
label: w.settings,
|
|
255
|
-
icon:
|
|
255
|
+
icon: H,
|
|
256
256
|
onClick: c
|
|
257
257
|
}] : [],
|
|
258
258
|
...l ? [{
|
|
259
259
|
id: "logout",
|
|
260
260
|
label: w.logout,
|
|
261
|
-
icon:
|
|
261
|
+
icon: B,
|
|
262
262
|
onClick: l,
|
|
263
263
|
...s || c ? { group: !0 } : null
|
|
264
264
|
}] : []
|
|
265
|
-
], O = C?.(i) ?? /* @__PURE__ */
|
|
265
|
+
], O = C?.(i) ?? /* @__PURE__ */ L(n, {
|
|
266
266
|
"data-component": "header-user-menu",
|
|
267
267
|
"data-slot": "header-user-menu-trigger",
|
|
268
268
|
type: "button",
|
|
@@ -272,27 +272,27 @@ function $({ user: i, showEmail: a = !0, customContent: o, onProfile: s, onSetti
|
|
|
272
272
|
size: E ? "lg" : "md",
|
|
273
273
|
className: t("header-user-menu--component header-user-menu--trigger group min-w-0 max-w-56 justify-start gap-space-md text-foreground shadow-none hover:bg-accent hover:text-accent-foreground data-[state=open]:bg-accent", !E && "h-action", "max-sm:size-action max-sm:justify-center max-sm:p-0 max-sm:[&_.header-user-menu--identity]:hidden max-sm:[&_.header-user-menu--chevron]:hidden", "@max-md:size-action @max-md:justify-center @max-md:p-0 @max-md:[&_.header-user-menu--identity]:hidden @max-md:[&_.header-user-menu--chevron]:hidden", x),
|
|
274
274
|
children: [
|
|
275
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ L(y, {
|
|
276
276
|
"data-slot": "header-user-avatar",
|
|
277
277
|
className: "header-user-menu--avatar size-avatar-sm overflow-hidden rounded-full ring-1 ring-border",
|
|
278
|
-
children: [!!i.avatar && /* @__PURE__ */
|
|
278
|
+
children: [!!i.avatar && /* @__PURE__ */ I(b, {
|
|
279
279
|
src: i.avatar,
|
|
280
280
|
alt: i.name
|
|
281
|
-
}), /* @__PURE__ */
|
|
281
|
+
}), /* @__PURE__ */ I(v, {
|
|
282
282
|
className: "rounded-full bg-muted text-xs font-semibold text-muted-foreground",
|
|
283
283
|
children: T
|
|
284
284
|
})]
|
|
285
285
|
}),
|
|
286
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ L("div", {
|
|
287
287
|
"data-slot": "header-user-identity",
|
|
288
288
|
className: "header-user-menu--identity grid min-w-0 flex-1 gap-dense text-start leading-none",
|
|
289
|
-
children: [/* @__PURE__ */
|
|
289
|
+
children: [/* @__PURE__ */ I(r, {
|
|
290
290
|
type: "inherit",
|
|
291
291
|
weight: "medium",
|
|
292
292
|
lineHeight: "tight",
|
|
293
293
|
className: "truncate",
|
|
294
294
|
children: i.name
|
|
295
|
-
}), E && /* @__PURE__ */
|
|
295
|
+
}), E && /* @__PURE__ */ I(r, {
|
|
296
296
|
size: "xs",
|
|
297
297
|
type: "secondary",
|
|
298
298
|
lineHeight: "tight",
|
|
@@ -300,20 +300,20 @@ function $({ user: i, showEmail: a = !0, customContent: o, onProfile: s, onSetti
|
|
|
300
300
|
children: i.email
|
|
301
301
|
})]
|
|
302
302
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ I(z, {
|
|
304
304
|
className: "header-user-menu--chevron size-icon-sm shrink-0 text-muted-foreground",
|
|
305
305
|
"aria-hidden": "true"
|
|
306
306
|
})
|
|
307
307
|
]
|
|
308
308
|
}), k = t("header-user-menu--content w-(--anchor-width) min-w-56 rounded-surface", S);
|
|
309
|
-
return o ? /* @__PURE__ */
|
|
309
|
+
return o ? /* @__PURE__ */ L(h, { children: [/* @__PURE__ */ I(u, { render: O }), /* @__PURE__ */ I(p, {
|
|
310
310
|
"data-component": "header-user-menu-content",
|
|
311
311
|
"data-slot": "header-user-menu-content",
|
|
312
312
|
className: k,
|
|
313
313
|
align: d,
|
|
314
314
|
side: f,
|
|
315
315
|
children: o
|
|
316
|
-
})] }) : /* @__PURE__ */
|
|
316
|
+
})] }) : /* @__PURE__ */ I(g, {
|
|
317
317
|
actions: D,
|
|
318
318
|
align: d,
|
|
319
319
|
side: f,
|
|
@@ -325,15 +325,15 @@ function $({ user: i, showEmail: a = !0, customContent: o, onProfile: s, onSetti
|
|
|
325
325
|
}
|
|
326
326
|
//#endregion
|
|
327
327
|
//#region src/components/layout/header/partials/header-notifications.tsx
|
|
328
|
-
var
|
|
328
|
+
var te = {
|
|
329
329
|
info: "bg-info",
|
|
330
330
|
success: "bg-success",
|
|
331
331
|
warning: "bg-warning",
|
|
332
332
|
destructive: "bg-destructive"
|
|
333
333
|
};
|
|
334
|
-
function
|
|
335
|
-
let k = e(
|
|
336
|
-
return /* @__PURE__ */
|
|
334
|
+
function ne({ notifications: o = [], unreadCount: g = 0, onNotificationClick: _, onMarkAllRead: v, onViewAll: y, viewAllHref: b, renderLink: x, align: S = "end", side: C = "bottom", strings: w, className: T, contentClassName: E, renderNotification: D }) {
|
|
335
|
+
let k = e(K, w), A = O({ renderLink: x }), j = g > 99 ? "99+" : String(g);
|
|
336
|
+
return /* @__PURE__ */ L(h, { children: [/* @__PURE__ */ I(u, { render: /* @__PURE__ */ L(n, {
|
|
337
337
|
"data-component": "header-notifications",
|
|
338
338
|
"data-slot": "header-notifications-trigger",
|
|
339
339
|
tone: "secondary",
|
|
@@ -342,10 +342,10 @@ function te({ notifications: o = [], unreadCount: g = 0, onNotificationClick: _,
|
|
|
342
342
|
iconOnly: !0,
|
|
343
343
|
"aria-label": k.triggerLabel,
|
|
344
344
|
className: t("header-notifications--component header-notifications--trigger relative", T),
|
|
345
|
-
children: [/* @__PURE__ */
|
|
345
|
+
children: [/* @__PURE__ */ I(R, {
|
|
346
346
|
className: "size-icon",
|
|
347
347
|
"aria-hidden": "true"
|
|
348
|
-
}), g > 0 && /* @__PURE__ */
|
|
348
|
+
}), g > 0 && /* @__PURE__ */ I(r, {
|
|
349
349
|
tag: "span",
|
|
350
350
|
size: "xs",
|
|
351
351
|
weight: "medium",
|
|
@@ -354,20 +354,20 @@ function te({ notifications: o = [], unreadCount: g = 0, onNotificationClick: _,
|
|
|
354
354
|
className: t("header-notifications--badge", "pointer-events-none absolute -end-1 -top-1 flex h-4.5 min-w-4.5 items-center justify-center rounded-full bg-foreground px-space-xs text-background tabular-nums"),
|
|
355
355
|
children: j
|
|
356
356
|
})]
|
|
357
|
-
}) }), /* @__PURE__ */
|
|
357
|
+
}) }), /* @__PURE__ */ L(p, {
|
|
358
358
|
"data-component": "header-notifications-content",
|
|
359
359
|
"data-slot": "header-notifications-content",
|
|
360
360
|
className: t("header-notifications--content", s.lg, E),
|
|
361
361
|
align: S,
|
|
362
362
|
side: C,
|
|
363
|
-
children: [/* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
363
|
+
children: [/* @__PURE__ */ L(d, { children: [
|
|
364
|
+
/* @__PURE__ */ L(f, {
|
|
365
365
|
"aria-hidden": !1,
|
|
366
366
|
className: "header-notifications--label flex items-center justify-between gap-space-lg text-inherit",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
367
|
+
children: [/* @__PURE__ */ I(i, {
|
|
368
368
|
className: "text-inherit",
|
|
369
369
|
children: k.heading
|
|
370
|
-
}), g > 0 && !!v && /* @__PURE__ */
|
|
370
|
+
}), g > 0 && !!v && /* @__PURE__ */ I(n, {
|
|
371
371
|
type: "button",
|
|
372
372
|
tone: "secondary",
|
|
373
373
|
buttonStyle: "ghost",
|
|
@@ -377,24 +377,24 @@ function te({ notifications: o = [], unreadCount: g = 0, onNotificationClick: _,
|
|
|
377
377
|
children: k.markAllRead
|
|
378
378
|
})]
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
o.length === 0 ? /* @__PURE__ */
|
|
380
|
+
/* @__PURE__ */ I(l, {}),
|
|
381
|
+
o.length === 0 ? /* @__PURE__ */ I("div", {
|
|
382
382
|
className: "header-notifications--empty p-surface text-center",
|
|
383
|
-
children: /* @__PURE__ */
|
|
383
|
+
children: /* @__PURE__ */ I(r, {
|
|
384
384
|
type: "secondary",
|
|
385
385
|
children: k.empty
|
|
386
386
|
})
|
|
387
|
-
}) : /* @__PURE__ */
|
|
387
|
+
}) : /* @__PURE__ */ I(a, {
|
|
388
388
|
gap: "xs",
|
|
389
389
|
className: "header-notifications--list",
|
|
390
|
-
children: o.map((e) => /* @__PURE__ */
|
|
390
|
+
children: o.map((e) => /* @__PURE__ */ I(re, {
|
|
391
391
|
notification: e,
|
|
392
392
|
onClick: _,
|
|
393
393
|
renderLink: A,
|
|
394
|
-
renderNotification:
|
|
394
|
+
renderNotification: D
|
|
395
395
|
}, e.id))
|
|
396
396
|
})
|
|
397
|
-
] }), !!(y || b) && /* @__PURE__ */
|
|
397
|
+
] }), !!(y || b) && /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(l, {}), b ? /* @__PURE__ */ I(m, {
|
|
398
398
|
href: b,
|
|
399
399
|
render: (e) => A({
|
|
400
400
|
...e,
|
|
@@ -402,39 +402,39 @@ function te({ notifications: o = [], unreadCount: g = 0, onNotificationClick: _,
|
|
|
402
402
|
children: e.children
|
|
403
403
|
}),
|
|
404
404
|
children: k.viewAll
|
|
405
|
-
}) : /* @__PURE__ */
|
|
405
|
+
}) : /* @__PURE__ */ I(c, {
|
|
406
406
|
onClick: y,
|
|
407
407
|
children: k.viewAll
|
|
408
408
|
})] })]
|
|
409
409
|
})] });
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function re({ notification: e, onClick: n, renderLink: i, renderNotification: s }) {
|
|
412
412
|
if (s) return s(e);
|
|
413
|
-
let l = /* @__PURE__ */
|
|
413
|
+
let l = /* @__PURE__ */ L(a, {
|
|
414
414
|
direction: "horizontal",
|
|
415
415
|
align: "start",
|
|
416
416
|
wrap: !1,
|
|
417
417
|
gap: "sm",
|
|
418
418
|
className: "header-notifications--item-content",
|
|
419
|
-
children: [!!e.tone && /* @__PURE__ */
|
|
419
|
+
children: [!!e.tone && /* @__PURE__ */ I("span", {
|
|
420
420
|
"aria-hidden": "true",
|
|
421
421
|
"data-tone": e.tone,
|
|
422
|
-
className: t("header-notifications--tone mt-space-sm", o.marker,
|
|
423
|
-
}), /* @__PURE__ */
|
|
422
|
+
className: t("header-notifications--tone mt-space-sm", o.marker, te[e.tone])
|
|
423
|
+
}), /* @__PURE__ */ L(a, {
|
|
424
424
|
gap: "dense",
|
|
425
425
|
className: "min-w-0",
|
|
426
426
|
children: [
|
|
427
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ I(r, {
|
|
428
428
|
type: "inherit",
|
|
429
429
|
weight: "medium",
|
|
430
430
|
children: e.title
|
|
431
431
|
}),
|
|
432
|
-
!!e.description && /* @__PURE__ */
|
|
432
|
+
!!e.description && /* @__PURE__ */ I(r, {
|
|
433
433
|
size: "xs",
|
|
434
434
|
type: "secondary",
|
|
435
435
|
children: e.description
|
|
436
436
|
}),
|
|
437
|
-
!!e.time && /* @__PURE__ */
|
|
437
|
+
!!e.time && /* @__PURE__ */ I(r, {
|
|
438
438
|
size: "xs",
|
|
439
439
|
type: "secondary",
|
|
440
440
|
children: e.time
|
|
@@ -442,7 +442,7 @@ function ne({ notification: e, onClick: n, renderLink: i, renderNotification: s
|
|
|
442
442
|
]
|
|
443
443
|
})]
|
|
444
444
|
}), u = t("header-notifications--item items-start", !e.read && "bg-muted text-muted-foreground");
|
|
445
|
-
return e.href ? /* @__PURE__ */
|
|
445
|
+
return e.href ? /* @__PURE__ */ I(m, {
|
|
446
446
|
href: e.href,
|
|
447
447
|
className: u,
|
|
448
448
|
onClick: () => n?.(e),
|
|
@@ -452,13 +452,13 @@ function ne({ notification: e, onClick: n, renderLink: i, renderNotification: s
|
|
|
452
452
|
children: t.children
|
|
453
453
|
}),
|
|
454
454
|
children: l
|
|
455
|
-
}) : /* @__PURE__ */
|
|
455
|
+
}) : /* @__PURE__ */ I(c, {
|
|
456
456
|
onClick: () => n?.(e),
|
|
457
457
|
className: u,
|
|
458
458
|
children: l
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
//#endregion
|
|
462
|
-
export {
|
|
462
|
+
export { Z as a, q as c, W as d, Q as i, J as l, ee as n, X as o, $ as r, K as s, ne as t, G as u };
|
|
463
463
|
|
|
464
|
-
//# sourceMappingURL=header-
|
|
464
|
+
//# sourceMappingURL=header-ZIIsRKxP.js.map
|