tembro 2.0.5 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/calendar/calendar.cjs +1 -1
- package/dist/components/calendar/calendar.d.ts +2 -1
- package/dist/components/calendar/calendar.js +126 -122
- package/dist/components/calendar/date-range-picker.cjs +1 -1
- package/dist/components/calendar/date-range-picker.d.ts +2 -1
- package/dist/components/calendar/date-range-picker.js +39 -39
- package/dist/components/charts/charts.cjs +1 -1
- package/dist/components/charts/charts.d.ts +13 -4
- package/dist/components/charts/charts.js +76 -46
- package/dist/components/charts/progress-ring.cjs +1 -1
- package/dist/components/charts/progress-ring.d.ts +3 -1
- package/dist/components/charts/progress-ring.js +11 -10
- package/dist/components/data-table/data-table-column-visibility-menu.cjs +1 -1
- package/dist/components/data-table/data-table-column-visibility-menu.d.ts +4 -1
- package/dist/components/data-table/data-table-column-visibility-menu.js +36 -8
- package/dist/components/data-table/data-table-pagination.cjs +1 -1
- package/dist/components/data-table/data-table-pagination.js +4 -4
- package/dist/components/data-table/data-table-toolbar.cjs +1 -1
- package/dist/components/data-table/data-table-toolbar.js +12 -13
- package/dist/components/data-table/data-table.cjs +1 -1
- package/dist/components/data-table/data-table.d.ts +2 -2
- package/dist/components/data-table/data-table.js +2 -1
- package/dist/components/display/carousel.cjs +1 -1
- package/dist/components/display/carousel.d.ts +15 -1
- package/dist/components/display/carousel.js +128 -86
- package/dist/components/display/code-block.cjs +2 -2
- package/dist/components/display/code-block.d.ts +2 -1
- package/dist/components/display/code-block.js +17 -12
- package/dist/components/display/delta-badge.cjs +1 -1
- package/dist/components/display/delta-badge.d.ts +2 -1
- package/dist/components/display/delta-badge.js +11 -7
- package/dist/components/display/kanban.cjs +1 -1
- package/dist/components/display/kanban.d.ts +4 -1
- package/dist/components/display/kanban.js +60 -33
- package/dist/components/display/metric-grid.cjs +1 -1
- package/dist/components/display/metric-grid.d.ts +1 -0
- package/dist/components/display/metric-grid.js +1 -1
- package/dist/components/display/qr-code.cjs +1 -1
- package/dist/components/display/qr-code.d.ts +2 -1
- package/dist/components/display/qr-code.js +19 -16
- package/dist/components/display/smart-card.d.ts +1 -1
- package/dist/components/display/status-legend.d.ts +1 -1
- package/dist/components/display/tag.cjs +1 -1
- package/dist/components/display/tag.d.ts +2 -1
- package/dist/components/display/tag.js +28 -22
- package/dist/components/display/tree-view.cjs +1 -1
- package/dist/components/display/tree-view.d.ts +9 -1
- package/dist/components/display/tree-view.js +104 -40
- package/dist/components/display/trend-card.cjs +1 -1
- package/dist/components/display/trend-card.js +27 -41
- package/dist/components/feedback/alert.cjs +1 -1
- package/dist/components/feedback/alert.d.ts +2 -1
- package/dist/components/feedback/alert.js +6 -6
- package/dist/components/feedback/loading-state.cjs +1 -1
- package/dist/components/feedback/loading-state.d.ts +3 -1
- package/dist/components/feedback/loading-state.js +23 -10
- package/dist/components/feedback/page-state.cjs +1 -1
- package/dist/components/feedback/page-state.d.ts +2 -1
- package/dist/components/feedback/page-state.js +7 -4
- package/dist/components/form/form-field-shell.cjs +1 -1
- package/dist/components/form/form-field-shell.d.ts +4 -2
- package/dist/components/form/form-field-shell.js +57 -41
- package/dist/components/form/form-input.cjs +1 -1
- package/dist/components/form/form-input.d.ts +3 -4
- package/dist/components/form/form-input.js +259 -257
- package/dist/components/form/form-select.cjs +1 -1
- package/dist/components/form/form-select.d.ts +2 -2
- package/dist/components/form/form-select.js +8 -6
- package/dist/components/form/form-switch.cjs +1 -1
- package/dist/components/form/form-switch.d.ts +1 -1
- package/dist/components/form/form-switch.js +58 -54
- package/dist/components/form/form-textarea.cjs +1 -1
- package/dist/components/form/form-textarea.d.ts +1 -1
- package/dist/components/form/form-textarea.js +29 -27
- package/dist/components/inputs/async-select.d.ts +3 -0
- package/dist/components/inputs/search-input.d.ts +3 -0
- package/dist/components/inputs/simple-select.cjs +1 -1
- package/dist/components/inputs/simple-select.d.ts +10 -32
- package/dist/components/inputs/simple-select.js +5 -101
- package/dist/components/layout/app-sidebar.cjs +1 -1
- package/dist/components/layout/app-sidebar.d.ts +1 -0
- package/dist/components/layout/app-sidebar.js +36 -36
- package/dist/components/layout/breadcrumbs.cjs +1 -1
- package/dist/components/layout/breadcrumbs.d.ts +2 -1
- package/dist/components/layout/breadcrumbs.js +7 -7
- package/dist/components/modern/calendar-scheduler.cjs +1 -1
- package/dist/components/modern/calendar-scheduler.d.ts +5 -1
- package/dist/components/modern/calendar-scheduler.js +47 -28
- package/dist/components/modern/dual-list-picker.cjs +1 -1
- package/dist/components/modern/dual-list-picker.d.ts +5 -1
- package/dist/components/modern/dual-list-picker.js +81 -23
- package/dist/components/modern/rich-text-editor.cjs +1 -1
- package/dist/components/modern/rich-text-editor.d.ts +3 -1
- package/dist/components/modern/rich-text-editor.js +12 -9
- package/dist/components/modern/tour.cjs +1 -1
- package/dist/components/modern/tour.d.ts +5 -1
- package/dist/components/modern/tour.js +57 -35
- package/dist/components/navigation/command-bar.cjs +1 -1
- package/dist/components/navigation/command-bar.d.ts +3 -1
- package/dist/components/navigation/command-bar.js +10 -7
- package/dist/components/navigation/demo.cjs +1 -1
- package/dist/components/navigation/demo.js +0 -1
- package/dist/components/navigation/nav-tabs.cjs +1 -1
- package/dist/components/navigation/nav-tabs.js +39 -27
- package/dist/components/navigation/page-tabs.cjs +1 -1
- package/dist/components/navigation/page-tabs.js +41 -30
- package/dist/components/navigation/pagination.cjs +1 -1
- package/dist/components/navigation/pagination.d.ts +7 -1
- package/dist/components/navigation/pagination.js +48 -25
- package/dist/components/notifications/notification-center.cjs +1 -1
- package/dist/components/notifications/notification-center.d.ts +3 -1
- package/dist/components/notifications/notification-center.js +56 -38
- package/dist/components/notifications/toast.cjs +1 -1
- package/dist/components/notifications/toast.d.ts +1 -0
- package/dist/components/notifications/toast.js +4 -0
- package/dist/components/overlay/alert-dialog.cjs +1 -1
- package/dist/components/overlay/alert-dialog.js +1 -1
- package/dist/components/overlay/confirm-dialog.cjs +1 -1
- package/dist/components/overlay/confirm-dialog.d.ts +4 -2
- package/dist/components/overlay/confirm-dialog.js +31 -22
- package/dist/components/overlay/drawer.cjs +1 -1
- package/dist/components/overlay/drawer.d.ts +3 -1
- package/dist/components/overlay/drawer.js +24 -16
- package/dist/components/ui/accordion/index.d.ts +4 -0
- package/dist/components/ui/badge/index.cjs +1 -1
- package/dist/components/ui/badge/index.d.ts +1 -1
- package/dist/components/ui/badge/index.js +2 -1
- package/dist/components/ui/button/index.cjs +1 -1
- package/dist/components/ui/button/index.d.ts +2 -1
- package/dist/components/ui/button/index.js +13 -10
- package/dist/components/ui/card/index.cjs +1 -1
- package/dist/components/ui/card/index.d.ts +13 -2
- package/dist/components/ui/card/index.js +74 -49
- package/dist/components/ui/dialog/index.cjs +1 -1
- package/dist/components/ui/dialog/index.js +2 -1
- package/dist/components/ui/hover-card.cjs +1 -1
- package/dist/components/ui/hover-card.d.ts +11 -3
- package/dist/components/ui/hover-card.js +29 -24
- package/dist/components/ui/input/index.cjs +1 -1
- package/dist/components/ui/input/index.d.ts +9 -1
- package/dist/components/ui/input/index.js +63 -30
- package/dist/components/ui/popover/index.cjs +1 -1
- package/dist/components/ui/popover/index.d.ts +2 -2
- package/dist/components/ui/popover/index.js +6 -5
- package/dist/components/ui/radio-group/index.cjs +1 -1
- package/dist/components/ui/radio-group/index.d.ts +5 -1
- package/dist/components/ui/radio-group/index.js +50 -16
- package/dist/components/ui/right-click-menu/index.cjs +1 -1
- package/dist/components/ui/right-click-menu/index.d.ts +5 -1
- package/dist/components/ui/right-click-menu/index.js +77 -23
- package/dist/components/ui/segmented-control/index.cjs +1 -1
- package/dist/components/ui/segmented-control/index.d.ts +2 -1
- package/dist/components/ui/segmented-control/index.js +23 -11
- package/dist/components/ui/select/index.cjs +1 -1
- package/dist/components/ui/select/index.d.ts +40 -1
- package/dist/components/ui/select/index.js +159 -48
- package/dist/components/ui/switch/index.cjs +1 -1
- package/dist/components/ui/switch/index.d.ts +18 -0
- package/dist/components/ui/switch/index.js +47 -17
- package/dist/components/ui/tabs/index.cjs +1 -1
- package/dist/components/ui/tabs/index.d.ts +14 -4
- package/dist/components/ui/tabs/index.js +11 -8
- package/dist/components/ui/textarea/index.cjs +1 -1
- package/dist/components/ui/textarea/index.d.ts +10 -2
- package/dist/components/ui/textarea/index.js +37 -8
- package/dist/components/ui/textarea.cjs +1 -0
- package/dist/components/ui/textarea.d.ts +1 -0
- package/dist/components/ui/textarea.js +2 -0
- package/dist/components/ui/tooltip/index.cjs +1 -1
- package/dist/components/ui/tooltip/index.d.ts +11 -3
- package/dist/components/ui/tooltip/index.js +41 -20
- package/dist/components/upload/file-upload.cjs +1 -1
- package/dist/components/upload/file-upload.d.ts +8 -1
- package/dist/components/upload/file-upload.js +132 -100
- package/dist/components/upload/image-upload.cjs +1 -1
- package/dist/components/upload/image-upload.d.ts +5 -1
- package/dist/components/upload/image-upload.js +34 -9
- package/dist/index.cjs +1 -1
- package/dist/index.js +31 -31
- package/dist/public-component-surface.cjs +1 -1
- package/dist/public-component-surface.js +15 -0
- package/dist/showcase/component-api-schema.cjs +1 -1
- package/dist/showcase/component-api-schema.js +187 -10
- package/dist/showcase/create-demo.cjs +5 -4
- package/dist/showcase/create-demo.js +2 -2
- package/dist/showcase/fallback.cjs +3 -3
- package/dist/showcase/fallback.js +221 -243
- package/dist/showcase/premium/alert/showcase.cjs +1 -1
- package/dist/showcase/premium/alert/showcase.js +1 -0
- package/dist/showcase/premium/app-sidebar/showcase.cjs +1 -1
- package/dist/showcase/premium/app-sidebar/showcase.js +1 -0
- package/dist/showcase/premium/badge/showcase.cjs +1 -1
- package/dist/showcase/premium/badge/showcase.js +7 -0
- package/dist/showcase/premium/badge/types.d.ts +1 -1
- package/dist/showcase/premium/breadcrumbs/showcase.cjs +1 -1
- package/dist/showcase/premium/breadcrumbs/showcase.js +12 -1
- package/dist/showcase/premium/button/mock.cjs +1 -4
- package/dist/showcase/premium/button/mock.js +1 -1
- package/dist/showcase/premium/button/showcase.cjs +1 -1
- package/dist/showcase/premium/button/showcase.js +2 -2
- package/dist/showcase/premium/card/showcase.cjs +1 -1
- package/dist/showcase/premium/card/showcase.js +96 -47
- package/dist/showcase/premium/carousel/showcase.cjs +1 -1
- package/dist/showcase/premium/carousel/showcase.js +76 -49
- package/dist/showcase/premium/command-bar/showcase.cjs +1 -1
- package/dist/showcase/premium/command-bar/showcase.js +2 -0
- package/dist/showcase/premium/data-table/mock.cjs +12 -11
- package/dist/showcase/premium/data-table/mock.js +1 -1
- package/dist/showcase/premium/data-table/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table/showcase.js +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.cjs +1 -1
- package/dist/showcase/premium/data-table-parts/showcase.js +3 -1
- package/dist/showcase/premium/file-upload/showcase.cjs +1 -1
- package/dist/showcase/premium/file-upload/showcase.js +25 -4
- package/dist/showcase/premium/image-upload/showcase.cjs +1 -1
- package/dist/showcase/premium/image-upload/showcase.js +4 -1
- package/dist/showcase/premium/index.cjs +1 -1
- package/dist/showcase/premium/index.js +396 -402
- package/dist/showcase/premium/loading-state/showcase.cjs +1 -1
- package/dist/showcase/premium/loading-state/showcase.js +3 -1
- package/dist/showcase/premium/metric-grid/showcase.cjs +1 -1
- package/dist/showcase/premium/metric-grid/showcase.js +96 -28
- package/dist/showcase/premium/notification-center/showcase.cjs +1 -1
- package/dist/showcase/premium/notification-center/showcase.js +7 -3
- package/dist/showcase/premium/page-state/showcase.cjs +1 -1
- package/dist/showcase/premium/page-state/showcase.js +5 -1
- package/dist/showcase/premium/pagination/showcase.cjs +1 -1
- package/dist/showcase/premium/pagination/showcase.js +15 -2
- package/dist/showcase/premium/popover/showcase.cjs +1 -1
- package/dist/showcase/premium/popover/showcase.js +85 -50
- package/dist/showcase/premium/radio-group/showcase.cjs +1 -1
- package/dist/showcase/premium/radio-group/showcase.js +27 -4
- package/dist/showcase/premium/right-click-menu/showcase.cjs +1 -1
- package/dist/showcase/premium/right-click-menu/showcase.js +56 -43
- package/dist/showcase/premium/segmented-control/showcase.cjs +1 -1
- package/dist/showcase/premium/segmented-control/showcase.js +1 -0
- package/dist/showcase/premium/select/data.cjs +1 -1
- package/dist/showcase/premium/select/data.js +69 -34
- package/dist/showcase/premium/select/mock.cjs +20 -8
- package/dist/showcase/premium/select/mock.js +3 -2
- package/dist/showcase/premium/select/showcase.cjs +1 -1
- package/dist/showcase/premium/select/showcase.js +101 -86
- package/dist/showcase/premium/select/types.d.ts +3 -0
- package/dist/showcase/premium/statistic/showcase.cjs +1 -1
- package/dist/showcase/premium/statistic/showcase.js +57 -25
- package/dist/showcase/premium/switch/showcase.cjs +1 -1
- package/dist/showcase/premium/switch/showcase.js +25 -14
- package/dist/showcase/premium/tabs/showcase.cjs +1 -1
- package/dist/showcase/premium/tabs/showcase.js +171 -48
- package/dist/showcase/premium/textarea/mock.cjs +12 -4
- package/dist/showcase/premium/textarea/mock.js +1 -1
- package/dist/showcase/premium/textarea/showcase.cjs +1 -1
- package/dist/showcase/premium/textarea/showcase.js +8 -3
- package/dist/showcase/premium/toast/showcase.cjs +1 -1
- package/dist/showcase/premium/toast/showcase.js +32 -6
- package/dist/showcase/premium/types.d.ts +1 -1
- package/dist/showcase/registry-quality.cjs +1 -1
- package/dist/showcase/registry-quality.js +1 -0
- package/dist/showcase/registry-specific.cjs +1 -1
- package/dist/showcase/registry-specific.js +78 -74
- package/dist/showcase/render-registry-preview.cjs +1 -1
- package/dist/showcase/render-registry-preview.js +90 -108
- package/dist/showcase/site-data.cjs +1 -1
- package/dist/showcase/site-data.js +60 -21
- package/dist/showcase/tembro-registry.json.cjs +1 -1
- package/dist/showcase/tembro-registry.json.js +34 -20
- package/dist/showcase/types.d.ts +1 -1
- package/package.json +1 -1
- package/packages/cli/dist/index.cjs +31 -31
- package/packages/cli/vendor/src/components/calendar/calendar.tsx +59 -50
- package/packages/cli/vendor/src/components/calendar/date-range-picker.tsx +7 -4
- package/packages/cli/vendor/src/components/charts/charts.tsx +109 -66
- package/packages/cli/vendor/src/components/charts/progress-ring.tsx +37 -26
- package/packages/cli/vendor/src/components/data-table/data-table-column-visibility-menu.tsx +41 -22
- package/packages/cli/vendor/src/components/data-table/data-table-pagination.tsx +7 -7
- package/packages/cli/vendor/src/components/data-table/data-table-toolbar.tsx +8 -6
- package/packages/cli/vendor/src/components/data-table/data-table.tsx +21 -20
- package/packages/cli/vendor/src/components/display/carousel.tsx +102 -9
- package/packages/cli/vendor/src/components/display/code-block.tsx +22 -2
- package/packages/cli/vendor/src/components/display/delta-badge.tsx +11 -11
- package/packages/cli/vendor/src/components/display/kanban.tsx +103 -57
- package/packages/cli/vendor/src/components/display/metric-grid.tsx +16 -13
- package/packages/cli/vendor/src/components/display/qr-code.tsx +17 -15
- package/packages/cli/vendor/src/components/display/smart-card.tsx +1 -1
- package/packages/cli/vendor/src/components/display/status-legend.tsx +1 -1
- package/packages/cli/vendor/src/components/display/tag.tsx +39 -21
- package/packages/cli/vendor/src/components/display/tree-view.tsx +221 -84
- package/packages/cli/vendor/src/components/display/trend-card.tsx +6 -40
- package/packages/cli/vendor/src/components/feedback/alert.tsx +3 -1
- package/packages/cli/vendor/src/components/feedback/loading-state.tsx +33 -17
- package/packages/cli/vendor/src/components/feedback/page-state.tsx +8 -7
- package/packages/cli/vendor/src/components/form/form-field-shell.tsx +37 -8
- package/packages/cli/vendor/src/components/form/form-input.tsx +11 -12
- package/packages/cli/vendor/src/components/form/form-select.tsx +6 -4
- package/packages/cli/vendor/src/components/form/form-switch.tsx +9 -3
- package/packages/cli/vendor/src/components/form/form-textarea.tsx +6 -2
- package/packages/cli/vendor/src/components/inputs/async-select.tsx +11 -8
- package/packages/cli/vendor/src/components/inputs/search-input.tsx +5 -2
- package/packages/cli/vendor/src/components/inputs/simple-select.tsx +20 -190
- package/packages/cli/vendor/src/components/layout/app-sidebar.tsx +3 -1
- package/packages/cli/vendor/src/components/layout/breadcrumbs.tsx +3 -1
- package/packages/cli/vendor/src/components/modern/calendar-scheduler.tsx +28 -13
- package/packages/cli/vendor/src/components/modern/dual-list-picker.tsx +103 -35
- package/packages/cli/vendor/src/components/modern/rich-text-editor.tsx +25 -22
- package/packages/cli/vendor/src/components/modern/tour.tsx +47 -29
- package/packages/cli/vendor/src/components/navigation/command-bar.tsx +6 -0
- package/packages/cli/vendor/src/components/navigation/demo.tsx +0 -1
- package/packages/cli/vendor/src/components/navigation/nav-tabs.tsx +38 -29
- package/packages/cli/vendor/src/components/navigation/page-tabs.tsx +35 -23
- package/packages/cli/vendor/src/components/navigation/pagination.tsx +65 -31
- package/packages/cli/vendor/src/components/notifications/notification-center.tsx +64 -39
- package/packages/cli/vendor/src/components/notifications/toast.tsx +23 -21
- package/packages/cli/vendor/src/components/overlay/alert-dialog.tsx +1 -1
- package/packages/cli/vendor/src/components/overlay/confirm-dialog.tsx +45 -22
- package/packages/cli/vendor/src/components/overlay/drawer.tsx +18 -5
- package/packages/cli/vendor/src/components/ui/accordion/index.tsx +4 -0
- package/packages/cli/vendor/src/components/ui/badge/index.tsx +2 -1
- package/packages/cli/vendor/src/components/ui/button/index.tsx +11 -5
- package/packages/cli/vendor/src/components/ui/card/index.tsx +95 -25
- package/packages/cli/vendor/src/components/ui/dialog/index.tsx +2 -1
- package/packages/cli/vendor/src/components/ui/hover-card.tsx +54 -28
- package/packages/cli/vendor/src/components/ui/input/index.tsx +98 -0
- package/packages/cli/vendor/src/components/ui/popover/index.tsx +10 -8
- package/packages/cli/vendor/src/components/ui/radio-group/index.tsx +55 -6
- package/packages/cli/vendor/src/components/ui/right-click-menu/index.tsx +120 -9
- package/packages/cli/vendor/src/components/ui/segmented-control/index.tsx +29 -3
- package/packages/cli/vendor/src/components/ui/select/index.tsx +260 -34
- package/packages/cli/vendor/src/components/ui/switch/index.tsx +71 -6
- package/packages/cli/vendor/src/components/ui/tabs/index.tsx +22 -6
- package/packages/cli/vendor/src/components/ui/textarea/index.tsx +105 -15
- package/packages/cli/vendor/src/components/ui/textarea.tsx +2 -0
- package/packages/cli/vendor/src/components/ui/tooltip/index.tsx +67 -22
- package/packages/cli/vendor/src/components/upload/file-upload.tsx +120 -57
- package/packages/cli/vendor/src/components/upload/image-upload.tsx +71 -24
- package/packages/cli/vendor/src/public-component-surface.ts +3 -0
- package/packages/cli/vendor/src/showcase/component-api-schema.ts +79 -41
- package/packages/cli/vendor/src/showcase/create-demo.tsx +16 -15
- package/packages/cli/vendor/src/showcase/fallback.tsx +4 -19
- package/packages/cli/vendor/src/showcase/premium/alert/showcase.tsx +1 -0
- package/packages/cli/vendor/src/showcase/premium/app-sidebar/showcase.tsx +1 -0
- package/packages/cli/vendor/src/showcase/premium/badge/showcase.tsx +4 -2
- package/packages/cli/vendor/src/showcase/premium/badge/types.ts +1 -1
- package/packages/cli/vendor/src/showcase/premium/breadcrumbs/showcase.tsx +3 -1
- package/packages/cli/vendor/src/showcase/premium/button/mock.ts +2 -5
- package/packages/cli/vendor/src/showcase/premium/button/showcase.tsx +2 -2
- package/packages/cli/vendor/src/showcase/premium/card/showcase.tsx +26 -1
- package/packages/cli/vendor/src/showcase/premium/carousel/showcase.tsx +19 -3
- package/packages/cli/vendor/src/showcase/premium/command-bar/showcase.tsx +1 -1
- package/packages/cli/vendor/src/showcase/premium/data-table/mock.ts +26 -25
- package/packages/cli/vendor/src/showcase/premium/data-table/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/data-table-parts/showcase.tsx +3 -3
- package/packages/cli/vendor/src/showcase/premium/file-upload/showcase.tsx +21 -1
- package/packages/cli/vendor/src/showcase/premium/image-upload/showcase.tsx +4 -1
- package/packages/cli/vendor/src/showcase/premium/index.ts +0 -2
- package/packages/cli/vendor/src/showcase/premium/loading-state/showcase.tsx +1 -1
- package/packages/cli/vendor/src/showcase/premium/metric-grid/showcase.tsx +36 -4
- package/packages/cli/vendor/src/showcase/premium/notification-center/showcase.tsx +4 -3
- package/packages/cli/vendor/src/showcase/premium/page-state/showcase.tsx +1 -0
- package/packages/cli/vendor/src/showcase/premium/pagination/showcase.tsx +13 -1
- package/packages/cli/vendor/src/showcase/premium/popover/showcase.tsx +27 -11
- package/packages/cli/vendor/src/showcase/premium/radio-group/showcase.tsx +13 -1
- package/packages/cli/vendor/src/showcase/premium/right-click-menu/showcase.tsx +8 -5
- package/packages/cli/vendor/src/showcase/premium/segmented-control/showcase.tsx +1 -0
- package/packages/cli/vendor/src/showcase/premium/select/data.ts +12 -3
- package/packages/cli/vendor/src/showcase/premium/select/mock.ts +4 -4
- package/packages/cli/vendor/src/showcase/premium/select/showcase.tsx +35 -22
- package/packages/cli/vendor/src/showcase/premium/select/types.ts +3 -0
- package/packages/cli/vendor/src/showcase/premium/statistic/showcase.tsx +10 -1
- package/packages/cli/vendor/src/showcase/premium/switch/showcase.tsx +15 -6
- package/packages/cli/vendor/src/showcase/premium/tabs/showcase.tsx +48 -1
- package/packages/cli/vendor/src/showcase/premium/textarea/mock.ts +12 -4
- package/packages/cli/vendor/src/showcase/premium/textarea/showcase.tsx +5 -0
- package/packages/cli/vendor/src/showcase/premium/toast/showcase.tsx +17 -1
- package/packages/cli/vendor/src/showcase/premium/types.ts +1 -1
- package/packages/cli/vendor/src/showcase/registry-quality.ts +3 -2
- package/packages/cli/vendor/src/showcase/registry-specific.tsx +7 -8
- package/packages/cli/vendor/src/showcase/render-registry-preview.tsx +5 -21
- package/packages/cli/vendor/src/showcase/site-data.tsx +21 -15
- package/packages/cli/vendor/src/showcase/tembro-registry.json +42 -20
- package/packages/cli/vendor/src/showcase/types.ts +1 -1
- package/registry.json +18 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/feedback/loading-state.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=[`Loading metrics`,`Loading table`,`Loading details`,`Loading export`],s=[`Preparing dashboard widgets and chart data.`,`Fetching list rows with filters applied.`,`Waiting for content details from the API.`,`Generating a local export file.`];function c({mode:e}){let[c,l]=i.useState(0),[u,d]=i.useState(e===`playground`);return(0,a.jsxs)(`div`,{className:`space-y-5`,children:[(0,a.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,a.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,a.jsxs)(`div`,{className:`max-w-xl`,children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Pending work`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Loading state should explain what is happening`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`The label and description should tell the user which part of the page is waiting and why. Generic loading with no context is weak documentation.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Scoped loading`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Clear label`})]})]})}),e===`playground`?(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>d(e=>!e),children:u?`Hide secondary`:`Show secondary`}),o.map((e,n)=>(0,a.jsx)(t.Button,{size:`sm`,variant:c===n?`default`:`outline`,onClick:()=>l(n),children:e},e))]}):null,(0,a.jsx)(r.LoadingState,{label:o[c],description:s[c]}),u?(0,a.jsx)(r.LoadingState,{label:`${o[c]} (
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/feedback/loading-state.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=[`Loading metrics`,`Loading table`,`Loading details`,`Loading export`],s=[`Preparing dashboard widgets and chart data.`,`Fetching list rows with filters applied.`,`Waiting for content details from the API.`,`Generating a local export file.`];function c({mode:e}){let[c,l]=i.useState(0),[u,d]=i.useState(e===`playground`);return(0,a.jsxs)(`div`,{className:`space-y-5`,children:[(0,a.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,a.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,a.jsxs)(`div`,{className:`max-w-xl`,children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Pending work`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Loading state should explain what is happening`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`The label and description should tell the user which part of the page is waiting and why. Generic loading with no context is weak documentation.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Scoped loading`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Clear label`})]})]})}),e===`playground`?(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>d(e=>!e),children:u?`Hide secondary`:`Show secondary`}),o.map((e,n)=>(0,a.jsx)(t.Button,{size:`sm`,variant:c===n?`default`:`outline`,onClick:()=>l(n),children:e},e))]}):null,(0,a.jsx)(r.LoadingState,{label:o[c],description:s[c]}),u?(0,a.jsx)(r.LoadingState,{variant:`progress`,progress:68,label:`${o[c]} (progress)`,description:`This is a second loading area inside the same page.`}):null]})}exports.LoadingStateShowcase=c;
|
|
@@ -73,7 +73,9 @@ function c({ mode: c }) {
|
|
|
73
73
|
description: s[l]
|
|
74
74
|
}),
|
|
75
75
|
d ? /* @__PURE__ */ i(n, {
|
|
76
|
-
|
|
76
|
+
variant: "progress",
|
|
77
|
+
progress: 68,
|
|
78
|
+
label: `${o[l]} (progress)`,
|
|
77
79
|
description: "This is a second loading area inside the same page."
|
|
78
80
|
}) : null
|
|
79
81
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/display/metric-grid.cjs");let
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/display/metric-grid.cjs"),r=require("../../../components/charts/charts.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=[{key:`users`,label:`Users`,value:`2,410`,description:`Last 30 days`,tone:`success`,trend:`+12%`},{key:`revenue`,label:`Revenue`,value:`$132k`,description:`Compared with last month`,tone:`info`,trend:`+8.4%`},{key:`errors`,label:`Errors`,value:`3`,description:`Immediate follow up`,tone:`danger`},{key:`churn`,label:`Churn`,value:`1.8%`,description:`Within target`,tone:`warning`}],s=[2,3,4];function c({mode:e}){let[c,l]=i.useState(!1),[u,d]=i.useState(3);return(0,a.jsxs)(`div`,{className:`space-y-4`,children:[e===`playground`?(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(t.Button,{size:`sm`,variant:c?`outline`:`default`,onClick:()=>l(e=>!e),children:c?`Use spacious`:`Use compact`}),s.map(e=>(0,a.jsxs)(t.Button,{size:`sm`,variant:u===e?`default`:`outline`,onClick:()=>d(e),children:[e,` cols`]},e))]}):null,(0,a.jsx)(n.MetricGrid,{items:o,columns:u,compact:c}),(0,a.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,a.jsx)(r.ChartFrame,{title:`Category performance`,description:`Bar chart shares the same token palette.`,children:(0,a.jsx)(r.BarChart,{data:[{label:`CRM`,value:42},{label:`Finance`,value:31},{label:`Auth`,value:-8},{label:`Forms`,value:26}]})}),(0,a.jsx)(r.ChartFrame,{title:`Traffic split`,description:`Donut, legend and KPI blocks stay visually aligned.`,children:(0,a.jsxs)(`div`,{className:`grid justify-items-center gap-4`,children:[(0,a.jsx)(r.DonutChart,{centerValue:`68%`,centerLabel:`Usage`,data:[{label:`Dashboard`,value:42},{label:`Forms`,value:18},{label:`Reports`,value:8}]}),(0,a.jsx)(r.ChartLegend,{data:[{label:`Dashboard`,value:42},{label:`Forms`,value:18},{label:`Reports`,value:8}]})]})})]})]})}exports.MetricGridShowcase=c;
|
|
@@ -1,22 +1,25 @@
|
|
|
1
1
|
import { Button as e } from "../../../components/ui/button/index.js";
|
|
2
2
|
import { MetricGrid as t } from "../../../components/display/metric-grid.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import { BarChart as n, ChartFrame as r, ChartLegend as i, DonutChart as a } from "../../../components/charts/charts.js";
|
|
4
|
+
import * as o from "react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
6
|
//#region src/showcase/premium/metric-grid/showcase.tsx
|
|
6
|
-
var
|
|
7
|
+
var l = [
|
|
7
8
|
{
|
|
8
9
|
key: "users",
|
|
9
10
|
label: "Users",
|
|
10
11
|
value: "2,410",
|
|
11
12
|
description: "Last 30 days",
|
|
12
|
-
tone: "success"
|
|
13
|
+
tone: "success",
|
|
14
|
+
trend: "+12%"
|
|
13
15
|
},
|
|
14
16
|
{
|
|
15
17
|
key: "revenue",
|
|
16
18
|
label: "Revenue",
|
|
17
19
|
value: "$132k",
|
|
18
20
|
description: "Compared with last month",
|
|
19
|
-
tone: "info"
|
|
21
|
+
tone: "info",
|
|
22
|
+
trend: "+8.4%"
|
|
20
23
|
},
|
|
21
24
|
{
|
|
22
25
|
key: "errors",
|
|
@@ -32,34 +35,99 @@ var a = [
|
|
|
32
35
|
description: "Within target",
|
|
33
36
|
tone: "warning"
|
|
34
37
|
}
|
|
35
|
-
],
|
|
38
|
+
], u = [
|
|
36
39
|
2,
|
|
37
40
|
3,
|
|
38
41
|
4
|
|
39
42
|
];
|
|
40
|
-
function
|
|
41
|
-
let [
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
+
function d({ mode: d }) {
|
|
44
|
+
let [f, p] = o.useState(!1), [m, h] = o.useState(3);
|
|
45
|
+
return /* @__PURE__ */ c("div", {
|
|
43
46
|
className: "space-y-4",
|
|
44
|
-
children: [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
children: [
|
|
48
|
+
d === "playground" ? /* @__PURE__ */ c("div", {
|
|
49
|
+
className: "flex flex-wrap gap-2",
|
|
50
|
+
children: [/* @__PURE__ */ s(e, {
|
|
51
|
+
size: "sm",
|
|
52
|
+
variant: f ? "outline" : "default",
|
|
53
|
+
onClick: () => p((e) => !e),
|
|
54
|
+
children: f ? "Use spacious" : "Use compact"
|
|
55
|
+
}), u.map((t) => /* @__PURE__ */ c(e, {
|
|
56
|
+
size: "sm",
|
|
57
|
+
variant: m === t ? "default" : "outline",
|
|
58
|
+
onClick: () => h(t),
|
|
59
|
+
children: [t, " cols"]
|
|
60
|
+
}, t))]
|
|
61
|
+
}) : null,
|
|
62
|
+
/* @__PURE__ */ s(t, {
|
|
63
|
+
items: l,
|
|
64
|
+
columns: m,
|
|
65
|
+
compact: f
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ c("div", {
|
|
68
|
+
className: "grid gap-4 xl:grid-cols-2",
|
|
69
|
+
children: [/* @__PURE__ */ s(r, {
|
|
70
|
+
title: "Category performance",
|
|
71
|
+
description: "Bar chart shares the same token palette.",
|
|
72
|
+
children: /* @__PURE__ */ s(n, { data: [
|
|
73
|
+
{
|
|
74
|
+
label: "CRM",
|
|
75
|
+
value: 42
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "Finance",
|
|
79
|
+
value: 31
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
label: "Auth",
|
|
83
|
+
value: -8
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Forms",
|
|
87
|
+
value: 26
|
|
88
|
+
}
|
|
89
|
+
] })
|
|
90
|
+
}), /* @__PURE__ */ s(r, {
|
|
91
|
+
title: "Traffic split",
|
|
92
|
+
description: "Donut, legend and KPI blocks stay visually aligned.",
|
|
93
|
+
children: /* @__PURE__ */ c("div", {
|
|
94
|
+
className: "grid justify-items-center gap-4",
|
|
95
|
+
children: [/* @__PURE__ */ s(a, {
|
|
96
|
+
centerValue: "68%",
|
|
97
|
+
centerLabel: "Usage",
|
|
98
|
+
data: [
|
|
99
|
+
{
|
|
100
|
+
label: "Dashboard",
|
|
101
|
+
value: 42
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "Forms",
|
|
105
|
+
value: 18
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
label: "Reports",
|
|
109
|
+
value: 8
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}), /* @__PURE__ */ s(i, { data: [
|
|
113
|
+
{
|
|
114
|
+
label: "Dashboard",
|
|
115
|
+
value: 42
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
label: "Forms",
|
|
119
|
+
value: 18
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
label: "Reports",
|
|
123
|
+
value: 8
|
|
124
|
+
}
|
|
125
|
+
] })]
|
|
126
|
+
})
|
|
127
|
+
})]
|
|
128
|
+
})
|
|
129
|
+
]
|
|
62
130
|
});
|
|
63
131
|
}
|
|
64
132
|
//#endregion
|
|
65
|
-
export {
|
|
133
|
+
export { d as MetricGridShowcase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/badge/index.cjs"),n=require("../../../components/notifications/notification-center.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,o=[{id:`1`,title:`Invoice paid`,description:`Acme Growth settled invoice #2048.`,time:`2m ago`,read:!1},{id:`2`,title:`Deployment ready`,description:`Release candidate passed checks and waits for promotion.`,time:`12m ago`,read:!1},{id:`3`,title:`Member invited`,description:`Operations workspace access was sent to Dilshod.`,time:`1h ago`,read:!0}];function s({mode:e}){let[s,c]=r.useState(o),l=s.filter(e=>!e.read).length;return(0,i.jsxs)(`div`,{className:`space-y-5`,children:[(0,i.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,i.jsxs)(`div`,{className:`max-w-xl`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Header utility`}),(0,i.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`NotificationCenter should summarize recent action without becoming a second inbox`}),(0,i.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`This control works when unread counts are honest and the list stays short, recent, and directly actionable.`})]}),(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Unread count`}),(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Popover feed`})]})]})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Live notification trigger`}),(0,i.jsx)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:`Open the bell and inspect unread items.`})]}),(0,i.jsx)(n.NotificationCenter,{notifications:s,onMarkAllRead:()=>c(e=>e.map(e=>({...e,read:!0}))),onNotificationClick:e=>c(t=>t.map(t=>t.id===e.id?{...t,read:!0}:t))})]})}),(0,i.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Unread items`}),(0,i.jsx)(`p`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:l})]}),(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Usage note`}),(0,i.jsx)(`p`,{className:`mt-3 text-sm leading-6 aui-text-muted`,children:`Put only high-signal events here. If users need filters, threads, or archives, that usually means they need a dedicated notifications route.`})]})]}),e===`playground`?(0,i.jsx)(`section`,{className:a,children:(0,i.jsx)(`p`,{className:`text-sm aui-text-muted`,children:"Bell ichidagi itemga bosilsa read bo‘ladi, `Mark all read` esa hammasini tozalaydi."})}):null]})}exports.NotificationCenterShowcase=s;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/badge/index.cjs"),n=require("../../../components/notifications/notification-center.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,o=[{id:`1`,title:`Invoice paid`,description:`Acme Growth settled invoice #2048.`,time:`2m ago`,read:!1,group:`Today`},{id:`2`,title:`Deployment ready`,description:`Release candidate passed checks and waits for promotion.`,time:`12m ago`,read:!1,group:`Today`},{id:`3`,title:`Member invited`,description:`Operations workspace access was sent to Dilshod.`,time:`1h ago`,read:!0,group:`Earlier`}];function s({mode:e}){let[s,c]=r.useState(o),l=s.filter(e=>!e.read).length;return(0,i.jsxs)(`div`,{className:`space-y-5`,children:[(0,i.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,i.jsxs)(`div`,{className:`max-w-xl`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Header utility`}),(0,i.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`NotificationCenter should summarize recent action without becoming a second inbox`}),(0,i.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`This control works when unread counts are honest and the list stays short, recent, and directly actionable.`})]}),(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Unread count`}),(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Popover feed`})]})]})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Live notification trigger`}),(0,i.jsx)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:`Open the bell and inspect unread items.`})]}),(0,i.jsx)(n.NotificationCenter,{notifications:s,onMarkAllRead:()=>c(e=>e.map(e=>({...e,read:!0}))),onClearAll:()=>c([]),onNotificationClick:e=>c(t=>t.map(t=>t.id===e.id?{...t,read:!0}:t))})]})}),(0,i.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Unread items`}),(0,i.jsx)(`p`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:l})]}),(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Usage note`}),(0,i.jsx)(`p`,{className:`mt-3 text-sm leading-6 aui-text-muted`,children:`Put only high-signal events here. If users need filters, threads, or archives, that usually means they need a dedicated notifications route.`})]})]}),e===`playground`?(0,i.jsx)(`section`,{className:a,children:(0,i.jsx)(`p`,{className:`text-sm aui-text-muted`,children:"Bell ichidagi itemga bosilsa read bo‘ladi, `Mark all read` esa hammasini tozalaydi."})}):null]})}exports.NotificationCenterShowcase=s;
|
|
@@ -9,21 +9,24 @@ var a = "rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(-
|
|
|
9
9
|
title: "Invoice paid",
|
|
10
10
|
description: "Acme Growth settled invoice #2048.",
|
|
11
11
|
time: "2m ago",
|
|
12
|
-
read: !1
|
|
12
|
+
read: !1,
|
|
13
|
+
group: "Today"
|
|
13
14
|
},
|
|
14
15
|
{
|
|
15
16
|
id: "2",
|
|
16
17
|
title: "Deployment ready",
|
|
17
18
|
description: "Release candidate passed checks and waits for promotion.",
|
|
18
19
|
time: "12m ago",
|
|
19
|
-
read: !1
|
|
20
|
+
read: !1,
|
|
21
|
+
group: "Today"
|
|
20
22
|
},
|
|
21
23
|
{
|
|
22
24
|
id: "3",
|
|
23
25
|
title: "Member invited",
|
|
24
26
|
description: "Operations workspace access was sent to Dilshod.",
|
|
25
27
|
time: "1h ago",
|
|
26
|
-
read: !0
|
|
28
|
+
read: !0,
|
|
29
|
+
group: "Earlier"
|
|
27
30
|
}
|
|
28
31
|
];
|
|
29
32
|
function s({ mode: s }) {
|
|
@@ -81,6 +84,7 @@ function s({ mode: s }) {
|
|
|
81
84
|
...e,
|
|
82
85
|
read: !0
|
|
83
86
|
}))),
|
|
87
|
+
onClearAll: () => l([]),
|
|
84
88
|
onNotificationClick: (e) => l((t) => t.map((t) => t.id === e.id ? {
|
|
85
89
|
...t,
|
|
86
90
|
read: !0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/feedback/page-state.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,s=[`empty`,`loading`,`error`,`success`,`info`];function c({mode:e}){let[c,l]=i.useState(2),u=s[c]??`error`;return(0,a.jsxs)(`div`,{className:`space-y-5`,children:[(0,a.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,a.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,a.jsxs)(`div`,{className:`max-w-xl`,children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Route feedback`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`PageState should explain the route outcome immediately`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`When the page is empty, blocked, loading, or complete, the user should understand what happened and what to do next in one glance.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Route-level`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Outcome first`})]})]})}),(0,a.jsx)(r.PageState,{tone:u,title:u===`empty`?`No invoices found`:u===`loading`?`Preparing workspace`:u===`error`?`Connection failed`:u===`success`?`Workspace connected`:`Sync started`,description:u===`empty`?`Create the first invoice to unlock exports, reminders, and payment tracking.`:u===`loading`?`We are syncing permissions and bringing the latest workspace data into this route.`:u===`error`?`We could not sync workspace usage. Retry after restoring the API token.`:u===`success`?`The workspace is ready and the team can continue with the next operational step.`:`Background sync is running. You can keep working while updates are processed.`,action:u===`loading`?void 0:(0,a.jsx)(t.Button,{variant:u===`error`?`outline`:`default`,children:u===`empty`?`Create invoice`:u===`error`?`Retry sync`:u===`success`?`Open dashboard`:`View progress`})}),e===`playground`?(0,a.jsx)(`section`,{className:o,children:(0,a.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:s.map((e,n)=>(0,a.jsx)(t.Button,{size:`sm`,variant:c===n?`default`:`outline`,onClick:()=>l(n),children:e},e))})}):null]})}exports.PageStateShowcase=c;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/feedback/page-state.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,s=[`empty`,`loading`,`error`,`success`,`info`];function c({mode:e}){let[c,l]=i.useState(2),u=s[c]??`error`;return(0,a.jsxs)(`div`,{className:`space-y-5`,children:[(0,a.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,a.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,a.jsxs)(`div`,{className:`max-w-xl`,children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Route feedback`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`PageState should explain the route outcome immediately`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`When the page is empty, blocked, loading, or complete, the user should understand what happened and what to do next in one glance.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Route-level`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Outcome first`})]})]})}),(0,a.jsx)(r.PageState,{tone:u,title:u===`empty`?`No invoices found`:u===`loading`?`Preparing workspace`:u===`error`?`Connection failed`:u===`success`?`Workspace connected`:`Sync started`,description:u===`empty`?`Create the first invoice to unlock exports, reminders, and payment tracking.`:u===`loading`?`We are syncing permissions and bringing the latest workspace data into this route.`:u===`error`?`We could not sync workspace usage. Retry after restoring the API token.`:u===`success`?`The workspace is ready and the team can continue with the next operational step.`:`Background sync is running. You can keep working while updates are processed.`,action:u===`loading`?void 0:(0,a.jsx)(t.Button,{variant:u===`error`?`outline`:`default`,children:u===`empty`?`Create invoice`:u===`error`?`Retry sync`:u===`success`?`Open dashboard`:`View progress`}),extra:u===`error`?(0,a.jsx)(t.Button,{variant:`ghost`,children:`Open logs`}):void 0}),e===`playground`?(0,a.jsx)(`section`,{className:o,children:(0,a.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:s.map((e,n)=>(0,a.jsx)(t.Button,{size:`sm`,variant:c===n?`default`:`outline`,onClick:()=>l(n),children:e},e))})}):null]})}exports.PageStateShowcase=c;
|
|
@@ -57,7 +57,11 @@ function c({ mode: c }) {
|
|
|
57
57
|
action: d === "loading" ? void 0 : /* @__PURE__ */ i(e, {
|
|
58
58
|
variant: d === "error" ? "outline" : "default",
|
|
59
59
|
children: d === "empty" ? "Create invoice" : d === "error" ? "Retry sync" : d === "success" ? "Open dashboard" : "View progress"
|
|
60
|
-
})
|
|
60
|
+
}),
|
|
61
|
+
extra: d === "error" ? /* @__PURE__ */ i(e, {
|
|
62
|
+
variant: "ghost",
|
|
63
|
+
children: "Open logs"
|
|
64
|
+
}) : void 0
|
|
61
65
|
}),
|
|
62
66
|
c === "playground" ? /* @__PURE__ */ i("section", {
|
|
63
67
|
className: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/badge/index.cjs"),n=require("../../../components/navigation/pagination.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`;function o({mode:e}){let[o,s]=r.useState(6),[c,l]=r.useState(18),[u,d]=r.useState(!0);return(0,i.jsxs)(`div`,{className:`space-y-5`,children:[(0,i.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,i.jsxs)(`div`,{className:`max-w-xl`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Navigation control`}),(0,i.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Pagination should preserve context while moving through data`}),(0,i.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`Good pagination feels quiet: the active page is obvious, edge jumps are available, and large datasets collapse into readable ellipsis states.`})]}),(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Controlled`}),(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Large lists`})]})]})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Review queue pages`}),(0,i.jsxs)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:[`Showing page `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:o}),` of `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:c}),`.`]})]}),(0,i.jsx)(n.Pagination,{page:o,pageCount:c,onPageChange:s,showEdges:u})]})}),(0,i.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Why this matters`}),(0,i.jsxs)(`div`,{className:`mt-4 space-y-3 text-sm leading-6 aui-text-muted`,children:[(0,i.jsx)(`p`,{children:`Tables, audit trails, and inboxes all need stable navigation that does not compete with the data itself.`}),(0,i.jsx)(`p`,{children:`Ellipsis should reduce noise, not hide where the user currently is.`})]})]}),(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Current demo state`}),(0,i.jsxs)(`div`,{className:`mt-4 space-y-2 text-sm leading-6 aui-text-muted`,children:[(0,i.jsxs)(`p`,{children:[`Page: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:o})]}),(0,i.jsxs)(`p`,{children:[`Total pages: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:c})]}),(0,i.jsxs)(`p`,{children:[`Edges: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:u?`visible`:`hidden`})]})]})]})]}),e===`playground`?(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>s(Math.max(1,o-1)),children:`Previous page`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>s(Math.min(c,o+1)),children:`Next page`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>d(e=>!e),children:`Toggle edges`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>l(e=>e===18?8:18),children:`Toggle page count`})]})}):null]})}exports.PaginationShowcase=o;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/badge/index.cjs"),n=require("../../../components/navigation/pagination.cjs");let r=require("react");r=e.__toESM(r,1);let i=require("react/jsx-runtime");var a=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`;function o({mode:e}){let[o,s]=r.useState(6),[c,l]=r.useState(18),[u,d]=r.useState(!0),[f,p]=r.useState(20);return(0,i.jsxs)(`div`,{className:`space-y-5`,children:[(0,i.jsx)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,i.jsxs)(`div`,{className:`max-w-xl`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Navigation control`}),(0,i.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Pagination should preserve context while moving through data`}),(0,i.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`Good pagination feels quiet: the active page is obvious, edge jumps are available, and large datasets collapse into readable ellipsis states.`})]}),(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Controlled`}),(0,i.jsx)(t.Badge,{variant:`outline`,className:`rounded-full`,children:`Large lists`})]})]})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Review queue pages`}),(0,i.jsxs)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:[`Showing page `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:o}),` of `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:c}),`.`]})]}),(0,i.jsx)(n.Pagination,{page:o,pageCount:c,onPageChange:s,showEdges:u,totalCount:c*f,pageSize:f,pageSizeOptions:[10,20,50],onPageSizeChange:p,showSummary:!0})]})}),(0,i.jsxs)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:[(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Why this matters`}),(0,i.jsxs)(`div`,{className:`mt-4 space-y-3 text-sm leading-6 aui-text-muted`,children:[(0,i.jsx)(`p`,{children:`Tables, audit trails, and inboxes all need stable navigation that does not compete with the data itself.`}),(0,i.jsx)(`p`,{children:`Ellipsis should reduce noise, not hide where the user currently is.`})]})]}),(0,i.jsxs)(`section`,{className:a,children:[(0,i.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Current demo state`}),(0,i.jsxs)(`div`,{className:`mt-4 space-y-2 text-sm leading-6 aui-text-muted`,children:[(0,i.jsxs)(`p`,{children:[`Page: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:o})]}),(0,i.jsxs)(`p`,{children:[`Total pages: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:c})]}),(0,i.jsxs)(`p`,{children:[`Page size: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:f})]}),(0,i.jsxs)(`p`,{children:[`Edges: `,(0,i.jsx)(`span`,{className:`font-medium aui-text-strong`,children:u?`visible`:`hidden`})]})]})]})]}),e===`playground`?(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>s(Math.max(1,o-1)),children:`Previous page`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>s(Math.min(c,o+1)),children:`Next page`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>d(e=>!e),children:`Toggle edges`}),(0,i.jsx)(`button`,{type:`button`,className:`rounded-full border border-[color:var(--aui-divider)] px-3 py-2 text-sm`,onClick:()=>l(e=>e===18?8:18),children:`Toggle page count`})]})}):null]})}exports.PaginationShowcase=o;
|
|
@@ -5,7 +5,7 @@ import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
|
5
5
|
//#region src/showcase/premium/pagination/showcase.tsx
|
|
6
6
|
var a = "rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5";
|
|
7
7
|
function o({ mode: o }) {
|
|
8
|
-
let [s, c] = n.useState(6), [l, u] = n.useState(18), [d, f] = n.useState(!0);
|
|
8
|
+
let [s, c] = n.useState(6), [l, u] = n.useState(18), [d, f] = n.useState(!0), [p, m] = n.useState(20);
|
|
9
9
|
return /* @__PURE__ */ i("div", {
|
|
10
10
|
className: "space-y-5",
|
|
11
11
|
children: [
|
|
@@ -69,7 +69,16 @@ function o({ mode: o }) {
|
|
|
69
69
|
page: s,
|
|
70
70
|
pageCount: l,
|
|
71
71
|
onPageChange: c,
|
|
72
|
-
showEdges: d
|
|
72
|
+
showEdges: d,
|
|
73
|
+
totalCount: l * p,
|
|
74
|
+
pageSize: p,
|
|
75
|
+
pageSizeOptions: [
|
|
76
|
+
10,
|
|
77
|
+
20,
|
|
78
|
+
50
|
|
79
|
+
],
|
|
80
|
+
onPageSizeChange: m,
|
|
81
|
+
showSummary: !0
|
|
73
82
|
})]
|
|
74
83
|
})
|
|
75
84
|
}),
|
|
@@ -100,6 +109,10 @@ function o({ mode: o }) {
|
|
|
100
109
|
className: "font-medium aui-text-strong",
|
|
101
110
|
children: l
|
|
102
111
|
})] }),
|
|
112
|
+
/* @__PURE__ */ i("p", { children: ["Page size: ", /* @__PURE__ */ r("span", {
|
|
113
|
+
className: "font-medium aui-text-strong",
|
|
114
|
+
children: p
|
|
115
|
+
})] }),
|
|
103
116
|
/* @__PURE__ */ i("p", { children: ["Edges: ", /* @__PURE__ */ r("span", {
|
|
104
117
|
className: "font-medium aui-text-strong",
|
|
105
118
|
children: d ? "visible" : "hidden"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../components/ui/button/index.cjs"),t=require("../../../components/ui/
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../components/ui/button/index.cjs"),t=require("../../../components/ui/input/index.cjs"),n=require("../../../components/ui/popover/index.cjs"),r=require("./data.cjs");let i=require("react/jsx-runtime");var a=`border-t border-[color:var(--aui-divider)] py-6`;function o(){return(0,i.jsxs)(`div`,{className:`space-y-0`,children:[(0,i.jsx)(`section`,{className:`pb-6`,children:(0,i.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-end xl:justify-between`,children:[(0,i.jsxs)(`div`,{className:`max-w-xl`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Popover`}),(0,i.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Keep it short and contextual`}),(0,i.jsx)(`p`,{className:`mt-3 text-sm leading-6 aui-text-muted`,children:`Popover should add nearby context, not replace the page or become a hidden modal.`})]}),(0,i.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3 xl:min-w-[360px] xl:max-w-[420px]`,children:[(0,i.jsxs)(`div`,{className:`rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted`,children:`Examples`}),(0,i.jsx)(`p`,{className:`mt-2 text-lg font-semibold aui-text-strong`,children:r.popoverDemoItems.length})]}),(0,i.jsxs)(`div`,{className:`rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted`,children:`Use for`}),(0,i.jsx)(`p`,{className:`mt-2 text-lg font-semibold aui-text-strong`,children:`Short help`})]}),(0,i.jsxs)(`div`,{className:`rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3`,children:[(0,i.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted`,children:`Avoid for`}),(0,i.jsx)(`p`,{className:`mt-2 text-lg font-semibold aui-text-strong`,children:`Full flows`})]})]})]})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsx)(`div`,{className:`grid gap-4 xl:grid-cols-3`,children:r.popoverDemoItems.map(t=>(0,i.jsxs)(`div`,{className:`rounded-[20px] border border-[color:var(--aui-divider)] px-4 py-4`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-sm font-semibold aui-text-strong`,children:t.title}),(0,i.jsx)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:t.description})]}),(0,i.jsx)(`div`,{className:`mt-4`,children:(0,i.jsxs)(n.Popover,{children:[(0,i.jsx)(n.PopoverTrigger,{render:(0,i.jsx)(e.Button,{variant:t.variant}),children:t.label}),(0,i.jsx)(n.PopoverContent,{children:(0,i.jsxs)(n.PopoverHeader,{children:[(0,i.jsx)(n.PopoverTitle,{children:t.title}),(0,i.jsx)(n.PopoverDescription,{children:t.description})]})})]})})]},t.label))})}),(0,i.jsx)(`section`,{className:a,children:(0,i.jsxs)(`div`,{className:`grid gap-5 xl:grid-cols-[0.85fr_1.15fr]`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`text-lg font-semibold aui-text-strong`,children:`Inline settings form`}),(0,i.jsx)(`p`,{className:`mt-2 max-w-xl text-sm leading-6 aui-text-muted`,children:`Short forms fit when they change a local view and can be dismissed without losing page context.`})]}),(0,i.jsx)(`div`,{className:`flex justify-start xl:justify-end`,children:(0,i.jsxs)(n.Popover,{children:[(0,i.jsx)(n.PopoverTrigger,{render:(0,i.jsx)(e.Button,{variant:`outline`}),children:`Edit workspace`}),(0,i.jsxs)(n.PopoverContent,{align:`end`,collisionPadding:16,children:[(0,i.jsxs)(n.PopoverHeader,{children:[(0,i.jsx)(n.PopoverTitle,{children:`Workspace details`}),(0,i.jsx)(n.PopoverDescription,{children:`Update the label used in local navigation.`})]}),(0,i.jsxs)(`div`,{className:`grid gap-3`,children:[(0,i.jsx)(t.Input,{"aria-label":`Workspace name`,defaultValue:`Growth analytics`}),(0,i.jsx)(t.Input,{"aria-label":`Workspace slug`,defaultValue:`growth`})]}),(0,i.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,i.jsx)(e.Button,{type:`button`,variant:`secondary`,size:`sm`,children:`Cancel`}),(0,i.jsx)(e.Button,{type:`button`,size:`sm`,children:`Save`})]})]})]})})]})})]})}exports.PopoverShowcase=o;
|
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
import { Button as e } from "../../../components/ui/button/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { Input as t } from "../../../components/ui/input/index.js";
|
|
3
|
+
import { Popover as n, PopoverContent as r, PopoverDescription as i, PopoverHeader as a, PopoverTitle as o, PopoverTrigger as s } from "../../../components/ui/popover/index.js";
|
|
4
|
+
import { popoverDemoItems as c } from "./data.js";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
6
|
//#region src/showcase/premium/popover/showcase.tsx
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
var d = "border-t border-[color:var(--aui-divider)] py-6";
|
|
8
|
+
function f() {
|
|
9
|
+
return /* @__PURE__ */ u("div", {
|
|
9
10
|
className: "space-y-0",
|
|
10
11
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
+
/* @__PURE__ */ l("section", {
|
|
12
13
|
className: "pb-6",
|
|
13
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ u("div", {
|
|
14
15
|
className: "flex flex-col gap-6 xl:flex-row xl:items-end xl:justify-between",
|
|
15
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ u("div", {
|
|
16
17
|
className: "max-w-xl",
|
|
17
18
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
+
/* @__PURE__ */ l("p", {
|
|
19
20
|
className: "text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted",
|
|
20
21
|
children: "Popover"
|
|
21
22
|
}),
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ l("h3", {
|
|
23
24
|
className: "mt-3 text-2xl font-semibold tracking-tight aui-text-strong",
|
|
24
25
|
children: "Keep it short and contextual"
|
|
25
26
|
}),
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
+
/* @__PURE__ */ l("p", {
|
|
27
28
|
className: "mt-3 text-sm leading-6 aui-text-muted",
|
|
28
29
|
children: "Popover should add nearby context, not replace the page or become a hidden modal."
|
|
29
30
|
})
|
|
30
31
|
]
|
|
31
|
-
}), /* @__PURE__ */
|
|
32
|
+
}), /* @__PURE__ */ u("div", {
|
|
32
33
|
className: "grid gap-3 sm:grid-cols-3 xl:min-w-[360px] xl:max-w-[420px]",
|
|
33
34
|
children: [
|
|
34
|
-
/* @__PURE__ */
|
|
35
|
+
/* @__PURE__ */ u("div", {
|
|
35
36
|
className: "rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
37
|
+
children: [/* @__PURE__ */ l("p", {
|
|
37
38
|
className: "text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted",
|
|
38
39
|
children: "Examples"
|
|
39
|
-
}), /* @__PURE__ */
|
|
40
|
+
}), /* @__PURE__ */ l("p", {
|
|
40
41
|
className: "mt-2 text-lg font-semibold aui-text-strong",
|
|
41
|
-
children:
|
|
42
|
+
children: c.length
|
|
42
43
|
})]
|
|
43
44
|
}),
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ u("div", {
|
|
45
46
|
className: "rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3",
|
|
46
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ l("p", {
|
|
47
48
|
className: "text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted",
|
|
48
49
|
children: "Use for"
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ l("p", {
|
|
50
51
|
className: "mt-2 text-lg font-semibold aui-text-strong",
|
|
51
52
|
children: "Short help"
|
|
52
53
|
})]
|
|
53
54
|
}),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ u("div", {
|
|
55
56
|
className: "rounded-[18px] border border-[color:var(--aui-divider)] px-4 py-3",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
57
|
+
children: [/* @__PURE__ */ l("p", {
|
|
57
58
|
className: "text-xs font-semibold uppercase tracking-[0.22em] aui-text-muted",
|
|
58
59
|
children: "Avoid for"
|
|
59
|
-
}), /* @__PURE__ */
|
|
60
|
+
}), /* @__PURE__ */ l("p", {
|
|
60
61
|
className: "mt-2 text-lg font-semibold aui-text-strong",
|
|
61
62
|
children: "Full flows"
|
|
62
63
|
})]
|
|
@@ -65,44 +66,78 @@ function d() {
|
|
|
65
66
|
})]
|
|
66
67
|
})
|
|
67
68
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
className:
|
|
70
|
-
children: /* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ l("section", {
|
|
70
|
+
className: d,
|
|
71
|
+
children: /* @__PURE__ */ l("div", {
|
|
71
72
|
className: "grid gap-4 xl:grid-cols-3",
|
|
72
|
-
children:
|
|
73
|
+
children: c.map((t) => /* @__PURE__ */ u("div", {
|
|
73
74
|
className: "rounded-[20px] border border-[color:var(--aui-divider)] px-4 py-4",
|
|
74
|
-
children: [/* @__PURE__ */
|
|
75
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
|
|
75
76
|
className: "text-sm font-semibold aui-text-strong",
|
|
76
|
-
children:
|
|
77
|
-
}), /* @__PURE__ */
|
|
77
|
+
children: t.title
|
|
78
|
+
}), /* @__PURE__ */ l("p", {
|
|
78
79
|
className: "mt-2 text-sm leading-6 aui-text-muted",
|
|
79
|
-
children:
|
|
80
|
-
})] }), /* @__PURE__ */
|
|
80
|
+
children: t.description
|
|
81
|
+
})] }), /* @__PURE__ */ l("div", {
|
|
81
82
|
className: "mt-4",
|
|
82
|
-
children: /* @__PURE__ */
|
|
83
|
-
render: /* @__PURE__ */
|
|
84
|
-
children:
|
|
85
|
-
}), /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(s, {
|
|
84
|
+
render: /* @__PURE__ */ l(e, { variant: t.variant }),
|
|
85
|
+
children: t.label
|
|
86
|
+
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, { children: t.title }), /* @__PURE__ */ l(i, { children: t.description })] }) })] })
|
|
86
87
|
})]
|
|
87
|
-
},
|
|
88
|
+
}, t.label))
|
|
88
89
|
})
|
|
89
90
|
}),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
className:
|
|
92
|
-
children: /* @__PURE__ */
|
|
93
|
-
className: "
|
|
94
|
-
children: [
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
91
|
+
/* @__PURE__ */ l("section", {
|
|
92
|
+
className: d,
|
|
93
|
+
children: /* @__PURE__ */ u("div", {
|
|
94
|
+
className: "grid gap-5 xl:grid-cols-[0.85fr_1.15fr]",
|
|
95
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("p", {
|
|
96
|
+
className: "text-lg font-semibold aui-text-strong",
|
|
97
|
+
children: "Inline settings form"
|
|
98
|
+
}), /* @__PURE__ */ l("p", {
|
|
99
|
+
className: "mt-2 max-w-xl text-sm leading-6 aui-text-muted",
|
|
100
|
+
children: "Short forms fit when they change a local view and can be dismissed without losing page context."
|
|
101
|
+
})] }), /* @__PURE__ */ l("div", {
|
|
102
|
+
className: "flex justify-start xl:justify-end",
|
|
103
|
+
children: /* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(s, {
|
|
104
|
+
render: /* @__PURE__ */ l(e, { variant: "outline" }),
|
|
105
|
+
children: "Edit workspace"
|
|
106
|
+
}), /* @__PURE__ */ u(r, {
|
|
107
|
+
align: "end",
|
|
108
|
+
collisionPadding: 16,
|
|
109
|
+
children: [
|
|
110
|
+
/* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, { children: "Workspace details" }), /* @__PURE__ */ l(i, { children: "Update the label used in local navigation." })] }),
|
|
111
|
+
/* @__PURE__ */ u("div", {
|
|
112
|
+
className: "grid gap-3",
|
|
113
|
+
children: [/* @__PURE__ */ l(t, {
|
|
114
|
+
"aria-label": "Workspace name",
|
|
115
|
+
defaultValue: "Growth analytics"
|
|
116
|
+
}), /* @__PURE__ */ l(t, {
|
|
117
|
+
"aria-label": "Workspace slug",
|
|
118
|
+
defaultValue: "growth"
|
|
119
|
+
})]
|
|
120
|
+
}),
|
|
121
|
+
/* @__PURE__ */ u("div", {
|
|
122
|
+
className: "flex justify-end gap-2",
|
|
123
|
+
children: [/* @__PURE__ */ l(e, {
|
|
124
|
+
type: "button",
|
|
125
|
+
variant: "secondary",
|
|
126
|
+
size: "sm",
|
|
127
|
+
children: "Cancel"
|
|
128
|
+
}), /* @__PURE__ */ l(e, {
|
|
129
|
+
type: "button",
|
|
130
|
+
size: "sm",
|
|
131
|
+
children: "Save"
|
|
132
|
+
})]
|
|
133
|
+
})
|
|
134
|
+
]
|
|
135
|
+
})] })
|
|
136
|
+
})]
|
|
102
137
|
})
|
|
103
138
|
})
|
|
104
139
|
]
|
|
105
140
|
});
|
|
106
141
|
}
|
|
107
142
|
//#endregion
|
|
108
|
-
export {
|
|
143
|
+
export { f as PopoverShowcase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/ui/radio-group/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,s=[{value:`starter`,label:`Starter`,description:`Good for single workspace setup.`},{value:`growth`,label:`Growth`,description:`Adds more seats and team workflows.`},{value:`enterprise`,label:`Enterprise`,description:`Advanced controls and support
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_virtual/_rolldown/runtime.cjs"),t=require("../../../components/ui/button/index.cjs"),n=require("../../../components/ui/badge/index.cjs"),r=require("../../../components/ui/radio-group/index.cjs");let i=require("react");i=e.__toESM(i,1);let a=require("react/jsx-runtime");var o=`rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5`,s=[{value:`starter`,label:`Starter`,description:`Good for single workspace setup.`},{value:`growth`,label:`Growth`,description:`Adds more seats and team workflows.`},{value:`enterprise`,label:`Enterprise`,description:`Advanced controls and support.`,disabled:!0}];function c(){let[e,c]=i.useState(`growth`);return(0,a.jsxs)(`div`,{className:`space-y-5`,children:[(0,a.jsxs)(`section`,{className:`rounded-[24px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5 sm:p-6`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-6 xl:flex-row xl:items-start xl:justify-between`,children:[(0,a.jsxs)(`div`,{className:`max-w-xl`,children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.26em] aui-text-muted`,children:`Single choice`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Radio group should make one active choice obvious`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`Keep all options visible when users should compare them before selecting one final answer.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Visible choices`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Single answer`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Controlled`})]})]}),(0,a.jsxs)(`div`,{className:`mt-6 grid gap-4 xl:grid-cols-[1.05fr_0.95fr]`,children:[(0,a.jsxs)(`div`,{className:o,children:[(0,a.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Workspace plan`}),(0,a.jsx)(`div`,{className:`mt-3`,children:(0,a.jsx)(r.RadioGroup,{value:e,onValueChange:c,options:s.map(e=>({...e}))})})]}),(0,a.jsxs)(`div`,{className:o,children:[(0,a.jsx)(`p`,{className:`text-sm font-medium aui-text-muted`,children:`Selection summary`}),(0,a.jsx)(`p`,{className:`mt-3 text-lg font-semibold aui-text-strong`,children:s.find(t=>t.value===e)?.label}),(0,a.jsx)(`p`,{className:`mt-2 text-sm leading-6 aui-text-muted`,children:s.find(t=>t.value===e)?.description})]})]})]}),(0,a.jsxs)(`section`,{className:o,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between`,children:[(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`p`,{className:`text-xs font-semibold uppercase tracking-[0.24em] aui-text-muted`,children:`Live state`}),(0,a.jsxs)(`h4`,{className:`mt-2 text-lg font-semibold aui-text-strong`,children:[`Current plan: `,e]})]}),(0,a.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:s.map(n=>(0,a.jsx)(t.Button,{type:`button`,size:`sm`,variant:e===n.value?`default`:`secondary`,onClick:()=>c(n.value),children:n.label},n.value))})]}),(0,a.jsx)(`div`,{className:`mt-5`,children:(0,a.jsx)(r.RadioGroup,{invalid:!0,defaultValue:`card`,orientation:`horizontal`,options:[{value:`card`,label:`Card`},{value:`bank`,label:`Bank`},{value:`invoice`,label:`Invoice`,disabled:!0}]})})]})]})}exports.RadioGroupShowcase=c;
|
|
@@ -18,7 +18,8 @@ var o = "rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(-
|
|
|
18
18
|
{
|
|
19
19
|
value: "enterprise",
|
|
20
20
|
label: "Enterprise",
|
|
21
|
-
description: "Advanced controls and support."
|
|
21
|
+
description: "Advanced controls and support.",
|
|
22
|
+
disabled: !0
|
|
22
23
|
}
|
|
23
24
|
];
|
|
24
25
|
function c() {
|
|
@@ -98,9 +99,9 @@ function c() {
|
|
|
98
99
|
]
|
|
99
100
|
})]
|
|
100
101
|
})]
|
|
101
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ a("section", {
|
|
102
103
|
className: o,
|
|
103
|
-
children: /* @__PURE__ */ a("div", {
|
|
104
|
+
children: [/* @__PURE__ */ a("div", {
|
|
104
105
|
className: "flex flex-col gap-5 lg:flex-row lg:items-center lg:justify-between",
|
|
105
106
|
children: [/* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("p", {
|
|
106
107
|
className: "text-xs font-semibold uppercase tracking-[0.24em] aui-text-muted",
|
|
@@ -118,7 +119,29 @@ function c() {
|
|
|
118
119
|
children: t.label
|
|
119
120
|
}, t.value))
|
|
120
121
|
})]
|
|
121
|
-
})
|
|
122
|
+
}), /* @__PURE__ */ i("div", {
|
|
123
|
+
className: "mt-5",
|
|
124
|
+
children: /* @__PURE__ */ i(n, {
|
|
125
|
+
invalid: !0,
|
|
126
|
+
defaultValue: "card",
|
|
127
|
+
orientation: "horizontal",
|
|
128
|
+
options: [
|
|
129
|
+
{
|
|
130
|
+
value: "card",
|
|
131
|
+
label: "Card"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
value: "bank",
|
|
135
|
+
label: "Bank"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: "invoice",
|
|
139
|
+
label: "Invoice",
|
|
140
|
+
disabled: !0
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
})
|
|
144
|
+
})]
|
|
122
145
|
})]
|
|
123
146
|
});
|
|
124
147
|
}
|