@inkandswitch/patchwork-pkg-base 0.0.46 → 0.0.48

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.
@@ -57,7 +57,7 @@ var DEFAULT_VALUES = {
57
57
  "--sideboard-primary": "var(--studio-primary)",
58
58
  "--sideboard-fill": "var(--studio-chrome-fill)",
59
59
  "--studio-family-sans": '"Jost*", "Jost", system-ui, -apple-system, sans-serif',
60
- "--studio-family-code": '"Fantasque Sans Mono", "IBM Plex Mono", ui-monospace, monospace',
60
+ "--studio-family-code": '"IBM Plex Mono", ui-monospace, monospace',
61
61
  "--studio-family": "var(--studio-family-sans)",
62
62
  "--studio-family-ui": "var(--studio-family-sans)",
63
63
  "--studio-font-size": "16px",
@@ -83,4 +83,4 @@ export {
83
83
  DEFAULT_VALUES,
84
84
  CustomThemeDatatype
85
85
  };
86
- //# sourceMappingURL=chunk-U7SC4JPE.js.map
86
+ //# sourceMappingURL=chunk-GIPQLUDU.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/theme-editor-datatype.ts"],
4
- "sourcesContent": ["export interface CustomThemeDoc {\n\tname: string\n\tmode: \"light\" | \"dark\"\n\tvariables: Record<string, string>\n\tcustomCss: string\n}\n\nexport const EDITABLE_VARIABLES = [\n\t{group: \"Base\", vars: [\n\t\t{key: \"--studio-fill\", label: \"Fill (background)\", type: \"color\"},\n\t\t{key: \"--studio-line\", label: \"Line (foreground)\", type: \"color\"},\n\t]},\n\t{group: \"Accents\", vars: [\n\t\t{key: \"--studio-primary\", label: \"Primary\", type: \"color\"},\n\t\t{key: \"--studio-secondary\", label: \"Secondary\", type: \"color\"},\n\t\t{key: \"--studio-danger\", label: \"Danger\", type: \"color\"},\n\t\t{key: \"--studio-warning\", label: \"Warning\", type: \"color\"},\n\t]},\n\t{group: \"Semantic\", vars: [\n\t\t{key: \"--studio-added\", label: \"Added\", type: \"color\"},\n\t\t{key: \"--studio-deleted\", label: \"Deleted\", type: \"color\"},\n\t\t{key: \"--studio-modified\", label: \"Modified\", type: \"color\"},\n\t\t{key: \"--studio-link\", label: \"Link\", type: \"color\"},\n\t]},\n\t{group: \"Selection\", vars: [\n\t\t{key: \"--studio-selection-fill\", label: \"Selection fill\", type: \"color\"},\n\t]},\n\t{group: \"Chrome\", vars: [\n\t\t// derived by default (see theme.css); kept as text so the var() default\n\t\t// survives unless the user types a concrete value.\n\t\t{key: \"--studio-chrome-fill\", label: \"Chrome fill\", type: \"text\"},\n\t\t{key: \"--studio-chrome-line\", label: \"Chrome line\", type: \"text\"},\n\t]},\n\t{group: \"Sideboard\", vars: [\n\t\t{key: \"--sideboard-primary\", label: \"Sideboard primary\", type: \"text\"},\n\t\t{key: \"--sideboard-fill\", label: \"Sideboard fill\", type: \"text\"},\n\t]},\n\t{group: \"Typography\", vars: [\n\t\t{key: \"--studio-family-sans\", label: \"Sans font\", type: \"text\"},\n\t\t{key: \"--studio-family-code\", label: \"Code font\", type: \"text\"},\n\t\t{key: \"--studio-family\", label: \"Default font\", type: \"text\"},\n\t\t{key: \"--studio-family-ui\", label: \"UI font\", type: \"text\"},\n\t\t{key: \"--studio-font-size\", label: \"Font size\", type: \"text\"},\n\t\t{key: \"--studio-line-height\", label: \"Line height\", type: \"text\"},\n\t]},\n] as const\n\nexport const DEFAULT_VALUES: Record<string, string> = {\n\t\"--studio-fill\": \"#ffffff\",\n\t\"--studio-line\": \"#000000\",\n\t\"--studio-primary\": \"#35f7ca\",\n\t\"--studio-secondary\": \"#33ccf8\",\n\t\"--studio-danger\": \"#ff6a90\",\n\t\"--studio-warning\": \"#f8c43b\",\n\t\"--studio-added\": \"#35f7ca\",\n\t\"--studio-deleted\": \"#ff6a90\",\n\t\"--studio-modified\": \"#f8c43b\",\n\t\"--studio-link\": \"#3366ee\",\n\t\"--studio-selection-fill\": \"#ffee8888\",\n\t// derived defaults \u2014 mirror the var() chains in theme.css so editing the\n\t// source (fill/primary/sans) cascades unless overridden here.\n\t\"--studio-chrome-fill\": \"var(--studio-fill-offset-10)\",\n\t\"--studio-chrome-line\": \"var(--studio-line)\",\n\t\"--sideboard-primary\": \"var(--studio-primary)\",\n\t\"--sideboard-fill\": \"var(--studio-chrome-fill)\",\n\t\"--studio-family-sans\": '\"Jost*\", \"Jost\", system-ui, -apple-system, sans-serif',\n\t\"--studio-family-code\": '\"Fantasque Sans Mono\", \"IBM Plex Mono\", ui-monospace, monospace',\n\t\"--studio-family\": \"var(--studio-family-sans)\",\n\t\"--studio-family-ui\": \"var(--studio-family-sans)\",\n\t\"--studio-font-size\": \"16px\",\n\t\"--studio-line-height\": \"1.5\",\n}\n\nexport const CustomThemeDatatype = {\n\tinit(doc: any) {\n\t\tdoc.name = \"Custom Theme\"\n\t\tdoc.mode = \"light\"\n\t\tdoc.variables = {...DEFAULT_VALUES}\n\t\tdoc.customCss = \"\"\n\t},\n\tgetTitle(doc: any) {\n\t\treturn doc.name || \"Custom Theme\"\n\t},\n\tsetTitle(doc: any, title: string) {\n\t\tdoc.name = title\n\t},\n}\n"],
4
+ "sourcesContent": ["export interface CustomThemeDoc {\n\tname: string\n\tmode: \"light\" | \"dark\"\n\tvariables: Record<string, string>\n\tcustomCss: string\n}\n\nexport const EDITABLE_VARIABLES = [\n\t{group: \"Base\", vars: [\n\t\t{key: \"--studio-fill\", label: \"Fill (background)\", type: \"color\"},\n\t\t{key: \"--studio-line\", label: \"Line (foreground)\", type: \"color\"},\n\t]},\n\t{group: \"Accents\", vars: [\n\t\t{key: \"--studio-primary\", label: \"Primary\", type: \"color\"},\n\t\t{key: \"--studio-secondary\", label: \"Secondary\", type: \"color\"},\n\t\t{key: \"--studio-danger\", label: \"Danger\", type: \"color\"},\n\t\t{key: \"--studio-warning\", label: \"Warning\", type: \"color\"},\n\t]},\n\t{group: \"Semantic\", vars: [\n\t\t{key: \"--studio-added\", label: \"Added\", type: \"color\"},\n\t\t{key: \"--studio-deleted\", label: \"Deleted\", type: \"color\"},\n\t\t{key: \"--studio-modified\", label: \"Modified\", type: \"color\"},\n\t\t{key: \"--studio-link\", label: \"Link\", type: \"color\"},\n\t]},\n\t{group: \"Selection\", vars: [\n\t\t{key: \"--studio-selection-fill\", label: \"Selection fill\", type: \"color\"},\n\t]},\n\t{group: \"Chrome\", vars: [\n\t\t// derived by default (see theme.css); kept as text so the var() default\n\t\t// survives unless the user types a concrete value.\n\t\t{key: \"--studio-chrome-fill\", label: \"Chrome fill\", type: \"text\"},\n\t\t{key: \"--studio-chrome-line\", label: \"Chrome line\", type: \"text\"},\n\t]},\n\t{group: \"Sideboard\", vars: [\n\t\t{key: \"--sideboard-primary\", label: \"Sideboard primary\", type: \"text\"},\n\t\t{key: \"--sideboard-fill\", label: \"Sideboard fill\", type: \"text\"},\n\t]},\n\t{group: \"Typography\", vars: [\n\t\t{key: \"--studio-family-sans\", label: \"Sans font\", type: \"text\"},\n\t\t{key: \"--studio-family-code\", label: \"Code font\", type: \"text\"},\n\t\t{key: \"--studio-family\", label: \"Default font\", type: \"text\"},\n\t\t{key: \"--studio-family-ui\", label: \"UI font\", type: \"text\"},\n\t\t{key: \"--studio-font-size\", label: \"Font size\", type: \"text\"},\n\t\t{key: \"--studio-line-height\", label: \"Line height\", type: \"text\"},\n\t]},\n] as const\n\nexport const DEFAULT_VALUES: Record<string, string> = {\n\t\"--studio-fill\": \"#ffffff\",\n\t\"--studio-line\": \"#000000\",\n\t\"--studio-primary\": \"#35f7ca\",\n\t\"--studio-secondary\": \"#33ccf8\",\n\t\"--studio-danger\": \"#ff6a90\",\n\t\"--studio-warning\": \"#f8c43b\",\n\t\"--studio-added\": \"#35f7ca\",\n\t\"--studio-deleted\": \"#ff6a90\",\n\t\"--studio-modified\": \"#f8c43b\",\n\t\"--studio-link\": \"#3366ee\",\n\t\"--studio-selection-fill\": \"#ffee8888\",\n\t// derived defaults \u2014 mirror the var() chains in theme.css so editing the\n\t// source (fill/primary/sans) cascades unless overridden here.\n\t\"--studio-chrome-fill\": \"var(--studio-fill-offset-10)\",\n\t\"--studio-chrome-line\": \"var(--studio-line)\",\n\t\"--sideboard-primary\": \"var(--studio-primary)\",\n\t\"--sideboard-fill\": \"var(--studio-chrome-fill)\",\n\t\"--studio-family-sans\": '\"Jost*\", \"Jost\", system-ui, -apple-system, sans-serif',\n\t\"--studio-family-code\": '\"IBM Plex Mono\", ui-monospace, monospace',\n\t\"--studio-family\": \"var(--studio-family-sans)\",\n\t\"--studio-family-ui\": \"var(--studio-family-sans)\",\n\t\"--studio-font-size\": \"16px\",\n\t\"--studio-line-height\": \"1.5\",\n}\n\nexport const CustomThemeDatatype = {\n\tinit(doc: any) {\n\t\tdoc.name = \"Custom Theme\"\n\t\tdoc.mode = \"light\"\n\t\tdoc.variables = {...DEFAULT_VALUES}\n\t\tdoc.customCss = \"\"\n\t},\n\tgetTitle(doc: any) {\n\t\treturn doc.name || \"Custom Theme\"\n\t},\n\tsetTitle(doc: any, title: string) {\n\t\tdoc.name = title\n\t},\n}\n"],
5
5
  "mappings": ";AAOO,IAAM,qBAAqB;AAAA,EACjC,EAAC,OAAO,QAAQ,MAAM;AAAA,IACrB,EAAC,KAAK,iBAAiB,OAAO,qBAAqB,MAAM,QAAO;AAAA,IAChE,EAAC,KAAK,iBAAiB,OAAO,qBAAqB,MAAM,QAAO;AAAA,EACjE,EAAC;AAAA,EACD,EAAC,OAAO,WAAW,MAAM;AAAA,IACxB,EAAC,KAAK,oBAAoB,OAAO,WAAW,MAAM,QAAO;AAAA,IACzD,EAAC,KAAK,sBAAsB,OAAO,aAAa,MAAM,QAAO;AAAA,IAC7D,EAAC,KAAK,mBAAmB,OAAO,UAAU,MAAM,QAAO;AAAA,IACvD,EAAC,KAAK,oBAAoB,OAAO,WAAW,MAAM,QAAO;AAAA,EAC1D,EAAC;AAAA,EACD,EAAC,OAAO,YAAY,MAAM;AAAA,IACzB,EAAC,KAAK,kBAAkB,OAAO,SAAS,MAAM,QAAO;AAAA,IACrD,EAAC,KAAK,oBAAoB,OAA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AA,EACrB,iBAAiB;AAAA,EACjB,2BAA2B;AAAA;AAAA;AAAA,EAG3B,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,uBAAuB;AAAA,EACvB,oBAAoB;AAAA,EACpB,wBAAwB;AAAA,EACxB,wBAAwB;AAAA,EACxB,mBAAmB;AAAA,EACnB,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,EACtB,wBAAwB;AACzB;AAEO,IAAM,sBAAsB;AAAA,EAClC,KAAK,KAAU;AACd,QAAI,OAAO;AACX,QAAI,OAAO;AACX,QAAI,YAAY,EAAC,GAAG,eAAc;AAClC,QAAI,YAAY;AAAA,EACjB;AAAA,EACA,SAAS,KAAU;AAClB,WAAO,IAAI,QAAQ;AAAA,EACpB;AAAA,EACA,SAAS,KAAU,OAAe;AACjC,QAAI,OAAO;AAAA,EACZ;AACD;",
6
6
  "names": []
7
7
  }
@@ -90,7 +90,7 @@ var plugins = [
90
90
  unlisted: true,
91
91
  icon: "Paintbrush",
92
92
  async load() {
93
- const { CustomThemeDatatype } = await import("./theme-editor-datatype-CIXRKEFF.js");
93
+ const { CustomThemeDatatype } = await import("./theme-editor-datatype-TMYH7U2S.js");
94
94
  return CustomThemeDatatype;
95
95
  }
96
96
  },
@@ -2,10 +2,10 @@ import {
2
2
  CustomThemeDatatype,
3
3
  DEFAULT_VALUES,
4
4
  EDITABLE_VARIABLES
5
- } from "./chunk-U7SC4JPE.js";
5
+ } from "./chunk-GIPQLUDU.js";
6
6
  export {
7
7
  CustomThemeDatatype,
8
8
  DEFAULT_VALUES,
9
9
  EDITABLE_VARIABLES
10
10
  };
11
- //# sourceMappingURL=theme-editor-datatype-CIXRKEFF.js.map
11
+ //# sourceMappingURL=theme-editor-datatype-TMYH7U2S.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_VALUES,
3
3
  EDITABLE_VARIABLES
4
- } from "./chunk-U7SC4JPE.js";
4
+ } from "./chunk-GIPQLUDU.js";
5
5
 
6
6
  // src/theme-editor.tsx
7
7
  import { template as _$template } from "solid-js/web";