even-toolkit 1.3.0 → 1.3.1
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.
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function buildActionBar(buttons: string[], selectedIndex: number, activeLabel: string | null, flashPhase: boolean): string;
|
|
20
20
|
/**
|
|
21
|
-
* Build a static action bar (no blinking,
|
|
21
|
+
* Build a static action bar (no blinking, empty triangles on selected).
|
|
22
22
|
* Useful for screens like recipe detail or completion where there's no mode switching.
|
|
23
23
|
*/
|
|
24
24
|
export declare function buildStaticActionBar(buttons: string[], selectedIndex: number): string;
|
|
@@ -26,20 +26,20 @@ export function buildActionBar(buttons, selectedIndex, activeLabel, flashPhase)
|
|
|
26
26
|
return `${L}${name}${R}`;
|
|
27
27
|
}
|
|
28
28
|
if (activeIdx < 0 && i === selectedIndex) {
|
|
29
|
-
// Selected in button-select mode:
|
|
30
|
-
return `\
|
|
29
|
+
// Selected in button-select mode: empty triangles (default)
|
|
30
|
+
return `\u25B7${name}\u25C1`;
|
|
31
31
|
}
|
|
32
32
|
return ` ${name} `;
|
|
33
33
|
}).join(' ');
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
* Build a static action bar (no blinking,
|
|
36
|
+
* Build a static action bar (no blinking, empty triangles on selected).
|
|
37
37
|
* Useful for screens like recipe detail or completion where there's no mode switching.
|
|
38
38
|
*/
|
|
39
39
|
export function buildStaticActionBar(buttons, selectedIndex) {
|
|
40
40
|
return buttons.map((name, i) => {
|
|
41
41
|
if (i === selectedIndex) {
|
|
42
|
-
return `\
|
|
42
|
+
return `\u25B7${name}\u25C1`;
|
|
43
43
|
}
|
|
44
44
|
return ` ${name} `;
|
|
45
45
|
}).join(' ');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-bar.js","sourceRoot":"","sources":["../../glasses/action-bar.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;A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E,QAAQ;YACrD,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAE,QAAQ;YACrD,OAAO,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC;QAC3B,CAAC;QACD,IAAI,SAAS,GAAG,CAAC,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;YACzC,4DAA4D;YAC5D,OAAO,SAAS,IAAI,QAAQ,CAAC;QAC/B,CAAC;QACD,OAAO,IAAI,IAAI,GAAG,CAAC;IACrB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAClC,OAAiB,EACjB,aAAqB;IAErB,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE;QAC7B,IAAI,CAAC,KAAK,aAAa,EAAE,CAAC;YACxB,OAAO,SAAS,IAAI,QAAQ,CAAC;QAC/B,CAAC;QACD,OAAO,IAAI,IAAI,GAAG,CAAC;IACrB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
package/glasses/action-bar.ts
CHANGED
|
@@ -33,15 +33,15 @@ export function buildActionBar(
|
|
|
33
33
|
return `${L}${name}${R}`;
|
|
34
34
|
}
|
|
35
35
|
if (activeIdx < 0 && i === selectedIndex) {
|
|
36
|
-
// Selected in button-select mode:
|
|
37
|
-
return `\
|
|
36
|
+
// Selected in button-select mode: empty triangles (default)
|
|
37
|
+
return `\u25B7${name}\u25C1`;
|
|
38
38
|
}
|
|
39
39
|
return ` ${name} `;
|
|
40
40
|
}).join(' ');
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* Build a static action bar (no blinking,
|
|
44
|
+
* Build a static action bar (no blinking, empty triangles on selected).
|
|
45
45
|
* Useful for screens like recipe detail or completion where there's no mode switching.
|
|
46
46
|
*/
|
|
47
47
|
export function buildStaticActionBar(
|
|
@@ -50,7 +50,7 @@ export function buildStaticActionBar(
|
|
|
50
50
|
): string {
|
|
51
51
|
return buttons.map((name, i) => {
|
|
52
52
|
if (i === selectedIndex) {
|
|
53
|
-
return `\
|
|
53
|
+
return `\u25B7${name}\u25C1`;
|
|
54
54
|
}
|
|
55
55
|
return ` ${name} `;
|
|
56
56
|
}).join(' ');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "even-toolkit",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Design system & component library for Even Realities G2 smart glasses apps — 55+ web components, 191 pixel-art icons, glasses SDK bridge, and design tokens.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/glasses/index.js",
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
},
|
|
368
368
|
"devDependencies": {
|
|
369
369
|
"@evenrealities/even_hub_sdk": "^0.0.9",
|
|
370
|
-
"@jappyjan/even-better-sdk": "^0.0.11",
|
|
370
|
+
"@jappyjan/even-better-sdk": "^0.0.11",
|
|
371
371
|
"@types/react": "^19.0.0",
|
|
372
372
|
"class-variance-authority": "^0.7.1",
|
|
373
373
|
"clsx": "^2.1.1",
|