@ac-kit/ui-common 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +89 -0
- package/LICENSE +28 -0
- package/README.md +315 -2
- package/dist/button/button.d.ts +35 -0
- package/dist/button/button.d.ts.map +1 -0
- package/dist/button/button.js +22 -0
- package/dist/button/button.js.map +1 -0
- package/dist/dialog/dialog.d.ts +33 -0
- package/dist/dialog/dialog.d.ts.map +1 -0
- package/dist/dialog/dialog.js +23 -0
- package/dist/dialog/dialog.js.map +1 -0
- package/dist/focus/owns-arrow-keys.d.ts +31 -0
- package/dist/focus/owns-arrow-keys.d.ts.map +1 -0
- package/dist/focus/owns-arrow-keys.js +64 -0
- package/dist/focus/owns-arrow-keys.js.map +1 -0
- package/dist/focus/roving-focus.d.ts +34 -0
- package/dist/focus/roving-focus.d.ts.map +1 -0
- package/dist/focus/roving-focus.js +72 -0
- package/dist/focus/roving-focus.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/index.js.map +1 -0
- package/dist/knob/knob.d.ts +106 -0
- package/dist/knob/knob.d.ts.map +1 -0
- package/dist/knob/knob.js +116 -0
- package/dist/knob/knob.js.map +1 -0
- package/dist/meter/meter.d.ts +63 -0
- package/dist/meter/meter.d.ts.map +1 -0
- package/dist/meter/meter.js +57 -0
- package/dist/meter/meter.js.map +1 -0
- package/dist/preact/button.d.ts +40 -0
- package/dist/preact/button.d.ts.map +1 -0
- package/dist/preact/button.js +22 -0
- package/dist/preact/button.js.map +1 -0
- package/dist/preact/dialog.d.ts +43 -0
- package/dist/preact/dialog.d.ts.map +1 -0
- package/dist/preact/dialog.js +89 -0
- package/dist/preact/dialog.js.map +1 -0
- package/dist/preact/index.d.ts +13 -0
- package/dist/preact/index.d.ts.map +1 -0
- package/dist/preact/index.js +13 -0
- package/dist/preact/index.js.map +1 -0
- package/dist/preact/join-classes.d.ts +10 -0
- package/dist/preact/join-classes.d.ts.map +1 -0
- package/dist/preact/join-classes.js +12 -0
- package/dist/preact/join-classes.js.map +1 -0
- package/dist/preact/knob.d.ts +51 -0
- package/dist/preact/knob.d.ts.map +1 -0
- package/dist/preact/knob.js +152 -0
- package/dist/preact/knob.js.map +1 -0
- package/dist/preact/meter.d.ts +34 -0
- package/dist/preact/meter.d.ts.map +1 -0
- package/dist/preact/meter.js +21 -0
- package/dist/preact/meter.js.map +1 -0
- package/dist/preact/radio-group.d.ts +50 -0
- package/dist/preact/radio-group.d.ts.map +1 -0
- package/dist/preact/radio-group.js +42 -0
- package/dist/preact/radio-group.js.map +1 -0
- package/dist/preact/readout.d.ts +22 -0
- package/dist/preact/readout.d.ts.map +1 -0
- package/dist/preact/readout.js +13 -0
- package/dist/preact/readout.js.map +1 -0
- package/dist/preact/slider.d.ts +40 -0
- package/dist/preact/slider.d.ts.map +1 -0
- package/dist/preact/slider.js +162 -0
- package/dist/preact/slider.js.map +1 -0
- package/dist/preact/switch.d.ts +25 -0
- package/dist/preact/switch.d.ts.map +1 -0
- package/dist/preact/switch.js +19 -0
- package/dist/preact/switch.js.map +1 -0
- package/dist/preact/toggle-button.d.ts +26 -0
- package/dist/preact/toggle-button.d.ts.map +1 -0
- package/dist/preact/toggle-button.js +16 -0
- package/dist/preact/toggle-button.js.map +1 -0
- package/dist/preact/toolbar.d.ts +24 -0
- package/dist/preact/toolbar.d.ts.map +1 -0
- package/dist/preact/toolbar.js +148 -0
- package/dist/preact/toolbar.js.map +1 -0
- package/dist/preact/use-element-binding.d.ts +32 -0
- package/dist/preact/use-element-binding.d.ts.map +1 -0
- package/dist/preact/use-element-binding.js +51 -0
- package/dist/preact/use-element-binding.js.map +1 -0
- package/dist/readout/readout.d.ts +41 -0
- package/dist/readout/readout.d.ts.map +1 -0
- package/dist/readout/readout.js +26 -0
- package/dist/readout/readout.js.map +1 -0
- package/dist/slider/_clamped-value.d.ts +7 -0
- package/dist/slider/_clamped-value.d.ts.map +1 -0
- package/dist/slider/_clamped-value.js +9 -0
- package/dist/slider/_clamped-value.js.map +1 -0
- package/dist/slider/slider-attributes.d.ts +50 -0
- package/dist/slider/slider-attributes.d.ts.map +1 -0
- package/dist/slider/slider-attributes.js +38 -0
- package/dist/slider/slider-attributes.js.map +1 -0
- package/dist/slider/slider-range.d.ts +59 -0
- package/dist/slider/slider-range.d.ts.map +1 -0
- package/dist/slider/slider-range.js +73 -0
- package/dist/slider/slider-range.js.map +1 -0
- package/dist/slider/slider-track.d.ts +37 -0
- package/dist/slider/slider-track.d.ts.map +1 -0
- package/dist/slider/slider-track.js +35 -0
- package/dist/slider/slider-track.js.map +1 -0
- package/dist/slider/stepped-value.d.ts +31 -0
- package/dist/slider/stepped-value.d.ts.map +1 -0
- package/dist/slider/stepped-value.js +55 -0
- package/dist/slider/stepped-value.js.map +1 -0
- package/dist/switch/switch.d.ts +30 -0
- package/dist/switch/switch.d.ts.map +1 -0
- package/dist/switch/switch.js +26 -0
- package/dist/switch/switch.js.map +1 -0
- package/dist/toggle-button/toggle-button.d.ts +44 -0
- package/dist/toggle-button/toggle-button.d.ts.map +1 -0
- package/dist/toggle-button/toggle-button.js +31 -0
- package/dist/toggle-button/toggle-button.js.map +1 -0
- package/dist/tone.d.ts +8 -0
- package/dist/tone.d.ts.map +1 -0
- package/dist/tone.js +2 -0
- package/dist/tone.js.map +1 -0
- package/dist/toolbar/toolbar.d.ts +35 -0
- package/dist/toolbar/toolbar.d.ts.map +1 -0
- package/dist/toolbar/toolbar.js +23 -0
- package/dist/toolbar/toolbar.js.map +1 -0
- package/package.json +100 -3
- package/styles.css +992 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ControlTone } from "../tone.js";
|
|
2
|
+
/**
|
|
3
|
+
* Whether a toggle button draws a light: the hardware look of a mute or loop
|
|
4
|
+
* button, or none.
|
|
5
|
+
*/
|
|
6
|
+
export type ToggleButtonIndicator = "light" | "none";
|
|
7
|
+
/**
|
|
8
|
+
* The attributes of a toggle button, keyed by their HTML attribute names: a
|
|
9
|
+
* `button` announced as pressed or not, and the state, indicator and tone the
|
|
10
|
+
* stylesheet draws it by.
|
|
11
|
+
*/
|
|
12
|
+
export type ToggleButtonAttributes = {
|
|
13
|
+
"aria-pressed": "true" | "false";
|
|
14
|
+
"data-state": "on" | "off";
|
|
15
|
+
"data-indicator": ToggleButtonIndicator;
|
|
16
|
+
"data-tone"?: string;
|
|
17
|
+
};
|
|
18
|
+
/** Input of {@link toggleButtonAttributes}. */
|
|
19
|
+
export type ToggleButtonAttributesInput = {
|
|
20
|
+
isOn: boolean;
|
|
21
|
+
tone?: ControlTone;
|
|
22
|
+
/** Defaults to `none`. */
|
|
23
|
+
indicator?: ToggleButtonIndicator;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* The attributes of a latching toggle button — one press turns it on, the next
|
|
27
|
+
* turns it off, like a hardware mute, loop or metronome button. Render it as a
|
|
28
|
+
* native `<button type="button">`, whose Space and Enter activation the toggle
|
|
29
|
+
* relies on; activating it reports `!isOn` and leaves the caller to pass the
|
|
30
|
+
* new state back.
|
|
31
|
+
*
|
|
32
|
+
* Time complexity: O(1). Memory: O(1).
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* toggleButtonAttributes({
|
|
36
|
+
* isOn: true,
|
|
37
|
+
* tone: "warning",
|
|
38
|
+
* indicator: "light",
|
|
39
|
+
* });
|
|
40
|
+
* // { "aria-pressed": "true", "data-state": "on", "data-indicator": "light",
|
|
41
|
+
* // "data-tone": "warning" }
|
|
42
|
+
*/
|
|
43
|
+
export declare function toggleButtonAttributes(input: ToggleButtonAttributesInput): ToggleButtonAttributes;
|
|
44
|
+
//# sourceMappingURL=toggle-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../src/toggle-button/toggle-button.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,YAAY,EAAE,IAAI,GAAG,KAAK,CAAC;IAC3B,gBAAgB,EAAE,qBAAqB,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,+CAA+C;AAC/C,MAAM,MAAM,2BAA2B,GAAG;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,sBAAsB,CACrC,KAAK,EAAE,2BAA2B,GAChC,sBAAsB,CAYxB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The attributes of a latching toggle button — one press turns it on, the next
|
|
3
|
+
* turns it off, like a hardware mute, loop or metronome button. Render it as a
|
|
4
|
+
* native `<button type="button">`, whose Space and Enter activation the toggle
|
|
5
|
+
* relies on; activating it reports `!isOn` and leaves the caller to pass the
|
|
6
|
+
* new state back.
|
|
7
|
+
*
|
|
8
|
+
* Time complexity: O(1). Memory: O(1).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* toggleButtonAttributes({
|
|
12
|
+
* isOn: true,
|
|
13
|
+
* tone: "warning",
|
|
14
|
+
* indicator: "light",
|
|
15
|
+
* });
|
|
16
|
+
* // { "aria-pressed": "true", "data-state": "on", "data-indicator": "light",
|
|
17
|
+
* // "data-tone": "warning" }
|
|
18
|
+
*/
|
|
19
|
+
export function toggleButtonAttributes(input) {
|
|
20
|
+
const { isOn, tone, indicator = "none" } = input;
|
|
21
|
+
const attributes = {
|
|
22
|
+
"aria-pressed": isOn ? "true" : "false",
|
|
23
|
+
"data-state": isOn ? "on" : "off",
|
|
24
|
+
"data-indicator": indicator,
|
|
25
|
+
};
|
|
26
|
+
if (tone !== undefined) {
|
|
27
|
+
attributes["data-tone"] = tone;
|
|
28
|
+
}
|
|
29
|
+
return attributes;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=toggle-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-button.js","sourceRoot":"","sources":["../../src/toggle-button/toggle-button.ts"],"names":[],"mappings":"AA4BA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,sBAAsB,CACrC,KAAkC;IAElC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,KAAK,CAAC;IACjD,MAAM,UAAU,GAA2B;QAC1C,cAAc,EAAE,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO;QACvC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK;QACjC,gBAAgB,EAAE,SAAS;KAC3B,CAAC;IACF,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;QACxB,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IAChC,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/dist/tone.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LiteralUnion } from "type-fest";
|
|
2
|
+
/**
|
|
3
|
+
* The colour role a control lights in, rendered as its `data-tone` attribute.
|
|
4
|
+
* The default stylesheet colours the four named roles; any other name is the
|
|
5
|
+
* caller's to colour, through the same custom properties.
|
|
6
|
+
*/
|
|
7
|
+
export type ControlTone = LiteralUnion<"accent" | "positive" | "warning" | "negative", string>;
|
|
8
|
+
//# sourceMappingURL=tone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tone.d.ts","sourceRoot":"","sources":["../src/tone.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CACrC,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,EAC9C,MAAM,CACN,CAAC"}
|
package/dist/tone.js
ADDED
package/dist/tone.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tone.js","sourceRoot":"","sources":["../src/tone.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which way a toolbar lays out its controls, and so which arrows move through
|
|
3
|
+
* them.
|
|
4
|
+
*/
|
|
5
|
+
export type ToolbarOrientation = "horizontal" | "vertical";
|
|
6
|
+
/**
|
|
7
|
+
* The attributes of a toolbar, keyed by their HTML attribute names.
|
|
8
|
+
* `aria-orientation` is present for `vertical` only, the role's default being
|
|
9
|
+
* horizontal.
|
|
10
|
+
*/
|
|
11
|
+
export type ToolbarAttributes = {
|
|
12
|
+
role: "toolbar";
|
|
13
|
+
"aria-label": string;
|
|
14
|
+
"aria-orientation"?: "vertical";
|
|
15
|
+
};
|
|
16
|
+
/** Input of {@link toolbarAttributes}. */
|
|
17
|
+
export type ToolbarAttributesInput = {
|
|
18
|
+
/** Its accessible name. */
|
|
19
|
+
label: string;
|
|
20
|
+
/** Defaults to `horizontal`. */
|
|
21
|
+
orientation?: ToolbarOrientation;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The attributes of a toolbar (WAI-ARIA toolbar pattern): a named container of
|
|
25
|
+
* controls with a single tab stop, the arrow keys moving between them. Pair it
|
|
26
|
+
* with `rovingFocusIndex` for the key handling.
|
|
27
|
+
*
|
|
28
|
+
* Time complexity: O(1). Memory: O(1).
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* toolbarAttributes({ label: "Playback" });
|
|
32
|
+
* // { role: "toolbar", "aria-label": "Playback" }
|
|
33
|
+
*/
|
|
34
|
+
export declare function toolbarAttributes(input: ToolbarAttributesInput): ToolbarAttributes;
|
|
35
|
+
//# sourceMappingURL=toolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.d.ts","sourceRoot":"","sources":["../../src/toolbar/toolbar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE3D;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAAG;IACpC,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,gCAAgC;IAChC,WAAW,CAAC,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAChC,KAAK,EAAE,sBAAsB,GAC3B,iBAAiB,CAWnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The attributes of a toolbar (WAI-ARIA toolbar pattern): a named container of
|
|
3
|
+
* controls with a single tab stop, the arrow keys moving between them. Pair it
|
|
4
|
+
* with `rovingFocusIndex` for the key handling.
|
|
5
|
+
*
|
|
6
|
+
* Time complexity: O(1). Memory: O(1).
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* toolbarAttributes({ label: "Playback" });
|
|
10
|
+
* // { role: "toolbar", "aria-label": "Playback" }
|
|
11
|
+
*/
|
|
12
|
+
export function toolbarAttributes(input) {
|
|
13
|
+
const { label, orientation = "horizontal" } = input;
|
|
14
|
+
const attributes = {
|
|
15
|
+
role: "toolbar",
|
|
16
|
+
"aria-label": label,
|
|
17
|
+
};
|
|
18
|
+
if (orientation === "vertical") {
|
|
19
|
+
attributes["aria-orientation"] = "vertical";
|
|
20
|
+
}
|
|
21
|
+
return attributes;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=toolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbar.js","sourceRoot":"","sources":["../../src/toolbar/toolbar.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,iBAAiB,CAChC,KAA6B;IAE7B,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,KAAK,CAAC;IACpD,MAAM,UAAU,GAAsB;QACrC,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,KAAK;KACnB,CAAC;IACF,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QAChC,UAAU,CAAC,kBAAkB,CAAC,GAAG,UAAU,CAAC;IAC7C,CAAC;IAED,OAAO,UAAU,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ac-kit/ui-common",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Generic controls for the browser: knob, slider, toggle button, readout, meter, switch, radio group, buttons, toolbar and dialog as a headless, framework-free core, with a Preact adapter and a default stylesheet themed through CSS custom properties.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"button",
|
|
7
|
+
"dialog",
|
|
8
|
+
"headless",
|
|
9
|
+
"knob",
|
|
10
|
+
"meter",
|
|
11
|
+
"preact",
|
|
12
|
+
"radio-group",
|
|
13
|
+
"slider",
|
|
14
|
+
"switch",
|
|
15
|
+
"toggle-button",
|
|
16
|
+
"toolbar",
|
|
17
|
+
"ui"
|
|
18
|
+
],
|
|
19
|
+
"homepage": "https://anthochamp.pages.grenadine.io/node-essentials/api/ui-common/",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://git.grenadine.io/anthochamp/node-essentials/issues"
|
|
22
|
+
},
|
|
23
|
+
"license": "BSD-3-Clause",
|
|
24
|
+
"author": "Anthony Champagne <dev@anthonychampagne.fr>",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://git.grenadine.io/anthochamp/node-essentials.git",
|
|
28
|
+
"directory": "packages/ui-common"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"styles.css"
|
|
33
|
+
],
|
|
34
|
+
"type": "module",
|
|
35
|
+
"sideEffects": [
|
|
36
|
+
"*.css"
|
|
37
|
+
],
|
|
38
|
+
"main": "./dist/index.js",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": "./dist/index.js",
|
|
41
|
+
"./preact": "./dist/preact/index.js",
|
|
42
|
+
"./styles.css": "./styles.css"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"main": "./dist/index.js",
|
|
46
|
+
"exports": {
|
|
47
|
+
".": "./dist/index.js",
|
|
48
|
+
"./preact": "./dist/preact/index.js",
|
|
49
|
+
"./styles.css": "./styles.css"
|
|
50
|
+
},
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"compile": "tsc -p ./tsconfig.build.json -outDir dist",
|
|
55
|
+
"compile:check": "tsc -noEmit -p ./tsconfig.json",
|
|
56
|
+
"clean": "rimraf dist",
|
|
57
|
+
"build": "yarn clean && yarn compile",
|
|
58
|
+
"test": "yarn run -T vitest run",
|
|
59
|
+
"test:browser": "yarn run -T vitest run --config vitest.browser.config.ts",
|
|
60
|
+
"prepack": "yarn build"
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@ac-kit/algo": "^0.5.0",
|
|
64
|
+
"@ac-kit/core": "^0.12.0",
|
|
65
|
+
"@ac-kit/format-svg": "^0.1.4",
|
|
66
|
+
"@ac-kit/math-geometry": "^0.3.0",
|
|
67
|
+
"@ac-kit/math-linear": "^0.3.0",
|
|
68
|
+
"@ac-kit/math-scalar": "^0.3.0",
|
|
69
|
+
"@ac-kit/ui-gesture": "^0.1.0",
|
|
70
|
+
"@types/web": "^0.0.367",
|
|
71
|
+
"type-fest": "^6.0.0"
|
|
72
|
+
},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@ac-kit/format-css-color": "^0.2.1",
|
|
75
|
+
"@ac-kit/math-color": "^0.3.0",
|
|
76
|
+
"@ac-kit/tsconfig": "0.1.0",
|
|
77
|
+
"@ac-kit/typedoc-config": "0.1.0",
|
|
78
|
+
"@ac-kit/vitest-config": "0.2.0",
|
|
79
|
+
"@testing-library/preact": "3.2.6",
|
|
80
|
+
"@types/node": "^26.5.1",
|
|
81
|
+
"@typescript/native": "typescript@7.0.2",
|
|
82
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
83
|
+
"happy-dom": "21.0.4",
|
|
84
|
+
"playwright": "1.65.1",
|
|
85
|
+
"preact": "11.2.0",
|
|
86
|
+
"rimraf": "6.1.4",
|
|
87
|
+
"typedoc": "0.28.20",
|
|
88
|
+
"typescript": "@typescript/typescript6@6.0.2",
|
|
89
|
+
"vite": "8.4.0",
|
|
90
|
+
"vitest": "5.1.2"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"preact": "^11.0.0"
|
|
94
|
+
},
|
|
95
|
+
"peerDependenciesMeta": {
|
|
96
|
+
"preact": {
|
|
97
|
+
"optional": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"engines": {
|
|
101
|
+
"node": ">=24"
|
|
102
|
+
}
|
|
6
103
|
}
|