@panphora/bevel 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +16 -0
- package/README.md +226 -0
- package/bevel-fonts.css +16 -0
- package/bevel.css +3075 -0
- package/bevel.js +2126 -0
- package/dist/react/components/activity-feed.d.ts +89 -0
- package/dist/react/components/activity-feed.js +54 -0
- package/dist/react/components/alert-dialog.d.ts +14 -0
- package/dist/react/components/alert-dialog.js +19 -0
- package/dist/react/components/app-shell.d.ts +98 -0
- package/dist/react/components/app-shell.js +86 -0
- package/dist/react/components/app-toolbar.d.ts +19 -0
- package/dist/react/components/app-toolbar.js +22 -0
- package/dist/react/components/avatar-group.d.ts +67 -0
- package/dist/react/components/avatar-group.js +49 -0
- package/dist/react/components/badge-and-pill.d.ts +34 -0
- package/dist/react/components/badge-and-pill.js +12 -0
- package/dist/react/components/breadcrumbs.d.ts +56 -0
- package/dist/react/components/breadcrumbs.js +44 -0
- package/dist/react/components/bulk-bar.d.ts +22 -0
- package/dist/react/components/bulk-bar.js +59 -0
- package/dist/react/components/button.d.ts +15 -0
- package/dist/react/components/button.js +20 -0
- package/dist/react/components/callout-and-hint.d.ts +17 -0
- package/dist/react/components/callout-and-hint.js +8 -0
- package/dist/react/components/checkbox.d.ts +5 -0
- package/dist/react/components/checkbox.js +13 -0
- package/dist/react/components/chip.d.ts +149 -0
- package/dist/react/components/chip.js +29 -0
- package/dist/react/components/code-block.d.ts +50 -0
- package/dist/react/components/code-block.js +77 -0
- package/dist/react/components/code-editor.d.ts +122 -0
- package/dist/react/components/code-editor.js +695 -0
- package/dist/react/components/column-manager.d.ts +28 -0
- package/dist/react/components/column-manager.js +85 -0
- package/dist/react/components/combobox.d.ts +32 -0
- package/dist/react/components/combobox.js +37 -0
- package/dist/react/components/data-grid.d.ts +108 -0
- package/dist/react/components/data-grid.js +159 -0
- package/dist/react/components/data-table.d.ts +2 -0
- package/dist/react/components/data-table.js +6 -0
- package/dist/react/components/date.d.ts +23 -0
- package/dist/react/components/date.js +11 -0
- package/dist/react/components/details.d.ts +13 -0
- package/dist/react/components/details.js +20 -0
- package/dist/react/components/dialog.d.ts +74 -0
- package/dist/react/components/dialog.js +31 -0
- package/dist/react/components/diff-view.d.ts +73 -0
- package/dist/react/components/diff-view.js +68 -0
- package/dist/react/components/documents.d.ts +70 -0
- package/dist/react/components/documents.js +10 -0
- package/dist/react/components/drawer.d.ts +45 -0
- package/dist/react/components/drawer.js +35 -0
- package/dist/react/components/editable-grid-cells.d.ts +32 -0
- package/dist/react/components/editable-grid-cells.js +116 -0
- package/dist/react/components/eyebrow-kicker-lede-pull-quote.d.ts +39 -0
- package/dist/react/components/eyebrow-kicker-lede-pull-quote.js +12 -0
- package/dist/react/components/field.d.ts +32 -0
- package/dist/react/components/field.js +27 -0
- package/dist/react/components/file-tree.d.ts +75 -0
- package/dist/react/components/file-tree.js +247 -0
- package/dist/react/components/file.d.ts +43 -0
- package/dist/react/components/file.js +73 -0
- package/dist/react/components/files-table.d.ts +174 -0
- package/dist/react/components/files-table.js +237 -0
- package/dist/react/components/filter-builder.d.ts +37 -0
- package/dist/react/components/filter-builder.js +109 -0
- package/dist/react/components/form-error-summary.d.ts +16 -0
- package/dist/react/components/form-error-summary.js +49 -0
- package/dist/react/components/icon-button.d.ts +8 -0
- package/dist/react/components/icon-button.js +14 -0
- package/dist/react/components/icon.d.ts +7 -0
- package/dist/react/components/icon.js +15 -0
- package/dist/react/components/image.d.ts +72 -0
- package/dist/react/components/image.js +24 -0
- package/dist/react/components/inline-edit.d.ts +70 -0
- package/dist/react/components/inline-edit.js +149 -0
- package/dist/react/components/input.d.ts +29 -0
- package/dist/react/components/input.js +20 -0
- package/dist/react/components/kanban-board.d.ts +140 -0
- package/dist/react/components/kanban-board.js +374 -0
- package/dist/react/components/layout.d.ts +51 -0
- package/dist/react/components/layout.js +28 -0
- package/dist/react/components/list.d.ts +28 -0
- package/dist/react/components/list.js +6 -0
- package/dist/react/components/masthead-and-verdict.d.ts +60 -0
- package/dist/react/components/masthead-and-verdict.js +8 -0
- package/dist/react/components/menu.d.ts +26 -0
- package/dist/react/components/menu.js +31 -0
- package/dist/react/components/multi-select-picker.d.ts +49 -0
- package/dist/react/components/multi-select-picker.js +20 -0
- package/dist/react/components/note.d.ts +33 -0
- package/dist/react/components/note.js +8 -0
- package/dist/react/components/number-field.d.ts +16 -0
- package/dist/react/components/number-field.js +17 -0
- package/dist/react/components/pagination.d.ts +45 -0
- package/dist/react/components/pagination.js +87 -0
- package/dist/react/components/persistent-action-banner.d.ts +71 -0
- package/dist/react/components/persistent-action-banner.js +39 -0
- package/dist/react/components/popconfirm.d.ts +42 -0
- package/dist/react/components/popconfirm.js +59 -0
- package/dist/react/components/popover.d.ts +16 -0
- package/dist/react/components/popover.js +21 -0
- package/dist/react/components/progress-and-gauge.d.ts +44 -0
- package/dist/react/components/progress-and-gauge.js +19 -0
- package/dist/react/components/radio.d.ts +7 -0
- package/dist/react/components/radio.js +13 -0
- package/dist/react/components/rich-text-toolbar.d.ts +26 -0
- package/dist/react/components/rich-text-toolbar.js +64 -0
- package/dist/react/components/rows-and-card.d.ts +88 -0
- package/dist/react/components/rows-and-card.js +10 -0
- package/dist/react/components/save-status-indicator.d.ts +11 -0
- package/dist/react/components/save-status-indicator.js +33 -0
- package/dist/react/components/segmented-control.d.ts +21 -0
- package/dist/react/components/segmented-control.js +15 -0
- package/dist/react/components/select.d.ts +29 -0
- package/dist/react/components/select.js +29 -0
- package/dist/react/components/selectable-cards.d.ts +30 -0
- package/dist/react/components/selectable-cards.js +29 -0
- package/dist/react/components/settings-rows.d.ts +51 -0
- package/dist/react/components/settings-rows.js +8 -0
- package/dist/react/components/sidebar-nav.d.ts +77 -0
- package/dist/react/components/sidebar-nav.js +41 -0
- package/dist/react/components/skeleton-and-empty.d.ts +51 -0
- package/dist/react/components/skeleton-and-empty.js +14 -0
- package/dist/react/components/slider.d.ts +19 -0
- package/dist/react/components/slider.js +17 -0
- package/dist/react/components/small-charts.d.ts +60 -0
- package/dist/react/components/small-charts.js +76 -0
- package/dist/react/components/sortable.d.ts +30 -0
- package/dist/react/components/sortable.js +85 -0
- package/dist/react/components/split-button.d.ts +38 -0
- package/dist/react/components/split-button.js +43 -0
- package/dist/react/components/split-panes.d.ts +35 -0
- package/dist/react/components/split-panes.js +102 -0
- package/dist/react/components/stat-tiles.d.ts +54 -0
- package/dist/react/components/stat-tiles.js +8 -0
- package/dist/react/components/steps.d.ts +11 -0
- package/dist/react/components/steps.js +13 -0
- package/dist/react/components/switch.d.ts +6 -0
- package/dist/react/components/switch.js +13 -0
- package/dist/react/components/table.d.ts +61 -0
- package/dist/react/components/table.js +6 -0
- package/dist/react/components/tabs.d.ts +7 -0
- package/dist/react/components/tabs.js +13 -0
- package/dist/react/components/tags.d.ts +33 -0
- package/dist/react/components/tags.js +83 -0
- package/dist/react/components/textarea.d.ts +10 -0
- package/dist/react/components/textarea.js +6 -0
- package/dist/react/components/toast.d.ts +35 -0
- package/dist/react/components/toast.js +90 -0
- package/dist/react/components/tooltip-and-key.d.ts +20 -0
- package/dist/react/components/tooltip-and-key.js +20 -0
- package/dist/react/components/tree-view.d.ts +34 -0
- package/dist/react/components/tree-view.js +118 -0
- package/dist/react/components/upload-dropzone.d.ts +92 -0
- package/dist/react/components/upload-dropzone.js +116 -0
- package/dist/react/components/wizard-shell.d.ts +78 -0
- package/dist/react/components/wizard-shell.js +176 -0
- package/dist/react/fonts.css.d.ts +1 -0
- package/dist/react/index.d.ts +76 -0
- package/dist/react/index.js +77 -0
- package/dist/react/integrations/quickcrop.d.ts +58 -0
- package/dist/react/integrations/quickcrop.js +137 -0
- package/dist/react/integrations/richclay.d.ts +43 -0
- package/dist/react/integrations/richclay.js +129 -0
- package/dist/react/internal/classes.d.ts +3 -0
- package/dist/react/internal/classes.js +10 -0
- package/dist/react/internal/close-mark.d.ts +1 -0
- package/dist/react/internal/close-mark.js +10 -0
- package/dist/react/internal/controllable-state.d.ts +9 -0
- package/dist/react/internal/controllable-state.js +22 -0
- package/dist/react/internal/drop-effect.d.ts +28 -0
- package/dist/react/internal/drop-effect.js +8 -0
- package/dist/react/internal/form-reset.d.ts +2 -0
- package/dist/react/internal/form-reset.js +22 -0
- package/dist/react/internal/format.d.ts +1 -0
- package/dist/react/internal/format.js +14 -0
- package/dist/react/internal/link.d.ts +2 -0
- package/dist/react/internal/link.js +8 -0
- package/dist/react/internal/part.d.ts +20 -0
- package/dist/react/internal/part.js +47 -0
- package/dist/react/internal/pointer-session.d.ts +8 -0
- package/dist/react/internal/pointer-session.js +60 -0
- package/dist/react/internal/refs.d.ts +2 -0
- package/dist/react/internal/refs.js +22 -0
- package/dist/react/internal/rich-text.d.ts +28 -0
- package/dist/react/internal/rich-text.js +4 -0
- package/dist/react/internal/table-context.d.ts +39 -0
- package/dist/react/internal/table-context.js +12 -0
- package/dist/react/internal/use-object-url.d.ts +1 -0
- package/dist/react/internal/use-object-url.js +15 -0
- package/dist/react/layout.css +274 -0
- package/dist/react/layout.css.d.ts +1 -0
- package/dist/react/models/filter.d.ts +31 -0
- package/dist/react/models/filter.js +79 -0
- package/dist/react/models/kanban.d.ts +51 -0
- package/dist/react/models/kanban.js +35 -0
- package/dist/react/models/reorder.d.ts +9 -0
- package/dist/react/models/reorder.js +23 -0
- package/dist/react/models/table.d.ts +85 -0
- package/dist/react/models/table.js +144 -0
- package/dist/react/models/tree.d.ts +16 -0
- package/dist/react/models/tree.js +26 -0
- package/dist/react/provider.d.ts +18 -0
- package/dist/react/provider.js +31 -0
- package/dist/react/recipes/context-hypercms.d.ts +17 -0
- package/dist/react/recipes/context-hypercms.js +71 -0
- package/dist/react/recipes/context-quickcrop.d.ts +8 -0
- package/dist/react/recipes/context-quickcrop.js +49 -0
- package/dist/react/theme.css +8004 -0
- package/dist/react/theme.css.d.ts +1 -0
- package/examples/README.md +34 -0
- package/examples/components/activity-feed.html +28 -0
- package/examples/components/app-shell.html +12 -0
- package/examples/components/app-toolbar.html +38 -0
- package/examples/components/avatar-group.html +27 -0
- package/examples/components/breadcrumbs.html +26 -0
- package/examples/components/bulk-bar.html +22 -0
- package/examples/components/code-block.html +12 -0
- package/examples/components/code-editor.html +25 -0
- package/examples/components/column-manager.html +9 -0
- package/examples/components/combobox.html +13 -0
- package/examples/components/context-hypercms.css +41 -0
- package/examples/components/context-hypercms.html +40 -0
- package/examples/components/context-hypercms.js +62 -0
- package/examples/components/context-quickcrop.html +137 -0
- package/examples/components/diff-view.html +9 -0
- package/examples/components/drawer.html +11 -0
- package/examples/components/editable-grid-cells.html +9 -0
- package/examples/components/file-browser.html +53 -0
- package/examples/components/file-tree.html +34 -0
- package/examples/components/files-table.html +80 -0
- package/examples/components/filter-builder.html +11 -0
- package/examples/components/form-error-summary.html +11 -0
- package/examples/components/index.html +51 -0
- package/examples/components/inline-edit.html +42 -0
- package/examples/components/kanban-board.html +42 -0
- package/examples/components/manifest.json +3279 -0
- package/examples/components/modal.html +11 -0
- package/examples/components/multi-select-picker.html +13 -0
- package/examples/components/pagination.html +32 -0
- package/examples/components/persistent-action-banner.html +23 -0
- package/examples/components/popconfirm.html +13 -0
- package/examples/components/popover-menu.html +13 -0
- package/examples/components/reference/baseline/DECISIONS.md +85 -0
- package/examples/components/reference/baseline/README.md +58 -0
- package/examples/components/reference/baseline/bevel-fonts.css +16 -0
- package/examples/components/reference/baseline/bevel.css +1339 -0
- package/examples/components/reference/baseline/bevel.js +496 -0
- package/examples/components/reference/baseline/fonts/LICENSE-ibm-plex-mono.txt +93 -0
- package/examples/components/reference/baseline/fonts/LICENSE-ibm-plex-sans.txt +93 -0
- package/examples/components/reference/baseline/fonts/LICENSE-newsreader.txt +93 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/newsreader-latin-opsz-italic.woff2 +0 -0
- package/examples/components/reference/baseline/fonts/newsreader-latin-opsz-normal.woff2 +0 -0
- package/examples/components/reference/fable/IMPROVEMENTS.md +106 -0
- package/examples/components/reference/fable/PARENT-REPAIRS.md +17 -0
- package/examples/components/reference/fable/__pycache__/build_repairs.cpython-311.pyc +0 -0
- package/examples/components/reference/fable/__pycache__/kanban.cpython-311.pyc +0 -0
- package/examples/components/reference/fable/as-authored/IMPROVEMENTS-completed.md +106 -0
- package/examples/components/reference/fable/as-authored/base-astra.css +17 -0
- package/examples/components/reference/fable/as-authored/base-parent.css +416 -0
- package/examples/components/reference/fable/as-authored/build.py +858 -0
- package/examples/components/reference/fable/as-authored/fable.css +823 -0
- package/examples/components/reference/fable/as-authored/kanban-completed.css +235 -0
- package/examples/components/reference/fable/as-authored/kanban-completed.html +53 -0
- package/examples/components/reference/fable/as-authored/kanban-completed.py +212 -0
- package/examples/components/reference/fable/as-authored/kanban.py +207 -0
- package/examples/components/reference/fable/base-astra.css +17 -0
- package/examples/components/reference/fable/base-parent.css +416 -0
- package/examples/components/reference/fable/build.py +858 -0
- package/examples/components/reference/fable/build_repairs.py +25 -0
- package/examples/components/reference/fable/components/activity-feed.html +3 -0
- package/examples/components/reference/fable/components/app-toolbar.html +3 -0
- package/examples/components/reference/fable/components/avatar-group.html +4 -0
- package/examples/components/reference/fable/components/breadcrumbs.html +3 -0
- package/examples/components/reference/fable/components/code-block.html +9 -0
- package/examples/components/reference/fable/components/column-manager.html +3 -0
- package/examples/components/reference/fable/components/combobox.html +6 -0
- package/examples/components/reference/fable/components/context-hypercms.html +3 -0
- package/examples/components/reference/fable/components/context-quickcrop.html +4 -0
- package/examples/components/reference/fable/components/diff-view.html +13 -0
- package/examples/components/reference/fable/components/drawer.html +3 -0
- package/examples/components/reference/fable/components/editable-grid-cells.html +3 -0
- package/examples/components/reference/fable/components/filter-builder.html +3 -0
- package/examples/components/reference/fable/components/form-error-summary.html +4 -0
- package/examples/components/reference/fable/components/inline-edit.html +3 -0
- package/examples/components/reference/fable/components/kanban-board.html +53 -0
- package/examples/components/reference/fable/components/modal.html +3 -0
- package/examples/components/reference/fable/components/multi-select-picker.html +5 -0
- package/examples/components/reference/fable/components/pagination.html +3 -0
- package/examples/components/reference/fable/components/persistent-action-banner.html +4 -0
- package/examples/components/reference/fable/components/popconfirm.html +5 -0
- package/examples/components/reference/fable/components/popover-menu.html +3 -0
- package/examples/components/reference/fable/components/rich-text-toolbar.html +3 -0
- package/examples/components/reference/fable/components/save-status-indicator.html +2 -0
- package/examples/components/reference/fable/components/selectable-cards.html +3 -0
- package/examples/components/reference/fable/components/settings-rows.html +3 -0
- package/examples/components/reference/fable/components/sidebar-nav.html +4 -0
- package/examples/components/reference/fable/components/small-charts.html +5 -0
- package/examples/components/reference/fable/components/split-button.html +4 -0
- package/examples/components/reference/fable/components/split-panes.html +8 -0
- package/examples/components/reference/fable/components/stat-tiles.html +3 -0
- package/examples/components/reference/fable/components/toast-stack.html +5 -0
- package/examples/components/reference/fable/components/tree-view.html +4 -0
- package/examples/components/reference/fable/components/upload-dropzone.html +6 -0
- package/examples/components/reference/fable/components/wizard-shell.html +3 -0
- package/examples/components/reference/fable/coverage.json +414 -0
- package/examples/components/reference/fable/fable.css +823 -0
- package/examples/components/reference/fable/index.html +5 -0
- package/examples/components/reference/fable/kanban.css +237 -0
- package/examples/components/reference/fable/kanban.py +212 -0
- package/examples/components/reference/fable/parent-repairs.css +9 -0
- package/examples/components/reference/fixtures/data.json +102 -0
- package/examples/components/reference/fixtures/host.js +47 -0
- package/examples/components/reference/fixtures/static-host.js +39 -0
- package/examples/components/reference/fixtures/workspace.jpg +0 -0
- package/examples/components/reference/parent/CHANGES.md +179 -0
- package/examples/components/reference/parent/__pycache__/kanban.cpython-311.pyc +0 -0
- package/examples/components/reference/parent/base-astra.css +17 -0
- package/examples/components/reference/parent/base-parent.css +416 -0
- package/examples/components/reference/parent/build.py +148 -0
- package/examples/components/reference/parent/components/activity-feed.html +2 -0
- package/examples/components/reference/parent/components/app-toolbar.html +2 -0
- package/examples/components/reference/parent/components/avatar-group.html +4 -0
- package/examples/components/reference/parent/components/breadcrumbs.html +2 -0
- package/examples/components/reference/parent/components/code-block.html +8 -0
- package/examples/components/reference/parent/components/column-manager.html +2 -0
- package/examples/components/reference/parent/components/combobox.html +6 -0
- package/examples/components/reference/parent/components/context-hypercms.html +2 -0
- package/examples/components/reference/parent/components/context-quickcrop.html +4 -0
- package/examples/components/reference/parent/components/diff-view.html +4 -0
- package/examples/components/reference/parent/components/drawer.html +2 -0
- package/examples/components/reference/parent/components/editable-grid-cells.html +2 -0
- package/examples/components/reference/parent/components/filter-builder.html +2 -0
- package/examples/components/reference/parent/components/form-error-summary.html +2 -0
- package/examples/components/reference/parent/components/inline-edit.html +2 -0
- package/examples/components/reference/parent/components/kanban-board.html +84 -0
- package/examples/components/reference/parent/components/modal.html +2 -0
- package/examples/components/reference/parent/components/multi-select-picker.html +5 -0
- package/examples/components/reference/parent/components/pagination.html +2 -0
- package/examples/components/reference/parent/components/persistent-action-banner.html +4 -0
- package/examples/components/reference/parent/components/popconfirm.html +5 -0
- package/examples/components/reference/parent/components/popover-menu.html +2 -0
- package/examples/components/reference/parent/components/rich-text-toolbar.html +2 -0
- package/examples/components/reference/parent/components/save-status-indicator.html +2 -0
- package/examples/components/reference/parent/components/selectable-cards.html +2 -0
- package/examples/components/reference/parent/components/settings-rows.html +2 -0
- package/examples/components/reference/parent/components/sidebar-nav.html +4 -0
- package/examples/components/reference/parent/components/small-charts.html +2 -0
- package/examples/components/reference/parent/components/split-button.html +5 -0
- package/examples/components/reference/parent/components/split-panes.html +8 -0
- package/examples/components/reference/parent/components/stat-tiles.html +2 -0
- package/examples/components/reference/parent/components/toast-stack.html +5 -0
- package/examples/components/reference/parent/components/tree-view.html +4 -0
- package/examples/components/reference/parent/components/upload-dropzone.html +6 -0
- package/examples/components/reference/parent/components/wizard-shell.html +2 -0
- package/examples/components/reference/parent/coverage.json +414 -0
- package/examples/components/reference/parent/index.html +1 -0
- package/examples/components/reference/parent/kanban.css +114 -0
- package/examples/components/reference/parent/kanban.py +55 -0
- package/examples/components/reference/parent/refinement.css +53 -0
- package/examples/components/reference/selected/build.py +70 -0
- package/examples/components/reference/selected/components/activity-feed.html +3 -0
- package/examples/components/reference/selected/components/app-toolbar.html +3 -0
- package/examples/components/reference/selected/components/avatar-group.html +4 -0
- package/examples/components/reference/selected/components/breadcrumbs.html +3 -0
- package/examples/components/reference/selected/components/code-block.html +9 -0
- package/examples/components/reference/selected/components/column-manager.html +3 -0
- package/examples/components/reference/selected/components/combobox.html +6 -0
- package/examples/components/reference/selected/components/context-hypercms.html +3 -0
- package/examples/components/reference/selected/components/context-quickcrop.html +4 -0
- package/examples/components/reference/selected/components/diff-view.html +13 -0
- package/examples/components/reference/selected/components/drawer.html +3 -0
- package/examples/components/reference/selected/components/editable-grid-cells.html +3 -0
- package/examples/components/reference/selected/components/filter-builder.html +3 -0
- package/examples/components/reference/selected/components/form-error-summary.html +4 -0
- package/examples/components/reference/selected/components/inline-edit.html +3 -0
- package/examples/components/reference/selected/components/kanban-board.html +53 -0
- package/examples/components/reference/selected/components/modal.html +2 -0
- package/examples/components/reference/selected/components/multi-select-picker.html +5 -0
- package/examples/components/reference/selected/components/pagination.html +3 -0
- package/examples/components/reference/selected/components/persistent-action-banner.html +4 -0
- package/examples/components/reference/selected/components/popconfirm.html +5 -0
- package/examples/components/reference/selected/components/popover-menu.html +3 -0
- package/examples/components/reference/selected/components/rich-text-toolbar.html +3 -0
- package/examples/components/reference/selected/components/save-status-indicator.html +2 -0
- package/examples/components/reference/selected/components/selectable-cards.html +3 -0
- package/examples/components/reference/selected/components/settings-rows.html +3 -0
- package/examples/components/reference/selected/components/sidebar-nav.html +4 -0
- package/examples/components/reference/selected/components/small-charts.html +5 -0
- package/examples/components/reference/selected/components/split-button.html +4 -0
- package/examples/components/reference/selected/components/split-panes.html +8 -0
- package/examples/components/reference/selected/components/stat-tiles.html +3 -0
- package/examples/components/reference/selected/components/toast-stack.html +5 -0
- package/examples/components/reference/selected/components/tree-view.html +4 -0
- package/examples/components/reference/selected/components/upload-dropzone.html +6 -0
- package/examples/components/reference/selected/components/wizard-shell.html +3 -0
- package/examples/components/reference/selected/corrections.css +11 -0
- package/examples/components/reference/selected/coverage.json +413 -0
- package/examples/components/reference/selected/gallery-build.mjs +49 -0
- package/examples/components/reference/selected/gallery-spec.json +12 -0
- package/examples/components/reference/selected/index.html +1 -0
- package/examples/components/reference/selected/kanban-comparison.json +6 -0
- package/examples/components/reference/selected/manifest.json +476 -0
- package/examples/components/reference/sha256.json +142 -0
- package/examples/components/reference/sources/diagonal-close.svg +1 -0
- package/examples/components/reference/sources/hyperclay/public-assets/css/hyperclay-app-source.css +614 -0
- package/examples/components/reference/sources/hyperclay/public-assets/js/app.js +94 -0
- package/examples/components/reference/sources/hyperclayjs/src/ui/theModal.js +897 -0
- package/examples/components/reference/sources/hypercms/scripts/build-theme.js +203 -0
- package/examples/components/reference/sources/hypercms/src/anchor.js +24 -0
- package/examples/components/reference/sources/hypercms/src/apply-loop.js +167 -0
- package/examples/components/reference/sources/hypercms/src/diagnostics.js +44 -0
- package/examples/components/reference/sources/hypercms/src/enhance.js +173 -0
- package/examples/components/reference/sources/hypercms/src/events.js +955 -0
- package/examples/components/reference/sources/hypercms/src/form-builder.js +518 -0
- package/examples/components/reference/sources/hypercms/src/form-rules.js +208 -0
- package/examples/components/reference/sources/hypercms/src/hooks.js +100 -0
- package/examples/components/reference/sources/hypercms/src/hypercms-bundle.js +10 -0
- package/examples/components/reference/sources/hypercms/src/hypercms.js +347 -0
- package/examples/components/reference/sources/hypercms/src/morph.js +10 -0
- package/examples/components/reference/sources/hypercms/src/path.js +61 -0
- package/examples/components/reference/sources/hypercms/src/place.js +131 -0
- package/examples/components/reference/sources/hypercms/src/platform.js +131 -0
- package/examples/components/reference/sources/hypercms/src/refresh.js +87 -0
- package/examples/components/reference/sources/hypercms/src/richclay-bridge.js +140 -0
- package/examples/components/reference/sources/hypercms/src/row-identity.js +111 -0
- package/examples/components/reference/sources/hypercms/src/scaffold.js +10 -0
- package/examples/components/reference/sources/hypercms/src/session.js +303 -0
- package/examples/components/reference/sources/hypercms/src/shell.js +248 -0
- package/examples/components/reference/sources/hypercms/src/styles.css +298 -0
- package/examples/components/reference/sources/hypercms/src/targets.js +144 -0
- package/examples/components/reference/sources/hypercms/src/templates.js +656 -0
- package/examples/components/reference/sources/hypercms/src/theme/pixel-quiet.overrides.css +761 -0
- package/examples/components/reference/sources/hypercms/src/theme.generated.css +1772 -0
- package/examples/components/reference/sources/hypercms/src/toggle.js +666 -0
- package/examples/components/reference/sources/hypercms/src/unresolved.js +211 -0
- package/examples/components/reference/sources/hypercms/src/vendor/mirk.vendor.js +212 -0
- package/examples/components/reference/sources/hypercms/src/views/inline-layer.js +421 -0
- package/examples/components/reference/sources/hypercms/src/views/inline.js +1072 -0
- package/examples/components/reference/sources/hypercms/src/views/sidebar.js +97 -0
- package/examples/components/reference/sources/modal-reference.html +301 -0
- package/examples/components/reference/sources/quickcrop/quickcrop.css +124 -0
- package/examples/components/reference/sources/quickcrop/quickcrop.js +400 -0
- package/examples/components/reference/sources/richclay/richclay.css +416 -0
- package/examples/components/reference/sources/richclay/richclay.js +2962 -0
- package/examples/components/reference/sources/richclay/src/a11y.js +67 -0
- package/examples/components/reference/sources/richclay/src/browser-global.js +7 -0
- package/examples/components/reference/sources/richclay/src/buttons.js +254 -0
- package/examples/components/reference/sources/richclay/src/hyperclay.js +470 -0
- package/examples/components/reference/sources/richclay/src/normalize.js +380 -0
- package/examples/components/reference/sources/richclay/src/richclay.js +1356 -0
- package/examples/components/reference/sources/richclay/src/sanitize.js +189 -0
- package/examples/components/reference/sources/richclay/src/styles.js +23 -0
- package/examples/components/reference/sources/richclay/src/toolbar-float.js +175 -0
- package/examples/components/reference/sources/richclay/src/toolbar.js +394 -0
- package/examples/components/reference/sources/richclay/src/vendor-bundle.js +15 -0
- package/examples/components/reference/sources/richclay/vendor/DOMPURIFY-LICENSE +202 -0
- package/examples/components/reference/sources/richclay/vendor/DOMPURIFY-LICENSE-MPL +373 -0
- package/examples/components/reference/sources/richclay/vendor/SQUIRE-LICENSE +21 -0
- package/examples/components/reference/sources/richclay/vendor/purify.es.mjs +2249 -0
- package/examples/components/reference/sources/richclay/vendor/purify.min.js +3 -0
- package/examples/components/reference/sources/richclay/vendor/squire.js +22 -0
- package/examples/components/reference/sources/richclay/vendor/squire.mjs +22 -0
- package/examples/components/reference/sources/richclay/vendor/squire.provenance.json +19 -0
- package/examples/components/rich-text-toolbar.html +43 -0
- package/examples/components/save-status-indicator.html +11 -0
- package/examples/components/selectable-cards.html +9 -0
- package/examples/components/settings-rows.html +10 -0
- package/examples/components/sidebar-nav.html +9 -0
- package/examples/components/small-charts.html +21 -0
- package/examples/components/split-button.html +13 -0
- package/examples/components/split-panes-editor.html +6 -0
- package/examples/components/split-panes.html +9 -0
- package/examples/components/stat-tiles.html +23 -0
- package/examples/components/toast-stack.html +21 -0
- package/examples/components/tree-view.html +9 -0
- package/examples/components/upload-dropzone.html +88 -0
- package/examples/components/wizard-shell.html +50 -0
- package/examples/datastar/index.html +38 -0
- package/examples/datastar/server.mjs +31 -0
- package/examples/fixtures/field-guide.pdf +14 -0
- package/examples/fixtures/workspace.jpg +0 -0
- package/examples/setup-peers.mjs +35 -0
- package/fonts/LICENSE-ibm-plex-mono.txt +93 -0
- package/fonts/LICENSE-ibm-plex-sans.txt +93 -0
- package/fonts/LICENSE-newsreader.txt +93 -0
- package/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-mono-latin-600-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
- package/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
- package/fonts/newsreader-latin-opsz-italic.woff2 +0 -0
- package/fonts/newsreader-latin-opsz-normal.woff2 +0 -0
- package/icons/LICENSE +21 -0
- package/icons/house.json +71 -0
- package/icons/icons.d.ts +17 -0
- package/icons/icons.js +648 -0
- package/icons/icons.svg +126 -0
- package/icons/marks/build-tray.source.mjs +45 -0
- package/icons/marks/hyperclay-local.svg +11 -0
- package/icons/phosphor.json +53 -0
- package/icons/round.json +8 -0
- package/integrations/datastar.js +202 -0
- package/integrations/quickcrop.css +26 -0
- package/integrations/quickcrop.js +56 -0
- package/integrations/richclay.css +100 -0
- package/integrations/richclay.js +131 -0
- package/package.json +630 -0
- package/react/README.md +244 -0
- package/src/README.md +83 -0
- package/vendor/datastar/datastar-1.0.3.js +10 -0
- package/vendor/datastar/provenance.json +6 -0
- package/vendor/floating-ui/LICENSE-core +20 -0
- package/vendor/floating-ui/LICENSE-dom +20 -0
- package/vendor/floating-ui/floating-ui.core.umd.min.js +1 -0
- package/vendor/floating-ui/floating-ui.dom.umd.min.js +1 -0
- package/vendor/floating-ui/provenance.json +17 -0
- package/vendor/richclay/LICENSE +16 -0
- package/vendor/richclay/THIRD-PARTY-NOTICES.md +45 -0
- package/vendor/richclay/provenance.json +17 -0
- package/vendor/richclay/richclay.css +404 -0
- package/vendor/richclay/richclay.js +2940 -0
- package/vendor/richclay/vendor/DOMPURIFY-LICENSE +202 -0
- package/vendor/richclay/vendor/DOMPURIFY-LICENSE-MPL +373 -0
- package/vendor/richclay/vendor/SQUIRE-LICENSE +21 -0
- package/vendor/richclay/vendor/purify.min.js +3 -0
- package/vendor/richclay/vendor/squire.js +22 -0
- package/vendor/richclay/vendor/squire.provenance.json +30 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// The sidebar view: the shell panel and the form inside it. Everything here is
|
|
2
|
+
// chrome for one way of rendering a session — the session core (src/session.js)
|
|
3
|
+
// owns the page, the rules and the data.
|
|
4
|
+
|
|
5
|
+
import { mountShell } from '../shell.js'
|
|
6
|
+
import { buildForm } from '../form-builder.js'
|
|
7
|
+
import { bindEvents, suppressUndo } from '../events.js'
|
|
8
|
+
import { enhanceFields, upgradeRichTextRules } from '../enhance.js'
|
|
9
|
+
import { applyUnresolvedState } from '../unresolved.js'
|
|
10
|
+
import { refreshForm } from '../refresh.js'
|
|
11
|
+
|
|
12
|
+
const FOCUSABLE =
|
|
13
|
+
'input:not([disabled]):not([type="hidden"]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
14
|
+
|
|
15
|
+
export function createSidebarView({ doc, pageRoot, opts = {} }) {
|
|
16
|
+
// Rich-text upgrade (default on). Opt out with cms.open({ richText: false }).
|
|
17
|
+
const richText = opts.richText !== false
|
|
18
|
+
let shell = null
|
|
19
|
+
|
|
20
|
+
return {
|
|
21
|
+
name: 'sidebar',
|
|
22
|
+
richText,
|
|
23
|
+
// The form IS the editing surface here, so its rich-text fields are the
|
|
24
|
+
// ones richclay has to be on.
|
|
25
|
+
enhanceFormRichText: true,
|
|
26
|
+
ctx: null,
|
|
27
|
+
root: null,
|
|
28
|
+
formRoot: null,
|
|
29
|
+
errorEl: null,
|
|
30
|
+
noticeEl: null,
|
|
31
|
+
|
|
32
|
+
prepareRules(sourceRules) {
|
|
33
|
+
return richText ? upgradeRichTextRules(sourceRules, pageRoot) : sourceRules
|
|
34
|
+
},
|
|
35
|
+
|
|
36
|
+
mount(initialData) {
|
|
37
|
+
const ctx = this.ctx
|
|
38
|
+
// Suppress undo around mountShell: it toggles chrome-only classes on
|
|
39
|
+
// document.body (hcms-open, etc.) which would otherwise land as undoable
|
|
40
|
+
// page edits. The shell subtree itself is already filtered via save-ignore.
|
|
41
|
+
shell = suppressUndo(() => mountShell({
|
|
42
|
+
mountTo: opts.mountTo || doc.body,
|
|
43
|
+
side: opts.side || 'right',
|
|
44
|
+
overlay: !!opts.overlay,
|
|
45
|
+
showSaveButton: !!opts.showSaveButton,
|
|
46
|
+
title: opts.title,
|
|
47
|
+
eyebrow: opts.eyebrow,
|
|
48
|
+
theme: opts.theme,
|
|
49
|
+
doc,
|
|
50
|
+
}))
|
|
51
|
+
this.root = shell.root
|
|
52
|
+
this.formRoot = shell.formRoot
|
|
53
|
+
this.errorEl = shell.errorEl
|
|
54
|
+
this.noticeEl = shell.noticeEl
|
|
55
|
+
|
|
56
|
+
const fragment = buildForm({
|
|
57
|
+
pageRules: ctx.pageRules,
|
|
58
|
+
formRules: ctx.formRules,
|
|
59
|
+
data: initialData,
|
|
60
|
+
doc,
|
|
61
|
+
})
|
|
62
|
+
shell.formRoot.appendChild(fragment)
|
|
63
|
+
ctx.seeder.seed(shell.formRoot)
|
|
64
|
+
enhanceFields(shell.formRoot, doc)
|
|
65
|
+
applyUnresolvedState(ctx)
|
|
66
|
+
|
|
67
|
+
bindEvents(ctx)
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
refresh(reason) {
|
|
71
|
+
if (reason === 'livesync') {
|
|
72
|
+
// A full-document morph can wipe the shell's <head> stylesheet and the
|
|
73
|
+
// <body> chrome classes (both live outside the save-ignore shell subtree).
|
|
74
|
+
// Re-assert them before re-extracting.
|
|
75
|
+
shell?.restoreChrome?.()
|
|
76
|
+
refreshForm(this.ctx, { ignoreActiveValue: true })
|
|
77
|
+
return
|
|
78
|
+
}
|
|
79
|
+
if (reason === 'undo') {
|
|
80
|
+
refreshForm(this.ctx, { ignoreActiveValue: false })
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
refreshForm(this.ctx)
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
// Move focus into the shell — survives close+restore via previouslyFocused.
|
|
87
|
+
focusOnOpen() {
|
|
88
|
+
const target = this.root && this.root.querySelector(FOCUSABLE)
|
|
89
|
+
if (target && typeof target.focus === 'function') target.focus()
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
destroy() {
|
|
93
|
+
shell?.destroy()
|
|
94
|
+
shell = null
|
|
95
|
+
},
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Hyperclay modal source reference</title><style class="micromodal-css">
|
|
2
|
+
.micromodal {
|
|
3
|
+
display: none;
|
|
4
|
+
color: #fff;
|
|
5
|
+
font-family: var(--hyperclay-modal-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace);
|
|
6
|
+
font-size: var(--hyperclay-modal-font-size, 18px);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.micromodal button:not(.custom-button) {
|
|
10
|
+
background: none;
|
|
11
|
+
color: inherit;
|
|
12
|
+
border: none;
|
|
13
|
+
padding: 0;
|
|
14
|
+
margin: 0;
|
|
15
|
+
width: auto;
|
|
16
|
+
overflow: visible;
|
|
17
|
+
font: inherit;
|
|
18
|
+
line-height: inherit;
|
|
19
|
+
text-transform: none;
|
|
20
|
+
text-align: center;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
-webkit-appearance: none;
|
|
24
|
+
-moz-appearance: none;
|
|
25
|
+
appearance: none;
|
|
26
|
+
outline: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.micromodal .micromodal__hide {
|
|
30
|
+
display: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.micromodal.is-open {
|
|
34
|
+
display: block;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.micromodal__overlay {
|
|
38
|
+
position: fixed;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: center;
|
|
46
|
+
background: rgba(0,0,0,.65);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.micromodal__container {
|
|
50
|
+
position: relative;
|
|
51
|
+
width: 100%;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
max-width: min(550px, calc(100vw - 2rem));
|
|
54
|
+
max-height: calc(100vh - 4rem);
|
|
55
|
+
max-height: calc(100dvh - 2rem);
|
|
56
|
+
box-sizing: border-box;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
border: 2px solid #FFFFFF;
|
|
59
|
+
background-color: #11131E;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.micromodal__inner {
|
|
63
|
+
overflow-x: hidden;
|
|
64
|
+
overflow-y: auto;
|
|
65
|
+
/* Must subtract container's 4px border (2px top + 2px bottom) from max-height,
|
|
66
|
+
otherwise inner overflows past container since box-sizing: border-box
|
|
67
|
+
makes the container's content area smaller than its max-height */
|
|
68
|
+
max-height: calc(100dvh - 2rem - 4px);
|
|
69
|
+
padding: 26px 40px 40px 40px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@media (min-width: 640px) {
|
|
73
|
+
.micromodal .micromodal__inner {
|
|
74
|
+
padding: 52px 64px 60px 64px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.micromodal[aria-hidden="false"] .micromodal__overlay {
|
|
79
|
+
animation: microModalFadeIn .2s cubic-bezier(0.0, 0.0, 0.2, 1);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.micromodal[aria-hidden="false"] .micromodal__container {
|
|
83
|
+
animation: microModalSlideIn .2s cubic-bezier(0, 0, .2, 1);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.micromodal .micromodal__container,
|
|
87
|
+
.micromodal .micromodal__overlay {
|
|
88
|
+
will-change: transform;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@keyframes microModalFadeIn {
|
|
92
|
+
from { opacity: 0; }
|
|
93
|
+
to { opacity: 1; }
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes microModalSlideIn {
|
|
97
|
+
from { transform: translateY(15%); }
|
|
98
|
+
to { transform: translateY(0); }
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.micromodal .micromodal__content {
|
|
102
|
+
margin-bottom: 14px;
|
|
103
|
+
overflow-wrap: anywhere;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.micromodal .micromodal__heading {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
gap: 2px;
|
|
110
|
+
margin-bottom: 8px;
|
|
111
|
+
overflow-wrap: anywhere;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.micromodal .micromodal__input {
|
|
115
|
+
width: min(calc(100vw - 100px), 420px);
|
|
116
|
+
padding: 6px 6px 7px;
|
|
117
|
+
font-size: var(--hyperclay-modal-input-font-size, 16px);
|
|
118
|
+
color: #000;
|
|
119
|
+
background: #fff;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.micromodal .micromodal__input:focus, .micromodal .micromodal__input:active {
|
|
123
|
+
outline: 3px solid #6A73B6;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.micromodal button.micromodal__yes {
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
align-items: center;
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 39px;
|
|
132
|
+
line-height: 0;
|
|
133
|
+
border: 3px solid;
|
|
134
|
+
border-top-color: #94BA6F;
|
|
135
|
+
border-left-color: #94BA6F;
|
|
136
|
+
border-bottom-color: #1A3004;
|
|
137
|
+
border-right-color: #1A3004;
|
|
138
|
+
background-color: #49870B;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.micromodal button.micromodal__yes:focus,
|
|
142
|
+
.micromodal button.micromodal__yes:hover {
|
|
143
|
+
background-color: #549B0D;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.micromodal button.micromodal__yes:active {
|
|
147
|
+
border-top-color: #1A3004;
|
|
148
|
+
border-left-color: #1A3004;
|
|
149
|
+
border-bottom-color: #94BA6F;
|
|
150
|
+
border-right-color: #94BA6F;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.micromodal button.micromodal__secondary-btn {
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: center;
|
|
156
|
+
align-items: center;
|
|
157
|
+
width: 100%;
|
|
158
|
+
height: 39px;
|
|
159
|
+
line-height: 0;
|
|
160
|
+
border: 3px solid;
|
|
161
|
+
border-top-color: #474C65;
|
|
162
|
+
border-left-color: #474C65;
|
|
163
|
+
border-bottom-color: #131725;
|
|
164
|
+
border-right-color: #131725;
|
|
165
|
+
background-color: #1D1F2F;
|
|
166
|
+
color: #E5E7EB;
|
|
167
|
+
font-family: inherit;
|
|
168
|
+
font-size: inherit;
|
|
169
|
+
font-weight: bold;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.micromodal button.micromodal__secondary-btn:focus,
|
|
173
|
+
.micromodal button.micromodal__secondary-btn:hover {
|
|
174
|
+
background-color: #232639;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.micromodal button.micromodal__secondary-btn:active {
|
|
178
|
+
border-top-color: #131725;
|
|
179
|
+
border-left-color: #131725;
|
|
180
|
+
border-bottom-color: #474C65;
|
|
181
|
+
border-right-color: #474C65;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.micromodal:has(.snippet-code-block) .micromodal__content {
|
|
185
|
+
margin-bottom: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.micromodal .snippet-code-block {
|
|
189
|
+
background-color: #292E54;
|
|
190
|
+
padding: 1rem;
|
|
191
|
+
margin-bottom: 14px;
|
|
192
|
+
max-width: 420px;
|
|
193
|
+
overflow-x: auto;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.micromodal .snippet-code-block pre {
|
|
197
|
+
color: white;
|
|
198
|
+
font-family: var(--hyperclay-modal-code-font-family, var(--hyperclay-modal-font-family, monospace));
|
|
199
|
+
font-size: 0.875rem;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
margin: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.micromodal .snippet-warning {
|
|
205
|
+
padding: 0.75rem;
|
|
206
|
+
border: 2px solid #989742;
|
|
207
|
+
background-color: #1E1E11;
|
|
208
|
+
font-size: 0.875rem;
|
|
209
|
+
color: #FBF7B7;
|
|
210
|
+
max-width: 420px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.micromodal .snippet-link-box {
|
|
214
|
+
font-size: 16px;
|
|
215
|
+
margin-top: 0.75rem;
|
|
216
|
+
text-align: right;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.micromodal .snippet-link-box a {
|
|
220
|
+
color: #F6F7F9;
|
|
221
|
+
text-decoration: none;
|
|
222
|
+
display: inline-flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
gap: 0.3rem;
|
|
225
|
+
padding: 0.35rem 0.45rem;
|
|
226
|
+
border: 1px solid #474C64;
|
|
227
|
+
line-height: 1;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.micromodal .snippet-link-box a:hover {
|
|
231
|
+
color: #E5E7EB;
|
|
232
|
+
border-color: #75798B;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.micromodal .snippet-link-box a svg {
|
|
236
|
+
width: 0.85rem;
|
|
237
|
+
height: 0.85rem;
|
|
238
|
+
flex-shrink: 0;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.micromodal button.micromodal__close {
|
|
242
|
+
clip-path: polygon(0% 4%, 0% 0%, 100% 0%, 100% 100%, 94% 100%);
|
|
243
|
+
position: absolute;
|
|
244
|
+
top: -1px;
|
|
245
|
+
right: -1px;
|
|
246
|
+
width: 68px;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.micromodal .micromodal__close-bg {
|
|
250
|
+
fill: #1D2032;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.micromodal .micromodal__close:hover .micromodal__close-bg {
|
|
254
|
+
fill: #212543;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.micromodal .micromodal__close-x {
|
|
258
|
+
fill: #fff;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.micromodal .micromodal__tell {
|
|
262
|
+
max-width: 440px;
|
|
263
|
+
margin-bottom: 28px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.micromodal .micromodal__tell > * + * {
|
|
267
|
+
margin-top: 20px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.micromodal .micromodal__tell-title {
|
|
271
|
+
font-size: var(--hyperclay-modal-title-font-size, 20px);
|
|
272
|
+
font-weight: bold;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.micromodal .micromodal__tell-content {
|
|
276
|
+
font-size: var(--hyperclay-modal-font-size, 16px);
|
|
277
|
+
font-weight: normal;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@media (min-width: 640px) {
|
|
281
|
+
.micromodal .micromodal__tell-title {
|
|
282
|
+
font-size: var(--hyperclay-modal-title-font-size, 22px);
|
|
283
|
+
}
|
|
284
|
+
.micromodal .micromodal__tell-content {
|
|
285
|
+
font-size: var(--hyperclay-modal-font-size, 18px);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
</style><style>body{margin:0;background:#273047;color:#eee;font:18px monospace}article{padding:50px}</style><article><h1>Field notes</h1><p>Northstar Studio</p></article><div class="micromodal is-open" id="micromodal" aria-hidden="false">
|
|
289
|
+
<div class="micromodal__overlay" tabindex="-1">
|
|
290
|
+
<form class="micromodal__container" role="dialog" aria-modal="true">
|
|
291
|
+
<div class="micromodal__inner">
|
|
292
|
+
<div class="micromodal__content"><div class="micromodal__heading">Give this document a name.</div><input class="micromodal__input" aria-label="Document name" value="Field notes"></div>
|
|
293
|
+
<div class="micromodal__buttons">
|
|
294
|
+
<button class="micromodal__no" type="button">Cancel</button>
|
|
295
|
+
<button class="micromodal__yes" type="submit">Save name</button>
|
|
296
|
+
</div>
|
|
297
|
+
</div>
|
|
298
|
+
<button class="micromodal__close" type="button" aria-label="Close modal"><svg viewBox="0 0 134 134" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="micromodal__close-bg" d="M132 132.5 1 1.5h131v131Z" /><path class="micromodal__close-x" fill-rule="evenodd" clip-rule="evenodd" d="M0 0h3v1.5h1.5V3H6v1.5h1.5V6H9v1.5h1.5V9H12v1.5h1.5V12H15v1.5h1.5V15H18v1.5h1.5V18H21v1.5h1.5V21H24v1.5h1.5V24H27v1.5h1.5V27H30v1.5h1.5V30H33v1.5h1.5V33H36v1.5h1.5V36H39v1.5h1.5V39H42v1.5h1.5V42H45v1.5h1.5V45H48v1.5h1.5V48H51v1.5h1.5V51H54v1.5h1.5V54H57v1.5h1.5V57H60v1.5h1.5V60H63v1.5h1.5V63H66v1.5h1.5V66H69v1.5h1.5V69H72v1.5h1.5V72H75v1.5h1.5V75H78v1.5h1.5V78H81v1.5h1.5V81H84v1.5h1.5V84H87v1.5h1.5V87H90v1.5h1.5V90H93v1.5h1.5V93H96v1.5h1.5V96H99v1.5h1.5V99h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v1.5h1.5v3h-3V132H129v-1.5h-1.5V129H126v-1.5h-1.5V126H123v-1.5h-1.5V123H120v-1.5h-1.5V120H117v-1.5h-1.5V117H114v-1.5h-1.5V114H111v-1.5h-1.5V111H108v-1.5h-1.5V108H105v-1.5h-1.5V105H102v-1.5h-1.5V102H99v-1.5h-1.5V99H96v-1.5h-1.5V96H93v-1.5h-1.5V93H90v-1.5h-1.5V90H87v-1.5h-1.5V87H84v-1.5h-1.5V84H81v-1.5h-1.5V81H78v-1.5h-1.5V78H75v-1.5h-1.5V75H72v-1.5h-1.5V72H69v-1.5h-1.5V69H66v-1.5h-1.5V66H63v-1.5h-1.5V63H60v-1.5h-1.5V60H57v-1.5h-1.5V57H54v-1.5h-1.5V54H51v-1.5h-1.5V51H48v-1.5h-1.5V48H45v-1.5h-1.5V45H42v-1.5h-1.5V42H39v-1.5h-1.5V39H36v-1.5h-1.5V36H33v-1.5h-1.5V33H30v-1.5h-1.5V30H27v-1.5h-1.5V27H24v-1.5h-1.5V24H21v-1.5h-1.5V21H18v-1.5h-1.5V18H15v-1.5h-1.5V15H12v-1.5h-1.5V12H9v-1.5H7.5V9H6V7.5H4.5V6H3V4.5H1.5V3H0V0ZM108.8 22h5.2v5.1h-2.6v2.6H109v2.6h-2.6v2.6h-2.6v2.5h-2.6v5.2h2.6V45h2.6v2.6h2.6v2.6h2.5v2.6h2.6V58h-5.1v-2.6h-2.6V53h-2.6v-2.6h-2.6v-2.6h-2.5v-2.6h-5.2v2.6H91v2.6h-2.6v2.6h-2.6v2.5h-2.6V58H78v-5.1h2.6v-2.6H83v-2.6h2.6v-2.6h2.6v-2.5h2.6v-5.2h-2.6V35h-2.6v-2.6h-2.6v-2.6h-2.5v-2.6H78V22h5.2v2.6h2.5V27h2.6v2.6h2.6v2.6h2.5v2.6h5.2v-2.6h2.5v-2.6h2.6v-2.6h2.6v-2.5h2.5V22Z" /></svg></button>
|
|
299
|
+
</form>
|
|
300
|
+
</div>
|
|
301
|
+
</div><script>document.querySelector("form").addEventListener("submit",event=>event.preventDefault());</script></html>
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* quickcrop — pixel-quiet default theme. Override via the --qc-* variables. */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--qc-surface: #f7f2ea;
|
|
5
|
+
--qc-surface-hover: #efe7d8;
|
|
6
|
+
--qc-border: #cdbfa6;
|
|
7
|
+
--qc-text: #2b241b;
|
|
8
|
+
--qc-text-hover: #463c2e;
|
|
9
|
+
--qc-on-dark: #efe7d8;
|
|
10
|
+
--qc-overlay: rgba(43, 36, 27, .6);
|
|
11
|
+
--qc-dim: rgba(0, 0, 0, .55);
|
|
12
|
+
--qc-radius: 8px;
|
|
13
|
+
--qc-crop-line: #fff;
|
|
14
|
+
--qc-font: ui-sans-serif, system-ui, sans-serif;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* presence probe: quickcrop.js skips CSS injection when this rule applies */
|
|
18
|
+
.qc-css-probe { position: absolute; }
|
|
19
|
+
|
|
20
|
+
/* ---- built-in modal ---- */
|
|
21
|
+
.qc-backdrop {
|
|
22
|
+
position: fixed;
|
|
23
|
+
inset: 0;
|
|
24
|
+
background: var(--qc-overlay);
|
|
25
|
+
display: grid;
|
|
26
|
+
place-items: center;
|
|
27
|
+
z-index: 1000;
|
|
28
|
+
animation: qc-fade .15s ease;
|
|
29
|
+
}
|
|
30
|
+
@keyframes qc-fade { from { opacity: 0 } }
|
|
31
|
+
|
|
32
|
+
.qc-modal {
|
|
33
|
+
background: var(--qc-surface);
|
|
34
|
+
border: 1px solid var(--qc-border);
|
|
35
|
+
border-radius: var(--qc-radius);
|
|
36
|
+
padding: 16px;
|
|
37
|
+
max-width: 92vw;
|
|
38
|
+
font-family: var(--qc-font);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.qc-bar {
|
|
42
|
+
display: flex;
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
gap: 10px;
|
|
45
|
+
margin-top: 12px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.qc-btn {
|
|
49
|
+
font: inherit;
|
|
50
|
+
font-family: var(--qc-font);
|
|
51
|
+
font-size: .85rem;
|
|
52
|
+
padding: .3rem .75rem;
|
|
53
|
+
border: 1px solid var(--qc-border);
|
|
54
|
+
border-radius: 6px;
|
|
55
|
+
background: var(--qc-surface);
|
|
56
|
+
color: var(--qc-text);
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
.qc-btn:hover { background: var(--qc-surface-hover); }
|
|
60
|
+
|
|
61
|
+
.qc-btn-primary {
|
|
62
|
+
background: var(--qc-text);
|
|
63
|
+
border-color: var(--qc-text);
|
|
64
|
+
color: var(--qc-on-dark);
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
}
|
|
67
|
+
.qc-btn-primary:hover {
|
|
68
|
+
background: var(--qc-text-hover);
|
|
69
|
+
border-color: var(--qc-text-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* ---- crop stage (shared by every modal host) ---- */
|
|
73
|
+
.qc-stage {
|
|
74
|
+
position: relative;
|
|
75
|
+
line-height: 0;
|
|
76
|
+
user-select: none;
|
|
77
|
+
-webkit-user-select: none;
|
|
78
|
+
touch-action: none; /* let pointer events own the gestures */
|
|
79
|
+
}
|
|
80
|
+
.qc-stage img {
|
|
81
|
+
display: block;
|
|
82
|
+
max-width: 100%;
|
|
83
|
+
pointer-events: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* dims the image outside the crop box; the hole is a clip-path set by render() */
|
|
87
|
+
.qc-dim {
|
|
88
|
+
position: absolute;
|
|
89
|
+
inset: 0;
|
|
90
|
+
background: var(--qc-dim);
|
|
91
|
+
pointer-events: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.qc-box {
|
|
95
|
+
position: absolute;
|
|
96
|
+
cursor: move;
|
|
97
|
+
outline: 1px solid var(--qc-crop-line);
|
|
98
|
+
background:
|
|
99
|
+
linear-gradient(var(--qc-crop-line), var(--qc-crop-line)) 0 33.33%/100% 1px no-repeat,
|
|
100
|
+
linear-gradient(var(--qc-crop-line), var(--qc-crop-line)) 0 66.66%/100% 1px no-repeat,
|
|
101
|
+
linear-gradient(var(--qc-crop-line), var(--qc-crop-line)) 33.33% 0/1px 100% no-repeat,
|
|
102
|
+
linear-gradient(var(--qc-crop-line), var(--qc-crop-line)) 66.66% 0/1px 100% no-repeat; /* rule-of-thirds */
|
|
103
|
+
background-blend-mode: overlay;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* 14px visual square inside a 28px touch target: the transparent border
|
|
107
|
+
widens the hit area for fingers without changing the look */
|
|
108
|
+
.qc-handle {
|
|
109
|
+
position: absolute;
|
|
110
|
+
box-sizing: border-box;
|
|
111
|
+
width: 28px;
|
|
112
|
+
height: 28px;
|
|
113
|
+
border: 7px solid transparent;
|
|
114
|
+
background: var(--qc-crop-line);
|
|
115
|
+
background-clip: padding-box;
|
|
116
|
+
border-radius: 9px; /* reads as 2px on the visible square after the border */
|
|
117
|
+
}
|
|
118
|
+
.qc-nw { left: -14px; top: -14px; cursor: nwse-resize; }
|
|
119
|
+
.qc-ne { right: -14px; top: -14px; cursor: nesw-resize; }
|
|
120
|
+
.qc-sw { left: -14px; bottom: -14px; cursor: nesw-resize; }
|
|
121
|
+
.qc-se { right: -14px; bottom: -14px; cursor: nwse-resize; }
|
|
122
|
+
|
|
123
|
+
/* mount point inside a host modal (e.g. themodal) */
|
|
124
|
+
.qc-mount { line-height: 0; }
|