kaleido-ui 0.1.58 → 0.1.60
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.
|
Binary file
|
|
Binary file
|
package/dist/native/fonts.cjs
CHANGED
|
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
var fonts_exports = {};
|
|
30
30
|
__export(fonts_exports, {
|
|
31
31
|
kaleidoFonts: () => kaleidoFonts,
|
|
32
|
+
monoFontFamily: () => monoFontFamily,
|
|
32
33
|
satoshiFamilyForWeight: () => satoshiFamilyForWeight,
|
|
33
34
|
satoshiFontFamily: () => satoshiFontFamily
|
|
34
35
|
});
|
|
@@ -36,22 +37,30 @@ module.exports = __toCommonJS(fonts_exports);
|
|
|
36
37
|
var import_Satoshi_Regular = __toESM(require("./fonts/Satoshi-Regular.ttf"), 1);
|
|
37
38
|
var import_Satoshi_Medium = __toESM(require("./fonts/Satoshi-Medium.ttf"), 1);
|
|
38
39
|
var import_Satoshi_Bold = __toESM(require("./fonts/Satoshi-Bold.ttf"), 1);
|
|
40
|
+
var import_Satoshi_Black = __toESM(require("./fonts/Satoshi-Black.ttf"), 1);
|
|
41
|
+
var import_GeistMono = __toESM(require("./fonts/GeistMono.ttf"), 1);
|
|
39
42
|
const kaleidoFonts = {
|
|
40
43
|
"Satoshi-Regular": import_Satoshi_Regular.default,
|
|
41
44
|
"Satoshi-Medium": import_Satoshi_Medium.default,
|
|
42
|
-
"Satoshi-Bold": import_Satoshi_Bold.default
|
|
45
|
+
"Satoshi-Bold": import_Satoshi_Bold.default,
|
|
46
|
+
"Satoshi-Black": import_Satoshi_Black.default,
|
|
47
|
+
GeistMono: import_GeistMono.default
|
|
43
48
|
};
|
|
49
|
+
const monoFontFamily = "GeistMono";
|
|
44
50
|
const satoshiFontFamily = {
|
|
45
51
|
regular: "Satoshi-Regular",
|
|
46
52
|
medium: "Satoshi-Medium",
|
|
47
53
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
48
54
|
semibold: "Satoshi-Bold",
|
|
49
|
-
bold: "Satoshi-Bold"
|
|
55
|
+
bold: "Satoshi-Bold",
|
|
56
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
57
|
+
black: "Satoshi-Black"
|
|
50
58
|
};
|
|
51
59
|
function satoshiFamilyForWeight(weight) {
|
|
52
60
|
if (weight === "bold") return satoshiFontFamily.bold;
|
|
53
61
|
const n = typeof weight === "number" ? weight : Number(weight);
|
|
54
62
|
if (!Number.isFinite(n)) return satoshiFontFamily.regular;
|
|
63
|
+
if (n >= 800) return satoshiFontFamily.black;
|
|
55
64
|
if (n >= 600) return satoshiFontFamily.bold;
|
|
56
65
|
if (n >= 500) return satoshiFontFamily.medium;
|
|
57
66
|
return satoshiFontFamily.regular;
|
|
@@ -59,6 +68,7 @@ function satoshiFamilyForWeight(weight) {
|
|
|
59
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
60
69
|
0 && (module.exports = {
|
|
61
70
|
kaleidoFonts,
|
|
71
|
+
monoFontFamily,
|
|
62
72
|
satoshiFamilyForWeight,
|
|
63
73
|
satoshiFontFamily
|
|
64
74
|
});
|
package/dist/native/fonts.d.cts
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* you use as `fontFamily` in styles (identical on iOS and Android).
|
|
5
5
|
*/
|
|
6
6
|
declare const kaleidoFonts: Record<string, number>;
|
|
7
|
+
/**
|
|
8
|
+
* Monospaced family for numerals / equivalent balances — Geist Mono (the same
|
|
9
|
+
* face the web/extension references). Use for tabular amounts; pair with the
|
|
10
|
+
* `mono` text role rather than the Satoshi body face.
|
|
11
|
+
*/
|
|
12
|
+
declare const monoFontFamily = "GeistMono";
|
|
7
13
|
/** Registered Satoshi family names, by semantic weight. */
|
|
8
14
|
declare const satoshiFontFamily: {
|
|
9
15
|
readonly regular: "Satoshi-Regular";
|
|
@@ -11,6 +17,8 @@ declare const satoshiFontFamily: {
|
|
|
11
17
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
12
18
|
readonly semibold: "Satoshi-Bold";
|
|
13
19
|
readonly bold: "Satoshi-Bold";
|
|
20
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
21
|
+
readonly black: "Satoshi-Black";
|
|
14
22
|
};
|
|
15
23
|
type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
16
24
|
/**
|
|
@@ -20,4 +28,4 @@ type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
|
20
28
|
*/
|
|
21
29
|
declare function satoshiFamilyForWeight(weight?: string | number): string;
|
|
22
30
|
|
|
23
|
-
export { type SatoshiWeightName, kaleidoFonts, satoshiFamilyForWeight, satoshiFontFamily };
|
|
31
|
+
export { type SatoshiWeightName, kaleidoFonts, monoFontFamily, satoshiFamilyForWeight, satoshiFontFamily };
|
package/dist/native/fonts.d.ts
CHANGED
|
@@ -4,6 +4,12 @@
|
|
|
4
4
|
* you use as `fontFamily` in styles (identical on iOS and Android).
|
|
5
5
|
*/
|
|
6
6
|
declare const kaleidoFonts: Record<string, number>;
|
|
7
|
+
/**
|
|
8
|
+
* Monospaced family for numerals / equivalent balances — Geist Mono (the same
|
|
9
|
+
* face the web/extension references). Use for tabular amounts; pair with the
|
|
10
|
+
* `mono` text role rather than the Satoshi body face.
|
|
11
|
+
*/
|
|
12
|
+
declare const monoFontFamily = "GeistMono";
|
|
7
13
|
/** Registered Satoshi family names, by semantic weight. */
|
|
8
14
|
declare const satoshiFontFamily: {
|
|
9
15
|
readonly regular: "Satoshi-Regular";
|
|
@@ -11,6 +17,8 @@ declare const satoshiFontFamily: {
|
|
|
11
17
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
12
18
|
readonly semibold: "Satoshi-Bold";
|
|
13
19
|
readonly bold: "Satoshi-Bold";
|
|
20
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
21
|
+
readonly black: "Satoshi-Black";
|
|
14
22
|
};
|
|
15
23
|
type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
16
24
|
/**
|
|
@@ -20,4 +28,4 @@ type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
|
20
28
|
*/
|
|
21
29
|
declare function satoshiFamilyForWeight(weight?: string | number): string;
|
|
22
30
|
|
|
23
|
-
export { type SatoshiWeightName, kaleidoFonts, satoshiFamilyForWeight, satoshiFontFamily };
|
|
31
|
+
export { type SatoshiWeightName, kaleidoFonts, monoFontFamily, satoshiFamilyForWeight, satoshiFontFamily };
|
package/dist/native/fonts.js
CHANGED
|
@@ -1,28 +1,37 @@
|
|
|
1
1
|
import SatoshiRegular from "./fonts/Satoshi-Regular.ttf";
|
|
2
2
|
import SatoshiMedium from "./fonts/Satoshi-Medium.ttf";
|
|
3
3
|
import SatoshiBold from "./fonts/Satoshi-Bold.ttf";
|
|
4
|
+
import SatoshiBlack from "./fonts/Satoshi-Black.ttf";
|
|
5
|
+
import GeistMono from "./fonts/GeistMono.ttf";
|
|
4
6
|
const kaleidoFonts = {
|
|
5
7
|
"Satoshi-Regular": SatoshiRegular,
|
|
6
8
|
"Satoshi-Medium": SatoshiMedium,
|
|
7
|
-
"Satoshi-Bold": SatoshiBold
|
|
9
|
+
"Satoshi-Bold": SatoshiBold,
|
|
10
|
+
"Satoshi-Black": SatoshiBlack,
|
|
11
|
+
GeistMono
|
|
8
12
|
};
|
|
13
|
+
const monoFontFamily = "GeistMono";
|
|
9
14
|
const satoshiFontFamily = {
|
|
10
15
|
regular: "Satoshi-Regular",
|
|
11
16
|
medium: "Satoshi-Medium",
|
|
12
17
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
13
18
|
semibold: "Satoshi-Bold",
|
|
14
|
-
bold: "Satoshi-Bold"
|
|
19
|
+
bold: "Satoshi-Bold",
|
|
20
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
21
|
+
black: "Satoshi-Black"
|
|
15
22
|
};
|
|
16
23
|
function satoshiFamilyForWeight(weight) {
|
|
17
24
|
if (weight === "bold") return satoshiFontFamily.bold;
|
|
18
25
|
const n = typeof weight === "number" ? weight : Number(weight);
|
|
19
26
|
if (!Number.isFinite(n)) return satoshiFontFamily.regular;
|
|
27
|
+
if (n >= 800) return satoshiFontFamily.black;
|
|
20
28
|
if (n >= 600) return satoshiFontFamily.bold;
|
|
21
29
|
if (n >= 500) return satoshiFontFamily.medium;
|
|
22
30
|
return satoshiFontFamily.regular;
|
|
23
31
|
}
|
|
24
32
|
export {
|
|
25
33
|
kaleidoFonts,
|
|
34
|
+
monoFontFamily,
|
|
26
35
|
satoshiFamilyForWeight,
|
|
27
36
|
satoshiFontFamily
|
|
28
37
|
};
|
package/package.json
CHANGED