godown 2.7.6 → 2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "godown",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
4
4
  "main": "./index.js",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -20,9 +20,7 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@lit/react": "^1.0.1",
23
- "autoprefixer": "^10.4.19",
24
23
  "lit": "^3.0.0",
25
- "postcss": "^8.4.39",
26
24
  "react": "^18.2.0",
27
25
  "tslib": "^2.6.2"
28
26
  },
@@ -33,9 +31,11 @@
33
31
  "@typescript-eslint/eslint-plugin": "^6.9.0",
34
32
  "@typescript-eslint/parser": "^6.9.0",
35
33
  "@web/rollup-plugin-html": "^1.11.1",
34
+ "autoprefixer": "^10.4.19",
36
35
  "eslint": "^8.57.0",
37
36
  "eslint-plugin-simple-import-sort": "^12.0.0",
38
37
  "glob": "^10.3.10",
38
+ "postcss": "^8.4.39",
39
39
  "prettier": "^3.2.5",
40
40
  "rollup": "^3.29.4",
41
41
  "rollup-plugin-minify-html-literals": "^1.2.6",
@@ -1,4 +1,4 @@
1
- import { presetsRGB } from "./presetsRGB";
1
+ import { presetsRGB } from "./presetsRGB.js";
2
2
  export const presets = {};
3
3
  Object.entries(presetsRGB).forEach(([key, values]) => {
4
4
  presets[key] = values.map((value) => `rgb(${value})`);
@@ -1 +1 @@
1
- {"version":3,"file":"presets.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["styles/colors/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,CAAC,MAAM,OAAO,GAAG,EAAuB,CAAC;AAC/C,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;IACnD,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC","sourcesContent":["import { presetsRGB } from \"./presetsRGB\";\n\nexport const presets = {} as typeof presetsRGB;\nObject.entries(presetsRGB).forEach(([key, values]) => {\n presets[key] = values.map((value) => `rgb(${value})`);\n});\n"]}
1
+ {"version":3,"file":"presets.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["styles/colors/presets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,CAAC,MAAM,OAAO,GAAG,EAAuB,CAAC;AAC/C,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE;IACnD,OAAO,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;AACxD,CAAC,CAAC,CAAC","sourcesContent":["import { presetsRGB } from \"./presetsRGB.js\";\n\nexport const presets = {} as typeof presetsRGB;\nObject.entries(presetsRGB).forEach(([key, values]) => {\n presets[key] = values.map((value) => `rgb(${value})`);\n});\n"]}
package/styles/global.js CHANGED
@@ -43,7 +43,7 @@ export const globalStyles = [
43
43
  --${cssGlobalVars.background}: rgb(var(--${cssGlobalVars.backgroundRGB}));
44
44
  --${cssGlobalVars.foregroundRGB}: ${colorRGBValues.lightgray[0]};
45
45
  --${cssGlobalVars.foreground}: rgb(var(--${cssGlobalVars.foregroundRGB}));
46
- --${cssGlobalVars.active}: ${colorValues.blue[5]};
46
+ --${cssGlobalVars.active}: ${colorValues.blue[6]};
47
47
  --${cssGlobalVars.passive}: ${colorValues.darkgray[2]};
48
48
  --${cssGlobalVars.clipBackground}: linear-gradient(180deg, rgb(var(--${cssGlobalVars.foregroundRGB})), rgb(var(--${cssGlobalVars.foregroundRGB}) / 68%));
49
49
  --${cssvar}--selection-color: inherit;
@@ -1 +1 @@
1
- {"version":3,"file":"global.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["styles/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAEtC,MAAM,UAAU,WAAW,CAAC,KAAa,EAAE,GAAG,GAAG,CAAC;IAChD,OAAO,SAAS,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;AAC/B,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAC3B,QAAQ,EAAE,WAAW,CAAC,WAAW,CAAC;IAClC,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,gBAAgB,CAAC;IAC5C,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC;IACrC,aAAa,EAAE,WAAW,CAAC,gBAAgB,CAAC;IAC5C,cAAc,EAAE,WAAW,CAAC,iBAAiB,CAAC;IAC9C,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC;IAC7B,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,EAG1B,CAAC;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c,CAAC,SAAS,CAAC,CAAC,CAAC;UAC3D,aAAa,CAAC,UAAU,eAAe,aAAa,CAAC,aAAa;UAClE,aAAa,CAAC,MAAM,KAAK,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;UAC5C,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;UACjD,aAAa,CAAC,cAAc,uCAAuC,aAAa,CAAC,aAAa,iBAAiB,aAAa,CAAC,aAAa;UAC1I,MAAM;UACN,MAAM;;;GAGb;IACD,GAAG,CAAA;;;;;;;;;;;;;;;;;;;qBAmBgB,MAAM;0BACD,MAAM;;GAE7B;CACF,CAAC","sourcesContent":["import { css, CSSResult, unsafeCSS } from \"lit\";\n\nimport conf from \"../conf.js\";\nimport { presetsRGB } from \"./colors/presetsRGB.js\";\n\nconst cssvar = unsafeCSS(conf.cssvar);\n\nexport function createScope(scope: string, len = 1): CSSResult {\n return unsafeCSS(cssvar + \"-\".repeat(len) + scope);\n}\n\nfunction globalScope(scope: string) {\n return createScope(scope, 2);\n}\n\nexport const cssGlobalVars = {\n color: globalScope(\"color\"),\n colorRGB: globalScope(\"color-rgb\"),\n foreground: globalScope(\"foreground\"),\n foregroundRGB: globalScope(\"foreground-rgb\"),\n background: globalScope(\"background\"),\n backgroundRGB: globalScope(\"background-rgb\"),\n clipBackground: globalScope(\"clip-background\"),\n input: globalScope(\"input\"),\n active: globalScope(\"active\"),\n passive: globalScope(\"passive\"),\n};\n\nexport const colorValues = {} as Record<\n keyof typeof presetsRGB,\n Record<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9, CSSResult>\n>;\nexport const colorRGBValues = {} as typeof colorValues;\n\nconst colorsToCSS = Object.entries(presetsRGB).reduce((acc, [key, values]) => {\n for (let i = 0; i < values.length; i++) {\n const endKey = `-${key}-${i}`;\n const colorKey = `--${cssGlobalVars.color}` + endKey;\n const rgbKey = `--${cssGlobalVars.colorRGB}` + endKey;\n colorValues[key] ||= {};\n colorValues[key][i] = unsafeCSS(`var(${colorKey})`);\n colorRGBValues[key] ||= {};\n colorRGBValues[key][i] = unsafeCSS(`var(${rgbKey})`);\n acc = colorKey + `:rgb(var(${rgbKey}));` + acc + rgbKey + `:${values[i]};`;\n }\n return acc;\n}, \"\");\n\nexport const globalStyles = [\n unsafeCSS(`:host{${colorsToCSS}}`),\n css`\n :host {\n --${cssGlobalVars.backgroundRGB}: ${colorRGBValues.darkgray[9]};\n --${cssGlobalVars.background}: rgb(var(--${cssGlobalVars.backgroundRGB}));\n --${cssGlobalVars.foregroundRGB}: ${colorRGBValues.lightgray[0]};\n --${cssGlobalVars.foreground}: rgb(var(--${cssGlobalVars.foregroundRGB}));\n --${cssGlobalVars.active}: ${colorValues.blue[5]};\n --${cssGlobalVars.passive}: ${colorValues.darkgray[2]};\n --${cssGlobalVars.clipBackground}: linear-gradient(180deg, rgb(var(--${cssGlobalVars.foregroundRGB})), rgb(var(--${cssGlobalVars.foregroundRGB}) / 68%));\n --${cssvar}--selection-color: inherit;\n --${cssvar}--selection-background: none;\n box-sizing: border-box;\n }\n `,\n css`\n * {\n border: 0;\n outline: 0;\n margin: 0;\n padding: 0;\n color: inherit;\n height: inherit;\n font-size: 100%;\n font-style: normal;\n box-sizing: border-box;\n }\n a {\n text-decoration: none;\n }\n span {\n white-space: nowrap;\n }\n ::selection {\n color: var(--${cssvar}--selection-color);\n background: var(--${cssvar}--selection-background);\n }\n `,\n];\n"]}
1
+ {"version":3,"file":"global.js","sourceRoot":"https://github.com/startracex/godown/tree/main/src/","sources":["styles/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAa,SAAS,EAAE,MAAM,KAAK,CAAC;AAEhD,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAEtC,MAAM,UAAU,WAAW,CAA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f from \"../conf.js\";\nimport { presetsRGB } from \"./colors/presetsRGB.js\";\n\nconst cssvar = unsafeCSS(conf.cssvar);\n\nexport function createScope(scope: string, len = 1): CSSResult {\n return unsafeCSS(cssvar + \"-\".repeat(len) + scope);\n}\n\nfunction globalScope(scope: string) {\n return createScope(scope, 2);\n}\n\nexport const cssGlobalVars = {\n color: globalScope(\"color\"),\n colorRGB: globalScope(\"color-rgb\"),\n foreground: globalScope(\"foreground\"),\n foregroundRGB: globalScope(\"foreground-rgb\"),\n background: globalScope(\"background\"),\n backgroundRGB: globalScope(\"background-rgb\"),\n clipBackground: globalScope(\"clip-background\"),\n input: globalScope(\"input\"),\n active: globalScope(\"active\"),\n passive: globalScope(\"passive\"),\n};\n\nexport const colorValues = {} as Record<\n keyof typeof presetsRGB,\n Record<0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9, CSSResult>\n>;\nexport const colorRGBValues = {} as typeof colorValues;\n\nconst colorsToCSS = Object.entries(presetsRGB).reduce((acc, [key, values]) => {\n for (let i = 0; i < values.length; i++) {\n const endKey = `-${key}-${i}`;\n const colorKey = `--${cssGlobalVars.color}` + endKey;\n const rgbKey = `--${cssGlobalVars.colorRGB}` + endKey;\n colorValues[key] ||= {};\n colorValues[key][i] = unsafeCSS(`var(${colorKey})`);\n colorRGBValues[key] ||= {};\n colorRGBValues[key][i] = unsafeCSS(`var(${rgbKey})`);\n acc = colorKey + `:rgb(var(${rgbKey}));` + acc + rgbKey + `:${values[i]};`;\n }\n return acc;\n}, \"\");\n\nexport const globalStyles = [\n unsafeCSS(`:host{${colorsToCSS}}`),\n css`\n :host {\n --${cssGlobalVars.backgroundRGB}: ${colorRGBValues.darkgray[9]};\n --${cssGlobalVars.background}: rgb(var(--${cssGlobalVars.backgroundRGB}));\n --${cssGlobalVars.foregroundRGB}: ${colorRGBValues.lightgray[0]};\n --${cssGlobalVars.foreground}: rgb(var(--${cssGlobalVars.foregroundRGB}));\n --${cssGlobalVars.active}: ${colorValues.blue[6]};\n --${cssGlobalVars.passive}: ${colorValues.darkgray[2]};\n --${cssGlobalVars.clipBackground}: linear-gradient(180deg, rgb(var(--${cssGlobalVars.foregroundRGB})), rgb(var(--${cssGlobalVars.foregroundRGB}) / 68%));\n --${cssvar}--selection-color: inherit;\n --${cssvar}--selection-background: none;\n box-sizing: border-box;\n }\n `,\n css`\n * {\n border: 0;\n outline: 0;\n margin: 0;\n padding: 0;\n color: inherit;\n height: inherit;\n font-size: 100%;\n font-style: normal;\n box-sizing: border-box;\n }\n a {\n text-decoration: none;\n }\n span {\n white-space: nowrap;\n }\n ::selection {\n color: var(--${cssvar}--selection-color);\n background: var(--${cssvar}--selection-background);\n }\n `,\n];\n"]}