prime-ui-kit 0.14.0 → 0.15.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/README.md +13 -14
- package/dist/chunks/{chunk-P6ZO37JM.js → chunk-2IKH55MI.js} +1 -1
- package/dist/chunks/{chunk-SYEX7OVT.js → chunk-THFZIHKU.js} +276 -263
- package/dist/chunks/{chunk-WXKRUVSE.js → chunk-XJAVS6FH.js} +49 -48
- package/dist/color-picker.js +2 -2
- package/dist/components/dnd/Dnd.d.ts +1 -1
- package/dist/components/login-form/LoginForm.d.ts +5 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2 -2
- package/dist/internal/swatch.d.ts +6 -2
- package/dist/layout/app-header/AppHeader.d.ts +9 -28
- package/dist/layout/index.d.ts +1 -1
- package/dist/skill/SKILL.md +9 -7
- package/dist/skill/api-contract.md +2 -2
- package/dist/skill/cheatsheet.md +9 -2
- package/dist/skill/checklist.md +9 -5
- package/dist/skill/choosing.md +7 -9
- package/dist/skill/components.md +5 -12
- package/dist/skill/composition.md +281 -54
- package/dist/skill/foundations.md +1 -1
- package/dist/skill/layouts.md +70 -37
- package/dist/skill/reference/components/avatar/examples/states.tsx +4 -4
- package/dist/skill/reference/components/badge/examples/applied-filters.tsx +13 -19
- package/dist/skill/reference/components/badge/examples/examples.module.css +1 -8
- package/dist/skill/reference/components/badge/examples/server-tags.tsx +2 -6
- package/dist/skill/reference/components/banner/examples/examples.module.css +1 -5
- package/dist/skill/reference/components/banner/examples/page-strip.tsx +16 -22
- package/dist/skill/reference/components/breadcrumb/COMPONENT.md +4 -3
- package/dist/skill/reference/components/breadcrumb/examples/ellipsis.tsx +2 -2
- package/dist/skill/reference/components/button-group/COMPONENT.md +2 -2
- package/dist/skill/reference/components/button-group/examples/in-form.tsx +22 -2
- package/dist/skill/reference/components/button-group/examples/states.tsx +10 -1
- package/dist/skill/reference/components/card/COMPONENT.md +2 -1
- package/dist/skill/reference/components/card/examples/screen.tsx +362 -0
- package/dist/skill/reference/components/card/examples/variants.tsx +15 -1
- package/dist/skill/reference/components/chart-frame/COMPONENT.md +2 -1
- package/dist/skill/reference/components/chart-frame/examples/fill-height.tsx +119 -0
- package/dist/skill/reference/components/chart-frame/examples/states.tsx +3 -1
- package/dist/skill/reference/components/chat/COMPONENT.md +3 -1
- package/dist/skill/reference/components/chat/examples/group-chat.tsx +15 -2
- package/dist/skill/reference/components/chat/examples/reactions.tsx +121 -0
- package/dist/skill/reference/components/chat/examples/screen.module.css +9 -0
- package/dist/skill/{patterns/chat.tsx → reference/components/chat/examples/screen.tsx} +170 -351
- package/dist/skill/reference/components/chat-list/COMPONENT.md +1 -0
- package/dist/skill/reference/components/chat-list/examples/links.tsx +72 -0
- package/dist/skill/reference/components/checkbox/COMPONENT.md +1 -1
- package/dist/skill/reference/components/checkbox/examples/examples.module.css +5 -1
- package/dist/skill/reference/components/checkbox/examples/indicator.tsx +13 -7
- package/dist/skill/reference/components/checkbox/examples/states.tsx +6 -1
- package/dist/skill/reference/components/color-field/COMPONENT.md +1 -1
- package/dist/skill/reference/components/color-picker/COMPONENT.md +4 -3
- package/dist/skill/reference/components/color-picker/examples/controlled-open.tsx +37 -0
- package/dist/skill/reference/components/color-picker/examples/presets.tsx +2 -2
- package/dist/skill/reference/components/color-picker/examples/states.tsx +23 -14
- package/dist/skill/reference/components/composer/COMPONENT.md +2 -1
- package/dist/skill/reference/components/composer/examples/attach-menu.tsx +78 -0
- package/dist/skill/reference/components/composer/examples/attachments.tsx +2 -2
- package/dist/skill/reference/components/crossfade/COMPONENT.md +1 -0
- package/dist/skill/reference/components/crossfade/examples/screen.tsx +197 -0
- package/dist/skill/reference/components/data-table/COMPONENT.md +3 -2
- package/dist/skill/reference/components/data-table/examples/detail-panel.tsx +36 -37
- package/dist/skill/reference/components/data-table/examples/examples.module.css +0 -12
- package/dist/skill/reference/components/data-table/examples/numeric.tsx +36 -4
- package/dist/skill/reference/components/data-table/examples/overview.tsx +1 -0
- package/dist/skill/reference/components/data-table/examples/row-open.tsx +7 -36
- package/dist/skill/{patterns/list-page.module.css → reference/components/data-table/examples/screen.module.css} +1 -7
- package/dist/skill/{patterns/list-page.tsx → reference/components/data-table/examples/screen.tsx} +84 -64
- package/dist/skill/reference/components/datepicker/COMPONENT.md +5 -4
- package/dist/skill/reference/components/datepicker/examples/examples.module.css +2 -6
- package/dist/skill/reference/components/datepicker/examples/in-form.tsx +47 -55
- package/dist/skill/reference/components/datepicker/examples/locale.tsx +35 -0
- package/dist/skill/reference/components/datepicker/examples/range-presets.tsx +11 -2
- package/dist/skill/reference/components/datepicker/examples/states.tsx +9 -1
- package/dist/skill/reference/components/description-list/COMPONENT.md +1 -0
- package/dist/skill/{patterns/detail-page.module.css → reference/components/description-list/examples/screen.module.css} +2 -9
- package/dist/skill/reference/components/description-list/examples/screen.tsx +214 -0
- package/dist/skill/reference/components/description-list/examples/structure.tsx +1 -1
- package/dist/skill/reference/components/digit-input/COMPONENT.md +3 -1
- package/dist/skill/reference/components/digit-input/examples/states.tsx +3 -1
- package/dist/skill/reference/components/digit-input/examples/without-focus-ring.tsx +13 -0
- package/dist/skill/reference/components/divider/examples/with-icon.tsx +2 -2
- package/dist/skill/reference/components/dnd/COMPONENT.md +4 -2
- package/dist/skill/reference/components/dnd/examples/drop-zones.tsx +82 -49
- package/dist/skill/reference/components/dnd/examples/examples.module.css +50 -0
- package/dist/skill/reference/components/dnd/examples/states.tsx +54 -0
- package/dist/skill/reference/components/dnd/examples/table.tsx +113 -0
- package/dist/skill/reference/components/drawer/COMPONENT.md +1 -0
- package/dist/skill/reference/components/drawer/examples/dismiss.tsx +5 -3
- package/dist/skill/reference/components/drawer/examples/examples.module.css +0 -13
- package/dist/skill/reference/components/drawer/examples/header-actions.tsx +5 -9
- package/dist/skill/reference/components/drawer/examples/overview.tsx +6 -18
- package/dist/skill/reference/components/drawer/examples/screen.tsx +298 -0
- package/dist/skill/reference/components/dropdown/examples/examples.module.css +1 -5
- package/dist/skill/reference/components/empty-page/COMPONENT.md +1 -1
- package/dist/skill/reference/components/empty-page/examples/region-error.tsx +8 -2
- package/dist/skill/reference/components/example-frame/COMPONENT.md +3 -2
- package/dist/skill/reference/components/example-frame/examples/initial-view.tsx +44 -0
- package/dist/skill/reference/components/field-list/COMPONENT.md +2 -1
- package/dist/skill/reference/components/field-list/examples/errors.tsx +5 -2
- package/dist/skill/{patterns/record-editor.tsx → reference/components/field-list/examples/screen.tsx} +3 -43
- package/dist/skill/reference/components/file-upload/COMPONENT.md +7 -6
- package/dist/skill/reference/components/file-upload/examples/custom-body.tsx +2 -1
- package/dist/skill/reference/components/file-upload/examples/examples.module.css +1 -7
- package/dist/skill/reference/components/file-upload/examples/file-cards.tsx +10 -1
- package/dist/skill/reference/components/file-upload/examples/gallery.tsx +2 -2
- package/dist/skill/reference/components/file-upload/examples/in-form.tsx +4 -9
- package/dist/skill/reference/components/file-upload/examples/overview.tsx +5 -1
- package/dist/skill/reference/components/file-upload/examples/row-parts.tsx +24 -1
- package/dist/skill/{patterns/media-library.module.css → reference/components/file-upload/examples/screen.module.css} +2 -1
- package/dist/skill/reference/components/file-upload/examples/screen.tsx +646 -0
- package/dist/skill/reference/components/file-upload/examples/states.tsx +6 -2
- package/dist/skill/reference/components/file-upload/examples/validation.tsx +11 -2
- package/dist/skill/reference/components/file-upload/examples/variants.tsx +3 -20
- package/dist/skill/reference/components/gantt/COMPONENT.md +2 -1
- package/dist/skill/reference/components/gantt/examples/screen.module.css +14 -0
- package/dist/skill/{patterns/schedule.tsx → reference/components/gantt/examples/screen.tsx} +174 -170
- package/dist/skill/reference/components/gantt/examples/states.tsx +6 -2
- package/dist/skill/reference/components/input/COMPONENT.md +2 -2
- package/dist/skill/reference/components/input/examples/examples.module.css +0 -6
- package/dist/skill/reference/components/input/examples/in-form.tsx +1 -9
- package/dist/skill/reference/components/input/examples/password-strength.tsx +34 -8
- package/dist/skill/reference/components/input/examples/states.tsx +6 -1
- package/dist/skill/reference/components/kanban/COMPONENT.md +3 -2
- package/dist/skill/reference/components/kanban/examples/columns.tsx +8 -5
- package/dist/skill/reference/components/kanban/examples/screen.module.css +17 -0
- package/dist/skill/{patterns/kanban-board.tsx → reference/components/kanban/examples/screen.tsx} +130 -172
- package/dist/skill/reference/components/kanban/examples/states.tsx +17 -6
- package/dist/skill/reference/components/login-form/COMPONENT.md +6 -5
- package/dist/skill/reference/components/login-form/examples/examples.module.css +2 -21
- package/dist/skill/reference/components/login-form/examples/forgot-password.tsx +28 -32
- package/dist/skill/reference/components/login-form/examples/narrow.tsx +1 -1
- package/dist/skill/reference/components/login-form/examples/overview.tsx +45 -47
- package/dist/skill/reference/components/login-form/examples/register.tsx +64 -68
- package/dist/skill/reference/components/login-form/examples/reset-password.tsx +50 -47
- package/dist/skill/reference/components/login-form/examples/sizes.tsx +4 -6
- package/dist/skill/reference/components/login-form/examples/states.tsx +53 -57
- package/dist/skill/reference/components/login-form/examples/structure.tsx +18 -22
- package/dist/skill/reference/components/login-form/examples/verification-code.tsx +41 -45
- package/dist/skill/reference/components/media-viewer/COMPONENT.md +1 -1
- package/dist/skill/reference/components/media-viewer/examples/dismiss.tsx +5 -1
- package/dist/skill/reference/components/message/COMPONENT.md +4 -3
- package/dist/skill/reference/components/message/examples/file.tsx +5 -1
- package/dist/skill/reference/components/message/examples/media-open.tsx +48 -0
- package/dist/skill/reference/components/message/examples/status.tsx +21 -3
- package/dist/skill/reference/components/message/examples/text-formatting.tsx +7 -1
- package/dist/skill/reference/components/modal/COMPONENT.md +2 -1
- package/dist/skill/reference/components/modal/examples/custom-container.tsx +20 -20
- package/dist/skill/reference/components/modal/examples/dismiss.tsx +5 -3
- package/dist/skill/reference/components/modal/examples/enter-key.tsx +116 -0
- package/dist/skill/reference/components/modal/examples/examples.module.css +7 -13
- package/dist/skill/reference/components/modal/examples/structure.tsx +5 -2
- package/dist/skill/reference/components/native-select/COMPONENT.md +1 -1
- package/dist/skill/reference/components/native-select/examples/states.tsx +5 -1
- package/dist/skill/reference/components/notification/COMPONENT.md +1 -1
- package/dist/skill/reference/components/notification/examples/dismiss.tsx +2 -2
- package/dist/skill/reference/components/page-content/COMPONENT.md +1 -0
- package/dist/skill/reference/components/page-content/examples/list-detail.tsx +0 -3
- package/dist/skill/{patterns/settings-page.tsx → reference/components/page-content/examples/screen.tsx} +3 -3
- package/dist/skill/reference/components/page-content/examples/variants.tsx +4 -11
- package/dist/skill/reference/components/page-toolbar/COMPONENT.md +17 -15
- package/dist/skill/reference/components/page-toolbar/examples/narrow.tsx +6 -3
- package/dist/skill/reference/components/pagination/examples/controlled.tsx +29 -29
- package/dist/skill/reference/components/pagination/examples/examples.module.css +0 -2
- package/dist/skill/reference/components/progress-bar/COMPONENT.md +1 -1
- package/dist/skill/reference/components/progress-bar/examples/segments.tsx +2 -2
- package/dist/skill/reference/components/progress-circle/COMPONENT.md +1 -1
- package/dist/skill/reference/components/progress-circle/examples/segments.tsx +8 -3
- package/dist/skill/reference/components/radio/COMPONENT.md +1 -0
- package/dist/skill/reference/components/radio/examples/examples.module.css +14 -0
- package/dist/skill/reference/components/radio/examples/in-form.tsx +45 -0
- package/dist/skill/reference/components/scroll-container/COMPONENT.md +1 -0
- package/dist/skill/reference/components/scroll-container/examples/auto-scroll.tsx +3 -3
- package/dist/skill/reference/components/scroll-container/examples/chat.tsx +3 -3
- package/dist/skill/reference/components/scroll-container/examples/edges.tsx +6 -3
- package/dist/skill/reference/components/scroll-container/examples/examples.module.css +4 -17
- package/dist/skill/reference/components/scroll-container/examples/load-more.tsx +51 -0
- package/dist/skill/reference/components/scroll-container/examples/lock.tsx +3 -5
- package/dist/skill/reference/components/scroll-container/examples/overscroll.tsx +3 -3
- package/dist/skill/reference/components/scroll-container/examples/overview.tsx +3 -3
- package/dist/skill/reference/components/scroll-container/examples/scrollbar.tsx +13 -7
- package/dist/skill/reference/components/scroll-container/examples/variants.tsx +13 -7
- package/dist/skill/reference/components/segmented-control/COMPONENT.md +2 -2
- package/dist/skill/reference/components/segmented-control/examples/in-form.tsx +5 -1
- package/dist/skill/reference/components/segmented-control/examples/states.tsx +10 -1
- package/dist/skill/reference/components/select/COMPONENT.md +1 -1
- package/dist/skill/reference/components/select/examples/examples.module.css +2 -7
- package/dist/skill/reference/components/select/examples/states.tsx +13 -1
- package/dist/skill/reference/components/sheet/COMPONENT.md +2 -0
- package/dist/skill/reference/components/sheet/examples/guard.tsx +72 -0
- package/dist/skill/reference/components/sheet/examples/header-actions.tsx +56 -0
- package/dist/skill/reference/components/slider/COMPONENT.md +2 -1
- package/dist/skill/reference/components/slider/examples/examples.module.css +8 -0
- package/dist/skill/reference/components/slider/examples/in-form.tsx +47 -0
- package/dist/skill/reference/components/slider/examples/states.tsx +4 -1
- package/dist/skill/reference/components/smart-filter/COMPONENT.md +1 -1
- package/dist/skill/reference/components/smart-filter/examples/controlled.tsx +3 -3
- package/dist/skill/reference/components/smart-filter/examples/ranges.tsx +44 -10
- package/dist/skill/reference/components/sparkline/COMPONENT.md +1 -1
- package/dist/skill/reference/components/sparkline/examples/reference.tsx +2 -1
- package/dist/skill/reference/components/tabs/COMPONENT.md +1 -1
- package/dist/skill/reference/components/tabs/examples/sizes.tsx +1 -1
- package/dist/skill/reference/components/tag-select/COMPONENT.md +1 -1
- package/dist/skill/reference/components/tag-select/examples/states.tsx +8 -1
- package/dist/skill/reference/components/textarea/COMPONENT.md +1 -1
- package/dist/skill/reference/components/textarea/examples/examples.module.css +0 -6
- package/dist/skill/reference/components/textarea/examples/in-form.tsx +1 -9
- package/dist/skill/reference/components/textarea/examples/states.tsx +2 -1
- package/dist/skill/reference/components/thumbnail/COMPONENT.md +2 -1
- package/dist/skill/reference/components/thumbnail/examples/examples.module.css +1 -1
- package/dist/skill/reference/components/thumbnail/examples/fit.tsx +24 -0
- package/dist/skill/reference/components/thumbnail/examples/video.tsx +20 -1
- package/dist/skill/reference/components/timeline/COMPONENT.md +1 -1
- package/dist/skill/reference/components/timeline/examples/links.tsx +55 -14
- package/dist/skill/reference/components/tooltip/COMPONENT.md +1 -1
- package/dist/skill/reference/components/tooltip/examples/toolbar.tsx +2 -2
- package/dist/skill/reference/components/typography/examples/weights.tsx +3 -0
- package/dist/skill/reference/components/video-note/COMPONENT.md +2 -2
- package/dist/skill/reference/components/video-note/examples/controlled.tsx +19 -2
- package/dist/skill/reference/components/video-note/examples/in-message.tsx +5 -2
- package/dist/skill/reference/components/visually-hidden/COMPONENT.md +2 -1
- package/dist/skill/reference/components/visually-hidden/examples/assertive.tsx +39 -0
- package/dist/skill/reference/components/voice-player/COMPONENT.md +2 -2
- package/dist/skill/reference/components/voice-player/examples/call-recording.tsx +19 -9
- package/dist/skill/reference/components/voice-player/examples/controlled.tsx +20 -3
- package/dist/skill/reference/layout/app-header/COMPONENT.md +46 -63
- package/dist/skill/reference/layout/app-header/examples/breadcrumbs.tsx +10 -9
- package/dist/skill/reference/layout/app-header/examples/examples.module.css +1 -1
- package/dist/skill/reference/layout/app-header/examples/in-app-shell.tsx +0 -1
- package/dist/skill/reference/layout/app-header/examples/narrow.tsx +4 -5
- package/dist/skill/reference/layout/app-header/examples/overview.tsx +8 -10
- package/dist/skill/reference/layout/app-header/examples/page-title.tsx +3 -10
- package/dist/skill/reference/layout/app-shell/COMPONENT.md +4 -3
- package/dist/skill/reference/layout/app-shell/examples/overview.tsx +15 -30
- package/dist/skill/reference/layout/app-shell/examples/screen.tsx +262 -0
- package/dist/skill/reference/layout/app-shell/examples/template.tsx +29 -9
- package/dist/skill/reference/layout/sidebar/COMPONENT.md +7 -4
- package/dist/skill/reference/layout/sidebar/examples/account.tsx +2 -2
- package/dist/skill/reference/layout/sidebar/examples/collapsible-groups.tsx +12 -4
- package/dist/skill/reference/layout/sidebar/examples/custom-part.tsx +53 -0
- package/dist/skill/reference/layout/sidebar/examples/examples.module.css +5 -0
- package/dist/skill/reference/layout/sidebar/examples/narrow.tsx +53 -0
- package/dist/skill/reference/layout/sidebar/examples/persist.tsx +57 -0
- package/dist/skill/reference/layout/sidebar/examples/router.tsx +14 -2
- package/dist/skill/reference/layout/sidebar/examples/structure.tsx +7 -2
- package/dist/skill/responsive.md +2 -2
- package/package.json +1 -1
- package/src/components/avatar/examples/states.tsx +4 -4
- package/src/components/badge/examples/applied-filters.tsx +13 -19
- package/src/components/badge/examples/examples.module.css +1 -8
- package/src/components/badge/examples/server-tags.tsx +2 -6
- package/src/components/banner/examples/examples.module.css +1 -5
- package/src/components/banner/examples/page-strip.tsx +16 -22
- package/src/components/breadcrumb/COMPONENT.md +4 -3
- package/src/components/breadcrumb/examples/ellipsis.tsx +2 -2
- package/src/components/button-group/COMPONENT.md +2 -2
- package/src/components/button-group/examples/in-form.tsx +22 -2
- package/src/components/button-group/examples/states.tsx +10 -1
- package/src/components/card/COMPONENT.md +2 -1
- package/src/components/card/examples/screen.module.css +14 -0
- package/src/components/card/examples/screen.tsx +362 -0
- package/src/components/card/examples/variants.tsx +15 -1
- package/src/components/chart-frame/COMPONENT.md +2 -1
- package/src/components/chart-frame/examples/fill-height.tsx +119 -0
- package/src/components/chart-frame/examples/states.tsx +3 -1
- package/src/components/chat/COMPONENT.md +3 -1
- package/src/components/chat/examples/group-chat.tsx +15 -2
- package/src/components/chat/examples/reactions.tsx +121 -0
- package/src/components/chat/examples/screen.module.css +9 -0
- package/src/components/chat/examples/screen.tsx +718 -0
- package/src/components/chat-list/COMPONENT.md +1 -0
- package/src/components/chat-list/examples/links.tsx +72 -0
- package/src/components/checkbox/COMPONENT.md +1 -1
- package/src/components/checkbox/examples/examples.module.css +5 -1
- package/src/components/checkbox/examples/indicator.tsx +13 -7
- package/src/components/checkbox/examples/states.tsx +6 -1
- package/src/components/color-field/COMPONENT.md +1 -1
- package/src/components/color-picker/COMPONENT.md +4 -3
- package/src/components/color-picker/examples/controlled-open.tsx +37 -0
- package/src/components/color-picker/examples/presets.tsx +2 -2
- package/src/components/color-picker/examples/states.tsx +23 -14
- package/src/components/composer/COMPONENT.md +2 -1
- package/src/components/composer/examples/attach-menu.tsx +78 -0
- package/src/components/composer/examples/attachments.tsx +2 -2
- package/src/components/crossfade/COMPONENT.md +1 -0
- package/src/components/crossfade/examples/screen.module.css +40 -0
- package/src/components/crossfade/examples/screen.tsx +197 -0
- package/src/components/data-table/COMPONENT.md +3 -2
- package/src/components/data-table/examples/detail-panel.tsx +36 -37
- package/src/components/data-table/examples/examples.module.css +0 -12
- package/src/components/data-table/examples/numeric.tsx +36 -4
- package/src/components/data-table/examples/overview.tsx +1 -0
- package/src/components/data-table/examples/row-open.tsx +7 -36
- package/src/components/data-table/examples/screen.module.css +13 -0
- package/src/components/data-table/examples/screen.tsx +354 -0
- package/src/components/datepicker/COMPONENT.md +5 -4
- package/src/components/datepicker/examples/examples.module.css +2 -6
- package/src/components/datepicker/examples/in-form.tsx +47 -55
- package/src/components/datepicker/examples/locale.tsx +35 -0
- package/src/components/datepicker/examples/range-presets.tsx +11 -2
- package/src/components/datepicker/examples/states.tsx +9 -1
- package/src/components/description-list/COMPONENT.md +1 -0
- package/src/components/description-list/examples/screen.module.css +64 -0
- package/src/components/description-list/examples/screen.tsx +214 -0
- package/src/components/description-list/examples/structure.tsx +1 -1
- package/src/components/digit-input/COMPONENT.md +3 -1
- package/src/components/digit-input/examples/states.tsx +3 -1
- package/src/components/digit-input/examples/without-focus-ring.tsx +13 -0
- package/src/components/divider/examples/with-icon.tsx +2 -2
- package/src/components/dnd/COMPONENT.md +4 -2
- package/src/components/dnd/examples/drop-zones.tsx +82 -49
- package/src/components/dnd/examples/examples.module.css +50 -0
- package/src/components/dnd/examples/states.tsx +54 -0
- package/src/components/dnd/examples/table.tsx +113 -0
- package/src/components/drawer/COMPONENT.md +1 -0
- package/src/components/drawer/examples/dismiss.tsx +5 -3
- package/src/components/drawer/examples/examples.module.css +0 -13
- package/src/components/drawer/examples/header-actions.tsx +5 -9
- package/src/components/drawer/examples/overview.tsx +6 -18
- package/src/components/drawer/examples/screen.module.css +14 -0
- package/src/components/drawer/examples/screen.tsx +298 -0
- package/src/components/dropdown/examples/examples.module.css +1 -5
- package/src/components/empty-page/COMPONENT.md +1 -1
- package/src/components/empty-page/examples/region-error.tsx +8 -2
- package/src/components/example-frame/COMPONENT.md +3 -2
- package/src/components/example-frame/examples/initial-view.tsx +44 -0
- package/src/components/field-list/COMPONENT.md +2 -1
- package/src/components/field-list/examples/errors.tsx +5 -2
- package/src/components/field-list/examples/screen.module.css +18 -0
- package/src/components/field-list/examples/screen.tsx +316 -0
- package/src/components/file-upload/COMPONENT.md +7 -6
- package/src/components/file-upload/examples/custom-body.tsx +2 -1
- package/src/components/file-upload/examples/examples.module.css +1 -7
- package/src/components/file-upload/examples/file-cards.tsx +10 -1
- package/src/components/file-upload/examples/gallery.tsx +2 -2
- package/src/components/file-upload/examples/in-form.tsx +4 -9
- package/src/components/file-upload/examples/overview.tsx +5 -1
- package/src/components/file-upload/examples/row-parts.tsx +24 -1
- package/src/components/file-upload/examples/screen.module.css +45 -0
- package/src/components/file-upload/examples/screen.tsx +646 -0
- package/src/components/file-upload/examples/states.tsx +6 -2
- package/src/components/file-upload/examples/validation.tsx +11 -2
- package/src/components/file-upload/examples/variants.tsx +3 -20
- package/src/components/gantt/COMPONENT.md +2 -1
- package/src/components/gantt/examples/screen.module.css +14 -0
- package/src/components/gantt/examples/screen.tsx +726 -0
- package/src/components/gantt/examples/states.tsx +6 -2
- package/src/components/input/COMPONENT.md +2 -2
- package/src/components/input/examples/examples.module.css +0 -6
- package/src/components/input/examples/in-form.tsx +1 -9
- package/src/components/input/examples/password-strength.tsx +34 -8
- package/src/components/input/examples/states.tsx +6 -1
- package/src/components/kanban/COMPONENT.md +3 -2
- package/src/components/kanban/examples/columns.tsx +8 -5
- package/src/components/kanban/examples/screen.module.css +17 -0
- package/src/components/kanban/examples/screen.tsx +572 -0
- package/src/components/kanban/examples/states.tsx +17 -6
- package/src/components/login-form/COMPONENT.md +6 -5
- package/src/components/login-form/examples/examples.module.css +2 -21
- package/src/components/login-form/examples/forgot-password.tsx +28 -32
- package/src/components/login-form/examples/narrow.tsx +1 -1
- package/src/components/login-form/examples/overview.tsx +45 -47
- package/src/components/login-form/examples/register.tsx +64 -68
- package/src/components/login-form/examples/reset-password.tsx +50 -47
- package/src/components/login-form/examples/sizes.tsx +4 -6
- package/src/components/login-form/examples/states.tsx +53 -57
- package/src/components/login-form/examples/structure.tsx +18 -22
- package/src/components/login-form/examples/verification-code.tsx +41 -45
- package/src/components/media-viewer/COMPONENT.md +1 -1
- package/src/components/media-viewer/examples/dismiss.tsx +5 -1
- package/src/components/message/COMPONENT.md +4 -3
- package/src/components/message/examples/file.tsx +5 -1
- package/src/components/message/examples/media-open.tsx +48 -0
- package/src/components/message/examples/status.tsx +21 -3
- package/src/components/message/examples/text-formatting.tsx +7 -1
- package/src/components/modal/COMPONENT.md +2 -1
- package/src/components/modal/examples/custom-container.tsx +20 -20
- package/src/components/modal/examples/dismiss.tsx +5 -3
- package/src/components/modal/examples/enter-key.tsx +116 -0
- package/src/components/modal/examples/examples.module.css +7 -13
- package/src/components/modal/examples/structure.tsx +5 -2
- package/src/components/native-select/COMPONENT.md +1 -1
- package/src/components/native-select/examples/states.tsx +5 -1
- package/src/components/notification/COMPONENT.md +1 -1
- package/src/components/notification/examples/dismiss.tsx +2 -2
- package/src/components/page-content/COMPONENT.md +1 -0
- package/src/components/page-content/examples/list-detail.tsx +0 -3
- package/src/components/page-content/examples/screen.module.css +27 -0
- package/src/components/page-content/examples/screen.tsx +196 -0
- package/src/components/page-content/examples/variants.tsx +4 -11
- package/src/components/page-toolbar/COMPONENT.md +17 -15
- package/src/components/page-toolbar/examples/narrow.tsx +6 -3
- package/src/components/pagination/examples/controlled.tsx +29 -29
- package/src/components/pagination/examples/examples.module.css +0 -2
- package/src/components/progress-bar/COMPONENT.md +1 -1
- package/src/components/progress-bar/examples/segments.tsx +2 -2
- package/src/components/progress-circle/COMPONENT.md +1 -1
- package/src/components/progress-circle/examples/segments.tsx +8 -3
- package/src/components/radio/COMPONENT.md +1 -0
- package/src/components/radio/examples/examples.module.css +14 -0
- package/src/components/radio/examples/in-form.tsx +45 -0
- package/src/components/scroll-container/COMPONENT.md +1 -0
- package/src/components/scroll-container/examples/auto-scroll.tsx +3 -3
- package/src/components/scroll-container/examples/chat.tsx +3 -3
- package/src/components/scroll-container/examples/edges.tsx +6 -3
- package/src/components/scroll-container/examples/examples.module.css +4 -17
- package/src/components/scroll-container/examples/load-more.tsx +51 -0
- package/src/components/scroll-container/examples/lock.tsx +3 -5
- package/src/components/scroll-container/examples/overscroll.tsx +3 -3
- package/src/components/scroll-container/examples/overview.tsx +3 -3
- package/src/components/scroll-container/examples/scrollbar.tsx +13 -7
- package/src/components/scroll-container/examples/variants.tsx +13 -7
- package/src/components/segmented-control/COMPONENT.md +2 -2
- package/src/components/segmented-control/examples/in-form.tsx +5 -1
- package/src/components/segmented-control/examples/states.tsx +10 -1
- package/src/components/select/COMPONENT.md +1 -1
- package/src/components/select/examples/examples.module.css +2 -7
- package/src/components/select/examples/states.tsx +13 -1
- package/src/components/sheet/COMPONENT.md +2 -0
- package/src/components/sheet/examples/guard.tsx +72 -0
- package/src/components/sheet/examples/header-actions.tsx +56 -0
- package/src/components/slider/COMPONENT.md +2 -1
- package/src/components/slider/examples/examples.module.css +8 -0
- package/src/components/slider/examples/in-form.tsx +47 -0
- package/src/components/slider/examples/states.tsx +4 -1
- package/src/components/smart-filter/COMPONENT.md +1 -1
- package/src/components/smart-filter/examples/controlled.tsx +3 -3
- package/src/components/smart-filter/examples/ranges.tsx +44 -10
- package/src/components/sparkline/COMPONENT.md +1 -1
- package/src/components/sparkline/examples/reference.tsx +2 -1
- package/src/components/tabs/COMPONENT.md +1 -1
- package/src/components/tabs/examples/sizes.tsx +1 -1
- package/src/components/tag-select/COMPONENT.md +1 -1
- package/src/components/tag-select/examples/states.tsx +8 -1
- package/src/components/textarea/COMPONENT.md +1 -1
- package/src/components/textarea/examples/examples.module.css +0 -6
- package/src/components/textarea/examples/in-form.tsx +1 -9
- package/src/components/textarea/examples/states.tsx +2 -1
- package/src/components/thumbnail/COMPONENT.md +2 -1
- package/src/components/thumbnail/examples/examples.module.css +1 -1
- package/src/components/thumbnail/examples/fit.tsx +24 -0
- package/src/components/thumbnail/examples/video.tsx +20 -1
- package/src/components/timeline/COMPONENT.md +1 -1
- package/src/components/timeline/examples/links.tsx +55 -14
- package/src/components/tooltip/COMPONENT.md +1 -1
- package/src/components/tooltip/examples/toolbar.tsx +2 -2
- package/src/components/typography/examples/weights.tsx +3 -0
- package/src/components/video-note/COMPONENT.md +2 -2
- package/src/components/video-note/examples/controlled.tsx +19 -2
- package/src/components/video-note/examples/in-message.tsx +5 -2
- package/src/components/visually-hidden/COMPONENT.md +2 -1
- package/src/components/visually-hidden/examples/assertive.tsx +39 -0
- package/src/components/voice-player/COMPONENT.md +2 -2
- package/src/components/voice-player/examples/call-recording.tsx +19 -9
- package/src/components/voice-player/examples/controlled.tsx +20 -3
- package/src/layout/app-header/COMPONENT.md +46 -63
- package/src/layout/app-header/examples/breadcrumbs.tsx +10 -9
- package/src/layout/app-header/examples/examples.module.css +1 -1
- package/src/layout/app-header/examples/in-app-shell.tsx +0 -1
- package/src/layout/app-header/examples/narrow.tsx +4 -5
- package/src/layout/app-header/examples/overview.tsx +8 -10
- package/src/layout/app-header/examples/page-title.tsx +3 -10
- package/src/layout/app-shell/COMPONENT.md +4 -3
- package/src/layout/app-shell/examples/overview.tsx +15 -30
- package/src/layout/app-shell/examples/screen.module.css +11 -0
- package/src/layout/app-shell/examples/screen.tsx +262 -0
- package/src/layout/app-shell/examples/template.tsx +29 -9
- package/src/layout/sidebar/COMPONENT.md +7 -4
- package/src/layout/sidebar/examples/account.tsx +2 -2
- package/src/layout/sidebar/examples/collapsible-groups.tsx +12 -4
- package/src/layout/sidebar/examples/custom-part.tsx +53 -0
- package/src/layout/sidebar/examples/examples.module.css +5 -0
- package/src/layout/sidebar/examples/narrow.tsx +53 -0
- package/src/layout/sidebar/examples/persist.tsx +57 -0
- package/src/layout/sidebar/examples/router.tsx +14 -2
- package/src/layout/sidebar/examples/structure.tsx +7 -2
- package/dist/skill/patterns/app-shell.tsx +0 -303
- package/dist/skill/patterns/chat.module.css +0 -8
- package/dist/skill/patterns/dashboard.tsx +0 -340
- package/dist/skill/patterns/detail-page.tsx +0 -206
- package/dist/skill/patterns/form-drawer.tsx +0 -240
- package/dist/skill/patterns/kanban-board.module.css +0 -28
- package/dist/skill/patterns/media-library.tsx +0 -637
- package/dist/skill/patterns/schedule.module.css +0 -22
- package/dist/skill/patterns/screen-states.tsx +0 -187
- /package/dist/skill/{patterns/dashboard.module.css → reference/components/card/examples/screen.module.css} +0 -0
- /package/dist/skill/{patterns/screen-states.module.css → reference/components/crossfade/examples/screen.module.css} +0 -0
- /package/dist/skill/{patterns/form-drawer.module.css → reference/components/drawer/examples/screen.module.css} +0 -0
- /package/dist/skill/{patterns/record-editor.module.css → reference/components/field-list/examples/screen.module.css} +0 -0
- /package/dist/skill/{patterns/settings-page.module.css → reference/components/page-content/examples/screen.module.css} +0 -0
- /package/dist/skill/{patterns/app-shell.module.css → reference/layout/app-shell/examples/screen.module.css} +0 -0
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
useSwatchOptions,
|
|
130
130
|
useSwipeDismiss,
|
|
131
131
|
visuallyHiddenClass
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-XJAVS6FH.js";
|
|
133
133
|
import {
|
|
134
134
|
ControlSizeProvider,
|
|
135
135
|
cx,
|
|
@@ -142,26 +142,6 @@ import {
|
|
|
142
142
|
// src/layout/app-header/AppHeader.tsx
|
|
143
143
|
import * as React from "react";
|
|
144
144
|
|
|
145
|
-
// src/components/kbd/Kbd.module.css
|
|
146
|
-
var Kbd_default = {
|
|
147
|
-
root: "Kbd_root"
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// src/components/kbd/Kbd.tsx
|
|
151
|
-
import { jsx } from "react/jsx-runtime";
|
|
152
|
-
function Kbd({ children, className, size: sizeProp, ...rest }) {
|
|
153
|
-
const { size, tier } = useBadgeTier(sizeProp);
|
|
154
|
-
return /* @__PURE__ */ jsx(
|
|
155
|
-
"kbd",
|
|
156
|
-
{
|
|
157
|
-
className: cx(Kbd_default.root, chipTier_default.tier, className),
|
|
158
|
-
...rest,
|
|
159
|
-
...toDataAttributes({ size, tier }),
|
|
160
|
-
children: /* @__PURE__ */ jsx(ControlSizeProvider, { value: tier, children })
|
|
161
|
-
}
|
|
162
|
-
);
|
|
163
|
-
}
|
|
164
|
-
|
|
165
145
|
// src/internal/sticky.module.css
|
|
166
146
|
var sticky_default = {
|
|
167
147
|
surface: "sticky_surface"
|
|
@@ -202,15 +182,11 @@ var AppHeader_default = {
|
|
|
202
182
|
titleText: "AppHeader_titleText",
|
|
203
183
|
titleName: "AppHeader_titleName",
|
|
204
184
|
description: "AppHeader_description",
|
|
205
|
-
search: "AppHeader_search",
|
|
206
|
-
searchIcon: "AppHeader_searchIcon",
|
|
207
|
-
searchText: "AppHeader_searchText",
|
|
208
|
-
searchKbd: "AppHeader_searchKbd",
|
|
209
185
|
menuButton: "AppHeader_menuButton"
|
|
210
186
|
};
|
|
211
187
|
|
|
212
188
|
// src/layout/app-header/AppHeader.tsx
|
|
213
|
-
import { jsx
|
|
189
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
214
190
|
var APP_HEADER_LABELS = {
|
|
215
191
|
menu: "\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043C\u0435\u043D\u044E"
|
|
216
192
|
};
|
|
@@ -219,22 +195,17 @@ function AppHeaderRoot({ labels, className, children, ...rest }) {
|
|
|
219
195
|
const value = React.useMemo(() => ({ ...APP_HEADER_LABELS, ...labels }), [labels]);
|
|
220
196
|
const items = React.Children.toArray(children);
|
|
221
197
|
const isTools = (child) => React.isValidElement(child) && child.type === AppHeaderTools;
|
|
222
|
-
return /* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ jsx(LabelsContext.Provider, { value, children: /* @__PURE__ */ jsx(ControlSizeProvider, { value: "m", children: /* @__PURE__ */ jsxs("header", { ...rest, className: cx(AppHeader_default.root, stickySurfaceClass, className), children: [
|
|
199
|
+
/* @__PURE__ */ jsx("div", { className: AppHeader_default.row, children: items.filter((child) => !isTools(child)) }),
|
|
224
200
|
items.filter(isTools)
|
|
225
201
|
] }) }) });
|
|
226
202
|
}
|
|
227
203
|
AppHeaderRoot.displayName = "AppHeader.Root";
|
|
228
204
|
function AppHeaderStart({ className, ...rest }) {
|
|
229
|
-
return /* @__PURE__ */
|
|
205
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cx(AppHeader_default.start, className) });
|
|
230
206
|
}
|
|
231
207
|
AppHeaderStart.displayName = "AppHeader.Start";
|
|
232
|
-
function AppHeaderTitle({
|
|
233
|
-
as: NameTag = "span",
|
|
234
|
-
className,
|
|
235
|
-
children,
|
|
236
|
-
...rest
|
|
237
|
-
}) {
|
|
208
|
+
function AppHeaderTitle({ className, children, ...rest }) {
|
|
238
209
|
const items = React.Children.toArray(children);
|
|
239
210
|
const isIcon = (child) => React.isValidElement(child) && child.type === AppHeaderIcon;
|
|
240
211
|
const isDescription = (child) => React.isValidElement(child) && child.type === AppHeaderDescription;
|
|
@@ -244,51 +215,35 @@ function AppHeaderTitle({
|
|
|
244
215
|
return /* @__PURE__ */ jsxs("div", { ...rest, className: cx(AppHeader_default.title, className), children: [
|
|
245
216
|
icon,
|
|
246
217
|
/* @__PURE__ */ jsxs("div", { className: AppHeader_default.titleText, children: [
|
|
247
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ jsx("h1", { className: cx(textRole_default.titleS, AppHeader_default.titleName), children: name }),
|
|
248
219
|
description
|
|
249
220
|
] })
|
|
250
221
|
] });
|
|
251
222
|
}
|
|
252
223
|
AppHeaderTitle.displayName = "AppHeader.Title";
|
|
253
224
|
function AppHeaderIcon({ className, ...rest }) {
|
|
254
|
-
return /* @__PURE__ */
|
|
225
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", ...rest, className: cx(AppHeader_default.icon, className) });
|
|
255
226
|
}
|
|
256
227
|
AppHeaderIcon.displayName = "AppHeader.Icon";
|
|
257
228
|
function AppHeaderDescription({ className, ...rest }) {
|
|
258
|
-
return /* @__PURE__ */
|
|
229
|
+
return /* @__PURE__ */ jsx("span", { ...rest, className: cx(textRole_default.caption, AppHeader_default.description, className) });
|
|
259
230
|
}
|
|
260
231
|
AppHeaderDescription.displayName = "AppHeader.Description";
|
|
261
232
|
function AppHeaderSeparator({ className, ...rest }) {
|
|
262
|
-
return /* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ jsx(Divider, { ...rest, orientation: "vertical", className: cx(AppHeader_default.separator, className) });
|
|
263
234
|
}
|
|
264
235
|
AppHeaderSeparator.displayName = "AppHeader.Separator";
|
|
265
|
-
function AppHeaderSearch({ children, shortcut = "\u2318K", className, ...rest }) {
|
|
266
|
-
return /* @__PURE__ */ jsxs(
|
|
267
|
-
"button",
|
|
268
|
-
{
|
|
269
|
-
type: "button",
|
|
270
|
-
...rest,
|
|
271
|
-
className: cx(fieldTierClass, fieldSurfaceClass, AppHeader_default.search, className),
|
|
272
|
-
children: [
|
|
273
|
-
/* @__PURE__ */ jsx2(Icon, { name: "action.search", className: AppHeader_default.searchIcon }),
|
|
274
|
-
/* @__PURE__ */ jsx2("span", { className: AppHeader_default.searchText, children }),
|
|
275
|
-
shortcut == null ? null : /* @__PURE__ */ jsx2(Kbd, { className: AppHeader_default.searchKbd, "aria-hidden": "true", children: shortcut })
|
|
276
|
-
]
|
|
277
|
-
}
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
AppHeaderSearch.displayName = "AppHeader.Search";
|
|
281
236
|
function AppHeaderTools({ className, ...rest }) {
|
|
282
|
-
return /* @__PURE__ */
|
|
237
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cx(AppHeader_default.tools, className) });
|
|
283
238
|
}
|
|
284
239
|
AppHeaderTools.displayName = "AppHeader.Tools";
|
|
285
240
|
function AppHeaderActions({ className, ...rest }) {
|
|
286
|
-
return /* @__PURE__ */
|
|
241
|
+
return /* @__PURE__ */ jsx("div", { ...rest, className: cx(AppHeader_default.actions, className) });
|
|
287
242
|
}
|
|
288
243
|
AppHeaderActions.displayName = "AppHeader.Actions";
|
|
289
244
|
function AppHeaderMenuButton({ show = "narrow", className, ...rest }) {
|
|
290
245
|
const labels = React.useContext(LabelsContext);
|
|
291
|
-
return /* @__PURE__ */
|
|
246
|
+
return /* @__PURE__ */ jsx(
|
|
292
247
|
Button.Root,
|
|
293
248
|
{
|
|
294
249
|
variant: "soft",
|
|
@@ -297,7 +252,7 @@ function AppHeaderMenuButton({ show = "narrow", className, ...rest }) {
|
|
|
297
252
|
...rest,
|
|
298
253
|
className: cx(AppHeader_default.menuButton, className),
|
|
299
254
|
...toDataAttributes({ show }),
|
|
300
|
-
children: /* @__PURE__ */
|
|
255
|
+
children: /* @__PURE__ */ jsx(Button.Icon, { children: /* @__PURE__ */ jsx(Icon, { name: "nav.menu" }) })
|
|
301
256
|
}
|
|
302
257
|
);
|
|
303
258
|
}
|
|
@@ -309,7 +264,6 @@ var AppHeader = {
|
|
|
309
264
|
Icon: AppHeaderIcon,
|
|
310
265
|
Description: AppHeaderDescription,
|
|
311
266
|
Separator: AppHeaderSeparator,
|
|
312
|
-
Search: AppHeaderSearch,
|
|
313
267
|
Tools: AppHeaderTools,
|
|
314
268
|
Actions: AppHeaderActions,
|
|
315
269
|
MenuButton: AppHeaderMenuButton
|
|
@@ -328,9 +282,9 @@ var AppShell_default = {
|
|
|
328
282
|
};
|
|
329
283
|
|
|
330
284
|
// src/layout/app-shell/AppShell.tsx
|
|
331
|
-
import { jsx as
|
|
285
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
332
286
|
function AppShellNav({ className, ...rest }) {
|
|
333
|
-
return /* @__PURE__ */
|
|
287
|
+
return /* @__PURE__ */ jsx2("div", { ...rest, className: cx(AppShell_default.nav, className) });
|
|
334
288
|
}
|
|
335
289
|
AppShellNav.displayName = "AppShell.Nav";
|
|
336
290
|
function AppShellRoot({ fillViewport = false, className, children, ...rest }) {
|
|
@@ -349,18 +303,18 @@ function AppShellRoot({ fillViewport = false, className, children, ...rest }) {
|
|
|
349
303
|
}),
|
|
350
304
|
children: [
|
|
351
305
|
nav,
|
|
352
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ jsx2("div", { className: AppShell_default.panel, children: panel })
|
|
353
307
|
]
|
|
354
308
|
}
|
|
355
309
|
);
|
|
356
310
|
}
|
|
357
311
|
AppShellRoot.displayName = "AppShell.Root";
|
|
358
312
|
function AppShellFooter({ className, ...rest }) {
|
|
359
|
-
return /* @__PURE__ */
|
|
313
|
+
return /* @__PURE__ */ jsx2("div", { ...rest, className: cx(AppShell_default.footer, className) });
|
|
360
314
|
}
|
|
361
315
|
AppShellFooter.displayName = "AppShell.Footer";
|
|
362
316
|
function AppShellMain({ contentWidth = "full", className, children, ...rest }) {
|
|
363
|
-
return /* @__PURE__ */
|
|
317
|
+
return /* @__PURE__ */ jsx2(
|
|
364
318
|
ScrollContainer,
|
|
365
319
|
{
|
|
366
320
|
...rest,
|
|
@@ -392,10 +346,10 @@ function AppShellTemplate({
|
|
|
392
346
|
if (main) main.scrollTop = 0;
|
|
393
347
|
}, [scrollResetKey]);
|
|
394
348
|
return /* @__PURE__ */ jsxs2(AppShellRoot, { ...rootProps, children: [
|
|
395
|
-
nav == null ? null : /* @__PURE__ */
|
|
349
|
+
nav == null ? null : /* @__PURE__ */ jsx2(AppShellNav, { children: nav }),
|
|
396
350
|
header,
|
|
397
|
-
/* @__PURE__ */
|
|
398
|
-
footer == null ? null : /* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ jsx2(AppShellMain, { ...mainProps, ref: setMainRef, children }),
|
|
352
|
+
footer == null ? null : /* @__PURE__ */ jsx2(AppShellFooter, { children: footer })
|
|
399
353
|
] });
|
|
400
354
|
}
|
|
401
355
|
AppShellTemplate.displayName = "AppShell.Template";
|
|
@@ -424,7 +378,7 @@ var BottomNav_default = {
|
|
|
424
378
|
};
|
|
425
379
|
|
|
426
380
|
// src/layout/bottom-nav/BottomNav.tsx
|
|
427
|
-
import { Fragment, jsx as
|
|
381
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
428
382
|
var BOTTOM_NAV_LABELS = {
|
|
429
383
|
nav: "\u041E\u0441\u043D\u043E\u0432\u043D\u044B\u0435 \u0440\u0430\u0437\u0434\u0435\u043B\u044B"
|
|
430
384
|
};
|
|
@@ -492,7 +446,7 @@ function BottomNavRoot({
|
|
|
492
446
|
resize?.disconnect();
|
|
493
447
|
};
|
|
494
448
|
}, [floating]);
|
|
495
|
-
return /* @__PURE__ */
|
|
449
|
+
return /* @__PURE__ */ jsx3(IconOnlyContext.Provider, { value: iconOnly, children: /* @__PURE__ */ jsxs3(
|
|
496
450
|
"nav",
|
|
497
451
|
{
|
|
498
452
|
"aria-label": labels?.nav ?? BOTTOM_NAV_LABELS.nav,
|
|
@@ -505,7 +459,7 @@ function BottomNavRoot({
|
|
|
505
459
|
children: [
|
|
506
460
|
start,
|
|
507
461
|
/* @__PURE__ */ jsxs3("div", { ref: barRef, className: BottomNav_default.bar, children: [
|
|
508
|
-
floating ? /* @__PURE__ */
|
|
462
|
+
floating ? /* @__PURE__ */ jsx3("span", { ref: selectionRef, className: BottomNav_default.selection, "aria-hidden": "true" }) : null,
|
|
509
463
|
items
|
|
510
464
|
] }),
|
|
511
465
|
end
|
|
@@ -515,7 +469,7 @@ function BottomNavRoot({
|
|
|
515
469
|
}
|
|
516
470
|
BottomNavRoot.displayName = "BottomNav.Root";
|
|
517
471
|
function BottomNavAction({ className, children, ...rest }) {
|
|
518
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ jsx3(
|
|
519
473
|
Button.Root,
|
|
520
474
|
{
|
|
521
475
|
...rest,
|
|
@@ -524,13 +478,13 @@ function BottomNavAction({ className, children, ...rest }) {
|
|
|
524
478
|
variant: "solid",
|
|
525
479
|
tone: "neutral",
|
|
526
480
|
className: cx(BottomNav_default.action, className),
|
|
527
|
-
children: /* @__PURE__ */
|
|
481
|
+
children: /* @__PURE__ */ jsx3(Button.Icon, { children })
|
|
528
482
|
}
|
|
529
483
|
);
|
|
530
484
|
}
|
|
531
485
|
BottomNavAction.displayName = "BottomNav.Action";
|
|
532
486
|
function BottomNavItemIcon({ className, ...rest }) {
|
|
533
|
-
return /* @__PURE__ */
|
|
487
|
+
return /* @__PURE__ */ jsx3("span", { ...rest, className: cx(BottomNav_default.icon, className), "aria-hidden": "true" });
|
|
534
488
|
}
|
|
535
489
|
BottomNavItemIcon.displayName = "BottomNav.ItemIcon";
|
|
536
490
|
function BottomNavItemCount({
|
|
@@ -539,7 +493,7 @@ function BottomNavItemCount({
|
|
|
539
493
|
className,
|
|
540
494
|
...rest
|
|
541
495
|
}) {
|
|
542
|
-
return /* @__PURE__ */
|
|
496
|
+
return /* @__PURE__ */ jsx3(
|
|
543
497
|
Badge.Root,
|
|
544
498
|
{
|
|
545
499
|
...rest,
|
|
@@ -562,9 +516,9 @@ function splitItemChildren(children, iconOnly) {
|
|
|
562
516
|
}
|
|
563
517
|
});
|
|
564
518
|
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
565
|
-
/* @__PURE__ */
|
|
519
|
+
/* @__PURE__ */ jsx3("span", { className: iconOnly ? visuallyHiddenClass : BottomNav_default.label, children: label }),
|
|
566
520
|
" ",
|
|
567
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ jsx3("span", { className: BottomNav_default.glyph, children: icon })
|
|
568
522
|
] });
|
|
569
523
|
}
|
|
570
524
|
function BottomNavItem({
|
|
@@ -597,7 +551,7 @@ function BottomNavItem({
|
|
|
597
551
|
if (child) {
|
|
598
552
|
return (
|
|
599
553
|
// A disabled child keeps its own `href` / `to`: out of the Tab order like the other kinds.
|
|
600
|
-
/* @__PURE__ */
|
|
554
|
+
/* @__PURE__ */ jsx3(
|
|
601
555
|
Slot,
|
|
602
556
|
{
|
|
603
557
|
...shared,
|
|
@@ -610,7 +564,7 @@ function BottomNavItem({
|
|
|
610
564
|
);
|
|
611
565
|
}
|
|
612
566
|
if (href !== void 0) {
|
|
613
|
-
return /* @__PURE__ */
|
|
567
|
+
return /* @__PURE__ */ jsx3(
|
|
614
568
|
"a",
|
|
615
569
|
{
|
|
616
570
|
...shared,
|
|
@@ -621,7 +575,7 @@ function BottomNavItem({
|
|
|
621
575
|
}
|
|
622
576
|
);
|
|
623
577
|
}
|
|
624
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ jsx3(
|
|
625
579
|
"button",
|
|
626
580
|
{
|
|
627
581
|
...shared,
|
|
@@ -758,7 +712,7 @@ var Sidebar_default = {
|
|
|
758
712
|
};
|
|
759
713
|
|
|
760
714
|
// src/layout/sidebar/Sidebar.tsx
|
|
761
|
-
import { Fragment as Fragment2, jsx as
|
|
715
|
+
import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
762
716
|
var defaultLabels = {
|
|
763
717
|
navigation: "\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F",
|
|
764
718
|
collapse: "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043F\u0430\u043D\u0435\u043B\u044C",
|
|
@@ -932,7 +886,7 @@ var SidebarRoot = React6.forwardRef(function SidebarRoot2({
|
|
|
932
886
|
() => ({ persist, mode, setMode, open, setOpen, toggle, offCanvas, size, navId, labels }),
|
|
933
887
|
[persist, mode, setMode, open, setOpen, toggle, offCanvas, size, navId, labels]
|
|
934
888
|
);
|
|
935
|
-
return /* @__PURE__ */
|
|
889
|
+
return /* @__PURE__ */ jsx4(SidebarProvider, { value: context, children: /* @__PURE__ */ jsxs4(
|
|
936
890
|
"div",
|
|
937
891
|
{
|
|
938
892
|
...rest,
|
|
@@ -949,7 +903,7 @@ var SidebarRoot = React6.forwardRef(function SidebarRoot2({
|
|
|
949
903
|
ready: ready || void 0
|
|
950
904
|
}),
|
|
951
905
|
children: [
|
|
952
|
-
offCanvas ? /* @__PURE__ */
|
|
906
|
+
offCanvas ? /* @__PURE__ */ jsx4(
|
|
953
907
|
"button",
|
|
954
908
|
{
|
|
955
909
|
type: "button",
|
|
@@ -959,7 +913,7 @@ var SidebarRoot = React6.forwardRef(function SidebarRoot2({
|
|
|
959
913
|
onClick: close
|
|
960
914
|
}
|
|
961
915
|
) : null,
|
|
962
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ jsx4(
|
|
963
917
|
"nav",
|
|
964
918
|
{
|
|
965
919
|
ref: panelRef,
|
|
@@ -967,7 +921,7 @@ var SidebarRoot = React6.forwardRef(function SidebarRoot2({
|
|
|
967
921
|
className: Sidebar_default.panel,
|
|
968
922
|
"aria-label": labels.navigation,
|
|
969
923
|
inert: offCanvas && !open || !offCanvas && mode === "hidden" || void 0,
|
|
970
|
-
children: /* @__PURE__ */
|
|
924
|
+
children: /* @__PURE__ */ jsx4(LayerProvider, { value: offCanvas ? layer : null, children: /* @__PURE__ */ jsx4(AnchorRectProvider, { value: offCanvas ? null : anchorRect, children: /* @__PURE__ */ jsx4(SurfaceDepthProvider, { value: depth, children: /* @__PURE__ */ jsx4(ControlSizeProvider, { value: size, children }) }) }) })
|
|
971
925
|
}
|
|
972
926
|
)
|
|
973
927
|
]
|
|
@@ -976,11 +930,11 @@ var SidebarRoot = React6.forwardRef(function SidebarRoot2({
|
|
|
976
930
|
});
|
|
977
931
|
SidebarRoot.displayName = "Sidebar.Root";
|
|
978
932
|
function SidebarHeader({ className, ...rest }) {
|
|
979
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ jsx4("div", { ...rest, className: cx(Sidebar_default.header, className) });
|
|
980
934
|
}
|
|
981
935
|
SidebarHeader.displayName = "Sidebar.Header";
|
|
982
936
|
var SidebarContent = React6.forwardRef(function SidebarContent2({ className, ...rest }, ref) {
|
|
983
|
-
return /* @__PURE__ */
|
|
937
|
+
return /* @__PURE__ */ jsx4(
|
|
984
938
|
ScrollContainer,
|
|
985
939
|
{
|
|
986
940
|
...rest,
|
|
@@ -992,7 +946,7 @@ var SidebarContent = React6.forwardRef(function SidebarContent2({ className, ...
|
|
|
992
946
|
});
|
|
993
947
|
SidebarContent.displayName = "Sidebar.Content";
|
|
994
948
|
function SidebarFooter({ className, ...rest }) {
|
|
995
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ jsx4("div", { ...rest, className: cx(Sidebar_default.footer, className) });
|
|
996
950
|
}
|
|
997
951
|
SidebarFooter.displayName = "Sidebar.Footer";
|
|
998
952
|
function SidebarGroup({
|
|
@@ -1036,7 +990,7 @@ function SidebarGroup({
|
|
|
1036
990
|
children: [
|
|
1037
991
|
label === void 0 ? null : (
|
|
1038
992
|
// On the rail the heading shows its first letters; the tooltip gives the whole name.
|
|
1039
|
-
/* @__PURE__ */
|
|
993
|
+
/* @__PURE__ */ jsx4(CompactTooltip, { text: textOf(label), children: /* @__PURE__ */ jsx4("div", { id: labelId, className: Sidebar_default.groupLabel, children: /* @__PURE__ */ jsx4("span", { className: Sidebar_default.groupText, children: label }) }) })
|
|
1040
994
|
),
|
|
1041
995
|
children
|
|
1042
996
|
]
|
|
@@ -1056,7 +1010,7 @@ function SidebarGroup({
|
|
|
1056
1010
|
className: cx(Sidebar_default.group, className),
|
|
1057
1011
|
"data-collapsible": "true",
|
|
1058
1012
|
children: [
|
|
1059
|
-
/* @__PURE__ */
|
|
1013
|
+
/* @__PURE__ */ jsx4(CompactTooltip, { text, children: /* @__PURE__ */ jsxs4(
|
|
1060
1014
|
"button",
|
|
1061
1015
|
{
|
|
1062
1016
|
id: labelId,
|
|
@@ -1069,9 +1023,9 @@ function SidebarGroup({
|
|
|
1069
1023
|
setOpen((prev) => !prev);
|
|
1070
1024
|
},
|
|
1071
1025
|
children: [
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
/* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */
|
|
1026
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.groupText, children: label }),
|
|
1027
|
+
/* @__PURE__ */ jsx4(AttentionDot, { hue, shown: !open && !rail, inline: true }),
|
|
1028
|
+
/* @__PURE__ */ jsx4(Icon, { name: "nav.chevronDown", className: Sidebar_default.groupChevron })
|
|
1075
1029
|
]
|
|
1076
1030
|
}
|
|
1077
1031
|
) }),
|
|
@@ -1081,14 +1035,14 @@ function SidebarGroup({
|
|
|
1081
1035
|
className: Sidebar_default.groupBody,
|
|
1082
1036
|
...toDataAttributes({ swap: swap && rail || void 0 }),
|
|
1083
1037
|
children: [
|
|
1084
|
-
/* @__PURE__ */
|
|
1038
|
+
/* @__PURE__ */ jsx4(
|
|
1085
1039
|
"div",
|
|
1086
1040
|
{
|
|
1087
1041
|
className: cx(Sidebar_default.disclosure, Sidebar_default.groupRail),
|
|
1088
1042
|
"data-state": folded ? "open" : "closed",
|
|
1089
1043
|
inert: !folded || void 0,
|
|
1090
1044
|
"aria-hidden": !folded || void 0,
|
|
1091
|
-
children: /* @__PURE__ */
|
|
1045
|
+
children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.disclosureClip, children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.groupItems, children: /* @__PURE__ */ jsxs4(
|
|
1092
1046
|
Popover.Root,
|
|
1093
1047
|
{
|
|
1094
1048
|
open: flyout.open,
|
|
@@ -1096,12 +1050,12 @@ function SidebarGroup({
|
|
|
1096
1050
|
if (!next) flyout.close(false);
|
|
1097
1051
|
},
|
|
1098
1052
|
children: [
|
|
1099
|
-
/* @__PURE__ */
|
|
1053
|
+
/* @__PURE__ */ jsx4(
|
|
1100
1054
|
CompactTooltip,
|
|
1101
1055
|
{
|
|
1102
1056
|
text,
|
|
1103
1057
|
canOpen: () => !flyout.pointerInside.current && !flyout.open,
|
|
1104
|
-
children: /* @__PURE__ */
|
|
1058
|
+
children: /* @__PURE__ */ jsx4(Popover.Anchor, { children: /* @__PURE__ */ jsxs4(
|
|
1105
1059
|
"button",
|
|
1106
1060
|
{
|
|
1107
1061
|
ref: flyout.triggerRef,
|
|
@@ -1113,20 +1067,20 @@ function SidebarGroup({
|
|
|
1113
1067
|
...toDataAttributes({ "active-path": active || void 0 }),
|
|
1114
1068
|
...flyout.triggerHandlers,
|
|
1115
1069
|
children: [
|
|
1116
|
-
/* @__PURE__ */
|
|
1117
|
-
/* @__PURE__ */
|
|
1070
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.icon, "aria-hidden": "true", children: /* @__PURE__ */ jsx4(Icon, { name: "action.more" }) }),
|
|
1071
|
+
/* @__PURE__ */ jsx4(AttentionDot, { hue, shown: folded })
|
|
1118
1072
|
]
|
|
1119
1073
|
}
|
|
1120
1074
|
) })
|
|
1121
1075
|
}
|
|
1122
1076
|
),
|
|
1123
|
-
folded ? /* @__PURE__ */
|
|
1077
|
+
folded ? /* @__PURE__ */ jsx4(RailFlyout, { flyout, children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.groupItems, children }) }) : null
|
|
1124
1078
|
]
|
|
1125
1079
|
}
|
|
1126
1080
|
) }) })
|
|
1127
1081
|
}
|
|
1128
1082
|
),
|
|
1129
|
-
/* @__PURE__ */
|
|
1083
|
+
/* @__PURE__ */ jsx4(
|
|
1130
1084
|
"div",
|
|
1131
1085
|
{
|
|
1132
1086
|
ref: bodyRef,
|
|
@@ -1134,7 +1088,7 @@ function SidebarGroup({
|
|
|
1134
1088
|
className: Sidebar_default.disclosure,
|
|
1135
1089
|
"data-state": open ? "open" : "closed",
|
|
1136
1090
|
inert: !open || void 0,
|
|
1137
|
-
children: /* @__PURE__ */
|
|
1091
|
+
children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.disclosureClip, children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.groupItems, children }) })
|
|
1138
1092
|
}
|
|
1139
1093
|
)
|
|
1140
1094
|
]
|
|
@@ -1147,16 +1101,16 @@ function SidebarGroup({
|
|
|
1147
1101
|
}
|
|
1148
1102
|
SidebarGroup.displayName = "Sidebar.Group";
|
|
1149
1103
|
function SidebarItemIcon({ className, ...rest }) {
|
|
1150
|
-
return /* @__PURE__ */
|
|
1104
|
+
return /* @__PURE__ */ jsx4("span", { ...rest, className: cx(Sidebar_default.icon, className), "aria-hidden": "true" });
|
|
1151
1105
|
}
|
|
1152
1106
|
SidebarItemIcon.displayName = "Sidebar.ItemIcon";
|
|
1153
1107
|
function SidebarItemCount({ children, color, variant, className, ...rest }) {
|
|
1154
1108
|
if (color === void 0 && variant === void 0) {
|
|
1155
|
-
return /* @__PURE__ */
|
|
1109
|
+
return /* @__PURE__ */ jsx4("span", { ...rest, className: cx(Sidebar_default.count, Sidebar_default.countPlain, className), children });
|
|
1156
1110
|
}
|
|
1157
1111
|
const hue = color ?? "gray";
|
|
1158
1112
|
return /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
1159
|
-
/* @__PURE__ */
|
|
1113
|
+
/* @__PURE__ */ jsx4(
|
|
1160
1114
|
Badge.Root,
|
|
1161
1115
|
{
|
|
1162
1116
|
...rest,
|
|
@@ -1166,7 +1120,7 @@ function SidebarItemCount({ children, color, variant, className, ...rest }) {
|
|
|
1166
1120
|
children
|
|
1167
1121
|
}
|
|
1168
1122
|
),
|
|
1169
|
-
/* @__PURE__ */
|
|
1123
|
+
/* @__PURE__ */ jsx4(ControlSizeProvider, { value: "l", children: /* @__PURE__ */ jsx4(Badge.Dot, { className: cx(palette_default.hue, Sidebar_default.dot), "data-color": hue }) })
|
|
1170
1124
|
] });
|
|
1171
1125
|
}
|
|
1172
1126
|
SidebarItemCount.displayName = "Sidebar.ItemCount";
|
|
@@ -1189,7 +1143,7 @@ function AttentionDot({
|
|
|
1189
1143
|
inline = false
|
|
1190
1144
|
}) {
|
|
1191
1145
|
if (!hue) return null;
|
|
1192
|
-
return /* @__PURE__ */
|
|
1146
|
+
return /* @__PURE__ */ jsx4(ControlSizeProvider, { value: "l", children: /* @__PURE__ */ jsx4(
|
|
1193
1147
|
Badge.Dot,
|
|
1194
1148
|
{
|
|
1195
1149
|
className: cx(palette_default.hue, Sidebar_default.dot, inline && Sidebar_default.dotInline),
|
|
@@ -1199,7 +1153,7 @@ function AttentionDot({
|
|
|
1199
1153
|
) });
|
|
1200
1154
|
}
|
|
1201
1155
|
function SidebarItemShortcut({ children, className, ...rest }) {
|
|
1202
|
-
return /* @__PURE__ */
|
|
1156
|
+
return /* @__PURE__ */ jsx4("span", { ...rest, className: cx(Sidebar_default.shortcut, className), "aria-hidden": "true", children });
|
|
1203
1157
|
}
|
|
1204
1158
|
SidebarItemShortcut.displayName = "Sidebar.ItemShortcut";
|
|
1205
1159
|
function SidebarItemAction({
|
|
@@ -1212,7 +1166,7 @@ function SidebarItemAction({
|
|
|
1212
1166
|
}) {
|
|
1213
1167
|
const { size } = useSidebar();
|
|
1214
1168
|
return /* @__PURE__ */ jsxs4(Tooltip.Root, { children: [
|
|
1215
|
-
/* @__PURE__ */
|
|
1169
|
+
/* @__PURE__ */ jsx4(Tooltip.Trigger, { children: /* @__PURE__ */ jsx4(
|
|
1216
1170
|
Button.Root,
|
|
1217
1171
|
{
|
|
1218
1172
|
...rest,
|
|
@@ -1223,10 +1177,10 @@ function SidebarItemAction({
|
|
|
1223
1177
|
"aria-label": label,
|
|
1224
1178
|
disabled,
|
|
1225
1179
|
onClick,
|
|
1226
|
-
children: /* @__PURE__ */
|
|
1180
|
+
children: /* @__PURE__ */ jsx4(Button.Icon, { children: children ?? /* @__PURE__ */ jsx4(Icon, { name: "action.add" }) })
|
|
1227
1181
|
}
|
|
1228
1182
|
) }),
|
|
1229
|
-
/* @__PURE__ */
|
|
1183
|
+
/* @__PURE__ */ jsx4(Tooltip.Content, { side: "right", children: label })
|
|
1230
1184
|
] });
|
|
1231
1185
|
}
|
|
1232
1186
|
SidebarItemAction.displayName = "Sidebar.ItemAction";
|
|
@@ -1253,7 +1207,7 @@ function splitItemChildren2(children, end) {
|
|
|
1253
1207
|
action,
|
|
1254
1208
|
content: /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
1255
1209
|
leading,
|
|
1256
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.label, children: label }),
|
|
1257
1211
|
trail ? /* @__PURE__ */ jsxs4("span", { className: Sidebar_default.trail, children: [
|
|
1258
1212
|
count,
|
|
1259
1213
|
shortcut,
|
|
@@ -1279,8 +1233,8 @@ function CompactTooltip({
|
|
|
1279
1233
|
onOpenChange: (next) => setOpen(enabled && next && (canOpen2?.() ?? true)),
|
|
1280
1234
|
delayDuration: 0,
|
|
1281
1235
|
children: [
|
|
1282
|
-
/* @__PURE__ */
|
|
1283
|
-
/* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ jsx4(Tooltip.Trigger, { children: /* @__PURE__ */ jsx4(Slot, { children }) }),
|
|
1237
|
+
/* @__PURE__ */ jsx4(Tooltip.Content, { side: "right", children: text })
|
|
1284
1238
|
]
|
|
1285
1239
|
}
|
|
1286
1240
|
);
|
|
@@ -1329,9 +1283,9 @@ var SidebarItem = React6.forwardRef(function SidebarItem2({
|
|
|
1329
1283
|
const parts = splitItemChildren2(child ? child.props.children : children);
|
|
1330
1284
|
let element;
|
|
1331
1285
|
if (child) {
|
|
1332
|
-
element = /* @__PURE__ */
|
|
1286
|
+
element = /* @__PURE__ */ jsx4(Slot, { ...shared, ref, "aria-disabled": disabled || void 0, children: React6.cloneElement(child, void 0, parts.content) });
|
|
1333
1287
|
} else if (href !== void 0) {
|
|
1334
|
-
element = /* @__PURE__ */
|
|
1288
|
+
element = /* @__PURE__ */ jsx4(
|
|
1335
1289
|
"a",
|
|
1336
1290
|
{
|
|
1337
1291
|
...shared,
|
|
@@ -1342,7 +1296,7 @@ var SidebarItem = React6.forwardRef(function SidebarItem2({
|
|
|
1342
1296
|
}
|
|
1343
1297
|
);
|
|
1344
1298
|
} else {
|
|
1345
|
-
element = /* @__PURE__ */
|
|
1299
|
+
element = /* @__PURE__ */ jsx4(
|
|
1346
1300
|
"button",
|
|
1347
1301
|
{
|
|
1348
1302
|
...shared,
|
|
@@ -1354,7 +1308,7 @@ var SidebarItem = React6.forwardRef(function SidebarItem2({
|
|
|
1354
1308
|
);
|
|
1355
1309
|
}
|
|
1356
1310
|
const tooltipText = parts.text || (rest["aria-label"] ?? "");
|
|
1357
|
-
return withAction(/* @__PURE__ */
|
|
1311
|
+
return withAction(/* @__PURE__ */ jsx4(CompactTooltip, { text: tooltipText, children: element }), parts.action);
|
|
1358
1312
|
});
|
|
1359
1313
|
SidebarItem.displayName = "Sidebar.Item";
|
|
1360
1314
|
var [SubProvider, useSubContext] = createComponentContext("Sidebar.Sub");
|
|
@@ -1475,7 +1429,7 @@ function useRailFlyout(rail) {
|
|
|
1475
1429
|
}
|
|
1476
1430
|
function RailFlyout({ flyout, children }) {
|
|
1477
1431
|
const { size } = useSidebar();
|
|
1478
|
-
return /* @__PURE__ */
|
|
1432
|
+
return /* @__PURE__ */ jsx4(
|
|
1479
1433
|
Popover.Content,
|
|
1480
1434
|
{
|
|
1481
1435
|
ref: flyout.attach,
|
|
@@ -1490,7 +1444,7 @@ function RailFlyout({ flyout, children }) {
|
|
|
1490
1444
|
if (event.pointerType !== "touch") flyout.hoverEnd();
|
|
1491
1445
|
},
|
|
1492
1446
|
onKeyDown: flyout.onFlyoutKeyDown,
|
|
1493
|
-
children: /* @__PURE__ */
|
|
1447
|
+
children: /* @__PURE__ */ jsx4(InFlyoutRailContext.Provider, { value: true, children: /* @__PURE__ */ jsx4(FlyoutContext.Provider, { value: flyout.flyoutContext, children }) })
|
|
1494
1448
|
}
|
|
1495
1449
|
);
|
|
1496
1450
|
}
|
|
@@ -1534,7 +1488,7 @@ function SidebarSub({
|
|
|
1534
1488
|
}),
|
|
1535
1489
|
[open, setOpen, id, active, flyout, hue]
|
|
1536
1490
|
);
|
|
1537
|
-
return /* @__PURE__ */
|
|
1491
|
+
return /* @__PURE__ */ jsx4(SubProvider, { value: context, children: /* @__PURE__ */ jsxs4(
|
|
1538
1492
|
Popover.Root,
|
|
1539
1493
|
{
|
|
1540
1494
|
open: flyout.open,
|
|
@@ -1542,8 +1496,8 @@ function SidebarSub({
|
|
|
1542
1496
|
if (!next) flyout.close(false);
|
|
1543
1497
|
},
|
|
1544
1498
|
children: [
|
|
1545
|
-
/* @__PURE__ */
|
|
1546
|
-
rail && content ? /* @__PURE__ */
|
|
1499
|
+
/* @__PURE__ */ jsx4("div", { ...rest, className: cx(Sidebar_default.sub, className), "data-state": open ? "open" : "closed", children }),
|
|
1500
|
+
rail && content ? /* @__PURE__ */ jsx4(RailFlyout, { flyout, children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.groupItems, children: content.props.children }) }) : null
|
|
1547
1501
|
]
|
|
1548
1502
|
}
|
|
1549
1503
|
) });
|
|
@@ -1564,7 +1518,7 @@ var SidebarSubTrigger = React6.forwardRef(
|
|
|
1564
1518
|
const rail = useRail();
|
|
1565
1519
|
const parts = splitItemChildren2(
|
|
1566
1520
|
children,
|
|
1567
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ jsx4(Icon, { name: "nav.chevronDown", className: Sidebar_default.chevron })
|
|
1568
1522
|
);
|
|
1569
1523
|
const { flyout } = sub;
|
|
1570
1524
|
const mergedRef = useMergedRefs(ref, flyout.triggerRef);
|
|
@@ -1616,23 +1570,23 @@ var SidebarSubTrigger = React6.forwardRef(
|
|
|
1616
1570
|
},
|
|
1617
1571
|
children: [
|
|
1618
1572
|
parts.content,
|
|
1619
|
-
/* @__PURE__ */
|
|
1573
|
+
/* @__PURE__ */ jsx4(AttentionDot, { hue: sub.hue, shown: rail || !sub.open })
|
|
1620
1574
|
]
|
|
1621
1575
|
}
|
|
1622
1576
|
);
|
|
1623
|
-
return /* @__PURE__ */
|
|
1577
|
+
return /* @__PURE__ */ jsx4(
|
|
1624
1578
|
CompactTooltip,
|
|
1625
1579
|
{
|
|
1626
1580
|
text: parts.text || (rest["aria-label"] ?? ""),
|
|
1627
1581
|
canOpen: () => !flyout.pointerInside.current && !flyout.open,
|
|
1628
|
-
children: /* @__PURE__ */
|
|
1582
|
+
children: /* @__PURE__ */ jsx4(Popover.Anchor, { children: button })
|
|
1629
1583
|
}
|
|
1630
1584
|
);
|
|
1631
1585
|
}
|
|
1632
1586
|
);
|
|
1633
1587
|
SidebarSubTrigger.displayName = "Sidebar.SubTrigger";
|
|
1634
1588
|
function subRows(children) {
|
|
1635
|
-
return React6.Children.toArray(children).map((child, index) => /* @__PURE__ */
|
|
1589
|
+
return React6.Children.toArray(children).map((child, index) => /* @__PURE__ */ jsx4(
|
|
1636
1590
|
"div",
|
|
1637
1591
|
{
|
|
1638
1592
|
className: Sidebar_default.subRow,
|
|
@@ -1649,7 +1603,7 @@ function SidebarSubContent({ className, children, ref, ...rest }) {
|
|
|
1649
1603
|
const shown = sub.open && !rail;
|
|
1650
1604
|
return (
|
|
1651
1605
|
// biome-ignore lint/a11y/useSemanticElements: a nav group of links, not a form fieldset
|
|
1652
|
-
/* @__PURE__ */
|
|
1606
|
+
/* @__PURE__ */ jsx4(
|
|
1653
1607
|
"div",
|
|
1654
1608
|
{
|
|
1655
1609
|
...rest,
|
|
@@ -1660,14 +1614,14 @@ function SidebarSubContent({ className, children, ref, ...rest }) {
|
|
|
1660
1614
|
className: Sidebar_default.disclosure,
|
|
1661
1615
|
"data-state": shown ? "open" : "closed",
|
|
1662
1616
|
inert: !shown || void 0,
|
|
1663
|
-
children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ jsx4("div", { className: Sidebar_default.disclosureClip, children: /* @__PURE__ */ jsx4("div", { className: cx(Sidebar_default.subList, className), children: subRows(children) }) })
|
|
1664
1618
|
}
|
|
1665
1619
|
)
|
|
1666
1620
|
);
|
|
1667
1621
|
}
|
|
1668
1622
|
SidebarSubContent.displayName = "Sidebar.SubContent";
|
|
1669
1623
|
function SidebarBrandLogo({ className, ...rest }) {
|
|
1670
|
-
return /* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ jsx4("span", { ...rest, className: cx(Sidebar_default.brandLogo, className), "aria-hidden": "true" });
|
|
1671
1625
|
}
|
|
1672
1626
|
SidebarBrandLogo.displayName = "Sidebar.BrandLogo";
|
|
1673
1627
|
var SidebarBrand = React6.forwardRef(function SidebarBrand2({ description, href, asChild = false, className, children, onClick, ...rest }, ref) {
|
|
@@ -1679,8 +1633,8 @@ var SidebarBrand = React6.forwardRef(function SidebarBrand2({ description, href,
|
|
|
1679
1633
|
const content = /* @__PURE__ */ jsxs4(Fragment2, { children: [
|
|
1680
1634
|
logo,
|
|
1681
1635
|
/* @__PURE__ */ jsxs4("span", { className: Sidebar_default.brandText, children: [
|
|
1682
|
-
/* @__PURE__ */
|
|
1683
|
-
description == null ? null : /* @__PURE__ */
|
|
1636
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.brandName, children: name }),
|
|
1637
|
+
description == null ? null : /* @__PURE__ */ jsx4("span", { className: Sidebar_default.brandDescription, children: description })
|
|
1684
1638
|
] })
|
|
1685
1639
|
] });
|
|
1686
1640
|
const shared = {
|
|
@@ -1692,10 +1646,10 @@ var SidebarBrand = React6.forwardRef(function SidebarBrand2({ description, href,
|
|
|
1692
1646
|
}
|
|
1693
1647
|
};
|
|
1694
1648
|
if (child) {
|
|
1695
|
-
return /* @__PURE__ */
|
|
1649
|
+
return /* @__PURE__ */ jsx4(Slot, { ...shared, ref, children: React6.cloneElement(child, void 0, content) });
|
|
1696
1650
|
}
|
|
1697
1651
|
if (href !== void 0) {
|
|
1698
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ jsx4(
|
|
1699
1653
|
"a",
|
|
1700
1654
|
{
|
|
1701
1655
|
...shared,
|
|
@@ -1705,7 +1659,7 @@ var SidebarBrand = React6.forwardRef(function SidebarBrand2({ description, href,
|
|
|
1705
1659
|
}
|
|
1706
1660
|
);
|
|
1707
1661
|
}
|
|
1708
|
-
return /* @__PURE__ */
|
|
1662
|
+
return /* @__PURE__ */ jsx4("div", { ...rest, ref, className: shared.className, children: content });
|
|
1709
1663
|
});
|
|
1710
1664
|
SidebarBrand.displayName = "Sidebar.Brand";
|
|
1711
1665
|
var SidebarAccount = React6.forwardRef(
|
|
@@ -1713,7 +1667,7 @@ var SidebarAccount = React6.forwardRef(
|
|
|
1713
1667
|
const nodes = React6.Children.toArray(children);
|
|
1714
1668
|
const avatar = nodes.find((node) => isElementOf(node, Avatar.Root));
|
|
1715
1669
|
const name = nodes.filter((node) => node !== avatar);
|
|
1716
|
-
return /* @__PURE__ */
|
|
1670
|
+
return /* @__PURE__ */ jsx4(CompactTooltip, { text: textOf(name).trim(), children: /* @__PURE__ */ jsxs4(
|
|
1717
1671
|
"button",
|
|
1718
1672
|
{
|
|
1719
1673
|
...rest,
|
|
@@ -1721,12 +1675,12 @@ var SidebarAccount = React6.forwardRef(
|
|
|
1721
1675
|
type: type ?? "button",
|
|
1722
1676
|
className: cx(Sidebar_default.account, className),
|
|
1723
1677
|
children: [
|
|
1724
|
-
avatar ? /* @__PURE__ */
|
|
1678
|
+
avatar ? /* @__PURE__ */ jsx4("span", { className: Sidebar_default.accountAvatar, "aria-hidden": "true", children: avatar }) : null,
|
|
1725
1679
|
/* @__PURE__ */ jsxs4("span", { className: Sidebar_default.accountText, children: [
|
|
1726
|
-
/* @__PURE__ */
|
|
1727
|
-
description == null ? null : /* @__PURE__ */
|
|
1680
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.accountName, children: name }),
|
|
1681
|
+
description == null ? null : /* @__PURE__ */ jsx4("span", { className: Sidebar_default.accountDescription, children: description })
|
|
1728
1682
|
] }),
|
|
1729
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ jsx4(Icon, { name: "nav.chevronsUpDown", className: Sidebar_default.accountChevron })
|
|
1730
1684
|
]
|
|
1731
1685
|
}
|
|
1732
1686
|
) });
|
|
@@ -1745,7 +1699,7 @@ var SidebarToggle = React6.forwardRef(
|
|
|
1745
1699
|
if (variant === "header") {
|
|
1746
1700
|
const onEdge = !offCanvas && mode === "compact";
|
|
1747
1701
|
return /* @__PURE__ */ jsxs4(Tooltip.Root, { children: [
|
|
1748
|
-
/* @__PURE__ */
|
|
1702
|
+
/* @__PURE__ */ jsx4(Tooltip.Trigger, { children: /* @__PURE__ */ jsx4(
|
|
1749
1703
|
Button.Root,
|
|
1750
1704
|
{
|
|
1751
1705
|
...rest,
|
|
@@ -1758,13 +1712,13 @@ var SidebarToggle = React6.forwardRef(
|
|
|
1758
1712
|
"aria-controls": navId,
|
|
1759
1713
|
"aria-label": label,
|
|
1760
1714
|
onClick: handleClick,
|
|
1761
|
-
children: /* @__PURE__ */
|
|
1715
|
+
children: /* @__PURE__ */ jsx4(Button.Icon, { children: /* @__PURE__ */ jsx4(Icon, { name: "nav.chevronsLeft", className: Sidebar_default.headerToggleIcon }) })
|
|
1762
1716
|
}
|
|
1763
1717
|
) }),
|
|
1764
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ jsx4(Tooltip.Content, { side: "right", children: label })
|
|
1765
1719
|
] });
|
|
1766
1720
|
}
|
|
1767
|
-
return /* @__PURE__ */
|
|
1721
|
+
return /* @__PURE__ */ jsx4(CompactTooltip, { text: label, children: /* @__PURE__ */ jsxs4(
|
|
1768
1722
|
"button",
|
|
1769
1723
|
{
|
|
1770
1724
|
...rest,
|
|
@@ -1776,8 +1730,8 @@ var SidebarToggle = React6.forwardRef(
|
|
|
1776
1730
|
"aria-label": label,
|
|
1777
1731
|
onClick: handleClick,
|
|
1778
1732
|
children: [
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1733
|
+
/* @__PURE__ */ jsx4(SidebarItemIcon, { children: /* @__PURE__ */ jsx4(Icon, { name: expanded ? "nav.sidebarCollapse" : "nav.sidebarExpand" }) }),
|
|
1734
|
+
/* @__PURE__ */ jsx4("span", { className: Sidebar_default.label, children: label })
|
|
1781
1735
|
]
|
|
1782
1736
|
}
|
|
1783
1737
|
) });
|
|
@@ -1821,7 +1775,7 @@ var Accordion_default = {
|
|
|
1821
1775
|
};
|
|
1822
1776
|
|
|
1823
1777
|
// src/components/accordion/Accordion.tsx
|
|
1824
|
-
import { jsx as
|
|
1778
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1825
1779
|
var [AccordionProvider, useAccordionContext] = createComponentContext("Accordion");
|
|
1826
1780
|
var [AccordionItemProvider, useAccordionItem] = createComponentContext("Accordion");
|
|
1827
1781
|
var toOpenValues = (value) => value === void 0 ? void 0 : [...new Set([value].flat().filter((entry) => entry !== ""))];
|
|
@@ -1867,14 +1821,14 @@ function AccordionRoot(props) {
|
|
|
1867
1821
|
...rest
|
|
1868
1822
|
} = props;
|
|
1869
1823
|
const depth = useNestedSurfaceDepth();
|
|
1870
|
-
return /* @__PURE__ */
|
|
1824
|
+
return /* @__PURE__ */ jsx5(AccordionProvider, { value: contextValue, children: /* @__PURE__ */ jsx5(
|
|
1871
1825
|
"div",
|
|
1872
1826
|
{
|
|
1873
1827
|
...rest,
|
|
1874
1828
|
className: cx(Accordion_default.root, className),
|
|
1875
1829
|
"data-depth": depth,
|
|
1876
1830
|
...toDataAttributes({ size, layout }),
|
|
1877
|
-
children: /* @__PURE__ */
|
|
1831
|
+
children: /* @__PURE__ */ jsx5(SurfaceDepthProvider, { value: depth, children: /* @__PURE__ */ jsx5(ControlSizeProvider, { value: size, children }) })
|
|
1878
1832
|
}
|
|
1879
1833
|
) });
|
|
1880
1834
|
}
|
|
@@ -1899,7 +1853,7 @@ function AccordionItem({
|
|
|
1899
1853
|
}),
|
|
1900
1854
|
[disabled, open, reactId, value]
|
|
1901
1855
|
);
|
|
1902
|
-
return /* @__PURE__ */
|
|
1856
|
+
return /* @__PURE__ */ jsx5(AccordionItemProvider, { value: itemContextValue, children: /* @__PURE__ */ jsx5(
|
|
1903
1857
|
"div",
|
|
1904
1858
|
{
|
|
1905
1859
|
...rest,
|
|
@@ -1911,7 +1865,7 @@ function AccordionItem({
|
|
|
1911
1865
|
}
|
|
1912
1866
|
AccordionItem.displayName = "Accordion.Item";
|
|
1913
1867
|
function AccordionHeader({ className, ...rest }) {
|
|
1914
|
-
return /* @__PURE__ */
|
|
1868
|
+
return /* @__PURE__ */ jsx5("h3", { className: cx(Accordion_default.header, className), ...rest });
|
|
1915
1869
|
}
|
|
1916
1870
|
AccordionHeader.displayName = "Accordion.Header";
|
|
1917
1871
|
function AccordionTrigger({ className, children, onClick, ...rest }) {
|
|
@@ -1937,19 +1891,19 @@ function AccordionTrigger({ className, children, onClick, ...rest }) {
|
|
|
1937
1891
|
},
|
|
1938
1892
|
children: [
|
|
1939
1893
|
children,
|
|
1940
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ jsx5(Icon, { name: "nav.chevronDown", className: Accordion_default.chevron })
|
|
1941
1895
|
]
|
|
1942
1896
|
}
|
|
1943
1897
|
);
|
|
1944
1898
|
}
|
|
1945
1899
|
AccordionTrigger.displayName = "Accordion.Trigger";
|
|
1946
1900
|
function AccordionIcon({ className, children, ...rest }) {
|
|
1947
|
-
return /* @__PURE__ */
|
|
1901
|
+
return /* @__PURE__ */ jsx5("span", { className: cx(Accordion_default.icon, className), "aria-hidden": "true", ...rest, children });
|
|
1948
1902
|
}
|
|
1949
1903
|
AccordionIcon.displayName = "Accordion.Icon";
|
|
1950
1904
|
function AccordionContent({ className, children, ...rest }) {
|
|
1951
1905
|
const item = useAccordionItem();
|
|
1952
|
-
return /* @__PURE__ */
|
|
1906
|
+
return /* @__PURE__ */ jsx5(
|
|
1953
1907
|
"section",
|
|
1954
1908
|
{
|
|
1955
1909
|
id: item.contentId,
|
|
@@ -1958,7 +1912,7 @@ function AccordionContent({ className, children, ...rest }) {
|
|
|
1958
1912
|
"data-state": item.open ? "open" : "closed",
|
|
1959
1913
|
className: Accordion_default.content,
|
|
1960
1914
|
...rest,
|
|
1961
|
-
children: /* @__PURE__ */
|
|
1915
|
+
children: /* @__PURE__ */ jsx5("div", { className: Accordion_default.contentClip, children: /* @__PURE__ */ jsx5("div", { className: cx(Accordion_default.contentInner, className), children }) })
|
|
1962
1916
|
}
|
|
1963
1917
|
);
|
|
1964
1918
|
}
|
|
@@ -1988,7 +1942,7 @@ var Banner_default = {
|
|
|
1988
1942
|
};
|
|
1989
1943
|
|
|
1990
1944
|
// src/components/banner/Banner.tsx
|
|
1991
|
-
import { jsx as
|
|
1945
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1992
1946
|
var BANNER_LABELS = { dismiss: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" };
|
|
1993
1947
|
var BannerContext = React8.createContext(null);
|
|
1994
1948
|
var CORNER_CLOSE_SIZE = {
|
|
@@ -2025,7 +1979,7 @@ function BannerRoot({
|
|
|
2025
1979
|
);
|
|
2026
1980
|
const nested = useNestedSurfaceDepth();
|
|
2027
1981
|
const depth = variant === "outline" ? nested : "tinted";
|
|
2028
|
-
return /* @__PURE__ */
|
|
1982
|
+
return /* @__PURE__ */ jsx6(
|
|
2029
1983
|
"div",
|
|
2030
1984
|
{
|
|
2031
1985
|
...rest,
|
|
@@ -2033,9 +1987,9 @@ function BannerRoot({
|
|
|
2033
1987
|
className: cx(Banner_default.root, enterMotion_default.enter, className),
|
|
2034
1988
|
"data-depth": depth,
|
|
2035
1989
|
...toDataAttributes({ variant, tone, size, placement }),
|
|
2036
|
-
children: /* @__PURE__ */
|
|
1990
|
+
children: /* @__PURE__ */ jsx6(SurfaceDepthProvider, { value: depth, children: /* @__PURE__ */ jsx6(BannerContext.Provider, { value: context, children: /* @__PURE__ */ jsxs6(ControlSizeProvider, { value: size, children: [
|
|
2037
1991
|
children,
|
|
2038
|
-
onDismiss ? /* @__PURE__ */
|
|
1992
|
+
onDismiss ? /* @__PURE__ */ jsx6("span", { className: Banner_default.close, children: /* @__PURE__ */ jsx6(
|
|
2039
1993
|
Button.Root,
|
|
2040
1994
|
{
|
|
2041
1995
|
variant: "ghost",
|
|
@@ -2043,7 +1997,7 @@ function BannerRoot({
|
|
|
2043
1997
|
size: CORNER_CLOSE_SIZE[size],
|
|
2044
1998
|
"aria-label": dismissLabel,
|
|
2045
1999
|
onClick: onDismiss,
|
|
2046
|
-
children: /* @__PURE__ */
|
|
2000
|
+
children: /* @__PURE__ */ jsx6(Button.Icon, { children: /* @__PURE__ */ jsx6(Icon, { name: "action.close" }) })
|
|
2047
2001
|
}
|
|
2048
2002
|
) }) : null
|
|
2049
2003
|
] }) }) })
|
|
@@ -2052,26 +2006,26 @@ function BannerRoot({
|
|
|
2052
2006
|
}
|
|
2053
2007
|
BannerRoot.displayName = "Banner.Root";
|
|
2054
2008
|
function BannerContent({ className, ...rest }) {
|
|
2055
|
-
return /* @__PURE__ */
|
|
2009
|
+
return /* @__PURE__ */ jsx6("div", { className: cx(Banner_default.content, className), ...rest });
|
|
2056
2010
|
}
|
|
2057
2011
|
BannerContent.displayName = "Banner.Content";
|
|
2058
2012
|
function BannerIcon({ className, ...rest }) {
|
|
2059
|
-
return /* @__PURE__ */
|
|
2013
|
+
return /* @__PURE__ */ jsx6("span", { className: cx(Banner_default.icon, className), "aria-hidden": "true", ...rest });
|
|
2060
2014
|
}
|
|
2061
2015
|
BannerIcon.displayName = "Banner.Icon";
|
|
2062
2016
|
function BannerTitle({ className, ...rest }) {
|
|
2063
|
-
return /* @__PURE__ */
|
|
2017
|
+
return /* @__PURE__ */ jsx6("span", { className: cx(Banner_default.title, className), ...rest });
|
|
2064
2018
|
}
|
|
2065
2019
|
BannerTitle.displayName = "Banner.Title";
|
|
2066
2020
|
function BannerDescription({ className, ...rest }) {
|
|
2067
|
-
return /* @__PURE__ */
|
|
2021
|
+
return /* @__PURE__ */ jsx6("span", { className: cx(Banner_default.description, className), ...rest });
|
|
2068
2022
|
}
|
|
2069
2023
|
BannerDescription.displayName = "Banner.Description";
|
|
2070
2024
|
function BannerActions({ className, children, ...rest }) {
|
|
2071
2025
|
const banner = React8.useContext(BannerContext);
|
|
2072
2026
|
return /* @__PURE__ */ jsxs6("div", { className: cx(Banner_default.actions, className), ...rest, children: [
|
|
2073
2027
|
children,
|
|
2074
|
-
banner?.onDismiss ? /* @__PURE__ */
|
|
2028
|
+
banner?.onDismiss ? /* @__PURE__ */ jsx6(
|
|
2075
2029
|
Button.Root,
|
|
2076
2030
|
{
|
|
2077
2031
|
variant: "outline",
|
|
@@ -2080,7 +2034,7 @@ function BannerActions({ className, children, ...rest }) {
|
|
|
2080
2034
|
"aria-label": banner.dismissLabel,
|
|
2081
2035
|
className: Banner_default.actionsClose,
|
|
2082
2036
|
onClick: banner.onDismiss,
|
|
2083
|
-
children: /* @__PURE__ */
|
|
2037
|
+
children: /* @__PURE__ */ jsx6(Button.Icon, { children: /* @__PURE__ */ jsx6(Icon, { name: "action.close" }) })
|
|
2084
2038
|
}
|
|
2085
2039
|
) : null
|
|
2086
2040
|
] });
|
|
@@ -2104,7 +2058,7 @@ var LinkButton_default = {
|
|
|
2104
2058
|
};
|
|
2105
2059
|
|
|
2106
2060
|
// src/components/link-button/LinkButton.tsx
|
|
2107
|
-
import { jsx as
|
|
2061
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
2108
2062
|
function LinkButton({
|
|
2109
2063
|
size: sizeProp,
|
|
2110
2064
|
tone = "accent",
|
|
@@ -2125,7 +2079,7 @@ function LinkButton({
|
|
|
2125
2079
|
};
|
|
2126
2080
|
const swallowClick = (event) => event.preventDefault();
|
|
2127
2081
|
if (asChild) {
|
|
2128
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ jsx7(ControlSizeProvider, { value: size, children: /* @__PURE__ */ jsx7(
|
|
2129
2083
|
Slot,
|
|
2130
2084
|
{
|
|
2131
2085
|
...rest,
|
|
@@ -2138,7 +2092,7 @@ function LinkButton({
|
|
|
2138
2092
|
}
|
|
2139
2093
|
) });
|
|
2140
2094
|
}
|
|
2141
|
-
return /* @__PURE__ */
|
|
2095
|
+
return /* @__PURE__ */ jsx7(
|
|
2142
2096
|
"a",
|
|
2143
2097
|
{
|
|
2144
2098
|
...rest,
|
|
@@ -2149,7 +2103,7 @@ function LinkButton({
|
|
|
2149
2103
|
"aria-disabled": disabled || void 0,
|
|
2150
2104
|
tabIndex: disabled ? -1 : rest.tabIndex,
|
|
2151
2105
|
onClick: disabled ? swallowClick : onClick,
|
|
2152
|
-
children: /* @__PURE__ */
|
|
2106
|
+
children: /* @__PURE__ */ jsx7(ControlSizeProvider, { value: size, children })
|
|
2153
2107
|
}
|
|
2154
2108
|
);
|
|
2155
2109
|
}
|
|
@@ -2169,7 +2123,7 @@ var Breadcrumb_default = {
|
|
|
2169
2123
|
};
|
|
2170
2124
|
|
|
2171
2125
|
// src/components/breadcrumb/Breadcrumb.tsx
|
|
2172
|
-
import { Fragment as Fragment3, jsx as
|
|
2126
|
+
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2173
2127
|
var DEFAULT_LABELS = {
|
|
2174
2128
|
nav: "\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u043D\u0430\u044F \u0446\u0435\u043F\u043E\u0447\u043A\u0430",
|
|
2175
2129
|
ellipsis: "\u0421\u043A\u0440\u044B\u0442\u044B\u0435 \u0440\u0430\u0437\u0434\u0435\u043B\u044B"
|
|
@@ -2184,7 +2138,7 @@ function Separator() {
|
|
|
2184
2138
|
const { size } = React9.useContext(BreadcrumbContext);
|
|
2185
2139
|
const first = React9.useContext(FirstLevelContext);
|
|
2186
2140
|
if (first) return null;
|
|
2187
|
-
return /* @__PURE__ */
|
|
2141
|
+
return /* @__PURE__ */ jsx8("span", { "aria-hidden": "true", className: Breadcrumb_default.separator, children: /* @__PURE__ */ jsx8(Icon, { name: "nav.chevronRight", size, tone: "secondary" }) });
|
|
2188
2142
|
}
|
|
2189
2143
|
function BreadcrumbRoot({
|
|
2190
2144
|
children,
|
|
@@ -2199,7 +2153,7 @@ function BreadcrumbRoot({
|
|
|
2199
2153
|
() => ({ size, labels: { nav, ellipsis } }),
|
|
2200
2154
|
[size, nav, ellipsis]
|
|
2201
2155
|
);
|
|
2202
|
-
const items = React9.Children.toArray(children).map((child, index) => /* @__PURE__ */
|
|
2156
|
+
const items = React9.Children.toArray(children).map((child, index) => /* @__PURE__ */ jsx8(
|
|
2203
2157
|
FirstLevelContext.Provider,
|
|
2204
2158
|
{
|
|
2205
2159
|
value: index === 0,
|
|
@@ -2208,16 +2162,16 @@ function BreadcrumbRoot({
|
|
|
2208
2162
|
React9.isValidElement(child) ? child.key : index
|
|
2209
2163
|
));
|
|
2210
2164
|
const collapsible = items.length >= COLLAPSIBLE_MIN_ITEMS;
|
|
2211
|
-
return /* @__PURE__ */
|
|
2165
|
+
return /* @__PURE__ */ jsx8(BreadcrumbContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx8(ControlSizeProvider, { value: size, children: /* @__PURE__ */ jsx8(
|
|
2212
2166
|
"nav",
|
|
2213
2167
|
{
|
|
2214
2168
|
"aria-label": nav,
|
|
2215
2169
|
...rest,
|
|
2216
2170
|
className: cx(Breadcrumb_default.root, className),
|
|
2217
2171
|
...toDataAttributes({ size, collapsible }),
|
|
2218
|
-
children: /* @__PURE__ */
|
|
2172
|
+
children: /* @__PURE__ */ jsx8("ol", { className: Breadcrumb_default.list, children: collapsible ? /* @__PURE__ */ jsxs7(Fragment3, { children: [
|
|
2219
2173
|
items[0],
|
|
2220
|
-
/* @__PURE__ */
|
|
2174
|
+
/* @__PURE__ */ jsx8(FirstLevelContext.Provider, { value: false, children: /* @__PURE__ */ jsx8(BreadcrumbEllipsis, { className: Breadcrumb_default.autoCollapse }) }),
|
|
2221
2175
|
items.slice(1)
|
|
2222
2176
|
] }) : items })
|
|
2223
2177
|
}
|
|
@@ -2234,8 +2188,8 @@ function BreadcrumbItem({
|
|
|
2234
2188
|
}) {
|
|
2235
2189
|
const { size } = React9.useContext(BreadcrumbContext);
|
|
2236
2190
|
return /* @__PURE__ */ jsxs7("li", { ...rest, className: cx(Breadcrumb_default.item, className), children: [
|
|
2237
|
-
/* @__PURE__ */
|
|
2238
|
-
href ? /* @__PURE__ */
|
|
2191
|
+
/* @__PURE__ */ jsx8(Separator, {}),
|
|
2192
|
+
href ? /* @__PURE__ */ jsx8(
|
|
2239
2193
|
LinkButton,
|
|
2240
2194
|
{
|
|
2241
2195
|
href,
|
|
@@ -2245,7 +2199,7 @@ function BreadcrumbItem({
|
|
|
2245
2199
|
"aria-current": current ? "page" : void 0,
|
|
2246
2200
|
children
|
|
2247
2201
|
}
|
|
2248
|
-
) : /* @__PURE__ */
|
|
2202
|
+
) : /* @__PURE__ */ jsx8(
|
|
2249
2203
|
"span",
|
|
2250
2204
|
{
|
|
2251
2205
|
className: cx(Breadcrumb_default.text, current && Breadcrumb_default.current),
|
|
@@ -2260,9 +2214,9 @@ BreadcrumbItem.displayName = "Breadcrumb.Item";
|
|
|
2260
2214
|
function BreadcrumbEllipsis({ className, ...rest }) {
|
|
2261
2215
|
const { labels } = React9.useContext(BreadcrumbContext);
|
|
2262
2216
|
return /* @__PURE__ */ jsxs7("li", { ...rest, className: cx(Breadcrumb_default.item, Breadcrumb_default.ellipsis, className), children: [
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
/* @__PURE__ */
|
|
2217
|
+
/* @__PURE__ */ jsx8(Separator, {}),
|
|
2218
|
+
/* @__PURE__ */ jsx8("span", { "aria-hidden": "true", children: "\u2026" }),
|
|
2219
|
+
/* @__PURE__ */ jsx8(VisuallyHidden, { children: labels.ellipsis })
|
|
2266
2220
|
] });
|
|
2267
2221
|
}
|
|
2268
2222
|
BreadcrumbEllipsis.displayName = "Breadcrumb.Ellipsis";
|
|
@@ -2281,7 +2235,7 @@ var ButtonGroup_default = {
|
|
|
2281
2235
|
};
|
|
2282
2236
|
|
|
2283
2237
|
// src/components/button-group/ButtonGroup.tsx
|
|
2284
|
-
import { jsx as
|
|
2238
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
2285
2239
|
var BUTTON_GROUP_LABELS = { optional: "\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E" };
|
|
2286
2240
|
function ButtonGroupRoot({
|
|
2287
2241
|
orientation = "horizontal",
|
|
@@ -2306,7 +2260,7 @@ function ButtonGroupRoot({
|
|
|
2306
2260
|
}) {
|
|
2307
2261
|
const size = useControlSize(sizeProp);
|
|
2308
2262
|
const ids = useFieldFrame(id, { label, hint, error, invalid }, ariaDescribedBy);
|
|
2309
|
-
return /* @__PURE__ */
|
|
2263
|
+
return /* @__PURE__ */ jsx9(
|
|
2310
2264
|
FieldFrame,
|
|
2311
2265
|
{
|
|
2312
2266
|
...rest,
|
|
@@ -2322,7 +2276,7 @@ function ButtonGroupRoot({
|
|
|
2322
2276
|
group: true,
|
|
2323
2277
|
className: cx(ButtonGroup_default.field, className),
|
|
2324
2278
|
"data-full-width": fullWidth || void 0,
|
|
2325
|
-
children: /* @__PURE__ */
|
|
2279
|
+
children: /* @__PURE__ */ jsx9(
|
|
2326
2280
|
"div",
|
|
2327
2281
|
{
|
|
2328
2282
|
id: ids.controlId,
|
|
@@ -2339,7 +2293,7 @@ function ButtonGroupRoot({
|
|
|
2339
2293
|
invalid: ids.invalid || void 0,
|
|
2340
2294
|
"full-width": fullWidth
|
|
2341
2295
|
}),
|
|
2342
|
-
children: /* @__PURE__ */
|
|
2296
|
+
children: /* @__PURE__ */ jsx9(ControlSizeProvider, { value: size, children })
|
|
2343
2297
|
}
|
|
2344
2298
|
)
|
|
2345
2299
|
}
|
|
@@ -2357,7 +2311,7 @@ function ButtonGroupItem({
|
|
|
2357
2311
|
}) {
|
|
2358
2312
|
const disabled = useInheritedDisabled(disabledProp);
|
|
2359
2313
|
const layout = iconLayout(children, ButtonGroupIcon);
|
|
2360
|
-
return /* @__PURE__ */
|
|
2314
|
+
return /* @__PURE__ */ jsx9(
|
|
2361
2315
|
"button",
|
|
2362
2316
|
{
|
|
2363
2317
|
ref,
|
|
@@ -2378,7 +2332,7 @@ function ButtonGroupItem({
|
|
|
2378
2332
|
}
|
|
2379
2333
|
ButtonGroupItem.displayName = "ButtonGroup.Item";
|
|
2380
2334
|
function ButtonGroupIcon({ children, className, ...rest }) {
|
|
2381
|
-
return /* @__PURE__ */
|
|
2335
|
+
return /* @__PURE__ */ jsx9("span", { className: cx(ButtonGroup_default.icon, className), "aria-hidden": "true", ...rest, children });
|
|
2382
2336
|
}
|
|
2383
2337
|
ButtonGroupIcon.displayName = "ButtonGroup.Icon";
|
|
2384
2338
|
var ButtonGroup = { Root: ButtonGroupRoot, Item: ButtonGroupItem, Icon: ButtonGroupIcon };
|
|
@@ -2405,7 +2359,7 @@ var Card_default = {
|
|
|
2405
2359
|
};
|
|
2406
2360
|
|
|
2407
2361
|
// src/components/card/Card.tsx
|
|
2408
|
-
import { jsx as
|
|
2362
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
2409
2363
|
function CardRoot({
|
|
2410
2364
|
variant = "panel",
|
|
2411
2365
|
flat = false,
|
|
@@ -2430,65 +2384,65 @@ function CardRoot({
|
|
|
2430
2384
|
if (!React10.isValidElement(child)) {
|
|
2431
2385
|
throw new Error("Card.Root asChild needs a single element child");
|
|
2432
2386
|
}
|
|
2433
|
-
return /* @__PURE__ */
|
|
2387
|
+
return /* @__PURE__ */ jsx10(Slot, { ...rootProps, children: React10.cloneElement(
|
|
2434
2388
|
child,
|
|
2435
2389
|
void 0,
|
|
2436
|
-
/* @__PURE__ */
|
|
2390
|
+
/* @__PURE__ */ jsx10(SurfaceDepthProvider, { value: depth, children: child.props.children })
|
|
2437
2391
|
) });
|
|
2438
2392
|
}
|
|
2439
|
-
return /* @__PURE__ */
|
|
2393
|
+
return /* @__PURE__ */ jsx10("div", { ...rootProps, children: /* @__PURE__ */ jsx10(SurfaceDepthProvider, { value: depth, children }) });
|
|
2440
2394
|
}
|
|
2441
2395
|
CardRoot.displayName = "Card.Root";
|
|
2442
2396
|
function CardHeader({ className, ...rest }) {
|
|
2443
|
-
return /* @__PURE__ */
|
|
2397
|
+
return /* @__PURE__ */ jsx10("div", { className: cx(Card_default.header, className), ...rest });
|
|
2444
2398
|
}
|
|
2445
2399
|
CardHeader.displayName = "Card.Header";
|
|
2446
2400
|
function CardTitle({ as: Tag = "h3", className, ...rest }) {
|
|
2447
|
-
return /* @__PURE__ */
|
|
2401
|
+
return /* @__PURE__ */ jsx10(Tag, { className: cx(textRole_default.titleS, Card_default.title, className), ...rest });
|
|
2448
2402
|
}
|
|
2449
2403
|
CardTitle.displayName = "Card.Title";
|
|
2450
2404
|
function CardDescription({ className, ...rest }) {
|
|
2451
|
-
return /* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ jsx10("p", { className: cx(textRole_default.bodyS, Card_default.description, className), ...rest });
|
|
2452
2406
|
}
|
|
2453
2407
|
CardDescription.displayName = "Card.Description";
|
|
2454
2408
|
function CardBody({ className, ...rest }) {
|
|
2455
|
-
return /* @__PURE__ */
|
|
2409
|
+
return /* @__PURE__ */ jsx10("div", { className: cx(Card_default.body, className), ...rest });
|
|
2456
2410
|
}
|
|
2457
2411
|
CardBody.displayName = "Card.Body";
|
|
2458
2412
|
function CardMedia({ className, ...rest }) {
|
|
2459
|
-
return /* @__PURE__ */
|
|
2413
|
+
return /* @__PURE__ */ jsx10("div", { className: cx(Card_default.media, className), ...rest });
|
|
2460
2414
|
}
|
|
2461
2415
|
CardMedia.displayName = "Card.Media";
|
|
2462
2416
|
function CardFooter({ className, ...rest }) {
|
|
2463
|
-
return /* @__PURE__ */
|
|
2417
|
+
return /* @__PURE__ */ jsx10("div", { className: cx(Card_default.footer, className), ...rest });
|
|
2464
2418
|
}
|
|
2465
2419
|
CardFooter.displayName = "Card.Footer";
|
|
2466
2420
|
function CardIcon({ className, ...rest }) {
|
|
2467
|
-
return /* @__PURE__ */
|
|
2421
|
+
return /* @__PURE__ */ jsx10("div", { className: cx(Card_default.icon, className), ...rest });
|
|
2468
2422
|
}
|
|
2469
2423
|
CardIcon.displayName = "Card.Icon";
|
|
2470
2424
|
function CardLabel({ className, ...rest }) {
|
|
2471
|
-
return /* @__PURE__ */
|
|
2425
|
+
return /* @__PURE__ */ jsx10("span", { className: cx(textRole_default.bodyS, Card_default.label, className), ...rest });
|
|
2472
2426
|
}
|
|
2473
2427
|
CardLabel.displayName = "Card.Label";
|
|
2474
2428
|
function CardValue({ className, ...rest }) {
|
|
2475
|
-
return /* @__PURE__ */
|
|
2429
|
+
return /* @__PURE__ */ jsx10("span", { className: cx(textRole_default.titleL, Card_default.value, className), ...rest });
|
|
2476
2430
|
}
|
|
2477
2431
|
CardValue.displayName = "Card.Value";
|
|
2478
2432
|
function CardDelta({ className, tone = "neutral", ...rest }) {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2433
|
+
return /* @__PURE__ */ jsx10("span", { ...rest, className: cx(Card_default.delta, className), "data-tone": tone });
|
|
2480
2434
|
}
|
|
2481
2435
|
CardDelta.displayName = "Card.Delta";
|
|
2482
2436
|
function CardMeta({ className, ...rest }) {
|
|
2483
|
-
return /* @__PURE__ */
|
|
2437
|
+
return /* @__PURE__ */ jsx10("span", { className: cx(textRole_default.caption, Card_default.meta, className), ...rest });
|
|
2484
2438
|
}
|
|
2485
2439
|
CardMeta.displayName = "Card.Meta";
|
|
2486
2440
|
function CardList({ className, ...rest }) {
|
|
2487
|
-
return /* @__PURE__ */
|
|
2441
|
+
return /* @__PURE__ */ jsx10("ul", { className: cx(Card_default.list, className), ...rest });
|
|
2488
2442
|
}
|
|
2489
2443
|
CardList.displayName = "Card.List";
|
|
2490
2444
|
function CardListItem({ className, ...rest }) {
|
|
2491
|
-
return /* @__PURE__ */
|
|
2445
|
+
return /* @__PURE__ */ jsx10("li", { className: cx(textRole_default.bodyM, Card_default.listItem, className), ...rest });
|
|
2492
2446
|
}
|
|
2493
2447
|
CardListItem.displayName = "Card.ListItem";
|
|
2494
2448
|
var Card = {
|
|
@@ -2521,9 +2475,9 @@ var chartTooltip_default = {
|
|
|
2521
2475
|
};
|
|
2522
2476
|
|
|
2523
2477
|
// src/internal/ChartTooltip.tsx
|
|
2524
|
-
import { jsx as
|
|
2478
|
+
import { jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2525
2479
|
function ChartTooltip({ anchorRef, ...props }) {
|
|
2526
|
-
return anchorRef ? /* @__PURE__ */
|
|
2480
|
+
return anchorRef ? /* @__PURE__ */ jsx11(FloatingChartTooltip, { ...props, anchorRef }) : /* @__PURE__ */ jsx11(Body, { ...props });
|
|
2527
2481
|
}
|
|
2528
2482
|
function Body({
|
|
2529
2483
|
label,
|
|
@@ -2534,7 +2488,7 @@ function Body({
|
|
|
2534
2488
|
...rest
|
|
2535
2489
|
}) {
|
|
2536
2490
|
return /* @__PURE__ */ jsxs8("div", { ...rest, className: cx(chartTooltip_default.root, className), "data-depth": "floating", children: [
|
|
2537
|
-
label !== void 0 && label !== null ? /* @__PURE__ */
|
|
2491
|
+
label !== void 0 && label !== null ? /* @__PURE__ */ jsx11("div", { className: chartTooltip_default.label, children: label }) : null,
|
|
2538
2492
|
children
|
|
2539
2493
|
] });
|
|
2540
2494
|
}
|
|
@@ -2580,7 +2534,7 @@ function FloatingChartTooltip({
|
|
|
2580
2534
|
"data-depth": "floating",
|
|
2581
2535
|
"aria-hidden": "true",
|
|
2582
2536
|
children: [
|
|
2583
|
-
shown.label !== void 0 && shown.label !== null ? /* @__PURE__ */
|
|
2537
|
+
shown.label !== void 0 && shown.label !== null ? /* @__PURE__ */ jsx11("div", { className: chartTooltip_default.label, children: shown.label }) : null,
|
|
2584
2538
|
shown.children
|
|
2585
2539
|
]
|
|
2586
2540
|
}
|
|
@@ -2652,7 +2606,7 @@ var Crossfade_default = {
|
|
|
2652
2606
|
};
|
|
2653
2607
|
|
|
2654
2608
|
// src/components/crossfade/Crossfade.tsx
|
|
2655
|
-
import { jsx as
|
|
2609
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
2656
2610
|
function isEmptyNode(node) {
|
|
2657
2611
|
if (node == null || typeof node === "boolean" || node === "") return true;
|
|
2658
2612
|
if (Array.isArray(node)) return node.every(isEmptyNode);
|
|
@@ -2724,7 +2678,7 @@ function Crossfade({
|
|
|
2724
2678
|
setLeaving((list) => list.filter((layer) => layer.key !== key));
|
|
2725
2679
|
};
|
|
2726
2680
|
const layers = [
|
|
2727
|
-
...leaving.map((layer) => /* @__PURE__ */
|
|
2681
|
+
...leaving.map((layer) => /* @__PURE__ */ jsx12(
|
|
2728
2682
|
"div",
|
|
2729
2683
|
{
|
|
2730
2684
|
className: cx(Crossfade_default.layer, Crossfade_default.leaving, swapMotion_default.swapOut),
|
|
@@ -2737,7 +2691,7 @@ function Crossfade({
|
|
|
2737
2691
|
`state-${String(layer.key)}`
|
|
2738
2692
|
)),
|
|
2739
2693
|
// An empty state draws no layer: with no leaving layer either, the root is `:empty` and hides.
|
|
2740
|
-
isEmptyNode(children) ? null : /* @__PURE__ */
|
|
2694
|
+
isEmptyNode(children) ? null : /* @__PURE__ */ jsx12(
|
|
2741
2695
|
"div",
|
|
2742
2696
|
{
|
|
2743
2697
|
className: cx(Crossfade_default.layer, swapped && swapMotion_default.swapIn),
|
|
@@ -2747,7 +2701,7 @@ function Crossfade({
|
|
|
2747
2701
|
`state-${String(state)}`
|
|
2748
2702
|
)
|
|
2749
2703
|
];
|
|
2750
|
-
return /* @__PURE__ */
|
|
2704
|
+
return /* @__PURE__ */ jsx12(
|
|
2751
2705
|
"div",
|
|
2752
2706
|
{
|
|
2753
2707
|
...rest,
|
|
@@ -2791,7 +2745,7 @@ var ChartFrame_default = {
|
|
|
2791
2745
|
};
|
|
2792
2746
|
|
|
2793
2747
|
// src/components/chart-frame/ChartFrame.tsx
|
|
2794
|
-
import { Fragment as Fragment4, jsx as
|
|
2748
|
+
import { Fragment as Fragment4, jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2795
2749
|
var DEFAULT_LABELS2 = {
|
|
2796
2750
|
empty: "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445 \u0437\u0430 \u043F\u0435\u0440\u0438\u043E\u0434",
|
|
2797
2751
|
error: "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0433\u0440\u0430\u0444\u0438\u043A",
|
|
@@ -2863,7 +2817,7 @@ function ChartFrameRoot({
|
|
|
2863
2817
|
setHasDescription,
|
|
2864
2818
|
plotRef
|
|
2865
2819
|
};
|
|
2866
|
-
return /* @__PURE__ */
|
|
2820
|
+
return /* @__PURE__ */ jsx13(
|
|
2867
2821
|
"figure",
|
|
2868
2822
|
{
|
|
2869
2823
|
"aria-labelledby": hasTitle ? titleId : void 0,
|
|
@@ -2873,13 +2827,13 @@ function ChartFrameRoot({
|
|
|
2873
2827
|
className: cx(ChartFrame_default.root, className),
|
|
2874
2828
|
"data-depth": depth,
|
|
2875
2829
|
"data-state": state,
|
|
2876
|
-
children: /* @__PURE__ */
|
|
2830
|
+
children: /* @__PURE__ */ jsx13(SurfaceDepthProvider, { value: depth, children: /* @__PURE__ */ jsx13(ChartFrameContext.Provider, { value: context, children }) })
|
|
2877
2831
|
}
|
|
2878
2832
|
);
|
|
2879
2833
|
}
|
|
2880
2834
|
ChartFrameRoot.displayName = "ChartFrame.Root";
|
|
2881
2835
|
function ChartFrameHeader({ className, ...rest }) {
|
|
2882
|
-
return /* @__PURE__ */
|
|
2836
|
+
return /* @__PURE__ */ jsx13("div", { ...rest, className: cx(ChartFrame_default.header, className) });
|
|
2883
2837
|
}
|
|
2884
2838
|
ChartFrameHeader.displayName = "ChartFrame.Header";
|
|
2885
2839
|
function ChartFrameTitle({ as: Tag = "h3", className, ref, ...rest }) {
|
|
@@ -2888,7 +2842,7 @@ function ChartFrameTitle({ as: Tag = "h3", className, ref, ...rest }) {
|
|
|
2888
2842
|
setHasTitle(true);
|
|
2889
2843
|
return () => setHasTitle(false);
|
|
2890
2844
|
}, [setHasTitle]);
|
|
2891
|
-
return /* @__PURE__ */
|
|
2845
|
+
return /* @__PURE__ */ jsx13(
|
|
2892
2846
|
Tag,
|
|
2893
2847
|
{
|
|
2894
2848
|
id: titleId,
|
|
@@ -2905,11 +2859,11 @@ function ChartFrameDescription({ className, ...rest }) {
|
|
|
2905
2859
|
setHasDescription(true);
|
|
2906
2860
|
return () => setHasDescription(false);
|
|
2907
2861
|
}, [setHasDescription]);
|
|
2908
|
-
return /* @__PURE__ */
|
|
2862
|
+
return /* @__PURE__ */ jsx13("p", { id: descriptionId, ...rest, className: cx(textRole_default.bodyS, ChartFrame_default.description, className) });
|
|
2909
2863
|
}
|
|
2910
2864
|
ChartFrameDescription.displayName = "ChartFrame.Description";
|
|
2911
2865
|
function ChartFrameActions({ className, ...rest }) {
|
|
2912
|
-
return /* @__PURE__ */
|
|
2866
|
+
return /* @__PURE__ */ jsx13("div", { ...rest, className: cx(ChartFrame_default.actions, className) });
|
|
2913
2867
|
}
|
|
2914
2868
|
ChartFrameActions.displayName = "ChartFrame.Actions";
|
|
2915
2869
|
function ChartFrameValue({ className, children, ...rest }) {
|
|
@@ -2917,14 +2871,14 @@ function ChartFrameValue({ className, children, ...rest }) {
|
|
|
2917
2871
|
const shown = state === "loading" || state === "error" ? state : "data";
|
|
2918
2872
|
const swapped = useStateSwap(shown);
|
|
2919
2873
|
const swapClass = swapped ? swapMotion_default.swapIn : void 0;
|
|
2920
|
-
return /* @__PURE__ */
|
|
2874
|
+
return /* @__PURE__ */ jsx13("div", { ...rest, className: cx(textRole_default.headingM, ChartFrame_default.value, className), children: shown === "loading" ? /* @__PURE__ */ jsx13(Skeleton, { shape: "block", className: cx(ChartFrame_default.valueSkeleton, swapClass) }) : shown === "error" ? (
|
|
2921
2875
|
// The data failed to load: the number is unknown, not the last one seen.
|
|
2922
|
-
/* @__PURE__ */
|
|
2923
|
-
) : /* @__PURE__ */
|
|
2876
|
+
/* @__PURE__ */ jsx13("span", { className: cx(ChartFrame_default.valueContent, ChartFrame_default.valueUnknown, swapClass), children: "\u2014" }, "error")
|
|
2877
|
+
) : /* @__PURE__ */ jsx13("span", { className: cx(ChartFrame_default.valueContent, swapClass), children }, "data") });
|
|
2924
2878
|
}
|
|
2925
2879
|
ChartFrameValue.displayName = "ChartFrame.Value";
|
|
2926
2880
|
function ChartFrameDelta({ tone = "neutral", className, ...rest }) {
|
|
2927
|
-
return /* @__PURE__ */
|
|
2881
|
+
return /* @__PURE__ */ jsx13("span", { ...rest, className: cx(ChartFrame_default.delta, className), "data-tone": tone });
|
|
2928
2882
|
}
|
|
2929
2883
|
ChartFrameDelta.displayName = "ChartFrame.Delta";
|
|
2930
2884
|
function ChartFramePlot({
|
|
@@ -2963,7 +2917,7 @@ function ChartFramePlot({
|
|
|
2963
2917
|
height: size.height,
|
|
2964
2918
|
series: series.map(({ id, label, color, hidden }) => ({ id, label, color, hidden }))
|
|
2965
2919
|
}) : null : children;
|
|
2966
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ jsx13(
|
|
2967
2921
|
"div",
|
|
2968
2922
|
{
|
|
2969
2923
|
...rest,
|
|
@@ -2971,14 +2925,14 @@ function ChartFramePlot({
|
|
|
2971
2925
|
className: cx(ChartFrame_default.plot, className),
|
|
2972
2926
|
"data-height": height === "fill" ? "fill" : void 0,
|
|
2973
2927
|
style: typeof height === "number" ? { ...style, "--chart-frame-plot-height": `${height}px` } : style,
|
|
2974
|
-
children: /* @__PURE__ */
|
|
2975
|
-
/* @__PURE__ */
|
|
2976
|
-
/* @__PURE__ */
|
|
2977
|
-
] }) }) : state === "error" ? /* @__PURE__ */
|
|
2978
|
-
/* @__PURE__ */
|
|
2979
|
-
/* @__PURE__ */
|
|
2980
|
-
onRetry ? /* @__PURE__ */
|
|
2981
|
-
] }) }) : /* @__PURE__ */
|
|
2928
|
+
children: /* @__PURE__ */ jsx13(Crossfade, { state, fill: true, children: state === "loading" ? /* @__PURE__ */ jsx13(Skeleton, { shape: "block", className: ChartFrame_default.plotSkeleton }) : state === "empty" ? /* @__PURE__ */ jsx13("div", { className: ChartFrame_default.stateBox, children: /* @__PURE__ */ jsxs9(EmptyPage.Root, { layout: "compact", role: "status", children: [
|
|
2929
|
+
/* @__PURE__ */ jsx13(EmptyPage.Icon, { children: /* @__PURE__ */ jsx13(Icon, { name: "object.chart" }) }),
|
|
2930
|
+
/* @__PURE__ */ jsx13(EmptyPage.Title, { as: "p", children: labels.empty })
|
|
2931
|
+
] }) }) : state === "error" ? /* @__PURE__ */ jsx13("div", { className: ChartFrame_default.stateBox, children: /* @__PURE__ */ jsxs9(EmptyPage.Root, { layout: "compact", tone: "danger", labels: { retry: labels.retry }, children: [
|
|
2932
|
+
/* @__PURE__ */ jsx13(EmptyPage.Icon, { children: /* @__PURE__ */ jsx13(Icon, { name: "status.failed" }) }),
|
|
2933
|
+
/* @__PURE__ */ jsx13(EmptyPage.Title, { as: "p", children: labels.error }),
|
|
2934
|
+
onRetry ? /* @__PURE__ */ jsx13(EmptyPage.Actions, { children: /* @__PURE__ */ jsx13(EmptyPage.RetryButton, { onRetry }) }) : null
|
|
2935
|
+
] }) }) : /* @__PURE__ */ jsx13("div", { className: ChartFrame_default.canvas, children: plot }) })
|
|
2982
2936
|
}
|
|
2983
2937
|
);
|
|
2984
2938
|
}
|
|
@@ -2998,7 +2952,7 @@ function ChartFrameLegend({ readOnly = false, className, ...rest }) {
|
|
|
2998
2952
|
setFocusIndex(next);
|
|
2999
2953
|
buttons.current[next]?.focus();
|
|
3000
2954
|
};
|
|
3001
|
-
return /* @__PURE__ */
|
|
2955
|
+
return /* @__PURE__ */ jsx13(
|
|
3002
2956
|
"ul",
|
|
3003
2957
|
{
|
|
3004
2958
|
"aria-label": labels.legend,
|
|
@@ -3007,7 +2961,7 @@ function ChartFrameLegend({ readOnly = false, className, ...rest }) {
|
|
|
3007
2961
|
"data-read-only": readOnly || void 0,
|
|
3008
2962
|
children: series.map((item, index) => {
|
|
3009
2963
|
const content = /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
3010
|
-
/* @__PURE__ */
|
|
2964
|
+
/* @__PURE__ */ jsx13(
|
|
3011
2965
|
"span",
|
|
3012
2966
|
{
|
|
3013
2967
|
className: ChartFrame_default.swatch,
|
|
@@ -3015,20 +2969,20 @@ function ChartFrameLegend({ readOnly = false, className, ...rest }) {
|
|
|
3015
2969
|
style: { "--chart-frame-swatch": item.color }
|
|
3016
2970
|
}
|
|
3017
2971
|
),
|
|
3018
|
-
/* @__PURE__ */
|
|
3019
|
-
item.value !== void 0 ? loading ? /* @__PURE__ */
|
|
2972
|
+
/* @__PURE__ */ jsx13("span", { className: ChartFrame_default.legendLabel, children: item.label }),
|
|
2973
|
+
item.value !== void 0 ? loading ? /* @__PURE__ */ jsx13(
|
|
3020
2974
|
Skeleton,
|
|
3021
2975
|
{
|
|
3022
2976
|
shape: "text",
|
|
3023
2977
|
size: "xs",
|
|
3024
2978
|
className: cx(ChartFrame_default.legendValueSkeleton, swapped && swapMotion_default.swapIn)
|
|
3025
2979
|
}
|
|
3026
|
-
) : /* @__PURE__ */
|
|
2980
|
+
) : /* @__PURE__ */ jsx13("span", { className: cx(ChartFrame_default.legendValue, swapped && swapMotion_default.swapIn), children: formatValue(item.value) }) : null
|
|
3027
2981
|
] });
|
|
3028
|
-
return /* @__PURE__ */
|
|
2982
|
+
return /* @__PURE__ */ jsx13("li", { className: ChartFrame_default.legendItem, children: readOnly ? /* @__PURE__ */ jsx13("span", { className: ChartFrame_default.entry, children: content }) : (
|
|
3029
2983
|
// A legend entry names a series and toggles it; Button's command look (filled label,
|
|
3030
2984
|
// tier padding) would read as an action, so the entry draws its own quiet chip.
|
|
3031
|
-
/* @__PURE__ */
|
|
2985
|
+
/* @__PURE__ */ jsx13(
|
|
3032
2986
|
"button",
|
|
3033
2987
|
{
|
|
3034
2988
|
ref: (node) => {
|
|
@@ -3068,7 +3022,7 @@ function ChartFrameTooltip({ label, items, point, className, ...rest }) {
|
|
|
3068
3022
|
}
|
|
3069
3023
|
];
|
|
3070
3024
|
});
|
|
3071
|
-
return /* @__PURE__ */
|
|
3025
|
+
return /* @__PURE__ */ jsx13(
|
|
3072
3026
|
ChartTooltip,
|
|
3073
3027
|
{
|
|
3074
3028
|
...rest,
|
|
@@ -3076,8 +3030,8 @@ function ChartFrameTooltip({ label, items, point, className, ...rest }) {
|
|
|
3076
3030
|
label: label || void 0,
|
|
3077
3031
|
anchorRef: point === void 0 ? void 0 : plotRef,
|
|
3078
3032
|
point,
|
|
3079
|
-
children: rows2.length > 0 ? /* @__PURE__ */
|
|
3080
|
-
/* @__PURE__ */
|
|
3033
|
+
children: rows2.length > 0 ? /* @__PURE__ */ jsx13("ul", { className: ChartFrame_default.tooltipRows, children: rows2.map((row) => /* @__PURE__ */ jsxs9("li", { className: ChartFrame_default.tooltipRow, children: [
|
|
3034
|
+
/* @__PURE__ */ jsx13(
|
|
3081
3035
|
"span",
|
|
3082
3036
|
{
|
|
3083
3037
|
className: ChartFrame_default.swatch,
|
|
@@ -3085,8 +3039,8 @@ function ChartFrameTooltip({ label, items, point, className, ...rest }) {
|
|
|
3085
3039
|
style: { "--chart-frame-swatch": row.color }
|
|
3086
3040
|
}
|
|
3087
3041
|
),
|
|
3088
|
-
/* @__PURE__ */
|
|
3089
|
-
/* @__PURE__ */
|
|
3042
|
+
/* @__PURE__ */ jsx13("span", { className: ChartFrame_default.tooltipName, children: row.label }),
|
|
3043
|
+
/* @__PURE__ */ jsx13("span", { className: ChartFrame_default.tooltipValue, children: formatValue(row.value) })
|
|
3090
3044
|
] }, row.id)) }) : null
|
|
3091
3045
|
}
|
|
3092
3046
|
);
|
|
@@ -3097,15 +3051,15 @@ function ChartFrameTable({ rows: rows2, className, ...rest }) {
|
|
|
3097
3051
|
if (state !== "ready") return null;
|
|
3098
3052
|
const columns = series.filter((item) => !item.hidden);
|
|
3099
3053
|
return /* @__PURE__ */ jsxs9("table", { "aria-labelledby": titleId, ...rest, className: cx(visuallyHiddenClass, className), children: [
|
|
3100
|
-
/* @__PURE__ */
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
columns.map((column) => /* @__PURE__ */
|
|
3054
|
+
/* @__PURE__ */ jsx13("thead", { children: /* @__PURE__ */ jsxs9("tr", { children: [
|
|
3055
|
+
/* @__PURE__ */ jsx13("th", { scope: "col", children: labels.category }),
|
|
3056
|
+
columns.map((column) => /* @__PURE__ */ jsx13("th", { scope: "col", children: column.label }, column.id))
|
|
3103
3057
|
] }) }),
|
|
3104
|
-
/* @__PURE__ */
|
|
3105
|
-
/* @__PURE__ */
|
|
3058
|
+
/* @__PURE__ */ jsx13("tbody", { children: rows2.map((row) => /* @__PURE__ */ jsxs9("tr", { children: [
|
|
3059
|
+
/* @__PURE__ */ jsx13("th", { scope: "row", children: row.label }),
|
|
3106
3060
|
columns.map((column) => {
|
|
3107
3061
|
const value = row.values[column.id];
|
|
3108
|
-
return /* @__PURE__ */
|
|
3062
|
+
return /* @__PURE__ */ jsx13("td", { children: value === void 0 ? "\u2014" : formatValue(value) }, column.id);
|
|
3109
3063
|
})
|
|
3110
3064
|
] }, row.label)) })
|
|
3111
3065
|
] });
|
|
@@ -3134,6 +3088,26 @@ import * as React32 from "react";
|
|
|
3134
3088
|
// src/components/dropdown/Dropdown.tsx
|
|
3135
3089
|
import * as React14 from "react";
|
|
3136
3090
|
|
|
3091
|
+
// src/components/kbd/Kbd.module.css
|
|
3092
|
+
var Kbd_default = {
|
|
3093
|
+
root: "Kbd_root"
|
|
3094
|
+
};
|
|
3095
|
+
|
|
3096
|
+
// src/components/kbd/Kbd.tsx
|
|
3097
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
3098
|
+
function Kbd({ children, className, size: sizeProp, ...rest }) {
|
|
3099
|
+
const { size, tier } = useBadgeTier(sizeProp);
|
|
3100
|
+
return /* @__PURE__ */ jsx14(
|
|
3101
|
+
"kbd",
|
|
3102
|
+
{
|
|
3103
|
+
className: cx(Kbd_default.root, chipTier_default.tier, className),
|
|
3104
|
+
...rest,
|
|
3105
|
+
...toDataAttributes({ size, tier }),
|
|
3106
|
+
children: /* @__PURE__ */ jsx14(ControlSizeProvider, { value: tier, children })
|
|
3107
|
+
}
|
|
3108
|
+
);
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3137
3111
|
// src/components/dropdown/Dropdown.module.css
|
|
3138
3112
|
var Dropdown_default = {
|
|
3139
3113
|
item: "Dropdown_item",
|
|
@@ -14679,7 +14653,10 @@ function ColorPresetsRoot({
|
|
|
14679
14653
|
onChange: onOpenChange
|
|
14680
14654
|
});
|
|
14681
14655
|
const triggerRef = React48.useRef(null);
|
|
14682
|
-
const
|
|
14656
|
+
const cell = useFieldCell();
|
|
14657
|
+
const cellLabel = cell?.label;
|
|
14658
|
+
const ids = useFieldFrame(void 0, {});
|
|
14659
|
+
const triggerId = cell ? ids.controlId : void 0;
|
|
14683
14660
|
const labels = React48.useMemo(
|
|
14684
14661
|
() => ({
|
|
14685
14662
|
...COLOR_PRESETS_LABELS,
|
|
@@ -14716,11 +14693,13 @@ function ColorPresetsRoot({
|
|
|
14716
14693
|
size,
|
|
14717
14694
|
disabled,
|
|
14718
14695
|
labels,
|
|
14719
|
-
triggerRef
|
|
14696
|
+
triggerRef,
|
|
14697
|
+
triggerId
|
|
14720
14698
|
}),
|
|
14721
|
-
[value, select, close, options, selectedLabel, columns, size, disabled, labels]
|
|
14699
|
+
[value, select, close, options, selectedLabel, columns, size, disabled, labels, triggerId]
|
|
14722
14700
|
);
|
|
14723
|
-
|
|
14701
|
+
const popover = /* @__PURE__ */ jsx41(Popover.Root, { open: open && !disabled, onOpenChange: setOpen, children });
|
|
14702
|
+
return /* @__PURE__ */ jsx41(ColorPresetsProvider, { value: ctx, children: cell ? /* @__PURE__ */ jsx41(FieldFrame, { size, ids, disabled, optionalLabel: "", children: popover }) : popover });
|
|
14724
14703
|
}
|
|
14725
14704
|
ColorPresetsRoot.displayName = "ColorPresets.Root";
|
|
14726
14705
|
function Swatch(props) {
|
|
@@ -14729,11 +14708,12 @@ function Swatch(props) {
|
|
|
14729
14708
|
}
|
|
14730
14709
|
Swatch.displayName = "ColorPresets.Swatch";
|
|
14731
14710
|
function Trigger({ children }) {
|
|
14732
|
-
const { disabled, labels, selectedLabel, triggerRef } = useColorPresetsContext();
|
|
14711
|
+
const { disabled, labels, selectedLabel, triggerRef, triggerId } = useColorPresetsContext();
|
|
14733
14712
|
return /* @__PURE__ */ jsx41(Popover.Trigger, { children: /* @__PURE__ */ jsx41(
|
|
14734
14713
|
Slot,
|
|
14735
14714
|
{
|
|
14736
14715
|
ref: triggerRef,
|
|
14716
|
+
...triggerId ? { id: triggerId } : null,
|
|
14737
14717
|
disabled: disabled || void 0,
|
|
14738
14718
|
"aria-label": `${labels.trigger}: ${selectedLabel}`,
|
|
14739
14719
|
onKeyDown: (event) => {
|
|
@@ -16840,7 +16820,11 @@ function FileUploadField({
|
|
|
16840
16820
|
accept,
|
|
16841
16821
|
multiple,
|
|
16842
16822
|
required,
|
|
16843
|
-
disabled
|
|
16823
|
+
disabled,
|
|
16824
|
+
"aria-disabled": tile && full || void 0,
|
|
16825
|
+
onClick: (event) => {
|
|
16826
|
+
if (tile && full) event.preventDefault();
|
|
16827
|
+
},
|
|
16844
16828
|
tabIndex: button ? -1 : void 0,
|
|
16845
16829
|
"aria-hidden": button || void 0,
|
|
16846
16830
|
"aria-label": button ? void 0 : tile ? labels.addLabel : ariaLabel,
|
|
@@ -21506,7 +21490,7 @@ function PanelView(props) {
|
|
|
21506
21490
|
}
|
|
21507
21491
|
),
|
|
21508
21492
|
promptText ? /* @__PURE__ */ jsx60("p", { className: Datepicker_default.hint, "aria-live": "polite", children: promptText }) : null,
|
|
21509
|
-
footer ? /* @__PURE__ */ jsxs49("div", { className: Datepicker_default.footer, children: [
|
|
21493
|
+
footer ? /* @__PURE__ */ jsxs49("div", { className: Datepicker_default.footer, "data-time": withTime || void 0, children: [
|
|
21510
21494
|
/* @__PURE__ */ jsxs49("div", { className: Datepicker_default.footerFields, children: [
|
|
21511
21495
|
/* @__PURE__ */ jsx60(
|
|
21512
21496
|
FooterField,
|
|
@@ -21674,7 +21658,7 @@ function formatDatepickerValue(props) {
|
|
|
21674
21658
|
if (!to) return null;
|
|
21675
21659
|
const fromDay = from ? startOfDay4(from) : null;
|
|
21676
21660
|
const lastDay = startOfDay4(to);
|
|
21677
|
-
const wholeDays = (from == null || minutesOf(from) === DAY_START_MINUTES) && minutesOf(to) === DAY_END_MINUTES;
|
|
21661
|
+
const wholeDays = !props.withTime || (from == null || minutesOf(from) === DAY_START_MINUTES) && minutesOf(to) === DAY_END_MINUTES;
|
|
21678
21662
|
if (wholeDays && props.presets) {
|
|
21679
21663
|
const preset = matchPreset(props.presets, fromDay, lastDay, today);
|
|
21680
21664
|
if (preset) return preset.label;
|
|
@@ -22737,6 +22721,21 @@ function usePreviewFacts(stageRef, layout, active) {
|
|
|
22737
22721
|
React75.useLayoutEffect(() => {
|
|
22738
22722
|
const stage = stageRef.current;
|
|
22739
22723
|
if (!active || !stage) return;
|
|
22724
|
+
let gridWidth = 0;
|
|
22725
|
+
const fitMatrix = (remeasure) => {
|
|
22726
|
+
if (layout !== "matrix") {
|
|
22727
|
+
stage.removeAttribute("data-matrix-wrap");
|
|
22728
|
+
return;
|
|
22729
|
+
}
|
|
22730
|
+
if (stage.hasAttribute("data-matrix-wrap")) {
|
|
22731
|
+
if (!remeasure && stage.clientWidth < gridWidth) return;
|
|
22732
|
+
stage.removeAttribute("data-matrix-wrap");
|
|
22733
|
+
}
|
|
22734
|
+
if (stage.scrollWidth > stage.clientWidth + 1) {
|
|
22735
|
+
gridWidth = stage.scrollWidth;
|
|
22736
|
+
stage.setAttribute("data-matrix-wrap", "");
|
|
22737
|
+
}
|
|
22738
|
+
};
|
|
22740
22739
|
const read = () => {
|
|
22741
22740
|
for (const child of Array.from(stage.children)) {
|
|
22742
22741
|
if (!child.hasAttribute("data-preview-stretch") && child.querySelector(STRETCH_SELECTOR)) {
|
|
@@ -22755,6 +22754,7 @@ function usePreviewFacts(stageRef, layout, active) {
|
|
|
22755
22754
|
} else {
|
|
22756
22755
|
stage.style.removeProperty("--matrix-columns");
|
|
22757
22756
|
}
|
|
22757
|
+
fitMatrix(true);
|
|
22758
22758
|
};
|
|
22759
22759
|
read();
|
|
22760
22760
|
const observer2 = new MutationObserver((records) => {
|
|
@@ -22773,7 +22773,12 @@ function usePreviewFacts(stageRef, layout, active) {
|
|
|
22773
22773
|
attributes: true,
|
|
22774
22774
|
attributeFilter: ["data-full-width"]
|
|
22775
22775
|
});
|
|
22776
|
-
|
|
22776
|
+
const resize = layout === "matrix" && typeof ResizeObserver !== "undefined" ? new ResizeObserver(() => fitMatrix(false)) : null;
|
|
22777
|
+
resize?.observe(stage);
|
|
22778
|
+
return () => {
|
|
22779
|
+
observer2.disconnect();
|
|
22780
|
+
resize?.disconnect();
|
|
22781
|
+
};
|
|
22777
22782
|
}, [stageRef, layout, active]);
|
|
22778
22783
|
}
|
|
22779
22784
|
function ExampleFrame({
|
|
@@ -25960,7 +25965,15 @@ function LoginFormHeader({ className, children, ...rest }) {
|
|
|
25960
25965
|
}
|
|
25961
25966
|
LoginFormHeader.displayName = "LoginForm.Header";
|
|
25962
25967
|
function LoginFormLogo({ className, children, ...rest }) {
|
|
25963
|
-
return /* @__PURE__ */ jsx74(
|
|
25968
|
+
return /* @__PURE__ */ jsx74(
|
|
25969
|
+
"div",
|
|
25970
|
+
{
|
|
25971
|
+
role: rest["aria-label"] ? "img" : void 0,
|
|
25972
|
+
className: cx(LoginForm_default.logo, className),
|
|
25973
|
+
...rest,
|
|
25974
|
+
children
|
|
25975
|
+
}
|
|
25976
|
+
);
|
|
25964
25977
|
}
|
|
25965
25978
|
LoginFormLogo.displayName = "LoginForm.Logo";
|
|
25966
25979
|
function LoginFormTitle({ as = "h1", className, children, ...rest }) {
|
|
@@ -31502,7 +31515,6 @@ function celebrate(options = {}) {
|
|
|
31502
31515
|
}
|
|
31503
31516
|
|
|
31504
31517
|
export {
|
|
31505
|
-
Kbd,
|
|
31506
31518
|
AppHeader,
|
|
31507
31519
|
AppShell,
|
|
31508
31520
|
BottomNav,
|
|
@@ -31518,6 +31530,7 @@ export {
|
|
|
31518
31530
|
hueOf,
|
|
31519
31531
|
Crossfade,
|
|
31520
31532
|
ChartFrame,
|
|
31533
|
+
Kbd,
|
|
31521
31534
|
Dropdown,
|
|
31522
31535
|
formatMessageTime,
|
|
31523
31536
|
formatFileSize,
|