@ably/ui 14.8.0 → 14.9.0-dev.4cf104c
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/.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/Icon/EncapsulatedIcon.js +1 -1
- package/core/Icon/computed-icons.js +1 -1
- package/core/Icon.js +1 -1
- 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/Pricing/PricingCards.js +1 -1
- package/core/Pricing/data.js +1 -1
- package/core/ProductTile.js +1 -1
- package/core/Slider/.DS_Store +0 -0
- package/core/Table/.DS_Store +0 -0
- package/core/Tooltip/.DS_Store +0 -0
- package/core/Tooltip.js +1 -1
- package/core/icons/.DS_Store +0 -0
- package/core/icons/icon-gui-warning-fill.svg +5 -0
- package/core/sprites.svg +1 -1
- package/core/styles/colors/types.js +1 -1
- package/core/styles/properties.css +2 -2
- package/index.d.ts +19 -48
- package/package.json +7 -3
- package/tailwind.config.js +2 -1
- package/core/hooks/useTheming.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.9.0-dev.4cf104c",
|
|
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",
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"index.d.ts"
|
|
16
16
|
],
|
|
17
17
|
"types": "index.d.ts",
|
|
18
|
+
"msw": {
|
|
19
|
+
"workerDirectory": "./public"
|
|
20
|
+
},
|
|
18
21
|
"devDependencies": {
|
|
19
22
|
"@storybook/addon-a11y": "^8.4.0",
|
|
20
23
|
"@storybook/addon-essentials": "^8.4.0",
|
|
@@ -35,6 +38,7 @@
|
|
|
35
38
|
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
36
39
|
"@typescript-eslint/parser": "^6.21.0",
|
|
37
40
|
"@vitejs/plugin-react": "^4.2.1",
|
|
41
|
+
"@whitespace/storybook-addon-html": "^6.1.1",
|
|
38
42
|
"autoprefixer": "^10.0.2",
|
|
39
43
|
"eslint": "^8.57.0",
|
|
40
44
|
"eslint-config-prettier": "^9.1.0",
|
|
@@ -44,6 +48,7 @@
|
|
|
44
48
|
"msw": "2.6.1",
|
|
45
49
|
"msw-storybook-addon": "^2.0.2",
|
|
46
50
|
"prettier": "^3.2.5",
|
|
51
|
+
"react-syntax-highlighter": "^15.6.1",
|
|
47
52
|
"storybook": "^8.4.0",
|
|
48
53
|
"storybook-dark-mode": "^4.0.2",
|
|
49
54
|
"svg-sprite": "^2.0.4",
|
|
@@ -57,9 +62,8 @@
|
|
|
57
62
|
"build:swc": "swc src/core src/reset -d dist --copy-files --include-dotfiles --strip-leading-paths --config-file .swc --ignore **/*.stories.tsx,**/*.snap",
|
|
58
63
|
"build:tsc": "tsc && node tsc.js && rm -r types",
|
|
59
64
|
"build:cleanup": "mv dist/* . && rm -r dist",
|
|
60
|
-
"build:colors": "ts-node scripts/compute-colors.ts",
|
|
61
65
|
"build:sprites": "ts-node scripts/generate-sprites.ts",
|
|
62
|
-
"build": "yarn build:prebuild && yarn build:
|
|
66
|
+
"build": "yarn build:prebuild && yarn build:sprites && yarn build:swc && yarn build:tsc && yarn build:cleanup",
|
|
63
67
|
"watch": "yarn build:swc -w",
|
|
64
68
|
"format:check": "prettier -c *.{js,ts} src/**/*.{js,ts,tsx}",
|
|
65
69
|
"format:write": "prettier -w *.{js,ts} src/**/*.{js,ts,tsx}",
|
package/tailwind.config.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
content: ["./src/**/*.{js,ts,tsx,
|
|
2
|
+
content: ["./src/**/*.{js,ts,tsx,stories.tsx,json}"],
|
|
3
3
|
safelist: [{ pattern: /^hljs.*/ }],
|
|
4
|
+
darkMode: ["selector", ".ui-theme-dark"],
|
|
4
5
|
theme: {
|
|
5
6
|
screens: {
|
|
6
7
|
// CSS custom properties can't be used in media queries
|
package/core/hooks/useTheming.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{useCallback}from"react";import{invertTailwindClassVariant}from"../styles/colors/utils";const useTheming=({baseTheme="dark",theme="dark"})=>{const themeColor=useCallback(color=>theme===baseTheme?color:invertTailwindClassVariant(color),[baseTheme,theme]);return{themeColor}};export default useTheming;
|