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,680 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./cx--CBrhWH0.js";
|
|
2
|
-
import { o as t } from "./typography-BkxEiwQ1.js";
|
|
3
|
-
import { u as n } from "./ui-provider-Cmoq6i_D.js";
|
|
4
|
-
import { i as r, n as i, t as a } from "./tooltip-t1VQQ2tZ.js";
|
|
5
|
-
import { d as o } from "./display-B3Q17h5z.js";
|
|
6
|
-
import { o as s } from "./structure-D0WGQAP3.js";
|
|
7
|
-
import { t as c } from "./label-DumoMDm6.js";
|
|
8
|
-
import { CheckIcon as l, ChevronDownIcon as u, ChevronUpIcon as d, CircleCheckIcon as f, CircleIcon as p, InfoIcon as m, MinusIcon as h } from "lucide-react";
|
|
9
|
-
import * as g from "react";
|
|
10
|
-
import { forwardRef as _, isValidElement as v, useCallback as y, useId as b, useMemo as x, useRef as S, useState as C } from "react";
|
|
11
|
-
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
12
|
-
import { Select as D } from "@base-ui/react/select";
|
|
13
|
-
import { Radio as O } from "@base-ui/react/radio";
|
|
14
|
-
import { RadioGroup as k } from "@base-ui/react/radio-group";
|
|
15
|
-
var A = {
|
|
16
|
-
field: "choice__field___a3Vcp",
|
|
17
|
-
control: "choice__control___NmimT",
|
|
18
|
-
label: "choice__label___G8WMe",
|
|
19
|
-
input: "choice__input___q7iK1",
|
|
20
|
-
radio: "choice__radio___qIw7K",
|
|
21
|
-
checkbox: "choice__checkbox___2CV9G",
|
|
22
|
-
mark: "choice__mark___dfDSJ",
|
|
23
|
-
checkMark: "choice__checkMark___kQ_oh",
|
|
24
|
-
dashMark: "choice__dashMark___7GQqG",
|
|
25
|
-
dot: "choice__dot___IOV2q",
|
|
26
|
-
switch: "choice__switch___ZejHh",
|
|
27
|
-
thumb: "choice__thumb___s06gp",
|
|
28
|
-
cardGrid: "choice__cardGrid___jzAPL",
|
|
29
|
-
columns1: "choice__columns1___D6QyC",
|
|
30
|
-
columns2: "choice__columns2___JzYeW",
|
|
31
|
-
columns3: "choice__columns3___5dA4V",
|
|
32
|
-
columns4: "choice__columns4___qs3Z0",
|
|
33
|
-
card: "choice__card___pQotQ",
|
|
34
|
-
switchCard: "choice__switchCard___MSJcJ",
|
|
35
|
-
cardMark: "choice__cardMark___BNtV9",
|
|
36
|
-
cardIcon: "choice__cardIcon___FHnbH",
|
|
37
|
-
list: "choice__list___SPpSu",
|
|
38
|
-
listRow: "choice__listRow___xuIb4",
|
|
39
|
-
listMarker: "choice__listMarker___mjLL0",
|
|
40
|
-
listMarkerDot: "choice__listMarkerDot___UCEgd",
|
|
41
|
-
pillGroup: "choice__pillGroup___3kp58",
|
|
42
|
-
pillGroupFullWidth: "choice__pillGroupFullWidth___lpu0o",
|
|
43
|
-
pill: "choice__pill___k7Jfx",
|
|
44
|
-
pillFullWidth: "choice__pillFullWidth___3MFR0",
|
|
45
|
-
row: "choice__row___1a0NE",
|
|
46
|
-
rowDisabled: "choice__rowDisabled___EKWak",
|
|
47
|
-
switchCardIcon: "choice__switchCardIcon___iADoS",
|
|
48
|
-
rowText: "choice__rowText___nA6jl",
|
|
49
|
-
rowControl: "choice__rowControl___27GaB",
|
|
50
|
-
rowLabel: "choice__rowLabel___BUP0L",
|
|
51
|
-
description: "choice__description___O0gz9",
|
|
52
|
-
hint: "choice__hint___wMp0y",
|
|
53
|
-
info: "choice__info___iBbjH",
|
|
54
|
-
cardText: "choice__cardText___SfW9J",
|
|
55
|
-
labelLine: "choice__labelLine___lRgLI"
|
|
56
|
-
}, j = g.forwardRef(function({ label: t, indeterminate: n = !1, className: r, ...i }, a) {
|
|
57
|
-
let o = g.useRef(null);
|
|
58
|
-
return g.useImperativeHandle(a, () => o.current), g.useEffect(() => {
|
|
59
|
-
o.current && (o.current.indeterminate = n);
|
|
60
|
-
}, [n]), /* @__PURE__ */ E("label", {
|
|
61
|
-
className: e("checkbox--component", A.field, r),
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ T("input", {
|
|
64
|
-
ref: o,
|
|
65
|
-
type: "checkbox",
|
|
66
|
-
"data-slot": "checkbox",
|
|
67
|
-
className: A.input,
|
|
68
|
-
...i
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ E("span", {
|
|
71
|
-
className: e(A.control, A.checkbox),
|
|
72
|
-
children: [/* @__PURE__ */ T(l, {
|
|
73
|
-
"aria-hidden": !0,
|
|
74
|
-
className: e(A.mark, A.checkMark)
|
|
75
|
-
}), /* @__PURE__ */ T(h, {
|
|
76
|
-
"aria-hidden": !0,
|
|
77
|
-
className: e(A.mark, A.dashMark)
|
|
78
|
-
})]
|
|
79
|
-
}),
|
|
80
|
-
!!t && /* @__PURE__ */ T("span", {
|
|
81
|
-
className: A.label,
|
|
82
|
-
children: t
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
});
|
|
86
|
-
}), M = g.createContext({}), N = g.forwardRef(function({ label: t, className: n, name: r, ...i }, a) {
|
|
87
|
-
let o = g.useContext(M);
|
|
88
|
-
return /* @__PURE__ */ E("label", {
|
|
89
|
-
className: e("radio--component", A.field, n),
|
|
90
|
-
children: [
|
|
91
|
-
/* @__PURE__ */ T("input", {
|
|
92
|
-
ref: a,
|
|
93
|
-
type: "radio",
|
|
94
|
-
"data-slot": "radio",
|
|
95
|
-
name: r ?? o.name,
|
|
96
|
-
className: A.input,
|
|
97
|
-
...i
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ T("span", {
|
|
100
|
-
className: e(A.control, A.radio),
|
|
101
|
-
children: /* @__PURE__ */ T(p, {
|
|
102
|
-
"aria-hidden": !0,
|
|
103
|
-
className: A.dot
|
|
104
|
-
})
|
|
105
|
-
}),
|
|
106
|
-
!!t && /* @__PURE__ */ T("span", {
|
|
107
|
-
className: A.label,
|
|
108
|
-
children: t
|
|
109
|
-
})
|
|
110
|
-
]
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
function P({ name: t, orientation: n = "vertical", className: r, children: i, ...a }) {
|
|
114
|
-
let o = g.useMemo(() => ({ name: t }), [t]);
|
|
115
|
-
return /* @__PURE__ */ T(M.Provider, {
|
|
116
|
-
value: o,
|
|
117
|
-
children: /* @__PURE__ */ T(s, {
|
|
118
|
-
role: "radiogroup",
|
|
119
|
-
"data-slot": "radio-group",
|
|
120
|
-
direction: n === "horizontal" ? "horizontal" : "vertical",
|
|
121
|
-
gap: n === "horizontal" ? "xl" : "sm",
|
|
122
|
-
align: "start",
|
|
123
|
-
wrap: n === "horizontal",
|
|
124
|
-
className: e("radio-group--component", r),
|
|
125
|
-
...a,
|
|
126
|
-
children: i
|
|
127
|
-
})
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
//#endregion
|
|
131
|
-
//#region src/components/base/choice-inputs/switch.tsx
|
|
132
|
-
var F = g.forwardRef(function({ label: t, className: n, ...r }, i) {
|
|
133
|
-
return /* @__PURE__ */ E("label", {
|
|
134
|
-
className: e("switch--component", A.field, n),
|
|
135
|
-
children: [
|
|
136
|
-
/* @__PURE__ */ T("input", {
|
|
137
|
-
ref: i,
|
|
138
|
-
type: "checkbox",
|
|
139
|
-
role: "switch",
|
|
140
|
-
"data-slot": "switch",
|
|
141
|
-
className: A.input,
|
|
142
|
-
...r
|
|
143
|
-
}),
|
|
144
|
-
/* @__PURE__ */ T("span", {
|
|
145
|
-
className: e(A.control, A.switch),
|
|
146
|
-
children: /* @__PURE__ */ T("span", { className: A.thumb })
|
|
147
|
-
}),
|
|
148
|
-
!!t && /* @__PURE__ */ T("span", {
|
|
149
|
-
className: A.label,
|
|
150
|
-
children: t
|
|
151
|
-
})
|
|
152
|
-
]
|
|
153
|
-
});
|
|
154
|
-
}), I = {
|
|
155
|
-
placeholder: "Select an option",
|
|
156
|
-
clear: "Clear selection"
|
|
157
|
-
}, L = {
|
|
158
|
-
trigger: "select__trigger___z7ds0",
|
|
159
|
-
value: "select__value___FKzbX",
|
|
160
|
-
triggerIcon: "select__triggerIcon___Y3UQR",
|
|
161
|
-
positioner: "select__positioner___lIuFM",
|
|
162
|
-
popup: "select__popup___mg1JV",
|
|
163
|
-
group: "select__group___wCVW4",
|
|
164
|
-
item: "select__item___dvbLt",
|
|
165
|
-
itemText: "select__itemText___hc7OU",
|
|
166
|
-
optionIcon: "select__optionIcon___znn1F",
|
|
167
|
-
optionText: "select__optionText___If84j",
|
|
168
|
-
optionDescription: "select__optionDescription___aAfRR",
|
|
169
|
-
indicator: "select__indicator___ACKlr",
|
|
170
|
-
label: "select__label___cG01Q",
|
|
171
|
-
separator: "select__separator___R2gDY",
|
|
172
|
-
scrollArrow: "select__scrollArrow___1BObE",
|
|
173
|
-
scrollArrowUp: "select__scrollArrowUp___lqMbh",
|
|
174
|
-
scrollArrowDown: "select__scrollArrowDown____ZHhB"
|
|
175
|
-
};
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/components/base/choice-inputs/select-popup.tsx
|
|
178
|
-
function R(e) {
|
|
179
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
180
|
-
}
|
|
181
|
-
function ee({ container: t, className: r, children: i, side: a = "bottom", sideOffset: o = 4, align: s = "start", alignOffset: c = 0, alignItemWithTrigger: l = !1, ...u }) {
|
|
182
|
-
let d = n(t);
|
|
183
|
-
return /* @__PURE__ */ T(D.Portal, {
|
|
184
|
-
container: d,
|
|
185
|
-
children: /* @__PURE__ */ T(D.Positioner, {
|
|
186
|
-
side: a,
|
|
187
|
-
sideOffset: o,
|
|
188
|
-
align: s,
|
|
189
|
-
alignOffset: c,
|
|
190
|
-
alignItemWithTrigger: l,
|
|
191
|
-
className: L.positioner,
|
|
192
|
-
children: /* @__PURE__ */ E(D.Popup, {
|
|
193
|
-
"data-slot": "select-content",
|
|
194
|
-
"data-align-trigger": l,
|
|
195
|
-
className: e("select-popup--component", L.popup, r),
|
|
196
|
-
...u,
|
|
197
|
-
children: [
|
|
198
|
-
/* @__PURE__ */ T(H, {}),
|
|
199
|
-
/* @__PURE__ */ T(D.List, { children: i }),
|
|
200
|
-
/* @__PURE__ */ T(U, {})
|
|
201
|
-
]
|
|
202
|
-
})
|
|
203
|
-
})
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
function te({ className: t, ...n }) {
|
|
207
|
-
return /* @__PURE__ */ T(D.Group, {
|
|
208
|
-
"data-slot": "select-group",
|
|
209
|
-
className: e("select-popup--group", L.group, t),
|
|
210
|
-
...n
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
function z({ className: n, children: r, ...i }) {
|
|
214
|
-
return /* @__PURE__ */ E(D.Item, {
|
|
215
|
-
"data-slot": "select-item",
|
|
216
|
-
className: e("select-popup--item", L.item, n),
|
|
217
|
-
...i,
|
|
218
|
-
children: [/* @__PURE__ */ T(D.ItemText, {
|
|
219
|
-
className: L.itemText,
|
|
220
|
-
children: R(r) ? /* @__PURE__ */ T(t, {
|
|
221
|
-
tag: "span",
|
|
222
|
-
size: "inherit",
|
|
223
|
-
lineHeight: "tight",
|
|
224
|
-
children: r
|
|
225
|
-
}) : r
|
|
226
|
-
}), /* @__PURE__ */ T(D.ItemIndicator, {
|
|
227
|
-
className: L.indicator,
|
|
228
|
-
children: /* @__PURE__ */ T(l, { "aria-hidden": !0 })
|
|
229
|
-
})]
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
function B({ className: t, children: n, ...r }) {
|
|
233
|
-
return /* @__PURE__ */ T(D.GroupLabel, {
|
|
234
|
-
"data-slot": "select-label",
|
|
235
|
-
className: e("select-popup--label", L.label, t),
|
|
236
|
-
...r,
|
|
237
|
-
children: n
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
function V({ className: t, ...n }) {
|
|
241
|
-
return /* @__PURE__ */ T(D.Separator, {
|
|
242
|
-
"data-slot": "select-separator",
|
|
243
|
-
className: e("select-popup--separator", L.separator, t),
|
|
244
|
-
...n
|
|
245
|
-
});
|
|
246
|
-
}
|
|
247
|
-
function H(t) {
|
|
248
|
-
return /* @__PURE__ */ T(D.ScrollUpArrow, {
|
|
249
|
-
className: e(L.scrollArrow, L.scrollArrowUp),
|
|
250
|
-
...t,
|
|
251
|
-
children: /* @__PURE__ */ T(d, { "aria-hidden": !0 })
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function U(t) {
|
|
255
|
-
return /* @__PURE__ */ T(D.ScrollDownArrow, {
|
|
256
|
-
className: e(L.scrollArrow, L.scrollArrowDown),
|
|
257
|
-
...t,
|
|
258
|
-
children: /* @__PURE__ */ T(u, { "aria-hidden": !0 })
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
var W = D.Root, G = D.Trigger, ne = D.Value, re = D.Icon, K = "__ui_select_clear__", q = "__ui_select_option__:", ie = (e) => e === "" ? K : `${q}${e}`, ae = (e) => e === "" || e == null ? null : `${q}${e}`;
|
|
262
|
-
function oe(e) {
|
|
263
|
-
if (e !== null && e !== K) return e.startsWith(q) ? e.slice(21) : void 0;
|
|
264
|
-
}
|
|
265
|
-
function se({ option: n }) {
|
|
266
|
-
return /* @__PURE__ */ E(w, { children: [n.icon != null && /* @__PURE__ */ T("span", {
|
|
267
|
-
"aria-hidden": !0,
|
|
268
|
-
className: e("select--option-icon", L.optionIcon),
|
|
269
|
-
children: n.icon
|
|
270
|
-
}), /* @__PURE__ */ E("span", {
|
|
271
|
-
className: e("select--option-text", L.optionText),
|
|
272
|
-
children: [/* @__PURE__ */ T(t, {
|
|
273
|
-
tag: "span",
|
|
274
|
-
size: "inherit",
|
|
275
|
-
lineHeight: "tight",
|
|
276
|
-
weight: n.description ? "medium" : "regular",
|
|
277
|
-
truncate: !0,
|
|
278
|
-
className: "select--option-label",
|
|
279
|
-
children: n.label
|
|
280
|
-
}), !!n.description && /* @__PURE__ */ T("span", {
|
|
281
|
-
className: e("select--option-description", L.optionDescription),
|
|
282
|
-
children: n.description
|
|
283
|
-
})]
|
|
284
|
-
})] });
|
|
285
|
-
}
|
|
286
|
-
var J = _(function(n, r) {
|
|
287
|
-
let i = Object.prototype.hasOwnProperty.call(n, "value"), { options: a, placeholder: o, strings: s, allowClear: c = !1, invalid: l, value: d, defaultValue: f, onValueChange: p, disabled: m, readOnly: h, required: g, name: _, form: v, autoComplete: b, inputRef: S, id: C, open: w, defaultOpen: O, onOpenChange: k, modal: A, highlightItemOnHover: j, side: M, align: N, alignItemWithTrigger: P, renderOption: F, renderValue: R, className: B, contentClassName: V, onFocus: H, onBlur: U, "aria-label": W, "aria-labelledby": G, "aria-describedby": ne, "aria-invalid": re } = n, q = {
|
|
288
|
-
...I,
|
|
289
|
-
...s,
|
|
290
|
-
...o ? { placeholder: o } : null
|
|
291
|
-
}, J = x(() => {
|
|
292
|
-
let e = a.map((e) => ({
|
|
293
|
-
option: e,
|
|
294
|
-
internalValue: ie(e.value)
|
|
295
|
-
}));
|
|
296
|
-
return c && !e.some((e) => e.internalValue === K) && e.unshift({
|
|
297
|
-
internalValue: K,
|
|
298
|
-
option: {
|
|
299
|
-
value: "",
|
|
300
|
-
label: q.placeholder
|
|
301
|
-
}
|
|
302
|
-
}), e;
|
|
303
|
-
}, [
|
|
304
|
-
c,
|
|
305
|
-
a,
|
|
306
|
-
q.placeholder
|
|
307
|
-
]), Y = x(() => new Map(J.map((e) => [e.internalValue, e.option])), [J]), X = y((e) => p?.(oe(e)), [p]), Z = y((e) => oe(e) ?? "", []);
|
|
308
|
-
return /* @__PURE__ */ E(D.Root, {
|
|
309
|
-
onValueChange: X,
|
|
310
|
-
disabled: m,
|
|
311
|
-
readOnly: h,
|
|
312
|
-
required: g,
|
|
313
|
-
name: _,
|
|
314
|
-
form: v,
|
|
315
|
-
autoComplete: b,
|
|
316
|
-
inputRef: S,
|
|
317
|
-
id: C,
|
|
318
|
-
open: w,
|
|
319
|
-
defaultOpen: O,
|
|
320
|
-
onOpenChange: k,
|
|
321
|
-
modal: A,
|
|
322
|
-
highlightItemOnHover: j,
|
|
323
|
-
defaultValue: ae(f),
|
|
324
|
-
itemToStringValue: Z,
|
|
325
|
-
...i ? { value: ae(d) } : {},
|
|
326
|
-
children: [/* @__PURE__ */ E(D.Trigger, {
|
|
327
|
-
ref: r,
|
|
328
|
-
"data-field-control": "",
|
|
329
|
-
"aria-label": W,
|
|
330
|
-
"aria-labelledby": G,
|
|
331
|
-
"aria-describedby": ne,
|
|
332
|
-
"aria-invalid": l || re || void 0,
|
|
333
|
-
onFocus: H,
|
|
334
|
-
onBlur: U,
|
|
335
|
-
className: e("select--component", L.trigger, B),
|
|
336
|
-
children: [/* @__PURE__ */ T(D.Value, {
|
|
337
|
-
className: e("select--value", L.value),
|
|
338
|
-
children: (e) => {
|
|
339
|
-
let n = e, r = n && n !== K ? Y.get(n) : void 0, i = R ? R(r) : r?.label ?? q.placeholder;
|
|
340
|
-
return typeof i == "string" ? /* @__PURE__ */ T(t, {
|
|
341
|
-
tag: "span",
|
|
342
|
-
size: "inherit",
|
|
343
|
-
lineHeight: "tight",
|
|
344
|
-
truncate: !0,
|
|
345
|
-
children: i
|
|
346
|
-
}) : i;
|
|
347
|
-
}
|
|
348
|
-
}), /* @__PURE__ */ T(D.Icon, {
|
|
349
|
-
className: L.triggerIcon,
|
|
350
|
-
children: /* @__PURE__ */ T(u, { "aria-hidden": !0 })
|
|
351
|
-
})]
|
|
352
|
-
}), /* @__PURE__ */ T(ee, {
|
|
353
|
-
side: M,
|
|
354
|
-
align: N,
|
|
355
|
-
alignItemWithTrigger: P,
|
|
356
|
-
className: e("select--content", V),
|
|
357
|
-
children: /* @__PURE__ */ T(te, {
|
|
358
|
-
className: "select--group",
|
|
359
|
-
children: J.map(({ internalValue: e, option: t }) => /* @__PURE__ */ T(z, {
|
|
360
|
-
value: e,
|
|
361
|
-
label: t.label,
|
|
362
|
-
disabled: t.disabled,
|
|
363
|
-
className: "select--item",
|
|
364
|
-
children: F ? F(t) : /* @__PURE__ */ T(se, { option: t })
|
|
365
|
-
}, e))
|
|
366
|
-
})
|
|
367
|
-
})]
|
|
368
|
-
});
|
|
369
|
-
}), Y = {
|
|
370
|
-
1: A.columns1,
|
|
371
|
-
2: A.columns2,
|
|
372
|
-
3: A.columns3,
|
|
373
|
-
4: A.columns4
|
|
374
|
-
};
|
|
375
|
-
//#endregion
|
|
376
|
-
//#region src/components/base/choice-inputs/partials/choice-icon.tsx
|
|
377
|
-
function X(e) {
|
|
378
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
379
|
-
}
|
|
380
|
-
function Z(e) {
|
|
381
|
-
return e ? v(e) ? e : typeof e == "function" || typeof e == "object" && e && "$$typeof" in e ? /* @__PURE__ */ T(e, { "aria-hidden": !0 }) : e : null;
|
|
382
|
-
}
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/components/base/choice-inputs/partials/choice-parts.tsx
|
|
385
|
-
function ce({ option: n, weight: s = "medium", className: c, descriptionId: l }) {
|
|
386
|
-
let u = X(n.label) ? /* @__PURE__ */ T(t, {
|
|
387
|
-
tag: "span",
|
|
388
|
-
size: "inherit",
|
|
389
|
-
weight: s,
|
|
390
|
-
lineHeight: "tight",
|
|
391
|
-
children: n.label
|
|
392
|
-
}) : n.label;
|
|
393
|
-
return n.tooltip == null ? /* @__PURE__ */ T("span", {
|
|
394
|
-
className: e("choice-label--component", c),
|
|
395
|
-
children: u
|
|
396
|
-
}) : /* @__PURE__ */ E("span", {
|
|
397
|
-
className: e(A.labelLine, c),
|
|
398
|
-
children: [
|
|
399
|
-
u,
|
|
400
|
-
/* @__PURE__ */ E(a, { children: [/* @__PURE__ */ T(r, { render: /* @__PURE__ */ T("span", {
|
|
401
|
-
"data-hit-area": !0,
|
|
402
|
-
"aria-hidden": !0,
|
|
403
|
-
className: A.info,
|
|
404
|
-
children: /* @__PURE__ */ T(m, {})
|
|
405
|
-
}) }), /* @__PURE__ */ T(i, { children: n.tooltip })] }),
|
|
406
|
-
!!l && /* @__PURE__ */ T(o, {
|
|
407
|
-
id: l,
|
|
408
|
-
children: n.tooltip
|
|
409
|
-
})
|
|
410
|
-
]
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
function le({ children: t }) {
|
|
414
|
-
return /* @__PURE__ */ T("span", {
|
|
415
|
-
className: e("choice-card-text--component", A.cardText),
|
|
416
|
-
children: t
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
function Q({ children: n }) {
|
|
420
|
-
return n == null || n === !1 ? null : X(n) ? /* @__PURE__ */ T(t, {
|
|
421
|
-
tag: "span",
|
|
422
|
-
size: "inherit",
|
|
423
|
-
type: "secondary",
|
|
424
|
-
className: e("choice-description--component", A.description),
|
|
425
|
-
children: n
|
|
426
|
-
}) : /* @__PURE__ */ T(w, { children: n });
|
|
427
|
-
}
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region src/components/base/choice-inputs/partials/radio-option-group.tsx
|
|
430
|
-
var ue = _(function({ options: t, value: n, defaultValue: r, onValueChange: i, name: a, layout: o, columns: s = 3, invalid: c, disabled: l, hook: u, className: d, "aria-label": m, "aria-labelledby": h, "aria-describedby": g }, _) {
|
|
431
|
-
let v = b(), y = o === "cards";
|
|
432
|
-
return /* @__PURE__ */ T(k, {
|
|
433
|
-
ref: _,
|
|
434
|
-
value: n,
|
|
435
|
-
defaultValue: r,
|
|
436
|
-
onValueChange: (e) => e != null && i?.(String(e)),
|
|
437
|
-
name: a,
|
|
438
|
-
disabled: l,
|
|
439
|
-
"aria-invalid": c || void 0,
|
|
440
|
-
"aria-label": m,
|
|
441
|
-
"aria-labelledby": h,
|
|
442
|
-
"aria-describedby": g,
|
|
443
|
-
"data-disabled": l || void 0,
|
|
444
|
-
className: e(`${u}--component`, y ? [A.cardGrid, Y[s]] : A.list, d),
|
|
445
|
-
children: t.map((t) => {
|
|
446
|
-
let n = `${v}-${t.value}-note`, r = /* @__PURE__ */ T(ce, {
|
|
447
|
-
option: t,
|
|
448
|
-
weight: y ? "semibold" : void 0,
|
|
449
|
-
descriptionId: n
|
|
450
|
-
});
|
|
451
|
-
return /* @__PURE__ */ E(O.Root, {
|
|
452
|
-
value: t.value,
|
|
453
|
-
disabled: l || t.disabled,
|
|
454
|
-
"aria-invalid": c || void 0,
|
|
455
|
-
"aria-describedby": t.tooltip == null ? void 0 : n,
|
|
456
|
-
className: e(`${u}--option`, y ? A.card : A.listRow),
|
|
457
|
-
children: [
|
|
458
|
-
y ? /* @__PURE__ */ T(O.Indicator, { render: /* @__PURE__ */ T(f, {
|
|
459
|
-
"aria-hidden": !0,
|
|
460
|
-
className: A.cardMark
|
|
461
|
-
}) }) : /* @__PURE__ */ T("span", {
|
|
462
|
-
"aria-hidden": !0,
|
|
463
|
-
className: A.listMarker,
|
|
464
|
-
children: /* @__PURE__ */ T(p, { className: A.listMarkerDot })
|
|
465
|
-
}),
|
|
466
|
-
t.icon != null && /* @__PURE__ */ T("span", {
|
|
467
|
-
className: A.cardIcon,
|
|
468
|
-
children: Z(t.icon)
|
|
469
|
-
}),
|
|
470
|
-
y ? /* @__PURE__ */ E(le, { children: [r, /* @__PURE__ */ T(Q, { children: t.description })] }) : /* @__PURE__ */ E("span", {
|
|
471
|
-
className: A.rowText,
|
|
472
|
-
children: [r, /* @__PURE__ */ T(Q, { children: t.description })]
|
|
473
|
-
})
|
|
474
|
-
]
|
|
475
|
-
}, t.value);
|
|
476
|
-
})
|
|
477
|
-
});
|
|
478
|
-
}), de = _(function(e, t) {
|
|
479
|
-
return /* @__PURE__ */ T(ue, {
|
|
480
|
-
ref: t,
|
|
481
|
-
...e,
|
|
482
|
-
layout: "cards",
|
|
483
|
-
hook: "card-radio-group"
|
|
484
|
-
});
|
|
485
|
-
}), fe = _(function({ options: t, value: n, defaultValue: r, onValueChange: i, name: a, columns: o = 3, invalid: s, disabled: c, className: l, "aria-label": u, "aria-labelledby": d, "aria-describedby": p }, m) {
|
|
486
|
-
let h = b(), g = n !== void 0, [_, v] = C(r ?? []), S = x(() => g ? n ?? [] : _, [
|
|
487
|
-
_,
|
|
488
|
-
g,
|
|
489
|
-
n
|
|
490
|
-
]), w = y((e) => {
|
|
491
|
-
if (c || t.find((t) => t.value === e)?.disabled) return;
|
|
492
|
-
let n = S.includes(e) ? S.filter((t) => t !== e) : [...S, e];
|
|
493
|
-
g || v(n), i?.(n);
|
|
494
|
-
}, [
|
|
495
|
-
c,
|
|
496
|
-
t,
|
|
497
|
-
S,
|
|
498
|
-
g,
|
|
499
|
-
i
|
|
500
|
-
]);
|
|
501
|
-
return /* @__PURE__ */ T("div", {
|
|
502
|
-
ref: m,
|
|
503
|
-
role: "group",
|
|
504
|
-
"aria-invalid": s || void 0,
|
|
505
|
-
"aria-label": u,
|
|
506
|
-
"aria-labelledby": d,
|
|
507
|
-
"aria-describedby": p,
|
|
508
|
-
"aria-disabled": c || void 0,
|
|
509
|
-
className: e("card-checkbox-group--component", A.cardGrid, Y[o], l),
|
|
510
|
-
children: t.map((t) => {
|
|
511
|
-
let n = S.includes(t.value), r = `${h}-${t.value}-note`;
|
|
512
|
-
return /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("input", {
|
|
513
|
-
type: "hidden",
|
|
514
|
-
name: a ? `${a}[]` : void 0,
|
|
515
|
-
value: t.value,
|
|
516
|
-
"aria-hidden": "true",
|
|
517
|
-
hidden: !0,
|
|
518
|
-
disabled: !(a && n)
|
|
519
|
-
}), /* @__PURE__ */ E("button", {
|
|
520
|
-
type: "button",
|
|
521
|
-
"aria-pressed": n,
|
|
522
|
-
"aria-invalid": s || void 0,
|
|
523
|
-
"aria-describedby": t.tooltip == null ? void 0 : r,
|
|
524
|
-
"data-selected": n,
|
|
525
|
-
disabled: c || t.disabled,
|
|
526
|
-
onClick: () => w(t.value),
|
|
527
|
-
className: e("card-checkbox-group--option", A.card),
|
|
528
|
-
children: [
|
|
529
|
-
n && /* @__PURE__ */ T(f, {
|
|
530
|
-
"aria-hidden": !0,
|
|
531
|
-
className: A.cardMark
|
|
532
|
-
}),
|
|
533
|
-
t.icon != null && /* @__PURE__ */ T("span", {
|
|
534
|
-
className: A.cardIcon,
|
|
535
|
-
children: Z(t.icon)
|
|
536
|
-
}),
|
|
537
|
-
/* @__PURE__ */ E(le, { children: [/* @__PURE__ */ T(ce, {
|
|
538
|
-
option: t,
|
|
539
|
-
descriptionId: r
|
|
540
|
-
}), /* @__PURE__ */ T(Q, { children: t.description })] })
|
|
541
|
-
]
|
|
542
|
-
})] }, t.value);
|
|
543
|
-
})
|
|
544
|
-
});
|
|
545
|
-
}), pe = _(function(e, t) {
|
|
546
|
-
return /* @__PURE__ */ T(ue, {
|
|
547
|
-
ref: t,
|
|
548
|
-
...e,
|
|
549
|
-
layout: "list",
|
|
550
|
-
hook: "list-radio-group"
|
|
551
|
-
});
|
|
552
|
-
});
|
|
553
|
-
//#endregion
|
|
554
|
-
//#region src/components/base/choice-inputs/pill-radio-group.tsx
|
|
555
|
-
function $(e) {
|
|
556
|
-
return X(e) ? !0 : Array.isArray(e) ? e.some($) : v(e) && $(e.props.children);
|
|
557
|
-
}
|
|
558
|
-
var me = _(function({ options: t, value: n, onValueChange: r, allowClear: i = !1, fullWidth: a = !1, name: o, invalid: s, disabled: c, className: l, "aria-label": u, "aria-labelledby": d, "aria-describedby": f }, p) {
|
|
559
|
-
let m = S(null), h = (e) => {
|
|
560
|
-
m.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
|
|
561
|
-
}, g = t.filter((e) => !c && !e.disabled), _ = g.find((e) => e.value === n)?.value ?? g[0]?.value, v = (e, t) => {
|
|
562
|
-
let i = m.current ? getComputedStyle(m.current).direction === "rtl" : !1, a = g.findIndex((e) => e.value === t), o = e.key === "ArrowDown" || e.key === (i ? "ArrowLeft" : "ArrowRight") ? 1 : e.key === "ArrowUp" || e.key === (i ? "ArrowRight" : "ArrowLeft") ? -1 : 0, s = e.key === "Home" ? g[0] : e.key === "End" ? g.at(-1) : o !== 0 && g.length > 0 ? g[(a + o + g.length) % g.length] : void 0;
|
|
563
|
-
s && (e.preventDefault(), s.value !== n && r(s.value), m.current?.querySelector(`[data-value="${CSS.escape(s.value)}"]`)?.focus());
|
|
564
|
-
}, b = y((e) => {
|
|
565
|
-
if (e === n) {
|
|
566
|
-
i && r(null);
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
r(e);
|
|
570
|
-
}, [
|
|
571
|
-
i,
|
|
572
|
-
r,
|
|
573
|
-
n
|
|
574
|
-
]);
|
|
575
|
-
return /* @__PURE__ */ E("div", {
|
|
576
|
-
ref: h,
|
|
577
|
-
role: "radiogroup",
|
|
578
|
-
"data-name": o,
|
|
579
|
-
"aria-invalid": s || void 0,
|
|
580
|
-
"aria-label": u,
|
|
581
|
-
"aria-labelledby": d,
|
|
582
|
-
"aria-describedby": f,
|
|
583
|
-
"data-disabled": c || void 0,
|
|
584
|
-
className: e("pill-radio-group--component", A.pillGroup, a && A.pillGroupFullWidth, l),
|
|
585
|
-
children: [t.map((t) => {
|
|
586
|
-
let r = t.value === n;
|
|
587
|
-
return /* @__PURE__ */ E("button", {
|
|
588
|
-
type: "button",
|
|
589
|
-
role: "radio",
|
|
590
|
-
"aria-checked": r,
|
|
591
|
-
"data-value": t.value,
|
|
592
|
-
tabIndex: t.value === _ ? 0 : -1,
|
|
593
|
-
onKeyDown: (e) => v(e, t.value),
|
|
594
|
-
"aria-label": $(t.label) ? void 0 : t.value,
|
|
595
|
-
disabled: c || t.disabled,
|
|
596
|
-
onClick: () => b(t.value),
|
|
597
|
-
className: e("pill-radio-group--option", A.pill, a && A.pillFullWidth),
|
|
598
|
-
children: [Z(t.icon), t.label]
|
|
599
|
-
}, t.value);
|
|
600
|
-
}), o !== void 0 && n != null && /* @__PURE__ */ T("input", {
|
|
601
|
-
type: "hidden",
|
|
602
|
-
name: o,
|
|
603
|
-
value: n,
|
|
604
|
-
disabled: c
|
|
605
|
-
})]
|
|
606
|
-
});
|
|
607
|
-
}), he = _(function({ label: t, description: n, hint: r, icon: i, kind: a = "switch", surface: o = "row", value: s, defaultValue: l, onValueChange: u, disabled: d = !1, invalid: f = !1, name: p, uncheckedValue: m, controlPosition: h = "trailing", className: g }, _) {
|
|
608
|
-
let v = s !== void 0, [x, S] = C(l ?? !1), w = v ? s ?? !1 : x, D = b(), O = n == null ? void 0 : `${D}-description`, k = o === "card", M = p && m !== void 0, N = M ? void 0 : p, P = y((e) => {
|
|
609
|
-
d || (v || S(e), u?.(e));
|
|
610
|
-
}, [
|
|
611
|
-
d,
|
|
612
|
-
v,
|
|
613
|
-
u
|
|
614
|
-
]), I = (e) => {
|
|
615
|
-
e.target.closest("label, [role=\"switch\"], input[type=\"checkbox\"]") || P(!w);
|
|
616
|
-
}, L = T(a === "switch" ? F : j, {
|
|
617
|
-
id: D,
|
|
618
|
-
name: N,
|
|
619
|
-
checked: w,
|
|
620
|
-
onChange: (e) => P(e.target.checked),
|
|
621
|
-
disabled: d,
|
|
622
|
-
"aria-invalid": f || void 0,
|
|
623
|
-
"aria-describedby": O
|
|
624
|
-
});
|
|
625
|
-
return /* @__PURE__ */ E("div", {
|
|
626
|
-
ref: _,
|
|
627
|
-
"data-checked": k ? w : void 0,
|
|
628
|
-
"data-disabled": k && d || void 0,
|
|
629
|
-
"data-invalid": k && f || void 0,
|
|
630
|
-
onClick: I,
|
|
631
|
-
className: e(k ? "switch-card--component" : "toggle-field--component", A.row, k && A.switchCard, d && A.rowDisabled, g),
|
|
632
|
-
children: [
|
|
633
|
-
M && /* @__PURE__ */ T("input", {
|
|
634
|
-
type: "hidden",
|
|
635
|
-
name: p,
|
|
636
|
-
value: w ? "1" : m
|
|
637
|
-
}),
|
|
638
|
-
h === "leading" && /* @__PURE__ */ T("div", {
|
|
639
|
-
className: A.rowControl,
|
|
640
|
-
children: L
|
|
641
|
-
}),
|
|
642
|
-
i != null && /* @__PURE__ */ T("span", {
|
|
643
|
-
className: A.switchCardIcon,
|
|
644
|
-
children: Z(i)
|
|
645
|
-
}),
|
|
646
|
-
/* @__PURE__ */ E("div", {
|
|
647
|
-
className: A.rowText,
|
|
648
|
-
children: [
|
|
649
|
-
/* @__PURE__ */ T(c, {
|
|
650
|
-
htmlFor: D,
|
|
651
|
-
className: A.rowLabel,
|
|
652
|
-
children: t
|
|
653
|
-
}),
|
|
654
|
-
n != null && /* @__PURE__ */ T("span", {
|
|
655
|
-
id: O,
|
|
656
|
-
children: /* @__PURE__ */ T(Q, { children: n })
|
|
657
|
-
}),
|
|
658
|
-
r != null && /* @__PURE__ */ T("span", {
|
|
659
|
-
className: A.hint,
|
|
660
|
-
children: r
|
|
661
|
-
})
|
|
662
|
-
]
|
|
663
|
-
}),
|
|
664
|
-
h === "trailing" && /* @__PURE__ */ T("div", {
|
|
665
|
-
className: A.rowControl,
|
|
666
|
-
children: L
|
|
667
|
-
})
|
|
668
|
-
]
|
|
669
|
-
});
|
|
670
|
-
}), ge = _(function(e, t) {
|
|
671
|
-
return /* @__PURE__ */ T(he, {
|
|
672
|
-
ref: t,
|
|
673
|
-
...e,
|
|
674
|
-
kind: "switch",
|
|
675
|
-
surface: "card",
|
|
676
|
-
uncheckedValue: "0"
|
|
677
|
-
});
|
|
678
|
-
});
|
|
679
|
-
//#endregion
|
|
680
|
-
export { I as _, fe as a, P as b, re as c, z as d, B as f, ne as g, G as h, pe as i, ee as l, W as m, he as n, de as o, V as p, me as r, J as s, ge as t, te as u, F as v, j as x, N as y };
|