@brightspot/ui 1.0.0-alpha.5 → 1.0.1-0

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.
@@ -1 +1 @@
1
- {"generatedAt":1753460386257,"userSince":1749234503234,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-webpack5","options":{"builder":{"useSWC":true}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/web-components","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"8.6.14","storybookVersionSpecifier":"^8.6.12","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.6.14"},"@storybook/test":{"version":"8.6.14"},"@storybook/web-components":{"version":"8.6.14"},"@storybook/web-components-webpack5":{"version":"8.6.14"},"eslint-plugin-storybook":{"version":"0.12.0"},"storybook":{"version":"8.6.14"}},"addons":{"@storybook/addon-webpack5-compiler-swc":{"version":"3.0.0"},"@storybook/addon-essentials":{"version":"8.6.14"},"@storybook/addon-styling-webpack":{"version":"1.0.1"}}}
1
+ {"generatedAt":1755812359922,"userSince":1749234503234,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"testPackages":{},"hasRouterPackage":false,"packageManager":{"type":"yarn","agent":"yarn"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/web-components-webpack5","options":{"builder":{"useSWC":true}}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/web-components","portableStoriesFileCount":0,"applicationFileCount":0,"storybookVersion":"8.6.14","storybookVersionSpecifier":"^8.6.12","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.6.14"},"@storybook/test":{"version":"8.6.14"},"@storybook/web-components":{"version":"8.6.14"},"@storybook/web-components-webpack5":{"version":"8.6.14"},"eslint-plugin-storybook":{"version":"0.12.0"},"storybook":{"version":"8.6.14"}},"addons":{"@storybook/addon-webpack5-compiler-swc":{"version":"3.0.0"},"@storybook/addon-essentials":{"version":"8.6.14"},"@storybook/addon-styling-webpack":{"version":"1.0.1"}}}
@@ -27,14 +27,14 @@ module.exports = plugin(function ({ addUtilities, theme }) {
27
27
  for (const key in lightValues) {
28
28
  lightStyles.set(`--btu-theme-${color}-${key}`, `${lightValues[key]}`);
29
29
  // Light high contrast palette.
30
- lightStylesHC.set(`--btu-theme-${color}-${key}`, `from oklch(${lightValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(lightValues).indexOf(key)]}) calc(c + ${HCChromaFactor}) h`);
30
+ lightStylesHC.set(`--btu-theme-${color}-${key}`, `from oklch(${lightValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(lightValues).indexOf(key)]}) calc(c + ${color === 'gray' ? 0 : HCChromaFactor}) h`);
31
31
  }
32
32
  }
33
33
  if (typeof darkValues === 'object') {
34
34
  for (const key in darkValues) {
35
35
  darkStyles.set(`--btu-theme-${color}-${key}`, `${darkValues[key]}`);
36
36
  // Dark high contrast palette.
37
- darkStylesHC.set(`--btu-theme-${color}-${key}`, `from oklch(${darkValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(darkValues).indexOf(key)]}) calc(c + ${HCChromaFactor}) h`);
37
+ darkStylesHC.set(`--btu-theme-${color}-${key}`, `from oklch(${darkValues[key]}) calc(l - ${HCLightnessFactors.slice().reverse()[Object.keys(darkValues).indexOf(key)]}) calc(c + ${color === 'gray' ? 0 : HCChromaFactor}) h`);
38
38
  }
39
39
  }
40
40
  }
@@ -57,7 +57,7 @@ module.exports = plugin(function ({ addUtilities, theme }) {
57
57
  // Light high contrast palette.
58
58
  lightStylesHC.set(
59
59
  `--btu-theme-${color}-${key}`,
60
- `from oklch(${lightValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(lightValues).indexOf(key)]}) calc(c + ${HCChromaFactor}) h`,
60
+ `from oklch(${lightValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(lightValues).indexOf(key)]}) calc(c + ${color === 'gray' ? 0 : HCChromaFactor}) h`,
61
61
  )
62
62
  }
63
63
  }
@@ -69,7 +69,7 @@ module.exports = plugin(function ({ addUtilities, theme }) {
69
69
  // Dark high contrast palette.
70
70
  darkStylesHC.set(
71
71
  `--btu-theme-${color}-${key}`,
72
- `from oklch(${darkValues[key]}) calc(l - ${HCLightnessFactors[Object.keys(darkValues).indexOf(key)]}) calc(c + ${HCChromaFactor}) h`,
72
+ `from oklch(${darkValues[key]}) calc(l - ${HCLightnessFactors.slice().reverse()[Object.keys(darkValues).indexOf(key)]}) calc(c + ${color === 'gray' ? 0 : HCChromaFactor}) h`,
73
73
  )
74
74
  }
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspot/ui",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.1-0",
4
4
  "license": "UNLICENSED",
5
5
  "description": "A UI library for building Brightspot CMS components.",
6
6
  "main": "./dist/tailwind.config.ts",