@kujoforall/paper-ui 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -0
- package/LICENSE +21 -0
- package/README.md +295 -2
- package/dist/components/editor/block-text.d.ts +8 -0
- package/dist/components/editor/block-text.d.ts.map +1 -0
- package/dist/components/editor/block-text.js +248 -0
- package/dist/components/editor/block-text.js.map +1 -0
- package/dist/components/editor/blocks.d.ts +33 -0
- package/dist/components/editor/blocks.d.ts.map +1 -0
- package/dist/components/editor/blocks.js +191 -0
- package/dist/components/editor/blocks.js.map +1 -0
- package/dist/components/editor/document-editor.d.ts +27 -0
- package/dist/components/editor/document-editor.d.ts.map +1 -0
- package/dist/components/editor/document-editor.js +42 -0
- package/dist/components/editor/document-editor.js.map +1 -0
- package/dist/components/editor/document-view.d.ts +22 -0
- package/dist/components/editor/document-view.d.ts.map +1 -0
- package/dist/components/editor/document-view.js +110 -0
- package/dist/components/editor/document-view.js.map +1 -0
- package/dist/components/editor/editor-state.d.ts +107 -0
- package/dist/components/editor/editor-state.d.ts.map +1 -0
- package/dist/components/editor/editor-state.js +217 -0
- package/dist/components/editor/editor-state.js.map +1 -0
- package/dist/components/editor/extensions/kit-blocks.d.ts +34 -0
- package/dist/components/editor/extensions/kit-blocks.d.ts.map +1 -0
- package/dist/components/editor/extensions/kit-blocks.js +201 -0
- package/dist/components/editor/extensions/kit-blocks.js.map +1 -0
- package/dist/components/editor/extensions/spoiler.d.ts +8 -0
- package/dist/components/editor/extensions/spoiler.d.ts.map +1 -0
- package/dist/components/editor/extensions/spoiler.js +36 -0
- package/dist/components/editor/extensions/spoiler.js.map +1 -0
- package/dist/components/editor/index.d.ts +10 -0
- package/dist/components/editor/index.d.ts.map +1 -0
- package/dist/components/editor/index.js +10 -0
- package/dist/components/editor/index.js.map +1 -0
- package/dist/components/editor/kinds.d.ts +99 -0
- package/dist/components/editor/kinds.d.ts.map +1 -0
- package/dist/components/editor/kinds.js +74 -0
- package/dist/components/editor/kinds.js.map +1 -0
- package/dist/components/editor/look.d.ts +18 -0
- package/dist/components/editor/look.d.ts.map +1 -0
- package/dist/components/editor/look.js +21 -0
- package/dist/components/editor/look.js.map +1 -0
- package/dist/components/sketch/rough.d.ts +38 -0
- package/dist/components/sketch/rough.d.ts.map +1 -0
- package/dist/components/sketch/rough.js +57 -0
- package/dist/components/sketch/rough.js.map +1 -0
- package/dist/components/three/model-viewer.d.ts +36 -0
- package/dist/components/three/model-viewer.d.ts.map +1 -0
- package/dist/components/three/model-viewer.js +338 -0
- package/dist/components/three/model-viewer.js.map +1 -0
- package/dist/components/ui/accent-picker.d.ts +2 -0
- package/dist/components/ui/accent-picker.d.ts.map +1 -0
- package/dist/components/ui/accent-picker.js +44 -0
- package/dist/components/ui/accent-picker.js.map +1 -0
- package/dist/components/ui/address-field.d.ts +10 -0
- package/dist/components/ui/address-field.d.ts.map +1 -0
- package/dist/components/ui/address-field.js +24 -0
- package/dist/components/ui/address-field.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +29 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +72 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/animated-height.d.ts +6 -0
- package/dist/components/ui/animated-height.d.ts.map +1 -0
- package/dist/components/ui/animated-height.js +26 -0
- package/dist/components/ui/animated-height.js.map +1 -0
- package/dist/components/ui/app-shell.d.ts +26 -0
- package/dist/components/ui/app-shell.d.ts.map +1 -0
- package/dist/components/ui/app-shell.js +71 -0
- package/dist/components/ui/app-shell.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +30 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +50 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +19 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +62 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/banner.d.ts +33 -0
- package/dist/components/ui/banner.d.ts.map +1 -0
- package/dist/components/ui/banner.js +21 -0
- package/dist/components/ui/banner.js.map +1 -0
- package/dist/components/ui/breadcrumbs.d.ts +10 -0
- package/dist/components/ui/breadcrumbs.d.ts.map +1 -0
- package/dist/components/ui/breadcrumbs.js +9 -0
- package/dist/components/ui/breadcrumbs.js.map +1 -0
- package/dist/components/ui/button.d.ts +15 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +110 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +5 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +65 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/callout.d.ts +32 -0
- package/dist/components/ui/callout.d.ts.map +1 -0
- package/dist/components/ui/callout.js +40 -0
- package/dist/components/ui/callout.js.map +1 -0
- package/dist/components/ui/card.d.ts +18 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +28 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +11 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +30 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/choice-label.d.ts +13 -0
- package/dist/components/ui/choice-label.d.ts.map +1 -0
- package/dist/components/ui/choice-label.js +17 -0
- package/dist/components/ui/choice-label.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +10 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +21 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/collection-layout.d.ts +24 -0
- package/dist/components/ui/collection-layout.d.ts.map +1 -0
- package/dist/components/ui/collection-layout.js +16 -0
- package/dist/components/ui/collection-layout.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +10 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +93 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command-menu.d.ts +18 -0
- package/dist/components/ui/command-menu.d.ts.map +1 -0
- package/dist/components/ui/command-menu.js +49 -0
- package/dist/components/ui/command-menu.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +19 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +42 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/copy-button.d.ts +11 -0
- package/dist/components/ui/copy-button.d.ts.map +1 -0
- package/dist/components/ui/copy-button.js +48 -0
- package/dist/components/ui/copy-button.js.map +1 -0
- package/dist/components/ui/database/calendar-view.d.ts +10 -0
- package/dist/components/ui/database/calendar-view.d.ts.map +1 -0
- package/dist/components/ui/database/calendar-view.js +65 -0
- package/dist/components/ui/database/calendar-view.js.map +1 -0
- package/dist/components/ui/database/card-views.d.ts +22 -0
- package/dist/components/ui/database/card-views.d.ts.map +1 -0
- package/dist/components/ui/database/card-views.js +74 -0
- package/dist/components/ui/database/card-views.js.map +1 -0
- package/dist/components/ui/database/cells.d.ts +20 -0
- package/dist/components/ui/database/cells.d.ts.map +1 -0
- package/dist/components/ui/database/cells.js +132 -0
- package/dist/components/ui/database/cells.js.map +1 -0
- package/dist/components/ui/database/database.d.ts +19 -0
- package/dist/components/ui/database/database.d.ts.map +1 -0
- package/dist/components/ui/database/database.js +102 -0
- package/dist/components/ui/database/database.js.map +1 -0
- package/dist/components/ui/database/icons.d.ts +5 -0
- package/dist/components/ui/database/icons.d.ts.map +1 -0
- package/dist/components/ui/database/icons.js +13 -0
- package/dist/components/ui/database/icons.js.map +1 -0
- package/dist/components/ui/database/table-view.d.ts +11 -0
- package/dist/components/ui/database/table-view.d.ts.map +1 -0
- package/dist/components/ui/database/table-view.js +157 -0
- package/dist/components/ui/database/table-view.js.map +1 -0
- package/dist/components/ui/date-picker.d.ts +40 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/date-picker.js +64 -0
- package/dist/components/ui/date-picker.js.map +1 -0
- package/dist/components/ui/date-time-picker.d.ts +21 -0
- package/dist/components/ui/date-time-picker.d.ts.map +1 -0
- package/dist/components/ui/date-time-picker.js +34 -0
- package/dist/components/ui/date-time-picker.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +21 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +63 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/document-layout.d.ts +15 -0
- package/dist/components/ui/document-layout.d.ts.map +1 -0
- package/dist/components/ui/document-layout.js +15 -0
- package/dist/components/ui/document-layout.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +24 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +65 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/editable-text.d.ts +24 -0
- package/dist/components/ui/editable-text.d.ts.map +1 -0
- package/dist/components/ui/editable-text.js +85 -0
- package/dist/components/ui/editable-text.js.map +1 -0
- package/dist/components/ui/empty-state.d.ts +11 -0
- package/dist/components/ui/empty-state.d.ts.map +1 -0
- package/dist/components/ui/empty-state.js +9 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/error-state.d.ts +20 -0
- package/dist/components/ui/error-state.d.ts.map +1 -0
- package/dist/components/ui/error-state.js +17 -0
- package/dist/components/ui/error-state.js.map +1 -0
- package/dist/components/ui/field-button.d.ts +15 -0
- package/dist/components/ui/field-button.d.ts.map +1 -0
- package/dist/components/ui/field-button.js +18 -0
- package/dist/components/ui/field-button.js.map +1 -0
- package/dist/components/ui/file-preview.d.ts +5 -0
- package/dist/components/ui/file-preview.d.ts.map +1 -0
- package/dist/components/ui/file-preview.js +66 -0
- package/dist/components/ui/file-preview.js.map +1 -0
- package/dist/components/ui/file-uploader.d.ts +39 -0
- package/dist/components/ui/file-uploader.d.ts.map +1 -0
- package/dist/components/ui/file-uploader.js +111 -0
- package/dist/components/ui/file-uploader.js.map +1 -0
- package/dist/components/ui/filter-builder.d.ts +18 -0
- package/dist/components/ui/filter-builder.d.ts.map +1 -0
- package/dist/components/ui/filter-builder.js +98 -0
- package/dist/components/ui/filter-builder.js.map +1 -0
- package/dist/components/ui/focus-shell.d.ts +14 -0
- package/dist/components/ui/focus-shell.d.ts.map +1 -0
- package/dist/components/ui/focus-shell.js +13 -0
- package/dist/components/ui/focus-shell.js.map +1 -0
- package/dist/components/ui/handle-row.d.ts +25 -0
- package/dist/components/ui/handle-row.d.ts.map +1 -0
- package/dist/components/ui/handle-row.js +110 -0
- package/dist/components/ui/handle-row.js.map +1 -0
- package/dist/components/ui/header-bar.d.ts +5 -0
- package/dist/components/ui/header-bar.d.ts.map +1 -0
- package/dist/components/ui/header-bar.js +10 -0
- package/dist/components/ui/header-bar.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +6 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +13 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/image-block.d.ts +31 -0
- package/dist/components/ui/image-block.d.ts.map +1 -0
- package/dist/components/ui/image-block.js +103 -0
- package/dist/components/ui/image-block.js.map +1 -0
- package/dist/components/ui/image-card.d.ts +17 -0
- package/dist/components/ui/image-card.d.ts.map +1 -0
- package/dist/components/ui/image-card.js +39 -0
- package/dist/components/ui/image-card.js.map +1 -0
- package/dist/components/ui/image-framer.d.ts +24 -0
- package/dist/components/ui/image-framer.d.ts.map +1 -0
- package/dist/components/ui/image-framer.js +89 -0
- package/dist/components/ui/image-framer.js.map +1 -0
- package/dist/components/ui/image-viewer.d.ts +31 -0
- package/dist/components/ui/image-viewer.d.ts.map +1 -0
- package/dist/components/ui/image-viewer.js +114 -0
- package/dist/components/ui/image-viewer.js.map +1 -0
- package/dist/components/ui/image.d.ts +33 -0
- package/dist/components/ui/image.d.ts.map +1 -0
- package/dist/components/ui/image.js +61 -0
- package/dist/components/ui/image.js.map +1 -0
- package/dist/components/ui/index.d.ts +92 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/index.js +92 -0
- package/dist/components/ui/index.js.map +1 -0
- package/dist/components/ui/input.d.ts +75 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +245 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/link-block.d.ts +13 -0
- package/dist/components/ui/link-block.d.ts.map +1 -0
- package/dist/components/ui/link-block.js +21 -0
- package/dist/components/ui/link-block.js.map +1 -0
- package/dist/components/ui/list-detail.d.ts +23 -0
- package/dist/components/ui/list-detail.d.ts.map +1 -0
- package/dist/components/ui/list-detail.js +33 -0
- package/dist/components/ui/list-detail.js.map +1 -0
- package/dist/components/ui/listbox.d.ts +7 -0
- package/dist/components/ui/listbox.d.ts.map +1 -0
- package/dist/components/ui/listbox.js +29 -0
- package/dist/components/ui/listbox.js.map +1 -0
- package/dist/components/ui/mac-card.d.ts +15 -0
- package/dist/components/ui/mac-card.d.ts.map +1 -0
- package/dist/components/ui/mac-card.js +9 -0
- package/dist/components/ui/mac-card.js.map +1 -0
- package/dist/components/ui/month-picker.d.ts +13 -0
- package/dist/components/ui/month-picker.d.ts.map +1 -0
- package/dist/components/ui/month-picker.js +53 -0
- package/dist/components/ui/month-picker.js.map +1 -0
- package/dist/components/ui/multi-select.d.ts +22 -0
- package/dist/components/ui/multi-select.d.ts.map +1 -0
- package/dist/components/ui/multi-select.js +88 -0
- package/dist/components/ui/multi-select.js.map +1 -0
- package/dist/components/ui/nav-tree.d.ts +16 -0
- package/dist/components/ui/nav-tree.d.ts.map +1 -0
- package/dist/components/ui/nav-tree.js +41 -0
- package/dist/components/ui/nav-tree.js.map +1 -0
- package/dist/components/ui/page.d.ts +23 -0
- package/dist/components/ui/page.d.ts.map +1 -0
- package/dist/components/ui/page.js +28 -0
- package/dist/components/ui/page.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +26 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +54 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/picker-panel.d.ts +13 -0
- package/dist/components/ui/picker-panel.d.ts.map +1 -0
- package/dist/components/ui/picker-panel.js +19 -0
- package/dist/components/ui/picker-panel.js.map +1 -0
- package/dist/components/ui/popover.d.ts +8 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +18 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +19 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +22 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/property.d.ts +11 -0
- package/dist/components/ui/property.d.ts.map +1 -0
- package/dist/components/ui/property.js +18 -0
- package/dist/components/ui/property.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +18 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/rating.d.ts +14 -0
- package/dist/components/ui/rating.d.ts.map +1 -0
- package/dist/components/ui/rating.js +61 -0
- package/dist/components/ui/rating.js.map +1 -0
- package/dist/components/ui/save-status.d.ts +8 -0
- package/dist/components/ui/save-status.d.ts.map +1 -0
- package/dist/components/ui/save-status.js +31 -0
- package/dist/components/ui/save-status.js.map +1 -0
- package/dist/components/ui/segmented.d.ts +21 -0
- package/dist/components/ui/segmented.d.ts.map +1 -0
- package/dist/components/ui/segmented.js +12 -0
- package/dist/components/ui/segmented.js.map +1 -0
- package/dist/components/ui/select-menu.d.ts +12 -0
- package/dist/components/ui/select-menu.d.ts.map +1 -0
- package/dist/components/ui/select-menu.js +10 -0
- package/dist/components/ui/select-menu.js.map +1 -0
- package/dist/components/ui/select.d.ts +16 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +45 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/selection-bar.d.ts +12 -0
- package/dist/components/ui/selection-bar.d.ts.map +1 -0
- package/dist/components/ui/selection-bar.js +15 -0
- package/dist/components/ui/selection-bar.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +12 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/settings-layout.d.ts +34 -0
- package/dist/components/ui/settings-layout.d.ts.map +1 -0
- package/dist/components/ui/settings-layout.js +16 -0
- package/dist/components/ui/settings-layout.js.map +1 -0
- package/dist/components/ui/share-link.d.ts +14 -0
- package/dist/components/ui/share-link.d.ts.map +1 -0
- package/dist/components/ui/share-link.js +16 -0
- package/dist/components/ui/share-link.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +21 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +53 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/sidebar.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/sidebar.js +258 -0
- package/dist/components/ui/sidebar.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +8 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +15 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +12 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +14 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/spotlight.d.ts +23 -0
- package/dist/components/ui/spotlight.d.ts.map +1 -0
- package/dist/components/ui/spotlight.js +110 -0
- package/dist/components/ui/spotlight.js.map +1 -0
- package/dist/components/ui/stat-tile.d.ts +8 -0
- package/dist/components/ui/stat-tile.d.ts.map +1 -0
- package/dist/components/ui/stat-tile.js +9 -0
- package/dist/components/ui/stat-tile.js.map +1 -0
- package/dist/components/ui/step-dialog.d.ts +20 -0
- package/dist/components/ui/step-dialog.d.ts.map +1 -0
- package/dist/components/ui/step-dialog.js +36 -0
- package/dist/components/ui/step-dialog.js.map +1 -0
- package/dist/components/ui/steps-layout.d.ts +20 -0
- package/dist/components/ui/steps-layout.d.ts.map +1 -0
- package/dist/components/ui/steps-layout.js +26 -0
- package/dist/components/ui/steps-layout.js.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +16 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +76 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +19 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/theme-toggle.d.ts +16 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -0
- package/dist/components/ui/theme-toggle.js +65 -0
- package/dist/components/ui/theme-toggle.js.map +1 -0
- package/dist/components/ui/time-list.d.ts +16 -0
- package/dist/components/ui/time-list.d.ts.map +1 -0
- package/dist/components/ui/time-list.js +49 -0
- package/dist/components/ui/time-list.js.map +1 -0
- package/dist/components/ui/time-picker.d.ts +47 -0
- package/dist/components/ui/time-picker.d.ts.map +1 -0
- package/dist/components/ui/time-picker.js +141 -0
- package/dist/components/ui/time-picker.js.map +1 -0
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +77 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +15 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +55 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +15 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +32 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/ui/top-bar.d.ts +25 -0
- package/dist/components/ui/top-bar.d.ts.map +1 -0
- package/dist/components/ui/top-bar.js +23 -0
- package/dist/components/ui/top-bar.js.map +1 -0
- package/dist/components/ui/typography.d.ts +40 -0
- package/dist/components/ui/typography.d.ts.map +1 -0
- package/dist/components/ui/typography.js +98 -0
- package/dist/components/ui/typography.js.map +1 -0
- package/dist/components/ui/video-block.d.ts +14 -0
- package/dist/components/ui/video-block.d.ts.map +1 -0
- package/dist/components/ui/video-block.js +22 -0
- package/dist/components/ui/video-block.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +5 -0
- package/dist/hooks/use-dismiss.d.ts.map +1 -0
- package/dist/hooks/use-dismiss.js +23 -0
- package/dist/hooks/use-dismiss.js.map +1 -0
- package/dist/hooks/use-escape-first.d.ts +3 -0
- package/dist/hooks/use-escape-first.d.ts.map +1 -0
- package/dist/hooks/use-escape-first.js +27 -0
- package/dist/hooks/use-escape-first.js.map +1 -0
- package/dist/hooks/use-media-query.d.ts +5 -0
- package/dist/hooks/use-media-query.d.ts.map +1 -0
- package/dist/hooks/use-media-query.js +16 -0
- package/dist/hooks/use-media-query.js.map +1 -0
- package/dist/hooks/use-save-queue.d.ts +13 -0
- package/dist/hooks/use-save-queue.d.ts.map +1 -0
- package/dist/hooks/use-save-queue.js +57 -0
- package/dist/hooks/use-save-queue.js.map +1 -0
- package/dist/hooks/use-selection.d.ts +10 -0
- package/dist/hooks/use-selection.d.ts.map +1 -0
- package/dist/hooks/use-selection.js +52 -0
- package/dist/hooks/use-selection.js.map +1 -0
- package/dist/hooks/use-shared-transition.d.ts +3 -0
- package/dist/hooks/use-shared-transition.d.ts.map +1 -0
- package/dist/hooks/use-shared-transition.js +38 -0
- package/dist/hooks/use-shared-transition.js.map +1 -0
- package/dist/hooks/use-upload-queue.d.ts +22 -0
- package/dist/hooks/use-upload-queue.d.ts.map +1 -0
- package/dist/hooks/use-upload-queue.js +78 -0
- package/dist/hooks/use-upload-queue.js.map +1 -0
- package/dist/lib/accent.d.ts +5 -0
- package/dist/lib/accent.d.ts.map +1 -0
- package/dist/lib/accent.js +10 -0
- package/dist/lib/accent.js.map +1 -0
- package/dist/lib/bento.d.ts +17 -0
- package/dist/lib/bento.d.ts.map +1 -0
- package/dist/lib/bento.js +92 -0
- package/dist/lib/bento.js.map +1 -0
- package/dist/lib/database.d.ts +92 -0
- package/dist/lib/database.d.ts.map +1 -0
- package/dist/lib/database.js +272 -0
- package/dist/lib/database.js.map +1 -0
- package/dist/lib/dates.d.ts +30 -0
- package/dist/lib/dates.d.ts.map +1 -0
- package/dist/lib/dates.js +61 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/document.d.ts +79 -0
- package/dist/lib/document.d.ts.map +1 -0
- package/dist/lib/document.js +11 -0
- package/dist/lib/document.js.map +1 -0
- package/dist/lib/embed.d.ts +14 -0
- package/dist/lib/embed.d.ts.map +1 -0
- package/dist/lib/embed.js +63 -0
- package/dist/lib/embed.js.map +1 -0
- package/dist/lib/files.d.ts +23 -0
- package/dist/lib/files.d.ts.map +1 -0
- package/dist/lib/files.js +69 -0
- package/dist/lib/files.js.map +1 -0
- package/dist/lib/justified.d.ts +50 -0
- package/dist/lib/justified.d.ts.map +1 -0
- package/dist/lib/justified.js +78 -0
- package/dist/lib/justified.js.map +1 -0
- package/dist/lib/keys.d.ts +18 -0
- package/dist/lib/keys.d.ts.map +1 -0
- package/dist/lib/keys.js +66 -0
- package/dist/lib/keys.js.map +1 -0
- package/dist/lib/number.d.ts +4 -0
- package/dist/lib/number.d.ts.map +1 -0
- package/dist/lib/number.js +33 -0
- package/dist/lib/number.js.map +1 -0
- package/dist/lib/pointer.d.ts +2 -0
- package/dist/lib/pointer.d.ts.map +1 -0
- package/dist/lib/pointer.js +4 -0
- package/dist/lib/pointer.js.map +1 -0
- package/dist/lib/prepare-image.d.ts +43 -0
- package/dist/lib/prepare-image.d.ts.map +1 -0
- package/dist/lib/prepare-image.js +105 -0
- package/dist/lib/prepare-image.js.map +1 -0
- package/dist/lib/rich-text-dom.d.ts +16 -0
- package/dist/lib/rich-text-dom.d.ts.map +1 -0
- package/dist/lib/rich-text-dom.js +145 -0
- package/dist/lib/rich-text-dom.js.map +1 -0
- package/dist/lib/rich-text.d.ts +15 -0
- package/dist/lib/rich-text.d.ts.map +1 -0
- package/dist/lib/rich-text.js +35 -0
- package/dist/lib/rich-text.js.map +1 -0
- package/dist/lib/spotlight.d.ts +22 -0
- package/dist/lib/spotlight.d.ts.map +1 -0
- package/dist/lib/spotlight.js +66 -0
- package/dist/lib/spotlight.js.map +1 -0
- package/dist/lib/theme.d.ts +6 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/lib/theme.js +15 -0
- package/dist/lib/theme.js.map +1 -0
- package/dist/lib/time.d.ts +19 -0
- package/dist/lib/time.d.ts.map +1 -0
- package/dist/lib/time.js +91 -0
- package/dist/lib/time.js.map +1 -0
- package/dist/lib/tree.d.ts +17 -0
- package/dist/lib/tree.d.ts.map +1 -0
- package/dist/lib/tree.js +35 -0
- package/dist/lib/tree.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +24 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles/notion.css +817 -0
- package/package.json +129 -5
- package/src/components/editor/block-text.tsx +271 -0
- package/src/components/editor/blocks.tsx +373 -0
- package/src/components/editor/document-editor.tsx +106 -0
- package/src/components/editor/document-view.tsx +205 -0
- package/src/components/editor/editor-state.tsx +298 -0
- package/src/components/editor/extensions/kit-blocks.tsx +452 -0
- package/src/components/editor/extensions/spoiler.tsx +81 -0
- package/src/components/editor/index.ts +10 -0
- package/src/components/editor/kinds.ts +158 -0
- package/src/components/editor/look.tsx +36 -0
- package/src/components/sketch/rough.tsx +90 -0
- package/src/components/three/model-viewer.tsx +514 -0
- package/src/components/ui/accent-picker.tsx +72 -0
- package/src/components/ui/address-field.tsx +57 -0
- package/src/components/ui/alert-dialog.tsx +136 -0
- package/src/components/ui/animated-height.tsx +34 -0
- package/src/components/ui/app-shell.tsx +140 -0
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +81 -0
- package/src/components/ui/banner.tsx +53 -0
- package/src/components/ui/breadcrumbs.tsx +25 -0
- package/src/components/ui/button.tsx +147 -0
- package/src/components/ui/calendar.tsx +101 -0
- package/src/components/ui/callout.tsx +61 -0
- package/src/components/ui/card.tsx +59 -0
- package/src/components/ui/checkbox.tsx +66 -0
- package/src/components/ui/choice-label.tsx +43 -0
- package/src/components/ui/collapsible.tsx +58 -0
- package/src/components/ui/collection-layout.tsx +69 -0
- package/src/components/ui/combobox.tsx +155 -0
- package/src/components/ui/command-menu.tsx +102 -0
- package/src/components/ui/context-menu.tsx +89 -0
- package/src/components/ui/copy-button.tsx +80 -0
- package/src/components/ui/database/calendar-view.tsx +180 -0
- package/src/components/ui/database/card-views.tsx +221 -0
- package/src/components/ui/database/cells.tsx +237 -0
- package/src/components/ui/database/database.tsx +279 -0
- package/src/components/ui/database/icons.ts +15 -0
- package/src/components/ui/database/table-view.tsx +311 -0
- package/src/components/ui/date-picker.tsx +208 -0
- package/src/components/ui/date-time-picker.tsx +123 -0
- package/src/components/ui/dialog.tsx +151 -0
- package/src/components/ui/document-layout.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +185 -0
- package/src/components/ui/editable-text.tsx +142 -0
- package/src/components/ui/empty-state.tsx +35 -0
- package/src/components/ui/error-state.tsx +67 -0
- package/src/components/ui/field-button.tsx +70 -0
- package/src/components/ui/file-preview.tsx +80 -0
- package/src/components/ui/file-uploader.tsx +375 -0
- package/src/components/ui/filter-builder.tsx +304 -0
- package/src/components/ui/focus-shell.tsx +48 -0
- package/src/components/ui/handle-row.tsx +252 -0
- package/src/components/ui/header-bar.tsx +15 -0
- package/src/components/ui/hover-card.tsx +30 -0
- package/src/components/ui/image-block.tsx +238 -0
- package/src/components/ui/image-card.tsx +95 -0
- package/src/components/ui/image-framer.tsx +160 -0
- package/src/components/ui/image-viewer.tsx +230 -0
- package/src/components/ui/image.tsx +200 -0
- package/src/components/ui/index.ts +178 -0
- package/src/components/ui/input.tsx +471 -0
- package/src/components/ui/link-block.tsx +85 -0
- package/src/components/ui/list-detail.tsx +115 -0
- package/src/components/ui/listbox.ts +26 -0
- package/src/components/ui/mac-card.tsx +46 -0
- package/src/components/ui/month-picker.tsx +119 -0
- package/src/components/ui/multi-select.tsx +221 -0
- package/src/components/ui/nav-tree.tsx +92 -0
- package/src/components/ui/page.tsx +73 -0
- package/src/components/ui/pagination.tsx +143 -0
- package/src/components/ui/picker-panel.tsx +69 -0
- package/src/components/ui/popover.tsx +42 -0
- package/src/components/ui/progress.tsx +76 -0
- package/src/components/ui/property.tsx +33 -0
- package/src/components/ui/radio-group.tsx +61 -0
- package/src/components/ui/rating.tsx +122 -0
- package/src/components/ui/save-status.tsx +53 -0
- package/src/components/ui/segmented.tsx +74 -0
- package/src/components/ui/select-menu.tsx +54 -0
- package/src/components/ui/select.tsx +147 -0
- package/src/components/ui/selection-bar.tsx +50 -0
- package/src/components/ui/separator.tsx +30 -0
- package/src/components/ui/settings-layout.tsx +117 -0
- package/src/components/ui/share-link.tsx +66 -0
- package/src/components/ui/sheet.tsx +90 -0
- package/src/components/ui/sidebar.tsx +627 -0
- package/src/components/ui/skeleton.tsx +22 -0
- package/src/components/ui/spinner.tsx +28 -0
- package/src/components/ui/spotlight.tsx +222 -0
- package/src/components/ui/stat-tile.tsx +25 -0
- package/src/components/ui/step-dialog.tsx +104 -0
- package/src/components/ui/steps-layout.tsx +91 -0
- package/src/components/ui/switch.tsx +55 -0
- package/src/components/ui/table.tsx +99 -0
- package/src/components/ui/tabs.tsx +41 -0
- package/src/components/ui/theme-toggle.tsx +80 -0
- package/src/components/ui/time-list.tsx +106 -0
- package/src/components/ui/time-picker.tsx +344 -0
- package/src/components/ui/toast.tsx +132 -0
- package/src/components/ui/toggle.tsx +76 -0
- package/src/components/ui/tooltip.tsx +78 -0
- package/src/components/ui/top-bar.tsx +118 -0
- package/src/components/ui/typography.tsx +204 -0
- package/src/components/ui/video-block.tsx +66 -0
- package/src/hooks/use-dismiss.ts +24 -0
- package/src/hooks/use-escape-first.ts +25 -0
- package/src/hooks/use-media-query.ts +23 -0
- package/src/hooks/use-save-queue.ts +78 -0
- package/src/hooks/use-selection.ts +51 -0
- package/src/hooks/use-shared-transition.ts +40 -0
- package/src/hooks/use-upload-queue.ts +111 -0
- package/src/lib/accent.ts +11 -0
- package/src/lib/bento.ts +87 -0
- package/src/lib/database.ts +322 -0
- package/src/lib/dates.ts +75 -0
- package/src/lib/document.ts +55 -0
- package/src/lib/embed.ts +62 -0
- package/src/lib/files.ts +73 -0
- package/src/lib/justified.ts +106 -0
- package/src/lib/keys.ts +72 -0
- package/src/lib/number.ts +29 -0
- package/src/lib/pointer.ts +3 -0
- package/src/lib/prepare-image.ts +141 -0
- package/src/lib/rich-text-dom.ts +138 -0
- package/src/lib/rich-text.ts +50 -0
- package/src/lib/spotlight.ts +78 -0
- package/src/lib/theme.ts +18 -0
- package/src/lib/time.ts +83 -0
- package/src/lib/tree.ts +41 -0
- package/src/lib/utils.ts +25 -0
- package/src/styles/notion.css +817 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type ViewerItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
/** The large picture. */
|
|
5
|
+
src: string;
|
|
6
|
+
/** A small one already on screen or in the cache, shown until the large one arrives. */
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
alt: string;
|
|
9
|
+
/** Width over height. Needed: the picture is sized from it before it loads. */
|
|
10
|
+
aspect: number;
|
|
11
|
+
};
|
|
12
|
+
export declare function ImageViewer({ items, id, onShow, onClose, title, toolbar, panel, panelOpen, overlay, modal, transitionName, filter, className, }: {
|
|
13
|
+
items: ViewerItem[];
|
|
14
|
+
/** Which item is showing. */
|
|
15
|
+
id: string;
|
|
16
|
+
onShow: (id: string) => void;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
/** For screen readers; defaults to the item's alt text. */
|
|
19
|
+
title?: string;
|
|
20
|
+
toolbar?: ReactNode;
|
|
21
|
+
panel?: ReactNode;
|
|
22
|
+
panelOpen?: boolean;
|
|
23
|
+
/** Anything to lay over the picture's area: a label, a notice. */
|
|
24
|
+
overlay?: ReactNode;
|
|
25
|
+
modal?: boolean;
|
|
26
|
+
transitionName?: string;
|
|
27
|
+
/** A CSS filter for the picture, eased when it changes. */
|
|
28
|
+
filter?: string;
|
|
29
|
+
className?: string;
|
|
30
|
+
}): import("react").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=image-viewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-viewer.d.ts","sourceRoot":"","sources":["../../../src/components/ui/image-viewer.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAmD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIxF,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAiBF,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,EAAE,EACF,MAAM,EACN,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,EACL,SAAiB,EACjB,OAAO,EACP,KAAY,EACZ,cAAc,EACd,MAAM,EACN,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAmKA"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
4
|
+
import { ChevronLeft, ChevronRight, ImageOff, X } from "lucide-react";
|
|
5
|
+
import { useEffect, useRef, useState } from "react";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { cn } from "../../lib/utils.js";
|
|
8
|
+
/* One picture at a time, as large as the room allows, with a way to the next:
|
|
9
|
+
a carousel that is also a lightbox.
|
|
10
|
+
|
|
11
|
+
- Left and right arrows step; each picture slides in from the side it came
|
|
12
|
+
from. Its neighbours are fetched ahead.
|
|
13
|
+
- The picture is sized with container units from its aspect ratio, so it
|
|
14
|
+
fills the space both ways without distorting and before it has loaded.
|
|
15
|
+
- `toolbar` goes at the right of the header, `panel` beside the picture.
|
|
16
|
+
The panel slides open and shut like a sidebar; you own `panelOpen`.
|
|
17
|
+
- `transitionName` puts a view-transition name on the picture, so opening
|
|
18
|
+
and closing can grow it out of, and shrink it into, the element it was
|
|
19
|
+
opened from (see `useSharedTransition`).
|
|
20
|
+
- Pass `modal={false}` and a `className` with an inset to lay it beside a
|
|
21
|
+
sidebar that should stay usable; keys typed into a field elsewhere are
|
|
22
|
+
ignored either way. */
|
|
23
|
+
export function ImageViewer({ items, id, onShow, onClose, title, toolbar, panel, panelOpen = false, overlay, modal = true, transitionName, filter, className, }) {
|
|
24
|
+
const index = items.findIndex((item) => item.id === id);
|
|
25
|
+
const item = items[index];
|
|
26
|
+
const before = index > 0 ? items[index - 1] : undefined;
|
|
27
|
+
const after = index !== -1 ? items[index + 1] : undefined;
|
|
28
|
+
// Which way the last step went, so the new picture arrives from that side.
|
|
29
|
+
const last = useRef(index);
|
|
30
|
+
const from = index >= last.current ? 1 : -1;
|
|
31
|
+
const stepped = last.current !== index;
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
last.current = index;
|
|
34
|
+
}, [index]);
|
|
35
|
+
// Opening: the first picture grows into place, unless a view transition is
|
|
36
|
+
// already carrying it in from a thumbnail (then that is the animation).
|
|
37
|
+
const opening = useRef(true);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
opening.current = false;
|
|
40
|
+
}, []);
|
|
41
|
+
const growIn = opening.current && !stepped && transitionName === undefined;
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
const onKey = (event) => {
|
|
44
|
+
const target = event.target;
|
|
45
|
+
// A slider is not typing: the arrows still step from it.
|
|
46
|
+
const slider = target instanceof HTMLInputElement && target.type === "range";
|
|
47
|
+
if (target !== null && !slider && (target.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(target.tagName)))
|
|
48
|
+
return;
|
|
49
|
+
if (event.metaKey || event.ctrlKey || event.altKey)
|
|
50
|
+
return;
|
|
51
|
+
if (event.key === "ArrowLeft" && before !== undefined)
|
|
52
|
+
onShow(before.id);
|
|
53
|
+
else if (event.key === "ArrowRight" && after !== undefined)
|
|
54
|
+
onShow(after.id);
|
|
55
|
+
else if (event.key === "Home" && index > 0)
|
|
56
|
+
onShow(items[0].id);
|
|
57
|
+
else if (event.key === "End" && index !== -1 && index < items.length - 1)
|
|
58
|
+
onShow(items[items.length - 1].id);
|
|
59
|
+
};
|
|
60
|
+
window.addEventListener("keydown", onKey);
|
|
61
|
+
return () => window.removeEventListener("keydown", onKey);
|
|
62
|
+
});
|
|
63
|
+
// The neighbours are the likeliest next request; have them in the cache.
|
|
64
|
+
useEffect(() => {
|
|
65
|
+
for (const next of [after, before])
|
|
66
|
+
if (next !== undefined)
|
|
67
|
+
new window.Image().src = next.src;
|
|
68
|
+
}, [before, after]);
|
|
69
|
+
// A swipe across the picture steps, on a touch screen: 48px sideways, more
|
|
70
|
+
// sideways than down, within half a second.
|
|
71
|
+
const swipe = useRef(null);
|
|
72
|
+
const [failed, setFailed] = useState(null);
|
|
73
|
+
// Shown on hover or focus; always where there is no hover (phones and tablets).
|
|
74
|
+
const arrow = "affordance absolute top-1/2 -translate-y-1/2 rounded-full bg-surface-overlay shadow-sm hover:bg-surface-overlay [@media(hover:none)]:opacity-100";
|
|
75
|
+
return (_jsx(DialogPrimitive.Root, { open: true, modal: modal, onOpenChange: (open) => !open && onClose(), children: _jsx(DialogPrimitive.Portal, { children: _jsxs(DialogPrimitive.Content, { "aria-describedby": undefined,
|
|
76
|
+
// Focus the sheet, not its first button: a focused button shows its
|
|
77
|
+
// tooltip, and the picture should be all there is to look at.
|
|
78
|
+
onOpenAutoFocus: (event) => {
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
event.currentTarget.focus();
|
|
81
|
+
},
|
|
82
|
+
// Not modal means a sidebar, a menu or a tray outside it may be
|
|
83
|
+
// used; using them must not close it.
|
|
84
|
+
onInteractOutside: (event) => !modal && event.preventDefault(), className: cn("fixed inset-0 z-(--z-overlay) flex flex-col bg-surface text-ink outline-none",
|
|
85
|
+
// The viewer's ground fades in as it opens.
|
|
86
|
+
transitionName === undefined && "data-[state=open]:animate-fade-in", className), children: [_jsx(DialogPrimitive.Title, { className: "sr-only", children: title ?? item?.alt ?? "Picture" }), _jsxs("header", { className: "flex h-12 shrink-0 items-center gap-1 px-2", children: [_jsx(Button, { variant: "ghost", size: "icon", "aria-label": "Close", onClick: onClose, children: _jsx(X, {}) }), _jsx("span", { "aria-live": "polite", className: "min-w-0 flex-1 truncate px-1 text-sm text-ink-secondary tabular-nums", children: index !== -1 && `${(index + 1).toLocaleString()} of ${items.length.toLocaleString()}` }), toolbar] }), _jsxs("div", { className: "flex min-h-0 flex-1 flex-col md:flex-row", children: [_jsxs("div", { className: "group relative flex min-h-0 min-w-0 flex-1 items-center justify-center p-3 [container-type:size] md:p-6 touch-pan-y", onPointerDown: (e) => {
|
|
87
|
+
if (e.pointerType !== "mouse")
|
|
88
|
+
swipe.current = { x: e.clientX, y: e.clientY, at: Date.now() };
|
|
89
|
+
}, onPointerUp: (e) => {
|
|
90
|
+
const s = swipe.current;
|
|
91
|
+
swipe.current = null;
|
|
92
|
+
if (!s || Date.now() - s.at > 500)
|
|
93
|
+
return;
|
|
94
|
+
const dx = e.clientX - s.x;
|
|
95
|
+
if (Math.abs(dx) < 48 || Math.abs(dx) < Math.abs(e.clientY - s.y))
|
|
96
|
+
return;
|
|
97
|
+
if (dx < 0 && after !== undefined)
|
|
98
|
+
onShow(after.id);
|
|
99
|
+
if (dx > 0 && before !== undefined)
|
|
100
|
+
onShow(before.id);
|
|
101
|
+
}, onPointerCancel: () => (swipe.current = null), children: [item !== undefined && failed === item.src && (_jsxs("span", { role: "img", "aria-label": `${item.alt} (could not be loaded)`, className: "flex flex-col items-center gap-2 text-ink-tertiary text-sm", children: [_jsx(ImageOff, { className: "size-6" }), "This picture couldn't be loaded"] })), item !== undefined && failed !== item.src && (_jsx("img", { src: item.src, alt: item.alt, draggable: false, onError: () => setFailed(item.src), style: {
|
|
102
|
+
width: `min(100cqw, calc(100cqh * ${item.aspect}))`,
|
|
103
|
+
aspectRatio: item.aspect,
|
|
104
|
+
backgroundImage: item.placeholder !== undefined ? `url(${item.placeholder})` : undefined,
|
|
105
|
+
backgroundSize: "cover",
|
|
106
|
+
viewTransitionName: transitionName,
|
|
107
|
+
filter: filter ?? "none",
|
|
108
|
+
"--from": from,
|
|
109
|
+
},
|
|
110
|
+
// Only a step slides in. The first picture may arrive by a
|
|
111
|
+
// view transition, and must not also slide.
|
|
112
|
+
className: cn("rounded-surface shadow-md transition-[filter] duration-(--duration-base) ease-out-notion", stepped ? "animate-step-in" : growIn && "animate-viewer-in") }, item.id)), overlay, before !== undefined && (_jsx(Button, { variant: "subtle", size: "icon", "aria-label": "Previous", onClick: () => onShow(before.id), className: cn(arrow, "left-3"), children: _jsx(ChevronLeft, {}) })), after !== undefined && (_jsx(Button, { variant: "subtle", size: "icon", "aria-label": "Next", onClick: () => onShow(after.id), className: cn(arrow, "right-3"), children: _jsx(ChevronRight, {}) }))] }), panel !== undefined && (_jsx("aside", { inert: !panelOpen, className: cn("shrink-0 overflow-hidden bg-surface-sunken transition-[width,max-height] duration-(--duration-base) ease-out-notion", "max-md:shadow-edge-t md:shadow-edge-l", panelOpen ? "max-md:max-h-[46dvh] md:w-80" : "max-md:max-h-0 md:w-0"), children: _jsx("div", { className: "h-full overflow-y-auto md:w-80", children: panel }) }))] })] }) }) }));
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=image-viewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-viewer.js","sourceRoot":"","sources":["../../../src/components/ui/image-viewer.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAsC,MAAM,OAAO,CAAC;AACxF,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,EAAE,EAAE,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IAAI;yCACA;wCAEtB,2DAA2D;wCAC3D,4CAA4C;wCAC5C,SAAS,EAAE,EAAE,CAAC,0FAA0F,EAAE,OAAO,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,IAAI,mBAAmB,CAAC,IAlBjK,IAAI,CAAC,EAAE,CAmBd,CACL,EACA,OAAO,EACP,MAAM,KAAK,SAAS,IAAI,CACrB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,gBAAY,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,YACvH,KAAC,WAAW,KAAG,GACV,CACZ,EACA,KAAK,KAAK,SAAS,IAAI,CACpB,KAAC,MAAM,IAAC,OAAO,EAAC,QAAQ,EAAC,IAAI,EAAC,MAAM,gBAAY,MAAM,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,YACnH,KAAC,YAAY,KAAG,GACX,CACZ,IACC,EAEL,KAAK,KAAK,SAAS,IAAI,CACpB,gBACI,KAAK,EAAE,CAAC,SAAS,EACjB,SAAS,EAAE,EAAE,CACT,qHAAqH,EACrH,uCAAuC,EACvC,SAAS,CAAC,CAAC,CAAC,8BAA8B,CAAC,CAAC,CAAC,uBAAuB,CACvE,YAGD,cAAK,SAAS,EAAC,gCAAgC,YAAE,KAAK,GAAO,GACzD,CACX,IACC,IACgB,GACL,GACN,CAC1B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ComponentProps, type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
export type ImageRatio = "square" | "portrait" | "landscape" | "wide" | "tall" | number;
|
|
3
|
+
export type ImageFocus = {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
zoom?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const ratioOf: (ratio: ImageRatio | undefined) => number | undefined;
|
|
9
|
+
/** The CSS that shows `focus` in a covering image: the same in Image and ImageFramer, so what is framed is what shows. */
|
|
10
|
+
export declare function focusStyle(focus: ImageFocus | undefined): CSSProperties | undefined;
|
|
11
|
+
export declare function Image({ src, alt, placeholder, ratio, aspect, fit, focus, icon, emptyLabel, backdrop, pending, className, imgClassName, style, onLoad, ...props }: Omit<ComponentProps<"img">, "placeholder" | "src"> & {
|
|
12
|
+
src?: string | null;
|
|
13
|
+
/** A very small version of the same picture, shown blurred while the real one loads. */
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
ratio?: ImageRatio;
|
|
16
|
+
/** Width over height; the same as a numeric `ratio`. */
|
|
17
|
+
aspect?: number;
|
|
18
|
+
fit?: "cover" | "contain";
|
|
19
|
+
/** Which part of a covering picture stays in view, 0 to 1 across and down; `zoom` from 1. */
|
|
20
|
+
focus?: ImageFocus;
|
|
21
|
+
/** Shown in the middle while loading (with no placeholder) and when there is no picture. */
|
|
22
|
+
icon?: ReactNode;
|
|
23
|
+
/** Words under the icon when there is no picture. */
|
|
24
|
+
emptyLabel?: ReactNode;
|
|
25
|
+
/** With `contain`, fill the room beside the picture with a blur of it. */
|
|
26
|
+
backdrop?: boolean;
|
|
27
|
+
/** A picture is on its way but its `src` is not known yet (still uploading,
|
|
28
|
+
still being fetched): shows the loading state, not the empty one. */
|
|
29
|
+
pending?: boolean;
|
|
30
|
+
/** Extra classes for the <img> itself; `className` goes on the box. */
|
|
31
|
+
imgClassName?: string;
|
|
32
|
+
}): import("react").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/components/ui/image.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,cAAc,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;4EACwE;IACxE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,+BAsHA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ImageIcon, ImageOff } from "lucide-react";
|
|
4
|
+
import { useRef, useState } from "react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
const RATIOS = { square: 1, portrait: 3 / 4, landscape: 4 / 3, wide: 16 / 9, tall: 9 / 16 };
|
|
7
|
+
export const ratioOf = (ratio) => (typeof ratio === "string" ? RATIOS[ratio] : ratio);
|
|
8
|
+
/** The CSS that shows `focus` in a covering image: the same in Image and ImageFramer, so what is framed is what shows. */
|
|
9
|
+
export function focusStyle(focus) {
|
|
10
|
+
if (!focus)
|
|
11
|
+
return undefined;
|
|
12
|
+
const x = `${(focus.x * 100).toFixed(2)}%`;
|
|
13
|
+
const y = `${(focus.y * 100).toFixed(2)}%`;
|
|
14
|
+
const zoom = focus.zoom ?? 1;
|
|
15
|
+
return { objectPosition: `${x} ${y}`, ...(zoom !== 1 ? { transform: `scale(${zoom})`, transformOrigin: `${x} ${y}` } : null) };
|
|
16
|
+
}
|
|
17
|
+
export function Image({ src, alt, placeholder, ratio, aspect, fit = "cover", focus, icon, emptyLabel, backdrop = true, pending = false, className, imgClassName, style, onLoad, ...props }) {
|
|
18
|
+
const [loaded, setLoaded] = useState(null);
|
|
19
|
+
// A picture on someone else's site can vanish; say so rather than leave an empty box.
|
|
20
|
+
const [failed, setFailed] = useState(null);
|
|
21
|
+
// The picture this Image first appeared with. Only that one, if the browser
|
|
22
|
+
// already has it, shows at once (scrolling back to a list); a picture that
|
|
23
|
+
// arrives later (an upload finishing, a new src) always sharpens in.
|
|
24
|
+
const first = useRef(src);
|
|
25
|
+
const shape = ratioOf(ratio) ?? aspect;
|
|
26
|
+
const box = { ...(shape !== undefined ? { aspectRatio: shape } : null), ...style };
|
|
27
|
+
const isLoaded = !!src && loaded === src;
|
|
28
|
+
// Nothing to show and nothing coming: the empty state. A placeholder, or
|
|
29
|
+
// `pending`, means a picture is on its way, which is the loading state.
|
|
30
|
+
if (!src && placeholder === undefined && !pending) {
|
|
31
|
+
return (_jsxs("span", { role: alt ? "img" : undefined, "aria-label": alt || undefined, className: cn("@container flex flex-col justify-center items-center gap-1.5 bg-surface-sunken p-1 text-caption text-center text-ink-tertiary", className), style: box, children: [_jsx("span", { "aria-hidden": true, className: "[&_svg]:size-5", children: icon ?? _jsx(ImageIcon, {}) }), emptyLabel !== undefined && _jsx("span", { className: "hidden @min-[9rem]:inline px-2", children: emptyLabel })] }));
|
|
32
|
+
}
|
|
33
|
+
if (src && failed === src) {
|
|
34
|
+
return (_jsxs("span", { role: "img", "aria-label": alt ? `${alt} (could not be loaded)` : "A picture that could not be loaded", className: cn("@container flex flex-col justify-center items-center gap-1.5 bg-surface-sunken p-1 text-caption text-center text-ink-tertiary", className), style: box, children: [_jsx(ImageOff, { className: "size-5 shrink-0" }), _jsx("span", { className: "hidden @min-[9rem]:inline px-2", children: "This picture couldn't be loaded" })] }));
|
|
35
|
+
}
|
|
36
|
+
const objectFit = fit === "cover" ? "object-cover" : "object-contain";
|
|
37
|
+
return (_jsxs("span", { className: cn("block relative bg-surface-sunken overflow-hidden", className), style: box, "data-loaded": isLoaded || undefined, children: [placeholder === undefined && (
|
|
38
|
+
// The loading pulse fades out as the picture comes in, rather than vanishing.
|
|
39
|
+
_jsx("span", { "aria-hidden": true, className: cn("absolute inset-0 flex justify-center items-center bg-tint-hover text-ink-tertiary [&_svg]:size-5", "transition-opacity duration-(--duration-reveal) ease-out-notion", isLoaded ? "opacity-0" : "animate-pulse motion-reduce:animate-none"), children: icon })), fit === "contain" && backdrop && (
|
|
40
|
+
// The same picture, blurred and dimmed, filling the room beside it.
|
|
41
|
+
_jsx("img", { src: placeholder ?? src ?? undefined, alt: "", "aria-hidden": true, draggable: false, className: cn("absolute inset-0 opacity-0 brightness-90 blur-xl w-full h-full object-cover scale-125 transition-opacity duration-(--duration-slow)", (isLoaded || placeholder) && "opacity-60") })), placeholder !== undefined && (
|
|
42
|
+
// Scaled up a touch so the blur's soft edge falls outside the box.
|
|
43
|
+
_jsx("img", { src: placeholder, alt: "", "aria-hidden": true, draggable: false,
|
|
44
|
+
// Fades out as the picture sharpens over it, a little behind it, so
|
|
45
|
+
// the blur hands over to the picture instead of a gap between them.
|
|
46
|
+
className: cn("absolute inset-0 w-full h-full scale-110 blur-lg transition-opacity duration-(--duration-reveal) ease-in-notion", objectFit, isLoaded && "opacity-0 delay-100") })), src && (_jsx("img", { ref: (img) => {
|
|
47
|
+
if (img?.complete && img.naturalWidth > 0 && img.getAttribute("src") === first.current)
|
|
48
|
+
setLoaded(img.getAttribute("src"));
|
|
49
|
+
}, src: src, alt: alt, decoding: "async", onLoad: (event) => {
|
|
50
|
+
// Two frames on, so the blurred starting state is painted first: a
|
|
51
|
+
// picture that loads before its first paint (a fast or local one)
|
|
52
|
+
// would otherwise jump straight to sharp, with nothing to ease from.
|
|
53
|
+
requestAnimationFrame(() => requestAnimationFrame(() => setLoaded(src)));
|
|
54
|
+
onLoad?.(event);
|
|
55
|
+
}, onError: () => setFailed(src), style: fit === "cover" ? focusStyle(focus) : undefined,
|
|
56
|
+
// It arrives blurred and a touch large, and sharpens into place as it
|
|
57
|
+
// fades up: the stand-in's blur clearing into the picture. (scale is its
|
|
58
|
+
// own property, so it does not disturb a focus's transform.)
|
|
59
|
+
className: cn("relative w-full h-full transition-[opacity,scale,filter] duration-(--duration-reveal) ease-out-notion", objectFit, isLoaded ? "opacity-100 blur-none scale-100" : "opacity-0 blur-lg scale-[1.04]", imgClassName), ...props }))] }));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources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@
|
|
|
1
|
+
export { Button, buttonVariants, type ButtonProps } from "./button.js";
|
|
2
|
+
export { Badge, TAG_COLORS, tagColorFor, type TagColor } from "./badge.js";
|
|
3
|
+
export { Callout } from "./callout.js";
|
|
4
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from "./card.js";
|
|
5
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter, DialogClose, } from "./dialog.js";
|
|
6
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./dropdown-menu.js";
|
|
7
|
+
export { Input, Textarea, Label, Field, SearchField, useField, fieldVariants, type InputProps } from "./input.js";
|
|
8
|
+
export { Separator } from "./separator.js";
|
|
9
|
+
export { Tooltip, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent, } from "./tooltip.js";
|
|
10
|
+
export { Heading, Text, Code, Kbd, Prose, Shortcut, usePlatform } from "./typography.js";
|
|
11
|
+
export { ThemeProvider, ThemeToggle, useTheme } from "./theme-toggle.js";
|
|
12
|
+
export { MacCard, MacWindowHeader } from "./mac-card.js";
|
|
13
|
+
export { DropdownMenuRadioGroup, DropdownMenuRadioItem } from "./dropdown-menu.js";
|
|
14
|
+
export { Checkbox } from "./checkbox.js";
|
|
15
|
+
export { SelectMenu } from "./select-menu.js";
|
|
16
|
+
export { AccentPicker } from "./accent-picker.js";
|
|
17
|
+
export { Property, PropertyList, QuietInput, NumberInput, quietField } from "./property.js";
|
|
18
|
+
export { StatTile } from "./stat-tile.js";
|
|
19
|
+
export { Progress, ProgressBar } from "./progress.js";
|
|
20
|
+
export { Table, TableCaption, Th, Td, ClickableRow } from "./table.js";
|
|
21
|
+
export { Breadcrumbs, type Crumb } from "./breadcrumbs.js";
|
|
22
|
+
export { NavTree, type NavNode } from "./nav-tree.js";
|
|
23
|
+
export { AppShell, SidebarFrame, SidebarSection, type ShellControls } from "./app-shell.js";
|
|
24
|
+
export { EditableText } from "./editable-text.js";
|
|
25
|
+
export { CommandMenu, type Command } from "./command-menu.js";
|
|
26
|
+
export { DragRows, HandleRow, type DropSide } from "./handle-row.js";
|
|
27
|
+
export { toggleSidebar } from "./app-shell.js";
|
|
28
|
+
export { Image, focusStyle, ratioOf, type ImageFocus, type ImageRatio } from "./image.js";
|
|
29
|
+
export { ImageFramer, clampFocus, dragFocus, ZOOMS } from "./image-framer.js";
|
|
30
|
+
export { ImageCard, ImageCardButton, ImageCardBadge } from "./image-card.js";
|
|
31
|
+
export { ImageViewer, type ViewerItem } from "./image-viewer.js";
|
|
32
|
+
export { Stepper, StepDialog } from "./step-dialog.js";
|
|
33
|
+
export { SelectionBar } from "./selection-bar.js";
|
|
34
|
+
export { Segmented, type SegmentedOption } from "./segmented.js";
|
|
35
|
+
export { Page, PageHeader, Section } from "./page.js";
|
|
36
|
+
export { FilePreview } from "./file-preview.js";
|
|
37
|
+
export { FileDropArea, FileUploader } from "./file-uploader.js";
|
|
38
|
+
export { Popover, PopoverTrigger, PopoverAnchor, PopoverClose, PopoverContent } from "./popover.js";
|
|
39
|
+
export { FieldButton, type FieldButtonProps } from "./field-button.js";
|
|
40
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem, SelectLabel, SelectSeparator, NativeSelect } from "./select.js";
|
|
41
|
+
export { Calendar, focusCalendarDay } from "./calendar.js";
|
|
42
|
+
export { DatePicker, DateRangePicker, type DatePickerProps, type DateRangePickerProps, type DateRange } from "./date-picker.js";
|
|
43
|
+
export { TimePicker, TimeRangePicker, type TimePickerProps } from "./time-picker.js";
|
|
44
|
+
export { TimeList } from "./time-list.js";
|
|
45
|
+
export { MonthPicker, type MonthPickerProps } from "./month-picker.js";
|
|
46
|
+
export { PickerPanel } from "./picker-panel.js";
|
|
47
|
+
export { DateTimePicker, type DateTimePickerProps } from "./date-time-picker.js";
|
|
48
|
+
export { ImageBlock, MIN_IMAGE_WIDTH } from "./image-block.js";
|
|
49
|
+
export { VideoBlock } from "./video-block.js";
|
|
50
|
+
export { LinkBlock } from "./link-block.js";
|
|
51
|
+
export { AddressField } from "./address-field.js";
|
|
52
|
+
export { Spotlight, useSpotlightShortcut, type SpotlightItem } from "./spotlight.js";
|
|
53
|
+
export { ToastProvider, useToast, type Toast, type ToastTone } from "./toast.js";
|
|
54
|
+
export { Combobox } from "./combobox.js";
|
|
55
|
+
export { AnimatedHeight } from "./animated-height.js";
|
|
56
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./sidebar.js";
|
|
57
|
+
export { Spinner } from "./spinner.js";
|
|
58
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants } from "./toggle.js";
|
|
59
|
+
export { Switch } from "./switch.js";
|
|
60
|
+
export { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
61
|
+
export { MultiSelect, type MultiSelectOption } from "./multi-select.js";
|
|
62
|
+
export { Avatar, AvatarStack, initials, type AvatarProps } from "./avatar.js";
|
|
63
|
+
export { Skeleton, SkeletonText } from "./skeleton.js";
|
|
64
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, Disclosure } from "./collapsible.js";
|
|
65
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from "./tabs.js";
|
|
66
|
+
export { EmptyState } from "./empty-state.js";
|
|
67
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, ConfirmProvider, useConfirm, type ConfirmOptions, } from "./alert-dialog.js";
|
|
68
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuRadioGroup, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, } from "./context-menu.js";
|
|
69
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter } from "./sheet.js";
|
|
70
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from "./hover-card.js";
|
|
71
|
+
export { HeaderBar } from "./header-bar.js";
|
|
72
|
+
export { TopBarShell, type TopBarLink } from "./top-bar.js";
|
|
73
|
+
export { FocusShell } from "./focus-shell.js";
|
|
74
|
+
export { DocumentLayout, Breakout } from "./document-layout.js";
|
|
75
|
+
export { CollectionLayout, CollectionToolbar } from "./collection-layout.js";
|
|
76
|
+
export { ListDetail, ListItem } from "./list-detail.js";
|
|
77
|
+
export { SettingsLayout, SettingsSection, SettingsRow, type SettingsSectionLink } from "./settings-layout.js";
|
|
78
|
+
export { StepsLayout } from "./steps-layout.js";
|
|
79
|
+
export { Rating } from "./rating.js";
|
|
80
|
+
export { CopyButton, copyText } from "./copy-button.js";
|
|
81
|
+
export { ShareLink } from "./share-link.js";
|
|
82
|
+
export { Banner } from "./banner.js";
|
|
83
|
+
export { SaveStatus, type SaveState } from "./save-status.js";
|
|
84
|
+
export { ErrorState, NotFound } from "./error-state.js";
|
|
85
|
+
export { Pagination, LoadMore, pageWindow } from "./pagination.js";
|
|
86
|
+
export { FilterBuilder, SortBuilder, FilterButton, SortButton } from "./filter-builder.js";
|
|
87
|
+
export { Database, VIEW_ICONS } from "./database/database.js";
|
|
88
|
+
export { TableView } from "./database/table-view.js";
|
|
89
|
+
export { BoardView, GalleryView, ListView } from "./database/card-views.js";
|
|
90
|
+
export { CalendarView } from "./database/calendar-view.js";
|
|
91
|
+
export { CellEditor, CellValue } from "./database/cells.js";
|
|
92
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACxE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EACH,IAAI,EACJ,UAAU,EACV,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACH,MAAM,EACN,aAAa,EACb,aAAa,EACb,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,YAAY,EACZ,WAAW,GACd,MAAM,cAAc,CAAC;AACtB,OAAO,EACH,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EACH,OAAO,EACP,eAAe,EACf,WAAW,EACX,cAAc,EACd,cAAc,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,E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,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export { Button, buttonVariants } from "./button.js";
|
|
2
|
+
export { Badge, TAG_COLORS, tagColorFor } from "./badge.js";
|
|
3
|
+
export { Callout } from "./callout.js";
|
|
4
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from "./card.js";
|
|
5
|
+
export { Dialog, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogBody, DialogFooter, DialogClose, } from "./dialog.js";
|
|
6
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./dropdown-menu.js";
|
|
7
|
+
export { Input, Textarea, Label, Field, SearchField, useField, fieldVariants } from "./input.js";
|
|
8
|
+
export { Separator } from "./separator.js";
|
|
9
|
+
export { Tooltip, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipContent, } from "./tooltip.js";
|
|
10
|
+
export { Heading, Text, Code, Kbd, Prose, Shortcut, usePlatform } from "./typography.js";
|
|
11
|
+
export { ThemeProvider, ThemeToggle, useTheme } from "./theme-toggle.js";
|
|
12
|
+
export { MacCard, MacWindowHeader } from "./mac-card.js";
|
|
13
|
+
export { DropdownMenuRadioGroup, DropdownMenuRadioItem } from "./dropdown-menu.js";
|
|
14
|
+
export { Checkbox } from "./checkbox.js";
|
|
15
|
+
export { SelectMenu } from "./select-menu.js";
|
|
16
|
+
export { AccentPicker } from "./accent-picker.js";
|
|
17
|
+
export { Property, PropertyList, QuietInput, NumberInput, quietField } from "./property.js";
|
|
18
|
+
export { StatTile } from "./stat-tile.js";
|
|
19
|
+
export { Progress, ProgressBar } from "./progress.js";
|
|
20
|
+
export { Table, TableCaption, Th, Td, ClickableRow } from "./table.js";
|
|
21
|
+
export { Breadcrumbs } from "./breadcrumbs.js";
|
|
22
|
+
export { NavTree } from "./nav-tree.js";
|
|
23
|
+
export { AppShell, SidebarFrame, SidebarSection } from "./app-shell.js";
|
|
24
|
+
export { EditableText } from "./editable-text.js";
|
|
25
|
+
export { CommandMenu } from "./command-menu.js";
|
|
26
|
+
export { DragRows, HandleRow } from "./handle-row.js";
|
|
27
|
+
export { toggleSidebar } from "./app-shell.js";
|
|
28
|
+
export { Image, focusStyle, ratioOf } from "./image.js";
|
|
29
|
+
export { ImageFramer, clampFocus, dragFocus, ZOOMS } from "./image-framer.js";
|
|
30
|
+
export { ImageCard, ImageCardButton, ImageCardBadge } from "./image-card.js";
|
|
31
|
+
export { ImageViewer } from "./image-viewer.js";
|
|
32
|
+
export { Stepper, StepDialog } from "./step-dialog.js";
|
|
33
|
+
export { SelectionBar } from "./selection-bar.js";
|
|
34
|
+
export { Segmented } from "./segmented.js";
|
|
35
|
+
export { Page, PageHeader, Section } from "./page.js";
|
|
36
|
+
export { FilePreview } from "./file-preview.js";
|
|
37
|
+
export { FileDropArea, FileUploader } from "./file-uploader.js";
|
|
38
|
+
export { Popover, PopoverTrigger, PopoverAnchor, PopoverClose, PopoverContent } from "./popover.js";
|
|
39
|
+
export { FieldButton } from "./field-button.js";
|
|
40
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectItem, SelectLabel, SelectSeparator, NativeSelect } from "./select.js";
|
|
41
|
+
export { Calendar, focusCalendarDay } from "./calendar.js";
|
|
42
|
+
export { DatePicker, DateRangePicker } from "./date-picker.js";
|
|
43
|
+
export { TimePicker, TimeRangePicker } from "./time-picker.js";
|
|
44
|
+
export { TimeList } from "./time-list.js";
|
|
45
|
+
export { MonthPicker } from "./month-picker.js";
|
|
46
|
+
export { PickerPanel } from "./picker-panel.js";
|
|
47
|
+
export { DateTimePicker } from "./date-time-picker.js";
|
|
48
|
+
export { ImageBlock, MIN_IMAGE_WIDTH } from "./image-block.js";
|
|
49
|
+
export { VideoBlock } from "./video-block.js";
|
|
50
|
+
export { LinkBlock } from "./link-block.js";
|
|
51
|
+
export { AddressField } from "./address-field.js";
|
|
52
|
+
export { Spotlight, useSpotlightShortcut } from "./spotlight.js";
|
|
53
|
+
export { ToastProvider, useToast } from "./toast.js";
|
|
54
|
+
export { Combobox } from "./combobox.js";
|
|
55
|
+
export { AnimatedHeight } from "./animated-height.js";
|
|
56
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, } from "./sidebar.js";
|
|
57
|
+
export { Spinner } from "./spinner.js";
|
|
58
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, toggleVariants } from "./toggle.js";
|
|
59
|
+
export { Switch } from "./switch.js";
|
|
60
|
+
export { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
61
|
+
export { MultiSelect } from "./multi-select.js";
|
|
62
|
+
export { Avatar, AvatarStack, initials } from "./avatar.js";
|
|
63
|
+
export { Skeleton, SkeletonText } from "./skeleton.js";
|
|
64
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, Disclosure } from "./collapsible.js";
|
|
65
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from "./tabs.js";
|
|
66
|
+
export { EmptyState } from "./empty-state.js";
|
|
67
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, ConfirmProvider, useConfirm, } from "./alert-dialog.js";
|
|
68
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuRadioGroup, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, } from "./context-menu.js";
|
|
69
|
+
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter } from "./sheet.js";
|
|
70
|
+
export { HoverCard, HoverCardTrigger, HoverCardContent } from "./hover-card.js";
|
|
71
|
+
export { HeaderBar } from "./header-bar.js";
|
|
72
|
+
export { TopBarShell } from "./top-bar.js";
|
|
73
|
+
export { FocusShell } from "./focus-shell.js";
|
|
74
|
+
export { DocumentLayout, Breakout } from "./document-layout.js";
|
|
75
|
+
export { CollectionLayout, CollectionToolbar } from "./collection-layout.js";
|
|
76
|
+
export { ListDetail, ListItem } from "./list-detail.js";
|
|
77
|
+
export { SettingsLayout, SettingsSection, SettingsRow } from "./settings-layout.js";
|
|
78
|
+
export { StepsLayout } from "./steps-layout.js";
|
|
79
|
+
export { Rating } from "./rating.js";
|
|
80
|
+
export { CopyButton, copyText } from "./copy-button.js";
|
|
81
|
+
export { ShareLink } from "./share-link.js";
|
|
82
|
+
export { Banner } from "./banner.js";
|
|
83
|
+
export { SaveStatus } from "./save-status.js";
|
|
84
|
+
export { ErrorState, NotFound } from "./error-state.js";
|
|
85
|
+
export { Pagination, LoadMore, pageWindow } from "./pagination.js";
|
|
86
|
+
export { FilterBuilder, SortBuilder, FilterButton, SortButton } from "./filter-builder.js";
|
|
87
|
+
export { Database, VIEW_ICONS } from "./database/database.js";
|
|
88
|
+
export { TableView } from "./database/table-view.js";
|
|
89
|
+
export { BoardView, GalleryView, ListView } from "./database/card-views.js";
|
|
90
|
+
export { CalendarView } from "./database/calendar-view.js";
|
|
91
|
+
export { CellEditor, CellValue } from "./database/cells.js";
|
|
92
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":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AE,MAAM,iBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAmB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAmB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAkB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAsB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,wBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,0BAA2B,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA8B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAsB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import { type ComponentProps, type ReactNode } from "react";
|
|
3
|
+
type FieldState = {
|
|
4
|
+
id: string;
|
|
5
|
+
labelId: string;
|
|
6
|
+
describedBy?: string;
|
|
7
|
+
invalid: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/** For a control inside a Field: its id, description, and invalid, required and disabled states. Null outside a Field. */
|
|
12
|
+
export declare const useField: () => FieldState | null;
|
|
13
|
+
declare function fromField<P extends {
|
|
14
|
+
id?: string;
|
|
15
|
+
"aria-describedby"?: string;
|
|
16
|
+
"aria-invalid"?: unknown;
|
|
17
|
+
required?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
}>(field: FieldState | null, props: P): P;
|
|
20
|
+
export declare function Label({ className, required, children, ...props }: ComponentProps<"label"> & {
|
|
21
|
+
required?: boolean;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
/** A label, a control, and a hint or an error, wired together: the label names the control, the hint and error describe it, an error marks it invalid and is announced. */
|
|
24
|
+
export declare function Field({ label, hint, error, htmlFor, required, disabled, children, className, }: {
|
|
25
|
+
label?: ReactNode;
|
|
26
|
+
hint?: ReactNode;
|
|
27
|
+
/** Replaces the hint while present, marks the control invalid, and is announced. */
|
|
28
|
+
error?: ReactNode;
|
|
29
|
+
/** The control's id; one is made when it is not given. */
|
|
30
|
+
htmlFor?: string;
|
|
31
|
+
required?: boolean;
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
className?: string;
|
|
35
|
+
}): import("react").JSX.Element;
|
|
36
|
+
declare const controlVariants: (props?: ({
|
|
37
|
+
variant?: "field" | "quiet" | null | undefined;
|
|
38
|
+
size?: "md" | "sm" | "lg" | null | undefined;
|
|
39
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
40
|
+
type Look = VariantProps<typeof controlVariants>;
|
|
41
|
+
/** The classes of a text field, for a control the kit does not provide (a native select, a button that opens a picker). */
|
|
42
|
+
export declare const fieldBase: string;
|
|
43
|
+
/** The same, at any variant and size. */
|
|
44
|
+
export declare const fieldVariants: (props?: ({
|
|
45
|
+
variant?: "field" | "quiet" | null | undefined;
|
|
46
|
+
size?: "md" | "sm" | "lg" | null | undefined;
|
|
47
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
48
|
+
/** What a control takes from the Field around it, unless it was given its own: id, description, invalid, required, disabled. */
|
|
49
|
+
export { fromField };
|
|
50
|
+
export type InputProps = Omit<ComponentProps<"input">, "size"> & Look & {
|
|
51
|
+
/** Something before the text, inside the field: an icon, a "$". */
|
|
52
|
+
start?: ReactNode;
|
|
53
|
+
/** Something after it: a unit, a button. */
|
|
54
|
+
end?: ReactNode;
|
|
55
|
+
};
|
|
56
|
+
export declare function Input({ className, type, variant, size, start, end, ...props }: InputProps): import("react").JSX.Element;
|
|
57
|
+
/** Input's quiet variant: no well until hovered or focused, for a record's properties. */
|
|
58
|
+
export declare function QuietInput(props: Omit<InputProps, "variant">): import("react").JSX.Element;
|
|
59
|
+
export declare function Textarea({ className, variant, size, rows, autoGrow, maxRows, ref, onInput, ...props }: Omit<ComponentProps<"textarea">, "size"> & Look & {
|
|
60
|
+
/** Grow with the text, from `rows` up to `maxRows`, then scroll. */
|
|
61
|
+
autoGrow?: boolean;
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
}): import("react").JSX.Element;
|
|
64
|
+
export declare function NumberInput({ value, onChange, min, max, step, variant, size, className, onBlur, onKeyDown, onFocus, ...props }: Omit<InputProps, "value" | "onChange" | "defaultValue" | "min" | "max" | "step" | "type"> & {
|
|
65
|
+
value: number | undefined;
|
|
66
|
+
onChange: (value: number | undefined) => void;
|
|
67
|
+
min?: number;
|
|
68
|
+
max?: number;
|
|
69
|
+
step?: number;
|
|
70
|
+
}): import("react").JSX.Element;
|
|
71
|
+
export declare function SearchField({ value, onChange, placeholder, "aria-label": label, size, variant, className, onKeyDown, ...props }: Omit<InputProps, "value" | "onChange" | "type" | "start" | "end"> & {
|
|
72
|
+
value: string;
|
|
73
|
+
onChange: (value: string) => void;
|
|
74
|
+
}): import("react").JSX.Element;
|
|
75
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAQH,KAAK,cAAc,EACnB,KAAK,SAAS,EAEjB,MAAM,OAAO,CAAC;AAmBf,KAAK,UAAU,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;I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