@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.
- package/core/styles/colors/utils.js +1 -1
- package/package.json +3 -5
- package/tailwind.config.js +1 -5
- package/core/.DS_Store +0 -0
- package/core/Accordion/.DS_Store +0 -0
- package/core/Code/.DS_Store +0 -0
- package/core/ContactFooter/.DS_Store +0 -0
- package/core/CookieMessage/.DS_Store +0 -0
- package/core/CustomerLogos/.DS_Store +0 -0
- package/core/DropdownMenu/.DS_Store +0 -0
- package/core/FeaturedLink/.DS_Store +0 -0
- package/core/Flash/.DS_Store +0 -0
- package/core/Footer/.DS_Store +0 -0
- package/core/Icon/.DS_Store +0 -0
- package/core/Loader/.DS_Store +0 -0
- package/core/Logo/.DS_Store +0 -0
- package/core/Meganav/.DS_Store +0 -0
- package/core/MeganavBlogPostsList/.DS_Store +0 -0
- package/core/MeganavControl/.DS_Store +0 -0
- package/core/MeganavControlMobileDropdown/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelClose/.DS_Store +0 -0
- package/core/MeganavControlMobilePanelOpen/.DS_Store +0 -0
- package/core/MeganavSearchAutocomplete/.DS_Store +0 -0
- package/core/MeganavSearchSuggestions/.DS_Store +0 -0
- package/core/Notice/.DS_Store +0 -0
- package/core/Slider/.DS_Store +0 -0
- package/core/Table/.DS_Store +0 -0
- package/core/Tooltip/.DS_Store +0 -0
- package/core/icons/.DS_Store +0 -0
- /package/{computed-colors-dark.json → core/styles/colors/computed-colors-dark.json} +0 -0
- /package/{computed-colors-light.json → core/styles/colors/computed-colors-light.json} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import computedColorsDark from"
|
|
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
|
|
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:
|
|
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}",
|
package/tailwind.config.js
CHANGED
|
@@ -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
|
package/core/Accordion/.DS_Store
DELETED
|
Binary file
|
package/core/Code/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/core/Flash/.DS_Store
DELETED
|
Binary file
|
package/core/Footer/.DS_Store
DELETED
|
Binary file
|
package/core/Icon/.DS_Store
DELETED
|
Binary file
|
package/core/Loader/.DS_Store
DELETED
|
Binary file
|
package/core/Logo/.DS_Store
DELETED
|
Binary file
|
package/core/Meganav/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/core/Notice/.DS_Store
DELETED
|
Binary file
|
package/core/Slider/.DS_Store
DELETED
|
Binary file
|
package/core/Table/.DS_Store
DELETED
|
Binary file
|
package/core/Tooltip/.DS_Store
DELETED
|
Binary file
|
package/core/icons/.DS_Store
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|