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