@multiplatform.one/keycloak-theme 7.83.1 → 7.83.2

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.
Files changed (43) hide show
  1. package/dist/cjs/SpringboardStyles.cjs +61 -0
  2. package/dist/cjs/SpringboardStyles.native.js +67 -0
  3. package/dist/cjs/SpringboardStyles.native.js.map +1 -0
  4. package/dist/cjs/css.cjs +555 -0
  5. package/dist/cjs/css.native.js +559 -0
  6. package/dist/cjs/css.native.js.map +1 -0
  7. package/dist/cjs/glyph.cjs +71 -0
  8. package/dist/cjs/glyph.native.js +75 -0
  9. package/dist/cjs/glyph.native.js.map +1 -0
  10. package/dist/cjs/index.cjs +53 -0
  11. package/dist/cjs/index.native.js +56 -0
  12. package/dist/cjs/index.native.js.map +1 -0
  13. package/dist/cjs/themeName.cjs +42 -0
  14. package/dist/cjs/themeName.native.js +45 -0
  15. package/dist/cjs/themeName.native.js.map +1 -0
  16. package/dist/cjs/tokens.cjs +133 -0
  17. package/dist/cjs/tokens.native.js +136 -0
  18. package/dist/cjs/tokens.native.js.map +1 -0
  19. package/dist/esm/SpringboardStyles.mjs +35 -0
  20. package/dist/esm/SpringboardStyles.mjs.map +1 -0
  21. package/dist/esm/SpringboardStyles.native.js +38 -0
  22. package/dist/esm/SpringboardStyles.native.js.map +1 -0
  23. package/dist/esm/css.mjs +530 -0
  24. package/dist/esm/css.mjs.map +1 -0
  25. package/dist/esm/css.native.js +531 -0
  26. package/dist/esm/css.native.js.map +1 -0
  27. package/dist/esm/glyph.mjs +42 -0
  28. package/dist/esm/glyph.mjs.map +1 -0
  29. package/dist/esm/glyph.native.js +43 -0
  30. package/dist/esm/glyph.native.js.map +1 -0
  31. package/dist/esm/index.mjs +7 -0
  32. package/dist/esm/index.mjs.map +1 -0
  33. package/dist/esm/index.native.js +7 -0
  34. package/dist/esm/index.native.js.map +1 -0
  35. package/dist/esm/themeName.mjs +15 -0
  36. package/dist/esm/themeName.mjs.map +1 -0
  37. package/dist/esm/themeName.native.js +15 -0
  38. package/dist/esm/themeName.native.js.map +1 -0
  39. package/dist/esm/tokens.mjs +98 -0
  40. package/dist/esm/tokens.mjs.map +1 -0
  41. package/dist/esm/tokens.native.js +98 -0
  42. package/dist/esm/tokens.native.js.map +1 -0
  43. package/package.json +12 -3
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var glyph_exports = {};
26
+ __export(glyph_exports, {
27
+ glyphColors: () => glyphColors,
28
+ glyphHue: () => glyphHue,
29
+ glyphMark: () => glyphMark,
30
+ glyphMonogram: () => glyphMonogram,
31
+ stableHash: () => stableHash
32
+ });
33
+ module.exports = __toCommonJS(glyph_exports);
34
+ function stableHash(seed) {
35
+ var hash = 2166136261;
36
+ for (var i = 0; i < seed.length; i++) {
37
+ hash ^= seed.charCodeAt(i);
38
+ hash = Math.imul(hash, 16777619) >>> 0;
39
+ }
40
+ return hash >>> 0;
41
+ }
42
+ function glyphHue(seed) {
43
+ return stableHash(seed) % 360;
44
+ }
45
+ function glyphMonogram(name) {
46
+ var trimmed = name.trim();
47
+ if (!trimmed) return "?";
48
+ var words = trimmed.split(/[\s\-_.]+/).filter(Boolean);
49
+ if (words.length >= 2) {
50
+ var _words__, _words__1;
51
+ return `${(_words__ = words[0][0]) !== null && _words__ !== void 0 ? _words__ : ""}${(_words__1 = words[1][0]) !== null && _words__1 !== void 0 ? _words__1 : ""}`.toUpperCase();
52
+ }
53
+ return trimmed.slice(0, 2).toUpperCase();
54
+ }
55
+ function glyphColors(seed) {
56
+ var hue = glyphHue(seed);
57
+ return {
58
+ background: `hsl(${hue}, 62%, 42%)`,
59
+ foreground: "hsl(0, 0%, 98%)"
60
+ };
61
+ }
62
+ function glyphMark(params) {
63
+ var {
64
+ name,
65
+ displayName
66
+ } = params;
67
+ var seed = name.trim() || (displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || "";
68
+ var label = (displayName === null || displayName === void 0 ? void 0 : displayName.trim()) || name;
69
+ return {
70
+ ...glyphColors(seed),
71
+ monogram: glyphMonogram(label),
72
+ hue: glyphHue(seed)
73
+ };
74
+ }
75
+ //# sourceMappingURL=glyph.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","glyph_exports","__export","glyphColors","glyphHue","glyphMark","glyphMonogram","stableHash","module","exports","seed","hash","i","length","charCodeAt","Math","imul","name","trimmed","trim","words","split","filter","Boolean","_words__","_words__1","toUpperCase","slice","hue","background","foreground","params","displayName","label","monogram"],"sources":["../../src/glyph.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,QAAA,EAAAA,CAAA,KAAAA,QAAA;EAAAC,SAAA,EAAAA,CAAA,KAAAA,SAAA;EAAAC,aAAA,EAAAA,CAAA,KAAAA,aAAA;EAAAC,UAAA,EAAAA,CAAA,K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AAD,WAAgB,aAAAA,WAAA,uBAAAA,WAAA,CAAAb,IAAA,OAAAF,IAAA;EAAA,OACnB;IACA,GAAAd,WAAc,CAAAO,IAAI;IACpBwB,QAAA,EAAA5B,aAAA,CAAA2B,KAAA;IACFL,GAAA,EAAAxB,QAAA,CAAAM,IAAA","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var index_exports = {};
24
+ __export(index_exports, {
25
+ SpringboardStyles: () => import_SpringboardStyles.SpringboardStyles,
26
+ accent: () => import_tokens.accent,
27
+ buildSpringboardCss: () => import_css.buildSpringboardCss,
28
+ caption: () => import_tokens.caption,
29
+ field: () => import_tokens.field,
30
+ fontFamily: () => import_tokens.fontFamily,
31
+ glyphColors: () => import_glyph.glyphColors,
32
+ glyphHue: () => import_glyph.glyphHue,
33
+ glyphMark: () => import_glyph.glyphMark,
34
+ glyphMonogram: () => import_glyph.glyphMonogram,
35
+ houseThemeName: () => import_themeName.houseThemeName,
36
+ icon: () => import_tokens.icon,
37
+ ink: () => import_tokens.ink,
38
+ isSpringboardTheme: () => import_themeName.isSpringboardTheme,
39
+ plate: () => import_tokens.plate,
40
+ resolveMark: () => import_SpringboardStyles.resolveMark,
41
+ springboardThemeName: () => import_themeName.springboardThemeName,
42
+ stableHash: () => import_glyph.stableHash,
43
+ status: () => import_tokens.status,
44
+ trigger: () => import_tokens.trigger,
45
+ wallpaperColors: () => import_tokens.wallpaperColors,
46
+ wallpaperLayers: () => import_tokens.wallpaperLayers
47
+ });
48
+ module.exports = __toCommonJS(index_exports);
49
+ var import_css = require("./css.cjs");
50
+ var import_glyph = require("./glyph.cjs");
51
+ var import_SpringboardStyles = require("./SpringboardStyles.cjs");
52
+ var import_themeName = require("./themeName.cjs");
53
+ var import_tokens = require("./tokens.cjs");
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var index_exports = {};
26
+ __export(index_exports, {
27
+ SpringboardStyles: () => import_SpringboardStyles.SpringboardStyles,
28
+ accent: () => import_tokens.accent,
29
+ buildSpringboardCss: () => import_css.buildSpringboardCss,
30
+ caption: () => import_tokens.caption,
31
+ field: () => import_tokens.field,
32
+ fontFamily: () => import_tokens.fontFamily,
33
+ glyphColors: () => import_glyph.glyphColors,
34
+ glyphHue: () => import_glyph.glyphHue,
35
+ glyphMark: () => import_glyph.glyphMark,
36
+ glyphMonogram: () => import_glyph.glyphMonogram,
37
+ houseThemeName: () => import_themeName.houseThemeName,
38
+ icon: () => import_tokens.icon,
39
+ ink: () => import_tokens.ink,
40
+ isSpringboardTheme: () => import_themeName.isSpringboardTheme,
41
+ plate: () => import_tokens.plate,
42
+ resolveMark: () => import_SpringboardStyles.resolveMark,
43
+ springboardThemeName: () => import_themeName.springboardThemeName,
44
+ stableHash: () => import_glyph.stableHash,
45
+ status: () => import_tokens.status,
46
+ trigger: () => import_tokens.trigger,
47
+ wallpaperColors: () => import_tokens.wallpaperColors,
48
+ wallpaperLayers: () => import_tokens.wallpaperLayers
49
+ });
50
+ module.exports = __toCommonJS(index_exports);
51
+ var import_css = require("./css.native.js");
52
+ var import_glyph = require("./glyph.native.js");
53
+ var import_SpringboardStyles = require("./SpringboardStyles.native.js");
54
+ var import_themeName = require("./themeName.native.js");
55
+ var import_tokens = require("./tokens.native.js");
56
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","__export","SpringboardStyles","import_SpringboardStyles","accent","import_tokens","buildSpringboardCss","import_css","caption","field","fontFamily","glyphColors","import_glyph","glyphHue","glyphMark","glyphMonogram","houseThemeName","import_themeName","icon","ink","isSpringboardTheme","plate","resolveMark","springboardThemeName","stableHash","status","trigger","wallpaperColors","wallpaperLayers","module","exports","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,QAAA,CAAAD,aAAA;EAAAE,iBAAA,EAAAA,CAAA,KAAAC,wBAAA,CAAAD,iBAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAC,aAAA,CAAAD,MAAA;EAAAE,mBAAA,EAAAA,CAAA,KAAAC,UAAA,CAAAD,mBAA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","ignoreList":[]}
@@ -0,0 +1,42 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var themeName_exports = {};
24
+ __export(themeName_exports, {
25
+ houseThemeName: () => houseThemeName,
26
+ isSpringboardTheme: () => isSpringboardTheme,
27
+ springboardThemeName: () => springboardThemeName
28
+ });
29
+ module.exports = __toCommonJS(themeName_exports);
30
+ const springboardThemeName = "shc-springboard";
31
+ const houseThemeName = "platform-keycloak";
32
+ function lastSegment(resourcesPath) {
33
+ const trimmed = resourcesPath.replace(/[?#].*$/, "").replace(/\/+$/, "");
34
+ const slash = trimmed.lastIndexOf("/");
35
+ return slash === -1 ? trimmed : trimmed.slice(slash + 1);
36
+ }
37
+ function isSpringboardTheme(kcContext) {
38
+ if (!kcContext) return false;
39
+ const resourcesPath = "url" in kcContext && kcContext.url ? kcContext.url.resourcesPath : "resourcesPath" in kcContext ? kcContext.resourcesPath : void 0;
40
+ if (typeof resourcesPath !== "string" || resourcesPath === "") return false;
41
+ return lastSegment(resourcesPath) === springboardThemeName;
42
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var themeName_exports = {};
26
+ __export(themeName_exports, {
27
+ houseThemeName: () => houseThemeName,
28
+ isSpringboardTheme: () => isSpringboardTheme,
29
+ springboardThemeName: () => springboardThemeName
30
+ });
31
+ module.exports = __toCommonJS(themeName_exports);
32
+ var springboardThemeName = "shc-springboard";
33
+ var houseThemeName = "platform-keycloak";
34
+ function lastSegment(resourcesPath) {
35
+ var trimmed = resourcesPath.replace(/[?#].*$/, "").replace(/\/+$/, "");
36
+ var slash = trimmed.lastIndexOf("/");
37
+ return slash === -1 ? trimmed : trimmed.slice(slash + 1);
38
+ }
39
+ function isSpringboardTheme(kcContext) {
40
+ if (!kcContext) return false;
41
+ var resourcesPath = "url" in kcContext && kcContext.url ? kcContext.url.resourcesPath : "resourcesPath" in kcContext ? kcContext.resourcesPath : void 0;
42
+ if (typeof resourcesPath !== "string" || resourcesPath === "") return false;
43
+ return lastSegment(resourcesPath) === springboardThemeName;
44
+ }
45
+ //# sourceMappingURL=themeName.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","themeName_exports","__export","houseThemeName","isSpringboardTheme","springboardThemeName","module","exports","lastSegment","resourcesPath","trimmed","replace","slash","lastIndexOf","slice","kcContext","url"],"sources":["../../src/themeName.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA,cAAA;EAAAC,kBAAA,EAAAA,CAAA,KAAAA,kBAAA;EAAAC,oBAAA,EAAAA,CAAA,KAAAA;AAAA;AAoCOC,MAAM,CAAAC,OAAA,GAAAX,YAAuB,CAAAK,iBAAA;AAG7B,IAAAI,oBAAuB;AAG9B,IAAAF,cAAS,GAAY,mBAA+B;AAClD,SAAMK,WAAUA,CAAAC,aAAc;EAC9B,IAAAC,OAAM,GAAQD,aAAQ,CAAAE,OAAY,UAAG,MAAAA,OAAA;EACrC,IAAAC,KAAO,GAAAF,OAAU,CAAAG,WAAK,CAAU;EAClC,OAAAD,KAAA,UAAAF,OAAA,GAAAA,OAAA,CAAAI,KAAA,CAAAF,KAAA;AAUO;AAGL,SAAKR,kBAAkBA,CAAAW,SAAA;EACvB,KAAAA,SAAM,SACJ;EAKF,IAAIN,aAAO,YAAkBM,SAAA,IAAYA,SAAA,CAAAC,GAAA,GAAAD,SAAsB,CAAAC,GAAO,CAAAP,aAAA,sBAAAM,SAAA,GAAAA,SAAA,CAAAN,aAAA;EACtE,WAAOA,aAAY,aAAa,IAAMA,aAAA;EACxC,OAAAD,WAAA,CAAAC,aAAA,MAAAJ,oBAAA","ignoreList":[]}
@@ -0,0 +1,133 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
14
+ get: () => from[key],
15
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
+ });
17
+ }
18
+ return to;
19
+ };
20
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
+ value: true
22
+ }), mod);
23
+ var tokens_exports = {};
24
+ __export(tokens_exports, {
25
+ accent: () => accent,
26
+ caption: () => caption,
27
+ field: () => field,
28
+ fontFamily: () => fontFamily,
29
+ icon: () => icon,
30
+ ink: () => ink,
31
+ plate: () => plate,
32
+ status: () => status,
33
+ trigger: () => trigger,
34
+ wallpaperColors: () => wallpaperColors,
35
+ wallpaperLayers: () => wallpaperLayers
36
+ });
37
+ module.exports = __toCommonJS(tokens_exports);
38
+ const wallpaperLayers = ["radial-gradient(ellipse at 18% 110%, rgba(56,189,248,.24), transparent 56%)", "radial-gradient(ellipse at 90% 0, rgba(99,102,241,.26), transparent 50%)", "linear-gradient(170deg, #071018, #152544 46%, #1a1544 76%, #080e18)"].join(", ");
39
+ const wallpaperColors = {
40
+ /** Flat base beneath the gradient stack. `WALLPAPER_BASE`. */
41
+ base: "#0b1220",
42
+ /** Indigo glow, top-right. `WALLPAPER_GLOW_A`. */
43
+ glowA: "rgba(99,102,241,0.26)",
44
+ /** Sky glow, bottom-left. `WALLPAPER_GLOW_B`. */
45
+ glowB: "rgba(56,189,248,0.24)",
46
+ /** Text drawn directly on the wallpaper. `ON_WALLPAPER_TEXT`. */
47
+ text: "#ffffff",
48
+ /** The halo that keeps that text legible over either glow. `ON_WALLPAPER_SHADOW`. */
49
+ textShadow: "#000000"
50
+ };
51
+ const plate = {
52
+ /** `DOCK_SHELF_FILL` — the translucent slab. */
53
+ fill: "rgba(16,20,32,0.48)",
54
+ /** `DOCK_SHELF_HIGHLIGHT` — the 1px inner highlight along the top edge. */
55
+ highlight: "rgba(255,255,255,0.27)",
56
+ /** `launcherDock.radius`. */
57
+ radius: 26,
58
+ /** `launcherDock.paddingVertical` / `.paddingHorizontal`. */
59
+ paddingVertical: 12,
60
+ paddingHorizontal: 16,
61
+ /** `launcherDock.gap`. */
62
+ gap: 18
63
+ };
64
+ const icon = {
65
+ /** `launcherIcon.size` — applied to the squircle AND the art inside it. */
66
+ size: 60,
67
+ /** `launcherIcon.radius` — 0.2333 of the box, not tamagui's 0.22. */
68
+ radius: 14,
69
+ /** `launcherIcon.shadowOffsetY` / `.shadowBlur` — `0 3px 8px #0006`. */
70
+ shadowOffsetY: 3,
71
+ shadowBlur: 8,
72
+ shadowColor: "#0006"
73
+ };
74
+ const caption = {
75
+ /** `launcherCaption.fontSize`. */
76
+ fontSize: 11,
77
+ /** `launcherCaption.lineHeight`. */
78
+ lineHeight: 15,
79
+ /** `launcherCaption.marginTop` — squircle to label. */
80
+ marginTop: 6,
81
+ /** StackTile.tsx: `textShadowOffset={{ width: 0, height: 1 }}`, radius 3. */
82
+ shadowOffsetY: 1,
83
+ shadowBlur: 3,
84
+ /** StackTile.tsx: `fontWeight="600"`. */
85
+ fontWeight: 600
86
+ };
87
+ const trigger = {
88
+ size: 52,
89
+ radius: 16,
90
+ inset: 16,
91
+ shadowOffsetY: 6,
92
+ shadowBlur: 20
93
+ };
94
+ const accent = {
95
+ /** Opaque `wallpaperColors.glowA`. Primary buttons. */
96
+ indigo: "#6366f1",
97
+ /** One step down for :hover — the same hue, 8% darker. */
98
+ indigoHover: "#5457dd",
99
+ /** One step further for :active. */
100
+ indigoPress: "#484bc4",
101
+ /** Opaque `wallpaperColors.glowB`. Links and the focus ring. */
102
+ sky: "#38bdf8"
103
+ };
104
+ const ink = {
105
+ /** Headings and input values. `wallpaperColors.text`. */
106
+ primary: "#ffffff",
107
+ /** Labels. */
108
+ secondary: "rgba(255,255,255,0.82)",
109
+ /** Helper text, captions, the muted half of a row. */
110
+ muted: "rgba(255,255,255,0.62)",
111
+ /** Placeholders and disabled labels. */
112
+ faint: "rgba(255,255,255,0.42)"
113
+ };
114
+ const field = {
115
+ /** Input fill: the plate darkened, so a field sits INTO the slab. */
116
+ background: "rgba(8,11,20,0.55)",
117
+ /** Resting hairline — `plate.highlight` at half strength. */
118
+ border: "rgba(255,255,255,0.14)",
119
+ borderHover: "rgba(255,255,255,0.24)",
120
+ borderFocus: accent.sky,
121
+ /** Divider rules (the social-provider separator). */
122
+ divider: "rgba(255,255,255,0.12)",
123
+ /** Secondary/ghost button fill. */
124
+ ghost: "rgba(255,255,255,0.08)",
125
+ ghostHover: "rgba(255,255,255,0.14)"
126
+ };
127
+ const status = {
128
+ error: "#f87171",
129
+ warning: "#fbbf24",
130
+ success: "#34d399",
131
+ info: accent.sky
132
+ };
133
+ const fontFamily = 'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
+ };
22
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
+ value: true
24
+ }), mod);
25
+ var tokens_exports = {};
26
+ __export(tokens_exports, {
27
+ accent: () => accent,
28
+ caption: () => caption,
29
+ field: () => field,
30
+ fontFamily: () => fontFamily,
31
+ icon: () => icon,
32
+ ink: () => ink,
33
+ plate: () => plate,
34
+ status: () => status,
35
+ trigger: () => trigger,
36
+ wallpaperColors: () => wallpaperColors,
37
+ wallpaperLayers: () => wallpaperLayers
38
+ });
39
+ module.exports = __toCommonJS(tokens_exports);
40
+ var wallpaperLayers = ["radial-gradient(ellipse at 18% 110%, rgba(56,189,248,.24), transparent 56%)", "radial-gradient(ellipse at 90% 0, rgba(99,102,241,.26), transparent 50%)", "linear-gradient(170deg, #071018, #152544 46%, #1a1544 76%, #080e18)"].join(", ");
41
+ var wallpaperColors = {
42
+ /** Flat base beneath the gradient stack. `WALLPAPER_BASE`. */
43
+ base: "#0b1220",
44
+ /** Indigo glow, top-right. `WALLPAPER_GLOW_A`. */
45
+ glowA: "rgba(99,102,241,0.26)",
46
+ /** Sky glow, bottom-left. `WALLPAPER_GLOW_B`. */
47
+ glowB: "rgba(56,189,248,0.24)",
48
+ /** Text drawn directly on the wallpaper. `ON_WALLPAPER_TEXT`. */
49
+ text: "#ffffff",
50
+ /** The halo that keeps that text legible over either glow. `ON_WALLPAPER_SHADOW`. */
51
+ textShadow: "#000000"
52
+ };
53
+ var plate = {
54
+ /** `DOCK_SHELF_FILL` — the translucent slab. */
55
+ fill: "rgba(16,20,32,0.48)",
56
+ /** `DOCK_SHELF_HIGHLIGHT` — the 1px inner highlight along the top edge. */
57
+ highlight: "rgba(255,255,255,0.27)",
58
+ /** `launcherDock.radius`. */
59
+ radius: 26,
60
+ /** `launcherDock.paddingVertical` / `.paddingHorizontal`. */
61
+ paddingVertical: 12,
62
+ paddingHorizontal: 16,
63
+ /** `launcherDock.gap`. */
64
+ gap: 18
65
+ };
66
+ var icon = {
67
+ /** `launcherIcon.size` — applied to the squircle AND the art inside it. */
68
+ size: 60,
69
+ /** `launcherIcon.radius` — 0.2333 of the box, not tamagui's 0.22. */
70
+ radius: 14,
71
+ /** `launcherIcon.shadowOffsetY` / `.shadowBlur` — `0 3px 8px #0006`. */
72
+ shadowOffsetY: 3,
73
+ shadowBlur: 8,
74
+ shadowColor: "#0006"
75
+ };
76
+ var caption = {
77
+ /** `launcherCaption.fontSize`. */
78
+ fontSize: 11,
79
+ /** `launcherCaption.lineHeight`. */
80
+ lineHeight: 15,
81
+ /** `launcherCaption.marginTop` — squircle to label. */
82
+ marginTop: 6,
83
+ /** StackTile.tsx: `textShadowOffset={{ width: 0, height: 1 }}`, radius 3. */
84
+ shadowOffsetY: 1,
85
+ shadowBlur: 3,
86
+ /** StackTile.tsx: `fontWeight="600"`. */
87
+ fontWeight: 600
88
+ };
89
+ var trigger = {
90
+ size: 52,
91
+ radius: 16,
92
+ inset: 16,
93
+ shadowOffsetY: 6,
94
+ shadowBlur: 20
95
+ };
96
+ var accent = {
97
+ /** Opaque `wallpaperColors.glowA`. Primary buttons. */
98
+ indigo: "#6366f1",
99
+ /** One step down for :hover — the same hue, 8% darker. */
100
+ indigoHover: "#5457dd",
101
+ /** One step further for :active. */
102
+ indigoPress: "#484bc4",
103
+ /** Opaque `wallpaperColors.glowB`. Links and the focus ring. */
104
+ sky: "#38bdf8"
105
+ };
106
+ var ink = {
107
+ /** Headings and input values. `wallpaperColors.text`. */
108
+ primary: "#ffffff",
109
+ /** Labels. */
110
+ secondary: "rgba(255,255,255,0.82)",
111
+ /** Helper text, captions, the muted half of a row. */
112
+ muted: "rgba(255,255,255,0.62)",
113
+ /** Placeholders and disabled labels. */
114
+ faint: "rgba(255,255,255,0.42)"
115
+ };
116
+ var field = {
117
+ /** Input fill: the plate darkened, so a field sits INTO the slab. */
118
+ background: "rgba(8,11,20,0.55)",
119
+ /** Resting hairline — `plate.highlight` at half strength. */
120
+ border: "rgba(255,255,255,0.14)",
121
+ borderHover: "rgba(255,255,255,0.24)",
122
+ borderFocus: accent.sky,
123
+ /** Divider rules (the social-provider separator). */
124
+ divider: "rgba(255,255,255,0.12)",
125
+ /** Secondary/ghost button fill. */
126
+ ghost: "rgba(255,255,255,0.08)",
127
+ ghostHover: "rgba(255,255,255,0.14)"
128
+ };
129
+ var status = {
130
+ error: "#f87171",
131
+ warning: "#fbbf24",
132
+ success: "#34d399",
133
+ info: accent.sky
134
+ };
135
+ var fontFamily = 'Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif';
136
+ //# sourceMappingURL=tokens.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","tokens_exports","__export","accent","caption","field","fontFamily","icon","ink","plate","status","trigger","wallpaperColors","wallpaperLayers","module","exports","join","base","glowA","glowB","text","textShadow","fill","highlight","radius","paddingVertical","paddingHorizontal","gap","size","shadowOffsetY","shadowBlur","shadowColor","fontSize","lineHeight","marginTop","fontWeight","inset","indigo","indigoHover","indigoPress","sky","primary","secondary","muted","faint","background","border","borderHover","borderFocus","divider","ghost","ghostHover","error","warning","success","info"],"sources":["../../src/tokens.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,cAAA;AAAAC,QAAA,CAAAD,cAAA;EAAAE,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,OAAA,EAAAA,CAAA,KAAAA,OAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,UAAA,EAAAA,CAAA,KAAAA,UAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,GAAA,EAAAA,CAAA,KAAAA,GAAA;EAAAC,KAAA,EAAAA,CAAA,KAAAA,KAAA;EAAAC,MAAA,EAAAA,CAAA,KAAAA,MAAA;EAAAC,OAAA,EAAAA,CAAA,KAAAA,OAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA;AAAA;AA0COC,MAAM,CAAAC,OAAA,GAAAnB,YAAkB,CAAAK,cAAA;AAA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 @@
1
+ import { useMemo } from "react";
2
+ import { buildSpringboardCss } from "./css.mjs";
3
+ import { glyphMark } from "./glyph.mjs";
4
+ import { jsx } from "react/jsx-runtime";
5
+ function resolveMark(realm) {
6
+ const name = realm?.name?.trim();
7
+ const displayName = realm?.displayName?.trim();
8
+ if (!name && !displayName) return void 0;
9
+ return glyphMark({
10
+ name: name ?? "",
11
+ displayName
12
+ });
13
+ }
14
+ function SpringboardStyles(props) {
15
+ const {
16
+ realm,
17
+ mark,
18
+ ...cssOptions
19
+ } = props;
20
+ const resolved = mark ?? resolveMark(realm);
21
+ const css = useMemo(() => buildSpringboardCss({
22
+ ...cssOptions,
23
+ mark: resolved
24
+ }),
25
+ // The options are primitives and the mark is a value object; keying on
26
+ // the resolved fields keeps the memo stable across the re-render that
27
+ // every keystroke in the password field causes.
28
+ [resolved?.monogram, resolved?.background, resolved?.foreground, cssOptions.fontFamily, cssOptions.focusRingWidthPx, cssOptions.focusRingOffsetPx, cssOptions.minPressTargetPx, cssOptions.cardMaxWidthPx]);
29
+ return /* @__PURE__ */jsx("style", {
30
+ "data-springboard-styles": "",
31
+ children: css
32
+ });
33
+ }
34
+ export { SpringboardStyles, resolveMark };
35
+ //# sourceMappingURL=SpringboardStyles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useMemo","buildSpringboardCss","glyphMark","jsx","resolveMark","realm","name","trim","displayName","SpringboardStyles","props","mark","cssOptions","resolved","css","monogram","background","foreground","fontFamily","focusRingWidthPx","focusRingOffsetPx","minPressTargetPx","cardMaxWidthPx","children"],"sources":["../../src/SpringboardStyles.tsx"],"sourcesContent":[null],"mappings":"AAmBA,SAASA,OAAA,QAAe;AAExB,SAASC,mBAAA,QAA2B;AAEpC,SAASC,SAAA,QAAiB;AA2DjB,SAAAC,GAAA;AA7BF,SAASC,YAAYC,KAAA,EAA4D;EACtF,MAAMC,IAAA,GAAOD,KAAA,EAAOC,IAAA,EAAMC,IAAA,CAAK;EAC/B,MAAMC,WAAA,GAAcH,KAAA,EAAOG,WAAA,EAAaD,IAAA,CAAK;EAC7C,IAAI,CAACD,IAAA,IAAQ,CAACE,WAAA,EAAa,OAAO;EAClC,OAAON,SAAA,CAAU;IAAEI,IAAA,EAAMA,IAAA,IAAQ;IAAIE;EAAY,CAAC;AACpD;AAEO,SAASC,kBAAkBC,KAAA,EAA+B;EAC/D,MAAM;IAAEL,KAAA;IAAOM,IAAA;IAAM,GAAGC;EAAW,IAAIF,KAAA;EAEvC,MAAMG,QAAA,GAAWF,IAAA,IAAQP,WAAA,CAAYC,KAAK;EAE1C,MAAMS,GAAA,GAAMd,OAAA,CACV,MAAMC,mBAAA,CAAoB;IAAE,GAAGW,UAAA;IAAYD,IAAA,EAAME;EAAS,CAAC;EAAA;EAAA;EAAA;EAI3D,CACEA,QAAA,EAAUE,QAAA,EACVF,QAAA,EAAUG,UAAA,EACVH,QAAA,EAAUI,UAAA,EACVL,UAAA,CAAWM,UAAA,EACXN,UAAA,CAAWO,gBAAA,EACXP,UAAA,CAAWQ,iBAAA,EACXR,UAAA,CAAWS,gBAAA,EACXT,UAAA,CAAWU,cAAA,CAEf;EAEA,OAAO,eAAAnB,GAAA,CAAC;IAAM,2BAAwB;IAAIoB,QAAA,EAAAT;EAAA,CAAI;AAChD","ignoreList":[]}
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { buildSpringboardCss } from "./css.native.js";
4
+ import { glyphMark } from "./glyph.native.js";
5
+ function resolveMark(realm) {
6
+ var _realm_name, _realm_displayName;
7
+ var name = realm === null || realm === void 0 ? void 0 : (_realm_name = realm.name) === null || _realm_name === void 0 ? void 0 : _realm_name.trim();
8
+ var displayName = realm === null || realm === void 0 ? void 0 : (_realm_displayName = realm.displayName) === null || _realm_displayName === void 0 ? void 0 : _realm_displayName.trim();
9
+ if (!name && !displayName) return void 0;
10
+ return glyphMark({
11
+ name: name !== null && name !== void 0 ? name : "",
12
+ displayName
13
+ });
14
+ }
15
+ function SpringboardStyles(props) {
16
+ var {
17
+ realm,
18
+ mark,
19
+ ...cssOptions
20
+ } = props;
21
+ var resolved = mark !== null && mark !== void 0 ? mark : resolveMark(realm);
22
+ var css = useMemo(function () {
23
+ return buildSpringboardCss({
24
+ ...cssOptions,
25
+ mark: resolved
26
+ });
27
+ },
28
+ // The options are primitives and the mark is a value object; keying on
29
+ // the resolved fields keeps the memo stable across the re-render that
30
+ // every keystroke in the password field causes.
31
+ [resolved === null || resolved === void 0 ? void 0 : resolved.monogram, resolved === null || resolved === void 0 ? void 0 : resolved.background, resolved === null || resolved === void 0 ? void 0 : resolved.foreground, cssOptions.fontFamily, cssOptions.focusRingWidthPx, cssOptions.focusRingOffsetPx, cssOptions.minPressTargetPx, cssOptions.cardMaxWidthPx]);
32
+ return /* @__PURE__ */_jsx("style", {
33
+ "data-springboard-styles": "",
34
+ children: css
35
+ });
36
+ }
37
+ export { SpringboardStyles, resolveMark };
38
+ //# sourceMappingURL=SpringboardStyles.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["jsx","_jsx","useMemo","buildSpringboardCss","glyphMark","resolveMark","realm","_realm_name","_realm_displayName","name","trim","displayName","SpringboardStyles","props","mark","cssOptions","resolved","css","monogram","background","foreground"],"sources":["../../src/SpringboardStyles.tsx"],"sourcesContent":[null],"mappings":"AAmBA,SAASA,GAAA,IAAAC,IAAA,QAAe;AAExB,SAASC,OAAA;AAET,SAASC,mBAAiB;AA2DjB,SAAAC,SAAA;AA7BF,SAASC,YAAYC,KAAA,EAA4D;EACtF,IAAAC,WAAa,EAAAC,kBAAkB;EAC/B,IAAAC,IAAM,GAAAH,KAAA,KAAc,QAAOA,KAAA,UAAa,CAAK,aAAAC,WAAA,GAAAD,KAAA,CAAAG,IAAA,cAAAF,WAAA,uBAAAA,WAAA,CAAAG,IAAA;EAC7C,IAAIC,WAAU,GAAAL,KAAA,KAAa,QAAOA,KAAA,wBAAAE,kBAAA,GAAAF,KAAA,CAAAK,WAAA,cAAAH,kBAAA,uBAAAA,kBAAA,CAAAE,IAAA;EAClC,KAAAD,IAAO,KAAAE,WAAkB,SAAQ,KAAI;EACvC,OAAAP,SAAA;IAEOK,IAAA,EAASA,IAAA,aAAkBA,IAAA,KAA+B,SAAAA,IAAA;IAC/DE;EAEA;AAEA;AAAY,SACVC,iBAAMA,CAAAC,KAAsB;EAA+B;IAAAP,KAAA;IAAAQ,IAAA;IAAA,GAAAC;EAAA,IAAAF,KAAA;EAAA,IAAAG,QAAA,GAAAF,IAAA,aAAAA,IAAA,cAAAA,IAAA,GAAAT,WAAA,CAAAC,KAAA;EAAA,IAAAW,GAAA,GAAAf,OAAA,CAI3D;IACE,OAAAC,mBAAU;MACV,GAAAY,UAAU;MACVD,IAAA,EAAAE;IACA;EAAW;EACA;EACA;EACA;EAEb,CACFA,QAAA,aAAAA,QAAA,uBAAAA,QAAA,CAAAE,QAAA,EAEAF,QAAO,aAAAA,QAAC,KAAM,kBAAAA,QAAA,CAAwBG,UAAI,EAC5CH,QAAA,aAAAA,QAAA,uBAAAA,QAAA,CAAAI,UAAA,E","ignoreList":[]}