kaleido-ui 0.1.58 → 0.1.59
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
|
package/dist/native/fonts.cjs
CHANGED
|
@@ -36,22 +36,27 @@ module.exports = __toCommonJS(fonts_exports);
|
|
|
36
36
|
var import_Satoshi_Regular = __toESM(require("./fonts/Satoshi-Regular.ttf"), 1);
|
|
37
37
|
var import_Satoshi_Medium = __toESM(require("./fonts/Satoshi-Medium.ttf"), 1);
|
|
38
38
|
var import_Satoshi_Bold = __toESM(require("./fonts/Satoshi-Bold.ttf"), 1);
|
|
39
|
+
var import_Satoshi_Black = __toESM(require("./fonts/Satoshi-Black.ttf"), 1);
|
|
39
40
|
const kaleidoFonts = {
|
|
40
41
|
"Satoshi-Regular": import_Satoshi_Regular.default,
|
|
41
42
|
"Satoshi-Medium": import_Satoshi_Medium.default,
|
|
42
|
-
"Satoshi-Bold": import_Satoshi_Bold.default
|
|
43
|
+
"Satoshi-Bold": import_Satoshi_Bold.default,
|
|
44
|
+
"Satoshi-Black": import_Satoshi_Black.default
|
|
43
45
|
};
|
|
44
46
|
const satoshiFontFamily = {
|
|
45
47
|
regular: "Satoshi-Regular",
|
|
46
48
|
medium: "Satoshi-Medium",
|
|
47
49
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
48
50
|
semibold: "Satoshi-Bold",
|
|
49
|
-
bold: "Satoshi-Bold"
|
|
51
|
+
bold: "Satoshi-Bold",
|
|
52
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
53
|
+
black: "Satoshi-Black"
|
|
50
54
|
};
|
|
51
55
|
function satoshiFamilyForWeight(weight) {
|
|
52
56
|
if (weight === "bold") return satoshiFontFamily.bold;
|
|
53
57
|
const n = typeof weight === "number" ? weight : Number(weight);
|
|
54
58
|
if (!Number.isFinite(n)) return satoshiFontFamily.regular;
|
|
59
|
+
if (n >= 800) return satoshiFontFamily.black;
|
|
55
60
|
if (n >= 600) return satoshiFontFamily.bold;
|
|
56
61
|
if (n >= 500) return satoshiFontFamily.medium;
|
|
57
62
|
return satoshiFontFamily.regular;
|
package/dist/native/fonts.d.cts
CHANGED
|
@@ -11,6 +11,8 @@ declare const satoshiFontFamily: {
|
|
|
11
11
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
12
12
|
readonly semibold: "Satoshi-Bold";
|
|
13
13
|
readonly bold: "Satoshi-Bold";
|
|
14
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
15
|
+
readonly black: "Satoshi-Black";
|
|
14
16
|
};
|
|
15
17
|
type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
16
18
|
/**
|
package/dist/native/fonts.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const satoshiFontFamily: {
|
|
|
11
11
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
12
12
|
readonly semibold: "Satoshi-Bold";
|
|
13
13
|
readonly bold: "Satoshi-Bold";
|
|
14
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
15
|
+
readonly black: "Satoshi-Black";
|
|
14
16
|
};
|
|
15
17
|
type SatoshiWeightName = keyof typeof satoshiFontFamily;
|
|
16
18
|
/**
|
package/dist/native/fonts.js
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
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";
|
|
4
5
|
const kaleidoFonts = {
|
|
5
6
|
"Satoshi-Regular": SatoshiRegular,
|
|
6
7
|
"Satoshi-Medium": SatoshiMedium,
|
|
7
|
-
"Satoshi-Bold": SatoshiBold
|
|
8
|
+
"Satoshi-Bold": SatoshiBold,
|
|
9
|
+
"Satoshi-Black": SatoshiBlack
|
|
8
10
|
};
|
|
9
11
|
const satoshiFontFamily = {
|
|
10
12
|
regular: "Satoshi-Regular",
|
|
11
13
|
medium: "Satoshi-Medium",
|
|
12
14
|
/** No dedicated 600 face ships — semibold maps onto the bold cut. */
|
|
13
15
|
semibold: "Satoshi-Bold",
|
|
14
|
-
bold: "Satoshi-Bold"
|
|
16
|
+
bold: "Satoshi-Bold",
|
|
17
|
+
/** Heaviest cut (900) — display numerals / hero balances. */
|
|
18
|
+
black: "Satoshi-Black"
|
|
15
19
|
};
|
|
16
20
|
function satoshiFamilyForWeight(weight) {
|
|
17
21
|
if (weight === "bold") return satoshiFontFamily.bold;
|
|
18
22
|
const n = typeof weight === "number" ? weight : Number(weight);
|
|
19
23
|
if (!Number.isFinite(n)) return satoshiFontFamily.regular;
|
|
24
|
+
if (n >= 800) return satoshiFontFamily.black;
|
|
20
25
|
if (n >= 600) return satoshiFontFamily.bold;
|
|
21
26
|
if (n >= 500) return satoshiFontFamily.medium;
|
|
22
27
|
return satoshiFontFamily.regular;
|
package/package.json
CHANGED