@kujoforall/paper-ui 0.1.0 → 0.2.1
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 +94 -0
- package/README.md +50 -7
- package/dist/components/editor/block-text.d.ts.map +1 -1
- package/dist/components/editor/block-text.js +52 -17
- package/dist/components/editor/block-text.js.map +1 -1
- package/dist/components/editor/blocks.d.ts.map +1 -1
- package/dist/components/editor/blocks.js +17 -13
- package/dist/components/editor/blocks.js.map +1 -1
- package/dist/components/editor/document-editor.d.ts.map +1 -1
- package/dist/components/editor/document-editor.js +4 -2
- package/dist/components/editor/document-editor.js.map +1 -1
- package/dist/components/editor/document-view.d.ts.map +1 -1
- package/dist/components/editor/document-view.js +17 -12
- package/dist/components/editor/document-view.js.map +1 -1
- package/dist/components/editor/editor-state.d.ts +7 -0
- package/dist/components/editor/editor-state.d.ts.map +1 -1
- package/dist/components/editor/editor-state.js +28 -3
- package/dist/components/editor/editor-state.js.map +1 -1
- 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.map +1 -1
- package/dist/components/editor/extensions/spoiler.js +2 -2
- package/dist/components/editor/extensions/spoiler.js.map +1 -1
- package/dist/components/editor/index.d.ts +1 -0
- package/dist/components/editor/index.d.ts.map +1 -1
- package/dist/components/editor/index.js +1 -0
- package/dist/components/editor/index.js.map +1 -1
- package/dist/components/editor/kinds.js +1 -1
- package/dist/components/editor/kinds.js.map +1 -1
- 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/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.js +1 -1
- package/dist/components/ui/accent-picker.js.map +1 -1
- 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 +1 -0
- package/dist/components/ui/app-shell.d.ts.map +1 -1
- package/dist/components/ui/app-shell.js +5 -3
- package/dist/components/ui/app-shell.js.map +1 -1
- 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 +3 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/badge.js.map +1 -1
- 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.js +1 -1
- package/dist/components/ui/breadcrumbs.js.map +1 -1
- package/dist/components/ui/button.d.ts +8 -6
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +91 -26
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +6 -5
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/callout.d.ts +23 -4
- package/dist/components/ui/callout.d.ts.map +1 -1
- package/dist/components/ui/callout.js +28 -15
- package/dist/components/ui/callout.js.map +1 -1
- package/dist/components/ui/card.d.ts +13 -8
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +10 -9
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +9 -4
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +25 -5
- package/dist/components/ui/checkbox.js.map +1 -1
- 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 +5 -2
- package/dist/components/ui/command-menu.d.ts.map +1 -1
- package/dist/components/ui/command-menu.js +31 -6
- package/dist/components/ui/command-menu.js.map +1 -1
- 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 +6 -1
- package/dist/components/ui/date-picker.d.ts.map +1 -1
- package/dist/components/ui/date-picker.js +20 -12
- package/dist/components/ui/date-picker.js.map +1 -1
- package/dist/components/ui/date-time-picker.d.ts +3 -1
- package/dist/components/ui/date-time-picker.d.ts.map +1 -1
- package/dist/components/ui/date-time-picker.js +17 -15
- package/dist/components/ui/date-time-picker.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +13 -9
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +33 -3
- package/dist/components/ui/dialog.js.map +1 -1
- 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 +14 -10
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +22 -13
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/editable-text.d.ts +9 -2
- package/dist/components/ui/editable-text.d.ts.map +1 -1
- package/dist/components/ui/editable-text.js +27 -10
- package/dist/components/ui/editable-text.js.map +1 -1
- 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 +2 -1
- package/dist/components/ui/field-button.d.ts.map +1 -1
- package/dist/components/ui/field-button.js +7 -5
- package/dist/components/ui/field-button.js.map +1 -1
- package/dist/components/ui/file-preview.js +1 -1
- package/dist/components/ui/file-preview.js.map +1 -1
- package/dist/components/ui/file-uploader.d.ts.map +1 -1
- package/dist/components/ui/file-uploader.js +5 -4
- package/dist/components/ui/file-uploader.js.map +1 -1
- 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 +11 -1
- package/dist/components/ui/handle-row.d.ts.map +1 -1
- package/dist/components/ui/handle-row.js +101 -32
- package/dist/components/ui/handle-row.js.map +1 -1
- 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.js +4 -4
- package/dist/components/ui/image-block.js.map +1 -1
- package/dist/components/ui/image-card.d.ts.map +1 -1
- package/dist/components/ui/image-card.js +5 -4
- package/dist/components/ui/image-card.js.map +1 -1
- 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.map +1 -1
- package/dist/components/ui/image-viewer.js +38 -5
- package/dist/components/ui/image-viewer.js.map +1 -1
- package/dist/components/ui/image.d.ts +25 -3
- package/dist/components/ui/image.d.ts.map +1 -1
- package/dist/components/ui/image.js +50 -21
- package/dist/components/ui/image.js.map +1 -1
- package/dist/components/ui/index.d.ts +54 -11
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +53 -10
- package/dist/components/ui/index.js.map +1 -1
- package/dist/components/ui/input.d.ts +71 -12
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +236 -23
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/link-block.d.ts.map +1 -1
- package/dist/components/ui/link-block.js +1 -1
- package/dist/components/ui/link-block.js.map +1 -1
- 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.js +1 -1
- package/dist/components/ui/mac-card.js.map +1 -1
- 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.map +1 -1
- package/dist/components/ui/nav-tree.js +10 -3
- package/dist/components/ui/nav-tree.js.map +1 -1
- package/dist/components/ui/page.d.ts +16 -5
- package/dist/components/ui/page.d.ts.map +1 -1
- package/dist/components/ui/page.js +23 -10
- package/dist/components/ui/page.js.map +1 -1
- 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 +2 -2
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +11 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +17 -4
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/property.d.ts +2 -6
- package/dist/components/ui/property.d.ts.map +1 -1
- package/dist/components/ui/property.js +6 -22
- package/dist/components/ui/property.js.map +1 -1
- 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 +15 -7
- package/dist/components/ui/segmented.d.ts.map +1 -1
- package/dist/components/ui/segmented.js +8 -6
- package/dist/components/ui/segmented.js.map +1 -1
- package/dist/components/ui/select-menu.d.ts +3 -1
- package/dist/components/ui/select-menu.d.ts.map +1 -1
- package/dist/components/ui/select-menu.js +2 -2
- package/dist/components/ui/select-menu.js.map +1 -1
- package/dist/components/ui/select.d.ts +7 -2
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +19 -5
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/selection-bar.js +1 -1
- package/dist/components/ui/selection-bar.js.map +1 -1
- 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.map +1 -1
- package/dist/components/ui/spotlight.js +14 -11
- package/dist/components/ui/spotlight.js.map +1 -1
- package/dist/components/ui/step-dialog.js +3 -3
- package/dist/components/ui/step-dialog.js.map +1 -1
- 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 +13 -5
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +65 -12
- package/dist/components/ui/table.js.map +1 -1
- 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 +14 -0
- package/dist/components/ui/theme-toggle.d.ts.map +1 -1
- package/dist/components/ui/theme-toggle.js +69 -41
- package/dist/components/ui/theme-toggle.js.map +1 -1
- 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 +37 -11
- package/dist/components/ui/time-picker.d.ts.map +1 -1
- package/dist/components/ui/time-picker.js +130 -52
- package/dist/components/ui/time-picker.js.map +1 -1
- 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 +1 -1
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +13 -2
- package/dist/components/ui/tooltip.js.map +1 -1
- 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 +11 -5
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/components/ui/typography.js +31 -5
- package/dist/components/ui/typography.js.map +1 -1
- package/dist/components/ui/video-block.d.ts.map +1 -1
- package/dist/components/ui/video-block.js +5 -1
- package/dist/components/ui/video-block.js.map +1 -1
- 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.map +1 -1
- package/dist/hooks/use-save-queue.js +19 -7
- package/dist/hooks/use-save-queue.js.map +1 -1
- package/dist/hooks/use-selection.d.ts.map +1 -1
- package/dist/hooks/use-selection.js +10 -1
- package/dist/hooks/use-selection.js.map +1 -1
- 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 +16 -0
- package/dist/lib/dates.d.ts.map +1 -1
- package/dist/lib/dates.js +27 -0
- package/dist/lib/dates.js.map +1 -1
- 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 +2 -0
- package/dist/lib/rich-text-dom.d.ts.map +1 -1
- package/dist/lib/rich-text-dom.js +5 -3
- package/dist/lib/rich-text-dom.js.map +1 -1
- 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/utils.d.ts.map +1 -1
- package/dist/lib/utils.js +20 -2
- package/dist/lib/utils.js.map +1 -1
- package/dist/styles/notion.css +342 -51
- package/package.json +27 -4
- package/src/components/editor/block-text.tsx +58 -17
- package/src/components/editor/blocks.tsx +19 -14
- package/src/components/editor/document-editor.tsx +7 -2
- package/src/components/editor/document-view.tsx +37 -24
- package/src/components/editor/editor-state.tsx +31 -3
- package/src/components/editor/extensions/kit-blocks.tsx +452 -0
- package/src/components/editor/extensions/spoiler.tsx +9 -4
- package/src/components/editor/index.ts +1 -0
- package/src/components/editor/kinds.ts +1 -1
- package/src/components/editor/look.tsx +36 -0
- package/src/components/three/model-viewer.tsx +514 -0
- package/src/components/ui/accent-picker.tsx +2 -2
- 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 +9 -7
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +4 -4
- package/src/components/ui/banner.tsx +53 -0
- package/src/components/ui/breadcrumbs.tsx +1 -1
- package/src/components/ui/button.tsx +115 -41
- package/src/components/ui/calendar.tsx +8 -7
- package/src/components/ui/callout.tsx +41 -42
- package/src/components/ui/card.tsx +27 -58
- package/src/components/ui/checkbox.tsx +53 -19
- 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 +61 -31
- 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 +99 -61
- package/src/components/ui/date-time-picker.tsx +68 -62
- package/src/components/ui/dialog.tsx +48 -21
- package/src/components/ui/document-layout.tsx +52 -0
- package/src/components/ui/dropdown-menu.tsx +33 -31
- package/src/components/ui/editable-text.tsx +40 -7
- 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 +11 -9
- package/src/components/ui/file-preview.tsx +1 -1
- package/src/components/ui/file-uploader.tsx +23 -24
- 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 +176 -40
- 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 +6 -6
- package/src/components/ui/image-card.tsx +18 -25
- package/src/components/ui/image-framer.tsx +160 -0
- package/src/components/ui/image-viewer.tsx +53 -10
- package/src/components/ui/image.tsx +133 -29
- package/src/components/ui/index.ts +106 -11
- package/src/components/ui/input.tsx +437 -65
- package/src/components/ui/link-block.tsx +5 -2
- package/src/components/ui/list-detail.tsx +115 -0
- package/src/components/ui/listbox.ts +26 -0
- package/src/components/ui/mac-card.tsx +5 -5
- 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 +11 -5
- package/src/components/ui/page.tsx +63 -15
- package/src/components/ui/pagination.tsx +143 -0
- package/src/components/ui/picker-panel.tsx +69 -0
- package/src/components/ui/popover.tsx +3 -3
- package/src/components/ui/progress.tsx +56 -16
- package/src/components/ui/property.tsx +6 -37
- 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 +48 -16
- package/src/components/ui/select-menu.tsx +11 -3
- package/src/components/ui/select.tsx +33 -10
- package/src/components/ui/selection-bar.tsx +1 -1
- 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 +21 -21
- package/src/components/ui/step-dialog.tsx +6 -6
- package/src/components/ui/steps-layout.tsx +91 -0
- package/src/components/ui/switch.tsx +55 -0
- package/src/components/ui/table.tsx +75 -18
- package/src/components/ui/tabs.tsx +41 -0
- package/src/components/ui/theme-toggle.tsx +74 -83
- package/src/components/ui/time-list.tsx +106 -0
- package/src/components/ui/time-picker.tsx +305 -134
- package/src/components/ui/toast.tsx +132 -0
- package/src/components/ui/toggle.tsx +76 -0
- package/src/components/ui/tooltip.tsx +20 -6
- package/src/components/ui/top-bar.tsx +118 -0
- package/src/components/ui/typography.tsx +45 -9
- package/src/components/ui/video-block.tsx +9 -3
- 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 +19 -7
- package/src/hooks/use-selection.ts +8 -1
- package/src/lib/database.ts +322 -0
- package/src/lib/dates.ts +36 -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 +5 -3
- package/src/lib/theme.ts +18 -0
- package/src/lib/time.ts +83 -0
- package/src/lib/utils.ts +21 -2
- package/src/styles/notion.css +342 -51
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare function PickerPanel({ open, onOpenChange, trigger, title, children, onOpenAutoFocus, className, }: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onOpenChange: (open: boolean) => void;
|
|
5
|
+
/** The field that opens it (a FieldButton). */
|
|
6
|
+
trigger: ReactNode;
|
|
7
|
+
/** Shown as the sheet's heading on a phone; names the panel for assistive technology. */
|
|
8
|
+
title: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
onOpenAutoFocus?: (event: Event) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=picker-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-panel.d.ts","sourceRoot":"","sources":["../../../src/components/ui/picker-panel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,wBAAgB,WAAW,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,eAAe,EACf,SAAS,GACZ,EAAE;IACC,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,+CAA+C;IAC/C,OAAO,EAAE,SAAS,CAAC;IACnB,yFAAyF;IACzF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAqCA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { X } from "lucide-react";
|
|
5
|
+
import { useIsPhone } from "../../hooks/use-media-query.js";
|
|
6
|
+
import { cn } from "../../lib/utils.js";
|
|
7
|
+
import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
8
|
+
/* Where a picker's panel opens: anchored under its field on a wide screen, and as a
|
|
9
|
+
sheet from the bottom on a phone, where a panel under the field would sit half
|
|
10
|
+
off the screen or under the keyboard. The sheet has the picker's name and a close
|
|
11
|
+
button, and the same scrim, Escape and focus rules as a dialog. */
|
|
12
|
+
export function PickerPanel({ open, onOpenChange, trigger, title, children, onOpenAutoFocus, className, }) {
|
|
13
|
+
const phone = useIsPhone();
|
|
14
|
+
if (!phone) {
|
|
15
|
+
return (_jsxs(Popover, { open: open, onOpenChange: onOpenChange, children: [_jsx(PopoverTrigger, { asChild: true, children: trigger }), _jsx(PopoverContent, { "aria-label": title, className: cn("w-auto", className), onOpenAutoFocus: onOpenAutoFocus, children: children })] }));
|
|
16
|
+
}
|
|
17
|
+
return (_jsxs(DialogPrimitive.Root, { open: open, onOpenChange: onOpenChange, children: [_jsx(DialogPrimitive.Trigger, { asChild: true, children: trigger }), _jsxs(DialogPrimitive.Portal, { children: [_jsx(DialogPrimitive.Overlay, { className: "z-(--z-overlay) fixed inset-0 bg-scrim data-[state=closed]:animate-fade-out data-[state=open]:animate-fade-in" }), _jsxs(DialogPrimitive.Content, { "aria-describedby": undefined, onOpenAutoFocus: onOpenAutoFocus, className: cn("z-(--z-overlay) fixed inset-x-0 bottom-0 flex flex-col bg-surface-overlay shadow-dialog rounded-t-overlay max-h-[92dvh] overflow-y-auto overscroll-contain outline-none", "pb-[env(safe-area-inset-bottom)] data-[state=open]:animate-sheet-in data-[state=closed]:animate-sheet-out", className), children: [_jsxs("div", { className: "flex items-center gap-2 px-4 pt-3 pb-1", children: [_jsx(DialogPrimitive.Title, { className: "flex-1 font-medium text-ink text-sm", children: title }), _jsx(DialogPrimitive.Close, { "aria-label": "Close", className: "inline-flex justify-center items-center hover:bg-tint-hover -mr-1 rounded-control size-9 text-ink-tertiary", children: _jsx(X, { className: "size-4" }) })] }), _jsx("div", { className: "flex justify-center", children: children })] })] })] }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=picker-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-panel.js","sourceRoot":"","sources":["../../../src/components/ui/picker-panel.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,cAAe,CAAC;AAExE;;;qEAGqE;AACrE,MAAM,UAAU,WAAW,CAAC,EACxB,IAAI,EACJ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,QAAQ,EACR,eAAe,EACf,SAAS,GAWZ;IACG,MAAM,KAAK,GAAG,UAAU,EAAE,CAAC;IAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;QACT,OAAO,CACH,MAAC,OAAO,IAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,aAC3C,KAAC,cAAc,IAAC,OAAO,kBAAE,OAAO,GAAkB,EAClD,KAAC,cAAc,kBAAa,KAAK,EAAE,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,eAAe,EAAE,eAAe,YAClG,QAAQ,GACI,IACX,CACb,CAAC;IACN,CAAC;IACD,OAAO,CACH,MAAC,eAAe,CAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,YAAY,aACxD,KAAC,eAAe,CAAC,OAAO,IAAC,OAAO,kBAAE,OAAO,GAA2B,EACpE,MAAC,eAAe,CAAC,MAAM,eACnB,KAAC,eAAe,CAAC,OAAO,IAAC,SAAS,EAAC,+GAA+G,GAAG,EACrJ,MAAC,eAAe,CAAC,OAAO,wBACF,SAAS,EAC3B,eAAe,EAAE,eAAe,EAChC,SAAS,EAAE,EAAE,CACT,yKAAyK,EACzK,2GAA2G,EAC3G,SAAS,CACZ,aAED,eAAK,SAAS,EAAC,wCAAwC,aACnD,KAAC,eAAe,CAAC,KAAK,IAAC,SAAS,EAAC,qCAAqC,YAAE,KAAK,GAAyB,EACtG,KAAC,eAAe,CAAC,KAAK,kBAAY,OAAO,EAAC,SAAS,EAAC,4GAA4G,YAC5J,KAAC,CAAC,IAAC,SAAS,EAAC,QAAQ,GAAG,GACJ,IACtB,EACN,cAAK,SAAS,EAAC,qBAAqB,YAAE,QAAQ,GAAO,IAC/B,IACL,IACN,CAC1B,CAAC;AACN,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ComponentProps } from "react";
|
|
3
3
|
export declare const Popover: import("react").FC<PopoverPrimitive.PopoverProps>;
|
|
4
4
|
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
5
5
|
export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export declare const PopoverClose: import("react").ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
-
export declare function PopoverContent({ className, align, sideOffset, collisionPadding, ...props }:
|
|
7
|
+
export declare function PopoverContent({ className, align, sideOffset, collisionPadding, ...props }: ComponentProps<typeof PopoverPrimitive.Content>): import("react").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAO5C,eAAO,MAAM,OAAO,mDAAwB,CAAC;AAC7C,eAAO,MAAM,cAAc,oIAA2B,CAAC;AACvD,eAAO,MAAM,aAAa,gIAA0B,CAAC;AACrD,eAAO,MAAM,YAAY,kIAAyB,CAAC;AAEnD,wBAAgB,cAAc,CAAC,EAC3B,SAAS,EACT,KAAe,EACf,UAAc,EACd,gBAAoB,EACpB,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,+BAoBjD"}
|
|
@@ -10,7 +10,7 @@ export const PopoverTrigger = PopoverPrimitive.Trigger;
|
|
|
10
10
|
export const PopoverAnchor = PopoverPrimitive.Anchor;
|
|
11
11
|
export const PopoverClose = PopoverPrimitive.Close;
|
|
12
12
|
export function PopoverContent({ className, align = "start", sideOffset = 6, collisionPadding = 8, ...props }) {
|
|
13
|
-
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, sideOffset: sideOffset, collisionPadding: collisionPadding, className: cn("z-
|
|
13
|
+
return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, { align: align, sideOffset: sideOffset, collisionPadding: collisionPadding, className: cn("z-(--z-overlay) bg-surface-overlay shadow-popover rounded-overlay outline-none",
|
|
14
14
|
// Never larger than the room there is: a tall panel on a short screen
|
|
15
15
|
// scrolls inside itself rather than running off the edge.
|
|
16
16
|
"max-w-[calc(100vw-1rem)] max-h-[var(--radix-popover-content-available-height)] overflow-y-auto overscroll-contain", "data-[state=open]:animate-slide-in data-[state=closed]:animate-fade-out", "origin-[--radix-popover-content-transform-origin]", className), ...props }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;uCAEuC;AAEvC,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC;AAEnD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EACT,KAAK,GAAG,OAAO,EACf,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,CAAC,EACpB,GAAG,KAAK,
|
|
1
|
+
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../../src/components/ui/popover.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;uCAEuC;AAEvC,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC;AAC7C,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC,OAAO,CAAC;AACvD,MAAM,CAAC,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,CAAC;AACrD,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC,KAAK,CAAC;AAEnD,MAAM,UAAU,cAAc,CAAC,EAC3B,SAAS,EACT,KAAK,GAAG,OAAO,EACf,UAAU,GAAG,CAAC,EACd,gBAAgB,GAAG,CAAC,EACpB,GAAG,KAAK,EACsC;IAC9C,OAAO,CACH,KAAC,gBAAgB,CAAC,MAAM,cACpB,KAAC,gBAAgB,CAAC,OAAO,IACrB,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,UAAU,EACtB,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,EAAE,CACT,gFAAgF;YAChF,sEAAsE;YACtE,0DAA0D;YAC1D,mHAAmH,EACnH,yEAAyE,EACzE,mDAAmD,EACnD,SAAS,CACZ,KACG,KAAK,GACX,GACoB,CAC7B,CAAC;AACN,CAAC"}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare function ProgressBar({ value, max, label, valueText, size, className, "aria-labelledby": labelledBy, }: {
|
|
3
|
+
value?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
label?: string;
|
|
6
|
+
valueText?: string;
|
|
7
|
+
size?: "sm" | "md";
|
|
8
|
+
className?: string;
|
|
9
|
+
"aria-labelledby"?: string;
|
|
10
|
+
}): import("react").JSX.Element;
|
|
2
11
|
export declare function Progress({ value, max, label, action, className, }: {
|
|
3
12
|
value: number;
|
|
4
13
|
max: number;
|
|
14
|
+
/** Shown, and names the bar. Defaults to "value of max". */
|
|
5
15
|
label?: ReactNode;
|
|
6
16
|
action?: ReactNode;
|
|
7
17
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAS9C,wBAAgB,WAAW,CAAC,EACxB,KAAK,EACL,GAAS,EACT,KAAK,EACL,SAAS,EACT,IAAW,EACX,SAAS,EACT,iBAAiB,EAAE,UAAU,GAChC,EAAE;IACC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B,+BAqBA;AAKD,wBAAgB,QAAQ,CAAC,EACrB,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,4DAA4D;IAC5D,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAWA"}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId } from "react";
|
|
2
3
|
import { cn } from "../../lib/utils.js";
|
|
3
|
-
/* How far along something is
|
|
4
|
-
|
|
4
|
+
/* How far along something is, as a bar: the accent filling a track, 3:1 or better
|
|
5
|
+
between them in every colour theme (the deeper fill in light, where the plain
|
|
6
|
+
accent is too pale for orange; the plain one in dark, where it is the lighter). Without a value it is indeterminate: a short band
|
|
7
|
+
sliding along, for work whose length is not known. Name it with `label` (read to
|
|
8
|
+
assistive technology, not shown), or point aria-labelledby at a visible name.
|
|
9
|
+
`valueText` is what is read out ("3 of 5", "40%"); it defaults to the percentage. */
|
|
10
|
+
export function ProgressBar({ value, max = 100, label, valueText, size = "md", className, "aria-labelledby": labelledBy, }) {
|
|
11
|
+
const known = value !== undefined;
|
|
12
|
+
const share = !known || max <= 0 ? 0 : Math.min(Math.max(value / max, 0), 1);
|
|
13
|
+
return (_jsx("div", { role: "progressbar", "aria-label": label, "aria-labelledby": labelledBy, "aria-valuemin": known ? 0 : undefined, "aria-valuemax": known ? max : undefined, "aria-valuenow": known ? value : undefined, "aria-valuetext": known ? (valueText ?? `${Math.round(share * 100)}%`) : undefined, className: cn("relative bg-tint-active rounded-full overflow-hidden", size === "sm" ? "h-1" : "h-1.5", className), children: known ? (_jsx("div", { className: "bg-accent-solid dark:bg-accent rounded-full h-full transition-[width] duration-(--duration-base) ease-out-notion", style: { width: `${share * 100}%` } })) : (_jsx("div", { className: "absolute inset-y-0 bg-accent-solid dark:bg-accent rounded-full w-1/3 animate-[progress-slide_1.2s_ease-in-out_infinite] motion-reduce:animate-none motion-reduce:w-full motion-reduce:opacity-50" })) }));
|
|
14
|
+
}
|
|
15
|
+
/* How far along a list or a job is: "n of m", the bar, and room for one action on
|
|
16
|
+
the right (a reset, usually). The words name the bar for assistive technology.
|
|
17
|
+
The row wraps on a narrow screen. */
|
|
5
18
|
export function Progress({ value, max, label, action, className, }) {
|
|
6
|
-
const
|
|
7
|
-
return (_jsxs("div", { className: cn("flex flex-wrap items-center gap-x-3
|
|
19
|
+
const id = useId();
|
|
20
|
+
return (_jsxs("div", { className: cn("flex flex-wrap items-center gap-x-3 bg-surface-sunken py-2 pr-2 pl-4 rounded-surface", className), children: [_jsx("span", { id: id, className: "font-medium tabular-nums text-accent-text text-sm", children: label ?? `${value} of ${max}` }), _jsx(ProgressBar, { value: value, max: max, valueText: `${value} of ${max}`, "aria-labelledby": id, className: "flex-1 min-w-16" }), action] }));
|
|
8
21
|
}
|
|
9
22
|
//# sourceMappingURL=progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../../src/components/ui/progress.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAkB,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;;;;uFAKuF;AACvF,MAAM,UAAU,WAAW,CAAC,EACxB,KAAK,EACL,GAAG,GAAG,GAAG,EACT,KAAK,EACL,SAAS,EACT,IAAI,GAAG,IAAI,EACX,SAAS,EACT,iBAAiB,EAAE,UAAU,GAShC;IACG,MAAM,KAAK,GAAG,KAAK,KAAK,SAAS,CAAC;IAClC,MAAM,KAAK,GAAG,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7E,OAAO,CACH,cACI,IAAI,EAAC,aAAa,gBACN,KAAK,qBACA,UAAU,mBACZ,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,mBACrB,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,mBACvB,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,oBACxB,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,EAChF,SAAS,EAAE,EAAE,CAAC,sDAAsD,EAAE,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EAAE,SAAS,CAAC,YAEhH,KAAK,CAAC,CAAC,CAAC,CACL,cAAK,SAAS,EAAC,kHAAkH,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,GAAG,GAAG,EAAE,GAAI,CAC5K,CAAC,CAAC,CAAC,CACA,cAAK,SAAS,EAAC,kMAAkM,GAAG,CACvN,GACC,CACT,CAAC;AACN,CAAC;AAED;;uCAEuC;AACvC,MAAM,UAAU,QAAQ,CAAC,EACrB,KAAK,EACL,GAAG,EACH,KAAK,EACL,MAAM,EACN,SAAS,GAQZ;IACG,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,OAAO,CACH,eAAK,SAAS,EAAE,EAAE,CAAC,sFAAsF,EAAE,SAAS,CAAC,aACjH,eAAM,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,mDAAmD,YACtE,KAAK,IAAI,GAAG,KAAK,OAAO,GAAG,EAAE,GAC3B,EACP,KAAC,WAAW,IAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,OAAO,GAAG,EAAE,qBAAmB,EAAE,EAAE,SAAS,EAAC,iBAAiB,GAAG,EACxH,MAAM,IACL,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import type { LucideIcon } from "lucide-react";
|
|
2
2
|
import type { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
|
-
export declare const quietField = "min-h-
|
|
3
|
+
export declare const quietField = "min-h-control-sm w-full rounded-control bg-transparent px-1.5 py-1 text-body sm:text-sm outline-none transition-[background-color,box-shadow] duration-(--duration-fast) placeholder:text-ink-placeholder hover:bg-tint-hover focus:bg-surface focus:shadow-[inset_0_0_0_1px_var(--accent)] aria-invalid:shadow-[inset_0_0_0_1px_var(--danger)] disabled:text-ink-disabled disabled:hover:bg-transparent";
|
|
4
4
|
export declare function PropertyList({ className, ...props }: ComponentPropsWithoutRef<"div">): import("react").JSX.Element;
|
|
5
5
|
export declare function Property({ icon: Icon, label, children }: {
|
|
6
6
|
icon?: LucideIcon;
|
|
7
7
|
label: string;
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
}): import("react").JSX.Element;
|
|
10
|
-
export
|
|
11
|
-
export declare function NumberInput({ value, onChange, className, ...props }: Omit<ComponentPropsWithoutRef<"input">, "value" | "onChange" | "defaultValue"> & {
|
|
12
|
-
value: number | undefined;
|
|
13
|
-
onChange: (value: number | undefined) => void;
|
|
14
|
-
}): import("react").JSX.Element;
|
|
10
|
+
export { NumberInput, QuietInput } from "./input.js";
|
|
15
11
|
//# sourceMappingURL=property.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../src/components/ui/property.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../src/components/ui/property.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASjE,eAAO,MAAM,UAAU,6YACuX,CAAC;AAE/Y,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,CAAC,KAAK,CAAC,+BAEpF;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,CAAC,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAUlH;AAGD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -4,31 +4,15 @@ import { cn } from "../../lib/utils.js";
|
|
|
4
4
|
/* A record's properties, Notion's way: a quiet label column on the left, values on
|
|
5
5
|
the right, and no boxes until a value is hovered or focused. Use it in a dialog
|
|
6
6
|
or a side panel for anything with a handful of fields. */
|
|
7
|
-
// The look of a value at rest
|
|
8
|
-
|
|
7
|
+
// The look of a value at rest, for a control the kit does not provide: transparent,
|
|
8
|
+
// tinted on hover, the accent's edge on focus (as Input's quiet variant).
|
|
9
|
+
export const quietField = "min-h-control-sm w-full rounded-control bg-transparent px-1.5 py-1 text-body sm:text-sm outline-none transition-[background-color,box-shadow] duration-(--duration-fast) placeholder:text-ink-placeholder hover:bg-tint-hover focus:bg-surface focus:shadow-[inset_0_0_0_1px_var(--accent)] aria-invalid:shadow-[inset_0_0_0_1px_var(--danger)] disabled:text-ink-disabled disabled:hover:bg-transparent";
|
|
9
10
|
export function PropertyList({ className, ...props }) {
|
|
10
11
|
return _jsx("div", { className: cn("flex flex-col gap-1", className), ...props });
|
|
11
12
|
}
|
|
12
13
|
export function Property({ icon: Icon, label, children }) {
|
|
13
|
-
return (_jsxs("div", { className: "flex items-start gap-2", children: [_jsxs("div", { className: "flex h-
|
|
14
|
-
}
|
|
15
|
-
export function QuietInput({ className, ...props }) {
|
|
16
|
-
return _jsx("input", { className: cn(quietField, className), ...props });
|
|
17
|
-
}
|
|
18
|
-
/* A number that is committed when the field is left, not on every keystroke, so a
|
|
19
|
-
half-typed "12." is never saved. Empty clears the value; anything that is not a
|
|
20
|
-
number is put back as it was. Currency signs and thousands separators are
|
|
21
|
-
ignored. */
|
|
22
|
-
export function NumberInput({ value, onChange, className, ...props }) {
|
|
23
|
-
return (_jsx("input", { inputMode: "decimal", placeholder: "Empty", defaultValue: value ?? "", onBlur: (e) => {
|
|
24
|
-
const raw = e.target.value.replace(/[$€£,\s]/g, "");
|
|
25
|
-
const n = Number(raw);
|
|
26
|
-
if (raw === "")
|
|
27
|
-
onChange(undefined);
|
|
28
|
-
else if (Number.isFinite(n))
|
|
29
|
-
onChange(n);
|
|
30
|
-
else
|
|
31
|
-
e.target.value = String(value ?? "");
|
|
32
|
-
}, className: cn(quietField, "w-28 tabular-nums", className), ...props }));
|
|
14
|
+
return (_jsxs("div", { className: "flex items-start gap-2", children: [_jsxs("div", { className: "flex h-control-sm w-28 shrink-0 items-center gap-1.5 text-sm text-ink-secondary sm:w-32", children: [Icon && _jsx(Icon, { className: "size-4 text-ink-tertiary" }), _jsx("span", { className: "truncate", children: label })] }), _jsx("div", { className: "flex min-w-0 flex-1 flex-wrap items-center gap-1", children: children })] }));
|
|
33
15
|
}
|
|
16
|
+
// Moved to input.tsx with the other text inputs; exported from here too, as before.
|
|
17
|
+
export { NumberInput, QuietInput } from "./input.js";
|
|
34
18
|
//# sourceMappingURL=property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../src/components/ui/property.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;4DAE4D;AAE5D,
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../src/components/ui/property.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAIb,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;;4DAE4D;AAE5D,oFAAoF;AACpF,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GACnB,0YAA0Y,CAAC;AAE/Y,MAAM,UAAU,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAmC;IACjF,OAAO,cAAK,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,KAAK,GAAI,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAA6D;IAC/G,OAAO,CACH,eAAK,SAAS,EAAC,wBAAwB,aACnC,eAAK,SAAS,EAAC,yFAAyF,aACnG,IAAI,IAAI,KAAC,IAAI,IAAC,SAAS,EAAC,0BAA0B,GAAG,EACtD,eAAM,SAAS,EAAC,UAAU,YAAE,KAAK,GAAQ,IACvC,EACN,cAAK,SAAS,EAAC,kDAAkD,YAAE,QAAQ,GAAO,IAChF,CACT,CAAC;AACN,CAAC;AAED,oFAAoF;AACpF,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,YAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
2
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
3
|
+
export declare function RadioGroup({ className, orientation, ...props }: ComponentProps<typeof RadioGroupPrimitive.Root>): import("react").JSX.Element;
|
|
4
|
+
export declare function RadioGroupItem({ label, description, className, ...props }: ComponentProps<typeof RadioGroupPrimitive.Item> & {
|
|
5
|
+
label?: ReactNode;
|
|
6
|
+
description?: ReactNode;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUvD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,WAAwB,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,+BAc5H;AAED,wBAAgB,cAAc,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,SAAS,CAAC;IAAC,WAAW,CAAC,EAAE,SAAS,CAAA;CAAE,+BA0BlG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
4
|
+
import { cn } from "../../lib/utils.js";
|
|
5
|
+
import { ChoiceLabel } from "./choice-label.js";
|
|
6
|
+
import { useField } from "./input.js";
|
|
7
|
+
/* One of a few, all in view: each option a circle with its words, the arrow keys
|
|
8
|
+
moving the choice. For more than five or so, a Select. For two or three views of
|
|
9
|
+
one thing, Segmented. Inside a Field, the Field's label names the group and its
|
|
10
|
+
error describes it. The empty circle's edge reads at 3:1 (--control-edge). */
|
|
11
|
+
export function RadioGroup({ className, orientation = "vertical", ...props }) {
|
|
12
|
+
const field = useField();
|
|
13
|
+
return (_jsx(RadioGroupPrimitive.Root, { orientation: orientation, "aria-labelledby": props["aria-label"] || !field ? undefined : field.labelId, "aria-describedby": field?.describedBy, "aria-invalid": field?.invalid || undefined, required: field?.required, disabled: field?.disabled, className: cn("group flex gap-2.5", orientation === "vertical" ? "flex-col" : "flex-row flex-wrap gap-x-5", className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
export function RadioGroupItem({ label, description, className, ...props }) {
|
|
16
|
+
return (_jsx(ChoiceLabel, { label: label, description: description, disabled: props.disabled, control: ({ labelId, descriptionId }) => (_jsx(RadioGroupPrimitive.Item, { "aria-labelledby": props["aria-labelledby"] ?? labelId, "aria-describedby": descriptionId, className: cn("relative flex justify-center items-center rounded-full size-4 shrink-0 outline-offset-2", "shadow-[inset_0_0_0_1.5px_var(--control-edge)] hover:bg-tint-hover transition-[background-color,box-shadow] duration-(--duration-fast)", "data-[state=checked]:bg-accent-solid data-[state=checked]:shadow-none data-[state=checked]:hover:bg-accent-solid-hover", "group-aria-invalid:shadow-[inset_0_0_0_1.5px_var(--danger)]", "disabled:cursor-not-allowed disabled:bg-tint-hover disabled:shadow-[inset_0_0_0_1.5px_var(--hairline-strong)] disabled:data-[state=checked]:bg-tint-active disabled:[&>span]:bg-ink-disabled", "after:absolute after:-inset-1 after:content-['']", className), ...props, children: _jsx(RadioGroupPrimitive.Indicator, { className: "block bg-accent-ink rounded-full size-1.5" }) })) }));
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=radio-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/components/ui/radio-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAoB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAa,CAAC;AAEvC;;;gFAGgF;AAEhF,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,WAAW,GAAG,UAAU,EAAE,GAAG,KAAK,EAAmD;IACzH,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,OAAO,CACH,KAAC,mBAAmB,CAAC,IAAI,IACrB,WAAW,EAAE,WAAW,qBACP,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,sBACxD,KAAK,EAAE,WAAW,kBACtB,KAAK,EAAE,OAAO,IAAI,SAAS,EACzC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EACzB,QAAQ,EAAE,KAAK,EAAE,QAAQ,EACzB,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,4BAA4B,EAAE,SAAS,CAAC,KAClH,KAAK,GACX,CACL,CAAC;AACN,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,EAC3B,KAAK,EACL,WAAW,EACX,SAAS,EACT,GAAG,KAAK,EACuF;IAC/F,OAAO,CACH,KAAC,WAAW,IACR,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE,CAAC,CACrC,KAAC,mBAAmB,CAAC,IAAI,uBACJ,KAAK,CAAC,iBAAiB,CAAC,IAAI,OAAO,sBAClC,aAAa,EAC/B,SAAS,EAAE,EAAE,CACT,yFAAyF,EACzF,wIAAwI,EACxI,wHAAwH,EACxH,6DAA6D,EAC7D,8LAA8L,EAC9L,kDAAkD,EAClD,SAAS,CACZ,KACG,KAAK,YAET,KAAC,mBAAmB,CAAC,SAAS,IAAC,SAAS,EAAC,2CAA2C,GAAG,GAChE,CAC9B,GACH,CACL,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function Rating({ value, onChange, max, step, size, readOnly, required, disabled, label, className, }: {
|
|
2
|
+
value: number | null;
|
|
3
|
+
onChange?: (value: number | null) => void;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: 1 | 0.5;
|
|
6
|
+
size?: "sm" | "md" | "lg";
|
|
7
|
+
readOnly?: boolean;
|
|
8
|
+
/** It cannot be cleared back to no rating. */
|
|
9
|
+
required?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
}): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/components/ui/rating.tsx"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,CAAC,EACnB,KAAK,EACL,QAAQ,EACR,GAAO,EACP,IAAQ,EACR,IAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,QAAgB,EAChB,KAAgB,EAChB,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IACf,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAyEA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Star } from "lucide-react";
|
|
4
|
+
import { useId, useState } from "react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
/* A rating out of `max` stars, in whole or half steps (`step`). A slider to
|
|
7
|
+
assistive technology ("3.5 of 5 stars"). Click or tap a star (its left half for
|
|
8
|
+
a half step); the arrow keys move by a step, Home and End to none and all, and
|
|
9
|
+
the number keys set a whole rating. Hovering with a mouse previews. Clicking the
|
|
10
|
+
current rating again clears it, unless `required`. `readOnly` draws a rating
|
|
11
|
+
without taking one (a list of films). */
|
|
12
|
+
export function Rating({ value, onChange, max = 5, step = 1, size = "md", readOnly = false, required = false, disabled = false, label = "Rating", className, }) {
|
|
13
|
+
const [preview, setPreview] = useState(null);
|
|
14
|
+
const id = useId();
|
|
15
|
+
const shown = preview ?? value ?? 0;
|
|
16
|
+
const sizes = { sm: "size-3.5", md: "size-5", lg: "size-6 [@media(pointer:coarse)]:size-7" }[size];
|
|
17
|
+
const live = !readOnly && !disabled;
|
|
18
|
+
const words = value == null ? "Not rated" : `${value} of ${max} star${max === 1 ? "" : "s"}`;
|
|
19
|
+
const set = (next) => {
|
|
20
|
+
if (!live)
|
|
21
|
+
return;
|
|
22
|
+
const clamped = next == null ? null : Math.max(step, Math.min(max, Math.round(next / step) * step));
|
|
23
|
+
onChange?.(clamped === value && !required ? null : clamped);
|
|
24
|
+
};
|
|
25
|
+
const at = (e, index) => {
|
|
26
|
+
if (step === 1)
|
|
27
|
+
return index + 1;
|
|
28
|
+
const r = e.currentTarget.getBoundingClientRect();
|
|
29
|
+
return index + (e.clientX - r.left < r.width / 2 ? 0.5 : 1);
|
|
30
|
+
};
|
|
31
|
+
const onKeyDown = (e) => {
|
|
32
|
+
if (!live)
|
|
33
|
+
return;
|
|
34
|
+
const now = value ?? 0;
|
|
35
|
+
const keys = {
|
|
36
|
+
ArrowRight: now + step,
|
|
37
|
+
ArrowUp: now + step,
|
|
38
|
+
ArrowLeft: now - step,
|
|
39
|
+
ArrowDown: now - step,
|
|
40
|
+
Home: 0,
|
|
41
|
+
End: max,
|
|
42
|
+
};
|
|
43
|
+
let next = keys[e.key];
|
|
44
|
+
if (/^[0-9]$/.test(e.key) && Number(e.key) <= max)
|
|
45
|
+
next = Number(e.key);
|
|
46
|
+
if (next === undefined)
|
|
47
|
+
return;
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
const clamped = Math.max(0, Math.min(max, next));
|
|
50
|
+
onChange?.(clamped === 0 ? (required ? step : null) : clamped);
|
|
51
|
+
};
|
|
52
|
+
if (readOnly)
|
|
53
|
+
return (_jsx("span", { role: "img", "aria-label": words, className: cn("inline-flex items-center gap-0.5", className), children: Array.from({ length: max }, (_, i) => (_jsx(StarShape, { fill: Math.max(0, Math.min(1, shown - i)), className: sizes }, i))) }));
|
|
54
|
+
return (_jsx("div", { role: "slider", tabIndex: disabled ? -1 : 0, "aria-label": label, "aria-valuemin": 0, "aria-valuemax": max, "aria-valuenow": value ?? 0, "aria-valuetext": words, "aria-disabled": disabled || undefined, onKeyDown: onKeyDown, onPointerLeave: () => setPreview(null), className: cn("inline-flex items-center rounded-control outline-offset-2", disabled && "opacity-50", className), children: Array.from({ length: max }, (_, i) => (_jsx("span", { "aria-hidden": true, onPointerMove: (e) => e.pointerType === "mouse" && live && setPreview(at(e, i)), onClick: (e) => set(at(e, i)), className: cn("p-0.5 [@media(pointer:coarse)]:p-1", live && "cursor-pointer"), children: _jsx(StarShape, { fill: Math.max(0, Math.min(1, shown - i)), className: cn(sizes, preview !== null && "opacity-90") }) }, `${id}-${i}`))) }));
|
|
55
|
+
}
|
|
56
|
+
/* One star, filled by `fill` (0, 0.5 or 1): the outline in the control's edge, the
|
|
57
|
+
fill in the warning ink (the kit's yellow, AA on both themes). */
|
|
58
|
+
function StarShape({ fill, className }) {
|
|
59
|
+
return (_jsxs("span", { className: cn("inline-block relative", className), children: [_jsx(Star, { className: "absolute inset-0 size-full text-control-edge", strokeWidth: 1.5 }), _jsx("span", { className: "absolute inset-y-0 left-0 overflow-hidden", style: { width: `${fill * 100}%` }, children: _jsx(Star, { className: cn("max-w-none text-warning fill-current", className), strokeWidth: 1.5 }) })] }));
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=rating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.js","sourceRoot":"","sources":["../../../src/components/ui/rating.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SaveState = "idle" | "saving" | "saved" | "offline" | "error";
|
|
2
|
+
export declare function SaveStatus({ state, onRetry, savedAt, className }: {
|
|
3
|
+
state: SaveState;
|
|
4
|
+
onRetry?: () => void;
|
|
5
|
+
savedAt?: Date | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=save-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-status.d.ts","sourceRoot":"","sources":["../../../src/components/ui/save-status.tsx"],"names":[],"mappings":"AAaA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAE1E,wBAAgB,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,+BAqCvJ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Check, CircleAlert, CloudOff } from "lucide-react";
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
5
|
+
import { cn } from "../../lib/utils.js";
|
|
6
|
+
import { Button } from "./button.js";
|
|
7
|
+
import { Spinner } from "./spinner.js";
|
|
8
|
+
export function SaveStatus({ state, onRetry, savedAt, className }) {
|
|
9
|
+
// "Saved" shows, then settles to its quiet resting form.
|
|
10
|
+
const [fresh, setFresh] = useState(false);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (state !== "saved")
|
|
13
|
+
return;
|
|
14
|
+
setFresh(true);
|
|
15
|
+
const t = setTimeout(() => setFresh(false), 2000);
|
|
16
|
+
return () => clearTimeout(t);
|
|
17
|
+
}, [state, savedAt]);
|
|
18
|
+
const when = savedAt ? savedAt.toLocaleTimeString(undefined, { hour: "numeric", minute: "2-digit" }) : null;
|
|
19
|
+
return (_jsxs("span", { className: cn("inline-flex items-center gap-1.5 text-caption", state === "error" ? "text-danger" : "text-ink-tertiary", className), children: [state === "saving" && _jsx(Spinner, { size: "sm" }), state === "saved" && _jsx(Check, { className: cn("size-3.5 transition-opacity duration-(--duration-slow)", fresh ? "opacity-100" : "opacity-0") }), state === "offline" && _jsx(CloudOff, { className: "size-3.5" }), state === "error" && _jsx(CircleAlert, { className: "size-3.5" }), _jsx("span", { role: "status", "aria-live": state === "error" ? "assertive" : "polite", children: state === "saving"
|
|
20
|
+
? "Saving…"
|
|
21
|
+
: state === "saved"
|
|
22
|
+
? fresh || !when
|
|
23
|
+
? "Saved"
|
|
24
|
+
: `Saved at ${when}`
|
|
25
|
+
: state === "offline"
|
|
26
|
+
? _jsxs(_Fragment, { children: ["Offline", _jsx("span", { className: "sr-only", children: ": changes will save when you reconnect" })] })
|
|
27
|
+
: state === "error"
|
|
28
|
+
? "Couldn't save"
|
|
29
|
+
: "" }), state === "error" && onRetry && (_jsx(Button, { variant: "link", size: "sm", onClick: onRetry, className: "text-caption", children: "Try again" }))] }));
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=save-status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"save-status.js","sourceRoot":"","sources":["../../../src/components/ui/save-status.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAc,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAe,CAAC;AASxC,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAyF;IACpJ,yDAAyD;IACzD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1C,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,KAAK,KAAK,OAAO;YAAE,OAAO;QAC9B,QAAQ,CAAC,IAAI,CAAC,CAAC;QACf,MAAM,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC;IACrB,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAE5G,OAAO,CACH,gBAAM,SAAS,EAAE,EAAE,CAAC,+CAA+C,EAAE,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,mBAAmB,EAAE,SAAS,CAAC,aACnI,KAAK,KAAK,QAAQ,IAAI,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,GAAG,EAC3C,KAAK,KAAK,OAAO,IAAI,KAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,wDAAwD,EAAE,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC,GAAI,EAC5I,KAAK,KAAK,SAAS,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAC,UAAU,GAAG,EACxD,KAAK,KAAK,OAAO,IAAI,KAAC,WAAW,IAAC,SAAS,EAAC,UAAU,GAAG,EAC1D,eAAM,IAAI,EAAC,QAAQ,eAAY,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,YACpE,KAAK,KAAK,QAAQ;oBACf,CAAC,CAAC,SAAS;oBACX,CAAC,CAAC,KAAK,KAAK,OAAO;wBACjB,CAAC,CAAC,KAAK,IAAI,CAAC,IAAI;4BACZ,CAAC,CAAC,OAAO;4BACT,CAAC,CAAC,YAAY,IAAI,EAAE;wBACxB,CAAC,CAAC,KAAK,KAAK,SAAS;4BACnB,CAAC,CAAC,yCAAS,eAAM,SAAS,EAAC,SAAS,uDAA8C,IAAG;4BACrF,CAAC,CAAC,KAAK,KAAK,OAAO;gCACjB,CAAC,CAAC,eAAe;gCACjB,CAAC,CAAC,EAAE,GACX,EACN,KAAK,KAAK,OAAO,IAAI,OAAO,IAAI,CAC7B,KAAC,MAAM,IAAC,OAAO,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAC,cAAc,0BAElE,CACZ,IACE,CACV,CAAC;AACN,CAAC"}
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type SegmentedOption<T extends string> = {
|
|
3
|
+
value: T;
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: ReactNode;
|
|
6
|
+
iconOnly?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function Segmented<T extends string>({ options, value, onChange, label, size, disabled, name, className, }: {
|
|
10
|
+
options: readonly SegmentedOption<T>[];
|
|
7
11
|
value: T;
|
|
8
12
|
onChange: (value: T) => void;
|
|
9
|
-
/** What is being
|
|
13
|
+
/** What is being chosen, for screen readers. */
|
|
10
14
|
label: string;
|
|
15
|
+
size?: "sm" | "md";
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Sends the choice with a form. */
|
|
18
|
+
name?: string;
|
|
11
19
|
className?: string;
|
|
12
20
|
}): import("react").JSX.Element;
|
|
13
21
|
//# sourceMappingURL=segmented.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented.d.ts","sourceRoot":"","sources":["../../../src/components/ui/segmented.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"segmented.d.ts","sourceRoot":"","sources":["../../../src/components/ui/segmented.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWvC,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAOtI,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EACxC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAW,EACX,QAAQ,EACR,IAAI,EACJ,SAAS,GACZ,EAAE;IACC,OAAO,EAAE,SAAS,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BAgCA"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3
4
|
import { cn } from "../../lib/utils.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const sizes = {
|
|
6
|
+
sm: "h-control-sm text-caption [&_svg]:size-3.5",
|
|
7
|
+
md: "h-control-md text-sm [&_svg]:size-4",
|
|
8
|
+
};
|
|
9
|
+
export function Segmented({ options, value, onChange, label, size = "sm", disabled, name, className, }) {
|
|
10
|
+
return (_jsx(RadioGroupPrimitive.Root, { "aria-label": label, value: value, onValueChange: (v) => onChange(v), orientation: "horizontal", disabled: disabled, name: name, className: cn("flex gap-0.5 bg-tint-hover p-0.5 rounded-control", className), children: options.map((option) => (_jsxs(RadioGroupPrimitive.Item, { value: option.value, disabled: option.disabled, "aria-label": option.iconOnly ? option.label : undefined, className: cn("inline-flex flex-1 justify-center items-center gap-1.5 px-3 rounded-small font-medium whitespace-nowrap outline-offset-1", "text-ink-secondary hover:text-ink transition-[background-color,box-shadow,color] duration-(--duration-fast)", "data-[state=checked]:bg-surface-overlay data-[state=checked]:text-ink data-[state=checked]:shadow-[inset_0_0_0_1px_var(--control-edge)]", "disabled:text-ink-disabled disabled:cursor-not-allowed", option.iconOnly && "px-0 aspect-square flex-none", sizes[size]), children: [option.icon, !option.iconOnly && option.label] }, option.value))) }));
|
|
9
11
|
}
|
|
10
12
|
//# sourceMappingURL=segmented.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented.js","sourceRoot":"","sources":["../../../src/components/ui/segmented.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"segmented.js","sourceRoot":"","sources":["../../../src/components/ui/segmented.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAYxC,MAAM,KAAK,GAAG;IACV,EAAE,EAAE,4CAA4C;IAChD,EAAE,EAAE,qCAAqC;CAC5C,CAAC;AAEF,MAAM,UAAU,SAAS,CAAmB,EACxC,OAAO,EACP,KAAK,EACL,QAAQ,EACR,KAAK,EACL,IAAI,GAAG,IAAI,EACX,QAAQ,EACR,IAAI,EACJ,SAAS,GAYZ;IACG,OAAO,CACH,KAAC,mBAAmB,CAAC,IAAI,kBACT,KAAK,EACjB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAM,CAAC,EACtC,WAAW,EAAC,YAAY,EACxB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CAAC,kDAAkD,EAAE,SAAS,CAAC,YAE3E,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrB,MAAC,mBAAmB,CAAC,IAAI,IAErB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,QAAQ,EAAE,MAAM,CAAC,QAAQ,gBACb,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EACtD,SAAS,EAAE,EAAE,CACT,0HAA0H,EAC1H,6GAA6G,EAC7G,yIAAyI,EACzI,wDAAwD,EACxD,MAAM,CAAC,QAAQ,IAAI,8BAA8B,EACjD,KAAK,CAAC,IAAI,CAAC,CACd,aAEA,MAAM,CAAC,IAAI,EACX,CAAC,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,KAAK,KAd5B,MAAM,CAAC,KAAK,CAeM,CAC9B,CAAC,GACqB,CAC9B,CAAC;AACN,CAAC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
|
-
export declare function SelectMenu<T extends string>({ value, options, onChange, render, label, className, }: {
|
|
2
|
+
export declare function SelectMenu<T extends string>({ value, options, onChange, render, label, disabled, className, }: {
|
|
3
3
|
value: T;
|
|
4
4
|
options: readonly T[];
|
|
5
5
|
onChange: (value: T) => void;
|
|
6
6
|
render?: (value: T) => ReactNode;
|
|
7
|
+
/** What is being chosen. A screen reader hears it with the value: "Status, Buy". */
|
|
7
8
|
label: string;
|
|
9
|
+
disabled?: boolean;
|
|
8
10
|
className?: string;
|
|
9
11
|
}): import("react").JSX.Element;
|
|
10
12
|
//# sourceMappingURL=select-menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,EACzC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAiB,EACjB,KAAK,EACL,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+
|
|
1
|
+
{"version":3,"file":"select-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,EACzC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAiB,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,GACZ,EAAE;IACC,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC;IACjC,oFAAoF;IACpF,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,+BA4BA"}
|
|
@@ -4,7 +4,7 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenu
|
|
|
4
4
|
import { cn } from "../../lib/utils.js";
|
|
5
5
|
/* Pick one of a fixed set. The trigger is whatever shows the current value, a badge
|
|
6
6
|
or plain text, so a property reads the same at rest as it does in a table. */
|
|
7
|
-
export function SelectMenu({ value, options, onChange, render = (v) => v, label, className, }) {
|
|
8
|
-
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx("button", { type: "button", "aria-label": label, className: cn("flex min-h-
|
|
7
|
+
export function SelectMenu({ value, options, onChange, render = (v) => v, label, disabled, className, }) {
|
|
8
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, disabled: disabled, children: _jsx("button", { type: "button", "aria-label": `${label}, ${typeof render(value) === "string" ? render(value) : value}`, className: cn("flex min-h-control-sm items-center rounded-control px-1.5 text-left text-sm transition-colors duration-(--duration-fast) hover:bg-tint-hover", "data-[state=open]:bg-tint-hover disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:bg-transparent", className), children: render(value) }) }), _jsx(DropdownMenuContent, { align: "start", className: "max-h-80 overflow-y-auto", children: _jsx(DropdownMenuRadioGroup, { value: value, onValueChange: (v) => onChange(v), children: options.map((option) => (_jsx(DropdownMenuRadioItem, { value: option, children: render(option) }, option))) }) })] }));
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=select-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-menu.js","sourceRoot":"","sources":["../../../src/components/ui/select-menu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oBAAqB,CAAC;AAC5I,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;mFACmF;AACnF,MAAM,UAAU,UAAU,CAAmB,EACzC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EACjB,KAAK,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"select-menu.js","sourceRoot":"","sources":["../../../src/components/ui/select-menu.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,oBAAqB,CAAC;AAC5I,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC;mFACmF;AACnF,MAAM,UAAU,UAAU,CAAmB,EACzC,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,GAUZ;IACG,OAAO,CACH,MAAC,YAAY,eACT,KAAC,mBAAmB,IAAC,OAAO,QAAC,QAAQ,EAAE,QAAQ,YAC3C,iBACI,IAAI,EAAC,QAAQ,gBAED,GAAG,KAAK,KAAK,OAAO,MAAM,CAAC,KAAK,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,EACpF,SAAS,EAAE,EAAE,CACT,8IAA8I,EAC9I,+GAA+G,EAC/G,SAAS,CACZ,YAEA,MAAM,CAAC,KAAK,CAAC,GACT,GACS,EACtB,KAAC,mBAAmB,IAAC,KAAK,EAAC,OAAO,EAAC,SAAS,EAAC,0BAA0B,YACnE,KAAC,sBAAsB,IAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAM,CAAC,YACvE,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACrB,KAAC,qBAAqB,IAAc,KAAK,EAAE,MAAM,YAC5C,MAAM,CAAC,MAAM,CAAC,IADS,MAAM,CAEV,CAC3B,CAAC,GACmB,GACP,IACX,CAClB,CAAC;AACN,CAAC"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
-
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import type { ComponentProps, ComponentPropsWithoutRef } from "react";
|
|
3
3
|
export declare const Select: import("react").FC<SelectPrimitive.SelectProps>;
|
|
4
4
|
export declare const SelectGroup: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
export declare const SelectValue: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
6
|
-
export declare function SelectTrigger({ className, children, ...props }:
|
|
6
|
+
export declare function SelectTrigger({ className, children, size, ...props }: ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
|
+
}): import("react").JSX.Element;
|
|
7
9
|
export declare function SelectContent({ className, children, sideOffset, ...props }: ComponentPropsWithoutRef<typeof SelectPrimitive.Content>): import("react").JSX.Element;
|
|
8
10
|
export declare function SelectItem({ className, children, ...props }: ComponentPropsWithoutRef<typeof SelectPrimitive.Item>): import("react").JSX.Element;
|
|
9
11
|
export declare function SelectLabel({ className, ...props }: ComponentPropsWithoutRef<typeof SelectPrimitive.Label>): import("react").JSX.Element;
|
|
10
12
|
export declare function SelectSeparator({ className, ...props }: ComponentPropsWithoutRef<typeof SelectPrimitive.Separator>): import("react").JSX.Element;
|
|
13
|
+
export declare function NativeSelect({ className, children, size, ...props }: Omit<ComponentProps<"select">, "size"> & {
|
|
14
|
+
size?: "sm" | "md" | "lg";
|
|
15
|
+
}): import("react").JSX.Element;
|
|
11
16
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAWtE,eAAO,MAAM,MAAM,iDAAuB,CAAC;AAC3C,eAAO,MAAM,WAAW,6HAAwB,CAAC;AACjD,eAAO,MAAM,WAAW,8HAAwB,CAAC;AAEjD,wBAAgB,aAAa,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,GAAG,KAAK,EACX,EAAE,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,+BAqBhF;AAED,wBAAgB,aAAa,CAAC,EAC1B,SAAS,EACT,QAAQ,EACR,UAAc,EACd,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,+BAuB1D;AAED,wBAAgB,UAAU,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,+BAqBvD;AAED,wBAAgB,WAAW,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,+BAOxD;AAED,wBAAgB,eAAe,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACX,EAAE,wBAAwB,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,+BAO5D;AASD,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;CAAE,+BAW3I"}
|