tembro 2.0.6 → 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-toolbar.cjs +1 -1
- package/dist/components/data-table/data-table-toolbar.js +12 -13
- package/dist/components/display/carousel.cjs +1 -1
- package/dist/components/display/carousel.d.ts +9 -1
- package/dist/components/display/carousel.js +123 -81
- 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/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.js +2 -0
- package/dist/components/form/form-select.cjs +1 -1
- package/dist/components/form/form-select.js +2 -0
- 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/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/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.d.ts +1 -1
- 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 +8 -1
- package/dist/components/ui/select/index.js +40 -35
- 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/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/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 +19 -6
- 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 +43 -18
- 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/render-registry-preview.cjs +1 -1
- package/dist/showcase/render-registry-preview.js +57 -79
- 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-toolbar.tsx +8 -6
- package/packages/cli/vendor/src/components/display/carousel.tsx +84 -3
- 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/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 +2 -0
- package/packages/cli/vendor/src/components/form/form-select.tsx +2 -0
- 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/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/dialog/index.tsx +2 -1
- package/packages/cli/vendor/src/components/ui/hover-card.tsx +54 -28
- 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 +64 -31
- 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/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/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 +22 -1
- 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/render-registry-preview.tsx +0 -15
- 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
|
@@ -63,7 +63,10 @@ function s({ state: s, setState: c }) {
|
|
|
63
63
|
onChange: (e) => c({ textareaValue: e.target.value }),
|
|
64
64
|
rows: r[0].rows,
|
|
65
65
|
className: `${r[0].minHeight} resize-y`,
|
|
66
|
-
placeholder: r[0].placeholder
|
|
66
|
+
placeholder: r[0].placeholder,
|
|
67
|
+
helperText: "Visible helper copy keeps instructions outside the placeholder.",
|
|
68
|
+
maxLength: 240,
|
|
69
|
+
showCharacterCount: !0
|
|
67
70
|
})
|
|
68
71
|
})]
|
|
69
72
|
}), /* @__PURE__ */ a("div", {
|
|
@@ -135,7 +138,8 @@ function s({ state: s, setState: c }) {
|
|
|
135
138
|
children: /* @__PURE__ */ i(t, {
|
|
136
139
|
defaultValue: r[1].defaultValue,
|
|
137
140
|
rows: r[1].rows,
|
|
138
|
-
className: `${r[1].minHeight} resize-none
|
|
141
|
+
className: `${r[1].minHeight} resize-none`,
|
|
142
|
+
helperText: "Uncontrolled draft with stable helper spacing."
|
|
139
143
|
})
|
|
140
144
|
})]
|
|
141
145
|
}), /* @__PURE__ */ a("section", {
|
|
@@ -149,7 +153,8 @@ function s({ state: s, setState: c }) {
|
|
|
149
153
|
value: r[2].defaultValue,
|
|
150
154
|
readOnly: r[2].readOnly,
|
|
151
155
|
rows: r[2].rows,
|
|
152
|
-
className: `${r[2].minHeight} resize-none opacity-70
|
|
156
|
+
className: `${r[2].minHeight} resize-none opacity-70`,
|
|
157
|
+
errorText: s.textareaValue.trim().length > 0 && s.textareaValue.trim().length < 10 ? "Draft needs at least 10 characters." : void 0
|
|
153
158
|
}), /* @__PURE__ */ i("p", {
|
|
154
159
|
className: "text-sm leading-6 aui-text-muted",
|
|
155
160
|
children: "Read-only textareas should still be easy to scan and copy without looking like disabled, broken, or low-priority content."
|
|
@@ -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/notifications/toast.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`;function s({mode:e}){let[s,c]=i.useState(0),{addToast:l,success:u,warning:d,error:f,
|
|
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/notifications/toast.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`;function s({mode:e}){let[s,c]=i.useState(0),{addToast:l,success:u,warning:d,error:f,promise:p,clearToasts:m,toasts:h,dismissToast:g}=r.useToast();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:`Transient feedback`}),(0,a.jsx)(`h3`,{className:`mt-3 text-2xl font-semibold tracking-tight aui-text-strong`,children:`Toasts should report short-lived outcomes`}),(0,a.jsx)(`p`,{className:`mt-3 max-w-lg text-sm leading-6 aui-text-muted`,children:`Use them for short confirmations and lightweight warnings. Critical blocking states should remain on the page, not vanish into transient notifications.`})]}),(0,a.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Success`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Warning`}),(0,a.jsx)(n.Badge,{variant:`outline`,className:`rounded-full`,children:`Error`})]})]}),(0,a.jsxs)(`div`,{className:`mt-6 flex flex-wrap gap-2`,children:[(0,a.jsx)(t.Button,{size:`sm`,onClick:()=>{c(e=>e+1),l({title:`Sync started`,description:`Sync run ${s+1} has started.`,tone:`info`})},children:`Add toast`}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>{c(e=>e+1),u({title:`Saved`,description:`Project updated successfully.`,tone:`success`})},children:`Success`}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>{c(e=>e+1),d(`Please confirm required metadata before publish.`)},children:`Warning`}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>{c(e=>e+1),f({title:`Request failed`,description:`Failure occurred while saving item #${s+1}`})},children:`Error`}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>{p(new Promise(e=>{window.setTimeout(()=>e(`Export ready`),1200)}),{loading:{title:`Preparing export`,description:`Building CSV package.`,group:`Export`},success:e=>({title:e,description:`Download can start now.`,group:`Export`}),error:()=>({title:`Export failed`,description:`Retry after refreshing.`,group:`Export`})})},children:`Promise`}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:m,children:`Clear all`})]})]}),(0,a.jsxs)(`div`,{className:o,children:[(0,a.jsxs)(`p`,{className:`mb-2 text-sm aui-text-muted`,children:[`Active toasts: `,h.length]}),(0,a.jsx)(`div`,{className:`grid gap-2`,children:h.length===0?(0,a.jsx)(`div`,{className:`rounded-lg border border-[color:var(--aui-surface-border)] bg-[color:var(--aui-page-bg-alt)] px-3 py-2 text-sm aui-text-muted`,children:`No active toasts`}):h.map(e=>(0,a.jsxs)(`div`,{className:`flex items-start justify-between rounded-lg border border-[color:var(--aui-surface-border)] bg-[color:var(--aui-page-bg-alt)] px-3 py-2 text-sm`,children:[(0,a.jsxs)(`div`,{children:[(0,a.jsx)(`p`,{className:`font-medium aui-text-strong`,children:e.title??`Untitled`}),(0,a.jsx)(`p`,{className:`aui-text-muted`,children:e.description})]}),(0,a.jsx)(t.Button,{size:`sm`,variant:`outline`,onClick:()=>g(e.id),children:`Dismiss`})]},e.id))})]}),null]})}function c({mode:e}){return(0,a.jsx)(r.ToastProvider,{position:`top-right`,defaultDuration:3e3,maxToasts:5,pauseOnHover:e===`playground`,children:(0,a.jsx)(s,{mode:e})})}exports.ToastShowcase=c;
|
|
@@ -6,7 +6,7 @@ import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
|
6
6
|
//#region src/showcase/premium/toast/showcase.tsx
|
|
7
7
|
var s = "rounded-[22px] border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-5";
|
|
8
8
|
function c({ mode: n }) {
|
|
9
|
-
let [c, l] = i.useState(0), { addToast: u, success: d, warning: f, error: p,
|
|
9
|
+
let [c, l] = i.useState(0), { addToast: u, success: d, warning: f, error: p, promise: m, clearToasts: h, toasts: g, dismissToast: _ } = r();
|
|
10
10
|
return /* @__PURE__ */ o("div", {
|
|
11
11
|
className: "space-y-5",
|
|
12
12
|
children: [
|
|
@@ -98,7 +98,33 @@ function c({ mode: n }) {
|
|
|
98
98
|
/* @__PURE__ */ a(e, {
|
|
99
99
|
size: "sm",
|
|
100
100
|
variant: "outline",
|
|
101
|
-
onClick:
|
|
101
|
+
onClick: () => {
|
|
102
|
+
m(new Promise((e) => {
|
|
103
|
+
window.setTimeout(() => e("Export ready"), 1200);
|
|
104
|
+
}), {
|
|
105
|
+
loading: {
|
|
106
|
+
title: "Preparing export",
|
|
107
|
+
description: "Building CSV package.",
|
|
108
|
+
group: "Export"
|
|
109
|
+
},
|
|
110
|
+
success: (e) => ({
|
|
111
|
+
title: e,
|
|
112
|
+
description: "Download can start now.",
|
|
113
|
+
group: "Export"
|
|
114
|
+
}),
|
|
115
|
+
error: () => ({
|
|
116
|
+
title: "Export failed",
|
|
117
|
+
description: "Retry after refreshing.",
|
|
118
|
+
group: "Export"
|
|
119
|
+
})
|
|
120
|
+
});
|
|
121
|
+
},
|
|
122
|
+
children: "Promise"
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ a(e, {
|
|
125
|
+
size: "sm",
|
|
126
|
+
variant: "outline",
|
|
127
|
+
onClick: h,
|
|
102
128
|
children: "Clear all"
|
|
103
129
|
})
|
|
104
130
|
]
|
|
@@ -108,13 +134,13 @@ function c({ mode: n }) {
|
|
|
108
134
|
className: s,
|
|
109
135
|
children: [/* @__PURE__ */ o("p", {
|
|
110
136
|
className: "mb-2 text-sm aui-text-muted",
|
|
111
|
-
children: ["Active toasts: ",
|
|
137
|
+
children: ["Active toasts: ", g.length]
|
|
112
138
|
}), /* @__PURE__ */ a("div", {
|
|
113
139
|
className: "grid gap-2",
|
|
114
|
-
children:
|
|
140
|
+
children: g.length === 0 ? /* @__PURE__ */ a("div", {
|
|
115
141
|
className: "rounded-lg border border-[color:var(--aui-surface-border)] bg-[color:var(--aui-page-bg-alt)] px-3 py-2 text-sm aui-text-muted",
|
|
116
142
|
children: "No active toasts"
|
|
117
|
-
}) :
|
|
143
|
+
}) : g.map((t) => /* @__PURE__ */ o("div", {
|
|
118
144
|
className: "flex items-start justify-between rounded-lg border border-[color:var(--aui-surface-border)] bg-[color:var(--aui-page-bg-alt)] px-3 py-2 text-sm",
|
|
119
145
|
children: [/* @__PURE__ */ o("div", { children: [/* @__PURE__ */ a("p", {
|
|
120
146
|
className: "font-medium aui-text-strong",
|
|
@@ -125,7 +151,7 @@ function c({ mode: n }) {
|
|
|
125
151
|
})] }), /* @__PURE__ */ a(e, {
|
|
126
152
|
size: "sm",
|
|
127
153
|
variant: "outline",
|
|
128
|
-
onClick: () =>
|
|
154
|
+
onClick: () => _(t.id),
|
|
129
155
|
children: "Dismiss"
|
|
130
156
|
})]
|
|
131
157
|
}, t.id))
|
|
@@ -5,7 +5,7 @@ export type ComponentDemoState = {
|
|
|
5
5
|
checked: boolean;
|
|
6
6
|
switchOn: boolean;
|
|
7
7
|
selectValue: string;
|
|
8
|
-
badgeVariant: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
8
|
+
badgeVariant: "default" | "secondary" | "soft" | "destructive" | "outline" | "ghost" | "link";
|
|
9
9
|
cardCompact: boolean;
|
|
10
10
|
activeTab: "overview" | "activity" | "settings";
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./create-demo.cjs");var t=e.createShowcaseDemoRegistry([e.component(`button`,`Button`,`actions`,`Primary action surface for clicks, submit, and quick triggers in dashboard workflows.`),e.component(`input`,`Input`,`inputs`,`Single-line text input for quick edits, queries, and form fields.`),e.component(`select`,`Select`,`inputs`,`Select component with menu-driven single choice workflows.`),e.component(`dialog`,`Dialog`,`overlay`,`Modal surface for confirmation, forms, and contextual workflows.`),e.component(`data-table`,`DataTable`,`data-table`,`High density table with search, filters, rows, actions and pagination context.`),e.component(`date-picker`,`DatePicker`,`calendar`,`Date picker surface for period and event selection.`),e.component(`form-input`,`FormInput`,`form`,`Input wrapper with RHF-ready metadata and helper text.`),e.component(`form-select`,`FormSelect`,`form`,`Select wrapper for controlled local and async choice fields.`),e.component(`form-textarea`,`FormTextarea`,`form`,`Textarea wrapper with helper, validation and consistent spacing.`),e.component(`form-switch`,`FormSwitch`,`form`,`Boolean form control with shell-level label and hint handling.`),e.component(`form-date-picker`,`FormDatePicker`,`form`,`Popover date picker wrapper with RHF integration.`),e.component(`form-date-range-picker`,`FormDateRangePicker`,`form`,`Range date picker wrapper for planning and reporting flows.`),e.component(`alert-dialog`,`AlertDialog`,`overlay`,`Destructive confirmation dialog with loading-ready action states.`),e.component(`drawer`,`Drawer`,`overlay`,`Side panel for contextual details without leaving the page.`),e.component(`pagination`,`Pagination`,`navigation`,`Controlled page navigation with edge buttons and active state.`),e.component(`nav-tabs`,`NavTabs`,`navigation`,`Navigation tabs for switching related document sections.`),e.component(`page-tabs`,`PageTabs`,`navigation`,`Top-level page tab strip for route-sized sections.`),e.component(`stepper-tabs`,`StepperTabs`,`navigation`,`Step-like tabs for setup and onboarding progress.`),e.component(`password-input`,`PasswordInput`,`inputs`,`Password field with visibility toggle and secure autocomplete defaults.`),e.component(`number-input`,`NumberInput`,`inputs`,`Numeric entry for counts, thresholds, and reporting controls.`),e.component(`phone-input`,`PhoneInput`,`inputs`,`Phone input with stable raw and masked value handling.`),e.component(`money-input`,`MoneyInput`,`inputs`,`Currency entry for billing, finance and KPI editing flows.`),e.component(`simple-select`,`SimpleSelect`,`inputs`,`Static local-option select for dashboards and settings forms.`),e.component(`async-select`,`AsyncSelect`,`inputs`,`Remote-loaded select for large server-backed option sets.`),e.component(`combobox`,`Combobox`,`inputs`,`Searchable local choice input for reassignment and command-like selection.`),e.component(`slider`,`Slider`,`inputs`,`Single value range control for density, threshold, and score tuning.`),e.component(`range-slider`,`RangeSlider`,`inputs`,`Two-handle slider for min/max filtering.`),e.component(`rating`,`Rating`,`inputs`,`Compact score input for feedback and review flows.`),e.component(`otp-input`,`OtpInput`,`inputs`,`One-time code entry with fixed-length slots.`),e.component(`inline-editable`,`InlineEditable`,`inputs`,`Inline editing primitive for dense tables and configuration rows.`),e.component(`tag-input`,`TagInput`,`inputs`,`Tokenized text input for labels, skills, and quick filters.`),e.component(`progress`,`Progress`,`display`,`Linear progress with label, value formatter, tone and indeterminate state.`),e.component(`progress-circle`,`ProgressCircle`,`display`,`Compact circular progress for sidebars and status cards.`),e.component(`timeline`,`Timeline`,`display`,`Vertical or horizontal event stream for workflow history.`),e.component(`status-dot`,`StatusDot`,`display`,`Tiny live status indicator with optional pulse animation.`),e.component(`user-card`,`UserCard`,`display`,`User summary row with avatar, metadata and actions.`),e.component(`notification-center`,`NotificationCenter`,`display`,`Compact activity and notifications stream.`),e.component(`data-list`,`DataList`,`display`,`Readable title and description rows for compact operational lists.`),e.component(`status-legend`,`StatusLegend`,`display`,`Explain status meaning and counts in a compact legend.`),e.component(`trend-card`,`TrendCard`,`display`,`Metric summary card with trend context.`),e.component(`action-menu`,`ActionMenu`,`actions`,`Compact dropdown action menu for rows and cards.`),e.component(`button-group`,`ButtonGroup`,`actions`,`Grouped action buttons for view switching and compact controls.`),e.component(`quick-action-grid`,`QuickActionGrid`,`actions`,`Action launcher grid for dense dashboard shortcuts.`),e.component(`filter-bar`,`FilterBar`,`actions`,`Search, filters, active-count and reset actions in one toolbar.`),e.component(`app-header`,`AppHeader`,`layout`,`Sticky product header with left, center and right slots.`),e.component(`section-header`,`SectionHeader`,`layout`,`Reusable section title block with actions and metadata.`),e.component(`stat-card`,`StatCard`,`layout`,`Dashboard stat card for KPI, trend and helper text.`),e.component(`alert`,`Alert`,`feedback`,`Inline feedback banner for success, warning, info, and error states.`),e.component(`page-state`,`PageState`,`feedback`,`Full-page completion or blocked state with next actions.`),e.component(`calendar`,`Calendar`,`calendar`,`Single month calendar surface for date picker and scheduling flows.`),e.component(`file-upload`,`FileUpload`,`upload`,`Full file upload surface with dropzone, action button and helper text.`),e.component(`image-upload`,`ImageUpload`,`upload`,`Image upload pattern with preview-oriented copy.`),e.component(`file-dropzone`,`FileDropzone`,`upload`,`Lightweight file dropzone primitive for custom upload flows.`),e.component(`stepper`,`Stepper`,`wizard`,`Clickable step navigation for multi-step forms.`),e.component(`wizard`,`Wizard`,`wizard`,`Stepper, content and footer controls combined into one workflow.`),e.component(`resource-page`,`ResourcePage`,`patterns`,`Full resource index page shell for admin dashboards.`),e.component(`resource-detail-page`,`ResourceDetailPage`,`patterns`,`Detail page shell with title, metadata and sections.`)]);exports.registryQualityDemoRegistry=t;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./create-demo.cjs");var t=e.createShowcaseDemoRegistry([e.component(`button`,`Button`,`actions`,`Primary action surface for clicks, submit, and quick triggers in dashboard workflows.`),e.component(`input`,`Input`,`inputs`,`Single-line text input for quick edits, queries, and form fields.`),e.component(`select`,`Select`,`inputs`,`Select component with menu-driven single choice workflows.`),e.component(`dialog`,`Dialog`,`overlay`,`Modal surface for confirmation, forms, and contextual workflows.`),e.component(`data-table`,`DataTable`,`data-table`,`High density table with search, filters, rows, actions and pagination context.`),e.component(`date-picker`,`DatePicker`,`calendar`,`Date picker surface for period and event selection.`),e.component(`form-input`,`FormInput`,`form`,`Input wrapper with RHF-ready metadata and helper text.`),e.component(`form-select`,`FormSelect`,`form`,`Select wrapper for controlled local and async choice fields.`),e.component(`form-textarea`,`FormTextarea`,`form`,`Textarea wrapper with helper, validation and consistent spacing.`),e.component(`form-switch`,`FormSwitch`,`form`,`Boolean form control with shell-level label and hint handling.`),e.component(`form-date-picker`,`FormDatePicker`,`form`,`Popover date picker wrapper with RHF integration.`),e.component(`form-date-range-picker`,`FormDateRangePicker`,`form`,`Range date picker wrapper for planning and reporting flows.`),e.component(`alert-dialog`,`AlertDialog`,`overlay`,`Destructive confirmation dialog with loading-ready action states.`),e.component(`drawer`,`Drawer`,`overlay`,`Side panel for contextual details without leaving the page.`),e.component(`pagination`,`Pagination`,`navigation`,`Controlled page navigation with edge buttons and active state.`),e.component(`nav-tabs`,`NavTabs`,`navigation`,`Navigation tabs for switching related document sections.`),e.component(`page-tabs`,`PageTabs`,`navigation`,`Top-level page tab strip for route-sized sections.`),e.component(`stepper-tabs`,`StepperTabs`,`navigation`,`Step-like tabs for setup and onboarding progress.`),e.component(`password-input`,`PasswordInput`,`inputs`,`Password field with visibility toggle and secure autocomplete defaults.`),e.component(`number-input`,`NumberInput`,`inputs`,`Numeric entry for counts, thresholds, and reporting controls.`),e.component(`phone-input`,`PhoneInput`,`inputs`,`Phone input with stable raw and masked value handling.`),e.component(`money-input`,`MoneyInput`,`inputs`,`Currency entry for billing, finance and KPI editing flows.`),e.component(`simple-select`,`SimpleSelect`,`inputs`,`Static local-option select for dashboards and settings forms.`),e.component(`async-select`,`AsyncSelect`,`inputs`,`Remote-loaded select for large server-backed option sets.`),e.component(`combobox`,`Combobox`,`inputs`,`Searchable local choice input for reassignment and command-like selection.`),e.component(`slider`,`Slider`,`inputs`,`Single value range control for density, threshold, and score tuning.`),e.component(`range-slider`,`RangeSlider`,`inputs`,`Two-handle slider for min/max filtering.`),e.component(`rating`,`Rating`,`inputs`,`Compact score input for feedback and review flows.`),e.component(`otp-input`,`OtpInput`,`inputs`,`One-time code entry with fixed-length slots.`),e.component(`inline-editable`,`InlineEditable`,`inputs`,`Inline editing primitive for dense tables and configuration rows.`),e.component(`tag-input`,`TagInput`,`inputs`,`Tokenized text input for labels, skills, and quick filters.`),e.component(`progress`,`Progress`,`display`,`Linear progress with label, value formatter, tone and indeterminate state.`),e.component(`progress-circle`,`ProgressCircle`,`display`,`Compact circular progress for sidebars and status cards.`),e.component(`timeline`,`Timeline`,`display`,`Vertical or horizontal event stream for workflow history.`),e.component(`status-dot`,`StatusDot`,`display`,`Tiny live status indicator with optional pulse animation.`),e.component(`user-card`,`UserCard`,`display`,`User summary row with avatar, metadata and actions.`),e.component(`notification-center`,`NotificationCenter`,`display`,`Compact activity and notifications stream.`),e.component(`data-list`,`DataList`,`display`,`Readable title and description rows for compact operational lists.`),e.component(`status-legend`,`StatusLegend`,`display`,`Explain status meaning and counts in a compact legend.`),e.component(`trend-card`,`TrendCard`,`display`,`Metric summary card with trend context.`),e.component(`action-menu`,`ActionMenu`,`actions`,`Compact dropdown action menu for rows and cards.`),e.component(`button-group`,`ButtonGroup`,`actions`,`Grouped action buttons for view switching and compact controls.`),e.component(`quick-action-grid`,`QuickActionGrid`,`actions`,`Action launcher grid for dense dashboard shortcuts.`),e.component(`filter-bar`,`FilterBar`,`actions`,`Search, filters, active-count and reset actions in one toolbar.`),e.component(`app-header`,`AppHeader`,`layout`,`Sticky product header with left, center and right slots.`),e.component(`app-shell`,`AppShell`,`layout`,`Responsive application shell with sidebar, header and content regions.`),e.component(`section-header`,`SectionHeader`,`layout`,`Reusable section title block with actions and metadata.`),e.component(`stat-card`,`StatCard`,`layout`,`Dashboard stat card for KPI, trend and helper text.`),e.component(`alert`,`Alert`,`feedback`,`Inline feedback banner for success, warning, info, and error states.`),e.component(`page-state`,`PageState`,`feedback`,`Full-page completion or blocked state with next actions.`),e.component(`calendar`,`Calendar`,`calendar`,`Single month calendar surface for date picker and scheduling flows.`),e.component(`file-upload`,`FileUpload`,`upload`,`Full file upload surface with dropzone, action button and helper text.`),e.component(`image-upload`,`ImageUpload`,`upload`,`Image upload pattern with preview-oriented copy.`),e.component(`file-dropzone`,`FileDropzone`,`upload`,`Lightweight file dropzone primitive for custom upload flows.`),e.component(`stepper`,`Stepper`,`wizard`,`Clickable step navigation for multi-step forms.`),e.component(`wizard`,`Wizard`,`wizard`,`Stepper, content and footer controls combined into one workflow.`),e.component(`resource-page`,`ResourcePage`,`patterns`,`Full resource index page shell for admin dashboards.`),e.component(`resource-detail-page`,`ResourceDetailPage`,`patterns`,`Detail page shell with title, metadata and sections.`)]);exports.registryQualityDemoRegistry=t;
|
|
@@ -46,6 +46,7 @@ var n = t([
|
|
|
46
46
|
e("quick-action-grid", "QuickActionGrid", "actions", "Action launcher grid for dense dashboard shortcuts."),
|
|
47
47
|
e("filter-bar", "FilterBar", "actions", "Search, filters, active-count and reset actions in one toolbar."),
|
|
48
48
|
e("app-header", "AppHeader", "layout", "Sticky product header with left, center and right slots."),
|
|
49
|
+
e("app-shell", "AppShell", "layout", "Responsive application shell with sidebar, header and content regions."),
|
|
49
50
|
e("section-header", "SectionHeader", "layout", "Reusable section title block with actions and metadata."),
|
|
50
51
|
e("stat-card", "StatCard", "layout", "Dashboard stat card for KPI, trend and helper text."),
|
|
51
52
|
e("alert", "Alert", "feedback", "Inline feedback banner for success, warning, info, and error states."),
|
|
@@ -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/actions/action-menu.cjs"),r=require("../components/actions/button-group.cjs"),i=require("../components/inputs/password-input.cjs"),a=require("../components/ui/input/index.cjs"),o=require("../components/ui/badge/index.cjs"),s=require("../components/actions/quick-action-grid.cjs"),c=require("../components/layout/section-header.cjs"),l=require("../components/navigation/anchor-nav.cjs"),u=require("../components/navigation/nav-tabs.cjs"),d=require("../components/navigation/page-tabs.cjs"),f=require("../components/navigation/pagination.cjs"),p=require("../components/navigation/stepper-tabs.cjs"),m=require("../components/filters/filter-bar.cjs"),h=require("../components/overlay/alert-dialog.cjs"),g=require("../components/overlay/dialog-actions.cjs"),_=require("../components/overlay/drawer.cjs"),v=require("../components/inputs/color-input.cjs"),y=require("../components/inputs/otp-input.cjs"),b=require("../components/inputs/rating.cjs"),x=require("../components/inputs/slider.cjs"),S=require("../components/inputs/tag-input.cjs"),C=require("../components/feedback/alert.cjs"),w=require("../components/feedback/page-state.cjs"),T=require("../components/display/description-list.cjs"),E=require("../components/display/list.cjs"),D=require("../components/display/progress.cjs"),O=require("../components/display/progress-circle.cjs"),k=require("../components/display/status-dot.cjs"),A=require("../components/display/status-legend.cjs"),j=require("../components/display/timeline.cjs"),M=require("../components/display/user-card.cjs"),N=require("../components/layout/stat-card.cjs"),P=require("../components/command/command-palette.cjs"),F=require("../components/calendar/calendar.cjs"),I=require("../components/upload/file-upload.cjs"),L=require("../components/upload/file-dropzone.cjs"),R=require("../components/wizard/stepper.cjs"),ee=require("../components/wizard/wizard.cjs"),z=require("../components/layout/app-header.cjs"),B=require("../components/patterns/resource-detail-page.cjs"),V=require("../components/patterns/resource-page.cjs");let H=require("react");H=e.__toESM(H,1);let U=require("lucide-react"),W=require("react/jsx-runtime");function G(e,t,n){return e.kind===`inputs`?(0,W.jsx)(q,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,W.jsx)(J,{state:t,setState:n}):e.kind===`overlay`?(0,W.jsx)(Y,{slug:e.slug}):e.kind===`navigation`?(0,W.jsx)(X,{slug:e.slug}):e.kind===`feedback`?(0,W.jsx)(Z,{slug:e.slug}):e.kind===`display`?(0,W.jsx)(Q,{slug:e.slug}):e.kind===`actions`?(0,W.jsx)($,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,W.jsx)(te,{slug:e.slug}):e.kind===`data-table`?(0,W.jsx)(ne,{slug:e.slug}):e.kind===`calendar`?(0,W.jsx)(re,{}):e.kind===`upload`?(0,W.jsx)(ie,{slug:e.slug}):e.kind===`wizard`?(0,W.jsx)(ae,{slug:e.slug}):e.kind===`patterns`?(0,W.jsx)(oe,{slug:e.slug}):null}function K({tone:e,children:t}){return(0,W.jsx)(o.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function q({slug:e,state:t,setState:n}){let r=t.textValue,o=e=>n({textValue:e});return e===`search-input`?(0,W.jsx)(a.Input,{type:`search`,value:r,onValueChange:o,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,W.jsx)(i.PasswordInput,{value:`secret-token`,onValueChange:o,placeholder:`Password`}):e===`clearable-input`?(0,W.jsx)(a.Input,{value:r,onValueChange:o,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,W.jsx)(x.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,W.jsx)(x.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,W.jsx)(b.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,W.jsx)(y.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:o}):e===`color-input`?(0,W.jsx)(v.ColorInput,{defaultValue:`#22c55e`,label:`Accent color`,description:`Theme token preview.`}):e===`tag-input`?(0,W.jsx)(S.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,W.jsx)(a.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function J({state:e,setState:t}){return(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,W.jsxs)(`label`,{className:`grid gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,W.jsx)(a.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,W.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,W.jsxs)(`label`,{className:`grid gap-2`,children:[(0,W.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,W.jsx)(a.Input,{type:`search`,value:`Active customers`,resultCount:7,readOnly:!0}),(0,W.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function Y({slug:e}){return e===`dialog-actions`?(0,W.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,W.jsxs)(g.DialogActions,{align:`end`,children:[(0,W.jsx)(g.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,W.jsx)(g.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,W.jsx)(g.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,W.jsx)(h.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,W.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,W.jsx)(_.Drawer,{open:!1,trigger:(0,W.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,W.jsx)(T.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,W.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,W.jsx)(t.Button,{children:`Publish`})]})}function X({slug:e}){return e===`pagination`?(0,W.jsx)(f.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`anchor-nav`?(0,W.jsx)(l.AnchorNav,{orientation:`horizontal`,title:`Sections`,items:[{key:`overview`,label:`Overview`,href:`#overview`,active:!0},{key:`usage`,label:`Usage`,href:`#usage`},{key:`api`,label:`API`,href:`#api`}]}):e===`page-tabs`?(0,W.jsx)(d.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,W.jsx)(p.StepperTabs,{value:`billing`,items:[{value:`profile`,label:`Profile`,description:`Team and owner details`,completed:!0},{value:`billing`,label:`Billing`,description:`Payment and invoices`},{value:`review`,label:`Review`,description:`Confirm release`}]}):(0,W.jsx)(u.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function Z({slug:e}){return e===`alert`?(0,W.jsx)(C.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,W.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,W.jsx)(w.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,W.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(K,{tone:`success`,children:`Live`}),(0,W.jsx)(K,{tone:`warning`,children:`Needs review`}),(0,W.jsx)(K,{tone:`danger`,children:`Blocked`}),(0,W.jsx)(K,{tone:`info`,children:`Queued`})]})}function Q({slug:e}){return e===`description-list`?(0,W.jsx)(T.DescriptionList,{title:`Invoice details`,description:`Structured facts with responsive columns.`,items:[{key:`id`,label:`Invoice`,value:`#4821`},{key:`amount`,label:`Amount`,value:`$12,420`},{key:`status`,label:`Status`,value:(0,W.jsx)(K,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,W.jsx)(D.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,W.jsx)(O.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,W.jsx)(j.Timeline,{items:[{key:`created`,title:`Created`,description:`Invoice generated`,time:`09:20`,tone:`success`},{key:`review`,title:`Review`,description:`Finance team assigned`,time:`10:05`,tone:`info`},{key:`approve`,title:`Approval`,description:`Waiting for manager`,time:`Now`,tone:`warning`}],pending:!0,pendingLabel:`Paid`}):e===`metric-card`||e===`stat-card`?(0,W.jsx)(N.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,W.jsx)(U.LayoutDashboardIcon,{})}):e===`status-dot`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsx)(k.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,W.jsx)(k.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,W.jsx)(k.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,W.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,W.jsx)(o.Badge,{variant:`secondary`,children:`+12.4%`}),(0,W.jsx)(o.Badge,{variant:`outline`,children:`-3.1%`}),(0,W.jsx)(o.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,W.jsx)(E.List,{items:[{key:`1`,title:`Build completed`,description:`Dashboard docs deployment is live.`,extra:`Now`},{key:`2`,title:`New comment`,description:`Review requested on DataTable API.`,extra:`8m`},{key:`3`,title:`Publish reminder`,description:`Package version is ready for release.`,extra:`1h`}]}):e===`data-list`?(0,W.jsx)(E.List,{items:[{key:`1`,title:`Enterprise plan`,description:`Priority support and SSO`,extra:`$499`},{key:`2`,title:`Growth plan`,description:`Most used by product teams`,extra:`$199`},{key:`3`,title:`Starter plan`,description:`Lightweight team setup`,extra:`$49`}]}):e===`status-legend`?(0,W.jsx)(A.StatusLegend,{title:`Delivery states`,description:`Explain what each state means and how often it appears.`,orientation:`grid`,items:[{key:`live`,label:`Live`,description:`Healthy production routes`,tone:`success`,count:18},{key:`review`,label:`Review`,description:`Waiting for QA approval`,tone:`warning`,count:4},{key:`blocked`,label:`Blocked`,description:`Needs engineering action`,tone:`danger`,count:1}]}):e===`trend-card`||e===`comparison-card`?(0,W.jsx)(N.StatCard,{title:e===`trend-card`?`Weekly revenue`:`Current vs previous`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,W.jsx)(U.LayoutDashboardIcon,{})}):(0,W.jsx)(M.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function $({slug:e,state:i,setState:o}){return e===`filter-bar`?(0,W.jsx)(m.FilterBar,{search:(0,W.jsx)(a.Input,{type:`search`,value:i.textValue,onValueChange:e=>o({textValue:e}),placeholder:`Search invoices...`}),onReset:()=>o({textValue:``}),chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`}],onRemoveChip:()=>void 0,filters:(0,W.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,W.jsx)(U.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] px-3 py-2`,children:[(0,W.jsx)(U.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,W.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,W.jsx)(P.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,W.jsx)(U.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,W.jsx)(U.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,W.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,W.jsx)(s.QuickActionGrid,{columns:3,items:[{key:`new`,label:`New invoice`,description:`Create a fresh billing row.`,badge:`N`},{key:`import`,label:`Import CSV`,description:`Bring finance data into the table.`,badge:`I`},{key:`share`,label:`Share workspace`,description:`Invite team members to the route.`,badge:`S`}]}):e===`data-table-saved-filters`?(0,W.jsxs)(`div`,{className:`grid gap-3`,children:[(0,W.jsx)(m.FilterBar,{chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`},{key:`region`,label:`Region`,value:`APAC`,tone:`info`}],onRemoveChip:()=>void 0,onReset:()=>void 0}),(0,W.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,W.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsxs)(`div`,{children:[(0,W.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,W.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,W.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,W.jsx)(U.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,W.jsx)(U.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,W.jsx)(U.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,W.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,W.jsx)(U.MoreHorizontalIcon,{})})})]})}function te({slug:e}){return e===`app-header`?(0,W.jsx)(z.AppHeader,{sticky:!1,left:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(U.LayoutDashboardIcon,{className:`size-4`}),(0,W.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,W.jsx)(o.Badge,{variant:`secondary`,children:`Preview`}),right:(0,W.jsxs)(W.Fragment,{children:[(0,W.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,W.jsx)(U.BellIcon,{})}),(0,W.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,W.jsx)(c.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,W.jsx)(N.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},helperText:`StatCard keeps KPI, helper text and trend in one compact tile.`})}function ne({slug:e}){return(0,W.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,W.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,W.jsxs)(`div`,{className:`flex gap-2`,children:[(0,W.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,W.jsx)(U.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,W.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,W.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] border-b border-[color:var(--aui-divider)] px-3 py-2 text-xs font-semibold uppercase tracking-[0.18em] text-[color:var(--aui-page-muted)]`,children:[(0,W.jsx)(`span`,{children:(0,W.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,W.jsx)(`span`,{children:`Name`}),(0,W.jsx)(`span`,{children:`Status`}),(0,W.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,W.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] items-center border-b border-[color:var(--aui-divider)] px-3 py-3 last:border-b-0`,children:[(0,W.jsx)(`span`,{children:(0,W.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,W.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,W.jsx)(`span`,{children:(0,W.jsx)(K,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,W.jsx)(`span`,{children:(0,W.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,W.jsx)(U.MoreHorizontalIcon,{})})})]},e)),(0,W.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t border-[color:var(--aui-divider)] p-3 text-sm text-[color:var(--aui-page-muted)]`,children:[(0,W.jsxs)(`span`,{children:[{"data-table-pagination":`Pagination footer`,"data-table-toolbar":`Search and filter toolbar`,"data-table-column-visibility-menu":`Column visibility`,"data-table-select-column":`Row selection`,"data-table-sortable-header":`Sortable header`,"data-table-row-actions":`Row actions`,"data-table-actions-column":`Actions column`,"data-table-bulk-actions":`Bulk action bar`,"data-table-view-presets":`Saved view presets`}[e]??`DataTable part`,` preview`]}),(0,W.jsx)(f.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function re(){return(0,W.jsx)(F.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function ie({slug:e}){return e===`file-dropzone`?(0,W.jsx)(L.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,W.jsx)(I.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,W.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,W.jsx)(`div`,{className:`flex aspect-square items-center justify-center rounded-2xl border border-dashed border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:(0,W.jsx)(U.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,W.jsx)(L.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function ae({slug:e}){let t=[{id:`profile`,title:`Profile`,description:`Account details`,completed:!0},{id:`billing`,title:`Billing`,description:`Payment setup`},{id:`review`,title:`Review`,description:`Confirm data`}];return e===`stepper`?(0,W.jsx)(R.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,W.jsx)(ee.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,W.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,W.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,W.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function oe({slug:e}){return e===`resource-detail-page`?(0,W.jsx)(B.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,W.jsx)(V.ResourcePageSection,{title:`Account`,children:(0,W.jsx)(T.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,W.jsx)(V.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,W.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,W.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,W.jsx)(N.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,W.jsx)(N.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,W.jsx)(m.FilterBar,{search:(0,W.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,W.jsx)(V.ResourcePageSection,{title:`Recent activity`,children:(0,W.jsx)(j.Timeline,{items:[{key:`a`,title:`Customer added`,description:`Acme workspace`,tone:`success`},{key:`b`,title:`Plan updated`,description:`Scale plan enabled`,tone:`info`}]})})})}exports.renderShowcasePreview=G;
|
|
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/actions/action-menu.cjs"),r=require("../components/actions/button-group.cjs"),i=require("../components/inputs/password-input.cjs"),a=require("../components/ui/input/index.cjs"),o=require("../components/ui/badge/index.cjs"),s=require("../components/actions/quick-action-grid.cjs"),c=require("../components/layout/section-header.cjs"),l=require("../components/navigation/nav-tabs.cjs"),u=require("../components/navigation/page-tabs.cjs"),d=require("../components/navigation/pagination.cjs"),f=require("../components/navigation/stepper-tabs.cjs"),p=require("../components/filters/filter-bar.cjs"),m=require("../components/overlay/alert-dialog.cjs"),h=require("../components/overlay/dialog-actions.cjs"),g=require("../components/overlay/drawer.cjs"),_=require("../components/inputs/color-input.cjs"),v=require("../components/inputs/otp-input.cjs"),y=require("../components/inputs/rating.cjs"),b=require("../components/inputs/slider.cjs"),x=require("../components/inputs/tag-input.cjs"),S=require("../components/feedback/alert.cjs"),C=require("../components/feedback/page-state.cjs"),w=require("../components/display/description-list.cjs"),T=require("../components/display/list.cjs"),E=require("../components/display/progress.cjs"),D=require("../components/display/progress-circle.cjs"),O=require("../components/display/status-dot.cjs"),k=require("../components/display/status-legend.cjs"),A=require("../components/display/timeline.cjs"),j=require("../components/display/user-card.cjs"),M=require("../components/layout/stat-card.cjs"),N=require("../components/command/command-palette.cjs"),P=require("../components/calendar/calendar.cjs"),F=require("../components/upload/file-upload.cjs"),I=require("../components/upload/file-dropzone.cjs"),L=require("../components/wizard/stepper.cjs"),R=require("../components/wizard/wizard.cjs"),ee=require("../components/layout/app-header.cjs"),z=require("../components/patterns/resource-detail-page.cjs"),B=require("../components/patterns/resource-page.cjs");let V=require("react");V=e.__toESM(V,1);let H=require("lucide-react"),U=require("react/jsx-runtime");function W(e,t,n){return e.kind===`inputs`?(0,U.jsx)(K,{slug:e.slug,state:t,setState:n}):e.kind===`form`?(0,U.jsx)(q,{state:t,setState:n}):e.kind===`overlay`?(0,U.jsx)(J,{slug:e.slug}):e.kind===`navigation`?(0,U.jsx)(Y,{slug:e.slug}):e.kind===`feedback`?(0,U.jsx)(X,{slug:e.slug}):e.kind===`display`?(0,U.jsx)(Z,{slug:e.slug}):e.kind===`actions`?(0,U.jsx)(Q,{slug:e.slug,state:t,setState:n}):e.kind===`layout`?(0,U.jsx)($,{slug:e.slug}):e.kind===`data-table`?(0,U.jsx)(te,{slug:e.slug}):e.kind===`calendar`?(0,U.jsx)(ne,{}):e.kind===`upload`?(0,U.jsx)(re,{slug:e.slug}):e.kind===`wizard`?(0,U.jsx)(ie,{slug:e.slug}):e.kind===`patterns`?(0,U.jsx)(ae,{slug:e.slug}):null}function G({tone:e,children:t}){return(0,U.jsx)(o.Badge,{variant:e===`danger`?`destructive`:e===`warning`?`outline`:`secondary`,children:t})}function K({slug:e,state:t,setState:n}){let r=t.textValue,o=e=>n({textValue:e});return e===`search-input`?(0,U.jsx)(a.Input,{type:`search`,value:r,onValueChange:o,resultCount:12,shortcut:`Ctrl K`,placeholder:`Search customers...`}):e===`password-input`?(0,U.jsx)(i.PasswordInput,{value:`secret-token`,onValueChange:o,placeholder:`Password`}):e===`clearable-input`?(0,U.jsx)(a.Input,{value:r,onValueChange:o,placeholder:`Clearable input`,clearable:!0}):e===`slider`?(0,U.jsx)(b.Slider,{label:`Density`,description:`Tune content density.`,defaultValue:64,showValue:!0}):e===`range-slider`?(0,U.jsx)(b.RangeSlider,{label:`Revenue range`,description:`Filter between two values.`,defaultValue:[20,80],showValue:!0}):e===`rating`?(0,U.jsx)(y.Rating,{defaultValue:4,labels:{clear:`Reset`}}):e===`otp-input`?(0,U.jsx)(v.OtpInput,{value:r.replace(/\D/g,``).slice(0,6),onValueChange:o}):e===`color-input`?(0,U.jsx)(_.ColorInput,{defaultValue:`#22c55e`,label:`Accent color`,description:`Theme token preview.`}):e===`tag-input`?(0,U.jsx)(x.TagInput,{defaultValue:[`dashboard`,`beta`,`ops`],placeholder:`Add label`}):(0,U.jsx)(a.Input,{value:r,onChange:e=>n({textValue:e.currentTarget.value}),placeholder:`Unified input`})}function q({state:e,setState:t}){return(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,U.jsxs)(`label`,{className:`grid gap-2`,children:[(0,U.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Email address`}),(0,U.jsx)(a.Input,{value:e.textValue,onChange:e=>t({textValue:e.currentTarget.value})}),(0,U.jsx)(`span`,{className:`text-xs text-[color:var(--aui-page-muted)]`,children:`Form wrappers keep label, hint and error spacing consistent.`})]}),(0,U.jsxs)(`label`,{className:`grid gap-2`,children:[(0,U.jsx)(`span`,{className:`text-sm font-medium text-[color:var(--aui-page-foreground)]`,children:`Status`}),(0,U.jsx)(a.Input,{type:`search`,value:`Active customers`,resultCount:7,readOnly:!0}),(0,U.jsx)(`span`,{className:`text-xs text-emerald-500`,children:`Ready to submit`})]})]})}function J({slug:e}){return e===`dialog-actions`?(0,U.jsx)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:(0,U.jsxs)(h.DialogActions,{align:`end`,children:[(0,U.jsx)(h.DialogActionButton,{variant:`ghost`,children:`Cancel`}),(0,U.jsx)(h.DialogActionButton,{variant:`outline`,children:`Save draft`}),(0,U.jsx)(h.DialogActionButton,{children:`Publish`})]})}):e===`alert-dialog`?(0,U.jsx)(m.AlertDialog,{open:!1,title:`Archive invoice?`,description:`This keeps the invoice readable but removes it from active queues.`,children:(0,U.jsx)(t.Button,{variant:`destructive`,children:`Open alert`})}):e===`drawer`?(0,U.jsx)(g.Drawer,{open:!1,trigger:(0,U.jsx)(t.Button,{variant:`outline`,children:`Open drawer`}),title:`Customer details`,description:`Side panel for fast inspection.`,children:(0,U.jsx)(w.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Azamat UI`}]})}):(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,U.jsx)(t.Button,{variant:`ghost`,children:`Cancel`}),(0,U.jsx)(t.Button,{variant:`outline`,children:`Save draft`}),(0,U.jsx)(t.Button,{children:`Publish`})]})}function Y({slug:e}){return e===`pagination`?(0,U.jsx)(d.Pagination,{page:3,pageCount:9,onPageChange:()=>void 0}):e===`page-tabs`?(0,U.jsx)(u.PageTabs,{value:`overview`,variant:`pills`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`,badge:`3`}]}):e===`stepper-tabs`?(0,U.jsx)(f.StepperTabs,{value:`billing`,items:[{value:`profile`,label:`Profile`,description:`Team and owner details`,completed:!0},{value:`billing`,label:`Billing`,description:`Payment and invoices`},{value:`review`,label:`Review`,description:`Confirm release`}]}):(0,U.jsx)(l.NavTabs,{value:`overview`,items:[{value:`overview`,label:`Overview`},{value:`usage`,label:`Usage`},{value:`api`,label:`API`}]})}function X({slug:e}){return e===`alert`?(0,U.jsx)(S.Alert,{tone:`warning`,title:`Review needed`,description:`Billing rules changed and one approval is pending.`,action:(0,U.jsx)(t.Button,{size:`sm`,children:`Open`})}):e===`page-state`?(0,U.jsx)(C.PageState,{title:`Workspace connected`,description:`The route is ready to accept live data and team actions.`,tone:`success`,action:(0,U.jsx)(t.Button,{size:`sm`,children:`Continue`})}):(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(G,{tone:`success`,children:`Live`}),(0,U.jsx)(G,{tone:`warning`,children:`Needs review`}),(0,U.jsx)(G,{tone:`danger`,children:`Blocked`}),(0,U.jsx)(G,{tone:`info`,children:`Queued`})]})}function Z({slug:e}){return e===`description-list`?(0,U.jsx)(w.DescriptionList,{title:`Invoice details`,description:`Structured facts with responsive columns.`,items:[{key:`id`,label:`Invoice`,value:`#4821`},{key:`amount`,label:`Amount`,value:`$12,420`},{key:`status`,label:`Status`,value:(0,U.jsx)(G,{tone:`success`,children:`Paid`})},{key:`owner`,label:`Owner`,value:`Finance team`}]}):e===`progress`?(0,U.jsx)(E.Progress,{label:`Migration progress`,description:`Production rollout`,value:68,tone:`success`,showValue:!0}):e===`progress-circle`?(0,U.jsx)(D.ProgressCircle,{value:72,label:`Profile completed`}):e===`timeline`?(0,U.jsx)(A.Timeline,{items:[{key:`created`,title:`Created`,description:`Invoice generated`,time:`09:20`,tone:`success`},{key:`review`,title:`Review`,description:`Finance team assigned`,time:`10:05`,tone:`info`},{key:`approve`,title:`Approval`,description:`Waiting for manager`,time:`Now`,tone:`warning`}],pending:!0,pendingLabel:`Paid`}):e===`metric-card`||e===`stat-card`?(0,U.jsx)(M.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,U.jsx)(H.LayoutDashboardIcon,{})}):e===`status-dot`?(0,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.jsx)(O.StatusDot,{tone:`success`,pulse:!0,label:`API healthy`}),(0,U.jsx)(O.StatusDot,{tone:`warning`,label:`Sync delayed`}),(0,U.jsx)(O.StatusDot,{tone:`danger`,label:`Webhook failed`})]}):e===`delta-badge`?(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(o.Badge,{variant:`secondary`,children:`+12.4%`}),(0,U.jsx)(o.Badge,{variant:`outline`,children:`-3.1%`}),(0,U.jsx)(o.Badge,{variant:`destructive`,children:`Risk`})]}):e===`notification-center`?(0,U.jsx)(T.List,{items:[{key:`1`,title:`Build completed`,description:`Dashboard docs deployment is live.`,extra:`Now`},{key:`2`,title:`New comment`,description:`Review requested on DataTable API.`,extra:`8m`},{key:`3`,title:`Publish reminder`,description:`Package version is ready for release.`,extra:`1h`}]}):e===`data-list`?(0,U.jsx)(T.List,{items:[{key:`1`,title:`Enterprise plan`,description:`Priority support and SSO`,extra:`$499`},{key:`2`,title:`Growth plan`,description:`Most used by product teams`,extra:`$199`},{key:`3`,title:`Starter plan`,description:`Lightweight team setup`,extra:`$49`}]}):e===`status-legend`?(0,U.jsx)(k.StatusLegend,{title:`Delivery states`,description:`Explain what each state means and how often it appears.`,orientation:`grid`,items:[{key:`live`,label:`Live`,description:`Healthy production routes`,tone:`success`,count:18},{key:`review`,label:`Review`,description:`Waiting for QA approval`,tone:`warning`,count:4},{key:`blocked`,label:`Blocked`,description:`Needs engineering action`,tone:`danger`,count:1}]}):e===`trend-card`||e===`comparison-card`?(0,U.jsx)(M.StatCard,{title:e===`trend-card`?`Weekly revenue`:`Current vs previous`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},icon:(0,U.jsx)(H.LayoutDashboardIcon,{})}):(0,U.jsx)(j.UserCard,{name:`Azamat Jurayev`,description:`Product designer and maintainer`,meta:`Admin workspace`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Invite`})})}function Q({slug:e,state:i,setState:o}){return e===`filter-bar`?(0,U.jsx)(p.FilterBar,{search:(0,U.jsx)(a.Input,{type:`search`,value:i.textValue,onValueChange:e=>o({textValue:e}),placeholder:`Search invoices...`}),onReset:()=>o({textValue:``}),chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`}],onRemoveChip:()=>void 0,filters:(0,U.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,U.jsx)(H.FilterIcon,{"data-icon":`inline-start`}),`Status`]}),actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Export`})}):e===`command-palette`?(0,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] px-3 py-2`,children:[(0,U.jsx)(H.SearchIcon,{className:`size-4 text-[color:var(--aui-page-muted)]`}),(0,U.jsx)(`span`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Command palette preview: search routes, components and actions.`})]}),(0,U.jsx)(N.CommandPalette,{open:!1,onOpenChange:()=>void 0,groups:[{id:`navigation`,label:`Navigation`,items:[{id:`docs`,label:`Open docs`,icon:(0,U.jsx)(H.SearchIcon,{className:`size-4`})},{id:`components`,label:`Browse components`,icon:(0,U.jsx)(H.LayoutDashboardIcon,{className:`size-4`})}]}]})]}):e===`button-group`?(0,U.jsx)(r.ButtonGroup,{items:[{key:`day`,label:`Day`},{key:`week`,label:`Week`},{key:`month`,label:`Month`}]}):e===`quick-action-grid`?(0,U.jsx)(s.QuickActionGrid,{columns:3,items:[{key:`new`,label:`New invoice`,description:`Create a fresh billing row.`,badge:`N`},{key:`import`,label:`Import CSV`,description:`Bring finance data into the table.`,badge:`I`},{key:`share`,label:`Share workspace`,description:`Invite team members to the route.`,badge:`S`}]}):e===`data-table-saved-filters`?(0,U.jsxs)(`div`,{className:`grid gap-3`,children:[(0,U.jsx)(p.FilterBar,{chips:[{key:`status`,label:`Status`,value:`Active`,tone:`success`},{key:`owner`,label:`Owner`,value:`Azamat`,tone:`default`},{key:`region`,label:`Region`,value:`APAC`,tone:`info`}],onRemoveChip:()=>void 0,onReset:()=>void 0}),(0,U.jsx)(r.ButtonGroup,{attached:!1,items:[{key:`default`,label:`Default`,variant:`secondary`},{key:`billing`,label:`Billing`},{key:`ops`,label:`Operations`}]})]}):(0,U.jsxs)(`div`,{className:`flex items-center justify-between rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Invoice #4821`}),(0,U.jsx)(`p`,{className:`text-sm text-[color:var(--aui-page-muted)]`,children:`Pending approval`})]}),(0,U.jsx)(n.ActionMenu,{label:`Actions`,actions:[{key:`open`,label:`Open`,icon:(0,U.jsx)(H.ChevronRightIcon,{className:`size-4`})},{key:`download`,label:`Download`,icon:(0,U.jsx)(H.DownloadIcon,{className:`size-4`})},{key:`archive`,label:`Archive`,icon:(0,U.jsx)(H.ArchiveIcon,{className:`size-4`}),destructive:!0}],trigger:(0,U.jsx)(t.Button,{variant:`outline`,size:`icon-sm`,"aria-label":`Open actions`,children:(0,U.jsx)(H.MoreHorizontalIcon,{})})})]})}function $({slug:e}){return e===`app-header`?(0,U.jsx)(ee.AppHeader,{sticky:!1,left:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(H.LayoutDashboardIcon,{className:`size-4`}),(0,U.jsx)(`span`,{className:`font-medium`,children:`Dashboard`})]}),center:(0,U.jsx)(o.Badge,{variant:`secondary`,children:`Preview`}),right:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Notifications`,children:(0,U.jsx)(H.BellIcon,{})}),(0,U.jsx)(t.Button,{size:`sm`,children:`Deploy`})]}),className:`rounded-xl border border-[color:var(--aui-divider)]`}):e===`section-header`?(0,U.jsx)(c.SectionHeader,{eyebrow:`Components`,title:`Production-ready surfaces`,description:`SectionHeader keeps copy, metadata and actions aligned.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Add component`})}):(0,U.jsx)(M.StatCard,{title:`Revenue`,value:`$84.2k`,description:`Compared with last month`,trend:{value:`+12.4%`,tone:`success`},helperText:`StatCard keeps KPI, helper text and trend in one compact tile.`})}function te({slug:e}){return(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-b border-[color:var(--aui-divider)] p-3`,children:[(0,U.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search rows...`,className:`max-w-xs`,readOnly:!0}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsxs)(t.Button,{variant:`outline`,size:`sm`,children:[(0,U.jsx)(H.FilterIcon,{"data-icon":`inline-start`}),`Filters`]}),(0,U.jsx)(t.Button,{size:`sm`,children:`Create`})]})]}),(0,U.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] border-b border-[color:var(--aui-divider)] px-3 py-2 text-xs font-semibold uppercase tracking-[0.18em] text-[color:var(--aui-page-muted)]`,children:[(0,U.jsx)(`span`,{children:(0,U.jsx)(`input`,{type:`checkbox`,"aria-label":`Select rows`})}),(0,U.jsx)(`span`,{children:`Name`}),(0,U.jsx)(`span`,{children:`Status`}),(0,U.jsx)(`span`,{children:`Actions`})]}),[`Azamat UI`,`Registry`,`Dashboard`].map((e,n)=>(0,U.jsxs)(`div`,{className:`grid grid-cols-[40px_1fr_120px_72px] items-center border-b border-[color:var(--aui-divider)] px-3 py-3 last:border-b-0`,children:[(0,U.jsx)(`span`,{children:(0,U.jsx)(`input`,{type:`checkbox`,"aria-label":`Select ${e}`,defaultChecked:n===0})}),(0,U.jsx)(`span`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:e}),(0,U.jsx)(`span`,{children:(0,U.jsx)(G,{tone:n===2?`warning`:`success`,children:n===2?`Review`:`Live`})}),(0,U.jsx)(`span`,{children:(0,U.jsx)(t.Button,{variant:`ghost`,size:`icon-sm`,"aria-label":`Row actions`,children:(0,U.jsx)(H.MoreHorizontalIcon,{})})})]},e)),(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3 border-t border-[color:var(--aui-divider)] p-3 text-sm text-[color:var(--aui-page-muted)]`,children:[(0,U.jsxs)(`span`,{children:[{"data-table-pagination":`Pagination footer`,"data-table-toolbar":`Search and filter toolbar`,"data-table-column-visibility-menu":`Column visibility`,"data-table-select-column":`Row selection`,"data-table-sortable-header":`Sortable header`,"data-table-row-actions":`Row actions`,"data-table-actions-column":`Actions column`,"data-table-bulk-actions":`Bulk action bar`,"data-table-view-presets":`Saved view presets`}[e]??`DataTable part`,` preview`]}),(0,U.jsx)(d.Pagination,{page:1,pageCount:4,onPageChange:()=>void 0,showEdges:!1})]})]})}function ne(){return(0,U.jsx)(P.Calendar,{value:`2026-06-18`,defaultMonth:`2026-06-01`,onValueChange:()=>void 0})}function re({slug:e}){return e===`file-dropzone`?(0,U.jsx)(I.FileDropzone,{label:`Drop contract files`,description:`PDF, PNG or CSV up to 10MB.`}):e===`file-upload`?(0,U.jsx)(F.FileUpload,{dropzoneLabel:`Upload documents`,dropzoneDescription:`Drag files here or choose from your device.`,buttonLabel:`Choose files`,helperText:`Supports PDF, CSV and images.`}):(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-[160px_1fr] md:items-center`,children:[(0,U.jsx)(`div`,{className:`flex aspect-square items-center justify-center rounded-2xl border border-dashed border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]`,children:(0,U.jsx)(H.UploadCloudIcon,{className:`size-8 text-[color:var(--aui-page-muted)]`})}),(0,U.jsx)(I.FileDropzone,{label:`Upload product image`,description:`Shows the image-upload flow without custom CSS.`,accept:`image/*`})]})}function ie({slug:e}){let t=[{id:`profile`,title:`Profile`,description:`Account details`,completed:!0},{id:`billing`,title:`Billing`,description:`Payment setup`},{id:`review`,title:`Review`,description:`Confirm data`}];return e===`stepper`?(0,U.jsx)(L.Stepper,{steps:t,currentStep:`billing`,onStepChange:()=>void 0}):(0,U.jsx)(R.Wizard,{steps:t,currentStep:`billing`,onNext:()=>void 0,onPrevious:()=>void 0,onFinish:()=>void 0,children:(0,U.jsxs)(`div`,{className:`rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4`,children:[(0,U.jsx)(`p`,{className:`font-medium text-[color:var(--aui-page-foreground)]`,children:`Billing setup`}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-[color:var(--aui-page-muted)]`,children:`Wizard combines steps, content and footer controls.`})]})})}function ae({slug:e}){return e===`resource-detail-page`?(0,U.jsx)(z.ResourceDetailPage,{title:`Customer profile`,description:`ResourceDetailPage organizes detail screens.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`Edit`}),children:(0,U.jsx)(B.ResourcePageSection,{title:`Account`,children:(0,U.jsx)(w.DescriptionList,{items:[{key:`plan`,label:`Plan`,value:`Scale`},{key:`owner`,label:`Owner`,value:`Design team`}]})})}):(0,U.jsx)(B.ResourcePage,{title:`Customers`,description:`ResourcePage combines header, stats, filters and sections.`,actions:(0,U.jsx)(t.Button,{size:`sm`,children:`New customer`}),stats:(0,U.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-2`,children:[(0,U.jsx)(M.StatCard,{title:`Active`,value:`2,418`,trend:{value:`+8%`,tone:`success`}}),(0,U.jsx)(M.StatCard,{title:`Health`,value:`94%`,trend:{value:`Stable`,tone:`default`}})]}),filters:(0,U.jsx)(p.FilterBar,{search:(0,U.jsx)(a.Input,{type:`search`,value:``,placeholder:`Search...`,readOnly:!0}),activeCount:1}),children:(0,U.jsx)(B.ResourcePageSection,{title:`Recent activity`,children:(0,U.jsx)(A.Timeline,{items:[{key:`a`,title:`Customer added`,description:`Acme workspace`,tone:`success`},{key:`b`,title:`Plan updated`,description:`Scale plan enabled`,tone:`info`}]})})})}exports.renderShowcasePreview=W;
|
|
@@ -6,22 +6,21 @@ import { Input as i } from "../components/ui/input/index.js";
|
|
|
6
6
|
import { Badge as a } from "../components/ui/badge/index.js";
|
|
7
7
|
import { QuickActionGrid as o } from "../components/actions/quick-action-grid.js";
|
|
8
8
|
import { SectionHeader as s } from "../components/layout/section-header.js";
|
|
9
|
-
import { AnchorNav as ee } from "../components/navigation/anchor-nav.js";
|
|
10
9
|
import { NavTabs as c } from "../components/navigation/nav-tabs.js";
|
|
11
|
-
import { PageTabs as
|
|
12
|
-
import { Pagination as
|
|
13
|
-
import { StepperTabs as
|
|
14
|
-
import { FilterBar as
|
|
15
|
-
import { AlertDialog as
|
|
16
|
-
import { DialogActionButton as
|
|
17
|
-
import { Drawer as
|
|
18
|
-
import { ColorInput as
|
|
19
|
-
import { OtpInput as
|
|
20
|
-
import { Rating as
|
|
21
|
-
import { RangeSlider as
|
|
22
|
-
import { TagInput as
|
|
23
|
-
import { Alert as
|
|
24
|
-
import { PageState as
|
|
10
|
+
import { PageTabs as ee } from "../components/navigation/page-tabs.js";
|
|
11
|
+
import { Pagination as l } from "../components/navigation/pagination.js";
|
|
12
|
+
import { StepperTabs as te } from "../components/navigation/stepper-tabs.js";
|
|
13
|
+
import { FilterBar as u } from "../components/filters/filter-bar.js";
|
|
14
|
+
import { AlertDialog as d } from "../components/overlay/alert-dialog.js";
|
|
15
|
+
import { DialogActionButton as f, DialogActions as p } from "../components/overlay/dialog-actions.js";
|
|
16
|
+
import { Drawer as m } from "../components/overlay/drawer.js";
|
|
17
|
+
import { ColorInput as h } from "../components/inputs/color-input.js";
|
|
18
|
+
import { OtpInput as g } from "../components/inputs/otp-input.js";
|
|
19
|
+
import { Rating as _ } from "../components/inputs/rating.js";
|
|
20
|
+
import { RangeSlider as v, Slider as y } from "../components/inputs/slider.js";
|
|
21
|
+
import { TagInput as b } from "../components/inputs/tag-input.js";
|
|
22
|
+
import { Alert as x } from "../components/feedback/alert.js";
|
|
23
|
+
import { PageState as ne } from "../components/feedback/page-state.js";
|
|
25
24
|
import { DescriptionList as S } from "../components/display/description-list.js";
|
|
26
25
|
import { List as C } from "../components/display/list.js";
|
|
27
26
|
import { Progress as w } from "../components/display/progress.js";
|
|
@@ -41,22 +40,22 @@ import { AppHeader as L } from "../components/layout/app-header.js";
|
|
|
41
40
|
import { ResourceDetailPage as R } from "../components/patterns/resource-detail-page.js";
|
|
42
41
|
import { ResourcePage as z, ResourcePageSection as B } from "../components/patterns/resource-page.js";
|
|
43
42
|
import "react";
|
|
44
|
-
import { ArchiveIcon as V, BellIcon as H, ChevronRightIcon as
|
|
43
|
+
import { ArchiveIcon as V, BellIcon as H, ChevronRightIcon as U, DownloadIcon as re, FilterIcon as W, LayoutDashboardIcon as G, MoreHorizontalIcon as K, SearchIcon as q, UploadCloudIcon as J } from "lucide-react";
|
|
45
44
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
46
45
|
//#region src/showcase/render-registry-preview.tsx
|
|
47
|
-
function
|
|
48
|
-
return e.kind === "inputs" ? /* @__PURE__ */ X(
|
|
46
|
+
function ie(e, t, n) {
|
|
47
|
+
return e.kind === "inputs" ? /* @__PURE__ */ X(ae, {
|
|
49
48
|
slug: e.slug,
|
|
50
49
|
state: t,
|
|
51
50
|
setState: n
|
|
52
|
-
}) : e.kind === "form" ? /* @__PURE__ */ X(
|
|
51
|
+
}) : e.kind === "form" ? /* @__PURE__ */ X(oe, {
|
|
53
52
|
state: t,
|
|
54
53
|
setState: n
|
|
55
|
-
}) : e.kind === "overlay" ? /* @__PURE__ */ X(
|
|
54
|
+
}) : e.kind === "overlay" ? /* @__PURE__ */ X($, { slug: e.slug }) : e.kind === "navigation" ? /* @__PURE__ */ X(se, { slug: e.slug }) : e.kind === "feedback" ? /* @__PURE__ */ X(ce, { slug: e.slug }) : e.kind === "display" ? /* @__PURE__ */ X(le, { slug: e.slug }) : e.kind === "actions" ? /* @__PURE__ */ X(ue, {
|
|
56
55
|
slug: e.slug,
|
|
57
56
|
state: t,
|
|
58
57
|
setState: n
|
|
59
|
-
}) : e.kind === "layout" ? /* @__PURE__ */ X(
|
|
58
|
+
}) : e.kind === "layout" ? /* @__PURE__ */ X(de, { slug: e.slug }) : e.kind === "data-table" ? /* @__PURE__ */ X(fe, { slug: e.slug }) : e.kind === "calendar" ? /* @__PURE__ */ X(pe, {}) : e.kind === "upload" ? /* @__PURE__ */ X(me, { slug: e.slug }) : e.kind === "wizard" ? /* @__PURE__ */ X(he, { slug: e.slug }) : e.kind === "patterns" ? /* @__PURE__ */ X(ge, { slug: e.slug }) : null;
|
|
60
59
|
}
|
|
61
60
|
function Q({ tone: e, children: t }) {
|
|
62
61
|
return /* @__PURE__ */ X(a, {
|
|
@@ -64,7 +63,7 @@ function Q({ tone: e, children: t }) {
|
|
|
64
63
|
children: t
|
|
65
64
|
});
|
|
66
65
|
}
|
|
67
|
-
function
|
|
66
|
+
function ae({ slug: e, state: t, setState: n }) {
|
|
68
67
|
let a = t.textValue, o = (e) => n({ textValue: e });
|
|
69
68
|
return e === "search-input" ? /* @__PURE__ */ X(i, {
|
|
70
69
|
type: "search",
|
|
@@ -82,27 +81,27 @@ function oe({ slug: e, state: t, setState: n }) {
|
|
|
82
81
|
onValueChange: o,
|
|
83
82
|
placeholder: "Clearable input",
|
|
84
83
|
clearable: !0
|
|
85
|
-
}) : e === "slider" ? /* @__PURE__ */ X(
|
|
84
|
+
}) : e === "slider" ? /* @__PURE__ */ X(y, {
|
|
86
85
|
label: "Density",
|
|
87
86
|
description: "Tune content density.",
|
|
88
87
|
defaultValue: 64,
|
|
89
88
|
showValue: !0
|
|
90
|
-
}) : e === "range-slider" ? /* @__PURE__ */ X(
|
|
89
|
+
}) : e === "range-slider" ? /* @__PURE__ */ X(v, {
|
|
91
90
|
label: "Revenue range",
|
|
92
91
|
description: "Filter between two values.",
|
|
93
92
|
defaultValue: [20, 80],
|
|
94
93
|
showValue: !0
|
|
95
|
-
}) : e === "rating" ? /* @__PURE__ */ X(
|
|
94
|
+
}) : e === "rating" ? /* @__PURE__ */ X(_, {
|
|
96
95
|
defaultValue: 4,
|
|
97
96
|
labels: { clear: "Reset" }
|
|
98
|
-
}) : e === "otp-input" ? /* @__PURE__ */ X(
|
|
97
|
+
}) : e === "otp-input" ? /* @__PURE__ */ X(g, {
|
|
99
98
|
value: a.replace(/\D/g, "").slice(0, 6),
|
|
100
99
|
onValueChange: o
|
|
101
|
-
}) : e === "color-input" ? /* @__PURE__ */ X(
|
|
100
|
+
}) : e === "color-input" ? /* @__PURE__ */ X(h, {
|
|
102
101
|
defaultValue: "#22c55e",
|
|
103
102
|
label: "Accent color",
|
|
104
103
|
description: "Theme token preview."
|
|
105
|
-
}) : e === "tag-input" ? /* @__PURE__ */ X(
|
|
104
|
+
}) : e === "tag-input" ? /* @__PURE__ */ X(b, {
|
|
106
105
|
defaultValue: [
|
|
107
106
|
"dashboard",
|
|
108
107
|
"beta",
|
|
@@ -115,7 +114,7 @@ function oe({ slug: e, state: t, setState: n }) {
|
|
|
115
114
|
placeholder: "Unified input"
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function oe({ state: e, setState: t }) {
|
|
119
118
|
return /* @__PURE__ */ Z("div", {
|
|
120
119
|
className: "grid gap-4 md:grid-cols-2",
|
|
121
120
|
children: [/* @__PURE__ */ Z("label", {
|
|
@@ -155,24 +154,24 @@ function se({ state: e, setState: t }) {
|
|
|
155
154
|
})]
|
|
156
155
|
});
|
|
157
156
|
}
|
|
158
|
-
function
|
|
157
|
+
function $({ slug: t }) {
|
|
159
158
|
return t === "dialog-actions" ? /* @__PURE__ */ X("div", {
|
|
160
159
|
className: "rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)] p-4",
|
|
161
|
-
children: /* @__PURE__ */ Z(
|
|
160
|
+
children: /* @__PURE__ */ Z(p, {
|
|
162
161
|
align: "end",
|
|
163
162
|
children: [
|
|
164
|
-
/* @__PURE__ */ X(
|
|
163
|
+
/* @__PURE__ */ X(f, {
|
|
165
164
|
variant: "ghost",
|
|
166
165
|
children: "Cancel"
|
|
167
166
|
}),
|
|
168
|
-
/* @__PURE__ */ X(
|
|
167
|
+
/* @__PURE__ */ X(f, {
|
|
169
168
|
variant: "outline",
|
|
170
169
|
children: "Save draft"
|
|
171
170
|
}),
|
|
172
|
-
/* @__PURE__ */ X(
|
|
171
|
+
/* @__PURE__ */ X(f, { children: "Publish" })
|
|
173
172
|
]
|
|
174
173
|
})
|
|
175
|
-
}) : t === "alert-dialog" ? /* @__PURE__ */ X(
|
|
174
|
+
}) : t === "alert-dialog" ? /* @__PURE__ */ X(d, {
|
|
176
175
|
open: !1,
|
|
177
176
|
title: "Archive invoice?",
|
|
178
177
|
description: "This keeps the invoice readable but removes it from active queues.",
|
|
@@ -180,7 +179,7 @@ function ce({ slug: t }) {
|
|
|
180
179
|
variant: "destructive",
|
|
181
180
|
children: "Open alert"
|
|
182
181
|
})
|
|
183
|
-
}) : t === "drawer" ? /* @__PURE__ */ X(
|
|
182
|
+
}) : t === "drawer" ? /* @__PURE__ */ X(m, {
|
|
184
183
|
open: !1,
|
|
185
184
|
trigger: /* @__PURE__ */ X(e, {
|
|
186
185
|
variant: "outline",
|
|
@@ -212,33 +211,12 @@ function ce({ slug: t }) {
|
|
|
212
211
|
]
|
|
213
212
|
});
|
|
214
213
|
}
|
|
215
|
-
function
|
|
216
|
-
return e === "pagination" ? /* @__PURE__ */ X(
|
|
214
|
+
function se({ slug: e }) {
|
|
215
|
+
return e === "pagination" ? /* @__PURE__ */ X(l, {
|
|
217
216
|
page: 3,
|
|
218
217
|
pageCount: 9,
|
|
219
218
|
onPageChange: () => void 0
|
|
220
|
-
}) : e === "
|
|
221
|
-
orientation: "horizontal",
|
|
222
|
-
title: "Sections",
|
|
223
|
-
items: [
|
|
224
|
-
{
|
|
225
|
-
key: "overview",
|
|
226
|
-
label: "Overview",
|
|
227
|
-
href: "#overview",
|
|
228
|
-
active: !0
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
key: "usage",
|
|
232
|
-
label: "Usage",
|
|
233
|
-
href: "#usage"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
key: "api",
|
|
237
|
-
label: "API",
|
|
238
|
-
href: "#api"
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
}) : e === "page-tabs" ? /* @__PURE__ */ X(l, {
|
|
219
|
+
}) : e === "page-tabs" ? /* @__PURE__ */ X(ee, {
|
|
242
220
|
value: "overview",
|
|
243
221
|
variant: "pills",
|
|
244
222
|
items: [
|
|
@@ -256,7 +234,7 @@ function le({ slug: e }) {
|
|
|
256
234
|
badge: "3"
|
|
257
235
|
}
|
|
258
236
|
]
|
|
259
|
-
}) : e === "stepper-tabs" ? /* @__PURE__ */ X(
|
|
237
|
+
}) : e === "stepper-tabs" ? /* @__PURE__ */ X(te, {
|
|
260
238
|
value: "billing",
|
|
261
239
|
items: [
|
|
262
240
|
{
|
|
@@ -294,8 +272,8 @@ function le({ slug: e }) {
|
|
|
294
272
|
]
|
|
295
273
|
});
|
|
296
274
|
}
|
|
297
|
-
function
|
|
298
|
-
return t === "alert" ? /* @__PURE__ */ X(
|
|
275
|
+
function ce({ slug: t }) {
|
|
276
|
+
return t === "alert" ? /* @__PURE__ */ X(x, {
|
|
299
277
|
tone: "warning",
|
|
300
278
|
title: "Review needed",
|
|
301
279
|
description: "Billing rules changed and one approval is pending.",
|
|
@@ -303,7 +281,7 @@ function ue({ slug: t }) {
|
|
|
303
281
|
size: "sm",
|
|
304
282
|
children: "Open"
|
|
305
283
|
})
|
|
306
|
-
}) : t === "page-state" ? /* @__PURE__ */ X(
|
|
284
|
+
}) : t === "page-state" ? /* @__PURE__ */ X(ne, {
|
|
307
285
|
title: "Workspace connected",
|
|
308
286
|
description: "The route is ready to accept live data and team actions.",
|
|
309
287
|
tone: "success",
|
|
@@ -333,7 +311,7 @@ function ue({ slug: t }) {
|
|
|
333
311
|
]
|
|
334
312
|
});
|
|
335
313
|
}
|
|
336
|
-
function
|
|
314
|
+
function le({ slug: t }) {
|
|
337
315
|
return t === "description-list" ? /* @__PURE__ */ X(S, {
|
|
338
316
|
title: "Invoice details",
|
|
339
317
|
description: "Structured facts with responsive columns.",
|
|
@@ -523,8 +501,8 @@ function de({ slug: t }) {
|
|
|
523
501
|
})
|
|
524
502
|
});
|
|
525
503
|
}
|
|
526
|
-
function
|
|
527
|
-
return r === "filter-bar" ? /* @__PURE__ */ X(
|
|
504
|
+
function ue({ slug: r, state: a, setState: s }) {
|
|
505
|
+
return r === "filter-bar" ? /* @__PURE__ */ X(u, {
|
|
528
506
|
search: /* @__PURE__ */ X(i, {
|
|
529
507
|
type: "search",
|
|
530
508
|
value: a.textValue,
|
|
@@ -615,7 +593,7 @@ function fe({ slug: r, state: a, setState: s }) {
|
|
|
615
593
|
]
|
|
616
594
|
}) : r === "data-table-saved-filters" ? /* @__PURE__ */ Z("div", {
|
|
617
595
|
className: "grid gap-3",
|
|
618
|
-
children: [/* @__PURE__ */ X(
|
|
596
|
+
children: [/* @__PURE__ */ X(u, {
|
|
619
597
|
chips: [
|
|
620
598
|
{
|
|
621
599
|
key: "status",
|
|
@@ -670,12 +648,12 @@ function fe({ slug: r, state: a, setState: s }) {
|
|
|
670
648
|
{
|
|
671
649
|
key: "open",
|
|
672
650
|
label: "Open",
|
|
673
|
-
icon: /* @__PURE__ */ X(
|
|
651
|
+
icon: /* @__PURE__ */ X(U, { className: "size-4" })
|
|
674
652
|
},
|
|
675
653
|
{
|
|
676
654
|
key: "download",
|
|
677
655
|
label: "Download",
|
|
678
|
-
icon: /* @__PURE__ */ X(
|
|
656
|
+
icon: /* @__PURE__ */ X(re, { className: "size-4" })
|
|
679
657
|
},
|
|
680
658
|
{
|
|
681
659
|
key: "archive",
|
|
@@ -693,7 +671,7 @@ function fe({ slug: r, state: a, setState: s }) {
|
|
|
693
671
|
})]
|
|
694
672
|
});
|
|
695
673
|
}
|
|
696
|
-
function
|
|
674
|
+
function de({ slug: t }) {
|
|
697
675
|
return t === "app-header" ? /* @__PURE__ */ X(L, {
|
|
698
676
|
sticky: !1,
|
|
699
677
|
left: /* @__PURE__ */ Z(Y, { children: [/* @__PURE__ */ X(G, { className: "size-4" }), /* @__PURE__ */ X("span", {
|
|
@@ -733,7 +711,7 @@ function pe({ slug: t }) {
|
|
|
733
711
|
helperText: "StatCard keeps KPI, helper text and trend in one compact tile."
|
|
734
712
|
});
|
|
735
713
|
}
|
|
736
|
-
function
|
|
714
|
+
function fe({ slug: t }) {
|
|
737
715
|
return /* @__PURE__ */ Z("div", {
|
|
738
716
|
className: "overflow-hidden rounded-xl border border-[color:var(--aui-divider)] bg-[color:var(--aui-page-bg)]",
|
|
739
717
|
children: [
|
|
@@ -809,7 +787,7 @@ function $({ slug: t }) {
|
|
|
809
787
|
"data-table-actions-column": "Actions column",
|
|
810
788
|
"data-table-bulk-actions": "Bulk action bar",
|
|
811
789
|
"data-table-view-presets": "Saved view presets"
|
|
812
|
-
}[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ X(
|
|
790
|
+
}[t] ?? "DataTable part", " preview"] }), /* @__PURE__ */ X(l, {
|
|
813
791
|
page: 1,
|
|
814
792
|
pageCount: 4,
|
|
815
793
|
onPageChange: () => void 0,
|
|
@@ -819,14 +797,14 @@ function $({ slug: t }) {
|
|
|
819
797
|
]
|
|
820
798
|
});
|
|
821
799
|
}
|
|
822
|
-
function
|
|
800
|
+
function pe() {
|
|
823
801
|
return /* @__PURE__ */ X(M, {
|
|
824
802
|
value: "2026-06-18",
|
|
825
803
|
defaultMonth: "2026-06-01",
|
|
826
804
|
onValueChange: () => void 0
|
|
827
805
|
});
|
|
828
806
|
}
|
|
829
|
-
function
|
|
807
|
+
function me({ slug: e }) {
|
|
830
808
|
return e === "file-dropzone" ? /* @__PURE__ */ X(P, {
|
|
831
809
|
label: "Drop contract files",
|
|
832
810
|
description: "PDF, PNG or CSV up to 10MB."
|
|
@@ -847,7 +825,7 @@ function he({ slug: e }) {
|
|
|
847
825
|
})]
|
|
848
826
|
});
|
|
849
827
|
}
|
|
850
|
-
function
|
|
828
|
+
function he({ slug: e }) {
|
|
851
829
|
let t = [
|
|
852
830
|
{
|
|
853
831
|
id: "profile",
|
|
@@ -888,7 +866,7 @@ function ge({ slug: e }) {
|
|
|
888
866
|
})
|
|
889
867
|
});
|
|
890
868
|
}
|
|
891
|
-
function
|
|
869
|
+
function ge({ slug: t }) {
|
|
892
870
|
return t === "resource-detail-page" ? /* @__PURE__ */ X(R, {
|
|
893
871
|
title: "Customer profile",
|
|
894
872
|
description: "ResourceDetailPage organizes detail screens.",
|
|
@@ -933,7 +911,7 @@ function _e({ slug: t }) {
|
|
|
933
911
|
}
|
|
934
912
|
})]
|
|
935
913
|
}),
|
|
936
|
-
filters: /* @__PURE__ */ X(
|
|
914
|
+
filters: /* @__PURE__ */ X(u, {
|
|
937
915
|
search: /* @__PURE__ */ X(i, {
|
|
938
916
|
type: "search",
|
|
939
917
|
value: "",
|
|
@@ -959,4 +937,4 @@ function _e({ slug: t }) {
|
|
|
959
937
|
});
|
|
960
938
|
}
|
|
961
939
|
//#endregion
|
|
962
|
-
export {
|
|
940
|
+
export { ie as renderShowcasePreview };
|