plantasia.space-design 0.77.0 → 0.78.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 +8 -0
- package/dist/arrow/arrow-audio-segment.js +3 -3
- package/dist/arrow/arrow-audio-slider.js +3 -3
- package/dist/arrow/arrow-keys.js +3 -3
- package/dist/arrow/arrow-knob.d.ts +1 -1
- package/dist/arrow/arrow-knob.js +2 -2
- package/dist/arrow/arrow-multislider.d.ts +1 -1
- package/dist/arrow/arrow-multislider.js +3 -3
- package/dist/arrow/arrow-param.d.ts +1 -1
- package/dist/arrow/arrow-param.js +16 -15
- package/dist/arrow/arrow-range.js +3 -3
- package/dist/arrow/arrow-shared.d.ts +21 -1
- package/dist/arrow/arrow-shared.js +9 -3
- package/dist/arrow/arrow-slider.d.ts +2 -2
- package/dist/arrow/arrow-slider.js +2 -2
- package/dist/arrow/arrow-switch.d.ts +1 -1
- package/dist/arrow/arrow-switch.js +2 -2
- package/dist/arrow/arrow-value-param.js +16 -15
- package/dist/arrow/arrow-value-slider.js +16 -15
- package/dist/arrow/index.js +23 -22
- package/dist/arrow/keys-model.js +2 -2
- package/dist/arrow/multislider-model.js +2 -2
- package/dist/arrow/range-model.js +2 -2
- package/dist/badge.d.ts +1 -1
- package/dist/body-selector.js +4 -3
- package/dist/button.d.ts +1 -1
- package/dist/{chunk-LMMNNJL6.js → chunk-2DVZPBK4.js} +5 -4
- package/dist/chunk-2DVZPBK4.js.map +1 -0
- package/dist/{chunk-66TTH2TF.js → chunk-2MHM3HQ3.js} +2 -2
- package/dist/{chunk-LIPDWN66.js → chunk-4Z3WME3R.js} +56 -25
- package/dist/chunk-4Z3WME3R.js.map +1 -0
- package/dist/{chunk-OAJFMEQJ.js → chunk-6J2MGMGN.js} +4 -4
- package/dist/{chunk-SI4SKSAC.js → chunk-6SWSDYJP.js} +2 -2
- package/dist/{chunk-FESX573N.js → chunk-7M5XHQBH.js} +2 -2
- package/dist/{chunk-T6COEB5D.js → chunk-7TLH2HIT.js} +5 -3
- package/dist/chunk-7TLH2HIT.js.map +1 -0
- package/dist/{chunk-3LMOKCQI.js → chunk-AAW6ULHN.js} +3 -3
- package/dist/{chunk-K26VFD7R.js → chunk-ACN5JVUS.js} +2 -2
- package/dist/{chunk-4Z5PUTIV.js → chunk-BPRAGQDR.js} +4 -4
- package/dist/{chunk-7H2OFEFX.js → chunk-CAX6DZRH.js} +12 -12
- package/dist/{chunk-EBLUWLLM.js → chunk-E7HJJAIA.js} +2 -2
- package/dist/{chunk-SQG73TAZ.js → chunk-FKH5A2YF.js} +16 -10
- package/dist/chunk-FKH5A2YF.js.map +1 -0
- package/dist/{chunk-EUYP3DY7.js → chunk-FOQP5P3S.js} +8 -5
- package/dist/chunk-FOQP5P3S.js.map +1 -0
- package/dist/{chunk-PNZLWKAW.js → chunk-G33ORB6K.js} +2 -2
- package/dist/{chunk-6H3Q7WMQ.js → chunk-GEFIUWMJ.js} +2 -2
- package/dist/{chunk-TT4D2P25.js → chunk-GKABE5YN.js} +8 -5
- package/dist/{chunk-TT4D2P25.js.map → chunk-GKABE5YN.js.map} +1 -1
- package/dist/{chunk-K23HFOI7.js → chunk-GTOBMWVV.js} +3 -3
- package/dist/{chunk-A7NJYIGQ.js → chunk-I7LZWYYI.js} +2 -2
- package/dist/{chunk-6E3LQZWY.js → chunk-IFXJXQ4D.js} +2 -2
- package/dist/{chunk-ZD72DOKW.js → chunk-IKYB434Q.js} +2 -2
- package/dist/{chunk-WPNBS5N5.js → chunk-IUFYQ5NU.js} +4 -4
- package/dist/{chunk-J4XQ6VYS.js → chunk-J5ZJOPUX.js} +17 -2
- package/dist/chunk-J5ZJOPUX.js.map +1 -0
- package/dist/{chunk-HUPBTYUF.js → chunk-JANXBTOE.js} +13 -3
- package/dist/chunk-JANXBTOE.js.map +1 -0
- package/dist/{chunk-FT2YCGWR.js → chunk-JTNPAY2N.js} +2 -2
- package/dist/{chunk-JKGZB3TW.js → chunk-JXTRVYLR.js} +2 -2
- package/dist/{chunk-X2QH6RP4.js → chunk-JXXJFRQM.js} +2 -2
- package/dist/{chunk-L2BRDKGR.js → chunk-JZLL2DCN.js} +2 -2
- package/dist/{chunk-4FDZNEMW.js → chunk-KKQ2QGST.js} +7 -3
- package/dist/chunk-KKQ2QGST.js.map +1 -0
- package/dist/{chunk-MA3J3LJK.js → chunk-KQJD4FOT.js} +2 -2
- package/dist/{chunk-QSRFE7RZ.js → chunk-L5N5JPVZ.js} +2 -2
- package/dist/{chunk-ZSOUE42P.js → chunk-LBB2A5KS.js} +31 -1
- package/dist/chunk-LBB2A5KS.js.map +1 -0
- package/dist/chunk-MFLWIZ6F.js +409 -0
- package/dist/chunk-MFLWIZ6F.js.map +1 -0
- package/dist/{chunk-PTFS2G4M.js → chunk-N44QB6FC.js} +4 -4
- package/dist/{chunk-YYCAGC2U.js → chunk-NVYF7OGU.js} +6 -6
- package/dist/{chunk-64WAIGCO.js → chunk-O6YZ4KZJ.js} +2 -2
- package/dist/{chunk-QCQK6LH5.js → chunk-O7TC24A3.js} +2 -2
- package/dist/{chunk-DTYR7M2M.js → chunk-P4WKIVXE.js} +34 -16
- package/dist/chunk-P4WKIVXE.js.map +1 -0
- package/dist/{chunk-COYIN3U5.js → chunk-PII2352S.js} +15 -10
- package/dist/chunk-PII2352S.js.map +1 -0
- package/dist/{chunk-JAJ42ZY5.js → chunk-QBMPDEME.js} +4 -4
- package/dist/{chunk-CYQWE7KG.js → chunk-QOE5OW6N.js} +4 -4
- package/dist/{chunk-X3MLQKNR.js → chunk-QV3TN2LK.js} +5 -5
- package/dist/{chunk-7VNZ3FK5.js → chunk-RP6XL3QR.js} +2 -2
- package/dist/{chunk-E26Z2O46.js → chunk-RS3CR6NF.js} +21 -13
- package/dist/chunk-RS3CR6NF.js.map +1 -0
- package/dist/{chunk-4MXZDVOO.js → chunk-RSNKFMRS.js} +2 -2
- package/dist/chunk-TMQI73PU.js +325 -0
- package/dist/chunk-TMQI73PU.js.map +1 -0
- package/dist/{chunk-TXEFPBT4.js → chunk-UAJ6QU7B.js} +2 -2
- package/dist/{chunk-2QIQ465J.js → chunk-UBLXGPX3.js} +2 -2
- package/dist/{chunk-SURN626V.js → chunk-V2IHDF3V.js} +2 -2
- package/dist/chunk-WKB2AH5Y.js +49 -0
- package/dist/chunk-WKB2AH5Y.js.map +1 -0
- package/dist/{chunk-CBJ4W5K7.js → chunk-WOHKX5KM.js} +2 -2
- package/dist/{chunk-AZX55KSD.js → chunk-WZL33EWH.js} +2 -2
- package/dist/{chunk-PQMGIAZ3.js → chunk-XACTUMEI.js} +2 -2
- package/dist/{chunk-JSLQBXYP.js → chunk-XDU6OGIU.js} +3 -3
- package/dist/{chunk-NLBWD77F.js → chunk-XMEUZCXX.js} +2 -2
- package/dist/{chunk-F6MPKL2S.js → chunk-YDFDTEGG.js} +2 -2
- package/dist/{chunk-EOLP62AK.js → chunk-Z4N6QLGM.js} +24 -13
- package/dist/chunk-Z4N6QLGM.js.map +1 -0
- package/dist/{chunk-3RGEPWMC.js → chunk-ZBCOFTNV.js} +2 -2
- package/dist/{chunk-6QO3KF2M.js → chunk-ZBJ4UU4O.js} +3 -3
- package/dist/{chunk-CGG5ENS2.js → chunk-ZYGTULPY.js} +2 -2
- package/dist/color-control.js +17 -16
- package/dist/command.d.ts +7 -7
- package/dist/components.css +1 -1
- package/dist/components.generated.d.ts +2 -2
- package/dist/components.generated.js +94 -3
- package/dist/components.generated.js.map +1 -1
- package/dist/dna/index.js +3 -3
- package/dist/entity-view-card/entity-badges.js +4 -3
- package/dist/entity-view-card/entity-mini-card.js +4 -3
- package/dist/entity-view-card/entity-view-card.js +5 -4
- package/dist/entity-view-card/index.js +19 -18
- package/dist/entity-view-card/orbiter-architecture.js +4 -3
- package/dist/icons/Icon.js +3 -2
- package/dist/icons/index.js +3 -2
- package/dist/icons/svg-sanitize-dom.d.ts +5 -0
- package/dist/icons/svg-sanitize-dom.js +8 -0
- package/dist/icons/svg-sanitize-dom.js.map +1 -0
- package/dist/icons/svg-transform.d.ts +2 -1
- package/dist/icons/svg-transform.js +6 -3
- package/dist/image-cropper.js +18 -17
- package/dist/image-uploader.js +19 -18
- package/dist/index.d.ts +1 -0
- package/dist/index.js +63 -52
- package/dist/kingdom-selector.js +4 -3
- package/dist/module-components/drum-sequencer.d.ts +1 -1
- package/dist/module-components/drum-sequencer.js +24 -23
- package/dist/module-components/drum-synth.d.ts +1 -1
- package/dist/module-components/drum-synth.js +24 -23
- package/dist/module-components/envelope-model.js +2 -2
- package/dist/module-components/envelope.js +18 -17
- package/dist/module-components/index.d.ts +1 -1
- package/dist/module-components/index.js +60 -59
- package/dist/module-components/module-chain.js +4 -3
- package/dist/module-components/module-control-badge.js +4 -3
- package/dist/module-components/module-glyph.js +4 -3
- package/dist/module-components/module-panel.d.ts +1 -1
- package/dist/module-components/module-panel.js +23 -22
- package/dist/module-components/module-rows.d.ts +1 -1
- package/dist/module-components/module-rows.js +18 -17
- package/dist/module-components/module-screen-controls.js +3 -3
- package/dist/module-components/module-screen-model.js +2 -2
- package/dist/module-components/module-screen.js +4 -4
- package/dist/module-components/module-tile.d.ts +6 -6
- package/dist/module-components/module-tile.js +1 -1
- package/dist/module-components/pattern-pads.js +3 -3
- package/dist/module-components/routing-diagram.js +2 -2
- package/dist/module-components/step-lanes.js +17 -16
- package/dist/{module-panel-CT2RMD4j.d.ts → module-panel-C9WAIwUF.d.ts} +6 -0
- package/dist/name-regenerator-controls.js +5 -4
- package/dist/numeric-keyboard/index.js +16 -15
- package/dist/numeric-keyboard/numeric-keyboard-provider.js +16 -15
- package/dist/numeric-keyboard/numeric-keyboard.js +16 -15
- package/dist/playback-bar.js +17 -16
- package/dist/playback-overlay.js +18 -17
- package/dist/sharing-card.d.ts +6 -1
- package/dist/sharing-card.js +1 -1
- package/dist/sheet.d.ts +5 -1
- package/dist/sheet.js +1 -1
- package/dist/side-dock.js +1 -1
- package/dist/sidebar.js +2 -2
- package/dist/slider-button.js +3 -3
- package/dist/styles.css +1 -1
- package/dist/timeline/components/automation-lane.js +2 -2
- package/dist/timeline/components/index.js +54 -53
- package/dist/timeline/components/piano-roll.js +19 -18
- package/dist/timeline/components/timeline-ruler.js +2 -2
- package/dist/timeline/hooks/index.js +7 -7
- package/dist/timeline/hooks/sync-fanout.js +1 -1
- package/dist/timeline/hooks/use-quantized-launch.js +2 -2
- package/dist/timeline/index.js +92 -91
- package/dist/timeline/tracks/audio-track.js +3 -3
- package/dist/timeline/tracks/clip-track.js +2 -2
- package/dist/timeline/tracks/image-track.js +3 -3
- package/dist/timeline/tracks/index.js +8 -8
- package/dist/timeline/tracks/shape-track.js +3 -3
- package/dist/timeline/tracks/video-track.js +3 -3
- package/dist/tutorial-runner.d.ts +98 -0
- package/dist/tutorial-runner.js +22 -0
- package/dist/tutorial-runner.js.map +1 -0
- package/package.json +1 -1
- package/src/react/arrow/arrow-knob.tsx +19 -11
- package/src/react/arrow/arrow-multislider.tsx +5 -3
- package/src/react/arrow/arrow-param.tsx +15 -8
- package/src/react/arrow/arrow-shared.ts +53 -0
- package/src/react/arrow/arrow-slider.tsx +34 -14
- package/src/react/arrow/arrow-switch.tsx +11 -8
- package/src/react/components.generated.json +93 -2
- package/src/react/components.generated.ts +95 -3
- package/src/react/icons/Icon.tsx +5 -1
- package/src/react/icons/svg-sanitize-dom.ts +140 -0
- package/src/react/icons/svg-transform.ts +33 -8
- package/src/react/index.ts +10 -0
- package/src/react/module-components/module-panel.tsx +53 -11
- package/src/react/module-components/module-tile.tsx +15 -3
- package/src/react/sharing-card.tsx +27 -10
- package/src/react/sheet.tsx +9 -3
- package/src/react/side-dock.tsx +19 -2
- package/src/react/sidebar.tsx +6 -1
- package/src/react/timeline/hooks/sync-fanout.ts +27 -16
- package/src/react/tutorial-runner.tsx +585 -0
- package/src/styles/effects.css +25 -1
- package/dist/chunk-4FDZNEMW.js.map +0 -1
- package/dist/chunk-COYIN3U5.js.map +0 -1
- package/dist/chunk-DTYR7M2M.js.map +0 -1
- package/dist/chunk-E26Z2O46.js.map +0 -1
- package/dist/chunk-EOLP62AK.js.map +0 -1
- package/dist/chunk-EUYP3DY7.js.map +0 -1
- package/dist/chunk-HUPBTYUF.js.map +0 -1
- package/dist/chunk-J4XQ6VYS.js.map +0 -1
- package/dist/chunk-LIPDWN66.js.map +0 -1
- package/dist/chunk-LMMNNJL6.js.map +0 -1
- package/dist/chunk-SQG73TAZ.js.map +0 -1
- package/dist/chunk-T4MMDJIP.js +0 -42
- package/dist/chunk-T4MMDJIP.js.map +0 -1
- package/dist/chunk-T6COEB5D.js.map +0 -1
- package/dist/chunk-ZSOUE42P.js.map +0 -1
- /package/dist/{chunk-66TTH2TF.js.map → chunk-2MHM3HQ3.js.map} +0 -0
- /package/dist/{chunk-OAJFMEQJ.js.map → chunk-6J2MGMGN.js.map} +0 -0
- /package/dist/{chunk-SI4SKSAC.js.map → chunk-6SWSDYJP.js.map} +0 -0
- /package/dist/{chunk-FESX573N.js.map → chunk-7M5XHQBH.js.map} +0 -0
- /package/dist/{chunk-3LMOKCQI.js.map → chunk-AAW6ULHN.js.map} +0 -0
- /package/dist/{chunk-K26VFD7R.js.map → chunk-ACN5JVUS.js.map} +0 -0
- /package/dist/{chunk-4Z5PUTIV.js.map → chunk-BPRAGQDR.js.map} +0 -0
- /package/dist/{chunk-7H2OFEFX.js.map → chunk-CAX6DZRH.js.map} +0 -0
- /package/dist/{chunk-EBLUWLLM.js.map → chunk-E7HJJAIA.js.map} +0 -0
- /package/dist/{chunk-PNZLWKAW.js.map → chunk-G33ORB6K.js.map} +0 -0
- /package/dist/{chunk-6H3Q7WMQ.js.map → chunk-GEFIUWMJ.js.map} +0 -0
- /package/dist/{chunk-K23HFOI7.js.map → chunk-GTOBMWVV.js.map} +0 -0
- /package/dist/{chunk-A7NJYIGQ.js.map → chunk-I7LZWYYI.js.map} +0 -0
- /package/dist/{chunk-6E3LQZWY.js.map → chunk-IFXJXQ4D.js.map} +0 -0
- /package/dist/{chunk-ZD72DOKW.js.map → chunk-IKYB434Q.js.map} +0 -0
- /package/dist/{chunk-WPNBS5N5.js.map → chunk-IUFYQ5NU.js.map} +0 -0
- /package/dist/{chunk-FT2YCGWR.js.map → chunk-JTNPAY2N.js.map} +0 -0
- /package/dist/{chunk-JKGZB3TW.js.map → chunk-JXTRVYLR.js.map} +0 -0
- /package/dist/{chunk-X2QH6RP4.js.map → chunk-JXXJFRQM.js.map} +0 -0
- /package/dist/{chunk-L2BRDKGR.js.map → chunk-JZLL2DCN.js.map} +0 -0
- /package/dist/{chunk-MA3J3LJK.js.map → chunk-KQJD4FOT.js.map} +0 -0
- /package/dist/{chunk-QSRFE7RZ.js.map → chunk-L5N5JPVZ.js.map} +0 -0
- /package/dist/{chunk-PTFS2G4M.js.map → chunk-N44QB6FC.js.map} +0 -0
- /package/dist/{chunk-YYCAGC2U.js.map → chunk-NVYF7OGU.js.map} +0 -0
- /package/dist/{chunk-64WAIGCO.js.map → chunk-O6YZ4KZJ.js.map} +0 -0
- /package/dist/{chunk-QCQK6LH5.js.map → chunk-O7TC24A3.js.map} +0 -0
- /package/dist/{chunk-JAJ42ZY5.js.map → chunk-QBMPDEME.js.map} +0 -0
- /package/dist/{chunk-CYQWE7KG.js.map → chunk-QOE5OW6N.js.map} +0 -0
- /package/dist/{chunk-X3MLQKNR.js.map → chunk-QV3TN2LK.js.map} +0 -0
- /package/dist/{chunk-7VNZ3FK5.js.map → chunk-RP6XL3QR.js.map} +0 -0
- /package/dist/{chunk-4MXZDVOO.js.map → chunk-RSNKFMRS.js.map} +0 -0
- /package/dist/{chunk-TXEFPBT4.js.map → chunk-UAJ6QU7B.js.map} +0 -0
- /package/dist/{chunk-2QIQ465J.js.map → chunk-UBLXGPX3.js.map} +0 -0
- /package/dist/{chunk-SURN626V.js.map → chunk-V2IHDF3V.js.map} +0 -0
- /package/dist/{chunk-CBJ4W5K7.js.map → chunk-WOHKX5KM.js.map} +0 -0
- /package/dist/{chunk-AZX55KSD.js.map → chunk-WZL33EWH.js.map} +0 -0
- /package/dist/{chunk-PQMGIAZ3.js.map → chunk-XACTUMEI.js.map} +0 -0
- /package/dist/{chunk-JSLQBXYP.js.map → chunk-XDU6OGIU.js.map} +0 -0
- /package/dist/{chunk-NLBWD77F.js.map → chunk-XMEUZCXX.js.map} +0 -0
- /package/dist/{chunk-F6MPKL2S.js.map → chunk-YDFDTEGG.js.map} +0 -0
- /package/dist/{chunk-3RGEPWMC.js.map → chunk-ZBCOFTNV.js.map} +0 -0
- /package/dist/{chunk-6QO3KF2M.js.map → chunk-ZBJ4UU4O.js.map} +0 -0
- /package/dist/{chunk-CGG5ENS2.js.map → chunk-ZYGTULPY.js.map} +0 -0
package/README.md
CHANGED
|
@@ -87,6 +87,14 @@ When the React components land, Tailwind hosts also add
|
|
|
87
87
|
head (as the Next.js app does) instead of `styles/fonts.css` — token names are
|
|
88
88
|
the contract, not the loader.
|
|
89
89
|
|
|
90
|
+
### Event handlers on the arrow controls
|
|
91
|
+
|
|
92
|
+
Knob, Slider, SegmentSlider, Switch, Multislider and Param run an `onPointerDown`, `onKeyDown`,
|
|
93
|
+
`onClick` (etc.) you pass **alongside** their own, never instead of it: yours runs first, then the
|
|
94
|
+
control's. Call `e.preventDefault()` in yours to skip the control's own handling of that event.
|
|
95
|
+
Ending a drag and tracking hover always run. (Before 0.78 a handler you passed replaced the
|
|
96
|
+
control's own, which broke dragging and keys.)
|
|
97
|
+
|
|
90
98
|
## The extraction law — extract ⇒ migrate-back, always
|
|
91
99
|
|
|
92
100
|
> **When you move a component OUT of an app and INTO this library, the SAME branch must also
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import {
|
|
4
4
|
ArrowAudioSegment,
|
|
5
5
|
formatTimeLabel
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-GEFIUWMJ.js";
|
|
7
|
+
import "../chunk-P4WKIVXE.js";
|
|
8
8
|
import "../chunk-HSQIBP76.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-LBB2A5KS.js";
|
|
10
10
|
import "../chunk-3LBDJPNF.js";
|
|
11
11
|
import "../chunk-VBGWQ4DE.js";
|
|
12
12
|
import "../chunk-BRLBKYOJ.js";
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
AudioSlider
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-ZBCOFTNV.js";
|
|
6
6
|
import "../chunk-ZHWHVNNM.js";
|
|
7
7
|
import "../chunk-CO2HHVIE.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-P4WKIVXE.js";
|
|
9
9
|
import "../chunk-HSQIBP76.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-LBB2A5KS.js";
|
|
11
11
|
import "../chunk-3LBDJPNF.js";
|
|
12
12
|
import "../chunk-BRLBKYOJ.js";
|
|
13
13
|
export {
|
package/dist/arrow/arrow-keys.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
Keys
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-ZBJ4UU4O.js";
|
|
6
|
+
import "../chunk-XACTUMEI.js";
|
|
7
7
|
import "../chunk-HSQIBP76.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-LBB2A5KS.js";
|
|
9
9
|
import "../chunk-3LBDJPNF.js";
|
|
10
10
|
import {
|
|
11
11
|
noteName
|
|
@@ -106,6 +106,6 @@ type KnobProps = {
|
|
|
106
106
|
"aria-label"?: string;
|
|
107
107
|
"aria-labelledby"?: string;
|
|
108
108
|
} & ArrowGateProps & ArrowValueCallbacks & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
109
|
-
declare function Knob({ className, value, defaultValue, min, max, step, log, exponent, knee, rose, sweep, origin, originValue, detent, mappedRange, marks, limit, steps, stepsMax, snap, stepLabels, colors, sensitivity, tracking, showLabel, tooltip, precision, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...rest }: KnobProps): React.JSX.Element;
|
|
109
|
+
declare function Knob({ className, value, defaultValue, min, max, step, log, exponent, knee, rose, sweep, origin, originValue, detent, mappedRange, marks, limit, steps, stepsMax, snap, stepLabels, colors, sensitivity, tracking, showLabel, tooltip, precision, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, onPointerDown: onPointerDownProp, onKeyDown: onKeyDownProp, onMouseEnter: onMouseEnterProp, onMouseLeave: onMouseLeaveProp, ...rest }: KnobProps): React.JSX.Element;
|
|
110
110
|
|
|
111
111
|
export { Knob, type KnobProps };
|
package/dist/arrow/arrow-knob.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
Knob
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RS3CR6NF.js";
|
|
6
6
|
import "../chunk-EEZH4BF6.js";
|
|
7
7
|
import "../chunk-HSQIBP76.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-LBB2A5KS.js";
|
|
9
9
|
import "../chunk-3LBDJPNF.js";
|
|
10
10
|
import "../chunk-BRLBKYOJ.js";
|
|
11
11
|
export {
|
|
@@ -47,6 +47,6 @@ type MultisliderProps = {
|
|
|
47
47
|
* draws a straight line from the last bar you touched; Alt-click resets a bar.
|
|
48
48
|
* With focus, ←/→ pick a bar and ↑/↓ change it.
|
|
49
49
|
*/
|
|
50
|
-
declare function Multislider({ className, value, defaultValue, min, max, step, style, orientation, playhead, loop, showReadout, format, colors, onValueChange, onValueCommit, readOnly, disabled, locked, "aria-label": ariaLabel, ...rest }: MultisliderProps): React.JSX.Element;
|
|
50
|
+
declare function Multislider({ className, value, defaultValue, min, max, step, style, orientation, playhead, loop, showReadout, format, colors, onValueChange, onValueCommit, readOnly, disabled, locked, "aria-label": ariaLabel, onPointerDown: onPointerDownProp, onKeyDown: onKeyDownProp, ...rest }: MultisliderProps): React.JSX.Element;
|
|
51
51
|
|
|
52
52
|
export { Multislider, type MultisliderProps };
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
Multislider
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-FOQP5P3S.js";
|
|
6
|
+
import "../chunk-O7TC24A3.js";
|
|
7
7
|
import "../chunk-HSQIBP76.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-LBB2A5KS.js";
|
|
9
9
|
import "../chunk-3LBDJPNF.js";
|
|
10
10
|
import "../chunk-BRLBKYOJ.js";
|
|
11
11
|
export {
|
|
@@ -76,6 +76,6 @@ type ParamProps = {
|
|
|
76
76
|
*/
|
|
77
77
|
width?: number;
|
|
78
78
|
} & ArrowGateProps & ArrowValueCallbacks & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
79
|
-
declare function Param({ className, variant, id, name, value, defaultValue, min, max, step, precision, log, snap, limit, showInfinityAtMin, editable, onRequestEdit, keypad, label, format, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, showLockIcon, colors, width, ...rest }: ParamProps): React.JSX.Element;
|
|
79
|
+
declare function Param({ className, variant, id, name, value, defaultValue, min, max, step, precision, log, snap, limit, showInfinityAtMin, editable, onRequestEdit, keypad, label, format, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, showLockIcon, colors, width, onKeyDown: onKeyDownProp, onPointerDown: onPointerDownProp, onClick: onClickProp, onDoubleClick: onDoubleClickProp, ...rest }: ParamProps): React.JSX.Element;
|
|
80
80
|
|
|
81
81
|
export { Param, type ParamProps };
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
Param
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Z4N6QLGM.js";
|
|
6
6
|
import "../chunk-Q7FZPJAG.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-6QO3KF2M.js";
|
|
13
|
-
import "../chunk-PQMGIAZ3.js";
|
|
14
|
-
import "../chunk-E26Z2O46.js";
|
|
7
|
+
import "../chunk-FKH5A2YF.js";
|
|
8
|
+
import "../chunk-ZBCOFTNV.js";
|
|
9
|
+
import "../chunk-ZBJ4UU4O.js";
|
|
10
|
+
import "../chunk-XACTUMEI.js";
|
|
11
|
+
import "../chunk-RS3CR6NF.js";
|
|
15
12
|
import "../chunk-EEZH4BF6.js";
|
|
16
13
|
import "../chunk-ZHWHVNNM.js";
|
|
17
14
|
import "../chunk-CO2HHVIE.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-FOQP5P3S.js";
|
|
16
|
+
import "../chunk-O7TC24A3.js";
|
|
17
|
+
import "../chunk-AAW6ULHN.js";
|
|
18
|
+
import "../chunk-JZLL2DCN.js";
|
|
19
|
+
import "../chunk-GEFIUWMJ.js";
|
|
20
|
+
import "../chunk-P4WKIVXE.js";
|
|
21
21
|
import "../chunk-HSQIBP76.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-LBB2A5KS.js";
|
|
23
23
|
import "../chunk-3LBDJPNF.js";
|
|
24
24
|
import "../chunk-I7C27CDX.js";
|
|
25
25
|
import "../chunk-VBGWQ4DE.js";
|
|
@@ -28,10 +28,11 @@ import "../chunk-QQR6WAI4.js";
|
|
|
28
28
|
import "../chunk-6FLZBWVP.js";
|
|
29
29
|
import "../chunk-OODTVBCR.js";
|
|
30
30
|
import "../chunk-R5ODC3SO.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-GKABE5YN.js";
|
|
32
|
+
import "../chunk-J5ZJOPUX.js";
|
|
32
33
|
import "../chunk-EFNECK7N.js";
|
|
33
34
|
import "../chunk-NNT43L55.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-TMQI73PU.js";
|
|
35
36
|
import "../chunk-BRLBKYOJ.js";
|
|
36
37
|
export {
|
|
37
38
|
Param
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
ArrowRange
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-AAW6ULHN.js";
|
|
6
6
|
import {
|
|
7
7
|
rangeTag
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JZLL2DCN.js";
|
|
9
9
|
import "../chunk-HSQIBP76.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-LBB2A5KS.js";
|
|
11
11
|
import "../chunk-3LBDJPNF.js";
|
|
12
12
|
import "../chunk-BRLBKYOJ.js";
|
|
13
13
|
export {
|
|
@@ -42,6 +42,26 @@ type StopDrag = (opts?: {
|
|
|
42
42
|
* started the drag so a second finger can neither steer nor end it.
|
|
43
43
|
*/
|
|
44
44
|
declare function startWindowDrag(onMove: (e: PointerEvent) => void, onEnd: (e: PointerEvent | null) => void, pointerId?: number): StopDrag;
|
|
45
|
+
/**
|
|
46
|
+
* Bind a wheel handler that can keep the page from scrolling. React attaches `onWheel` as a passive
|
|
47
|
+
* listener, so `preventDefault()` in it is ignored and the page (or the panel around the control)
|
|
48
|
+
* scrolls while the control turns. This binds a native non-passive listener on `ref`'s element and
|
|
49
|
+
* always calls the latest `onWheel`, so the handler may close over the current render.
|
|
50
|
+
*/
|
|
51
|
+
declare function useWheelHandler(ref: React.RefObject<HTMLElement | null>, onWheel: (e: WheelEvent) => void): void;
|
|
52
|
+
/**
|
|
53
|
+
* Run a handler the consumer passed alongside the control's own. The consumer's runs first; the
|
|
54
|
+
* control's still runs unless the consumer's own handler called `preventDefault()` (an event
|
|
55
|
+
* something else had already prevented behaves as if no consumer handler were passed).
|
|
56
|
+
* Spreading the consumer's props after the control's handlers would instead replace them and
|
|
57
|
+
* break dragging or keys.
|
|
58
|
+
*/
|
|
59
|
+
declare function composeHandlers<E extends React.SyntheticEvent>(theirs: ((e: E) => void) | undefined, ours: ((e: E) => void) | undefined): ((e: E) => void) | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Like composeHandlers, but the control's handler always runs. For cleanup and bookkeeping the
|
|
62
|
+
* consumer must not be able to skip: ending a drag, tracking hover.
|
|
63
|
+
*/
|
|
64
|
+
declare function chainHandlers<E extends React.SyntheticEvent>(theirs: ((e: E) => void) | undefined, ours: (e: E) => void): (e: E) => void;
|
|
45
65
|
/** Detect a double press from pointerdown timestamps (preventDefault on pointerdown eats dblclick). */
|
|
46
66
|
declare function makeDoublePress(windowMs?: number): (key: string | number) => boolean;
|
|
47
67
|
/**
|
|
@@ -66,4 +86,4 @@ declare function localBox(el: HTMLElement): {
|
|
|
66
86
|
*/
|
|
67
87
|
declare function useCanvasPaint(containerRef: React.RefObject<HTMLElement | null>, measure: () => void, draw: () => void): void;
|
|
68
88
|
|
|
69
|
-
export { type StopDrag, acceptedSpan, clamp, colorSlots, localBox, makeDoublePress, resolveColors, snapTo, startWindowDrag, stepOn, useCanvasPaint, useThemeVersion };
|
|
89
|
+
export { type StopDrag, acceptedSpan, chainHandlers, clamp, colorSlots, composeHandlers, localBox, makeDoublePress, resolveColors, snapTo, startWindowDrag, stepOn, useCanvasPaint, useThemeVersion, useWheelHandler };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
acceptedSpan,
|
|
4
|
+
chainHandlers,
|
|
4
5
|
clamp,
|
|
5
6
|
colorSlots,
|
|
7
|
+
composeHandlers,
|
|
6
8
|
localBox,
|
|
7
9
|
makeDoublePress,
|
|
8
10
|
resolveColors,
|
|
@@ -10,12 +12,15 @@ import {
|
|
|
10
12
|
startWindowDrag,
|
|
11
13
|
stepOn,
|
|
12
14
|
useCanvasPaint,
|
|
13
|
-
useThemeVersion
|
|
14
|
-
|
|
15
|
+
useThemeVersion,
|
|
16
|
+
useWheelHandler
|
|
17
|
+
} from "../chunk-LBB2A5KS.js";
|
|
15
18
|
export {
|
|
16
19
|
acceptedSpan,
|
|
20
|
+
chainHandlers,
|
|
17
21
|
clamp,
|
|
18
22
|
colorSlots,
|
|
23
|
+
composeHandlers,
|
|
19
24
|
localBox,
|
|
20
25
|
makeDoublePress,
|
|
21
26
|
resolveColors,
|
|
@@ -23,6 +28,7 @@ export {
|
|
|
23
28
|
startWindowDrag,
|
|
24
29
|
stepOn,
|
|
25
30
|
useCanvasPaint,
|
|
26
|
-
useThemeVersion
|
|
31
|
+
useThemeVersion,
|
|
32
|
+
useWheelHandler
|
|
27
33
|
};
|
|
28
34
|
//# sourceMappingURL=arrow-shared.js.map
|
|
@@ -65,7 +65,7 @@ type SliderProps = {
|
|
|
65
65
|
"aria-label"?: string;
|
|
66
66
|
"aria-labelledby"?: string;
|
|
67
67
|
} & ArrowGateProps & ArrowValueCallbacks & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
68
|
-
declare function Slider({ className, value, defaultValue, min, max, step, direction, log, snap, limit, colors, gradient, sensitivity, pointerSize, tracking, showLabel, tooltip, precision, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...rest }: SliderProps): React.JSX.Element;
|
|
68
|
+
declare function Slider({ className, value, defaultValue, min, max, step, direction, log, snap, limit, colors, gradient, sensitivity, pointerSize, tracking, showLabel, tooltip, precision, onChange, onValueChange, onValueCommit, commitIfUnchanged, readOnly, disabled, locked, format, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, onPointerDown: onPointerDownProp, onKeyDown: onKeyDownProp, onMouseEnter: onMouseEnterProp, onMouseLeave: onMouseLeaveProp, ...rest }: SliderProps): React.JSX.Element;
|
|
69
69
|
type SegmentSliderProps = {
|
|
70
70
|
className?: string;
|
|
71
71
|
min?: number;
|
|
@@ -93,6 +93,6 @@ type SegmentSliderProps = {
|
|
|
93
93
|
showPlayhead?: boolean;
|
|
94
94
|
"aria-label"?: string;
|
|
95
95
|
} & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange">;
|
|
96
|
-
declare function SegmentSlider({ className, min, max, step, start, end, playhead, minSegmentWidth, colors, pointerSize, onStartChange, onEndChange, onPlayheadChange, showPlayhead, "aria-label": ariaLabel, ...rest }: SegmentSliderProps): React.JSX.Element;
|
|
96
|
+
declare function SegmentSlider({ className, min, max, step, start, end, playhead, minSegmentWidth, colors, pointerSize, onStartChange, onEndChange, onPlayheadChange, showPlayhead, "aria-label": ariaLabel, onPointerDown: onPointerDownProp, onPointerMove: onPointerMoveProp, onPointerUp: onPointerUpProp, onPointerCancel: onPointerCancelProp, ...rest }: SegmentSliderProps): React.JSX.Element;
|
|
97
97
|
|
|
98
98
|
export { SegmentSlider, type SegmentSliderProps, Slider, type SliderTrackMetrics, sliderTrackMetrics };
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
SegmentSlider,
|
|
5
5
|
Slider,
|
|
6
6
|
sliderTrackMetrics
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-P4WKIVXE.js";
|
|
8
8
|
import "../chunk-HSQIBP76.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-LBB2A5KS.js";
|
|
10
10
|
import "../chunk-3LBDJPNF.js";
|
|
11
11
|
import "../chunk-BRLBKYOJ.js";
|
|
12
12
|
export {
|
|
@@ -51,6 +51,6 @@ type SwitchProps = {
|
|
|
51
51
|
"aria-label"?: string;
|
|
52
52
|
"aria-labelledby"?: string;
|
|
53
53
|
} & ArrowGateProps & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue">;
|
|
54
|
-
declare function Switch({ className, kind, shape, direction, value, defaultValue, min, max, step, colors, radioValue, label, showLabel, tooltip, onValueChange, onTrigger, readOnly, disabled, locked, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...rest }: SwitchProps): React.JSX.Element;
|
|
54
|
+
declare function Switch({ className, kind, shape, direction, value, defaultValue, min, max, step, colors, radioValue, label, showLabel, tooltip, onValueChange, onTrigger, readOnly, disabled, locked, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, onPointerDown: onPointerDownProp, onKeyDown: onKeyDownProp, onMouseEnter: onMouseEnterProp, onMouseLeave: onMouseLeaveProp, ...rest }: SwitchProps): React.JSX.Element;
|
|
55
55
|
|
|
56
56
|
export { Switch, type SwitchDirection, SwitchGroup, type SwitchGroupProps, type SwitchKind, type SwitchProps, type SwitchShape };
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import {
|
|
4
4
|
Switch,
|
|
5
5
|
SwitchGroup
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FKH5A2YF.js";
|
|
7
7
|
import "../chunk-HSQIBP76.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-LBB2A5KS.js";
|
|
9
9
|
import "../chunk-3LBDJPNF.js";
|
|
10
10
|
import "../chunk-BRLBKYOJ.js";
|
|
11
11
|
export {
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
import {
|
|
4
4
|
ValueParam,
|
|
5
5
|
clampSnap
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-Z4N6QLGM.js";
|
|
7
7
|
import "../chunk-Q7FZPJAG.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-6QO3KF2M.js";
|
|
14
|
-
import "../chunk-PQMGIAZ3.js";
|
|
15
|
-
import "../chunk-E26Z2O46.js";
|
|
8
|
+
import "../chunk-FKH5A2YF.js";
|
|
9
|
+
import "../chunk-ZBCOFTNV.js";
|
|
10
|
+
import "../chunk-ZBJ4UU4O.js";
|
|
11
|
+
import "../chunk-XACTUMEI.js";
|
|
12
|
+
import "../chunk-RS3CR6NF.js";
|
|
16
13
|
import "../chunk-EEZH4BF6.js";
|
|
17
14
|
import "../chunk-ZHWHVNNM.js";
|
|
18
15
|
import "../chunk-CO2HHVIE.js";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
21
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-FOQP5P3S.js";
|
|
17
|
+
import "../chunk-O7TC24A3.js";
|
|
18
|
+
import "../chunk-AAW6ULHN.js";
|
|
19
|
+
import "../chunk-JZLL2DCN.js";
|
|
20
|
+
import "../chunk-GEFIUWMJ.js";
|
|
21
|
+
import "../chunk-P4WKIVXE.js";
|
|
22
22
|
import "../chunk-HSQIBP76.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-LBB2A5KS.js";
|
|
24
24
|
import "../chunk-3LBDJPNF.js";
|
|
25
25
|
import "../chunk-I7C27CDX.js";
|
|
26
26
|
import "../chunk-VBGWQ4DE.js";
|
|
@@ -29,10 +29,11 @@ import "../chunk-QQR6WAI4.js";
|
|
|
29
29
|
import "../chunk-6FLZBWVP.js";
|
|
30
30
|
import "../chunk-OODTVBCR.js";
|
|
31
31
|
import "../chunk-R5ODC3SO.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-GKABE5YN.js";
|
|
33
|
+
import "../chunk-J5ZJOPUX.js";
|
|
33
34
|
import "../chunk-EFNECK7N.js";
|
|
34
35
|
import "../chunk-NNT43L55.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
+
import "../chunk-TMQI73PU.js";
|
|
36
37
|
import "../chunk-BRLBKYOJ.js";
|
|
37
38
|
export {
|
|
38
39
|
ValueParam,
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
ValueSlider
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Z4N6QLGM.js";
|
|
6
6
|
import "../chunk-Q7FZPJAG.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
12
|
-
import "../chunk-6QO3KF2M.js";
|
|
13
|
-
import "../chunk-PQMGIAZ3.js";
|
|
14
|
-
import "../chunk-E26Z2O46.js";
|
|
7
|
+
import "../chunk-FKH5A2YF.js";
|
|
8
|
+
import "../chunk-ZBCOFTNV.js";
|
|
9
|
+
import "../chunk-ZBJ4UU4O.js";
|
|
10
|
+
import "../chunk-XACTUMEI.js";
|
|
11
|
+
import "../chunk-RS3CR6NF.js";
|
|
15
12
|
import "../chunk-EEZH4BF6.js";
|
|
16
13
|
import "../chunk-ZHWHVNNM.js";
|
|
17
14
|
import "../chunk-CO2HHVIE.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-FOQP5P3S.js";
|
|
16
|
+
import "../chunk-O7TC24A3.js";
|
|
17
|
+
import "../chunk-AAW6ULHN.js";
|
|
18
|
+
import "../chunk-JZLL2DCN.js";
|
|
19
|
+
import "../chunk-GEFIUWMJ.js";
|
|
20
|
+
import "../chunk-P4WKIVXE.js";
|
|
21
21
|
import "../chunk-HSQIBP76.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-LBB2A5KS.js";
|
|
23
23
|
import "../chunk-3LBDJPNF.js";
|
|
24
24
|
import "../chunk-I7C27CDX.js";
|
|
25
25
|
import "../chunk-VBGWQ4DE.js";
|
|
@@ -28,10 +28,11 @@ import "../chunk-QQR6WAI4.js";
|
|
|
28
28
|
import "../chunk-6FLZBWVP.js";
|
|
29
29
|
import "../chunk-OODTVBCR.js";
|
|
30
30
|
import "../chunk-R5ODC3SO.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-GKABE5YN.js";
|
|
32
|
+
import "../chunk-J5ZJOPUX.js";
|
|
32
33
|
import "../chunk-EFNECK7N.js";
|
|
33
34
|
import "../chunk-NNT43L55.js";
|
|
34
|
-
import "../chunk-
|
|
35
|
+
import "../chunk-TMQI73PU.js";
|
|
35
36
|
import "../chunk-BRLBKYOJ.js";
|
|
36
37
|
export {
|
|
37
38
|
ValueSlider
|
package/dist/arrow/index.js
CHANGED
|
@@ -4,32 +4,22 @@ import {
|
|
|
4
4
|
ValueParam,
|
|
5
5
|
ValueSlider,
|
|
6
6
|
clampSnap
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-Z4N6QLGM.js";
|
|
8
8
|
import "../chunk-Q7FZPJAG.js";
|
|
9
|
-
import {
|
|
10
|
-
ArrowRange
|
|
11
|
-
} from "../chunk-3LMOKCQI.js";
|
|
12
|
-
import {
|
|
13
|
-
rangeTag
|
|
14
|
-
} from "../chunk-L2BRDKGR.js";
|
|
15
9
|
import {
|
|
16
10
|
Switch,
|
|
17
11
|
SwitchGroup
|
|
18
|
-
} from "../chunk-
|
|
19
|
-
import {
|
|
20
|
-
ArrowAudioSegment,
|
|
21
|
-
formatTimeLabel
|
|
22
|
-
} from "../chunk-6H3Q7WMQ.js";
|
|
12
|
+
} from "../chunk-FKH5A2YF.js";
|
|
23
13
|
import {
|
|
24
14
|
AudioSlider
|
|
25
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-ZBCOFTNV.js";
|
|
26
16
|
import {
|
|
27
17
|
Keys
|
|
28
|
-
} from "../chunk-
|
|
29
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-ZBJ4UU4O.js";
|
|
19
|
+
import "../chunk-XACTUMEI.js";
|
|
30
20
|
import {
|
|
31
21
|
Knob
|
|
32
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-RS3CR6NF.js";
|
|
33
23
|
import "../chunk-EEZH4BF6.js";
|
|
34
24
|
import {
|
|
35
25
|
LevelMeter
|
|
@@ -37,17 +27,27 @@ import {
|
|
|
37
27
|
import "../chunk-CO2HHVIE.js";
|
|
38
28
|
import {
|
|
39
29
|
Multislider
|
|
40
|
-
} from "../chunk-
|
|
41
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-FOQP5P3S.js";
|
|
31
|
+
import "../chunk-O7TC24A3.js";
|
|
32
|
+
import {
|
|
33
|
+
ArrowRange
|
|
34
|
+
} from "../chunk-AAW6ULHN.js";
|
|
35
|
+
import {
|
|
36
|
+
rangeTag
|
|
37
|
+
} from "../chunk-JZLL2DCN.js";
|
|
38
|
+
import {
|
|
39
|
+
ArrowAudioSegment,
|
|
40
|
+
formatTimeLabel
|
|
41
|
+
} from "../chunk-GEFIUWMJ.js";
|
|
42
42
|
import {
|
|
43
43
|
SegmentSlider,
|
|
44
44
|
Slider,
|
|
45
45
|
sliderTrackMetrics
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-P4WKIVXE.js";
|
|
47
47
|
import {
|
|
48
48
|
isInteractive
|
|
49
49
|
} from "../chunk-HSQIBP76.js";
|
|
50
|
-
import "../chunk-
|
|
50
|
+
import "../chunk-LBB2A5KS.js";
|
|
51
51
|
import "../chunk-3LBDJPNF.js";
|
|
52
52
|
import {
|
|
53
53
|
noteName
|
|
@@ -58,10 +58,11 @@ import "../chunk-QQR6WAI4.js";
|
|
|
58
58
|
import "../chunk-6FLZBWVP.js";
|
|
59
59
|
import "../chunk-OODTVBCR.js";
|
|
60
60
|
import "../chunk-R5ODC3SO.js";
|
|
61
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-GKABE5YN.js";
|
|
62
|
+
import "../chunk-J5ZJOPUX.js";
|
|
62
63
|
import "../chunk-EFNECK7N.js";
|
|
63
64
|
import "../chunk-NNT43L55.js";
|
|
64
|
-
import "../chunk-
|
|
65
|
+
import "../chunk-TMQI73PU.js";
|
|
65
66
|
import "../chunk-BRLBKYOJ.js";
|
|
66
67
|
export {
|
|
67
68
|
ArrowAudioSegment,
|
package/dist/arrow/keys-model.js
CHANGED
package/dist/badge.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const badgeVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
7
7
|
tone?: "neutral" | "info" | "positive" | "warning" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Badge({ className, variant, tone, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
package/dist/body-selector.js
CHANGED
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
BODY_ORDER,
|
|
7
7
|
BodySelector,
|
|
8
8
|
bodySelectorVariants
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-IKYB434Q.js";
|
|
10
|
+
import "./chunk-GKABE5YN.js";
|
|
11
|
+
import "./chunk-J5ZJOPUX.js";
|
|
11
12
|
import "./chunk-EFNECK7N.js";
|
|
12
13
|
import "./chunk-NNT43L55.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-TMQI73PU.js";
|
|
14
15
|
import "./chunk-BRLBKYOJ.js";
|
|
15
16
|
export {
|
|
16
17
|
BODY_DEFAULT_LABEL,
|
package/dist/button.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
|
|
5
5
|
declare const buttonVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "
|
|
6
|
+
variant?: "default" | "link" | "destructive" | "destructiveFilled" | "success" | "successOutlined" | "outline" | "outlineAccent" | "secondary" | "ghost" | "ghostToggle" | null | undefined;
|
|
7
7
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
8
8
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
9
|
declare function Button({ className, variant, size, asChild, children, ...props }: Omit<React.ComponentProps<'button'>, 'size'> & VariantProps<typeof buttonVariants> & {
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
// src/react/module-components/module-tile.tsx
|
|
10
10
|
import { ArrowLeftRight } from "lucide-react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
12
|
+
var TITLE_ROW = 21;
|
|
13
|
+
function ModulePanelTile({ title, width, lead = false, square = false, children, className, style }) {
|
|
13
14
|
return /* @__PURE__ */ jsxs(
|
|
14
15
|
"div",
|
|
15
16
|
{
|
|
@@ -17,7 +18,7 @@ function ModulePanelTile({ title, width, lead = false, children, className, styl
|
|
|
17
18
|
"aria-label": title,
|
|
18
19
|
"data-slot": "module-panel-tile",
|
|
19
20
|
"data-mp-tile": "",
|
|
20
|
-
className: cn("flex flex-col justify-center gap-1.5 px-[11px] pt-2 pb-[9px]", width ? "flex-none" : "flex-[1_0_auto]", className),
|
|
21
|
+
className: cn("flex flex-col justify-center gap-1.5 px-[11px] pt-2 pb-[9px]", width || square ? "flex-none" : "flex-[1_0_auto]", className),
|
|
21
22
|
style: {
|
|
22
23
|
background: lead ? "color-mix(in oklab, var(--ps-display-accent, var(--ring)) 9%, " + moduleFg(4.5) + ")" : moduleFg(4.5),
|
|
23
24
|
...width ? { width } : {},
|
|
@@ -25,7 +26,7 @@ function ModulePanelTile({ title, width, lead = false, children, className, styl
|
|
|
25
26
|
},
|
|
26
27
|
children: [
|
|
27
28
|
/* @__PURE__ */ jsx("span", { "data-slot": "module-panel-tile-title", className: "text-[10px] whitespace-nowrap", style: { color: moduleFg(55) }, children: title }),
|
|
28
|
-
children
|
|
29
|
+
square ? /* @__PURE__ */ jsx("div", { "data-slot": "module-panel-tile-square", className: "flex-none", style: { height: `calc(100% - ${TITLE_ROW}px)`, aspectRatio: "1" }, children }) : children
|
|
29
30
|
]
|
|
30
31
|
}
|
|
31
32
|
);
|
|
@@ -69,4 +70,4 @@ export {
|
|
|
69
70
|
ModulePanelTile,
|
|
70
71
|
TieChip
|
|
71
72
|
};
|
|
72
|
-
//# sourceMappingURL=chunk-
|
|
73
|
+
//# sourceMappingURL=chunk-2DVZPBK4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/react/module-components/module-tile.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { ArrowLeftRight } from \"lucide-react\"\n\nimport { cn } from \"../utils\"\nimport { moduleFg as fg } from \"./module-tokens\"\n\nexport type ModulePanelTileProps = {\n /** The tile's title, top left, as a parameter group's. */\n title: string\n /** A fixed width, px; without it the tile takes its content's width and grows with the row. */\n width?: number\n /** Washed in the accent: the tile whose choice sets the others (a theme before its fonts and colours). */\n lead?: boolean\n /**\n * Its content is a square filling the height under the title, and the tile is as wide as that\n * square (a figure, a picture): never past the tile's padding, never wider than it needs.\n */\n square?: boolean\n children?: React.ReactNode\n className?: string\n style?: React.CSSProperties\n}\n\n/**\n * A module's own controls as one of its panel's tiles: the parameter group's frame, title and padding\n * around anything a group of knobs can't hold (a theme tile, rows of fonts and colours). For\n * ModulePanel's `children` or `lead`, so custom tiles sit beside its groups as one of them.\n */\n// The title's line and the gap under it, px: what a square's height leaves to them.\nconst TITLE_ROW = 21\n\nexport function ModulePanelTile({ title, width, lead = false, square = false, children, className, style }: ModulePanelTileProps) {\n return (\n <div\n role=\"group\"\n aria-label={title}\n data-slot=\"module-panel-tile\"\n data-mp-tile=\"\"\n className={cn(\"flex flex-col justify-center gap-1.5 px-[11px] pt-2 pb-[9px]\", width || square ? \"flex-none\" : \"flex-[1_0_auto]\", className)}\n style={{\n background: lead ? \"color-mix(in oklab, var(--ps-display-accent, var(--ring)) 9%, \" + fg(4.5) + \")\" : fg(4.5),\n ...(width ? { width } : {}),\n ...style,\n }}\n >\n <span data-slot=\"module-panel-tile-title\" className=\"text-[10px] whitespace-nowrap\" style={{ color: fg(55) }}>\n {title}\n </span>\n {square ? (\n <div data-slot=\"module-panel-tile-square\" className=\"flex-none\" style={{ height: `calc(100% - ${TITLE_ROW}px)`, aspectRatio: \"1\" }}>\n {children}\n </div>\n ) : children}\n </div>\n )\n}\n\nexport type TieChipProps = {\n /** Shared (tied) or the module's own (untied): amber, so the own state reads at a glance. */\n tied: boolean\n /** What each state says (defaults \"Tied · all bodies\" and \"Untied · own look\"). */\n tiedLabel?: string\n untiedLabel?: string\n /** The chip was pressed: tie or untie is the host's job (and asking first, when it loses something). */\n onToggle?: () => void\n /** Its tooltip: what a press does now. */\n title?: string\n disabled?: boolean\n className?: string\n}\n\n/**\n * A module header's chip for a setting shared across places (tied) or kept by this one (untied). It\n * says the state in words; a press toggles it.\n */\nexport function TieChip({\n tied,\n tiedLabel = \"Tied · all bodies\",\n untiedLabel = \"Untied · own look\",\n onToggle,\n title,\n disabled,\n className,\n}: TieChipProps) {\n const label = tied ? tiedLabel : untiedLabel\n return (\n <button\n type=\"button\"\n data-slot=\"tie-chip\"\n data-tied={tied || undefined}\n aria-pressed={!tied}\n data-hint={title}\n disabled={disabled || !onToggle}\n onClick={onToggle}\n className={cn(\n \"relative inline-flex h-[18px] flex-none cursor-pointer items-center gap-1 self-center border-0 px-1.5 text-[9.5px] font-bold whitespace-nowrap disabled:cursor-default\",\n \"outline-none focus-visible:ring-1 focus-visible:ring-ring\",\n \"[@media(pointer:coarse)]:before:absolute [@media(pointer:coarse)]:before:inset-x-0 [@media(pointer:coarse)]:before:top-1/2 [@media(pointer:coarse)]:before:h-11 [@media(pointer:coarse)]:before:-translate-y-1/2 [@media(pointer:coarse)]:before:content-['']\",\n className,\n )}\n style={tied\n ? { background: fg(10), color: fg(80) }\n : { background: \"color-mix(in oklab, var(--warning) 25%, transparent)\", color: \"var(--warning)\" }}\n >\n <ArrowLeftRight aria-hidden=\"true\" className=\"size-3\" strokeWidth={2} />\n {label}\n </button>\n )\n}\n"],"mappings":";;;;;;;;;AAGA,SAAS,sBAAsB;AAgC3B,SAYE,KAZF;AAJJ,IAAM,YAAY;AAEX,SAAS,gBAAgB,EAAE,OAAO,OAAO,OAAO,OAAO,SAAS,OAAO,UAAU,WAAW,MAAM,GAAyB;AAChI,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,aAAU;AAAA,MACV,gBAAa;AAAA,MACb,WAAW,GAAG,gEAAgE,SAAS,SAAS,cAAc,mBAAmB,SAAS;AAAA,MAC1I,OAAO;AAAA,QACL,YAAY,OAAO,mEAAmE,SAAG,GAAG,IAAI,MAAM,SAAG,GAAG;AAAA,QAC5G,GAAI,QAAQ,EAAE,MAAM,IAAI,CAAC;AAAA,QACzB,GAAG;AAAA,MACL;AAAA,MAEA;AAAA,4BAAC,UAAK,aAAU,2BAA0B,WAAU,iCAAgC,OAAO,EAAE,OAAO,SAAG,EAAE,EAAE,GACxG,iBACH;AAAA,QACC,SACC,oBAAC,SAAI,aAAU,4BAA2B,WAAU,aAAY,OAAO,EAAE,QAAQ,eAAe,SAAS,OAAO,aAAa,IAAI,GAC9H,UACH,IACE;AAAA;AAAA;AAAA,EACN;AAEJ;AAoBO,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA,YAAY;AAAA,EACZ,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAiB;AACf,QAAM,QAAQ,OAAO,YAAY;AACjC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,aAAW,QAAQ;AAAA,MACnB,gBAAc,CAAC;AAAA,MACf,aAAW;AAAA,MACX,UAAU,YAAY,CAAC;AAAA,MACvB,SAAS;AAAA,MACT,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,OAAO,OACH,EAAE,YAAY,SAAG,EAAE,GAAG,OAAO,SAAG,EAAE,EAAE,IACpC,EAAE,YAAY,wDAAwD,OAAO,iBAAiB;AAAA,MAElG;AAAA,4BAAC,kBAAe,eAAY,QAAO,WAAU,UAAS,aAAa,GAAG;AAAA,QACrE;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
|