@singi-labs/sifa-sdk 0.7.6 → 0.7.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/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/tokens/index.cjs +45 -0
- package/dist/tokens/index.cjs.map +1 -0
- package/dist/tokens/index.d.cts +72 -0
- package/dist/tokens/index.d.ts +72 -0
- package/dist/tokens/index.js +39 -0
- package/dist/tokens/index.js.map +1 -0
- package/package.json +11 -1
package/dist/index.cjs
CHANGED
|
@@ -1104,7 +1104,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
|
|
|
1104
1104
|
});
|
|
1105
1105
|
|
|
1106
1106
|
// src/index.ts
|
|
1107
|
-
var SIFA_SDK_VERSION = "0.7.
|
|
1107
|
+
var SIFA_SDK_VERSION = "0.7.7";
|
|
1108
1108
|
|
|
1109
1109
|
exports.CATEGORY_LABELS = CATEGORY_LABELS;
|
|
1110
1110
|
exports.CATEGORY_ORDER = CATEGORY_ORDER;
|
package/dist/index.js
CHANGED
|
@@ -1102,7 +1102,7 @@ var ProfileVolunteeringRecordSchema = z.object({
|
|
|
1102
1102
|
});
|
|
1103
1103
|
|
|
1104
1104
|
// src/index.ts
|
|
1105
|
-
var SIFA_SDK_VERSION = "0.7.
|
|
1105
|
+
var SIFA_SDK_VERSION = "0.7.7";
|
|
1106
1106
|
|
|
1107
1107
|
export { CATEGORY_LABELS, CATEGORY_ORDER, COMPLETENESS_MAX_SCORE, CONTINENTS, COUNTRIES, EndorsementConfirmationRecordSchema, EndorsementRecordSchema, GraphFollowRecordSchema, INDUSTRY_OPTIONS, PLATFORM_LABELS, PLATFORM_OPTIONS, ProfileCertificationRecordSchema, ProfileCourseRecordSchema, ProfileEducationRecordSchema, ProfileExternalAccountRecordSchema, ProfileHonorRecordSchema, ProfileLanguageRecordSchema, ProfilePositionRecordSchema, ProfileProjectRecordSchema, ProfilePublicationRecordSchema, ProfileSelfRecordSchema, ProfileSkillRecordSchema, ProfileVolunteeringRecordSchema, PublicationAuthorSchema, SIFA_SDK_VERSION, SKILL_CATEGORIES, atUriSchema, certDateExtractor, cidSchema, completenessPercent, completenessScore, contrastRatio, countryCodeToFlag, dateRangeExtractor, datetimeSchema, dedupeSkills, detectPdsProvider, didSchema, findIndustry, formatDistanceToNow, formatLocation, formatRelativeTime, getContinent, getDisplayLabel, getFaviconUrl, getHandleStem, getIndustryLabelKey, getPdsDisplayName, getPlatformLabel, groupSkillsByCategory, isKnownPlatform, isValidRgbColor, languageTagSchema, lexiconDateExtractor, maxGraphemes, meetsContrastAA, parseLocationString, pdsProviderFromApi, relativeLuminance, rgbToString, sanitizeHandleInput, selfLabelsSchema, singleDateExtractor, sortByDateDesc, strongRefSchema, truncateGraphemes, uriSchema };
|
|
1108
1108
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/tokens/colors.ts
|
|
4
|
+
var colors = {
|
|
5
|
+
/** Flexoki Blue -- Sifa's primary accent. */
|
|
6
|
+
primary: "#4385BE",
|
|
7
|
+
/** Flexoki Purple -- secondary accent, shared across Singi Labs products. */
|
|
8
|
+
secondary: "#8B7EC8"
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// src/tokens/typography.ts
|
|
12
|
+
var SYSTEM_SANS_FALLBACK = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";
|
|
13
|
+
var SYSTEM_MONO_FALLBACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
14
|
+
var fonts = {
|
|
15
|
+
/** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */
|
|
16
|
+
sans: "iA Writer Quattro",
|
|
17
|
+
/** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */
|
|
18
|
+
display: "Space Grotesk",
|
|
19
|
+
/** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */
|
|
20
|
+
mono: "Source Code Pro"
|
|
21
|
+
};
|
|
22
|
+
var fontFallbackStacks = {
|
|
23
|
+
sans: `'${fonts.sans}', ${SYSTEM_SANS_FALLBACK}`,
|
|
24
|
+
display: `'${fonts.display}', '${fonts.sans}', system-ui, sans-serif`,
|
|
25
|
+
mono: `'${fonts.mono}', ${SYSTEM_MONO_FALLBACK}`
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
// src/tokens/icons.ts
|
|
29
|
+
var iconSet = "phosphor";
|
|
30
|
+
var iconWeights = {
|
|
31
|
+
/** UI chrome -- buttons, nav, default state. */
|
|
32
|
+
uiChrome: "regular",
|
|
33
|
+
/** Interactive / active states -- selected items, primary buttons. */
|
|
34
|
+
interactive: "bold",
|
|
35
|
+
/** Decorative / illustration -- empty states, hero sections. */
|
|
36
|
+
decorative: "duotone"
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
exports.colors = colors;
|
|
40
|
+
exports.fontFallbackStacks = fontFallbackStacks;
|
|
41
|
+
exports.fonts = fonts;
|
|
42
|
+
exports.iconSet = iconSet;
|
|
43
|
+
exports.iconWeights = iconWeights;
|
|
44
|
+
//# sourceMappingURL=index.cjs.map
|
|
45
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/icons.ts"],"names":[],"mappings":";;;AAeO,IAAM,MAAA,GAAS;AAAA;AAAA,EAEpB,OAAA,EAAS,SAAA;AAAA;AAAA,EAET,SAAA,EAAW;AACb;;;ACRA,IAAM,oBAAA,GAAuB,mEAAA;AAC7B,IAAM,oBAAA,GAAuB,0DAAA;AAEtB,IAAM,KAAA,GAAQ;AAAA;AAAA,EAEnB,IAAA,EAAM,mBAAA;AAAA;AAAA,EAEN,OAAA,EAAS,eAAA;AAAA;AAAA,EAET,IAAA,EAAM;AACR;AAEO,IAAM,kBAAA,GAAqB;AAAA,EAChC,IAAA,EAAM,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,MAAM,oBAAoB,CAAA,CAAA;AAAA,EAC9C,SAAS,CAAA,CAAA,EAAI,KAAA,CAAM,OAAO,CAAA,IAAA,EAAO,MAAM,IAAI,CAAA,wBAAA,CAAA;AAAA,EAC3C,IAAA,EAAM,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,MAAM,oBAAoB,CAAA;AAChD;;;ACjBO,IAAM,OAAA,GAAU;AAEhB,IAAM,WAAA,GAAc;AAAA;AAAA,EAEzB,QAAA,EAAU,SAAA;AAAA;AAAA,EAEV,WAAA,EAAa,MAAA;AAAA;AAAA,EAEb,UAAA,EAAY;AACd","file":"index.cjs","sourcesContent":["/**\n * Sifa brand colors -- accent values from the Singi Labs design system.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Colors. Sifa uses a\n * distinct Flexoki accent from sibling Singi Labs products (Barazo, Singi\n * Labs itself); Flexoki Purple is the shared secondary accent across the\n * product family.\n *\n * NOTE: Neutral scales (background, surface, border, text) are not encoded\n * here. They come from Radix Colors (12-step scales with automatic\n * light/dark mode) and resolve at runtime via CSS variables in\n * `sifa-web`'s `globals.css`. Encoding them as TS constants would\n * misrepresent how they're consumed.\n */\n\nexport const colors = {\n /** Flexoki Blue -- Sifa's primary accent. */\n primary: '#4385BE',\n /** Flexoki Purple -- secondary accent, shared across Singi Labs products. */\n secondary: '#8B7EC8',\n} as const;\n\nexport type Colors = typeof colors;\n","/**\n * Sifa typography tokens -- font families and fallback stacks.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Typography. Three\n * families, with explicit fallback chains so consumers can paste straight\n * into a CSS `font-family` declaration or a React Native style.\n *\n * Self-hosted fonts (Sifa-web ships `iA Writer Quattro` + `Space Grotesk`\n * WOFF2 files; sifa-app will need to bundle equivalents). The SDK only\n * encodes the names + fallbacks; consumers handle font loading.\n */\n\nconst SYSTEM_SANS_FALLBACK = \"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\";\nconst SYSTEM_MONO_FALLBACK = 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';\n\nexport const fonts = {\n /** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */\n sans: 'iA Writer Quattro',\n /** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */\n display: 'Space Grotesk',\n /** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */\n mono: 'Source Code Pro',\n} as const;\n\nexport const fontFallbackStacks = {\n sans: `'${fonts.sans}', ${SYSTEM_SANS_FALLBACK}`,\n display: `'${fonts.display}', '${fonts.sans}', system-ui, sans-serif`,\n mono: `'${fonts.mono}', ${SYSTEM_MONO_FALLBACK}`,\n} as const;\n\nexport type Fonts = typeof fonts;\nexport type FontFallbackStacks = typeof fontFallbackStacks;\n","/**\n * Sifa icon-set conventions.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Icons. Phosphor\n * Icons is the only icon library used across Singi Labs products; mixing\n * icon families within a product is forbidden by convention.\n *\n * The weight conventions are guidance for consumers, not enforced. Encoded\n * here so tooling (e.g., a future \"design lint\" check) can reference them.\n */\n\nexport const iconSet = 'phosphor' as const;\n\nexport const iconWeights = {\n /** UI chrome -- buttons, nav, default state. */\n uiChrome: 'regular',\n /** Interactive / active states -- selected items, primary buttons. */\n interactive: 'bold',\n /** Decorative / illustration -- empty states, hero sections. */\n decorative: 'duotone',\n} as const;\n\nexport type IconSet = typeof iconSet;\nexport type IconWeights = typeof iconWeights;\n"]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sifa brand colors -- accent values from the Singi Labs design system.
|
|
3
|
+
*
|
|
4
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Colors. Sifa uses a
|
|
5
|
+
* distinct Flexoki accent from sibling Singi Labs products (Barazo, Singi
|
|
6
|
+
* Labs itself); Flexoki Purple is the shared secondary accent across the
|
|
7
|
+
* product family.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: Neutral scales (background, surface, border, text) are not encoded
|
|
10
|
+
* here. They come from Radix Colors (12-step scales with automatic
|
|
11
|
+
* light/dark mode) and resolve at runtime via CSS variables in
|
|
12
|
+
* `sifa-web`'s `globals.css`. Encoding them as TS constants would
|
|
13
|
+
* misrepresent how they're consumed.
|
|
14
|
+
*/
|
|
15
|
+
declare const colors: {
|
|
16
|
+
/** Flexoki Blue -- Sifa's primary accent. */
|
|
17
|
+
readonly primary: "#4385BE";
|
|
18
|
+
/** Flexoki Purple -- secondary accent, shared across Singi Labs products. */
|
|
19
|
+
readonly secondary: "#8B7EC8";
|
|
20
|
+
};
|
|
21
|
+
type Colors = typeof colors;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sifa typography tokens -- font families and fallback stacks.
|
|
25
|
+
*
|
|
26
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Typography. Three
|
|
27
|
+
* families, with explicit fallback chains so consumers can paste straight
|
|
28
|
+
* into a CSS `font-family` declaration or a React Native style.
|
|
29
|
+
*
|
|
30
|
+
* Self-hosted fonts (Sifa-web ships `iA Writer Quattro` + `Space Grotesk`
|
|
31
|
+
* WOFF2 files; sifa-app will need to bundle equivalents). The SDK only
|
|
32
|
+
* encodes the names + fallbacks; consumers handle font loading.
|
|
33
|
+
*/
|
|
34
|
+
declare const fonts: {
|
|
35
|
+
/** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */
|
|
36
|
+
readonly sans: "iA Writer Quattro";
|
|
37
|
+
/** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */
|
|
38
|
+
readonly display: "Space Grotesk";
|
|
39
|
+
/** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */
|
|
40
|
+
readonly mono: "Source Code Pro";
|
|
41
|
+
};
|
|
42
|
+
declare const fontFallbackStacks: {
|
|
43
|
+
readonly sans: "'iA Writer Quattro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";
|
|
44
|
+
readonly display: "'Space Grotesk', 'iA Writer Quattro', system-ui, sans-serif";
|
|
45
|
+
readonly mono: "'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
46
|
+
};
|
|
47
|
+
type Fonts = typeof fonts;
|
|
48
|
+
type FontFallbackStacks = typeof fontFallbackStacks;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Sifa icon-set conventions.
|
|
52
|
+
*
|
|
53
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Icons. Phosphor
|
|
54
|
+
* Icons is the only icon library used across Singi Labs products; mixing
|
|
55
|
+
* icon families within a product is forbidden by convention.
|
|
56
|
+
*
|
|
57
|
+
* The weight conventions are guidance for consumers, not enforced. Encoded
|
|
58
|
+
* here so tooling (e.g., a future "design lint" check) can reference them.
|
|
59
|
+
*/
|
|
60
|
+
declare const iconSet: "phosphor";
|
|
61
|
+
declare const iconWeights: {
|
|
62
|
+
/** UI chrome -- buttons, nav, default state. */
|
|
63
|
+
readonly uiChrome: "regular";
|
|
64
|
+
/** Interactive / active states -- selected items, primary buttons. */
|
|
65
|
+
readonly interactive: "bold";
|
|
66
|
+
/** Decorative / illustration -- empty states, hero sections. */
|
|
67
|
+
readonly decorative: "duotone";
|
|
68
|
+
};
|
|
69
|
+
type IconSet = typeof iconSet;
|
|
70
|
+
type IconWeights = typeof iconWeights;
|
|
71
|
+
|
|
72
|
+
export { type Colors, type FontFallbackStacks, type Fonts, type IconSet, type IconWeights, colors, fontFallbackStacks, fonts, iconSet, iconWeights };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sifa brand colors -- accent values from the Singi Labs design system.
|
|
3
|
+
*
|
|
4
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Colors. Sifa uses a
|
|
5
|
+
* distinct Flexoki accent from sibling Singi Labs products (Barazo, Singi
|
|
6
|
+
* Labs itself); Flexoki Purple is the shared secondary accent across the
|
|
7
|
+
* product family.
|
|
8
|
+
*
|
|
9
|
+
* NOTE: Neutral scales (background, surface, border, text) are not encoded
|
|
10
|
+
* here. They come from Radix Colors (12-step scales with automatic
|
|
11
|
+
* light/dark mode) and resolve at runtime via CSS variables in
|
|
12
|
+
* `sifa-web`'s `globals.css`. Encoding them as TS constants would
|
|
13
|
+
* misrepresent how they're consumed.
|
|
14
|
+
*/
|
|
15
|
+
declare const colors: {
|
|
16
|
+
/** Flexoki Blue -- Sifa's primary accent. */
|
|
17
|
+
readonly primary: "#4385BE";
|
|
18
|
+
/** Flexoki Purple -- secondary accent, shared across Singi Labs products. */
|
|
19
|
+
readonly secondary: "#8B7EC8";
|
|
20
|
+
};
|
|
21
|
+
type Colors = typeof colors;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sifa typography tokens -- font families and fallback stacks.
|
|
25
|
+
*
|
|
26
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Typography. Three
|
|
27
|
+
* families, with explicit fallback chains so consumers can paste straight
|
|
28
|
+
* into a CSS `font-family` declaration or a React Native style.
|
|
29
|
+
*
|
|
30
|
+
* Self-hosted fonts (Sifa-web ships `iA Writer Quattro` + `Space Grotesk`
|
|
31
|
+
* WOFF2 files; sifa-app will need to bundle equivalents). The SDK only
|
|
32
|
+
* encodes the names + fallbacks; consumers handle font loading.
|
|
33
|
+
*/
|
|
34
|
+
declare const fonts: {
|
|
35
|
+
/** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */
|
|
36
|
+
readonly sans: "iA Writer Quattro";
|
|
37
|
+
/** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */
|
|
38
|
+
readonly display: "Space Grotesk";
|
|
39
|
+
/** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */
|
|
40
|
+
readonly mono: "Source Code Pro";
|
|
41
|
+
};
|
|
42
|
+
declare const fontFallbackStacks: {
|
|
43
|
+
readonly sans: "'iA Writer Quattro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";
|
|
44
|
+
readonly display: "'Space Grotesk', 'iA Writer Quattro', system-ui, sans-serif";
|
|
45
|
+
readonly mono: "'Source Code Pro', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
46
|
+
};
|
|
47
|
+
type Fonts = typeof fonts;
|
|
48
|
+
type FontFallbackStacks = typeof fontFallbackStacks;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Sifa icon-set conventions.
|
|
52
|
+
*
|
|
53
|
+
* Source of truth: `Singi Labs/brand/design-system.md` §Icons. Phosphor
|
|
54
|
+
* Icons is the only icon library used across Singi Labs products; mixing
|
|
55
|
+
* icon families within a product is forbidden by convention.
|
|
56
|
+
*
|
|
57
|
+
* The weight conventions are guidance for consumers, not enforced. Encoded
|
|
58
|
+
* here so tooling (e.g., a future "design lint" check) can reference them.
|
|
59
|
+
*/
|
|
60
|
+
declare const iconSet: "phosphor";
|
|
61
|
+
declare const iconWeights: {
|
|
62
|
+
/** UI chrome -- buttons, nav, default state. */
|
|
63
|
+
readonly uiChrome: "regular";
|
|
64
|
+
/** Interactive / active states -- selected items, primary buttons. */
|
|
65
|
+
readonly interactive: "bold";
|
|
66
|
+
/** Decorative / illustration -- empty states, hero sections. */
|
|
67
|
+
readonly decorative: "duotone";
|
|
68
|
+
};
|
|
69
|
+
type IconSet = typeof iconSet;
|
|
70
|
+
type IconWeights = typeof iconWeights;
|
|
71
|
+
|
|
72
|
+
export { type Colors, type FontFallbackStacks, type Fonts, type IconSet, type IconWeights, colors, fontFallbackStacks, fonts, iconSet, iconWeights };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/tokens/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
/** Flexoki Blue -- Sifa's primary accent. */
|
|
4
|
+
primary: "#4385BE",
|
|
5
|
+
/** Flexoki Purple -- secondary accent, shared across Singi Labs products. */
|
|
6
|
+
secondary: "#8B7EC8"
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// src/tokens/typography.ts
|
|
10
|
+
var SYSTEM_SANS_FALLBACK = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif";
|
|
11
|
+
var SYSTEM_MONO_FALLBACK = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
|
|
12
|
+
var fonts = {
|
|
13
|
+
/** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */
|
|
14
|
+
sans: "iA Writer Quattro",
|
|
15
|
+
/** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */
|
|
16
|
+
display: "Space Grotesk",
|
|
17
|
+
/** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */
|
|
18
|
+
mono: "Source Code Pro"
|
|
19
|
+
};
|
|
20
|
+
var fontFallbackStacks = {
|
|
21
|
+
sans: `'${fonts.sans}', ${SYSTEM_SANS_FALLBACK}`,
|
|
22
|
+
display: `'${fonts.display}', '${fonts.sans}', system-ui, sans-serif`,
|
|
23
|
+
mono: `'${fonts.mono}', ${SYSTEM_MONO_FALLBACK}`
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
// src/tokens/icons.ts
|
|
27
|
+
var iconSet = "phosphor";
|
|
28
|
+
var iconWeights = {
|
|
29
|
+
/** UI chrome -- buttons, nav, default state. */
|
|
30
|
+
uiChrome: "regular",
|
|
31
|
+
/** Interactive / active states -- selected items, primary buttons. */
|
|
32
|
+
interactive: "bold",
|
|
33
|
+
/** Decorative / illustration -- empty states, hero sections. */
|
|
34
|
+
decorative: "duotone"
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { colors, fontFallbackStacks, fonts, iconSet, iconWeights };
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
39
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/tokens/colors.ts","../../src/tokens/typography.ts","../../src/tokens/icons.ts"],"names":[],"mappings":";AAeO,IAAM,MAAA,GAAS;AAAA;AAAA,EAEpB,OAAA,EAAS,SAAA;AAAA;AAAA,EAET,SAAA,EAAW;AACb;;;ACRA,IAAM,oBAAA,GAAuB,mEAAA;AAC7B,IAAM,oBAAA,GAAuB,0DAAA;AAEtB,IAAM,KAAA,GAAQ;AAAA;AAAA,EAEnB,IAAA,EAAM,mBAAA;AAAA;AAAA,EAEN,OAAA,EAAS,eAAA;AAAA;AAAA,EAET,IAAA,EAAM;AACR;AAEO,IAAM,kBAAA,GAAqB;AAAA,EAChC,IAAA,EAAM,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,MAAM,oBAAoB,CAAA,CAAA;AAAA,EAC9C,SAAS,CAAA,CAAA,EAAI,KAAA,CAAM,OAAO,CAAA,IAAA,EAAO,MAAM,IAAI,CAAA,wBAAA,CAAA;AAAA,EAC3C,IAAA,EAAM,CAAA,CAAA,EAAI,KAAA,CAAM,IAAI,MAAM,oBAAoB,CAAA;AAChD;;;ACjBO,IAAM,OAAA,GAAU;AAEhB,IAAM,WAAA,GAAc;AAAA;AAAA,EAEzB,QAAA,EAAU,SAAA;AAAA;AAAA,EAEV,WAAA,EAAa,MAAA;AAAA;AAAA,EAEb,UAAA,EAAY;AACd","file":"index.js","sourcesContent":["/**\n * Sifa brand colors -- accent values from the Singi Labs design system.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Colors. Sifa uses a\n * distinct Flexoki accent from sibling Singi Labs products (Barazo, Singi\n * Labs itself); Flexoki Purple is the shared secondary accent across the\n * product family.\n *\n * NOTE: Neutral scales (background, surface, border, text) are not encoded\n * here. They come from Radix Colors (12-step scales with automatic\n * light/dark mode) and resolve at runtime via CSS variables in\n * `sifa-web`'s `globals.css`. Encoding them as TS constants would\n * misrepresent how they're consumed.\n */\n\nexport const colors = {\n /** Flexoki Blue -- Sifa's primary accent. */\n primary: '#4385BE',\n /** Flexoki Purple -- secondary accent, shared across Singi Labs products. */\n secondary: '#8B7EC8',\n} as const;\n\nexport type Colors = typeof colors;\n","/**\n * Sifa typography tokens -- font families and fallback stacks.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Typography. Three\n * families, with explicit fallback chains so consumers can paste straight\n * into a CSS `font-family` declaration or a React Native style.\n *\n * Self-hosted fonts (Sifa-web ships `iA Writer Quattro` + `Space Grotesk`\n * WOFF2 files; sifa-app will need to bundle equivalents). The SDK only\n * encodes the names + fallbacks; consumers handle font loading.\n */\n\nconst SYSTEM_SANS_FALLBACK = \"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif\";\nconst SYSTEM_MONO_FALLBACK = 'ui-monospace, SFMono-Regular, Menlo, Consolas, monospace';\n\nexport const fonts = {\n /** Body text -- iA Writer Quattro (self-hosted, OFL-licensed). */\n sans: 'iA Writer Quattro',\n /** Headings (h1-h3) -- Space Grotesk Bold (self-hosted). Single weight (700). */\n display: 'Space Grotesk',\n /** Code / monospace -- Source Code Pro (loaded via `next/font` in Next.js consumers). */\n mono: 'Source Code Pro',\n} as const;\n\nexport const fontFallbackStacks = {\n sans: `'${fonts.sans}', ${SYSTEM_SANS_FALLBACK}`,\n display: `'${fonts.display}', '${fonts.sans}', system-ui, sans-serif`,\n mono: `'${fonts.mono}', ${SYSTEM_MONO_FALLBACK}`,\n} as const;\n\nexport type Fonts = typeof fonts;\nexport type FontFallbackStacks = typeof fontFallbackStacks;\n","/**\n * Sifa icon-set conventions.\n *\n * Source of truth: `Singi Labs/brand/design-system.md` §Icons. Phosphor\n * Icons is the only icon library used across Singi Labs products; mixing\n * icon families within a product is forbidden by convention.\n *\n * The weight conventions are guidance for consumers, not enforced. Encoded\n * here so tooling (e.g., a future \"design lint\" check) can reference them.\n */\n\nexport const iconSet = 'phosphor' as const;\n\nexport const iconWeights = {\n /** UI chrome -- buttons, nav, default state. */\n uiChrome: 'regular',\n /** Interactive / active states -- selected items, primary buttons. */\n interactive: 'bold',\n /** Decorative / illustration -- empty states, hero sections. */\n decorative: 'duotone',\n} as const;\n\nexport type IconSet = typeof iconSet;\nexport type IconWeights = typeof iconWeights;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singi-labs/sifa-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -71,6 +71,16 @@
|
|
|
71
71
|
"default": "./dist/query/fetchers/index.cjs"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
+
"./tokens": {
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./dist/tokens/index.d.ts",
|
|
77
|
+
"default": "./dist/tokens/index.js"
|
|
78
|
+
},
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./dist/tokens/index.d.cts",
|
|
81
|
+
"default": "./dist/tokens/index.cjs"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
74
84
|
"./package.json": "./package.json"
|
|
75
85
|
},
|
|
76
86
|
"main": "./dist/index.cjs",
|