@touchcastllc/napster-companion-api-dev 1.6.0-alpha.5 → 1.6.0-alpha.7
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/lib/components/controls/createControlButton.d.ts +9 -0
- package/lib/index.css +1 -1
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.standalone.js +1 -1
- package/lib/utils/classnames.d.ts +5 -5
- package/lib/utils/figmaIcons.d.ts +32 -0
- package/lib/utils/svg.d.ts +6 -1
- package/package.json +1 -1
- package/lib/components/controls/styles.d.ts +0 -2
|
@@ -21,20 +21,20 @@ export declare function cn(...inputs: ClassInput[]): string;
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const ControlClasses: {
|
|
23
23
|
readonly icon: "np_companion-action-btn-container-icon";
|
|
24
|
+
/** Shared control-bar button. Presentation lives in ControlBar.css. */
|
|
25
|
+
readonly controlButton: "np_companion-ctl-btn";
|
|
26
|
+
/** Mic modifier — the one filled, borderless control in the designs. */
|
|
27
|
+
readonly controlButtonMic: "np_companion-ctl-btn--mic";
|
|
24
28
|
readonly persistFillColor: "np_companion-persist-fill-color";
|
|
25
29
|
readonly alignMiddle: "np_companion-align-middle";
|
|
26
|
-
readonly alignBetween: "np_companion-align-between";
|
|
27
30
|
readonly darkGreyBg: "np_companion-dark-grey-bg";
|
|
28
31
|
readonly callEnd: "np_companion-action-btn-container-call-end";
|
|
29
32
|
readonly container: "np_companion-action-btn-container-container";
|
|
30
33
|
readonly wrapper: "np_companion-action-btn-container-wrapper";
|
|
31
34
|
readonly controls: "np_companion-action-btn-container-controls";
|
|
32
|
-
readonly left: "np_companion-action-btn-container-left";
|
|
33
|
-
readonly right: "np_companion-action-btn-container-right";
|
|
34
35
|
readonly stop: "np_companion-action-btn-container-stop";
|
|
35
36
|
readonly questionBar: "np_companion-chat-question-bar-container";
|
|
36
|
-
readonly
|
|
37
|
-
readonly muted: "muted";
|
|
37
|
+
readonly muted: "np_companion-muted";
|
|
38
38
|
readonly hidden: "np_companion-hidden";
|
|
39
39
|
readonly expanded: "np_companion-action-btn-container-expanded";
|
|
40
40
|
readonly collapse: "np_companion-action-btn-container-collapse";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Control-bar glyphs, exported from the Web Agent designs.
|
|
3
|
+
*
|
|
4
|
+
* Figma page `Web Agent [Jul 29]` (80:556). A 28x28 stroke set — the SDK's
|
|
5
|
+
* previous glyphs were filled shapes on assorted viewBoxes (16, 17, 21, 640),
|
|
6
|
+
* which is why they read heavier and inconsistent against the designs.
|
|
7
|
+
*
|
|
8
|
+
* Path data is generated from the exported SVGs. Do not hand-edit: regenerate
|
|
9
|
+
* from Figma so the code cannot drift from the source.
|
|
10
|
+
*/
|
|
11
|
+
export interface FigmaIcon {
|
|
12
|
+
/** Path `d` attribute, verbatim from the export. */
|
|
13
|
+
d: string;
|
|
14
|
+
/** Stroke width in viewBox units. */
|
|
15
|
+
strokeWidth: string;
|
|
16
|
+
/** Figma node id of the source component. */
|
|
17
|
+
nodeId: string;
|
|
18
|
+
}
|
|
19
|
+
/** Every glyph in the set shares this viewBox. */
|
|
20
|
+
export declare const ICON_VIEW_BOX = "0 0 28 28";
|
|
21
|
+
export declare const FigmaIcons: {
|
|
22
|
+
/** `microphone` — Figma 104:40. */
|
|
23
|
+
readonly microphone: FigmaIcon;
|
|
24
|
+
/** `microphone-off` — Figma 104:42. */
|
|
25
|
+
readonly microphoneOff: FigmaIcon;
|
|
26
|
+
/** `volume-max` — Figma 104:38. */
|
|
27
|
+
readonly volumeMax: FigmaIcon;
|
|
28
|
+
/** `volume-x` — Figma 104:46. */
|
|
29
|
+
readonly volumeX: FigmaIcon;
|
|
30
|
+
/** `phone-x` — Figma 104:44. */
|
|
31
|
+
readonly phoneX: FigmaIcon;
|
|
32
|
+
};
|
package/lib/utils/svg.d.ts
CHANGED
|
@@ -26,7 +26,12 @@ export declare const ControlIcons: {
|
|
|
26
26
|
micUnmuted(): SVGSVGElement;
|
|
27
27
|
micMuted(): SVGSVGElement;
|
|
28
28
|
stop(): SVGSVGElement;
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* The control is a mute toggle — there is no level slider — so the designs
|
|
31
|
+
* provide a single "sound on" glyph. `level` is kept for compatibility and
|
|
32
|
+
* does not change the icon.
|
|
33
|
+
*/
|
|
34
|
+
volumeHigh(_level?: number): SVGSVGElement;
|
|
30
35
|
volumeMuted(): SVGSVGElement;
|
|
31
36
|
screenShare(): SVGSVGElement;
|
|
32
37
|
screenShareActive(): SVGSVGElement;
|
package/package.json
CHANGED