themelia-ui 3.0.0 → 3.1.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 +27 -29
- package/.agents/skills/themelia-ui/references/api-compatibility.md +3 -3
- package/.agents/skills/themelia-ui/references/composition.md +2 -18
- package/.agents/skills/themelia-ui/references/framework-wiring.md +8 -8
- package/.agents/skills/themelia-ui/references/imports.md +104 -104
- package/.agents/skills/themelia-ui/references/installation.md +55 -27
- package/.agents/skills/themelia-ui/references/migration.md +136 -5
- package/.agents/skills/themelia-ui/references/provider-and-scoping.md +13 -19
- package/.agents/skills/themelia-ui/references/theming.md +170 -131
- package/.agents/skills/themelia-ui/references/troubleshooting.md +62 -27
- package/.agents/skills/themelia-ui/references/verification.md +2 -3
- package/CHANGELOG.md +187 -0
- package/README.md +45 -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-Bmo1YrTm.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-DdiICdMM.js +279 -0
- package/dist/chart-BkK3Xm10.js +201 -0
- package/dist/choice-inputs-CCw-0gD6.js +694 -0
- package/dist/combobox-Byu8N-Oe.js +274 -0
- package/dist/command-CnB_IZSo.js +156 -0
- package/dist/comments-C6Y_ddMt.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/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 +3 -2
- package/dist/components/base/structure/grid.d.ts +2 -2
- package/dist/components/base/structure/index.d.ts +1 -1
- package/dist/components/base/structure/split.d.ts +3 -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/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-C2HgjpFU.js +685 -0
- package/dist/{dialog-CtFCuTUF.js → dialog-0nRFg5Zs.js} +1 -1
- package/dist/display-BGN834xV.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 +119 -117
- 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-geLuSlFL.js} +386 -383
- package/dist/forms-NxbJK4Mh.js +250 -0
- package/dist/forms-numeric-C6NMdj6G.js +582 -0
- package/dist/index.js +2 -2
- package/dist/input-group-HS_Z0Ei_.js +119 -0
- package/dist/item-CuUJyETl.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 +43 -43
- 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/{mentions-BbsEHlcH.js → mentions-oeYNv_j1.js} +113 -111
- package/dist/navigation-BTX5Ti0Z.js +622 -0
- package/dist/navigation-WYKjDhZq.js +216 -0
- package/dist/overlay-C8RAgi2_.js +356 -0
- package/dist/{overlays-DvVoS3td.js → overlays-9BxwFTou.js} +77 -75
- package/dist/popover-CA7SP_iz.js +127 -0
- package/dist/popover-menu-DcLeiw9r.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-DfptvbGA.js +445 -0
- package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
- package/dist/{sheet-CKcmRbJ9.js → sheet-D-DVZH_b.js} +3 -3
- package/dist/sidebar-DXQOy_Cb.js +421 -0
- package/dist/skeleton-CubvHel9.js +173 -0
- package/dist/spinner-Tc1QCnxM.js +30 -0
- package/dist/{structure-D0WGQAP3.js → structure-B9Y5NkP_.js} +15 -22
- package/dist/style.css +1 -1
- package/dist/styles/TOKENS.md +115 -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-DT_20ity.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-BRZbSdhf.js} +57 -49
- package/dist/{timelines-BB7550mz.js → timelines-DczZKW5p.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-C_6mlbfl.js +968 -0
- package/dist/use-async-preview-BFwf9ElY.js +188 -0
- package/dist/value-inputs-CnO6RZeT.js +728 -0
- package/docs/README.md +2 -2
- package/docs/build/recipes.md +10992 -10628
- package/docs/generated/component-index.json +11133 -11624
- 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 +12 -13
- 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 +264 -65
- 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 +279 -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} +5 -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} +13 -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 +4 -5
- package/docs/generated/components/features--comments.md +0 -1
- package/docs/generated/components/features--data-view.md +4 -5
- package/docs/generated/components/features--event-calendar.md +1 -2
- package/docs/generated/components/features--filters.md +1 -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 +37 -38
- package/docs/generated/components/features--mentions.md +7 -7
- package/docs/generated/components/features--overlays.md +21 -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 +4 -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 +10 -11
- package/docs/generated/components/layout--auth.md +8 -9
- package/docs/generated/components/layout--containers.md +0 -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 +3 -4
- package/docs/generated/components/layout--settings.md +0 -1
- package/docs/generated/components/layout--sidebar.md +6 -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 +95 -77
- 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 +585 -810
- package/docs/learn/api-compatibility.md +3 -3
- package/docs/learn/composition.md +2 -18
- package/docs/learn/framework-wiring.md +8 -8
- package/docs/learn/installation.md +55 -27
- package/docs/learn/migration.md +136 -5
- package/docs/learn/provider-and-scoping.md +13 -19
- package/docs/learn/theming.md +170 -131
- package/docs/learn/troubleshooting.md +62 -27
- package/docs/learn/verification.md +2 -3
- package/package.json +39 -473
- package/scripts/consumer/codemod.mjs +51 -12
- package/scripts/consumer/find-component.mjs +2 -4
- package/src/styles/TOKENS.md +115 -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
package/dist/display-B3Q17h5z.js
DELETED
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./cx--CBrhWH0.js";
|
|
2
|
-
import { i as t, o as n } from "./typography-BkxEiwQ1.js";
|
|
3
|
-
import { t as r } from "./ui-provider-Cmoq6i_D.js";
|
|
4
|
-
import { c as i } from "./buttons-CqXKWty3.js";
|
|
5
|
-
import { i as a, n as o, t as s } from "./tooltip-t1VQQ2tZ.js";
|
|
6
|
-
import { i as c, o as l } from "./structure-D0WGQAP3.js";
|
|
7
|
-
import { A as u, B as d, D as f, E as p, O as m, U as h, f as g, g as _, k as v, m as y, z as b } from "./primitives-D0bdDozz.js";
|
|
8
|
-
import { t as x } from "./badge-CxOuTfVr.js";
|
|
9
|
-
import { ChevronRightIcon as S, InfoIcon as C } from "lucide-react";
|
|
10
|
-
import * as w from "react";
|
|
11
|
-
import { Fragment as ee, isValidElement as T, useMemo as E } from "react";
|
|
12
|
-
import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
13
|
-
import { Separator as te } from "@base-ui/react/separator";
|
|
14
|
-
import { format as A, isValid as ne } from "date-fns";
|
|
15
|
-
var j = {
|
|
16
|
-
separator: "display__separator___1BUja",
|
|
17
|
-
separatorLabelled: "display__separatorLabelled___BRKTs",
|
|
18
|
-
collapsibleContent: "display__collapsibleContent___w5FCe",
|
|
19
|
-
collapsibleInner: "display__collapsibleInner___HkK58",
|
|
20
|
-
collapsibleTrigger: "display__collapsibleTrigger___kOrAb",
|
|
21
|
-
collapsibleIcon: "display__collapsibleIcon___hoUxr",
|
|
22
|
-
scrollArea: "display__scrollArea___rtjwn",
|
|
23
|
-
indicator: "display__indicator___-b3CD",
|
|
24
|
-
indicatorDot: "display__indicatorDot___u1og1",
|
|
25
|
-
indicatorDotTrue: "display__indicatorDotTrue___gAb2-",
|
|
26
|
-
visuallyHidden: "display__visuallyHidden___8hPwP",
|
|
27
|
-
iconBadge: "display__iconBadge___-j1FB",
|
|
28
|
-
iconBadgeCircle: "display__iconBadgeCircle___vtzNZ",
|
|
29
|
-
iconBadgeBordered: "display__iconBadgeBordered___BNHvl",
|
|
30
|
-
toneNeutral: "display__toneNeutral___g5afx",
|
|
31
|
-
tonePrimary: "display__tonePrimary___Pn6zy",
|
|
32
|
-
toneSuccess: "display__toneSuccess___VYv9V",
|
|
33
|
-
toneWarning: "display__toneWarning___33--g",
|
|
34
|
-
toneDestructive: "display__toneDestructive___X6hm_",
|
|
35
|
-
toneInfo: "display__toneInfo___KFBMN",
|
|
36
|
-
iconBadgeSolid: "display__iconBadgeSolid___iPQQJ",
|
|
37
|
-
contentBlock: "display__contentBlock___0GnKb",
|
|
38
|
-
contentBlockBordered: "display__contentBlockBordered___Xuqla",
|
|
39
|
-
contentBlockMuted: "display__contentBlockMuted___RSMxC",
|
|
40
|
-
contentBlockCard: "display__contentBlockCard___G7lkG",
|
|
41
|
-
contentBlockFlush: "display__contentBlockFlush___e4GRB",
|
|
42
|
-
contentBlockHeader: "display__contentBlockHeader___YzDqj",
|
|
43
|
-
contentBlockTitle: "display__contentBlockTitle___145n6",
|
|
44
|
-
contentBlockDescription: "display__contentBlockDescription___fS51q",
|
|
45
|
-
contentBlockIcon: "display__contentBlockIcon___5BKtm",
|
|
46
|
-
dateBlock: "display__dateBlock___BfnLm",
|
|
47
|
-
dateBlockInline: "display__dateBlockInline___MyPks",
|
|
48
|
-
dateBlockMonth: "display__dateBlockMonth___MTD8Z",
|
|
49
|
-
dateBlockWeekday: "display__dateBlockWeekday___zOq-Q",
|
|
50
|
-
dateBlockYear: "display__dateBlockYear___gRB6t",
|
|
51
|
-
dateBlockTime: "display__dateBlockTime___4MsX7",
|
|
52
|
-
dateBlockBoxed: "display__dateBlockBoxed___F0UE0",
|
|
53
|
-
dateBlockDay: "display__dateBlockDay___-lnuc",
|
|
54
|
-
placeholderPattern: "display__placeholderPattern___neWw-",
|
|
55
|
-
kbd: "display__kbd___3mNbf",
|
|
56
|
-
kbdGroup: "display__kbdGroup___mcdvP",
|
|
57
|
-
inlineStat: "display__inlineStat___nfkP3"
|
|
58
|
-
}, M = (e) => typeof e == "number" ? `${e}px` : e;
|
|
59
|
-
function N({ className: t, orientation: r = "horizontal", variant: i = "solid", thickness: a, label: o, style: s, ...c }) {
|
|
60
|
-
let l = {
|
|
61
|
-
...a === void 0 ? null : { "--separator-thickness": M(a) },
|
|
62
|
-
...s
|
|
63
|
-
};
|
|
64
|
-
return o && r === "horizontal" ? /* @__PURE__ */ O("div", {
|
|
65
|
-
"data-slot": "separator",
|
|
66
|
-
"data-orientation": "horizontal",
|
|
67
|
-
"data-variant": i,
|
|
68
|
-
className: e("separator--component", j.separatorLabelled, t),
|
|
69
|
-
style: l,
|
|
70
|
-
children: /* @__PURE__ */ O(n, {
|
|
71
|
-
tag: "span",
|
|
72
|
-
type: "secondary",
|
|
73
|
-
size: "xs",
|
|
74
|
-
children: o
|
|
75
|
-
})
|
|
76
|
-
}) : /* @__PURE__ */ O(te, {
|
|
77
|
-
"data-slot": "separator",
|
|
78
|
-
orientation: r,
|
|
79
|
-
"data-variant": i,
|
|
80
|
-
className: e("separator--component", j.separator, t),
|
|
81
|
-
style: l,
|
|
82
|
-
...c
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/components/base/display/collapsible.tsx
|
|
87
|
-
var P = w.createContext(null);
|
|
88
|
-
function F(e) {
|
|
89
|
-
let t = w.useContext(P);
|
|
90
|
-
if (!t) throw Error(`<${e}> must be used within <Collapsible>`);
|
|
91
|
-
return t;
|
|
92
|
-
}
|
|
93
|
-
function I({ open: t, defaultOpen: n = !1, onOpenChange: r, className: i, children: a, ...o }) {
|
|
94
|
-
let [s, c] = w.useState(n), l = t !== void 0, u = l ? t : s, d = w.useId(), f = w.useCallback((e) => {
|
|
95
|
-
l || c(e), r?.(e);
|
|
96
|
-
}, [l, r]), p = w.useMemo(() => ({
|
|
97
|
-
open: u,
|
|
98
|
-
setOpen: f,
|
|
99
|
-
id: d
|
|
100
|
-
}), [
|
|
101
|
-
u,
|
|
102
|
-
f,
|
|
103
|
-
d
|
|
104
|
-
]);
|
|
105
|
-
return /* @__PURE__ */ O(P.Provider, {
|
|
106
|
-
value: p,
|
|
107
|
-
children: /* @__PURE__ */ O("div", {
|
|
108
|
-
"data-slot": "collapsible",
|
|
109
|
-
"data-open": u ? "" : void 0,
|
|
110
|
-
className: e("collapsible--component", i),
|
|
111
|
-
...o,
|
|
112
|
-
children: a
|
|
113
|
-
})
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function re({ className: t, children: n, onClick: r, ...i }) {
|
|
117
|
-
let { open: a, setOpen: o, id: s } = F("CollapsibleTrigger");
|
|
118
|
-
return /* @__PURE__ */ k("button", {
|
|
119
|
-
type: "button",
|
|
120
|
-
"data-slot": "collapsible-trigger",
|
|
121
|
-
"aria-expanded": a,
|
|
122
|
-
"aria-controls": s,
|
|
123
|
-
className: e("collapsible--trigger", j.collapsibleTrigger, t),
|
|
124
|
-
"data-hit-area": !0,
|
|
125
|
-
onClick: (e) => {
|
|
126
|
-
r?.(e), e.defaultPrevented || o(!a);
|
|
127
|
-
},
|
|
128
|
-
...i,
|
|
129
|
-
children: [/* @__PURE__ */ O(S, {
|
|
130
|
-
className: j.collapsibleIcon,
|
|
131
|
-
"aria-hidden": !0
|
|
132
|
-
}), n]
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
function ie({ className: t, children: n, ...r }) {
|
|
136
|
-
let { open: i, id: a } = F("CollapsibleContent");
|
|
137
|
-
return /* @__PURE__ */ O("div", {
|
|
138
|
-
id: a,
|
|
139
|
-
"data-slot": "collapsible-content",
|
|
140
|
-
"data-open": i ? "" : void 0,
|
|
141
|
-
"aria-hidden": !i,
|
|
142
|
-
inert: !i,
|
|
143
|
-
className: e("collapsible--content", j.collapsibleContent, t),
|
|
144
|
-
...r,
|
|
145
|
-
children: /* @__PURE__ */ O("div", {
|
|
146
|
-
className: j.collapsibleInner,
|
|
147
|
-
children: n
|
|
148
|
-
})
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region src/components/base/display/scroll-area.tsx
|
|
153
|
-
function ae({ className: t, ...n }) {
|
|
154
|
-
return /* @__PURE__ */ O("div", {
|
|
155
|
-
"data-slot": "scroll-area",
|
|
156
|
-
tabIndex: 0,
|
|
157
|
-
className: e("scroll-area--component", j.scrollArea, t),
|
|
158
|
-
...n
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/components/base/display/boolean-indicator.strings.ts
|
|
163
|
-
var L = {
|
|
164
|
-
true: "Yes",
|
|
165
|
-
false: "No"
|
|
166
|
-
};
|
|
167
|
-
//#endregion
|
|
168
|
-
//#region src/components/base/display/boolean-indicator.tsx
|
|
169
|
-
function R({ value: t, strings: r, className: i, ...a }) {
|
|
170
|
-
let o = {
|
|
171
|
-
...L,
|
|
172
|
-
...r
|
|
173
|
-
};
|
|
174
|
-
return /* @__PURE__ */ k("span", {
|
|
175
|
-
"data-slot": "boolean-indicator",
|
|
176
|
-
"data-value": t ? "true" : "false",
|
|
177
|
-
className: e("boolean-indicator--component", j.indicator, i),
|
|
178
|
-
...a,
|
|
179
|
-
children: [/* @__PURE__ */ O("span", {
|
|
180
|
-
className: e(j.indicatorDot, t && j.indicatorDotTrue),
|
|
181
|
-
"aria-hidden": !0
|
|
182
|
-
}), /* @__PURE__ */ O(n, {
|
|
183
|
-
tag: "span",
|
|
184
|
-
size: "inherit",
|
|
185
|
-
children: t ? o.true : o.false
|
|
186
|
-
})]
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/components/base/display/visually-hidden.tsx
|
|
191
|
-
function z({ className: t, render: n, ...r }) {
|
|
192
|
-
let i = e(j.visuallyHidden, t);
|
|
193
|
-
return n ? w.cloneElement(n, {
|
|
194
|
-
...r,
|
|
195
|
-
...n.props,
|
|
196
|
-
className: e(i, n.props.className)
|
|
197
|
-
}) : /* @__PURE__ */ O("span", {
|
|
198
|
-
className: e("visually-hidden--component", i),
|
|
199
|
-
...r
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/components/base/display/icon-badge.tsx
|
|
204
|
-
var B = {
|
|
205
|
-
neutral: j.toneNeutral,
|
|
206
|
-
primary: j.tonePrimary,
|
|
207
|
-
success: j.toneSuccess,
|
|
208
|
-
warning: j.toneWarning,
|
|
209
|
-
destructive: j.toneDestructive,
|
|
210
|
-
info: j.toneInfo
|
|
211
|
-
};
|
|
212
|
-
function V({ icon: t, children: n, tone: r = "neutral", shape: i = "rounded", solid: a = !1, bordered: o = !1, className: s, ...c }) {
|
|
213
|
-
let l = n || (t ? T(t) ? t : /* @__PURE__ */ O(t, { "aria-hidden": !0 }) : null);
|
|
214
|
-
return /* @__PURE__ */ O("span", {
|
|
215
|
-
className: e("icon-badge--component", j.iconBadge, B[r], i === "circle" && j.iconBadgeCircle, a && j.iconBadgeSolid, o && j.iconBadgeBordered, s),
|
|
216
|
-
...c,
|
|
217
|
-
children: l
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
//#endregion
|
|
221
|
-
//#region src/components/base/display/content-block.tsx
|
|
222
|
-
function H({ title: t, description: r, icon: i, titleSuffix: a, headerEnd: o, surface: s = "plain", flush: c = !1, className: u, children: d, ...f }) {
|
|
223
|
-
let p = !!(t || a || i || o), m = p || r != null;
|
|
224
|
-
return /* @__PURE__ */ k("div", {
|
|
225
|
-
className: e("content-block--component", j.contentBlock, s === "bordered" && j.contentBlockBordered, s === "muted" && j.contentBlockMuted, s === "card" && j.contentBlockCard, c && j.contentBlockFlush, u),
|
|
226
|
-
...f,
|
|
227
|
-
children: [m && /* @__PURE__ */ k(l, {
|
|
228
|
-
gap: "xs",
|
|
229
|
-
className: "content-block--heading",
|
|
230
|
-
children: [p && /* @__PURE__ */ k("div", {
|
|
231
|
-
className: j.contentBlockHeader,
|
|
232
|
-
children: [
|
|
233
|
-
i != null && /* @__PURE__ */ O("span", {
|
|
234
|
-
className: j.contentBlockIcon,
|
|
235
|
-
children: i
|
|
236
|
-
}),
|
|
237
|
-
/* @__PURE__ */ k(n, {
|
|
238
|
-
tag: "span",
|
|
239
|
-
size: "inherit",
|
|
240
|
-
weight: "semibold",
|
|
241
|
-
className: j.contentBlockTitle,
|
|
242
|
-
"data-suffixed": a != null || void 0,
|
|
243
|
-
children: [t, a]
|
|
244
|
-
}),
|
|
245
|
-
o
|
|
246
|
-
]
|
|
247
|
-
}), r != null && /* @__PURE__ */ O(n, {
|
|
248
|
-
tag: "div",
|
|
249
|
-
type: "secondary",
|
|
250
|
-
className: j.contentBlockDescription,
|
|
251
|
-
children: r
|
|
252
|
-
})]
|
|
253
|
-
}), d]
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
//#endregion
|
|
257
|
-
//#region src/components/base/display/date-block.tsx
|
|
258
|
-
function U(e) {
|
|
259
|
-
if (e == null) return null;
|
|
260
|
-
let t = e instanceof Date ? e : new Date(e);
|
|
261
|
-
return ne(t) ? t : null;
|
|
262
|
-
}
|
|
263
|
-
function W({ date: t, time: n, dateTime: i, layout: a = "stacked", boxed: o, showWeekday: s = !0, showMonth: c = !0, showYear: l = !1, weekdayFormat: u = "EEE", dayFormat: d = "d", monthFormat: f = "MMM", yearFormat: p = "yyyy", className: m, ...h }) {
|
|
264
|
-
let { locale: g } = r(), _ = U(t), v = o ?? a === "stacked";
|
|
265
|
-
return _ ? /* @__PURE__ */ k("time", {
|
|
266
|
-
dateTime: i ?? _.toISOString(),
|
|
267
|
-
className: e("date-block--component", j.dateBlock, a === "inline" && j.dateBlockInline, v && j.dateBlockBoxed, m),
|
|
268
|
-
...h,
|
|
269
|
-
children: [
|
|
270
|
-
s && /* @__PURE__ */ O("span", {
|
|
271
|
-
className: j.dateBlockWeekday,
|
|
272
|
-
children: A(_, u, { locale: g })
|
|
273
|
-
}),
|
|
274
|
-
/* @__PURE__ */ O("span", {
|
|
275
|
-
className: j.dateBlockDay,
|
|
276
|
-
children: A(_, d, { locale: g })
|
|
277
|
-
}),
|
|
278
|
-
c && /* @__PURE__ */ O("span", {
|
|
279
|
-
className: j.dateBlockMonth,
|
|
280
|
-
children: A(_, f, { locale: g })
|
|
281
|
-
}),
|
|
282
|
-
l && /* @__PURE__ */ O("span", {
|
|
283
|
-
className: j.dateBlockYear,
|
|
284
|
-
children: A(_, p, { locale: g })
|
|
285
|
-
}),
|
|
286
|
-
n != null && /* @__PURE__ */ O("span", {
|
|
287
|
-
className: j.dateBlockTime,
|
|
288
|
-
children: n
|
|
289
|
-
})
|
|
290
|
-
]
|
|
291
|
-
}) : null;
|
|
292
|
-
}
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region src/components/base/display/placeholder-pattern.tsx
|
|
295
|
-
function G({ className: t, ...n }) {
|
|
296
|
-
return /* @__PURE__ */ O("div", {
|
|
297
|
-
"aria-hidden": !0,
|
|
298
|
-
className: e("placeholder-pattern--component", j.placeholderPattern, t),
|
|
299
|
-
...n
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/components/base/display/kbd.tsx
|
|
304
|
-
function K({ className: t, ...n }) {
|
|
305
|
-
return /* @__PURE__ */ O("kbd", {
|
|
306
|
-
"data-slot": "kbd",
|
|
307
|
-
className: e("kbd--component", j.kbd, t),
|
|
308
|
-
...n
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
function q({ className: t, ...n }) {
|
|
312
|
-
return /* @__PURE__ */ O("span", {
|
|
313
|
-
"data-slot": "kbd-group",
|
|
314
|
-
className: e("kbd-group--component", j.kbdGroup, t),
|
|
315
|
-
...n
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region src/components/base/display/metadata-value.tsx
|
|
320
|
-
var J = "metadata-value--component";
|
|
321
|
-
function oe(e) {
|
|
322
|
-
return e == null || e === "";
|
|
323
|
-
}
|
|
324
|
-
function se(t, n = "—") {
|
|
325
|
-
return /* @__PURE__ */ O(b, {
|
|
326
|
-
size: "inherit",
|
|
327
|
-
label: n,
|
|
328
|
-
className: e(J, t)
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
function ce(e) {
|
|
332
|
-
throw Error(`Unsupported metadata value descriptor: ${JSON.stringify(e)}`);
|
|
333
|
-
}
|
|
334
|
-
function Y(t) {
|
|
335
|
-
if (t.kind === "node") return /* @__PURE__ */ O(D, { children: t.node });
|
|
336
|
-
if (t.kind === "empty" || t.kind !== "link" && oe(t.value)) return se(t.className, t.emptyLabel);
|
|
337
|
-
let n = e(J, t.className);
|
|
338
|
-
switch (t.kind) {
|
|
339
|
-
case void 0:
|
|
340
|
-
case "text": return /* @__PURE__ */ O(h, {
|
|
341
|
-
size: "inherit",
|
|
342
|
-
className: e("metadata-value--component", n),
|
|
343
|
-
children: t.display ?? t.value
|
|
344
|
-
});
|
|
345
|
-
case "mono": return /* @__PURE__ */ O(d, {
|
|
346
|
-
size: "inherit",
|
|
347
|
-
className: n,
|
|
348
|
-
children: t.display ?? t.value
|
|
349
|
-
});
|
|
350
|
-
case "email": return /* @__PURE__ */ O(f, {
|
|
351
|
-
value: t.value,
|
|
352
|
-
display: t.display,
|
|
353
|
-
emptyLabel: t.emptyLabel,
|
|
354
|
-
className: n
|
|
355
|
-
});
|
|
356
|
-
case "phone": return /* @__PURE__ */ O(v, {
|
|
357
|
-
value: t.value,
|
|
358
|
-
display: t.display,
|
|
359
|
-
emptyLabel: t.emptyLabel,
|
|
360
|
-
className: n
|
|
361
|
-
});
|
|
362
|
-
case "url": return /* @__PURE__ */ O(u, {
|
|
363
|
-
value: t.value,
|
|
364
|
-
display: t.display,
|
|
365
|
-
emptyLabel: t.emptyLabel,
|
|
366
|
-
className: n
|
|
367
|
-
});
|
|
368
|
-
case "link": return /* @__PURE__ */ O(m, {
|
|
369
|
-
href: t.href,
|
|
370
|
-
emptyLabel: t.emptyLabel,
|
|
371
|
-
className: n,
|
|
372
|
-
children: t.display ?? t.value ?? t.href
|
|
373
|
-
});
|
|
374
|
-
case "date": return /* @__PURE__ */ O(g, {
|
|
375
|
-
value: t.value,
|
|
376
|
-
pattern: t.pattern,
|
|
377
|
-
emptyLabel: t.emptyLabel,
|
|
378
|
-
size: "inherit",
|
|
379
|
-
className: n
|
|
380
|
-
});
|
|
381
|
-
case "time": return /* @__PURE__ */ O(_, {
|
|
382
|
-
value: t.value,
|
|
383
|
-
pattern: t.pattern,
|
|
384
|
-
emptyLabel: t.emptyLabel,
|
|
385
|
-
size: "inherit",
|
|
386
|
-
className: n
|
|
387
|
-
});
|
|
388
|
-
case "datetime": return /* @__PURE__ */ O(y, {
|
|
389
|
-
value: t.value,
|
|
390
|
-
pattern: t.pattern,
|
|
391
|
-
emptyLabel: t.emptyLabel,
|
|
392
|
-
size: "inherit",
|
|
393
|
-
className: n
|
|
394
|
-
});
|
|
395
|
-
case "money": return /* @__PURE__ */ O(p, {
|
|
396
|
-
amount: t.value,
|
|
397
|
-
currency: t.currency,
|
|
398
|
-
unit: t.unit,
|
|
399
|
-
minorUnitScale: t.minorUnitScale,
|
|
400
|
-
formatMode: t.formatMode,
|
|
401
|
-
locale: t.locale,
|
|
402
|
-
emptyLabel: t.emptyLabel,
|
|
403
|
-
size: "inherit",
|
|
404
|
-
className: n
|
|
405
|
-
});
|
|
406
|
-
case "badge": return /* @__PURE__ */ O(x, {
|
|
407
|
-
tone: t.badgeTone ?? "secondary",
|
|
408
|
-
variant: t.badgeVariant,
|
|
409
|
-
className: n,
|
|
410
|
-
children: t.display ?? t.value
|
|
411
|
-
});
|
|
412
|
-
default: return ce(t);
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
//#endregion
|
|
416
|
-
//#region src/components/base/display/metadata-list.strings.ts
|
|
417
|
-
var X = {
|
|
418
|
-
formatInfoLabel: (e) => `${e} info`,
|
|
419
|
-
infoFallback: "Info"
|
|
420
|
-
}, Z = {
|
|
421
|
-
root: "metadata__root___adepF",
|
|
422
|
-
title: "metadata__title___JCg-m",
|
|
423
|
-
titleSeparator: "metadata__titleSeparator___sSi79",
|
|
424
|
-
label: "metadata__label___RlvLT",
|
|
425
|
-
labelWrap: "metadata__labelWrap___vEeEl",
|
|
426
|
-
itemIcon: "metadata__itemIcon___anOys",
|
|
427
|
-
value: "metadata__value___7B1OM",
|
|
428
|
-
description: "metadata__description____g3pp",
|
|
429
|
-
infoTrigger: "metadata__infoTrigger___tlES-",
|
|
430
|
-
tooltip: "metadata__tooltip___9PBmy",
|
|
431
|
-
gridItem: "metadata__gridItem___58mZm",
|
|
432
|
-
gridLabel: "metadata__gridLabel___vjwfX",
|
|
433
|
-
rows: "metadata__rows___KJAUl",
|
|
434
|
-
rowsDivided: "metadata__rowsDivided___36Tko",
|
|
435
|
-
row: "metadata__row___IK3nl",
|
|
436
|
-
rowLabel: "metadata__rowLabel___C1ZWP",
|
|
437
|
-
rowValue: "metadata__rowValue___XktbG",
|
|
438
|
-
inline: "metadata__inline___IYAlQ",
|
|
439
|
-
inlineItem: "metadata__inlineItem___WlyKN",
|
|
440
|
-
inlineLabel: "metadata__inlineLabel___sfbhy",
|
|
441
|
-
inlineSeparator: "metadata__inlineSeparator___GD3nM"
|
|
442
|
-
}, le = {
|
|
443
|
-
1: 1,
|
|
444
|
-
2: {
|
|
445
|
-
base: 1,
|
|
446
|
-
md: 2
|
|
447
|
-
},
|
|
448
|
-
3: {
|
|
449
|
-
base: 1,
|
|
450
|
-
sm: 2,
|
|
451
|
-
lg: 3
|
|
452
|
-
},
|
|
453
|
-
4: {
|
|
454
|
-
base: 1,
|
|
455
|
-
sm: 2,
|
|
456
|
-
lg: 3,
|
|
457
|
-
xl: 4
|
|
458
|
-
}
|
|
459
|
-
};
|
|
460
|
-
function ue(e) {
|
|
461
|
-
return typeof e == "object" ? e : le[e];
|
|
462
|
-
}
|
|
463
|
-
function de(e, t) {
|
|
464
|
-
return e.id ? e.id : `metadata-${typeof e.label == "string" ? e.label : t}-${t}`;
|
|
465
|
-
}
|
|
466
|
-
function fe(e) {
|
|
467
|
-
return typeof e == "object" && !!e && !T(e) && !Array.isArray(e) && ("kind" in e || "node" in e || "value" in e);
|
|
468
|
-
}
|
|
469
|
-
function Q(t, n, r, i) {
|
|
470
|
-
return fe(t) ? t.kind === "node" ? /* @__PURE__ */ O(Y, { ...t }) : /* @__PURE__ */ O(Y, {
|
|
471
|
-
...t,
|
|
472
|
-
emptyLabel: t.emptyLabel ?? r,
|
|
473
|
-
className: e(i, t.className)
|
|
474
|
-
}) : typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ O(Y, {
|
|
475
|
-
kind: n ? "empty" : "text",
|
|
476
|
-
value: t,
|
|
477
|
-
emptyLabel: r,
|
|
478
|
-
className: i
|
|
479
|
-
}) : t;
|
|
480
|
-
}
|
|
481
|
-
function pe({ label: e, content: t, copy: n }) {
|
|
482
|
-
let r = typeof e == "string" ? n.formatInfoLabel(e) : n.infoFallback;
|
|
483
|
-
return /* @__PURE__ */ k(s, { children: [/* @__PURE__ */ O(a, { render: /* @__PURE__ */ O(i, {
|
|
484
|
-
type: "button",
|
|
485
|
-
tone: "neutral",
|
|
486
|
-
buttonStyle: "ghost",
|
|
487
|
-
iconOnly: !0,
|
|
488
|
-
"aria-label": r,
|
|
489
|
-
className: Z.infoTrigger,
|
|
490
|
-
"data-hit-area": !0,
|
|
491
|
-
children: /* @__PURE__ */ O(C, {})
|
|
492
|
-
}) }), /* @__PURE__ */ O(o, {
|
|
493
|
-
side: "top",
|
|
494
|
-
align: "start",
|
|
495
|
-
className: Z.tooltip,
|
|
496
|
-
children: t
|
|
497
|
-
})] });
|
|
498
|
-
}
|
|
499
|
-
function $({ item: n, copy: r, className: i }) {
|
|
500
|
-
let a = n.icon;
|
|
501
|
-
return /* @__PURE__ */ k(D, { children: [
|
|
502
|
-
!!a && /* @__PURE__ */ O(a, { className: Z.itemIcon }),
|
|
503
|
-
/* @__PURE__ */ O(t, {
|
|
504
|
-
className: e("metadata-list--label", Z.label, i),
|
|
505
|
-
children: n.label
|
|
506
|
-
}),
|
|
507
|
-
n.tooltip != null && /* @__PURE__ */ O(pe, {
|
|
508
|
-
label: n.label,
|
|
509
|
-
content: n.tooltip,
|
|
510
|
-
copy: r
|
|
511
|
-
})
|
|
512
|
-
] });
|
|
513
|
-
}
|
|
514
|
-
function me({ items: r, columns: i = 2, density: a = "default", emptyLabel: o = "—", title: s, titleSeparator: u = !1, className: d, layout: f = "grid", separator: p = ": ", itemSeparator: m = !1, strings: h }) {
|
|
515
|
-
let g = {
|
|
516
|
-
...X,
|
|
517
|
-
...h
|
|
518
|
-
}, _ = E(() => r.filter(Boolean), [r]);
|
|
519
|
-
if (_.length === 0) return null;
|
|
520
|
-
let v = a === "compact", y = Z.value, b = s != null, x = /* @__PURE__ */ k(D, { children: [!!b && /* @__PURE__ */ O(t, {
|
|
521
|
-
className: e("metadata-list--title", Z.title),
|
|
522
|
-
children: s
|
|
523
|
-
}), !!(b && u) && /* @__PURE__ */ O(N, { className: e("metadata-list--title-separator", Z.titleSeparator) })] }), S = e("metadata-list--component", Z.root, d), C = _.map((e, t) => ({
|
|
524
|
-
item: e,
|
|
525
|
-
key: de(e, t),
|
|
526
|
-
absent: e.value === null || e.value === void 0,
|
|
527
|
-
emptyLabel: e.emptyLabel ?? o,
|
|
528
|
-
value: e.value ?? e.emptyLabel ?? o
|
|
529
|
-
}));
|
|
530
|
-
if (f === "inline") {
|
|
531
|
-
let t = typeof m == "string" ? m : m ? "·" : "";
|
|
532
|
-
return /* @__PURE__ */ k("div", {
|
|
533
|
-
className: S,
|
|
534
|
-
children: [x, /* @__PURE__ */ O(l, {
|
|
535
|
-
direction: "horizontal",
|
|
536
|
-
gap: v ? "sm" : "md",
|
|
537
|
-
align: "baseline",
|
|
538
|
-
wrap: !0,
|
|
539
|
-
className: e("metadata-list--inline", Z.inline),
|
|
540
|
-
children: C.map(({ item: r, key: i, absent: a, emptyLabel: o, value: s }, c) => /* @__PURE__ */ k(ee, { children: [/* @__PURE__ */ k("div", {
|
|
541
|
-
className: e("metadata-list--item", Z.inlineItem),
|
|
542
|
-
children: [/* @__PURE__ */ k("span", {
|
|
543
|
-
className: Z.inlineLabel,
|
|
544
|
-
children: [/* @__PURE__ */ O($, {
|
|
545
|
-
item: r,
|
|
546
|
-
copy: g,
|
|
547
|
-
className: Z.labelWrap
|
|
548
|
-
}), /* @__PURE__ */ O(n, {
|
|
549
|
-
size: "inherit",
|
|
550
|
-
type: "secondary",
|
|
551
|
-
children: p
|
|
552
|
-
})]
|
|
553
|
-
}), r.render ? /* @__PURE__ */ O("span", {
|
|
554
|
-
className: Z.value,
|
|
555
|
-
children: r.render(r)
|
|
556
|
-
}) : Q(s, a, o, Z.value)]
|
|
557
|
-
}), !!(t && c < C.length - 1) && /* @__PURE__ */ O(n, {
|
|
558
|
-
size: "inherit",
|
|
559
|
-
type: "secondary",
|
|
560
|
-
"aria-hidden": !0,
|
|
561
|
-
className: e("metadata-list--item-separator", Z.inlineSeparator),
|
|
562
|
-
children: t
|
|
563
|
-
})] }, i))
|
|
564
|
-
})]
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
return f === "rows" ? /* @__PURE__ */ k("div", {
|
|
568
|
-
className: S,
|
|
569
|
-
children: [x, /* @__PURE__ */ O("dl", {
|
|
570
|
-
"data-row-density": a,
|
|
571
|
-
className: e("metadata-list--rows", Z.rows, m !== !1 && Z.rowsDivided),
|
|
572
|
-
children: C.map(({ item: t, key: r, absent: i, emptyLabel: a, value: o }) => /* @__PURE__ */ k("div", {
|
|
573
|
-
className: e("metadata-list--item", Z.row),
|
|
574
|
-
children: [/* @__PURE__ */ O("dt", {
|
|
575
|
-
className: Z.rowLabel,
|
|
576
|
-
children: /* @__PURE__ */ O($, {
|
|
577
|
-
item: t,
|
|
578
|
-
copy: g,
|
|
579
|
-
className: Z.labelWrap
|
|
580
|
-
})
|
|
581
|
-
}), /* @__PURE__ */ k("dd", {
|
|
582
|
-
className: Z.rowValue,
|
|
583
|
-
children: [t.render ? /* @__PURE__ */ O("div", {
|
|
584
|
-
className: y,
|
|
585
|
-
children: t.render(t)
|
|
586
|
-
}) : Q(o, i, a, y), !!t.description && /* @__PURE__ */ O(n, {
|
|
587
|
-
size: "xs",
|
|
588
|
-
type: "secondary",
|
|
589
|
-
className: e("metadata-list--description", Z.description),
|
|
590
|
-
children: t.description
|
|
591
|
-
})]
|
|
592
|
-
})]
|
|
593
|
-
}, r))
|
|
594
|
-
})]
|
|
595
|
-
}) : /* @__PURE__ */ k("div", {
|
|
596
|
-
className: S,
|
|
597
|
-
children: [x, /* @__PURE__ */ O(c, {
|
|
598
|
-
columns: ue(i),
|
|
599
|
-
gap: v ? "md" : "xl",
|
|
600
|
-
align: "start",
|
|
601
|
-
className: "metadata-list--grid",
|
|
602
|
-
children: C.map(({ item: t, key: r, absent: i, emptyLabel: a, value: o }) => /* @__PURE__ */ k("div", {
|
|
603
|
-
className: e("metadata-list--item", Z.gridItem),
|
|
604
|
-
children: [
|
|
605
|
-
/* @__PURE__ */ O("div", {
|
|
606
|
-
className: Z.gridLabel,
|
|
607
|
-
children: /* @__PURE__ */ O($, {
|
|
608
|
-
item: t,
|
|
609
|
-
copy: g
|
|
610
|
-
})
|
|
611
|
-
}),
|
|
612
|
-
t.render ? /* @__PURE__ */ O("div", {
|
|
613
|
-
className: y,
|
|
614
|
-
children: t.render(t)
|
|
615
|
-
}) : Q(o, i, a, y),
|
|
616
|
-
!!t.description && /* @__PURE__ */ O(n, {
|
|
617
|
-
size: "xs",
|
|
618
|
-
type: "secondary",
|
|
619
|
-
className: e("metadata-list--description", Z.description),
|
|
620
|
-
children: t.description
|
|
621
|
-
})
|
|
622
|
-
]
|
|
623
|
-
}, r))
|
|
624
|
-
})]
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
//#endregion
|
|
628
|
-
//#region src/components/base/display/inline-stat.tsx
|
|
629
|
-
function he({ label: n, value: r, layout: i = "between", mono: a = !1, className: o, ...s }) {
|
|
630
|
-
let c = a ? d : h;
|
|
631
|
-
return /* @__PURE__ */ k("div", {
|
|
632
|
-
"data-layout": i,
|
|
633
|
-
className: e("inline-stat--component", j.inlineStat, o),
|
|
634
|
-
...s,
|
|
635
|
-
children: [/* @__PURE__ */ O(t, {
|
|
636
|
-
className: "inline-stat--label",
|
|
637
|
-
children: n
|
|
638
|
-
}), /* @__PURE__ */ O(c, {
|
|
639
|
-
className: "inline-stat--value",
|
|
640
|
-
children: r
|
|
641
|
-
})]
|
|
642
|
-
});
|
|
643
|
-
}
|
|
644
|
-
//#endregion
|
|
645
|
-
export { re as _, K as a, W as c, z as d, R as f, ie as g, I as h, Y as i, H as l, ae as m, me as n, q as o, L as p, X as r, G as s, he as t, V as u, N as v };
|