@newtone-dev/ui-react-web 0.40.1 → 0.41.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/README.md +3 -2
- package/dist/bar-list/bar-list.css +3 -1
- package/dist/beside/beside.css +57 -0
- package/dist/beside/beside.d.ts +28 -0
- package/dist/beside/beside.d.ts.map +1 -0
- package/dist/beside/beside.js +20 -0
- package/dist/beside/beside.js.map +1 -0
- package/dist/beside/index.d.ts +3 -0
- package/dist/beside/index.d.ts.map +1 -0
- package/dist/beside/index.js +2 -0
- package/dist/beside/index.js.map +1 -0
- package/dist/body/body.css +6 -0
- package/dist/body/body.d.ts +10 -0
- package/dist/body/body.d.ts.map +1 -0
- package/dist/body/body.js +9 -0
- package/dist/body/body.js.map +1 -0
- package/dist/body/index.d.ts +3 -0
- package/dist/body/index.d.ts.map +1 -0
- package/dist/body/index.js +2 -0
- package/dist/body/index.js.map +1 -0
- package/dist/bullet-list/bullet-list.css +36 -0
- package/dist/bullet-list/bullet-list.d.ts +16 -0
- package/dist/bullet-list/bullet-list.d.ts.map +1 -0
- package/dist/bullet-list/bullet-list.js +6 -0
- package/dist/bullet-list/bullet-list.js.map +1 -0
- package/dist/bullet-list/index.d.ts +3 -0
- package/dist/bullet-list/index.d.ts.map +1 -0
- package/dist/bullet-list/index.js +2 -0
- package/dist/bullet-list/index.js.map +1 -0
- package/dist/canvas/box/box.d.ts +16 -0
- package/dist/canvas/box/box.d.ts.map +1 -0
- package/dist/canvas/box/box.js +163 -0
- package/dist/canvas/box/box.js.map +1 -0
- package/dist/canvas/canvas.css +165 -0
- package/dist/canvas/canvas.d.ts +65 -0
- package/dist/canvas/canvas.d.ts.map +1 -0
- package/dist/canvas/canvas.js +217 -0
- package/dist/canvas/canvas.js.map +1 -0
- package/dist/canvas/context.d.ts +10 -0
- package/dist/canvas/context.d.ts.map +1 -0
- package/dist/canvas/context.js +11 -0
- package/dist/canvas/context.js.map +1 -0
- package/dist/canvas/guide/guide.d.ts +9 -0
- package/dist/canvas/guide/guide.d.ts.map +1 -0
- package/dist/canvas/guide/guide.js +10 -0
- package/dist/canvas/guide/guide.js.map +1 -0
- package/dist/canvas/index.d.ts +8 -0
- package/dist/canvas/index.d.ts.map +1 -0
- package/dist/canvas/index.js +2 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/canvas/label/label.d.ts +16 -0
- package/dist/canvas/label/label.d.ts.map +1 -0
- package/dist/canvas/label/label.js +15 -0
- package/dist/canvas/label/label.js.map +1 -0
- package/dist/canvas/point/point.d.ts +23 -0
- package/dist/canvas/point/point.d.ts.map +1 -0
- package/dist/canvas/point/point.js +57 -0
- package/dist/canvas/point/point.js.map +1 -0
- package/dist/canvas/trace/trace.d.ts +9 -0
- package/dist/canvas/trace/trace.d.ts.map +1 -0
- package/dist/canvas/trace/trace.js +9 -0
- package/dist/canvas/trace/trace.js.map +1 -0
- package/dist/chat/chat.css +87 -0
- package/dist/chat/chat.d.ts +92 -0
- package/dist/chat/chat.d.ts.map +1 -0
- package/dist/chat/chat.js +91 -0
- package/dist/chat/chat.js.map +1 -0
- package/dist/chat/index.d.ts +3 -0
- package/dist/chat/index.d.ts.map +1 -0
- package/dist/chat/index.js +2 -0
- package/dist/chat/index.js.map +1 -0
- package/dist/code-block/code-block.css +14 -0
- package/dist/code-block/code-block.d.ts +8 -0
- package/dist/code-block/code-block.d.ts.map +1 -0
- package/dist/code-block/code-block.js +6 -0
- package/dist/code-block/code-block.js.map +1 -0
- package/dist/code-block/index.d.ts +3 -0
- package/dist/code-block/index.d.ts.map +1 -0
- package/dist/code-block/index.js +2 -0
- package/dist/code-block/index.js.map +1 -0
- package/dist/color-field/color-field.css +129 -0
- package/dist/color-field/color-field.d.ts +24 -0
- package/dist/color-field/color-field.d.ts.map +1 -0
- package/dist/color-field/color-field.js +109 -0
- package/dist/color-field/color-field.js.map +1 -0
- package/dist/color-field/index.d.ts +3 -0
- package/dist/color-field/index.d.ts.map +1 -0
- package/dist/color-field/index.js +2 -0
- package/dist/color-field/index.js.map +1 -0
- package/dist/column/column.css +33 -0
- package/dist/column/column.d.ts +14 -0
- package/dist/column/column.d.ts.map +1 -0
- package/dist/column/column.js +13 -0
- package/dist/column/column.js.map +1 -0
- package/dist/column/index.d.ts +3 -0
- package/dist/column/index.d.ts.map +1 -0
- package/dist/column/index.js +2 -0
- package/dist/column/index.js.map +1 -0
- package/dist/column-chart/column-chart.css +38 -0
- package/dist/column-chart/column-chart.d.ts +11 -1
- package/dist/column-chart/column-chart.d.ts.map +1 -1
- package/dist/column-chart/column-chart.js +4 -4
- package/dist/column-chart/column-chart.js.map +1 -1
- package/dist/crumbs/crumbs.css +55 -0
- package/dist/crumbs/crumbs.d.ts +36 -0
- package/dist/crumbs/crumbs.d.ts.map +1 -0
- package/dist/crumbs/crumbs.js +15 -0
- package/dist/crumbs/crumbs.js.map +1 -0
- package/dist/crumbs/index.d.ts +3 -0
- package/dist/crumbs/index.d.ts.map +1 -0
- package/dist/crumbs/index.js +2 -0
- package/dist/crumbs/index.js.map +1 -0
- package/dist/data-list/data-list.css +5 -0
- package/dist/data-list/data-list.d.ts +3 -1
- package/dist/data-list/data-list.d.ts.map +1 -1
- package/dist/data-list/data-list.js +2 -2
- package/dist/data-list/data-list.js.map +1 -1
- package/dist/desktop/clock/clock.d.ts +11 -0
- package/dist/desktop/clock/clock.d.ts.map +1 -0
- package/dist/desktop/clock/clock.js +20 -0
- package/dist/desktop/clock/clock.js.map +1 -0
- package/dist/desktop/context.d.ts +23 -0
- package/dist/desktop/context.d.ts.map +1 -0
- package/dist/desktop/context.js +10 -0
- package/dist/desktop/context.js.map +1 -0
- package/dist/desktop/control/control.d.ts +15 -0
- package/dist/desktop/control/control.d.ts.map +1 -0
- package/dist/desktop/control/control.js +10 -0
- package/dist/desktop/control/control.js.map +1 -0
- package/dist/desktop/desktop.css +548 -0
- package/dist/desktop/desktop.d.ts +69 -0
- package/dist/desktop/desktop.d.ts.map +1 -0
- package/dist/desktop/desktop.js +75 -0
- package/dist/desktop/desktop.js.map +1 -0
- package/dist/desktop/dock/dock.d.ts +30 -0
- package/dist/desktop/dock/dock.d.ts.map +1 -0
- package/dist/desktop/dock/dock.js +15 -0
- package/dist/desktop/dock/dock.js.map +1 -0
- package/dist/desktop/index.d.ts +14 -0
- package/dist/desktop/index.d.ts.map +1 -0
- package/dist/desktop/index.js +5 -0
- package/dist/desktop/index.js.map +1 -0
- package/dist/desktop/menu/menu.d.ts +28 -0
- package/dist/desktop/menu/menu.d.ts.map +1 -0
- package/dist/desktop/menu/menu.js +61 -0
- package/dist/desktop/menu/menu.js.map +1 -0
- package/dist/desktop/menu-bar/menu-bar.d.ts +18 -0
- package/dist/desktop/menu-bar/menu-bar.d.ts.map +1 -0
- package/dist/desktop/menu-bar/menu-bar.js +11 -0
- package/dist/desktop/menu-bar/menu-bar.js.map +1 -0
- package/dist/desktop/panel/panel.d.ts +16 -0
- package/dist/desktop/panel/panel.d.ts.map +1 -0
- package/dist/desktop/panel/panel.js +20 -0
- package/dist/desktop/panel/panel.js.map +1 -0
- package/dist/desktop/sheet/sheet.d.ts +13 -0
- package/dist/desktop/sheet/sheet.d.ts.map +1 -0
- package/dist/desktop/sheet/sheet.js +10 -0
- package/dist/desktop/sheet/sheet.js.map +1 -0
- package/dist/desktop/spaces/spaces.d.ts +23 -0
- package/dist/desktop/spaces/spaces.d.ts.map +1 -0
- package/dist/desktop/spaces/spaces.js +8 -0
- package/dist/desktop/spaces/spaces.js.map +1 -0
- package/dist/desktop/window/window.d.ts +60 -0
- package/dist/desktop/window/window.d.ts.map +1 -0
- package/dist/desktop/window/window.js +86 -0
- package/dist/desktop/window/window.js.map +1 -0
- package/dist/divided/divided.css +5 -0
- package/dist/divided/divided.d.ts +12 -0
- package/dist/divided/divided.d.ts.map +1 -0
- package/dist/divided/divided.js +10 -0
- package/dist/divided/divided.js.map +1 -0
- package/dist/divided/index.d.ts +3 -0
- package/dist/divided/index.d.ts.map +1 -0
- package/dist/divided/index.js +2 -0
- package/dist/divided/index.js.map +1 -0
- package/dist/dot/dot.css +10 -0
- package/dist/dot/dot.d.ts +7 -0
- package/dist/dot/dot.d.ts.map +1 -0
- package/dist/dot/dot.js +6 -0
- package/dist/dot/dot.js.map +1 -0
- package/dist/dot/index.d.ts +3 -0
- package/dist/dot/index.d.ts.map +1 -0
- package/dist/dot/index.js +2 -0
- package/dist/dot/index.js.map +1 -0
- package/dist/drop-zone/drop-zone.css +26 -0
- package/dist/drop-zone/drop-zone.d.ts +37 -0
- package/dist/drop-zone/drop-zone.d.ts.map +1 -0
- package/dist/drop-zone/drop-zone.js +57 -0
- package/dist/drop-zone/drop-zone.js.map +1 -0
- package/dist/drop-zone/index.d.ts +3 -0
- package/dist/drop-zone/index.d.ts.map +1 -0
- package/dist/drop-zone/index.js +2 -0
- package/dist/drop-zone/index.js.map +1 -0
- package/dist/edged/edged.css +15 -0
- package/dist/edged/edged.d.ts +13 -0
- package/dist/edged/edged.d.ts.map +1 -0
- package/dist/edged/edged.js +11 -0
- package/dist/edged/edged.js.map +1 -0
- package/dist/edged/index.d.ts +3 -0
- package/dist/edged/index.d.ts.map +1 -0
- package/dist/edged/index.js +2 -0
- package/dist/edged/index.js.map +1 -0
- package/dist/embed/embed.css +8 -0
- package/dist/embed/embed.d.ts +12 -0
- package/dist/embed/embed.d.ts.map +1 -0
- package/dist/embed/embed.js +10 -0
- package/dist/embed/embed.js.map +1 -0
- package/dist/embed/index.d.ts +3 -0
- package/dist/embed/index.d.ts.map +1 -0
- package/dist/embed/index.js +2 -0
- package/dist/embed/index.js.map +1 -0
- package/dist/file-grid/file-grid.css +93 -0
- package/dist/file-grid/file-grid.d.ts +46 -0
- package/dist/file-grid/file-grid.d.ts.map +1 -0
- package/dist/file-grid/file-grid.js +26 -0
- package/dist/file-grid/file-grid.js.map +1 -0
- package/dist/file-grid/index.d.ts +3 -0
- package/dist/file-grid/index.d.ts.map +1 -0
- package/dist/file-grid/index.js +2 -0
- package/dist/file-grid/index.js.map +1 -0
- package/dist/file-view/file-view.css +38 -0
- package/dist/file-view/file-view.d.ts +18 -0
- package/dist/file-view/file-view.d.ts.map +1 -0
- package/dist/file-view/file-view.js +11 -0
- package/dist/file-view/file-view.js.map +1 -0
- package/dist/file-view/index.d.ts +3 -0
- package/dist/file-view/index.d.ts.map +1 -0
- package/dist/file-view/index.js +2 -0
- package/dist/file-view/index.js.map +1 -0
- package/dist/fold/fold.css +16 -0
- package/dist/fold/fold.d.ts +15 -0
- package/dist/fold/fold.d.ts.map +1 -0
- package/dist/fold/fold.js +11 -0
- package/dist/fold/fold.js.map +1 -0
- package/dist/fold/index.d.ts +3 -0
- package/dist/fold/index.d.ts.map +1 -0
- package/dist/fold/index.js +2 -0
- package/dist/fold/index.js.map +1 -0
- package/dist/form/form.css +21 -0
- package/dist/form/form.d.ts +16 -0
- package/dist/form/form.d.ts.map +1 -0
- package/dist/form/form.js +6 -0
- package/dist/form/form.js.map +1 -0
- package/dist/form/index.d.ts +3 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +2 -0
- package/dist/form/index.js.map +1 -0
- package/dist/gate/gate.css +12 -0
- package/dist/gate/gate.d.ts +10 -0
- package/dist/gate/gate.d.ts.map +1 -0
- package/dist/gate/gate.js +10 -0
- package/dist/gate/gate.js.map +1 -0
- package/dist/gate/index.d.ts +3 -0
- package/dist/gate/index.d.ts.map +1 -0
- package/dist/gate/index.js +2 -0
- package/dist/gate/index.js.map +1 -0
- package/dist/icon/icon.css +24 -0
- package/dist/icon/icon.d.ts +4 -1
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.js +2 -2
- package/dist/icon/icon.js.map +1 -1
- package/dist/index.d.ts +76 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +38 -0
- package/dist/index.js.map +1 -1
- package/dist/layer-list/index.d.ts +3 -0
- package/dist/layer-list/index.d.ts.map +1 -0
- package/dist/layer-list/index.js +2 -0
- package/dist/layer-list/index.js.map +1 -0
- package/dist/layer-list/layer-list.css +105 -0
- package/dist/layer-list/layer-list.d.ts +47 -0
- package/dist/layer-list/layer-list.d.ts.map +1 -0
- package/dist/layer-list/layer-list.js +215 -0
- package/dist/layer-list/layer-list.js.map +1 -0
- package/dist/link-button/index.d.ts +3 -0
- package/dist/link-button/index.d.ts.map +1 -0
- package/dist/link-button/index.js +2 -0
- package/dist/link-button/index.js.map +1 -0
- package/dist/link-button/link-button.css +25 -0
- package/dist/link-button/link-button.d.ts +13 -0
- package/dist/link-button/link-button.d.ts.map +1 -0
- package/dist/link-button/link-button.js +10 -0
- package/dist/link-button/link-button.js.map +1 -0
- package/dist/meter/index.d.ts +3 -0
- package/dist/meter/index.d.ts.map +1 -0
- package/dist/meter/index.js +2 -0
- package/dist/meter/index.js.map +1 -0
- package/dist/meter/meter.css +19 -0
- package/dist/meter/meter.d.ts +9 -0
- package/dist/meter/meter.d.ts.map +1 -0
- package/dist/meter/meter.js +8 -0
- package/dist/meter/meter.js.map +1 -0
- package/dist/nav-list/index.d.ts +3 -0
- package/dist/nav-list/index.d.ts.map +1 -0
- package/dist/nav-list/index.js +2 -0
- package/dist/nav-list/index.js.map +1 -0
- package/dist/nav-list/nav-list.css +100 -0
- package/dist/nav-list/nav-list.d.ts +63 -0
- package/dist/nav-list/nav-list.d.ts.map +1 -0
- package/dist/nav-list/nav-list.js +31 -0
- package/dist/nav-list/nav-list.js.map +1 -0
- package/dist/node-map/index.d.ts +3 -0
- package/dist/node-map/index.d.ts.map +1 -0
- package/dist/node-map/index.js +2 -0
- package/dist/node-map/index.js.map +1 -0
- package/dist/node-map/node-map.css +157 -0
- package/dist/node-map/node-map.d.ts +63 -0
- package/dist/node-map/node-map.d.ts.map +1 -0
- package/dist/node-map/node-map.js +175 -0
- package/dist/node-map/node-map.js.map +1 -0
- package/dist/node-map/view.d.ts +8 -0
- package/dist/node-map/view.d.ts.map +1 -0
- package/dist/node-map/view.js +9 -0
- package/dist/node-map/view.js.map +1 -0
- package/dist/number-field/index.d.ts +3 -0
- package/dist/number-field/index.d.ts.map +1 -0
- package/dist/number-field/index.js +2 -0
- package/dist/number-field/index.js.map +1 -0
- package/dist/number-field/number-field.css +62 -0
- package/dist/number-field/number-field.d.ts +30 -0
- package/dist/number-field/number-field.d.ts.map +1 -0
- package/dist/number-field/number-field.js +102 -0
- package/dist/number-field/number-field.js.map +1 -0
- package/dist/prose/index.d.ts +3 -0
- package/dist/prose/index.d.ts.map +1 -0
- package/dist/prose/index.js +2 -0
- package/dist/prose/index.js.map +1 -0
- package/dist/prose/prose.css +21 -0
- package/dist/prose/prose.d.ts +31 -0
- package/dist/prose/prose.d.ts.map +1 -0
- package/dist/prose/prose.js +28 -0
- package/dist/prose/prose.js.map +1 -0
- package/dist/radio-group/index.d.ts +3 -0
- package/dist/radio-group/index.d.ts.map +1 -0
- package/dist/radio-group/index.js +2 -0
- package/dist/radio-group/index.js.map +1 -0
- package/dist/radio-group/radio-group.css +19 -0
- package/dist/radio-group/radio-group.d.ts +18 -0
- package/dist/radio-group/radio-group.d.ts.map +1 -0
- package/dist/radio-group/radio-group.js +10 -0
- package/dist/radio-group/radio-group.js.map +1 -0
- package/dist/row-list/index.d.ts +3 -0
- package/dist/row-list/index.d.ts.map +1 -0
- package/dist/row-list/index.js +2 -0
- package/dist/row-list/index.js.map +1 -0
- package/dist/row-list/row-list.css +41 -0
- package/dist/row-list/row-list.d.ts +38 -0
- package/dist/row-list/row-list.d.ts.map +1 -0
- package/dist/row-list/row-list.js +32 -0
- package/dist/row-list/row-list.js.map +1 -0
- package/dist/segmented-control/segmented-control.css +7 -0
- package/dist/segmented-control/segmented-control.d.ts +6 -1
- package/dist/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/segmented-control/segmented-control.js +2 -1
- package/dist/segmented-control/segmented-control.js.map +1 -1
- package/dist/select/index.d.ts +3 -0
- package/dist/select/index.d.ts.map +1 -0
- package/dist/select/index.js +2 -0
- package/dist/select/index.js.map +1 -0
- package/dist/select/select.css +26 -0
- package/dist/select/select.d.ts +17 -0
- package/dist/select/select.d.ts.map +1 -0
- package/dist/select/select.js +10 -0
- package/dist/select/select.js.map +1 -0
- package/dist/shell/context.d.ts +1 -1
- package/dist/shell/context.d.ts.map +1 -1
- package/dist/shell/shell.css +26 -5
- package/dist/shell/shell.d.ts +6 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.js +7 -5
- package/dist/shell/shell.js.map +1 -1
- package/dist/side-panel/index.d.ts +3 -0
- package/dist/side-panel/index.d.ts.map +1 -0
- package/dist/side-panel/index.js +2 -0
- package/dist/side-panel/index.js.map +1 -0
- package/dist/side-panel/side-panel.css +51 -0
- package/dist/side-panel/side-panel.d.ts +18 -0
- package/dist/side-panel/side-panel.d.ts.map +1 -0
- package/dist/side-panel/side-panel.js +25 -0
- package/dist/side-panel/side-panel.js.map +1 -0
- package/dist/spacer/index.d.ts +2 -0
- package/dist/spacer/index.d.ts.map +1 -0
- package/dist/spacer/index.js +2 -0
- package/dist/spacer/index.js.map +1 -0
- package/dist/spacer/spacer.css +4 -0
- package/dist/spacer/spacer.d.ts +5 -0
- package/dist/spacer/spacer.d.ts.map +1 -0
- package/dist/spacer/spacer.js +8 -0
- package/dist/spacer/spacer.js.map +1 -0
- package/dist/spinner/index.d.ts +3 -0
- package/dist/spinner/index.d.ts.map +1 -0
- package/dist/spinner/index.js +2 -0
- package/dist/spinner/index.js.map +1 -0
- package/dist/spinner/spinner.css +14 -0
- package/dist/spinner/spinner.d.ts +10 -0
- package/dist/spinner/spinner.d.ts.map +1 -0
- package/dist/spinner/spinner.js +10 -0
- package/dist/spinner/spinner.js.map +1 -0
- package/dist/split/index.d.ts +3 -0
- package/dist/split/index.d.ts.map +1 -0
- package/dist/split/index.js +2 -0
- package/dist/split/index.js.map +1 -0
- package/dist/split/split.css +48 -0
- package/dist/split/split.d.ts +32 -0
- package/dist/split/split.d.ts.map +1 -0
- package/dist/split/split.js +18 -0
- package/dist/split/split.js.map +1 -0
- package/dist/status/index.d.ts +3 -0
- package/dist/status/index.d.ts.map +1 -0
- package/dist/status/index.js +2 -0
- package/dist/status/index.js.map +1 -0
- package/dist/status/status.css +6 -0
- package/dist/status/status.d.ts +9 -0
- package/dist/status/status.d.ts.map +1 -0
- package/dist/status/status.js +11 -0
- package/dist/status/status.js.map +1 -0
- package/dist/switch/index.d.ts +3 -0
- package/dist/switch/index.d.ts.map +1 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/index.js.map +1 -0
- package/dist/switch/switch.css +50 -0
- package/dist/switch/switch.d.ts +8 -0
- package/dist/switch/switch.d.ts.map +1 -0
- package/dist/switch/switch.js +9 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/table/index.d.ts +3 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/table/index.js +2 -0
- package/dist/table/index.js.map +1 -0
- package/dist/table/table.css +95 -0
- package/dist/table/table.d.ts +62 -0
- package/dist/table/table.d.ts.map +1 -0
- package/dist/table/table.js +41 -0
- package/dist/table/table.js.map +1 -0
- package/dist/text/index.d.ts +1 -1
- package/dist/text/index.d.ts.map +1 -1
- package/dist/text/text.css +54 -0
- package/dist/text/text.d.ts +16 -2
- package/dist/text/text.d.ts.map +1 -1
- package/dist/text/text.js +4 -1
- package/dist/text/text.js.map +1 -1
- package/dist/waterfall/index.d.ts +3 -0
- package/dist/waterfall/index.d.ts.map +1 -0
- package/dist/waterfall/index.js +2 -0
- package/dist/waterfall/index.js.map +1 -0
- package/dist/waterfall/waterfall.css +93 -0
- package/dist/waterfall/waterfall.d.ts +32 -0
- package/dist/waterfall/waterfall.d.ts.map +1 -0
- package/dist/waterfall/waterfall.js +16 -0
- package/dist/waterfall/waterfall.js.map +1 -0
- package/package.json +229 -39
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Newtone's component library for React on the web.
|
|
4
4
|
|
|
5
5
|
> The authoritative description of this repo is
|
|
6
|
-
> `~/
|
|
7
|
-
> discharge `~/
|
|
6
|
+
> `~/gallina/newtone/ui_react-web/_blueprint/index.md`, and the components here
|
|
7
|
+
> discharge `~/gallina/newtone/_blueprint/contracts/`. If this README and those disagree,
|
|
8
8
|
> they win.
|
|
9
9
|
|
|
10
10
|
## What is here
|
|
@@ -19,6 +19,7 @@ JavaScript can reach; `package.json`'s `exports` map is the complete one includi
|
|
|
19
19
|
| `Button` | Discharges `contracts/button.md`. Three variants, five states, **three size rungs** |
|
|
20
20
|
| `Text` | Discharges `contracts/typography.md`. `font`, `weight`, `case`, `figures`, `ligatures` |
|
|
21
21
|
| `Navbar` | Discharges `contracts/navbar.md`. Parts and knobs; arrangements belong to the site |
|
|
22
|
+
| `Desktop` | Discharges `contracts/desktop.md`. An OS frame: menu bar, windows, dock, panel, sheet; the consumer keeps the layout |
|
|
22
23
|
| `Identity` | A scoped seed set: re-derives colour for one subtree |
|
|
23
24
|
| `color.ts` | A port of `contracts/color-derivation.md` — the runtime half of identity |
|
|
24
25
|
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
.newtone-bar-list {
|
|
12
12
|
display: grid;
|
|
13
|
-
|
|
13
|
+
/* Names as wide as the longest, but never so wide the bars lose their 8rem (2026-10-30: HuevOS's long
|
|
14
|
+
agent names had squeezed them to nothing). */
|
|
15
|
+
grid-template-columns: minmax(0, max-content) minmax(8rem, 1fr);
|
|
14
16
|
align-items: center;
|
|
15
17
|
column-gap: var(--newtone-space-4);
|
|
16
18
|
row-gap: var(--newtone-space-2);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* Beside -- blueprint components/beside.md. A panel opened at the end of what is shown.
|
|
2
|
+
*
|
|
3
|
+
* LENGTHS IT DECIDES:
|
|
4
|
+
* 22-32rem the panel: a brief's sections or a node's facts at body size
|
|
5
|
+
* 64rem the box's own width under which the panel goes over the main content: below it, the main
|
|
6
|
+
* content's reading column and the panel no longer both fit */
|
|
7
|
+
.newtone-beside {
|
|
8
|
+
container: newtone-beside / inline-size;
|
|
9
|
+
position: relative;
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(0, 1fr);
|
|
12
|
+
block-size: 100%;
|
|
13
|
+
min-block-size: 0;
|
|
14
|
+
}
|
|
15
|
+
.newtone-beside[data-newtone-open] {
|
|
16
|
+
grid-template-columns: minmax(0, 1fr) minmax(22rem, 32rem);
|
|
17
|
+
}
|
|
18
|
+
.newtone-beside-main {
|
|
19
|
+
position: relative;
|
|
20
|
+
min-inline-size: 0;
|
|
21
|
+
min-block-size: 0;
|
|
22
|
+
}
|
|
23
|
+
.newtone-beside-panel {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-rows: auto 1fr;
|
|
26
|
+
min-inline-size: 0;
|
|
27
|
+
min-block-size: 0;
|
|
28
|
+
border-inline-start: 1px solid var(--newtone-role-divider-secondary);
|
|
29
|
+
background: var(--newtone-role-surface-primary);
|
|
30
|
+
}
|
|
31
|
+
.newtone-beside-head {
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
justify-content: space-between;
|
|
35
|
+
gap: var(--newtone-space-2);
|
|
36
|
+
padding: var(--newtone-space-2) var(--newtone-space-4);
|
|
37
|
+
border-block-end: 1px solid var(--newtone-role-divider-secondary);
|
|
38
|
+
}
|
|
39
|
+
.newtone-beside-body {
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
gap: var(--newtone-space-5);
|
|
43
|
+
min-block-size: 0;
|
|
44
|
+
overflow-y: auto;
|
|
45
|
+
padding: var(--newtone-space-6);
|
|
46
|
+
}
|
|
47
|
+
@container newtone-beside (max-width: 64rem) {
|
|
48
|
+
.newtone-beside-main,
|
|
49
|
+
.newtone-beside-panel {
|
|
50
|
+
grid-column: 1 / -1;
|
|
51
|
+
grid-row: 1;
|
|
52
|
+
}
|
|
53
|
+
.newtone-beside-panel {
|
|
54
|
+
z-index: 2;
|
|
55
|
+
border-inline-start: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface BesideProps {
|
|
3
|
+
/** What was opened beside the main content: `Beside.Head` and `Beside.Body`. Omitted, only the main content. */
|
|
4
|
+
panel?: ReactNode;
|
|
5
|
+
/** The panel's accessible name. */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** The main content. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Something opened beside what is shown (a node of a map, a brief beside its chat): at the end, as tall as
|
|
13
|
+
* the box, each scrolling on its own; where the box is narrower than 64rem, over the main content instead.
|
|
14
|
+
* components/beside.md.
|
|
15
|
+
*/
|
|
16
|
+
export declare function Beside({ panel, label, children, className }: BesideProps): import("react").JSX.Element;
|
|
17
|
+
export declare namespace Beside {
|
|
18
|
+
export { BesideHead as Head };
|
|
19
|
+
export { BesideBody as Body };
|
|
20
|
+
}
|
|
21
|
+
export interface BesidePartProps extends HTMLAttributes<HTMLDivElement> {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
/** The panel's head, staying put: what it is, and closing it. */
|
|
25
|
+
export declare function BesideHead({ className, children, ...rest }: BesidePartProps): import("react").JSX.Element;
|
|
26
|
+
/** The panel's body, scrolling on its own. */
|
|
27
|
+
export declare function BesideBody({ className, children, ...rest }: BesidePartProps): import("react").JSX.Element;
|
|
28
|
+
//# sourceMappingURL=beside.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beside.d.ts","sourceRoot":"","sources":["../../src/beside/beside.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,MAAM,WAAW,WAAW;IACxB,gHAAgH;IAChH,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,wBAAwB;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,WAAW,+BAcxE;yBAde,MAAM;aAsCR,UAAU;aACV,UAAU;;AAvBxB,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IACnE,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,iEAAiE;AACjE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAM3E;AAED,8CAA8C;AAC9C,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,+BAM3E"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Something opened beside what is shown (a node of a map, a brief beside its chat): at the end, as tall as
|
|
4
|
+
* the box, each scrolling on its own; where the box is narrower than 64rem, over the main content instead.
|
|
5
|
+
* components/beside.md.
|
|
6
|
+
*/
|
|
7
|
+
export function Beside({ panel, label, children, className }) {
|
|
8
|
+
return (_jsxs("div", { className: ['newtone-beside', className].filter(Boolean).join(' '), "data-newtone-open": panel ? '' : undefined, children: [_jsx("div", { className: "newtone-beside-main", children: children }), panel ? (_jsx("aside", { className: "newtone-beside-panel", "aria-label": label, children: panel })) : null] }));
|
|
9
|
+
}
|
|
10
|
+
/** The panel's head, staying put: what it is, and closing it. */
|
|
11
|
+
export function BesideHead({ className, children, ...rest }) {
|
|
12
|
+
return (_jsx("div", { className: ['newtone-beside-head', className].filter(Boolean).join(' '), ...rest, children: children }));
|
|
13
|
+
}
|
|
14
|
+
/** The panel's body, scrolling on its own. */
|
|
15
|
+
export function BesideBody({ className, children, ...rest }) {
|
|
16
|
+
return (_jsx("div", { className: ['newtone-beside-body', className].filter(Boolean).join(' '), ...rest, children: children }));
|
|
17
|
+
}
|
|
18
|
+
Beside.Head = BesideHead;
|
|
19
|
+
Beside.Body = BesideBody;
|
|
20
|
+
//# sourceMappingURL=beside.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"beside.js","sourceRoot":"","sources":["../../src/beside/beside.tsx"],"names":[],"mappings":";AAYA;;;;GAIG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAe;IACrE,OAAO,CACH,eACI,SAAS,EAAE,CAAC,gBAAgB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,uBAC/C,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,aAEzC,cAAK,SAAS,EAAC,qBAAqB,YAAE,QAAQ,GAAO,EACpD,KAAK,CAAC,CAAC,CAAC,CACL,gBAAO,SAAS,EAAC,sBAAsB,gBAAa,KAAK,YACpD,KAAK,GACF,CACX,CAAC,CAAC,CAAC,IAAI,IACN,CACT,CAAA;AACL,CAAC;AAMD,iEAAiE;AACjE,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAmB;IACxE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAM,IAAI,YACjF,QAAQ,GACP,CACT,CAAA;AACL,CAAC;AAED,8CAA8C;AAC9C,MAAM,UAAU,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAmB;IACxE,OAAO,CACH,cAAK,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAM,IAAI,YACjF,QAAQ,GACP,CACT,CAAA;AACL,CAAC;AAED,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA;AACxB,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/beside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/beside/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface BodyProps extends HTMLAttributes<HTMLBodyElement> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The document's `<body>`: no margin of the browser's, the page's ground and ink, so a frame (`Desktop`,
|
|
7
|
+
* `Shell`, `Gate`) meets the window's edges. A product's root layout renders it. components/body.md.
|
|
8
|
+
*/
|
|
9
|
+
export declare function Body({ className, children, ...rest }: BodyProps): import("react").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../src/body/body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,eAAe,CAAC;IAC9D,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,+BAM/D"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The document's `<body>`: no margin of the browser's, the page's ground and ink, so a frame (`Desktop`,
|
|
4
|
+
* `Shell`, `Gate`) meets the window's edges. A product's root layout renders it. components/body.md.
|
|
5
|
+
*/
|
|
6
|
+
export function Body({ className, children, ...rest }) {
|
|
7
|
+
return (_jsx("body", { className: ['newtone-body', className].filter(Boolean).join(' '), ...rest, children: children }));
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=body.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.js","sourceRoot":"","sources":["../../src/body/body.tsx"],"names":[],"mappings":";AAMA;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAa;IAC5D,OAAO,CACH,eAAM,SAAS,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,KAAM,IAAI,YAC3E,QAAQ,GACN,CACV,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/body/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* BulletList -- blueprint components/bullet-list.md. Short items, each marked. */
|
|
2
|
+
.newtone-bullet-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--newtone-space-2);
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
list-style: none;
|
|
9
|
+
}
|
|
10
|
+
.newtone-bullet-list[data-newtone-marker='dash'] > li {
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-inline-start: var(--newtone-space-4);
|
|
13
|
+
}
|
|
14
|
+
.newtone-bullet-list[data-newtone-marker='dash'] > li::before {
|
|
15
|
+
content: '–';
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset-inline-start: 0;
|
|
18
|
+
color: var(--newtone-role-text-secondary);
|
|
19
|
+
}
|
|
20
|
+
.newtone-bullet-list[data-newtone-marker='disc'] {
|
|
21
|
+
display: grid;
|
|
22
|
+
gap: var(--newtone-space-1);
|
|
23
|
+
padding-inline-start: var(--newtone-space-5);
|
|
24
|
+
list-style: disc;
|
|
25
|
+
}
|
|
26
|
+
.newtone-bullet-list[data-newtone-marker='icon'] {
|
|
27
|
+
gap: var(--newtone-space-3);
|
|
28
|
+
}
|
|
29
|
+
.newtone-bullet-list[data-newtone-marker='icon'] > li {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
gap: var(--newtone-space-2);
|
|
33
|
+
}
|
|
34
|
+
.newtone-bullet-list[data-newtone-marker='none'] {
|
|
35
|
+
gap: var(--newtone-space-3);
|
|
36
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* What marks each item: `dash`, an en dash in the secondary ink; `disc`, the browser's own; `icon`, none,
|
|
4
|
+
* each item a row whose first child (an `Icon`) is its mark; `none`, nothing, the items standing apart as they
|
|
5
|
+
* are (cards, blocks, rows of their own).
|
|
6
|
+
*/
|
|
7
|
+
export type BulletListMarker = 'dash' | 'disc' | 'icon' | 'none';
|
|
8
|
+
export interface BulletListProps extends HTMLAttributes<HTMLUListElement | HTMLOListElement> {
|
|
9
|
+
marker?: BulletListMarker;
|
|
10
|
+
/** `ol` when the order is what the items say. */
|
|
11
|
+
as?: 'ul' | 'ol';
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/** Short items one under another, each marked. Its items are plain `<li>`s. components/bullet-list.md. */
|
|
15
|
+
export declare function BulletList({ marker, as: List, className, children, ...rest }: BulletListProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=bullet-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bullet-list.d.ts","sourceRoot":"","sources":["../../src/bullet-list/bullet-list.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEhE,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IACxF,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,iDAAiD;IACjD,EAAE,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACvB;AAED,0GAA0G;AAC1G,wBAAgB,UAAU,CAAC,EACvB,MAAe,EACf,EAAE,EAAE,IAAW,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACV,EAAE,eAAe,+BAUjB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/** Short items one under another, each marked. Its items are plain `<li>`s. components/bullet-list.md. */
|
|
3
|
+
export function BulletList({ marker = 'dash', as: List = 'ul', className, children, ...rest }) {
|
|
4
|
+
return (_jsx(List, { className: ['newtone-bullet-list', className].filter(Boolean).join(' '), "data-newtone-marker": marker, ...rest, children: children }));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=bullet-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bullet-list.js","sourceRoot":"","sources":["../../src/bullet-list/bullet-list.tsx"],"names":[],"mappings":";AAgBA,0GAA0G;AAC1G,MAAM,UAAU,UAAU,CAAC,EACvB,MAAM,GAAG,MAAM,EACf,EAAE,EAAE,IAAI,GAAG,IAAI,EACf,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACO;IACd,OAAO,CACH,KAAC,IAAI,IACD,SAAS,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,yBAClD,MAAM,KACvB,IAAI,YAEP,QAAQ,GACN,CACV,CAAA;AACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bullet-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bullet-list/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CanvasRect } from '../canvas.js';
|
|
2
|
+
export interface CanvasBoxProps extends CanvasRect {
|
|
3
|
+
/** Names the frame, for the arrow keys that move what it holds. */
|
|
4
|
+
label: string;
|
|
5
|
+
/** The box as a handle's drag or an arrow key leaves it, in the consumer's units, and the zoom (CSS pixels to a unit). */
|
|
6
|
+
onResize?: (box: CanvasRect, scale: number) => void;
|
|
7
|
+
/** A drag of a handle ended, or an arrow key moved it: one change, for the consumer's history. */
|
|
8
|
+
onCommit?: () => void;
|
|
9
|
+
/** How far the frame is turned about its middle, in degrees, clockwise. */
|
|
10
|
+
rotation?: number;
|
|
11
|
+
/** Given, a ninth handle turns it: the angle it is dragged to, in degrees (Shift: in steps of 15°). */
|
|
12
|
+
onRotate?: (degrees: number) => void;
|
|
13
|
+
}
|
|
14
|
+
/** The frame round what is chosen on a Canvas, with eight handles. Blueprint components/canvas.md. */
|
|
15
|
+
export declare function CanvasBox({ x, y, width, height, label, onResize, onCommit, rotation, onRotate }: CanvasBoxProps): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../src/canvas/box/box.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG9C,MAAM,WAAW,cAAe,SAAQ,UAAU;IAC9C,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAA;IACb,0HAA0H;IAC1H,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnD,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AA+DD,sGAAsG;AACtG,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAY,EAAE,QAAQ,EAAE,EAAE,cAAc,+BA6HnH"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useRef } from 'react';
|
|
4
|
+
import { useCanvas } from '../context.js';
|
|
5
|
+
// Each handle, by which sides of the box it moves: -1 the start, 1 the end, 0 neither.
|
|
6
|
+
const HANDLES = [
|
|
7
|
+
{ id: 'nw', h: -1, v: -1 },
|
|
8
|
+
{ id: 'n', h: 0, v: -1 },
|
|
9
|
+
{ id: 'ne', h: 1, v: -1 },
|
|
10
|
+
{ id: 'e', h: 1, v: 0 },
|
|
11
|
+
{ id: 'se', h: 1, v: 1 },
|
|
12
|
+
{ id: 's', h: 0, v: 1 },
|
|
13
|
+
{ id: 'sw', h: -1, v: 1 },
|
|
14
|
+
{ id: 'w', h: -1, v: 0 },
|
|
15
|
+
];
|
|
16
|
+
// A handle drawn, and the reach it takes a press from, in CSS pixels; how far above the top the turning handle stands.
|
|
17
|
+
const SIDE = 8;
|
|
18
|
+
const REACH = 24;
|
|
19
|
+
const ABOVE = 24;
|
|
20
|
+
const RAD = Math.PI / 180;
|
|
21
|
+
// A point turned by `deg` about a middle.
|
|
22
|
+
const turned = (px, py, mx, my, deg) => {
|
|
23
|
+
const [c, s] = [Math.cos(deg * RAD), Math.sin(deg * RAD)];
|
|
24
|
+
return [mx + (px - mx) * c - (py - my) * s, my + (px - mx) * s + (py - my) * c];
|
|
25
|
+
};
|
|
26
|
+
// The box a handle's drag leaves: the side it holds moved by (dx, dy), the opposite side where it was; with `keep`, in
|
|
27
|
+
// the proportions it had. A side dragged past the other turns the box over.
|
|
28
|
+
function resized(b, handle, dx, dy, keep) {
|
|
29
|
+
let [x0, y0, x1, y1] = [b.x, b.y, b.x + b.width, b.y + b.height];
|
|
30
|
+
if (handle.h < 0)
|
|
31
|
+
x0 += dx;
|
|
32
|
+
if (handle.h > 0)
|
|
33
|
+
x1 += dx;
|
|
34
|
+
if (handle.v < 0)
|
|
35
|
+
y0 += dy;
|
|
36
|
+
if (handle.v > 0)
|
|
37
|
+
y1 += dy;
|
|
38
|
+
if (keep && b.width > 0 && b.height > 0) {
|
|
39
|
+
const ratio = b.width / b.height;
|
|
40
|
+
if (handle.h !== 0 && handle.v !== 0) {
|
|
41
|
+
// A corner: the larger change leads, the other side follows it.
|
|
42
|
+
const w = Math.abs(x1 - x0);
|
|
43
|
+
const h = Math.abs(y1 - y0);
|
|
44
|
+
if (w / ratio > h) {
|
|
45
|
+
const nh = w / ratio;
|
|
46
|
+
if (handle.v < 0)
|
|
47
|
+
y0 = y1 - Math.sign(y1 - y0 || 1) * nh;
|
|
48
|
+
else
|
|
49
|
+
y1 = y0 + Math.sign(y1 - y0 || 1) * nh;
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
const nw = h * ratio;
|
|
53
|
+
if (handle.h < 0)
|
|
54
|
+
x0 = x1 - Math.sign(x1 - x0 || 1) * nw;
|
|
55
|
+
else
|
|
56
|
+
x1 = x0 + Math.sign(x1 - x0 || 1) * nw;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else if (handle.h !== 0) {
|
|
60
|
+
// A side: the other dimension follows, about the middle.
|
|
61
|
+
const nh = Math.abs(x1 - x0) / ratio;
|
|
62
|
+
const mid = (y0 + y1) / 2;
|
|
63
|
+
[y0, y1] = [mid - nh / 2, mid + nh / 2];
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
const nw = Math.abs(y1 - y0) * ratio;
|
|
67
|
+
const mid = (x0 + x1) / 2;
|
|
68
|
+
[x0, x1] = [mid - nw / 2, mid + nw / 2];
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return { x: Math.min(x0, x1), y: Math.min(y0, y1), width: Math.abs(x1 - x0), height: Math.abs(y1 - y0) };
|
|
72
|
+
}
|
|
73
|
+
/** The frame round what is chosen on a Canvas, with eight handles. Blueprint components/canvas.md. */
|
|
74
|
+
export function CanvasBox({ x, y, width, height, label, onResize, onCommit, rotation = 0, onRotate }) {
|
|
75
|
+
const { view } = useCanvas();
|
|
76
|
+
const box = { x, y, width, height };
|
|
77
|
+
// The box and where the pointer was when a handle was taken.
|
|
78
|
+
const start = useRef(null);
|
|
79
|
+
const take = (handle) => (e) => {
|
|
80
|
+
if (e.button !== 0)
|
|
81
|
+
return;
|
|
82
|
+
// A handle's press is the box's, not the canvas's.
|
|
83
|
+
e.stopPropagation();
|
|
84
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
85
|
+
start.current = { box, handle, cx: e.clientX, cy: e.clientY, id: e.pointerId };
|
|
86
|
+
};
|
|
87
|
+
const drag = (e) => {
|
|
88
|
+
const s = start.current;
|
|
89
|
+
if (!s || s.id !== e.pointerId)
|
|
90
|
+
return;
|
|
91
|
+
e.stopPropagation();
|
|
92
|
+
// The drag along the box's own sides: the pointer's move turned back by the box's turn.
|
|
93
|
+
const [dx, dy] = turned(e.clientX - s.cx, e.clientY - s.cy, 0, 0, -rotation).map((d) => d / view.k);
|
|
94
|
+
const next = resized(s.box, s.handle, dx, dy, e.shiftKey);
|
|
95
|
+
if (rotation) {
|
|
96
|
+
// The side opposite the handle stays where it is on the plane: where it was, turned about the old middle,
|
|
97
|
+
// and where it now is, turned about the new one; the box moves by the difference.
|
|
98
|
+
const side = (b) => [b.x + ((1 - s.handle.h) / 2) * b.width, b.y + ((1 - s.handle.v) / 2) * b.height];
|
|
99
|
+
const mid = (b) => [b.x + b.width / 2, b.y + b.height / 2];
|
|
100
|
+
const was = turned(...side(s.box), ...mid(s.box), rotation);
|
|
101
|
+
const now = turned(...side(next), ...mid(next), rotation);
|
|
102
|
+
next.x += was[0] - now[0];
|
|
103
|
+
next.y += was[1] - now[1];
|
|
104
|
+
}
|
|
105
|
+
onResize?.(next, view.k);
|
|
106
|
+
};
|
|
107
|
+
const end = (e) => {
|
|
108
|
+
const s = start.current;
|
|
109
|
+
if (!s || s.id !== e.pointerId)
|
|
110
|
+
return;
|
|
111
|
+
e.stopPropagation();
|
|
112
|
+
start.current = null;
|
|
113
|
+
onCommit?.();
|
|
114
|
+
};
|
|
115
|
+
const keys = (e) => {
|
|
116
|
+
const step = e.shiftKey ? 10 : 1;
|
|
117
|
+
const by = { ArrowLeft: [-step, 0], ArrowRight: [step, 0], ArrowUp: [0, -step], ArrowDown: [0, step] }[e.key];
|
|
118
|
+
if (!by)
|
|
119
|
+
return;
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
e.stopPropagation();
|
|
122
|
+
onResize?.({ ...box, x: x + by[0], y: y + by[1] }, view.k);
|
|
123
|
+
onCommit?.();
|
|
124
|
+
};
|
|
125
|
+
const [sx, sy] = [view.x + x * view.k, view.y + y * view.k];
|
|
126
|
+
const [sw, sh] = [width * view.k, height * view.k];
|
|
127
|
+
const [mx, my] = [sx + sw / 2, sy + sh / 2];
|
|
128
|
+
// Turning: the angle from the middle to the pointer, the handle standing straight up at 0°.
|
|
129
|
+
const turning = useRef(null);
|
|
130
|
+
const angleAt = (e) => {
|
|
131
|
+
const plane = e.currentTarget.ownerSVGElement?.getBoundingClientRect();
|
|
132
|
+
if (!plane)
|
|
133
|
+
return rotation;
|
|
134
|
+
const deg = Math.atan2(e.clientY - plane.top - my, e.clientX - plane.left - mx) / RAD + 90;
|
|
135
|
+
const whole = ((deg % 360) + 360) % 360;
|
|
136
|
+
return e.shiftKey ? (Math.round(whole / 15) * 15) % 360 : whole;
|
|
137
|
+
};
|
|
138
|
+
return (_jsxs("g", { className: "newtone-canvas-box", role: "group", "aria-label": label, tabIndex: 0, onKeyDown: keys, transform: rotation ? `rotate(${rotation} ${mx} ${my})` : undefined, children: [_jsx("rect", { className: "newtone-canvas-box-frame", x: sx, y: sy, width: sw, height: sh }), onRotate ? (_jsxs("g", { className: "newtone-canvas-box-handle", "data-handle": "turn", children: [_jsx("line", { className: "newtone-canvas-box-arm", x1: mx, y1: sy, x2: mx, y2: sy - ABOVE }), _jsx("circle", { className: "newtone-canvas-box-reach", cx: mx, cy: sy - ABOVE, r: REACH / 2, onPointerDown: (e) => {
|
|
139
|
+
if (e.button !== 0)
|
|
140
|
+
return;
|
|
141
|
+
e.stopPropagation();
|
|
142
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
143
|
+
turning.current = e.pointerId;
|
|
144
|
+
}, onPointerMove: (e) => {
|
|
145
|
+
if (turning.current !== e.pointerId)
|
|
146
|
+
return;
|
|
147
|
+
e.stopPropagation();
|
|
148
|
+
onRotate(angleAt(e));
|
|
149
|
+
}, onPointerUp: (e) => {
|
|
150
|
+
if (turning.current !== e.pointerId)
|
|
151
|
+
return;
|
|
152
|
+
e.stopPropagation();
|
|
153
|
+
turning.current = null;
|
|
154
|
+
onCommit?.();
|
|
155
|
+
}, onPointerCancel: () => {
|
|
156
|
+
turning.current = null;
|
|
157
|
+
} }), _jsx("circle", { className: "newtone-canvas-box-mark", cx: mx, cy: sy - ABOVE, r: SIDE / 2 })] })) : null, HANDLES.map((handle) => {
|
|
158
|
+
const hx = sx + ((handle.h + 1) / 2) * sw;
|
|
159
|
+
const hy = sy + ((handle.v + 1) / 2) * sh;
|
|
160
|
+
return (_jsxs("g", { className: "newtone-canvas-box-handle", "data-handle": handle.id, children: [_jsx("rect", { className: "newtone-canvas-box-reach", x: hx - REACH / 2, y: hy - REACH / 2, width: REACH, height: REACH, onPointerDown: take(handle), onPointerMove: drag, onPointerUp: end, onPointerCancel: end }), _jsx("rect", { className: "newtone-canvas-box-mark", x: hx - SIDE / 2, y: hy - SIDE / 2, width: SIDE, height: SIDE })] }, handle.id));
|
|
161
|
+
})] }));
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"","sources":["../../../src/canvas/box/box.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAA;;AAEZ,OAAO,EAAE,MAAM,EAAkD,MAAM,OAAO,CAAA;AAE9E,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAezC,uFAAuF;AACvF,MAAM,OAAO,GAAG;IACZ,EAAE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