@ably/ui 14.6.6-dev.f31c997 → 14.6.6

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
- import computedColorsDark from"../../../../computed-colors-dark.json";import computedColorsLight from"../../../../computed-colors-light.json";export const convertTailwindClassToVar=className=>className.replace(/(text|bg|from|to)-([a-z0-9-]+)/gi,"var(--color-$2)");export const determineThemeColor=(baseTheme,currentTheme,color)=>{if(baseTheme===currentTheme){return color}else if(baseTheme==="light"){return computedColorsLight[color][currentTheme]||color}else if(baseTheme==="dark"){return computedColorsDark[color][currentTheme]||color}return color};
1
+ import computedColorsDark from"./computed-colors-dark.json";import computedColorsLight from"./computed-colors-light.json";export const convertTailwindClassToVar=className=>className.replace(/(text|bg|from|to)-([a-z0-9-]+)/gi,"var(--color-$2)");export const determineThemeColor=(baseTheme,currentTheme,color)=>{if(baseTheme===currentTheme){return color}else if(baseTheme==="light"){return computedColorsLight[color][currentTheme]||color}else if(baseTheme==="dark"){return computedColorsDark[color][currentTheme]||color}return color};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ably/ui",
3
- "version": "14.6.6-dev.f31c997",
3
+ "version": "14.6.6",
4
4
  "description": "Home of the Ably design system library ([design.ably.com](https://design.ably.com)). It provides a showcase, development/test environment and a publishing pipeline for different distributables.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,9 +12,7 @@
12
12
  "reset",
13
13
  "tailwind.config.js",
14
14
  "tailwind.extend.js",
15
- "index.d.ts",
16
- "computed-colors-dark.json",
17
- "computed-colors-light.json"
15
+ "index.d.ts"
18
16
  ],
19
17
  "types": "index.d.ts",
20
18
  "devDependencies": {
@@ -60,7 +58,7 @@
60
58
  "build:tsc": "tsc && node tsc.js && rm -r types",
61
59
  "build:cleanup": "mv dist/* . && rm -r dist",
62
60
  "build:colors": "ts-node scripts/compute-colors.ts",
63
- "build": "yarn build:prebuild && yarn build:swc && node sprites.js && yarn build:colors && yarn build:tsc && yarn build:cleanup",
61
+ "build": "yarn build:prebuild && yarn build:colors && yarn build:swc && node sprites.js && yarn build:tsc && yarn build:cleanup",
64
62
  "watch": "yarn build:swc -w",
65
63
  "format:check": "prettier -c *.{js,ts} src/**/*.{js,ts,tsx}",
66
64
  "format:write": "prettier -w *.{js,ts} src/**/*.{js,ts,tsx}",
@@ -1,9 +1,5 @@
1
1
  module.exports = {
2
- content: [
3
- "./src/**/*.{js,ts,tsx,mdx,stories.tsx}",
4
- "./computed-colors-dark.json",
5
- "./computed-colors-light.json",
6
- ],
2
+ content: ["./src/**/*.{js,ts,tsx,mdx,stories.tsx,json}"],
7
3
  safelist: [{ pattern: /^hljs.*/ }],
8
4
  theme: {
9
5
  screens: {
package/core/.DS_Store DELETED
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file