themelia-react-ui 2.0.3 → 2.0.4
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 +50 -0
- package/README.md +65 -28
- package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
- package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
- package/dist/action-menu-CHgs8vmj.js +281 -0
- package/dist/action-menu-CHgs8vmj.js.map +1 -0
- package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
- package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
- package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
- package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
- package/dist/app-shell-D63ATkIK.js.map +1 -0
- package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
- package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
- package/dist/{auth-BGua8ouh.js → auth-D2FVZ1MH.js} +10 -10
- package/dist/{auth-BGua8ouh.js.map → auth-D2FVZ1MH.js.map} +1 -1
- package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
- package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
- package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
- package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.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 +13 -13
- 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 +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +3 -3
- package/dist/base/inline-edit.js +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +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 +9 -9
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +6 -6
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +4 -4
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +3 -3
- 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-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
- package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
- package/dist/blocks/admin.js +20 -20
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +15 -15
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +17 -17
- 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 +570 -567
- 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-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
- package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
- package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
- package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
- package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
- package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
- package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
- package/dist/cards-4JTWqvVe.js.map +1 -0
- package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
- package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
- package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
- package/dist/checkbox-CzYUTPeJ.js.map +1 -0
- package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
- package/dist/choice-inputs-JLtij2y4.js.map +1 -0
- package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
- package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
- package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
- package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
- package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
- package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
- package/dist/{combobox-Dxo2fAYQ.js → combobox-CBJDs6w_.js} +12 -12
- package/dist/{combobox-Dxo2fAYQ.js.map → combobox-CBJDs6w_.js.map} +1 -1
- package/dist/{combobox-DaHESuiL.js → combobox-hbhSS18O.js} +7 -7
- package/dist/{combobox-DaHESuiL.js.map → combobox-hbhSS18O.js.map} +1 -1
- package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
- package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
- package/dist/{comments-DD0DUPwJ.js → comments-Di4w0H_S.js} +383 -382
- package/dist/comments-Di4w0H_S.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +2 -0
- package/dist/components/base/cards/card.recipes.d.ts +12 -5
- package/dist/components/base/cards/smart-card.types.d.ts +12 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
- package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
- package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
- package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
- package/dist/components/base/forms/form-field.d.ts +5 -3
- package/dist/components/base/forms/index.d.ts +1 -0
- package/dist/components/base/forms/server-errors.d.ts +16 -0
- package/dist/components/base/forms/workflow.d.ts +5 -2
- package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
- package/dist/components/base/structure/composition.recipes.d.ts +17 -0
- package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
- package/dist/components/base/text-inputs/input.d.ts +4 -2
- package/dist/components/base/text-inputs/textarea.d.ts +4 -2
- package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
- package/dist/components/base/value-inputs/slider.d.ts +5 -1
- package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
- package/dist/components/typography/text.styles.d.ts +26 -1
- package/dist/composition.recipes-COdiFhxB.js +19 -0
- package/dist/composition.recipes-COdiFhxB.js.map +1 -0
- package/dist/containers-CRmHf7GP.js +104 -0
- package/dist/containers-CRmHf7GP.js.map +1 -0
- package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
- package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
- package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
- package/dist/data-display-D4oujtx0.js.map +1 -0
- package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
- package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
- package/dist/{date-picker-B2K3ucWn.js → date-picker-zOt1oNss.js} +102 -90
- package/dist/date-picker-zOt1oNss.js.map +1 -0
- package/dist/date-pickers-cj8IXbDC.js +179 -0
- package/dist/date-pickers-cj8IXbDC.js.map +1 -0
- package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
- package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
- package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
- package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
- package/dist/features/activities.js +11 -11
- package/dist/features/ai-chat.js +9 -9
- package/dist/features/appointment-calendar.js +222 -220
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- 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 +275 -274
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +199 -198
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +12 -12
- package/dist/features/kanban.js +4 -4
- package/dist/features/map.js +7 -7
- package/dist/features/media-library.js +623 -622
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +973 -969
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +12 -12
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +113 -112
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +254 -253
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +19 -19
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
- package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
- package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
- package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
- package/dist/{filters-DJVAveHA.js → filters-BcT-uoFy.js} +19 -19
- package/dist/{filters-DJVAveHA.js.map → filters-BcT-uoFy.js.map} +1 -1
- package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
- package/dist/form-field-CsgRmdit.js.map +1 -0
- package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
- package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
- package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
- package/dist/forms-BV5m5aQF.js.map +1 -0
- package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
- package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
- package/dist/{header-BSfIEWbI.js → header-BA697l4a.js} +14 -14
- package/dist/{header-BSfIEWbI.js.map → header-BA697l4a.js.map} +1 -1
- package/dist/hooks/useFormErrors.d.ts +1 -1
- package/dist/{hooks-ClH9thn4.js → hooks-BQ-L7Uu2.js} +2 -2
- package/dist/{hooks-ClH9thn4.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
- package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
- package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/input-Cdw4k0fb.js +289 -0
- package/dist/input-Cdw4k0fb.js.map +1 -0
- package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
- package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
- package/dist/item-BvZ2DR_x.js +277 -0
- package/dist/item-BvZ2DR_x.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +6 -0
- package/dist/lib/ui-provider/types.d.ts +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
- package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
- package/dist/{mentions-CGlEJ15c.js → mentions-RKOQaaIB.js} +8 -8
- package/dist/{mentions-CGlEJ15c.js.map → mentions-RKOQaaIB.js.map} +1 -1
- package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
- package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
- package/dist/metadata-list-qVV7AVxa.js +443 -0
- package/dist/metadata-list-qVV7AVxa.js.map +1 -0
- package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
- package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
- package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
- package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
- package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
- package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
- package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
- package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
- package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
- package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
- package/dist/{overlays-tMkF-VAN.js → overlays-BlKynmde.js} +228 -227
- package/dist/overlays-BlKynmde.js.map +1 -0
- package/dist/page-CIwNUtGr.js +227 -0
- package/dist/page-CIwNUtGr.js.map +1 -0
- package/dist/page-header-commands-DFMlNYzN.js +128 -0
- package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
- package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
- package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
- package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-BYaCdFhf.js} +6 -6
- package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
- package/dist/{popover-gnTOhbFM.js → popover-uwzX2vo7.js} +4 -4
- package/dist/{popover-gnTOhbFM.js.map → popover-uwzX2vo7.js.map} +1 -1
- package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
- package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
- package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
- package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
- package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
- package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
- package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
- package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
- package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
- package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
- package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
- package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
- package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
- package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
- package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
- package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
- package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-BA2iboic.js +174 -0
- package/dist/settings-BA2iboic.js.map +1 -0
- package/dist/{sheet-ijlsjq-n.js → sheet-DoAxTb2J.js} +7 -7
- package/dist/{sheet-ijlsjq-n.js.map → sheet-DoAxTb2J.js.map} +1 -1
- package/dist/{sidebar-DkTO4VTO.js → sidebar-ByqKR_W5.js} +13 -13
- package/dist/{sidebar-DkTO4VTO.js.map → sidebar-ByqKR_W5.js.map} +1 -1
- package/dist/{sidebar-Db6gkh3U.js → sidebar-D2iSnGJ7.js} +11 -11
- package/dist/{sidebar-Db6gkh3U.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
- package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
- package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
- package/dist/smart-card-CqkzQsK-.js +614 -0
- package/dist/smart-card-CqkzQsK-.js.map +1 -0
- package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
- package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
- package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
- package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
- package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
- package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
- package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
- package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
- package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
- package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
- package/dist/text-inputs-DXItiR0O.js.map +1 -0
- package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
- package/dist/text.styles-B64My8RZ.js.map +1 -0
- package/dist/theme.css +152 -112
- package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
- package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
- package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
- package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
- package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
- package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-CSyJrh28.js +117 -0
- package/dist/typography-CSyJrh28.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
- package/dist/ui-provider-CQCuCBcy.js.map +1 -0
- package/dist/ui-provider.js +1 -1
- package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
- package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
- package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
- package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
- package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
- package/dist/usage-card-DVTRDmGz.js.map +1 -0
- package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
- package/dist/utils-CF3c95Io.js.map +1 -0
- package/dist/value-inputs-C0o70p-U.js +980 -0
- package/dist/value-inputs-C0o70p-U.js.map +1 -0
- package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
- package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
- package/dist/workspace-9EFVXUyk.js +410 -0
- package/dist/workspace-9EFVXUyk.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +14 -129
- package/docs/consumer-skill/examples/app-layout.tsx +22 -12
- package/docs/consumer-skill/examples/authentication.tsx +77 -0
- package/docs/consumer-skill/examples/edit.tsx +30 -38
- package/docs/consumer-skill/examples/manifest.json +51 -1
- package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
- package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
- package/docs/consumer-skill/references/agents-md.md +17 -7
- package/docs/consumer-skill/references/authentication.md +42 -0
- package/docs/consumer-skill/references/component-contracts.json +319824 -0
- package/docs/consumer-skill/references/composition-mapping.md +92 -0
- package/docs/consumer-skill/references/composition.md +43 -19
- package/docs/consumer-skill/references/design-contract.md +32 -0
- package/docs/consumer-skill/references/discovery.md +84 -7
- package/docs/consumer-skill/references/installation.md +40 -36
- package/docs/consumer-skill/references/integration.md +6 -2
- package/docs/consumer-skill/references/public-api.json +1519 -65
- package/docs/consumer-skill/references/review.md +9 -4
- package/docs/consumer-skill/references/rhf-workflows.md +86 -0
- package/docs/consumer-skill/references/screen-archetypes.md +22 -0
- package/docs/consumer-skill/references/theming.md +8 -9
- package/docs/consumer-skill/references/tokens.json +12 -3
- package/docs/consumer-skill/references/workflows.md +2 -1
- package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
- package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
- package/docs/consumer-skill/scripts/composition.mjs +198 -0
- package/docs/consumer-skill/scripts/discovery.mjs +42 -10
- package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
- package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
- package/docs/consumer-skill/scripts/inspection.mjs +138 -0
- package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
- package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
- package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
- package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
- package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
- package/package.json +4 -2
- package/templates/README.md +39 -0
- package/templates/admin-shell-template.tsx +382 -0
- package/templates/analytics-operations-template.tsx +376 -0
- package/templates/customers-template.tsx +509 -0
- package/templates/index.ts +29 -0
- package/templates/orders-template.tsx +1102 -0
- package/templates/products-template.tsx +834 -0
- package/templates/user-permissions-template.tsx +450 -0
- package/dist/action-menu-CllU52Mm.js +0 -280
- package/dist/action-menu-CllU52Mm.js.map +0 -1
- package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
- package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
- package/dist/app-shell-C4FhvCqF.js.map +0 -1
- package/dist/cards-BaBZR-AU.js.map +0 -1
- package/dist/checkbox-AWIhNhmo.js.map +0 -1
- package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
- package/dist/comments-DD0DUPwJ.js.map +0 -1
- package/dist/containers-Mu1LMGV1.js +0 -103
- package/dist/containers-Mu1LMGV1.js.map +0 -1
- package/dist/data-display-DT_khPl_.js.map +0 -1
- package/dist/date-picker-B2K3ucWn.js.map +0 -1
- package/dist/date-pickers-Ds8gLaoP.js +0 -175
- package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
- package/dist/form-field-CwH9y77i.js.map +0 -1
- package/dist/forms-B9G_xwzi.js.map +0 -1
- package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
- package/dist/input-DQdEd0YD.js +0 -263
- package/dist/input-DQdEd0YD.js.map +0 -1
- package/dist/item-K5_ghvze.js +0 -275
- package/dist/item-K5_ghvze.js.map +0 -1
- package/dist/metadata-list-8N16ZMW_.js +0 -405
- package/dist/metadata-list-8N16ZMW_.js.map +0 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
- package/dist/overlays-tMkF-VAN.js.map +0 -1
- package/dist/page-CL9YeH_V.js +0 -224
- package/dist/page-CL9YeH_V.js.map +0 -1
- package/dist/page-header-commands-DOb6WsfD.js +0 -126
- package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
- package/dist/settings-ybnjVwbd.js +0 -171
- package/dist/settings-ybnjVwbd.js.map +0 -1
- package/dist/smart-card-DiC5aac3.js +0 -604
- package/dist/smart-card-DiC5aac3.js.map +0 -1
- package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
- package/dist/text.styles-g4He6UIW.js.map +0 -1
- package/dist/typography-UTnveOEy.js +0 -117
- package/dist/typography-UTnveOEy.js.map +0 -1
- package/dist/ui-provider-C_U0Xma4.js.map +0 -1
- package/dist/usage-card-BhO5eqkX.js.map +0 -1
- package/dist/utils-BRhFDwuU.js.map +0 -1
- package/dist/value-inputs-TaX4OjNk.js +0 -963
- package/dist/value-inputs-TaX4OjNk.js.map +0 -1
- package/dist/workspace-B-OEm3Kf.js +0 -408
- package/dist/workspace-B-OEm3Kf.js.map +0 -1
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { c as e, o as t } from "../ui-provider-
|
|
2
|
+
import { c as e, o as t } from "../ui-provider-CQCuCBcy.js";
|
|
3
3
|
import { useStrings as n } from "../lib/strings.js";
|
|
4
|
-
import { t as r } from "../utils-
|
|
5
|
-
import { n as i } from "../buttons-
|
|
6
|
-
import { c as a, s as o } from "../typography-
|
|
7
|
-
import {
|
|
8
|
-
import { t as c } from "../
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as g } from "../
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
4
|
+
import { t as r } from "../utils-CF3c95Io.js";
|
|
5
|
+
import { n as i } from "../buttons-BbfzgczK.js";
|
|
6
|
+
import { c as a, s as o } from "../typography-CSyJrh28.js";
|
|
7
|
+
import { n as s } from "../text.styles-B64My8RZ.js";
|
|
8
|
+
import { t as c } from "../focus-recipes-B653VaLq.js";
|
|
9
|
+
import { t as l } from "../structure-C0V0_Fyf.js";
|
|
10
|
+
import { i as u, t as d } from "../tone-recipes-BPsRAvhu.js";
|
|
11
|
+
import { h as f, m as p, p as m, t as h, v as g } from "../smart-card-CqkzQsK-.js";
|
|
12
|
+
import { t as _ } from "../feedback-DZNL5Lg1.js";
|
|
13
|
+
import { t as v } from "../composition.recipes-COdiFhxB.js";
|
|
14
|
+
import { n as y } from "../action-menu-CHgs8vmj.js";
|
|
15
|
+
import { r as b } from "../skeleton-CUj8O5Bd.js";
|
|
16
|
+
import { t as x } from "../interaction-recipes-XR9ZpVYL.js";
|
|
17
|
+
import { t as S } from "../initials-format-CDoQEOd_.js";
|
|
18
|
+
import { i as C, n as w, s as T } from "../avatar-DWO_HHhB.js";
|
|
19
|
+
import { t as E } from "../badge-DErMA7ul.js";
|
|
20
|
+
import { l as D } from "../choice-inputs-JLtij2y4.js";
|
|
21
|
+
import { o as O } from "../display-BB4BL_-K.js";
|
|
22
|
+
import { t as k } from "../scroll-area-La5RXsEk.js";
|
|
23
|
+
import { i as ee, n as te, r as ne, t as re, u as ie } from "../item-BvZ2DR_x.js";
|
|
24
|
+
import { i as ae, r as oe, t as se } from "../tabs-eqVsJZWO.js";
|
|
25
|
+
import { s as ce } from "../data-display-D4oujtx0.js";
|
|
26
|
+
import { isValidElement as le, useEffect as A, useId as ue, useLayoutEffect as de, useMemo as j, useRef as M, useState as N } from "react";
|
|
27
|
+
import { Fragment as fe, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
28
|
+
import { ChevronLeft as pe, ChevronRight as me, Plus as he, TriangleAlert as ge } from "lucide-react";
|
|
27
29
|
//#region src/components/features/appointment-calendar/appointment-calendar.types.ts
|
|
28
|
-
var
|
|
30
|
+
var _e = {
|
|
29
31
|
formatBooked: (e) => `${e} booked`,
|
|
30
32
|
formatConflicts: (e) => e === 1 ? "1 conflict" : `${e} conflicts`,
|
|
31
33
|
viewLabel: "View",
|
|
@@ -61,22 +63,22 @@ var ge = {
|
|
|
61
63
|
errorDescription: "The appointments could not be loaded.",
|
|
62
64
|
retry: "Retry",
|
|
63
65
|
formatActionsLabel: (e) => `Actions for ${e}`
|
|
64
|
-
},
|
|
66
|
+
}, I = [
|
|
65
67
|
"chart-1",
|
|
66
68
|
"chart-2",
|
|
67
69
|
"chart-3",
|
|
68
70
|
"chart-4",
|
|
69
71
|
"chart-5"
|
|
70
|
-
],
|
|
72
|
+
], L = {
|
|
71
73
|
"chart-1": "bg-chart-1",
|
|
72
74
|
"chart-2": "bg-chart-2",
|
|
73
75
|
"chart-3": "bg-chart-3",
|
|
74
76
|
"chart-4": "bg-chart-4",
|
|
75
77
|
"chart-5": "bg-chart-5"
|
|
76
78
|
};
|
|
77
|
-
function
|
|
79
|
+
function ve(e, t) {
|
|
78
80
|
let n = e.findIndex((e) => e.id === t);
|
|
79
|
-
return n < 0 ? "chart-1" : e[n]?.color ??
|
|
81
|
+
return n < 0 ? "chart-1" : e[n]?.color ?? I[n % I.length] ?? "chart-1";
|
|
80
82
|
}
|
|
81
83
|
function R(e) {
|
|
82
84
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
@@ -95,25 +97,25 @@ function H(e, t) {
|
|
|
95
97
|
let n = R(e);
|
|
96
98
|
return z(n, -((n.getDay() - t + 7) % 7));
|
|
97
99
|
}
|
|
98
|
-
function
|
|
100
|
+
function ye(e, t) {
|
|
99
101
|
let n = H(e, t);
|
|
100
102
|
return Array.from({ length: 7 }, (e, t) => z(n, t));
|
|
101
103
|
}
|
|
102
|
-
function
|
|
104
|
+
function be(e, t) {
|
|
103
105
|
let n = H(new Date(e.getFullYear(), e.getMonth(), 1), t);
|
|
104
106
|
return Array.from({ length: 6 }, (e, t) => Array.from({ length: 7 }, (e, r) => z(n, t * 7 + r)));
|
|
105
107
|
}
|
|
106
|
-
function
|
|
108
|
+
function xe(e, t) {
|
|
107
109
|
let n = R(t).getTime(), r = z(t, 1).getTime();
|
|
108
110
|
return e.start.getTime() < r && e.end.getTime() > n;
|
|
109
111
|
}
|
|
110
112
|
function U(e, t) {
|
|
111
|
-
return e.filter((e) =>
|
|
113
|
+
return e.filter((e) => xe(e, t)).sort((e, t) => e.start.getTime() - t.start.getTime() || e.end.getTime() - t.end.getTime());
|
|
112
114
|
}
|
|
113
|
-
function
|
|
115
|
+
function Se(e, t, n) {
|
|
114
116
|
return e.filter((e) => (t === "all" || e.category === t) && (n === "all" || e.staff?.id === n));
|
|
115
117
|
}
|
|
116
|
-
function
|
|
118
|
+
function Ce(e) {
|
|
117
119
|
let t = /* @__PURE__ */ new Map();
|
|
118
120
|
for (let n of e) {
|
|
119
121
|
if (!n.staff || n.status === "cancelled") continue;
|
|
@@ -135,15 +137,15 @@ function xe(e) {
|
|
|
135
137
|
}
|
|
136
138
|
return n.sort((e, t) => e.start.getTime() - t.start.getTime());
|
|
137
139
|
}
|
|
138
|
-
function
|
|
140
|
+
function we(e) {
|
|
139
141
|
return new Set(e.flatMap((e) => e.appointments.map((e) => e.id)));
|
|
140
142
|
}
|
|
141
|
-
function
|
|
143
|
+
function Te(e) {
|
|
142
144
|
let t = /* @__PURE__ */ new Map();
|
|
143
145
|
for (let n of e) n.staff && !t.has(n.staff.id) && t.set(n.staff.id, n.staff);
|
|
144
146
|
return [...t.values()];
|
|
145
147
|
}
|
|
146
|
-
function
|
|
148
|
+
function Ee(e, t) {
|
|
147
149
|
let { hour12: n } = new Intl.DateTimeFormat(t, { hour: "numeric" }).resolvedOptions();
|
|
148
150
|
if (!n) return new Intl.DateTimeFormat(t, {
|
|
149
151
|
hour: "2-digit",
|
|
@@ -155,112 +157,112 @@ function we(e, t) {
|
|
|
155
157
|
};
|
|
156
158
|
return new Intl.DateTimeFormat(t, r).format(e);
|
|
157
159
|
}
|
|
158
|
-
function
|
|
160
|
+
function W(e) {
|
|
159
161
|
return typeof e == "string" ? e : e?.name;
|
|
160
162
|
}
|
|
161
163
|
//#endregion
|
|
162
164
|
//#region src/components/features/appointment-calendar/partials/appointment-agenda.tsx
|
|
163
|
-
var
|
|
165
|
+
var G = {
|
|
164
166
|
confirmed: "success",
|
|
165
167
|
pending: "warning",
|
|
166
168
|
completed: "neutral",
|
|
167
169
|
cancelled: "neutral",
|
|
168
170
|
noShow: "destructive"
|
|
169
171
|
};
|
|
170
|
-
function
|
|
171
|
-
let n =
|
|
172
|
+
function De({ appointment: e, context: t }) {
|
|
173
|
+
let n = ue(), i = W(e.client), o = e.staff, { open: s, conflict: l } = t, d = t.actions.length > 0, f = [
|
|
172
174
|
`${n}-title`,
|
|
173
175
|
`${n}-status`,
|
|
174
176
|
`${n}-detail`,
|
|
175
177
|
o && `${n}-staff`
|
|
176
|
-
].filter(Boolean).join(" "), p =
|
|
177
|
-
return
|
|
178
|
+
].filter(Boolean).join(" "), p = M(null), m = M(!1);
|
|
179
|
+
return de(() => {
|
|
178
180
|
!d && m.current && (m.current = !1, (!document.activeElement || document.activeElement === document.body) && p.current?.focus());
|
|
179
|
-
}, [d]), /* @__PURE__ */
|
|
181
|
+
}, [d]), /* @__PURE__ */ F(re, {
|
|
180
182
|
variant: "outline",
|
|
181
183
|
size: "sm",
|
|
182
184
|
padding: "default",
|
|
183
185
|
"data-status": e.status,
|
|
184
|
-
"data-conflict":
|
|
185
|
-
className: r("appointment-agenda--row relative w-full flex-nowrap", !!
|
|
186
|
+
"data-conflict": l ? "" : void 0,
|
|
187
|
+
className: r("appointment-agenda--row relative w-full flex-nowrap", !!s && x.rowHover, l && r(u.destructive.wash, u.destructive.edge)),
|
|
186
188
|
children: [
|
|
187
|
-
!!
|
|
189
|
+
!!s && /* @__PURE__ */ P("button", {
|
|
188
190
|
ref: p,
|
|
189
191
|
type: "button",
|
|
190
192
|
"aria-labelledby": f,
|
|
191
|
-
onClick:
|
|
192
|
-
className: r("appointment-agenda--open absolute inset-0 z-0 cursor-pointer rounded-inner focus-visible:outline-none",
|
|
193
|
+
onClick: s,
|
|
194
|
+
className: r("appointment-agenda--open absolute inset-0 z-0 cursor-pointer rounded-inner focus-visible:outline-none", x.nativeButtonReset, c.inset)
|
|
193
195
|
}),
|
|
194
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ P("span", {
|
|
195
197
|
"aria-hidden": "true",
|
|
196
198
|
className: r("appointment-agenda--stripe w-1 shrink-0 self-stretch rounded-full", t.categoryColorClass)
|
|
197
199
|
}),
|
|
198
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ F(ne, {
|
|
199
201
|
className: "min-w-0",
|
|
200
|
-
children: [/* @__PURE__ */
|
|
202
|
+
children: [/* @__PURE__ */ F(ie, {
|
|
201
203
|
className: "flex-wrap",
|
|
202
|
-
children: [/* @__PURE__ */
|
|
204
|
+
children: [/* @__PURE__ */ P(a, {
|
|
203
205
|
type: "inherit",
|
|
204
206
|
id: `${n}-title`,
|
|
205
207
|
tag: "span",
|
|
206
208
|
weight: "medium",
|
|
207
209
|
className: "truncate",
|
|
208
210
|
children: e.title
|
|
209
|
-
}), /* @__PURE__ */
|
|
211
|
+
}), /* @__PURE__ */ P(E, {
|
|
210
212
|
id: `${n}-status`,
|
|
211
213
|
tone: t.statusTone,
|
|
212
214
|
size: "sm",
|
|
213
215
|
children: t.statusLabel
|
|
214
216
|
})]
|
|
215
|
-
}), /* @__PURE__ */
|
|
217
|
+
}), /* @__PURE__ */ P(ee, {
|
|
216
218
|
id: `${n}-detail`,
|
|
217
219
|
clamp: 1,
|
|
218
220
|
children: i ? `${t.time} · ${i}` : t.time
|
|
219
221
|
})]
|
|
220
222
|
}),
|
|
221
|
-
(!!o || d) && /* @__PURE__ */
|
|
223
|
+
(!!o || d) && /* @__PURE__ */ F(te, {
|
|
222
224
|
onFocus: () => {
|
|
223
225
|
m.current = !0;
|
|
224
226
|
},
|
|
225
227
|
onBlur: (e) => {
|
|
226
228
|
e.relatedTarget instanceof Node && !e.currentTarget.contains(e.relatedTarget) && (m.current = !1);
|
|
227
229
|
},
|
|
228
|
-
children: [!!o && /* @__PURE__ */
|
|
230
|
+
children: [!!o && /* @__PURE__ */ F(fe, { children: [/* @__PURE__ */ P(O, { children: /* @__PURE__ */ P("span", {
|
|
229
231
|
id: `${n}-staff`,
|
|
230
232
|
children: o.name
|
|
231
|
-
}) }), /* @__PURE__ */
|
|
233
|
+
}) }), /* @__PURE__ */ F(w, {
|
|
232
234
|
size: "sm",
|
|
233
235
|
"aria-hidden": "true",
|
|
234
|
-
children: [!!o.avatarUrl && /* @__PURE__ */
|
|
236
|
+
children: [!!o.avatarUrl && /* @__PURE__ */ P(T, {
|
|
235
237
|
src: o.avatarUrl,
|
|
236
238
|
alt: ""
|
|
237
|
-
}), /* @__PURE__ */
|
|
239
|
+
}), /* @__PURE__ */ P(C, { children: S(o.name) })]
|
|
238
240
|
})] }), t.actionsMenu]
|
|
239
241
|
})
|
|
240
242
|
]
|
|
241
243
|
});
|
|
242
244
|
}
|
|
243
|
-
function
|
|
244
|
-
let
|
|
245
|
+
function Oe({ days: e, appointments: t, categories: n, conflicts: r, heading: i, loading: c, error: u, onRetry: d, locale: f, onAppointmentClick: p, appointmentActions: m, renderAppointment: g, strings: v }) {
|
|
246
|
+
let x = e.map((e) => ({
|
|
245
247
|
day: e,
|
|
246
248
|
items: U(t, e)
|
|
247
|
-
})),
|
|
249
|
+
})), S = x.reduce((e, t) => e + t.items.length, 0), C = new Intl.DateTimeFormat(f, {
|
|
248
250
|
weekday: "long",
|
|
249
251
|
month: "long",
|
|
250
252
|
day: "numeric"
|
|
251
|
-
}),
|
|
252
|
-
let t = r.has(e.id), i = (
|
|
253
|
+
}), w = e.length > 1, T = (e) => {
|
|
254
|
+
let t = r.has(e.id), i = (m?.(e) ?? []).filter((e) => e.visible !== !1), a = {
|
|
253
255
|
category: n.find((t) => t.id === e.category),
|
|
254
|
-
categoryColorClass:
|
|
256
|
+
categoryColorClass: L[ve(n, e.category)],
|
|
255
257
|
conflict: t,
|
|
256
|
-
statusLabel: t ?
|
|
257
|
-
statusTone: t ? "destructive" :
|
|
258
|
-
time:
|
|
259
|
-
open:
|
|
258
|
+
statusLabel: t ? v.conflict : v.status[e.status],
|
|
259
|
+
statusTone: t ? "destructive" : G[e.status],
|
|
260
|
+
time: v.formatTimeRange(Ee(e.start, f), Ee(e.end, f)),
|
|
261
|
+
open: p ? () => p(e) : void 0,
|
|
260
262
|
actions: i,
|
|
261
|
-
actionsMenu: i.length > 0 ? /* @__PURE__ */
|
|
263
|
+
actionsMenu: i.length > 0 ? /* @__PURE__ */ P(y, {
|
|
262
264
|
actions: i,
|
|
263
|
-
srText:
|
|
265
|
+
srText: v.formatActionsLabel(e.title),
|
|
264
266
|
buttonProps: {
|
|
265
267
|
size: "sm",
|
|
266
268
|
className: "appointment-agenda--actions relative z-10"
|
|
@@ -269,67 +271,67 @@ function Ee({ days: e, appointments: t, categories: n, conflicts: r, heading: i,
|
|
|
269
271
|
};
|
|
270
272
|
return {
|
|
271
273
|
...a,
|
|
272
|
-
defaultRender: () => /* @__PURE__ */
|
|
274
|
+
defaultRender: () => /* @__PURE__ */ P(De, {
|
|
273
275
|
appointment: e,
|
|
274
276
|
context: a
|
|
275
277
|
})
|
|
276
278
|
};
|
|
277
|
-
},
|
|
278
|
-
render: /* @__PURE__ */
|
|
279
|
+
}, E = (e) => /* @__PURE__ */ P(l, {
|
|
280
|
+
render: /* @__PURE__ */ P("ul", {}),
|
|
279
281
|
gap: "sm",
|
|
280
282
|
className: "appointment-agenda--list m-0 list-none p-0",
|
|
281
283
|
children: e.map((e) => {
|
|
282
|
-
let t =
|
|
283
|
-
return /* @__PURE__ */
|
|
284
|
+
let t = T(e);
|
|
285
|
+
return /* @__PURE__ */ P("li", {
|
|
284
286
|
className: "min-w-0",
|
|
285
|
-
children:
|
|
287
|
+
children: g ? g(e, t) : t.defaultRender()
|
|
286
288
|
}, e.id);
|
|
287
289
|
})
|
|
288
290
|
}), D;
|
|
289
|
-
return D =
|
|
291
|
+
return D = c ? /* @__PURE__ */ F(l, {
|
|
290
292
|
gap: "sm",
|
|
291
293
|
"aria-busy": "true",
|
|
292
294
|
className: "appointment-agenda--loading",
|
|
293
|
-
children: [/* @__PURE__ */
|
|
294
|
-
}) :
|
|
295
|
+
children: [/* @__PURE__ */ P(O, { children: v.loading }), Array.from({ length: 4 }, (e, t) => /* @__PURE__ */ P(b, { className: "h-control-lg w-full rounded-inner" }, t))]
|
|
296
|
+
}) : u ? le(u) ? u : /* @__PURE__ */ P(_, {
|
|
295
297
|
variant: "inline",
|
|
296
|
-
title:
|
|
297
|
-
description:
|
|
298
|
-
onRetry:
|
|
299
|
-
retryLabel:
|
|
298
|
+
title: v.errorTitle,
|
|
299
|
+
description: u instanceof Error ? u.message : typeof u == "string" || typeof u == "number" ? String(u) : v.errorDescription,
|
|
300
|
+
onRetry: d,
|
|
301
|
+
retryLabel: v.retry,
|
|
300
302
|
className: "appointment-agenda--error"
|
|
301
|
-
}) :
|
|
303
|
+
}) : S === 0 ? /* @__PURE__ */ P(ce, {
|
|
302
304
|
padding: "sm",
|
|
303
|
-
title:
|
|
305
|
+
title: v.empty,
|
|
304
306
|
description: !1,
|
|
305
|
-
ariaLabel:
|
|
307
|
+
ariaLabel: v.empty,
|
|
306
308
|
className: "appointment-agenda--empty"
|
|
307
|
-
}) :
|
|
309
|
+
}) : w ? /* @__PURE__ */ P(l, {
|
|
308
310
|
gap: "xl",
|
|
309
|
-
children:
|
|
310
|
-
render: /* @__PURE__ */
|
|
311
|
+
children: x.filter((e) => e.items.length > 0).map((e) => /* @__PURE__ */ F(l, {
|
|
312
|
+
render: /* @__PURE__ */ P("section", {}),
|
|
311
313
|
gap: "sm",
|
|
312
|
-
"aria-label":
|
|
314
|
+
"aria-label": C.format(e.day),
|
|
313
315
|
className: "appointment-agenda--day",
|
|
314
|
-
children: [/* @__PURE__ */
|
|
316
|
+
children: [/* @__PURE__ */ P(o, {
|
|
315
317
|
className: "text-inherit",
|
|
316
318
|
tag: "h3",
|
|
317
|
-
size:
|
|
318
|
-
children:
|
|
319
|
-
}),
|
|
319
|
+
size: s.subsection,
|
|
320
|
+
children: C.format(e.day)
|
|
321
|
+
}), E(e.items)]
|
|
320
322
|
}, e.day.toISOString()))
|
|
321
|
-
}) :
|
|
323
|
+
}) : E(x[0]?.items ?? []), /* @__PURE__ */ P(h, {
|
|
322
324
|
surface: "card",
|
|
323
325
|
title: i,
|
|
324
|
-
headerEnd: /* @__PURE__ */
|
|
326
|
+
headerEnd: /* @__PURE__ */ P(a, {
|
|
325
327
|
size: "xs",
|
|
326
328
|
type: "secondary",
|
|
327
329
|
className: "tabular-nums",
|
|
328
|
-
children:
|
|
330
|
+
children: v.formatCount(S)
|
|
329
331
|
}),
|
|
330
332
|
className: "appointment-agenda--component h-full min-h-0",
|
|
331
333
|
contentClassName: "min-h-0 flex-1",
|
|
332
|
-
children: /* @__PURE__ */
|
|
334
|
+
children: /* @__PURE__ */ P(k, {
|
|
333
335
|
className: "appointment-agenda--scroll h-full min-h-0",
|
|
334
336
|
children: D
|
|
335
337
|
})
|
|
@@ -337,25 +339,25 @@ function Ee({ days: e, appointments: t, categories: n, conflicts: r, heading: i,
|
|
|
337
339
|
}
|
|
338
340
|
//#endregion
|
|
339
341
|
//#region src/components/features/appointment-calendar/partials/appointment-month.tsx
|
|
340
|
-
var
|
|
341
|
-
function
|
|
342
|
-
let [m, h] =
|
|
343
|
-
|
|
344
|
-
let
|
|
345
|
-
|
|
346
|
-
n?.(new Date(Math.floor(
|
|
347
|
-
}, [
|
|
342
|
+
var K = 3;
|
|
343
|
+
function ke({ selected: e, onSelect: t, onVisibleMonthChange: n, appointments: o, categories: s, weekStartsOn: u, locale: f, strings: p }) {
|
|
344
|
+
let [m, h] = N(e), g = M(null), _ = M(!1), v = j(() => /* @__PURE__ */ new Date(), []);
|
|
345
|
+
A(() => h(e), [e]);
|
|
346
|
+
let y = m.getFullYear() * 12 + m.getMonth();
|
|
347
|
+
A(() => {
|
|
348
|
+
n?.(new Date(Math.floor(y / 12), y % 12, 1));
|
|
349
|
+
}, [y, n]), A(() => {
|
|
348
350
|
_.current && (_.current = !1, g.current?.querySelector("[data-focus-target]")?.focus());
|
|
349
351
|
}, [m]);
|
|
350
|
-
let
|
|
352
|
+
let b = j(() => be(m, u), [m, u]), S = j(() => new Intl.DateTimeFormat(f, { month: "long" }), [f]), C = j(() => new Intl.DateTimeFormat(f, { weekday: "short" }), [f]), w = j(() => new Intl.DateTimeFormat(f, {
|
|
351
353
|
weekday: "long",
|
|
352
354
|
month: "long",
|
|
353
355
|
day: "numeric",
|
|
354
356
|
year: "numeric"
|
|
355
|
-
}), [f]),
|
|
357
|
+
}), [f]), T = j(() => Array.from({ length: 12 }, (e, t) => ({
|
|
356
358
|
value: String(t),
|
|
357
359
|
label: S.format(new Date(2e3, t, 1))
|
|
358
|
-
})), [S]),
|
|
360
|
+
})), [S]), E = j(() => {
|
|
359
361
|
let e = /* @__PURE__ */ new Set([v.getFullYear(), m.getFullYear()]);
|
|
360
362
|
for (let t of o) e.add(t.start.getFullYear());
|
|
361
363
|
let t = Math.min(...e) - 1, n = Math.max(...e) + 1;
|
|
@@ -367,62 +369,62 @@ function Oe({ selected: e, onSelect: t, onVisibleMonthChange: n, appointments: o
|
|
|
367
369
|
o,
|
|
368
370
|
m,
|
|
369
371
|
v
|
|
370
|
-
]),
|
|
372
|
+
]), O = (e, n = !1) => {
|
|
371
373
|
_.current = !0, h(e), n && t(e);
|
|
372
|
-
},
|
|
374
|
+
}, k = (n) => {
|
|
373
375
|
let r = V(e, n);
|
|
374
376
|
h(r), t(r);
|
|
375
377
|
};
|
|
376
|
-
return /* @__PURE__ */
|
|
378
|
+
return /* @__PURE__ */ F(l, {
|
|
377
379
|
gap: "lg",
|
|
378
380
|
className: "appointment-month--component min-w-0",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
381
|
+
children: [/* @__PURE__ */ F("div", {
|
|
380
382
|
className: "appointment-month--header flex min-w-0 items-center gap-space-xs",
|
|
381
383
|
children: [
|
|
382
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ P(i, {
|
|
383
385
|
type: "button",
|
|
384
386
|
tone: "secondary",
|
|
385
387
|
buttonStyle: "ghost",
|
|
386
388
|
size: "sm",
|
|
387
389
|
iconOnly: !0,
|
|
388
390
|
"aria-label": p.previousMonth,
|
|
389
|
-
onClick: () =>
|
|
390
|
-
children: /* @__PURE__ */
|
|
391
|
+
onClick: () => k(-1),
|
|
392
|
+
children: /* @__PURE__ */ P(pe, {
|
|
391
393
|
"aria-hidden": "true",
|
|
392
394
|
className: "size-icon"
|
|
393
395
|
})
|
|
394
396
|
}),
|
|
395
|
-
/* @__PURE__ */
|
|
397
|
+
/* @__PURE__ */ P(D, {
|
|
396
398
|
size: "sm",
|
|
397
399
|
"aria-label": p.monthLabel,
|
|
398
|
-
options:
|
|
400
|
+
options: T,
|
|
399
401
|
value: String(e.getMonth()),
|
|
400
|
-
onValueChange: (t) => t !== void 0 &&
|
|
402
|
+
onValueChange: (t) => t !== void 0 && k(Number(t) - e.getMonth()),
|
|
401
403
|
className: "min-w-0 flex-1"
|
|
402
404
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ P(D, {
|
|
404
406
|
size: "sm",
|
|
405
407
|
"aria-label": p.yearLabel,
|
|
406
|
-
options:
|
|
408
|
+
options: E,
|
|
407
409
|
value: String(e.getFullYear()),
|
|
408
|
-
onValueChange: (t) => t !== void 0 &&
|
|
410
|
+
onValueChange: (t) => t !== void 0 && k((Number(t) - e.getFullYear()) * 12),
|
|
409
411
|
className: "min-w-0 flex-1"
|
|
410
412
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
413
|
+
/* @__PURE__ */ P(i, {
|
|
412
414
|
type: "button",
|
|
413
415
|
tone: "secondary",
|
|
414
416
|
buttonStyle: "ghost",
|
|
415
417
|
size: "sm",
|
|
416
418
|
iconOnly: !0,
|
|
417
419
|
"aria-label": p.nextMonth,
|
|
418
|
-
onClick: () =>
|
|
419
|
-
children: /* @__PURE__ */
|
|
420
|
+
onClick: () => k(1),
|
|
421
|
+
children: /* @__PURE__ */ P(me, {
|
|
420
422
|
"aria-hidden": "true",
|
|
421
423
|
className: "size-icon"
|
|
422
424
|
})
|
|
423
425
|
})
|
|
424
426
|
]
|
|
425
|
-
}), /* @__PURE__ */
|
|
427
|
+
}), /* @__PURE__ */ F("div", {
|
|
426
428
|
ref: g,
|
|
427
429
|
role: "grid",
|
|
428
430
|
"aria-label": `${S.format(m)} ${m.getFullYear()}`,
|
|
@@ -432,18 +434,18 @@ function Oe({ selected: e, onSelect: t, onVisibleMonthChange: n, appointments: o
|
|
|
432
434
|
ArrowRight: () => z(m, 1),
|
|
433
435
|
ArrowUp: () => z(m, -7),
|
|
434
436
|
ArrowDown: () => z(m, 7),
|
|
435
|
-
Home: () => H(m,
|
|
436
|
-
End: () => z(H(m,
|
|
437
|
+
Home: () => H(m, u),
|
|
438
|
+
End: () => z(H(m, u), 6),
|
|
437
439
|
PageUp: () => V(m, -1),
|
|
438
440
|
PageDown: () => V(m, 1)
|
|
439
441
|
}[e.key];
|
|
440
|
-
t && (e.preventDefault(),
|
|
442
|
+
t && (e.preventDefault(), O(t()));
|
|
441
443
|
},
|
|
442
444
|
className: "appointment-month--grid grid min-w-0 grid-cols-7 gap-space-2xs",
|
|
443
|
-
children: [/* @__PURE__ */
|
|
445
|
+
children: [/* @__PURE__ */ P("div", {
|
|
444
446
|
role: "row",
|
|
445
447
|
className: "contents",
|
|
446
|
-
children:
|
|
448
|
+
children: b[0]?.map((e) => /* @__PURE__ */ P(a, {
|
|
447
449
|
tag: "div",
|
|
448
450
|
role: "columnheader",
|
|
449
451
|
size: "xs",
|
|
@@ -453,29 +455,29 @@ function Oe({ selected: e, onSelect: t, onVisibleMonthChange: n, appointments: o
|
|
|
453
455
|
className: "appointment-month--weekday py-space-xs",
|
|
454
456
|
children: C.format(e)
|
|
455
457
|
}, e.getDay()))
|
|
456
|
-
}),
|
|
458
|
+
}), b.map((t) => /* @__PURE__ */ P("div", {
|
|
457
459
|
role: "row",
|
|
458
460
|
className: "contents",
|
|
459
461
|
children: t.map((t) => {
|
|
460
|
-
let n = U(o, t), i = [...new Set(n.map((e) => e.category))], a = B(t, e),
|
|
461
|
-
return /* @__PURE__ */
|
|
462
|
+
let n = U(o, t), i = [...new Set(n.map((e) => e.category))], a = B(t, e), l = B(t, m), u = t.getMonth() !== m.getMonth();
|
|
463
|
+
return /* @__PURE__ */ P("div", {
|
|
462
464
|
role: "gridcell",
|
|
463
465
|
"aria-selected": a,
|
|
464
466
|
className: "flex min-w-0 justify-center",
|
|
465
|
-
children: /* @__PURE__ */
|
|
467
|
+
children: /* @__PURE__ */ F("button", {
|
|
466
468
|
type: "button",
|
|
467
|
-
tabIndex:
|
|
468
|
-
"data-focus-target":
|
|
469
|
+
tabIndex: l ? 0 : -1,
|
|
470
|
+
"data-focus-target": l ? "" : void 0,
|
|
469
471
|
"data-selected": a ? "" : void 0,
|
|
470
|
-
"data-outside":
|
|
472
|
+
"data-outside": u ? "" : void 0,
|
|
471
473
|
"aria-current": B(t, v) ? "date" : void 0,
|
|
472
474
|
"aria-label": p.formatDayLabel(w.format(t), n.length),
|
|
473
|
-
onClick: () =>
|
|
474
|
-
className: r(
|
|
475
|
-
children: [t.getDate(), i.length > 0 && /* @__PURE__ */
|
|
475
|
+
onClick: () => O(t, !0),
|
|
476
|
+
className: r(x.nativeButtonReset, "appointment-month--day relative flex size-action flex-col items-center justify-center rounded-inner text-sm tabular-nums outline-none", c.edge, a ? "bg-primary font-semibold text-primary-foreground" : r(x.rowHover, u ? "text-muted-foreground" : "text-foreground"), !a && B(t, v) && "font-semibold"),
|
|
477
|
+
children: [t.getDate(), i.length > 0 && /* @__PURE__ */ P("span", {
|
|
476
478
|
"aria-hidden": "true",
|
|
477
479
|
className: "appointment-month--dots absolute inset-x-0 bottom-space-2xs flex justify-center gap-space-2xs",
|
|
478
|
-
children: i.slice(0,
|
|
480
|
+
children: i.slice(0, K).map((e) => /* @__PURE__ */ P("span", { className: r(d.inline, L[ve(s, e)]) }, e))
|
|
479
481
|
})]
|
|
480
482
|
})
|
|
481
483
|
}, t.toISOString());
|
|
@@ -486,198 +488,198 @@ function Oe({ selected: e, onSelect: t, onVisibleMonthChange: n, appointments: o
|
|
|
486
488
|
}
|
|
487
489
|
//#endregion
|
|
488
490
|
//#region src/components/features/appointment-calendar/appointment-calendar.tsx
|
|
489
|
-
function
|
|
490
|
-
let [r, i] =
|
|
491
|
+
function q(e, t, n) {
|
|
492
|
+
let [r, i] = N(t);
|
|
491
493
|
return [e ?? r, (t) => {
|
|
492
494
|
e === void 0 && i(t), n?.(t);
|
|
493
495
|
}];
|
|
494
496
|
}
|
|
495
|
-
function
|
|
496
|
-
let
|
|
497
|
-
|
|
497
|
+
function Ae({ appointments: s, categories: c, staff: u, title: _, date: y, defaultDate: b, onDateChange: x, view: S, defaultView: C = "day", onViewChange: w, category: T, defaultCategory: E = "all", onCategoryChange: O, staffId: k, defaultStaffId: ee = "all", onStaffChange: te, onAppointmentClick: ne, appointmentActions: re, renderAppointment: ie, onRangeChange: ce, onCreateAppointment: le, onConflictsDismiss: ue, loading: de = !1, error: fe, onRetry: pe, weekStartsOn: me, strings: I, className: B }) {
|
|
498
|
+
let V = n(_e, I), { locale: H } = e(), U = t(), W = me ?? U.weekStartsOn ?? 0, [G, De] = q(y, b ?? R(/* @__PURE__ */ new Date()), x), [K, Ae] = q(S, C, w), [J, je] = q(T, E, O), [Y, Me] = q(k, ee, te), [Ne, Pe] = N(""), [Fe, Ie] = N(() => new Date(G.getFullYear(), G.getMonth(), 1)), Le = j(() => u ?? Te(s), [u, s]), X = j(() => K === "week" ? ye(G, W) : [R(G)], [
|
|
499
|
+
K,
|
|
498
500
|
G,
|
|
499
501
|
W
|
|
500
|
-
]), Z =
|
|
502
|
+
]), Z = j(() => Se(s, J, Y), [
|
|
501
503
|
s,
|
|
502
504
|
J,
|
|
503
505
|
Y
|
|
504
|
-
]), Q =
|
|
505
|
-
let e = [...
|
|
506
|
+
]), Q = j(() => {
|
|
507
|
+
let e = [...be(Fe, W).flat(), ...X].map((e) => e.getTime());
|
|
506
508
|
return {
|
|
507
509
|
start: new Date(Math.min(...e)),
|
|
508
510
|
end: z(new Date(Math.max(...e)), 1)
|
|
509
511
|
};
|
|
510
512
|
}, [
|
|
511
|
-
|
|
513
|
+
Fe,
|
|
512
514
|
W,
|
|
513
515
|
X
|
|
514
|
-
]),
|
|
515
|
-
|
|
516
|
+
]), Re = M("");
|
|
517
|
+
A(() => {
|
|
516
518
|
let e = `${Q.start.getTime()}:${Q.end.getTime()}`;
|
|
517
|
-
e !==
|
|
519
|
+
e !== Re.current && (Re.current = e, ce?.(Q));
|
|
518
520
|
}, [Q, ce]);
|
|
519
|
-
let
|
|
521
|
+
let ze = j(() => Z.filter((e) => X.some((t) => xe(e, t))), [Z, X]), $ = j(() => Ce(Se(s, "all", Y).filter((e) => X.some((t) => xe(e, t)))), [
|
|
520
522
|
s,
|
|
521
523
|
Y,
|
|
522
524
|
X
|
|
523
|
-
]),
|
|
525
|
+
]), Be = j(() => we($), [$]), Ve = ze.filter((e) => Be.has(e.id)).length, He = ze.filter((e) => e.status !== "cancelled").length, Ue = [...Be].sort().join("|"), We = $.length > 0 && Ne !== Ue, Ge = new Intl.DateTimeFormat(H, {
|
|
524
526
|
weekday: "long",
|
|
525
527
|
month: "long",
|
|
526
528
|
day: "numeric"
|
|
527
|
-
}),
|
|
529
|
+
}), Ke = new Intl.DateTimeFormat(H, {
|
|
528
530
|
month: "long",
|
|
529
531
|
day: "numeric"
|
|
530
|
-
}),
|
|
531
|
-
|
|
532
|
+
}), qe = K === "week" ? V.formatWeekRange(Ke.format(X[0] ?? G), Ke.format(X[X.length - 1] ?? G)) : Ge.format(G), Je = (e) => {
|
|
533
|
+
Pe(Ue), ue?.(e);
|
|
532
534
|
};
|
|
533
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ F(l, {
|
|
534
536
|
gap: "xl",
|
|
535
537
|
"data-slot": "appointment-calendar",
|
|
536
|
-
"data-view":
|
|
537
|
-
className: r("appointment-calendar--component @container/appointment-calendar min-h-0 min-w-0",
|
|
538
|
+
"data-view": K,
|
|
539
|
+
className: r("appointment-calendar--component @container/appointment-calendar min-h-0 min-w-0", B),
|
|
538
540
|
children: [
|
|
539
|
-
/* @__PURE__ */
|
|
541
|
+
/* @__PURE__ */ F("div", {
|
|
540
542
|
className: "appointment-calendar--header flex min-w-0 flex-wrap items-start justify-between gap-space-lg",
|
|
541
|
-
children: [/* @__PURE__ */
|
|
543
|
+
children: [/* @__PURE__ */ F(l, {
|
|
542
544
|
gap: "xs",
|
|
543
545
|
className: "min-w-0",
|
|
544
|
-
children: [!!_ && /* @__PURE__ */
|
|
546
|
+
children: [!!_ && /* @__PURE__ */ P(o, {
|
|
545
547
|
className: "text-inherit",
|
|
546
548
|
tag: "h2",
|
|
547
549
|
size: "lg",
|
|
548
550
|
children: _
|
|
549
|
-
}), /* @__PURE__ */
|
|
551
|
+
}), /* @__PURE__ */ F(a, {
|
|
550
552
|
size: "xs",
|
|
551
553
|
type: "secondary",
|
|
552
554
|
className: "appointment-calendar--counts tabular-nums",
|
|
553
|
-
children: [
|
|
555
|
+
children: [V.formatBooked(He), Ve > 0 && ` · ${V.formatConflicts(Ve)}`]
|
|
554
556
|
})]
|
|
555
|
-
}), /* @__PURE__ */
|
|
556
|
-
className: "appointment-calendar--actions flex min-w-0 flex-wrap items-center
|
|
557
|
+
}), /* @__PURE__ */ F("div", {
|
|
558
|
+
className: r("appointment-calendar--actions flex min-w-0 flex-wrap items-center", v.commands),
|
|
557
559
|
children: [
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
value:
|
|
560
|
-
onValueChange: (e) => (e === "day" || e === "week") &&
|
|
561
|
-
children: /* @__PURE__ */
|
|
560
|
+
/* @__PURE__ */ P(se, {
|
|
561
|
+
value: K,
|
|
562
|
+
onValueChange: (e) => (e === "day" || e === "week") && Ae(e),
|
|
563
|
+
children: /* @__PURE__ */ P(oe, {
|
|
562
564
|
role: "group",
|
|
563
|
-
"aria-label":
|
|
565
|
+
"aria-label": V.viewLabel,
|
|
564
566
|
"aria-orientation": void 0,
|
|
565
567
|
activateOnFocus: !0,
|
|
566
|
-
children: ["day", "week"].map((e) => /* @__PURE__ */
|
|
568
|
+
children: ["day", "week"].map((e) => /* @__PURE__ */ P(ae, {
|
|
567
569
|
value: e,
|
|
568
570
|
role: "button",
|
|
569
571
|
"aria-selected": void 0,
|
|
570
572
|
"aria-controls": void 0,
|
|
571
|
-
"aria-pressed":
|
|
572
|
-
children:
|
|
573
|
+
"aria-pressed": K === e,
|
|
574
|
+
children: V[e]
|
|
573
575
|
}, e))
|
|
574
576
|
})
|
|
575
577
|
}),
|
|
576
|
-
|
|
577
|
-
"aria-label":
|
|
578
|
+
Le.length > 0 && /* @__PURE__ */ P(D, {
|
|
579
|
+
"aria-label": V.staffLabel,
|
|
578
580
|
options: [{
|
|
579
581
|
value: "all",
|
|
580
|
-
label:
|
|
581
|
-
}, ...
|
|
582
|
+
label: V.allStaff
|
|
583
|
+
}, ...Le.map((e) => ({
|
|
582
584
|
value: e.id,
|
|
583
585
|
label: e.name
|
|
584
586
|
}))],
|
|
585
587
|
value: Y,
|
|
586
|
-
onValueChange: (e) =>
|
|
588
|
+
onValueChange: (e) => Me(e ?? "all"),
|
|
587
589
|
className: "appointment-calendar--staff w-44"
|
|
588
590
|
}),
|
|
589
|
-
!!le && /* @__PURE__ */
|
|
591
|
+
!!le && /* @__PURE__ */ F(i, {
|
|
590
592
|
type: "button",
|
|
591
593
|
tone: "primary",
|
|
592
594
|
onClick: () => le(G),
|
|
593
595
|
className: "appointment-calendar--create",
|
|
594
|
-
children: [/* @__PURE__ */
|
|
596
|
+
children: [/* @__PURE__ */ P(he, {
|
|
595
597
|
"aria-hidden": "true",
|
|
596
598
|
className: "size-icon"
|
|
597
|
-
}),
|
|
599
|
+
}), V.newAppointment]
|
|
598
600
|
})
|
|
599
601
|
]
|
|
600
602
|
})]
|
|
601
603
|
}),
|
|
602
|
-
|
|
604
|
+
We && /* @__PURE__ */ F(m, {
|
|
603
605
|
tone: "destructive",
|
|
604
606
|
className: "appointment-calendar--alert",
|
|
605
607
|
children: [
|
|
606
|
-
/* @__PURE__ */
|
|
607
|
-
/* @__PURE__ */
|
|
608
|
-
/* @__PURE__ */
|
|
609
|
-
/* @__PURE__ */
|
|
608
|
+
/* @__PURE__ */ P(ge, { "aria-hidden": "true" }),
|
|
609
|
+
/* @__PURE__ */ P(g, { children: V.conflictTitle }),
|
|
610
|
+
/* @__PURE__ */ P(f, { children: $.map((e) => V.formatConflict(e.staff.name, e.appointments.length, Ee(e.start, H))).join(" ") }),
|
|
611
|
+
/* @__PURE__ */ P(p, { children: /* @__PURE__ */ P(i, {
|
|
610
612
|
type: "button",
|
|
611
613
|
size: "sm",
|
|
612
|
-
onClick: () =>
|
|
613
|
-
children:
|
|
614
|
+
onClick: () => Je($),
|
|
615
|
+
children: V.dismiss
|
|
614
616
|
}) })
|
|
615
617
|
]
|
|
616
618
|
}),
|
|
617
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ F("div", {
|
|
618
620
|
className: "appointment-calendar--body grid min-h-0 min-w-0 flex-1 gap-space-xl @3xl/appointment-calendar:grid-cols-[minmax(17rem,20rem)_minmax(0,1fr)]",
|
|
619
|
-
children: [/* @__PURE__ */
|
|
621
|
+
children: [/* @__PURE__ */ P(h, {
|
|
620
622
|
surface: "card",
|
|
621
623
|
className: "appointment-calendar--aside min-w-0 self-start",
|
|
622
|
-
children: /* @__PURE__ */
|
|
624
|
+
children: /* @__PURE__ */ F(l, {
|
|
623
625
|
gap: "xl",
|
|
624
|
-
children: [/* @__PURE__ */
|
|
626
|
+
children: [/* @__PURE__ */ P(ke, {
|
|
625
627
|
selected: G,
|
|
626
628
|
onSelect: De,
|
|
627
|
-
onVisibleMonthChange:
|
|
629
|
+
onVisibleMonthChange: Ie,
|
|
628
630
|
appointments: Z,
|
|
629
|
-
categories:
|
|
631
|
+
categories: c,
|
|
630
632
|
weekStartsOn: W,
|
|
631
|
-
locale:
|
|
632
|
-
strings:
|
|
633
|
-
}),
|
|
633
|
+
locale: H,
|
|
634
|
+
strings: V
|
|
635
|
+
}), c.length > 0 && /* @__PURE__ */ P(se, {
|
|
634
636
|
value: J,
|
|
635
|
-
onValueChange: (e) => typeof e == "string" &&
|
|
636
|
-
children: /* @__PURE__ */
|
|
637
|
+
onValueChange: (e) => typeof e == "string" && je(e),
|
|
638
|
+
children: /* @__PURE__ */ P(oe, {
|
|
637
639
|
variant: "chips",
|
|
638
640
|
role: "group",
|
|
639
|
-
"aria-label":
|
|
641
|
+
"aria-label": V.categoriesLabel,
|
|
640
642
|
"aria-orientation": void 0,
|
|
641
643
|
activateOnFocus: !0,
|
|
642
644
|
children: [{
|
|
643
645
|
id: "all",
|
|
644
|
-
label:
|
|
645
|
-
}, ...
|
|
646
|
+
label: V.allCategories
|
|
647
|
+
}, ...c].map((e) => /* @__PURE__ */ F(ae, {
|
|
646
648
|
value: e.id,
|
|
647
649
|
role: "button",
|
|
648
650
|
"aria-selected": void 0,
|
|
649
651
|
"aria-controls": void 0,
|
|
650
652
|
"aria-pressed": J === e.id,
|
|
651
653
|
className: "appointment-calendar--category gap-space-xs",
|
|
652
|
-
children: [e.id !== "all" && /* @__PURE__ */
|
|
654
|
+
children: [e.id !== "all" && /* @__PURE__ */ P("span", {
|
|
653
655
|
"aria-hidden": "true",
|
|
654
|
-
className: r(
|
|
656
|
+
className: r(d.inline, L[ve(c, e.id)])
|
|
655
657
|
}), e.label]
|
|
656
658
|
}, e.id))
|
|
657
659
|
})
|
|
658
660
|
})]
|
|
659
661
|
})
|
|
660
|
-
}), /* @__PURE__ */
|
|
662
|
+
}), /* @__PURE__ */ P(Oe, {
|
|
661
663
|
days: X,
|
|
662
664
|
appointments: Z,
|
|
663
|
-
categories:
|
|
664
|
-
conflicts:
|
|
665
|
-
heading:
|
|
665
|
+
categories: c,
|
|
666
|
+
conflicts: Be,
|
|
667
|
+
heading: qe,
|
|
666
668
|
loading: de,
|
|
667
669
|
error: fe,
|
|
668
670
|
onRetry: pe,
|
|
669
|
-
locale:
|
|
671
|
+
locale: H,
|
|
670
672
|
onAppointmentClick: ne,
|
|
671
673
|
appointmentActions: re,
|
|
672
|
-
renderAppointment:
|
|
673
|
-
strings:
|
|
674
|
+
renderAppointment: ie,
|
|
675
|
+
strings: V
|
|
674
676
|
})]
|
|
675
677
|
})
|
|
676
678
|
]
|
|
677
679
|
});
|
|
678
680
|
}
|
|
679
|
-
|
|
681
|
+
Ae.displayName = "AppointmentCalendar";
|
|
680
682
|
//#endregion
|
|
681
|
-
export {
|
|
683
|
+
export { Ae as AppointmentCalendar, U as appointmentsOn, _e as defaultAppointmentCalendarStrings, Se as filterAppointments, Ce as findConflicts };
|
|
682
684
|
|
|
683
685
|
//# sourceMappingURL=appointment-calendar.js.map
|