themelia-ui 3.0.0 → 3.2.0
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/.agents/skills/themelia-ui/SKILL.md +60 -33
- package/.agents/skills/themelia-ui/manifest.json +23 -0
- package/.agents/skills/themelia-ui/references/api-compatibility.md +5 -4
- package/.agents/skills/themelia-ui/references/blocks.md +123 -0
- package/.agents/skills/themelia-ui/references/composition-ladder.md +8 -8
- package/.agents/skills/themelia-ui/references/composition.md +100 -19
- package/.agents/skills/themelia-ui/references/forms.md +23 -3
- package/.agents/skills/themelia-ui/references/framework-wiring.md +41 -13
- package/.agents/skills/themelia-ui/references/i18n.md +4 -2
- package/.agents/skills/themelia-ui/references/imports.md +104 -104
- package/.agents/skills/themelia-ui/references/installation.md +60 -31
- package/.agents/skills/themelia-ui/references/migration.md +156 -5
- package/.agents/skills/themelia-ui/references/provider-and-scoping.md +37 -25
- package/.agents/skills/themelia-ui/references/reference-workflows.md +43 -0
- package/.agents/skills/themelia-ui/references/structure-and-spacing.md +147 -0
- package/.agents/skills/themelia-ui/references/theming.md +174 -131
- package/.agents/skills/themelia-ui/references/troubleshooting.md +88 -30
- package/.agents/skills/themelia-ui/references/verification.md +60 -5
- package/CHANGELOG.md +212 -0
- package/README.md +48 -60
- package/dist/accordion-CHuzMmWL.js +143 -0
- package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
- package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Cg2HhuBe.js} +1 -1
- package/dist/avatar-Dc_BNYfB.js +93 -0
- package/dist/badge-VlJVZjdm.js +45 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/alert-dialog.js +1 -1
- package/dist/base/aspect-ratio.js +3 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +2 -2
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +1 -1
- package/dist/base/carousel.js +6 -4
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/context-menu.js +22 -21
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +1 -1
- package/dist/base/dialog.js +1 -1
- package/dist/base/display.js +1 -1
- package/dist/base/dropdown-menu.js +1 -1
- package/dist/base/feedback.js +1 -1
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +1 -1
- package/dist/base/hover-card.js +26 -23
- package/dist/base/input-group.js +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/label.js +1 -1
- package/dist/base/menubar.js +20 -14
- package/dist/base/navigation-menu.js +47 -38
- package/dist/base/navigation.js +1 -1
- package/dist/base/otp-input.js +36 -30
- package/dist/base/overlay.js +1 -1
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +51 -47
- package/dist/base/repeaters.js +1 -1
- package/dist/base/resizable.js +2 -0
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +1 -1
- package/dist/base/timeline.js +1 -1
- package/dist/base/toaster.js +1 -1
- package/dist/base/toggle.js +21 -15
- package/dist/base/toolbar.js +1 -1
- package/dist/base/tooltip.js +1 -1
- package/dist/base/typography.js +2 -2
- package/dist/base/upload.js +1 -1
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
- package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
- package/dist/blocks/admin/commerce.js +2493 -0
- package/dist/{patterns → blocks}/analytics.js +312 -303
- package/dist/{patterns → blocks}/onboarding.js +27 -23
- package/dist/{patterns → blocks}/timelines.js +1 -1
- package/dist/buttons-BX2JfL5X.js +173 -0
- package/dist/cards-Ddhz43Bz.js +279 -0
- package/dist/chart-BkK3Xm10.js +201 -0
- package/dist/choice-inputs-NwRxvmZN.js +694 -0
- package/dist/combobox-519ubijc.js +292 -0
- package/dist/command-JjApYFds.js +156 -0
- package/dist/comments-CCQ2QRaU.js +1443 -0
- package/dist/components/base/action-menu/action-menu.d.ts +1 -1
- package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
- package/dist/components/base/avatar/avatar.d.ts +5 -2
- package/dist/components/base/badge/badge.d.ts +10 -10
- package/dist/components/base/badge/badge.variants.d.ts +1 -2
- package/dist/components/base/badge/index.d.ts +1 -2
- package/dist/components/base/buttons/button.d.ts +9 -8
- package/dist/components/base/buttons/button.types.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/text-button.d.ts +1 -1
- package/dist/components/base/cards/card-actions.d.ts +1 -1
- package/dist/components/base/cards/card.d.ts +3 -1
- package/dist/components/base/cards/partials/card-header.d.ts +2 -1
- package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
- package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
- package/dist/components/base/command/command.d.ts +5 -2
- package/dist/components/base/display/icon-badge.d.ts +5 -3
- package/dist/components/base/display/index.d.ts +1 -1
- package/dist/components/base/display/metadata-list.d.ts +6 -6
- package/dist/components/base/display/metadata-value.d.ts +1 -1
- package/dist/components/base/display/separator.d.ts +2 -2
- package/dist/components/base/feedback/alert.d.ts +3 -2
- package/dist/components/base/feedback/empty.d.ts +5 -4
- package/dist/components/base/feedback/progress-circle.d.ts +2 -2
- package/dist/components/base/feedback/progress.d.ts +3 -1
- package/dist/components/base/forms/form-field.d.ts +2 -2
- package/dist/components/base/input-group/input-group.d.ts +8 -10
- package/dist/components/base/item/item.d.ts +2 -2
- package/dist/components/base/overlay/index.d.ts +1 -1
- package/dist/components/base/overlay/overlay.types.d.ts +7 -5
- package/dist/components/base/qr-code/qr-code.d.ts +4 -4
- package/dist/components/base/sheet/sheet.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +9 -13
- package/dist/components/base/spinner/spinner.d.ts +2 -2
- package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
- package/dist/components/base/structure/bleed.d.ts +4 -2
- package/dist/components/base/structure/grid.d.ts +10 -4
- package/dist/components/base/structure/index.d.ts +1 -1
- package/dist/components/base/structure/split.d.ts +4 -3
- package/dist/components/base/structure/stack.d.ts +5 -5
- package/dist/components/base/structure/structure.maps.d.ts +2 -1
- package/dist/components/base/structure/structure.types.d.ts +10 -4
- package/dist/components/base/toggle/toggle.d.ts +2 -2
- package/dist/components/base/toolbar/toolbar.d.ts +3 -3
- package/dist/components/base/typography/index.d.ts +2 -0
- package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
- package/dist/components/base/typography/text/index.d.ts +1 -0
- package/dist/components/base/typography/text/text.d.ts +15 -8
- package/dist/components/base/typography/text/text.variants.d.ts +41 -0
- package/dist/components/base/value-inputs/color-input.d.ts +1 -7
- package/dist/components/base/value-inputs/slider.d.ts +2 -7
- package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
- package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
- package/dist/components/features/actions/action-adapters.d.ts +3 -3
- package/dist/components/features/actions/actions.types.d.ts +3 -5
- package/dist/components/features/actions/index.d.ts +1 -1
- package/dist/components/features/activities/activities-feed.d.ts +1 -1
- package/dist/components/features/activities/activities.types.d.ts +4 -4
- package/dist/components/features/activities/activity-parts.d.ts +3 -3
- package/dist/components/features/activities/activity-row.d.ts +4 -4
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
- package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
- package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
- package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
- package/dist/components/features/combobox/fetching-combobox.d.ts +2 -1
- package/dist/components/features/combobox/resource-combobox.d.ts +3 -0
- package/dist/components/features/combobox/use-suggestions.d.ts +7 -0
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
- package/dist/components/features/media-library/media-library-views.d.ts +4 -3
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
- package/dist/components/features/media-library/media-library.types.d.ts +11 -9
- package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
- package/dist/components/features/media-library/use-media-library.d.ts +1 -4
- package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +8 -7
- package/dist/components/features/rich-text-editor/index.d.ts +0 -1
- package/dist/components/features/table/data-table-body.d.ts +1 -1
- package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
- package/dist/components/features/table/data-table-header.d.ts +1 -1
- package/dist/components/features/table/data-table-size.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +9 -3
- package/dist/components/features/table/table.strings.d.ts +11 -0
- package/dist/components/features/table/table.types.d.ts +60 -2
- package/dist/components/features/theme-tweaker/index.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +1 -1
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/containers-B8d8U9GS.js +2 -0
- package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
- package/dist/core.css +2 -2
- package/dist/css/access.css +2 -1
- package/dist/css/accordion.css +2 -1
- package/dist/css/action-menu.css +2 -1
- package/dist/css/activities.css +2 -1
- package/dist/css/ai-chat.css +2 -1
- package/dist/css/analytics.css +2 -1
- package/dist/css/app-shell.css +2 -1
- package/dist/css/aspect-ratio.css +2 -1
- package/dist/css/async-preview.css +2 -1
- package/dist/css/auth.css +2 -1
- package/dist/css/avatar.css +2 -1
- package/dist/css/badge.css +2 -1
- package/dist/css/batch-action-bar.css +2 -1
- package/dist/css/buttons.css +2 -1
- package/dist/css/cards.css +2 -1
- package/dist/css/carousel.css +2 -1
- package/dist/css/chart.css +2 -1
- package/dist/css/choice-inputs.css +2 -1
- package/dist/css/combobox.css +2 -1
- package/dist/css/combobox2.css +2 -1
- package/dist/css/command.css +2 -1
- package/dist/css/comments.css +2 -1
- package/dist/css/commerce.css +2 -1
- package/dist/css/containers.css +2 -1
- package/dist/css/copyable.css +2 -1
- package/dist/css/data-view.css +2 -1
- package/dist/css/date-pickers.css +2 -1
- package/dist/css/display.css +2 -1
- package/dist/css/dropdown-menu.css +2 -1
- package/dist/css/event-calendar.css +2 -1
- package/dist/css/feedback.css +2 -1
- package/dist/css/filters.css +2 -1
- package/dist/css/forms-numeric.css +2 -1
- package/dist/css/forms.css +2 -1
- package/dist/css/global-search.css +2 -1
- package/dist/css/header.css +2 -1
- package/dist/css/hover-card.css +2 -1
- package/dist/css/input-group.css +2 -1
- package/dist/css/item.css +2 -1
- package/dist/css/kanban.css +2 -1
- package/dist/css/label.css +2 -1
- package/dist/css/map.css +2 -1
- package/dist/css/media-library.css +2 -1
- package/dist/css/mentions.css +2 -1
- package/dist/css/menubar.css +2 -1
- package/dist/css/navigation-menu.css +2 -1
- package/dist/css/navigation.css +2 -1
- package/dist/css/navigation2.css +2 -1
- package/dist/css/onboarding.css +2 -1
- package/dist/css/otp-input.css +2 -1
- package/dist/css/overlay.css +2 -1
- package/dist/css/overlays.css +2 -1
- package/dist/css/page.css +2 -1
- package/dist/css/popover-menu.css +2 -1
- package/dist/css/popover.css +2 -1
- package/dist/css/primitives.css +2 -1
- package/dist/css/products.css +2 -1
- package/dist/css/qr-code.css +2 -1
- package/dist/css/repeaters.css +2 -1
- package/dist/css/resizable.css +2 -1
- package/dist/css/resource-assignment.css +2 -1
- package/dist/css/resource.css +2 -1
- package/dist/css/rich-text-editor.css +2 -1
- package/dist/css/schema-form.css +2 -1
- package/dist/css/sidebar.css +2 -1
- package/dist/css/sidebar2.css +2 -1
- package/dist/css/skeleton.css +2 -1
- package/dist/css/spinner.css +2 -1
- package/dist/css/structure.css +2 -1
- package/dist/css/sync.css +2 -1
- package/dist/css/table.css +2 -1
- package/dist/css/table2.css +2 -1
- package/dist/css/text-inputs.css +2 -1
- package/dist/css/theme-tweaker.css +2 -1
- package/dist/css/timeline.css +2 -1
- package/dist/css/timelines.css +2 -1
- package/dist/css/toaster.css +2 -1
- package/dist/css/toggle.css +2 -1
- package/dist/css/toolbar.css +2 -1
- package/dist/css/tooltip.css +2 -1
- package/dist/css/typography.css +2 -1
- package/dist/css/upload.css +2 -1
- package/dist/css/value-inputs.css +2 -1
- package/dist/css/workspace.css +2 -1
- package/dist/css-graph.json +1027 -0
- package/dist/date-pickers-BwCwKIVM.js +685 -0
- package/dist/{dialog-CtFCuTUF.js → dialog-CAnwRNrm.js} +1 -1
- package/dist/display-a7AoX_u7.js +664 -0
- package/dist/dropdown-menu-Br8kvjrF.js +235 -0
- package/dist/empty.js +0 -0
- package/dist/features/actions.js +6 -6
- package/dist/features/activities.js +219 -216
- package/dist/features/ai-chat.js +593 -565
- package/dist/features/async-preview.js +105 -286
- package/dist/features/combobox.js +328 -314
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +56 -55
- package/dist/features/event-calendar.js +189 -185
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +259 -260
- package/dist/features/kanban.js +39 -37
- package/dist/features/map.js +357 -354
- package/dist/features/media-library.js +931 -931
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +950 -942
- package/dist/features/resource-assignment.js +39 -37
- package/dist/features/resource.js +70 -71
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +342 -338
- package/dist/features/sync.js +14 -12
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +1002 -962
- package/dist/feedback-D4qVsKlD.js +430 -0
- package/dist/{filters-DOLKRSmb.js → filters-BhsTkWpZ.js} +386 -383
- package/dist/forms-C0WeNPFF.js +250 -0
- package/dist/forms-numeric-IwQ1ltNf.js +582 -0
- package/dist/hooks/use-native-dialog.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/input-group-HS_Z0Ei_.js +119 -0
- package/dist/item-M2pmpWXh.js +150 -0
- package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
- package/dist/layout/app-shell.js +4 -2
- package/dist/layout/auth.js +102 -100
- package/dist/layout/header.js +190 -180
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +18 -16
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +50 -46
- package/dist/layout/workspace.js +71 -69
- package/dist/lib/action-presentation.d.ts +3 -3
- package/dist/lib/component-vocabulary.d.ts +2 -2
- package/dist/lib/css-length.d.ts +2 -0
- package/dist/lib/responsive.d.ts +1 -1
- package/dist/lib/theming/index.d.ts +1 -0
- package/dist/lib/theming/recipes.d.ts +2 -2
- package/dist/lib/theming/themes/dense.d.ts +3 -0
- package/dist/lib/theming/themes/editorial.d.ts +3 -0
- package/dist/lib/theming/themes/index.d.ts +8 -0
- package/dist/lib/theming/themes/pair.d.ts +7 -0
- package/dist/lib/theming/themes/sharp.d.ts +3 -0
- package/dist/lib/theming/themes/soft.d.ts +3 -0
- package/dist/lib/theming/themes/types.d.ts +12 -0
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/scope.d.ts +5 -8
- package/dist/lib/ui-provider/tokens.d.ts +11 -3
- package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
- package/dist/lib/ui-provider/types.d.ts +17 -19
- package/dist/lib/ui-provider/ui-scope.d.ts +1 -1
- package/dist/{mentions-BbsEHlcH.js → mentions-BOxbigwp.js} +113 -111
- package/dist/navigation-Bgu7Vc0M.js +622 -0
- package/dist/navigation-DiYACqpE.js +216 -0
- package/dist/overlay-BuQOl8aP.js +356 -0
- package/dist/{overlays-DvVoS3td.js → overlays-1sULyytH.js} +77 -75
- package/dist/popover-CA7SP_iz.js +127 -0
- package/dist/popover-menu-QXgQeWeG.js +192 -0
- package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
- package/dist/primitives.js +1 -1
- package/dist/profiles/admin.json +6 -36
- package/dist/profiles/general.json +6 -96
- package/dist/repeaters-CeH20dvr.js +445 -0
- package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
- package/dist/{sheet-CKcmRbJ9.js → sheet-CJ1-OAla.js} +3 -3
- package/dist/sidebar-D8uGqxio.js +421 -0
- package/dist/skeleton-BTKNKTdj.js +173 -0
- package/dist/spinner-Tc1QCnxM.js +30 -0
- package/dist/{structure-D0WGQAP3.js → structure-CynEZ-OY.js} +15 -23
- package/dist/style.css +1 -1
- package/dist/styles/TOKENS.md +116 -275
- package/dist/styles/animation.css +114 -0
- package/dist/styles/base.css +7 -6
- package/dist/styles/fields.css +45 -63
- package/dist/styles/focus.css +12 -0
- package/dist/styles/forced-colors.css +11 -10
- package/dist/styles/index.css +23 -30
- package/dist/styles/map.css +45 -34
- package/dist/styles/mentions.css +14 -52
- package/dist/styles/overlays.css +7 -7
- package/dist/styles/tailwind.css +76 -127
- package/dist/styles/targets.css +3 -3
- package/dist/styles/theme/colour.css +86 -0
- package/dist/styles/theme/density.css +31 -0
- package/dist/styles/theme/elevation.css +9 -0
- package/dist/styles/theme/layout.css +18 -0
- package/dist/styles/theme/motion.css +18 -0
- package/dist/styles/theme/shape.css +12 -0
- package/dist/styles/theme/size.css +10 -0
- package/dist/styles/theme/spacing.css +11 -0
- package/dist/styles/theme/typography.css +20 -0
- package/dist/styles/tone.css +61 -0
- package/dist/table-B7dtIFUx.js +1262 -0
- package/dist/table-Ds_eO9av.js +191 -0
- package/dist/tailwind.css +76 -127
- package/dist/text-inputs-BboE77nZ.js +395 -0
- package/dist/theming-C5ygF5uf.js +292 -0
- package/dist/theming.js +2 -2
- package/dist/{timeline-BdaGRyj-.js → timeline-BR_jNgvz.js} +57 -49
- package/dist/{timelines-BB7550mz.js → timelines-DXG1BfIN.js} +69 -67
- package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
- package/dist/tokens.json +1027 -636
- package/dist/toolbar-DBK-c4yy.js +74 -0
- package/dist/tooltip-BPYP-jUm.js +76 -0
- package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
- package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
- package/dist/ui-provider.js +1 -1
- package/dist/upload-CYuoJykZ.js +968 -0
- package/dist/use-async-preview-BFwf9ElY.js +188 -0
- package/dist/value-inputs-ng8aVJJZ.js +728 -0
- package/docs/README.md +13 -3
- package/docs/build/browser-composition-fixture.ts +28 -0
- package/docs/build/recipes.md +11484 -10723
- package/docs/generated/component-index.json +9809 -9169
- package/docs/generated/components/INDEX.md +5 -5
- package/docs/generated/components/base--accordion.md +51 -2
- package/docs/generated/components/base--action-menu.md +14 -15
- package/docs/generated/components/base--alert-dialog.md +3 -4
- package/docs/generated/components/base--aspect-ratio.md +3 -4
- package/docs/generated/components/base--avatar.md +7 -7
- package/docs/generated/components/base--badge.md +159 -27
- package/docs/generated/components/base--batch-action-bar.md +6 -7
- package/docs/generated/components/base--buttons.md +151 -47
- package/docs/generated/components/base--cards.md +107 -14
- package/docs/generated/components/base--carousel.md +1 -2
- package/docs/generated/components/base--chart.md +44 -8
- package/docs/generated/components/base--choice-inputs.md +10 -11
- package/docs/generated/components/base--combobox.md +3 -4
- package/docs/generated/components/base--command.md +6 -6
- package/docs/generated/components/base--context-menu.md +1 -2
- package/docs/generated/components/base--copyable.md +6 -7
- package/docs/generated/components/base--date-pickers.md +6 -7
- package/docs/generated/components/base--dialog.md +6 -7
- package/docs/generated/components/base--direction.md +1 -1
- package/docs/generated/components/base--display.md +234 -54
- package/docs/generated/components/base--dropdown-menu.md +6 -7
- package/docs/generated/components/base--feedback.md +71 -18
- package/docs/generated/components/base--forms-numeric.md +6 -7
- package/docs/generated/components/base--forms.md +84 -14
- package/docs/generated/components/base--hover-card.md +3 -4
- package/docs/generated/components/base--input-group.md +27 -30
- package/docs/generated/components/base--item.md +8 -9
- package/docs/generated/components/base--label.md +2 -3
- package/docs/generated/components/base--menubar.md +2 -4
- package/docs/generated/components/base--navigation-menu.md +2 -3
- package/docs/generated/components/base--navigation.md +2 -3
- package/docs/generated/components/base--otp-input.md +3 -4
- package/docs/generated/components/base--overlay.md +56 -47
- package/docs/generated/components/base--popover-menu.md +7 -8
- package/docs/generated/components/base--popover.md +9 -10
- package/docs/generated/components/base--qr-code.md +7 -8
- package/docs/generated/components/base--repeaters.md +6 -7
- package/docs/generated/components/base--resizable.md +2 -3
- package/docs/generated/components/base--sheet.md +12 -13
- package/docs/generated/components/base--sidebar.md +9 -11
- package/docs/generated/components/base--skeleton.md +6 -7
- package/docs/generated/components/base--slot.md +1 -1
- package/docs/generated/components/base--spinner.md +5 -7
- package/docs/generated/components/base--structure.md +320 -70
- package/docs/generated/components/base--table.md +61 -3
- package/docs/generated/components/base--text-inputs.md +17 -18
- package/docs/generated/components/base--timeline.md +45 -4
- package/docs/generated/components/base--toaster.md +43 -12
- package/docs/generated/components/base--toggle.md +11 -12
- package/docs/generated/components/base--toolbar.md +7 -8
- package/docs/generated/components/base--tooltip.md +5 -6
- package/docs/generated/components/base--typography.md +317 -32
- package/docs/generated/components/base--upload.md +8 -9
- package/docs/generated/components/base--value-inputs.md +9 -38
- package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +15 -6
- package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
- package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +57 -14
- package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
- package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
- package/docs/generated/components/features--actions.md +8 -18
- package/docs/generated/components/features--activities.md +31 -32
- package/docs/generated/components/features--ai-chat.md +15 -15
- package/docs/generated/components/features--async-preview.md +5 -6
- package/docs/generated/components/features--combobox.md +71 -5
- package/docs/generated/components/features--comments.md +0 -1
- package/docs/generated/components/features--data-view.md +63 -8
- package/docs/generated/components/features--event-calendar.md +1 -2
- package/docs/generated/components/features--filters.md +11 -2
- package/docs/generated/components/features--global-search.md +1 -2
- package/docs/generated/components/features--kanban.md +1 -2
- package/docs/generated/components/features--map.md +1 -2
- package/docs/generated/components/features--media-library.md +105 -38
- package/docs/generated/components/features--mentions.md +7 -7
- package/docs/generated/components/features--overlays.md +75 -22
- package/docs/generated/components/features--products.md +10 -11
- package/docs/generated/components/features--resource-assignment.md +2 -3
- package/docs/generated/components/features--resource.md +3 -4
- package/docs/generated/components/features--rich-text-editor.md +42 -13
- package/docs/generated/components/features--schema-form.md +1 -2
- package/docs/generated/components/features--sync.md +2 -3
- package/docs/generated/components/features--table.md +162 -12
- package/docs/generated/components/features--theme-tweaker.md +30 -15
- package/docs/generated/components/forms.md +2 -2
- package/docs/generated/components/layout--app-shell.md +41 -11
- package/docs/generated/components/layout--auth.md +8 -9
- package/docs/generated/components/layout--containers.md +40 -1
- package/docs/generated/components/layout--header.md +2 -3
- package/docs/generated/components/layout--navigation.md +0 -1
- package/docs/generated/components/layout--page.md +33 -5
- package/docs/generated/components/layout--settings.md +0 -1
- package/docs/generated/components/layout--sidebar.md +47 -7
- package/docs/generated/components/layout--workspace.md +3 -4
- package/docs/generated/components/primitives.md +128 -17
- package/docs/generated/components/theming.md +147 -4
- package/docs/generated/components/ui-provider.md +96 -78
- package/docs/generated/composition-ladder.md +8 -8
- package/docs/generated/consumer-contract.json +5736 -0
- package/docs/generated/imports.md +104 -104
- package/docs/generated/migration-broad-imports.json +267 -90
- package/docs/generated/migration-broad-imports.md +266 -101
- package/docs/generated/migration-codemod.json +365 -70
- package/docs/generated/migration.md +665 -95
- package/docs/generated/profiles.md +27 -27
- package/docs/generated/public-api.md +104 -102
- package/docs/generated/recipes.json +755 -810
- package/docs/generated/workflows/communications-overview/analytics/communications-reference.tsx +19 -0
- package/docs/generated/workflows/index.json +691 -0
- package/docs/generated/workflows/media-picking/media-library/media-picking-reference.tsx +63 -0
- package/docs/generated/workflows/media-picking/media-library/reference-data.ts +3 -0
- package/docs/generated/workflows/multi-section-form/form-workflow/multi-section-reference.tsx +46 -0
- package/docs/generated/workflows/nested-action-flow/action-overlays/nested-action-reference.tsx +39 -0
- package/docs/generated/workflows/record-detail/page-layout/record-detail-reference.tsx +24 -0
- package/docs/generated/workflows/resource-index/data-view/resource-index-reference.tsx +51 -0
- package/docs/generated/workflows/scoped-resource-selection/combobox/scoped-resource-reference.tsx +50 -0
- package/docs/generated/workflows/website-content-editor/media-library/reference-data.ts +3 -0
- package/docs/generated/workflows/website-content-editor/rich-text-editor/website-content-reference.tsx +33 -0
- package/docs/generated/workflows/workspace-navigation/app-shell/workspace-navigation-reference.tsx +26 -0
- package/docs/learn/api-compatibility.md +5 -4
- package/docs/learn/blocks.md +123 -0
- package/docs/learn/composition.md +100 -19
- package/docs/learn/forms.md +23 -3
- package/docs/learn/framework-wiring.md +41 -13
- package/docs/learn/i18n.md +4 -2
- package/docs/learn/installation.md +60 -31
- package/docs/learn/migration.md +156 -5
- package/docs/learn/provider-and-scoping.md +37 -25
- package/docs/learn/reference-workflows.md +43 -0
- package/docs/learn/structure-and-spacing.md +147 -0
- package/docs/learn/theming.md +174 -131
- package/docs/learn/troubleshooting.md +88 -30
- package/docs/learn/verification.md +60 -5
- package/package.json +42 -473
- package/scripts/consumer/codemod.mjs +50 -32
- package/scripts/consumer/contract-reader.mjs +42 -0
- package/scripts/consumer/css-scan.mjs +51 -0
- package/scripts/consumer/diagnose.mjs +136 -0
- package/scripts/consumer/find-component.mjs +30 -17
- package/scripts/consumer/install-skill.mjs +93 -11
- package/src/styles/TOKENS.md +116 -275
- package/dist/accordion-6YPJ9XRO.js +0 -135
- package/dist/admin/patterns/access.css +0 -15
- package/dist/admin/patterns/commerce.css +0 -29
- package/dist/admin/patterns/commerce.js +0 -2493
- package/dist/avatar-CS7zow2q.js +0 -85
- package/dist/badge-CxOuTfVr.js +0 -63
- package/dist/base/accordion.css +0 -3
- package/dist/base/action-menu.css +0 -6
- package/dist/base/alert-dialog.css +0 -4
- package/dist/base/aspect-ratio.css +0 -2
- package/dist/base/avatar.css +0 -4
- package/dist/base/badge.css +0 -2
- package/dist/base/batch-action-bar.css +0 -5
- package/dist/base/buttons.css +0 -4
- package/dist/base/cards.css +0 -13
- package/dist/base/carousel.css +0 -5
- package/dist/base/chart.css +0 -2
- package/dist/base/choice-inputs.css +0 -10
- package/dist/base/combobox.css +0 -3
- package/dist/base/command.css +0 -9
- package/dist/base/context-menu.css +0 -2
- package/dist/base/copyable.css +0 -6
- package/dist/base/date-pickers.css +0 -11
- package/dist/base/dialog.css +0 -4
- package/dist/base/display.css +0 -8
- package/dist/base/dropdown-menu.css +0 -2
- package/dist/base/feedback.css +0 -5
- package/dist/base/forms-numeric.css +0 -12
- package/dist/base/forms.css +0 -14
- package/dist/base/hover-card.css +0 -2
- package/dist/base/input-group.css +0 -6
- package/dist/base/item.css +0 -9
- package/dist/base/label.css +0 -3
- package/dist/base/menubar.css +0 -2
- package/dist/base/navigation-menu.css +0 -2
- package/dist/base/navigation.css +0 -12
- package/dist/base/otp-input.css +0 -9
- package/dist/base/overlay.css +0 -4
- package/dist/base/popover-menu.css +0 -11
- package/dist/base/popover.css +0 -3
- package/dist/base/qr-code.css +0 -2
- package/dist/base/repeaters.css +0 -18
- package/dist/base/resizable.css +0 -2
- package/dist/base/sheet.css +0 -4
- package/dist/base/sidebar.css +0 -12
- package/dist/base/skeleton.css +0 -9
- package/dist/base/spinner.css +0 -2
- package/dist/base/structure.css +0 -2
- package/dist/base/table.css +0 -3
- package/dist/base/text-inputs.css +0 -2
- package/dist/base/timeline.css +0 -9
- package/dist/base/toaster.css +0 -2
- package/dist/base/toggle.css +0 -2
- package/dist/base/toolbar.css +0 -5
- package/dist/base/tooltip.css +0 -2
- package/dist/base/typography.css +0 -2
- package/dist/base/upload.css +0 -10
- package/dist/base/value-inputs.css +0 -14
- package/dist/buttons-CqXKWty3.js +0 -179
- package/dist/cards-C6Ulbkw7.js +0 -271
- package/dist/chart-nomhJ87z.js +0 -193
- package/dist/choice-inputs-OUDn0kQw.js +0 -680
- package/dist/combobox-C8oP92bT.js +0 -266
- package/dist/command-Bp3B6pUu.js +0 -143
- package/dist/comments-CAnDlyXO.js +0 -1438
- package/dist/components/admin/patterns/index.d.ts +0 -2
- package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
- package/dist/components/patterns/index.d.ts +0 -3
- package/dist/css/styles.css +0 -1
- package/dist/date-pickers-DOwIT-Nk.js +0 -661
- package/dist/display-B3Q17h5z.js +0 -645
- package/dist/dropdown-menu-TyNLCLML.js +0 -223
- package/dist/features/actions.css +0 -11
- package/dist/features/activities.css +0 -25
- package/dist/features/ai-chat.css +0 -14
- package/dist/features/async-preview.css +0 -10
- package/dist/features/combobox.css +0 -12
- package/dist/features/comments.css +0 -24
- package/dist/features/data-view.css +0 -31
- package/dist/features/event-calendar.css +0 -17
- package/dist/features/filters.css +0 -24
- package/dist/features/global-search.css +0 -19
- package/dist/features/kanban.css +0 -7
- package/dist/features/map.css +0 -15
- package/dist/features/media-library.css +0 -27
- package/dist/features/mentions.css +0 -17
- package/dist/features/overlays.css +0 -11
- package/dist/features/products.css +0 -29
- package/dist/features/resource-assignment.css +0 -14
- package/dist/features/resource.css +0 -15
- package/dist/features/rich-text-editor.css +0 -8
- package/dist/features/schema-form.css +0 -22
- package/dist/features/sync.css +0 -11
- package/dist/features/table.css +0 -20
- package/dist/features/theme-tweaker.css +0 -27
- package/dist/feedback-DRerHGuV.js +0 -469
- package/dist/forms-CPrGGif_.js +0 -242
- package/dist/forms-numeric-CPVsL7Vf.js +0 -569
- package/dist/index.css +0 -3
- package/dist/input-group-BYe0rhoB.js +0 -126
- package/dist/item-B3yQ26as.js +0 -146
- package/dist/layout/app-shell.css +0 -13
- package/dist/layout/auth.css +0 -14
- package/dist/layout/containers.css +0 -2
- package/dist/layout/header.css +0 -20
- package/dist/layout/navigation.css +0 -11
- package/dist/layout/page.css +0 -15
- package/dist/layout/settings.css +0 -16
- package/dist/layout/sidebar.css +0 -16
- package/dist/layout/workspace.css +0 -15
- package/dist/navigation-CsqTA16F.js +0 -614
- package/dist/navigation-DzxzPuwg.js +0 -202
- package/dist/overlay-WQOsLd69.js +0 -345
- package/dist/patterns/analytics.css +0 -15
- package/dist/patterns/onboarding.css +0 -11
- package/dist/patterns/timelines.css +0 -11
- package/dist/popover-DriLnIFc.js +0 -123
- package/dist/popover-menu-C2UCMAe7.js +0 -189
- package/dist/primitives.css +0 -3
- package/dist/repeaters-DuP1N0nw.js +0 -438
- package/dist/rich-text-editor-BQXFe9oN.js +0 -595
- package/dist/sidebar-D0N6ckJL.js +0 -412
- package/dist/skeleton-DGR9df28.js +0 -172
- package/dist/spinner-CUAVFecI.js +0 -52
- package/dist/styles/FACTORS.md +0 -36
- package/dist/styles/SCOPES.md +0 -86
- package/dist/styles/themes/default.css +0 -164
- package/dist/styles/theming/animation.css +0 -143
- package/dist/styles/theming/colors.css +0 -97
- package/dist/styles/theming/feedback.css +0 -17
- package/dist/styles/theming/field.css +0 -21
- package/dist/styles/theming/focus.css +0 -88
- package/dist/styles/theming/layers.css +0 -13
- package/dist/styles/theming/layout.css +0 -21
- package/dist/styles/theming/motion.css +0 -42
- package/dist/styles/theming/overlay.css +0 -52
- package/dist/styles/theming/sizing.css +0 -118
- package/dist/styles/theming/text.css +0 -30
- package/dist/styles/theming/typography.css +0 -26
- package/dist/styles/tokens/components.css +0 -22
- package/dist/styles/tokens/foundation.css +0 -80
- package/dist/styles/tokens/layout.css +0 -19
- package/dist/styles/tokens/palette.css +0 -88
- package/dist/styles/tokens/primitives.css +0 -18
- package/dist/styles/tokens/states.css +0 -77
- package/dist/table-BC4qqsUb.js +0 -180
- package/dist/table-BHDpjajL.js +0 -982
- package/dist/text-inputs-DF_lD7pA.js +0 -385
- package/dist/theming-D6KRU7hO.js +0 -104
- package/dist/toolbar-DWRywF0R.js +0 -68
- package/dist/tooltip-t1VQQ2tZ.js +0 -73
- package/dist/upload-B38YZeFJ.js +0 -938
- package/dist/value-inputs-Q4ymjXlV.js +0 -716
- package/src/styles/FACTORS.md +0 -36
- package/src/styles/SCOPES.md +0 -86
- /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
- /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
- /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
- /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { a, c as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { f as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
2
|
+
import "#core.css";
|
|
3
|
+
import { o as e, s as t } from "../typography-DmeR05Er.js";
|
|
4
|
+
import { t as n } from "../cx--CBrhWH0.js";
|
|
5
|
+
import { t as r } from "../ui-provider-DpzLUD12.js";
|
|
6
|
+
import { a as i, c as a } from "../buttons-BX2JfL5X.js";
|
|
7
|
+
import { t as o } from "../action-menu-BwiL_F6I.js";
|
|
8
|
+
import { t as s } from "../strings-Co9_qArR.js";
|
|
9
|
+
import { f as c, m as l } from "../primitives-BskKlf35.js";
|
|
10
|
+
import { p as u } from "../feedback-D4qVsKlD.js";
|
|
11
|
+
import { d } from "../display-a7AoX_u7.js";
|
|
12
|
+
import { s as f } from "../choice-inputs-NwRxvmZN.js";
|
|
13
|
+
import { r as p, u as m } from "../date-pickers-BwCwKIVM.js";
|
|
14
|
+
import { c as h, r as g, t as _ } from "../popover-CA7SP_iz.js";
|
|
14
15
|
import { CalendarIcon as v, ChevronLeftIcon as y, ChevronRightIcon as b, ExternalLinkIcon as x, UserIcon as S, UsersIcon as C } from "lucide-react";
|
|
15
16
|
import { useCallback as w, useMemo as T, useState as E } from "react";
|
|
16
17
|
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
17
18
|
import { addMonths as A, addWeeks as j, eachDayOfInterval as M, endOfMonth as N, endOfWeek as P, format as F, isSameDay as I, isSameMonth as L, isToday as R, isWeekend as z, startOfDay as B, startOfMonth as ee, startOfWeek as V, subMonths as H, subWeeks as te } from "date-fns";
|
|
19
|
+
import "#css/event-calendar.css";
|
|
18
20
|
//#region src/components/features/event-calendar/event-calendar.strings.ts
|
|
19
21
|
var U = {
|
|
20
22
|
today: "Today",
|
|
@@ -50,7 +52,11 @@ var U = {
|
|
|
50
52
|
function G(e) {
|
|
51
53
|
return e?.colorToken ?? "neutral";
|
|
52
54
|
}
|
|
53
|
-
|
|
55
|
+
function K(e) {
|
|
56
|
+
let t = G(e);
|
|
57
|
+
return t === "amber" || t === "yellow" ? "warning" : t;
|
|
58
|
+
}
|
|
59
|
+
var q = {
|
|
54
60
|
root: "event-calendar__root___xzCsb",
|
|
55
61
|
loading: "event-calendar__loading___-2JN6",
|
|
56
62
|
dot: "event-calendar__dot___t0qfF",
|
|
@@ -96,37 +102,37 @@ var K = {
|
|
|
96
102
|
};
|
|
97
103
|
//#endregion
|
|
98
104
|
//#region src/components/features/event-calendar/event-calendar-event-badge.tsx
|
|
99
|
-
function
|
|
100
|
-
let
|
|
105
|
+
function J({ event: e, category: i, compact: a = !1, onClick: o, strings: c }) {
|
|
106
|
+
let l = s(W, c), { locale: u, timeFormat: d } = r(), f = e.allDay ? null : F(e.startDate, d ?? "HH:mm", { locale: u }), p = e.metadata?.cellTitle, m = typeof p == "string" && p.trim() !== "" ? p : e.title;
|
|
101
107
|
return /* @__PURE__ */ k("button", {
|
|
102
108
|
type: "button",
|
|
103
109
|
"data-slot": "event-calendar-event-badge",
|
|
104
110
|
"data-compact": a || void 0,
|
|
105
|
-
"data-
|
|
106
|
-
className:
|
|
111
|
+
"data-tone": K(i),
|
|
112
|
+
className: n("event-calendar-event-badge--component", q.badge),
|
|
107
113
|
onClick: (e) => {
|
|
108
114
|
e.stopPropagation(), o?.();
|
|
109
115
|
},
|
|
110
|
-
"aria-label": f ?
|
|
116
|
+
"aria-label": f ? l.eventAt(m, f) : m,
|
|
111
117
|
title: m,
|
|
112
118
|
children: [
|
|
113
119
|
/* @__PURE__ */ O("span", {
|
|
114
120
|
"aria-hidden": !0,
|
|
115
|
-
className:
|
|
121
|
+
className: q.dot
|
|
116
122
|
}),
|
|
117
|
-
/* @__PURE__ */ O(
|
|
123
|
+
/* @__PURE__ */ O(t, {
|
|
118
124
|
tag: "span",
|
|
119
125
|
size: "xs",
|
|
120
126
|
weight: "medium",
|
|
121
|
-
className:
|
|
127
|
+
className: q.badgeTitle,
|
|
122
128
|
children: m
|
|
123
129
|
}),
|
|
124
|
-
!!f && /* @__PURE__ */ O(
|
|
130
|
+
!!f && /* @__PURE__ */ O(t, {
|
|
125
131
|
tag: "span",
|
|
126
132
|
size: "xs",
|
|
127
133
|
type: "secondary",
|
|
128
134
|
numeric: !0,
|
|
129
|
-
className:
|
|
135
|
+
className: q.badgeTime,
|
|
130
136
|
children: f
|
|
131
137
|
})
|
|
132
138
|
]
|
|
@@ -134,14 +140,14 @@ function ne({ event: t, category: r, compact: a = !1, onClick: o, strings: s })
|
|
|
134
140
|
}
|
|
135
141
|
//#endregion
|
|
136
142
|
//#region src/components/features/event-calendar/use-event-calendar-data.ts
|
|
137
|
-
function
|
|
143
|
+
function Y(e) {
|
|
138
144
|
let t = `${e.getMonth() + 1}`.padStart(2, "0"), n = `${e.getDate()}`.padStart(2, "0");
|
|
139
145
|
return `${e.getFullYear()}-${t}-${n}`;
|
|
140
146
|
}
|
|
141
|
-
function
|
|
147
|
+
function X(e, t) {
|
|
142
148
|
return e.allDay && !t.allDay ? -1 : !e.allDay && t.allDay ? 1 : e.startDate.getTime() - t.startDate.getTime();
|
|
143
149
|
}
|
|
144
|
-
function
|
|
150
|
+
function Z(e, t, n, r = {}) {
|
|
145
151
|
let { weekStartsOn: i = 1, showWeekends: a = !0, visibleCategories: o } = r;
|
|
146
152
|
return T(() => {
|
|
147
153
|
let r = ee(t), s = N(t), [c, l] = n === "month" ? [V(r, { weekStartsOn: i }), P(s, { weekStartsOn: i })] : n === "week" ? [V(t, { weekStartsOn: i }), P(t, { weekStartsOn: i })] : [r, s], u = M({
|
|
@@ -160,12 +166,12 @@ function Y(e, t, n, r = {}) {
|
|
|
160
166
|
start: t,
|
|
161
167
|
end: n
|
|
162
168
|
})) {
|
|
163
|
-
let t =
|
|
169
|
+
let t = Y(r), n = f.get(t);
|
|
164
170
|
n ? n.push(e) : f.set(t, [e]);
|
|
165
171
|
}
|
|
166
172
|
}
|
|
167
173
|
return u.filter((e) => a || !z(e)).map((e) => {
|
|
168
|
-
let n = [...f.get(
|
|
174
|
+
let n = [...f.get(Y(e)) ?? []].sort(X);
|
|
169
175
|
return {
|
|
170
176
|
date: e,
|
|
171
177
|
isCurrentMonth: L(e, t),
|
|
@@ -185,66 +191,66 @@ function Y(e, t, n, r = {}) {
|
|
|
185
191
|
i
|
|
186
192
|
]);
|
|
187
193
|
}
|
|
188
|
-
function
|
|
194
|
+
function ne(e, t) {
|
|
189
195
|
let n = B(t);
|
|
190
196
|
return e.filter((e) => {
|
|
191
197
|
let t = B(e.startDate), r = e.endDate ? B(e.endDate) : t;
|
|
192
198
|
return I(n, t) || I(n, r) || n > t && n < r;
|
|
193
|
-
}).sort(
|
|
199
|
+
}).sort(X);
|
|
194
200
|
}
|
|
195
|
-
function
|
|
201
|
+
function Q(e, t) {
|
|
196
202
|
return e.find((e) => e.id === t);
|
|
197
203
|
}
|
|
198
204
|
//#endregion
|
|
199
205
|
//#region src/components/features/event-calendar/event-calendar-day-cell.tsx
|
|
200
|
-
function re({ data:
|
|
201
|
-
let f =
|
|
206
|
+
function re({ data: e, categories: r, maxEvents: i = 3, onClick: a, onEventClick: o, compact: c = !1, strings: l, renderEvent: u }) {
|
|
207
|
+
let f = s(U, l), { date: p, isCurrentMonth: m, isToday: h, isWeekend: g, events: _, eventCount: v } = e, y = _.slice(0, i), b = Math.max(0, v - i), x = [...new Set(_.slice(i).map((e) => K(Q(r, e.category))))].slice(0, 3);
|
|
202
208
|
return /* @__PURE__ */ k("div", {
|
|
203
|
-
className:
|
|
209
|
+
className: n("event-calendar-day-cell--component", q.cell),
|
|
204
210
|
"data-today": h || void 0,
|
|
205
211
|
"data-weekend": g || void 0,
|
|
206
212
|
"data-outside": !m || void 0,
|
|
207
|
-
"data-compact":
|
|
213
|
+
"data-compact": c || void 0,
|
|
208
214
|
onClick: a,
|
|
209
215
|
children: [/* @__PURE__ */ O("button", {
|
|
210
216
|
type: "button",
|
|
211
|
-
className:
|
|
217
|
+
className: q.dayNumber,
|
|
212
218
|
onClick: (e) => {
|
|
213
219
|
e.stopPropagation(), a();
|
|
214
220
|
},
|
|
215
221
|
"aria-label": p.toDateString(),
|
|
216
|
-
children: /* @__PURE__ */ O(
|
|
222
|
+
children: /* @__PURE__ */ O(t, {
|
|
217
223
|
tag: "span",
|
|
218
224
|
type: "inherit",
|
|
219
|
-
size:
|
|
225
|
+
size: c ? "xs" : "sm",
|
|
220
226
|
weight: h ? "semibold" : "normal",
|
|
221
227
|
numeric: !0,
|
|
222
228
|
children: p.getDate()
|
|
223
229
|
})
|
|
224
230
|
}), /* @__PURE__ */ k("div", {
|
|
225
|
-
className:
|
|
231
|
+
className: q.cellEvents,
|
|
226
232
|
children: [y.map((e) => {
|
|
227
|
-
let t =
|
|
228
|
-
return u ? /* @__PURE__ */ O("div", { children: u(e, t) }, e.id) : /* @__PURE__ */ O(
|
|
233
|
+
let t = Q(r, e.category);
|
|
234
|
+
return u ? /* @__PURE__ */ O("div", { children: u(e, t) }, e.id) : /* @__PURE__ */ O(J, {
|
|
229
235
|
event: e,
|
|
230
236
|
category: t,
|
|
231
|
-
compact:
|
|
237
|
+
compact: c,
|
|
232
238
|
onClick: () => o ? o(e) : a()
|
|
233
239
|
}, e.id);
|
|
234
240
|
}), b > 0 && /* @__PURE__ */ k("div", {
|
|
235
241
|
"data-slot": "event-calendar-overflow",
|
|
236
|
-
className:
|
|
242
|
+
className: q.overflow,
|
|
237
243
|
children: [
|
|
238
244
|
/* @__PURE__ */ O("span", {
|
|
239
245
|
"aria-hidden": !0,
|
|
240
|
-
className:
|
|
246
|
+
className: q.overflowDots,
|
|
241
247
|
children: x.map((e) => /* @__PURE__ */ O("span", {
|
|
242
|
-
"data-
|
|
243
|
-
className:
|
|
248
|
+
"data-tone": e,
|
|
249
|
+
className: q.dot
|
|
244
250
|
}, e))
|
|
245
251
|
}),
|
|
246
|
-
/* @__PURE__ */ O(
|
|
247
|
-
/* @__PURE__ */ k(
|
|
252
|
+
/* @__PURE__ */ O(d, { children: f.moreEvents(b) }),
|
|
253
|
+
/* @__PURE__ */ k(t, {
|
|
248
254
|
"aria-hidden": !0,
|
|
249
255
|
size: "xs",
|
|
250
256
|
type: "secondary",
|
|
@@ -264,26 +270,26 @@ function re({ data: t, categories: r, maxEvents: i = 3, onClick: a, onEventClick
|
|
|
264
270
|
}
|
|
265
271
|
//#endregion
|
|
266
272
|
//#region src/components/features/event-calendar/event-calendar-event-card.tsx
|
|
267
|
-
function
|
|
268
|
-
let
|
|
273
|
+
function ie({ event: r, category: i, onClick: a, strings: o, className: s }) {
|
|
274
|
+
let u = {
|
|
269
275
|
...W,
|
|
270
276
|
...o
|
|
271
277
|
}, d = r.metadata ?? {}, f = typeof d.customerName == "string" ? d.customerName : void 0, p = typeof d.guestCount == "number" ? d.guestCount : void 0, m = typeof d.serviceName == "string" ? d.serviceName : void 0, h = /* @__PURE__ */ k(D, { children: [
|
|
272
278
|
/* @__PURE__ */ k("div", {
|
|
273
|
-
className:
|
|
279
|
+
className: q.cardHeader,
|
|
274
280
|
children: [/* @__PURE__ */ k("div", {
|
|
275
|
-
className:
|
|
276
|
-
children: [/* @__PURE__ */ O(
|
|
281
|
+
className: q.cardTitleGroup,
|
|
282
|
+
children: [/* @__PURE__ */ O(e, {
|
|
277
283
|
level: 4,
|
|
278
284
|
size: "sm",
|
|
279
285
|
children: r.title
|
|
280
286
|
}), !!i && /* @__PURE__ */ k("span", {
|
|
281
|
-
className:
|
|
287
|
+
className: q.cardCategory,
|
|
282
288
|
children: [/* @__PURE__ */ O("span", {
|
|
283
289
|
"aria-hidden": !0,
|
|
284
|
-
"data-
|
|
285
|
-
className:
|
|
286
|
-
}), /* @__PURE__ */ O(
|
|
290
|
+
"data-tone": K(i),
|
|
291
|
+
className: q.dot
|
|
292
|
+
}), /* @__PURE__ */ O(t, {
|
|
287
293
|
tag: "span",
|
|
288
294
|
size: "xs",
|
|
289
295
|
weight: "medium",
|
|
@@ -292,49 +298,49 @@ function Q({ event: r, category: i, onClick: a, strings: o, className: s }) {
|
|
|
292
298
|
})]
|
|
293
299
|
}), !!a && !!r.url && /* @__PURE__ */ O(x, {
|
|
294
300
|
"aria-hidden": !0,
|
|
295
|
-
className:
|
|
301
|
+
className: q.cardGlyph
|
|
296
302
|
})]
|
|
297
303
|
}),
|
|
298
304
|
(!!f || p !== void 0) && /* @__PURE__ */ k("div", {
|
|
299
|
-
className:
|
|
305
|
+
className: q.cardFacts,
|
|
300
306
|
children: [!!f && /* @__PURE__ */ k("span", {
|
|
301
|
-
className:
|
|
307
|
+
className: q.cardFact,
|
|
302
308
|
children: [/* @__PURE__ */ O(S, {
|
|
303
309
|
"aria-hidden": !0,
|
|
304
|
-
className:
|
|
305
|
-
}), /* @__PURE__ */ O(
|
|
310
|
+
className: q.cardGlyph
|
|
311
|
+
}), /* @__PURE__ */ O(t, {
|
|
306
312
|
tag: "span",
|
|
307
313
|
children: f
|
|
308
314
|
})]
|
|
309
315
|
}), p !== void 0 && p > 0 && /* @__PURE__ */ k("span", {
|
|
310
|
-
className:
|
|
316
|
+
className: q.cardFact,
|
|
311
317
|
children: [/* @__PURE__ */ O(C, {
|
|
312
318
|
"aria-hidden": !0,
|
|
313
|
-
className:
|
|
314
|
-
}), /* @__PURE__ */ k(
|
|
319
|
+
className: q.cardGlyph
|
|
320
|
+
}), /* @__PURE__ */ k(t, {
|
|
315
321
|
tag: "span",
|
|
316
322
|
children: [
|
|
317
323
|
p,
|
|
318
324
|
" ",
|
|
319
|
-
p === 1 ?
|
|
325
|
+
p === 1 ? u.guest : u.guests
|
|
320
326
|
]
|
|
321
327
|
})]
|
|
322
328
|
})]
|
|
323
329
|
}),
|
|
324
|
-
!!m && /* @__PURE__ */ O(
|
|
330
|
+
!!m && /* @__PURE__ */ O(t, {
|
|
325
331
|
type: "secondary",
|
|
326
332
|
children: m
|
|
327
333
|
}),
|
|
328
334
|
/* @__PURE__ */ k("div", {
|
|
329
|
-
className:
|
|
335
|
+
className: q.cardWhen,
|
|
330
336
|
children: [/* @__PURE__ */ O(v, {
|
|
331
337
|
"aria-hidden": !0,
|
|
332
|
-
className:
|
|
333
|
-
}), r.allDay ? /* @__PURE__ */ O(
|
|
338
|
+
className: q.cardGlyph
|
|
339
|
+
}), r.allDay ? /* @__PURE__ */ O(c, {
|
|
334
340
|
value: r.startDate,
|
|
335
341
|
size: "xs",
|
|
336
342
|
type: "secondary"
|
|
337
|
-
}) : /* @__PURE__ */ O(
|
|
343
|
+
}) : /* @__PURE__ */ O(l, {
|
|
338
344
|
value: r.startDate,
|
|
339
345
|
size: "xs",
|
|
340
346
|
type: "secondary"
|
|
@@ -345,18 +351,18 @@ function Q({ event: r, category: i, onClick: a, strings: o, className: s }) {
|
|
|
345
351
|
type: "button",
|
|
346
352
|
onClick: a,
|
|
347
353
|
"data-slot": "event-calendar-event-card",
|
|
348
|
-
className:
|
|
354
|
+
className: n("event-calendar-event-card--component", q.card, q.cardButton, s),
|
|
349
355
|
children: h
|
|
350
356
|
}) : /* @__PURE__ */ O("div", {
|
|
351
357
|
"data-slot": "event-calendar-event-card",
|
|
352
|
-
className:
|
|
358
|
+
className: n("event-calendar-event-card--component", q.card, s),
|
|
353
359
|
children: h
|
|
354
360
|
});
|
|
355
361
|
}
|
|
356
362
|
//#endregion
|
|
357
363
|
//#region src/components/features/event-calendar/event-calendar-header.tsx
|
|
358
|
-
function
|
|
359
|
-
let F =
|
|
364
|
+
function ae({ currentDate: t, viewMode: r, displayLabel: c, onPrevious: l, onNext: u, onToday: d, onViewModeChange: x, onDateChange: S, actions: C, strings: w, rangeMode: E = "date", minDate: A, maxDate: j, prevDisabled: M = !1, nextDisabled: N = !1, className: P }) {
|
|
365
|
+
let F = s(U, w), I = T(() => (C ?? []).filter((e) => e.visible !== !1), [C]), L = T(() => [
|
|
360
366
|
{
|
|
361
367
|
value: "month",
|
|
362
368
|
label: F.viewMode.month
|
|
@@ -375,37 +381,37 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
|
|
|
375
381
|
F.viewMode.week
|
|
376
382
|
]);
|
|
377
383
|
return /* @__PURE__ */ O("div", {
|
|
378
|
-
className:
|
|
384
|
+
className: n("event-calendar-header--component", q.header, P),
|
|
379
385
|
children: /* @__PURE__ */ k("div", {
|
|
380
|
-
className:
|
|
386
|
+
className: q.headerInner,
|
|
381
387
|
children: [/* @__PURE__ */ k("div", {
|
|
382
|
-
className:
|
|
383
|
-
children: [/* @__PURE__ */ O(
|
|
388
|
+
className: q.headerTitle,
|
|
389
|
+
children: [/* @__PURE__ */ O(e, {
|
|
384
390
|
level: 3,
|
|
385
|
-
children:
|
|
386
|
-
}), /* @__PURE__ */ k(_, { children: [/* @__PURE__ */ O(h, { render: /* @__PURE__ */ O(
|
|
391
|
+
children: c
|
|
392
|
+
}), /* @__PURE__ */ k(_, { children: [/* @__PURE__ */ O(h, { render: /* @__PURE__ */ O(a, {
|
|
387
393
|
type: "button",
|
|
388
394
|
tone: "neutral",
|
|
389
|
-
|
|
395
|
+
appearance: "ghost",
|
|
390
396
|
iconOnly: !0,
|
|
391
397
|
"aria-label": F.jumpToMonth,
|
|
392
398
|
children: /* @__PURE__ */ O(v, {})
|
|
393
399
|
}) }), /* @__PURE__ */ O(g, {
|
|
394
|
-
className:
|
|
400
|
+
className: q.jumpPopover,
|
|
395
401
|
children: E === "month-year" ? /* @__PURE__ */ O(p, {
|
|
396
402
|
value: {
|
|
397
|
-
month:
|
|
398
|
-
year:
|
|
403
|
+
month: t.getMonth(),
|
|
404
|
+
year: t.getFullYear()
|
|
399
405
|
},
|
|
400
|
-
onValueChange: ({ month: e, year:
|
|
401
|
-
let r = new Date(
|
|
402
|
-
r.setDate(1), r.setFullYear(
|
|
406
|
+
onValueChange: ({ month: e, year: n }) => {
|
|
407
|
+
let r = new Date(t);
|
|
408
|
+
r.setDate(1), r.setFullYear(n, e), S?.(r);
|
|
403
409
|
},
|
|
404
410
|
minYear: A?.getFullYear(),
|
|
405
411
|
maxYear: j?.getFullYear()
|
|
406
412
|
}) : /* @__PURE__ */ O(m, {
|
|
407
413
|
mode: "single",
|
|
408
|
-
value:
|
|
414
|
+
value: t,
|
|
409
415
|
onValueChange: (e) => {
|
|
410
416
|
e instanceof Date && S?.(e);
|
|
411
417
|
},
|
|
@@ -415,37 +421,37 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
|
|
|
415
421
|
})
|
|
416
422
|
})] })]
|
|
417
423
|
}), /* @__PURE__ */ k("div", {
|
|
418
|
-
className:
|
|
424
|
+
className: q.headerControls,
|
|
419
425
|
children: [
|
|
420
|
-
I.length > 0 && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(
|
|
426
|
+
I.length > 0 && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(o, {
|
|
421
427
|
actions: I,
|
|
422
|
-
className:
|
|
428
|
+
className: q.headerActions
|
|
423
429
|
}), /* @__PURE__ */ O("span", {
|
|
424
430
|
"aria-hidden": !0,
|
|
425
|
-
className:
|
|
431
|
+
className: q.headerSeparator
|
|
426
432
|
})] }),
|
|
427
|
-
/* @__PURE__ */ O(
|
|
433
|
+
/* @__PURE__ */ O(a, {
|
|
428
434
|
type: "button",
|
|
429
435
|
tone: "neutral",
|
|
430
|
-
|
|
431
|
-
onClick:
|
|
436
|
+
appearance: "outline",
|
|
437
|
+
onClick: d,
|
|
432
438
|
children: F.today
|
|
433
439
|
}),
|
|
434
|
-
/* @__PURE__ */ k(
|
|
440
|
+
/* @__PURE__ */ k(i, { children: [/* @__PURE__ */ O(a, {
|
|
435
441
|
type: "button",
|
|
436
442
|
tone: "neutral",
|
|
437
|
-
|
|
443
|
+
appearance: "outline",
|
|
438
444
|
iconOnly: !0,
|
|
439
|
-
onClick:
|
|
445
|
+
onClick: l,
|
|
440
446
|
disabled: M,
|
|
441
447
|
"aria-label": F.previous,
|
|
442
448
|
children: /* @__PURE__ */ O(y, {})
|
|
443
|
-
}), /* @__PURE__ */ O(
|
|
449
|
+
}), /* @__PURE__ */ O(a, {
|
|
444
450
|
type: "button",
|
|
445
451
|
tone: "neutral",
|
|
446
|
-
|
|
452
|
+
appearance: "outline",
|
|
447
453
|
iconOnly: !0,
|
|
448
|
-
onClick:
|
|
454
|
+
onClick: u,
|
|
449
455
|
disabled: N,
|
|
450
456
|
"aria-label": F.next,
|
|
451
457
|
children: /* @__PURE__ */ O(b, {})
|
|
@@ -455,7 +461,7 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
|
|
|
455
461
|
value: r,
|
|
456
462
|
options: L,
|
|
457
463
|
onValueChange: (e) => e && x(e),
|
|
458
|
-
className:
|
|
464
|
+
className: q.viewSelect
|
|
459
465
|
})
|
|
460
466
|
]
|
|
461
467
|
})]
|
|
@@ -464,55 +470,55 @@ function ie({ currentDate: n, viewMode: r, displayLabel: i, onPrevious: c, onNex
|
|
|
464
470
|
}
|
|
465
471
|
//#endregion
|
|
466
472
|
//#region src/components/features/event-calendar/event-calendar-legend.tsx
|
|
467
|
-
function
|
|
468
|
-
let
|
|
469
|
-
if (
|
|
470
|
-
let
|
|
473
|
+
function oe({ categories: e, visibleCategories: r, onToggleCategory: i, enableFiltering: a = !1, strings: o, className: c }) {
|
|
474
|
+
let l = s(U, o);
|
|
475
|
+
if (e.length === 0) return null;
|
|
476
|
+
let u = !r || r.length === 0;
|
|
471
477
|
return /* @__PURE__ */ O("div", {
|
|
472
478
|
role: a ? "group" : void 0,
|
|
473
|
-
"aria-label": a ?
|
|
474
|
-
className:
|
|
475
|
-
children:
|
|
476
|
-
let o = !a ||
|
|
479
|
+
"aria-label": a ? l.filterCategories : void 0,
|
|
480
|
+
className: n("event-calendar-legend--component", q.legend, c),
|
|
481
|
+
children: e.map((e) => {
|
|
482
|
+
let o = !a || u || !!r?.includes(e.id), s = /* @__PURE__ */ k(D, { children: [
|
|
477
483
|
/* @__PURE__ */ O("span", {
|
|
478
484
|
"aria-hidden": !0,
|
|
479
|
-
"data-
|
|
480
|
-
className:
|
|
485
|
+
"data-tone": o ? K(e) : void 0,
|
|
486
|
+
className: q.swatch
|
|
481
487
|
}),
|
|
482
|
-
!!
|
|
483
|
-
className:
|
|
484
|
-
children:
|
|
488
|
+
!!e.icon && /* @__PURE__ */ O("span", {
|
|
489
|
+
className: q.legendIcon,
|
|
490
|
+
children: e.icon
|
|
485
491
|
}),
|
|
486
|
-
/* @__PURE__ */ O(
|
|
492
|
+
/* @__PURE__ */ O(t, {
|
|
487
493
|
tag: "span",
|
|
488
494
|
size: "xs",
|
|
489
495
|
weight: "medium",
|
|
490
496
|
type: o ? "main" : "secondary",
|
|
491
|
-
children:
|
|
497
|
+
children: e.label
|
|
492
498
|
})
|
|
493
499
|
] });
|
|
494
500
|
return !a || !i ? /* @__PURE__ */ O("span", {
|
|
495
|
-
className:
|
|
501
|
+
className: q.chip,
|
|
496
502
|
children: s
|
|
497
|
-
},
|
|
503
|
+
}, e.id) : /* @__PURE__ */ O("button", {
|
|
498
504
|
type: "button",
|
|
499
505
|
"aria-pressed": o,
|
|
500
506
|
"data-off": !o || void 0,
|
|
501
|
-
className:
|
|
502
|
-
onClick: () => i(
|
|
507
|
+
className: n(q.chip, q.chipButton),
|
|
508
|
+
onClick: () => i(e.id),
|
|
503
509
|
children: s
|
|
504
|
-
},
|
|
510
|
+
}, e.id);
|
|
505
511
|
})
|
|
506
512
|
});
|
|
507
513
|
}
|
|
508
514
|
//#endregion
|
|
509
515
|
//#region src/components/features/event-calendar/use-event-calendar.ts
|
|
510
|
-
function
|
|
511
|
-
let { locale: l } =
|
|
516
|
+
function se({ events: e, date: t, defaultDate: n, viewMode: i, defaultViewMode: a = "month", onDateChange: o, onViewModeChange: s, dataOptions: c = {} }) {
|
|
517
|
+
let { locale: l } = r(), [u, d] = E(() => n ?? /* @__PURE__ */ new Date()), [f, p] = E(a), m = t ?? u, h = i ?? f, g = w((e) => {
|
|
512
518
|
t === void 0 && d(e), o?.(e);
|
|
513
519
|
}, [t, o]), _ = w((e) => {
|
|
514
|
-
|
|
515
|
-
}, [s,
|
|
520
|
+
i === void 0 && p(e), s?.(e);
|
|
521
|
+
}, [s, i]), v = Z(e, m, h, c), { visibleCategories: y } = c, b = T(() => y && y.length > 0 ? e.filter((e) => y.includes(e.category)) : e, [e, y]);
|
|
516
522
|
return {
|
|
517
523
|
currentDate: m,
|
|
518
524
|
viewMode: h,
|
|
@@ -548,38 +554,38 @@ function oe({ events: e, date: t, defaultDate: n, viewMode: r, defaultViewMode:
|
|
|
548
554
|
}
|
|
549
555
|
//#endregion
|
|
550
556
|
//#region src/components/features/event-calendar/event-calendar.tsx
|
|
551
|
-
function
|
|
557
|
+
function ce(e, t) {
|
|
552
558
|
return e ? Array.isArray(e) ? e.some((e) => e.toDateString() === t.toDateString()) : typeof e == "function" ? e(t) : (e.dates?.some((e) => e.toDateString() === t.toDateString()) ?? !1) || (e.predicate?.(t) ?? !1) : !1;
|
|
553
559
|
}
|
|
554
|
-
function
|
|
555
|
-
let W =
|
|
556
|
-
events:
|
|
560
|
+
function le({ events: e, categories: i, viewMode: a, defaultViewMode: o, onViewModeChange: c, date: l, defaultDate: d, onDateChange: f, onEventClick: p, onDayClick: m, maxEventsPerDay: h = 3, showLegend: g = !0, showHeader: _ = !0, showWeekends: v = !0, weekStartsOn: y, locale: b, enableCategoryFilter: x = !1, visibleCategories: S, onVisibleCategoriesChange: C, loading: w = !1, emptyStateMessage: D, className: A, compact: j = !1, actions: M, strings: N, dayHeadingVariant: P = "default", dayHeadingClassName: F, renderDayHeading: I, rangeMode: L = "date", minDate: R, maxDate: z, disabledDates: ee, filterEvent: V, renderEvent: H, renderDayCell: te }) {
|
|
561
|
+
let W = s(U, N), [G, K] = E([]), J = S ?? G, { weekStartsOn: Y, locale: X } = r(), Z = y ?? Y ?? 1, ne = b ?? X, Q = se({
|
|
562
|
+
events: e,
|
|
557
563
|
date: l,
|
|
558
|
-
defaultDate:
|
|
559
|
-
viewMode:
|
|
560
|
-
defaultViewMode:
|
|
564
|
+
defaultDate: d,
|
|
565
|
+
viewMode: a,
|
|
566
|
+
defaultViewMode: o,
|
|
561
567
|
onDateChange: f,
|
|
562
568
|
onViewModeChange: c,
|
|
563
569
|
dataOptions: {
|
|
564
|
-
weekStartsOn:
|
|
570
|
+
weekStartsOn: Z,
|
|
565
571
|
showWeekends: v,
|
|
566
|
-
visibleCategories:
|
|
572
|
+
visibleCategories: J.length > 0 ? J : void 0
|
|
567
573
|
}
|
|
568
|
-
}),
|
|
569
|
-
let t =
|
|
570
|
-
C ? C(n) :
|
|
571
|
-
},
|
|
572
|
-
let e = W.weekdaysShort, t = [...e.slice(
|
|
574
|
+
}), ie = (e) => {
|
|
575
|
+
let t = J.length === 0 ? i.filter((t) => t.id !== e).map((e) => e.id) : J.includes(e) ? J.filter((t) => t !== e) : [...J, e], n = t.length === i.length ? [] : t;
|
|
576
|
+
C ? C(n) : K(n);
|
|
577
|
+
}, le = T(() => {
|
|
578
|
+
let e = W.weekdaysShort, t = [...e.slice(Z), ...e.slice(0, Z)];
|
|
573
579
|
return v ? t : t.filter((e, t) => {
|
|
574
|
-
let n = (
|
|
580
|
+
let n = (Z + t) % 7;
|
|
575
581
|
return n !== 0 && n !== 6;
|
|
576
582
|
});
|
|
577
583
|
}, [
|
|
578
584
|
W.weekdaysShort,
|
|
579
585
|
v,
|
|
580
|
-
|
|
586
|
+
Z
|
|
581
587
|
]), de = (e) => {
|
|
582
|
-
if (
|
|
588
|
+
if (ce(ee, e)) return !0;
|
|
583
589
|
let t = B(e);
|
|
584
590
|
return !!(R && t < B(R) || z && t > B(z));
|
|
585
591
|
}, $ = T(() => V ? Q.calendarDays.map((e) => {
|
|
@@ -607,8 +613,8 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
607
613
|
de(e.date) || m?.(e.date, e.events);
|
|
608
614
|
};
|
|
609
615
|
if (w) return /* @__PURE__ */ O("div", {
|
|
610
|
-
className:
|
|
611
|
-
children: /* @__PURE__ */ O(
|
|
616
|
+
className: n("event-calendar--component", q.loading, A),
|
|
617
|
+
children: /* @__PURE__ */ O(t, {
|
|
612
618
|
type: "secondary",
|
|
613
619
|
children: W.loading
|
|
614
620
|
})
|
|
@@ -616,10 +622,10 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
616
622
|
let me = v ? 7 : 5;
|
|
617
623
|
return /* @__PURE__ */ k("div", {
|
|
618
624
|
"data-slot": "event-calendar",
|
|
619
|
-
className:
|
|
620
|
-
style: { "--
|
|
625
|
+
className: n("event-calendar--component", q.root, A),
|
|
626
|
+
style: { "--_calendar-columns": me },
|
|
621
627
|
children: [
|
|
622
|
-
_ && /* @__PURE__ */ O(
|
|
628
|
+
_ && /* @__PURE__ */ O(ae, {
|
|
623
629
|
currentDate: Q.currentDate,
|
|
624
630
|
viewMode: Q.viewMode,
|
|
625
631
|
displayLabel: Q.displayLabel,
|
|
@@ -628,7 +634,7 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
628
634
|
onToday: Q.goToToday,
|
|
629
635
|
onViewModeChange: Q.setViewMode,
|
|
630
636
|
onDateChange: Q.setDate,
|
|
631
|
-
locale:
|
|
637
|
+
locale: ne,
|
|
632
638
|
actions: M,
|
|
633
639
|
rangeMode: L,
|
|
634
640
|
minDate: R,
|
|
@@ -637,44 +643,43 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
637
643
|
nextDisabled: fe.next,
|
|
638
644
|
strings: W
|
|
639
645
|
}),
|
|
640
|
-
g &&
|
|
641
|
-
categories:
|
|
642
|
-
visibleCategories:
|
|
643
|
-
onToggleCategory: x ?
|
|
646
|
+
g && i.length > 0 && /* @__PURE__ */ O(oe, {
|
|
647
|
+
categories: i,
|
|
648
|
+
visibleCategories: J,
|
|
649
|
+
onToggleCategory: x ? ie : void 0,
|
|
644
650
|
enableFiltering: x,
|
|
645
651
|
strings: W
|
|
646
652
|
}),
|
|
647
|
-
!Q.hasEvents && D ? /* @__PURE__ */ O(
|
|
653
|
+
!Q.hasEvents && D ? /* @__PURE__ */ O(u, {
|
|
648
654
|
title: D,
|
|
649
655
|
description: !1,
|
|
650
|
-
padding: "md",
|
|
651
656
|
border: !0
|
|
652
|
-
}) : Q.viewMode === "agenda" ? /* @__PURE__ */ O(
|
|
657
|
+
}) : Q.viewMode === "agenda" ? /* @__PURE__ */ O(ue, {
|
|
653
658
|
days: $,
|
|
654
|
-
categories:
|
|
659
|
+
categories: i,
|
|
655
660
|
emptyLabel: W.emptyDay,
|
|
656
661
|
onEventClick: p,
|
|
657
662
|
renderEvent: H
|
|
658
663
|
}) : /* @__PURE__ */ k("div", {
|
|
659
|
-
className:
|
|
664
|
+
className: q.grid,
|
|
660
665
|
children: [/* @__PURE__ */ O("div", {
|
|
661
|
-
className:
|
|
666
|
+
className: q.weekdays,
|
|
662
667
|
"data-variant": P,
|
|
663
|
-
children:
|
|
664
|
-
className:
|
|
665
|
-
children: /* @__PURE__ */ O(
|
|
668
|
+
children: le.map((e, r) => I ? /* @__PURE__ */ O("div", { children: I(e, r) }, e) : /* @__PURE__ */ O("div", {
|
|
669
|
+
className: n(q.weekday, F),
|
|
670
|
+
children: /* @__PURE__ */ O(t, {
|
|
666
671
|
type: "inherit",
|
|
667
672
|
size: "xs",
|
|
668
673
|
weight: P === "accent" ? "medium" : "normal",
|
|
669
|
-
children:
|
|
674
|
+
children: e
|
|
670
675
|
})
|
|
671
|
-
},
|
|
676
|
+
}, e))
|
|
672
677
|
}), /* @__PURE__ */ O("div", {
|
|
673
|
-
className:
|
|
678
|
+
className: q.days,
|
|
674
679
|
children: $.map((e) => {
|
|
675
680
|
let t = de(e.date), n = () => /* @__PURE__ */ O(re, {
|
|
676
681
|
data: e,
|
|
677
|
-
categories:
|
|
682
|
+
categories: i,
|
|
678
683
|
maxEvents: h,
|
|
679
684
|
onClick: () => pe(e),
|
|
680
685
|
onEventClick: p,
|
|
@@ -683,7 +688,7 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
683
688
|
renderEvent: H
|
|
684
689
|
});
|
|
685
690
|
return /* @__PURE__ */ O("div", {
|
|
686
|
-
className:
|
|
691
|
+
className: q.dayWrap,
|
|
687
692
|
"data-disabled": t || void 0,
|
|
688
693
|
"aria-disabled": t || void 0,
|
|
689
694
|
children: te ? te(e, n) : n()
|
|
@@ -694,26 +699,25 @@ function ce({ events: t, categories: a, viewMode: o, defaultViewMode: s, onViewM
|
|
|
694
699
|
]
|
|
695
700
|
});
|
|
696
701
|
}
|
|
697
|
-
function
|
|
698
|
-
let
|
|
699
|
-
return
|
|
700
|
-
title:
|
|
702
|
+
function ue({ days: e, categories: n, emptyLabel: r, onEventClick: i, renderEvent: a }) {
|
|
703
|
+
let o = e.filter((e) => e.eventCount > 0);
|
|
704
|
+
return o.length === 0 ? /* @__PURE__ */ O(u, {
|
|
705
|
+
title: r,
|
|
701
706
|
description: !1,
|
|
702
|
-
padding: "md",
|
|
703
707
|
border: !0
|
|
704
708
|
}) : /* @__PURE__ */ O("div", {
|
|
705
|
-
className:
|
|
706
|
-
children:
|
|
707
|
-
className:
|
|
709
|
+
className: q.agenda,
|
|
710
|
+
children: o.map((e) => /* @__PURE__ */ k("section", {
|
|
711
|
+
className: q.agendaDay,
|
|
708
712
|
"data-today": e.isToday || void 0,
|
|
709
713
|
children: [/* @__PURE__ */ k("div", {
|
|
710
|
-
className:
|
|
711
|
-
children: [/* @__PURE__ */ O(
|
|
714
|
+
className: q.agendaDate,
|
|
715
|
+
children: [/* @__PURE__ */ O(t, {
|
|
712
716
|
size: "xs",
|
|
713
717
|
type: "secondary",
|
|
714
718
|
weight: "medium",
|
|
715
719
|
children: e.date.toLocaleDateString(void 0, { weekday: "short" })
|
|
716
|
-
}), /* @__PURE__ */ O(
|
|
720
|
+
}), /* @__PURE__ */ O(t, {
|
|
717
721
|
type: "inherit",
|
|
718
722
|
size: "lg",
|
|
719
723
|
weight: "semibold",
|
|
@@ -721,13 +725,13 @@ function le({ days: e, categories: t, emptyLabel: i, onEventClick: a, renderEven
|
|
|
721
725
|
children: e.date.getDate()
|
|
722
726
|
})]
|
|
723
727
|
}), /* @__PURE__ */ O("div", {
|
|
724
|
-
className:
|
|
728
|
+
className: q.agendaEvents,
|
|
725
729
|
children: e.events.map((e) => {
|
|
726
|
-
let
|
|
727
|
-
return
|
|
730
|
+
let t = Q(n, e.category);
|
|
731
|
+
return a ? /* @__PURE__ */ O("div", { children: a(e, t) }, e.id) : /* @__PURE__ */ O(ie, {
|
|
728
732
|
event: e,
|
|
729
|
-
category:
|
|
730
|
-
onClick:
|
|
733
|
+
category: t,
|
|
734
|
+
onClick: i ? () => i(e) : void 0
|
|
731
735
|
}, e.id);
|
|
732
736
|
})
|
|
733
737
|
})]
|
|
@@ -735,4 +739,4 @@ function le({ days: e, categories: t, emptyLabel: i, onEventClick: a, renderEven
|
|
|
735
739
|
});
|
|
736
740
|
}
|
|
737
741
|
//#endregion
|
|
738
|
-
export {
|
|
742
|
+
export { le as EventCalendar, re as EventCalendarDayCell, J as EventCalendarEventBadge, ie as EventCalendarEventCard, ae as EventCalendarHeader, oe as EventCalendarLegend, W as defaultEventCalendarEventCardStrings, U as defaultEventCalendarStrings, Q as getCategoryById, ne as getEventsForDay, G as resolveCategoryColorToken, se as useEventCalendar, Z as useEventCalendarData };
|