@ably/ui 14.7.8-dev.40d3bee → 14.7.9
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/Accordion.js +1 -1
- package/core/Icon/EncapsulatedIcon.js +1 -1
- package/core/Meganav.js +1 -1
- package/core/MeganavItemsMobile.js +1 -1
- package/core/MeganavItemsSignedIn.js +1 -1
- package/core/MeganavSearch.js +1 -1
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/Pricing/PricingCards.js +1 -1
- package/core/Pricing/data.js +1 -1
- package/core/icons/icon-display-push-notifications-mono.svg +1 -1
- package/core/sprites.svg +1 -1
- package/core/styles/colors/computed-colors.json +1 -1
- package/index.d.ts +27 -8
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
["bg-blue-100","bg-neutral-1300","bg-neutral-300","bg-neutral-200","bg-neutral-100","bg-neutral-000","bg-orange-900","border-neutral-500","from-neutral-400"]
|
|
1
|
+
["bg-blue-400","bg-blue-100","bg-neutral-1300","bg-neutral-300","bg-neutral-200","bg-neutral-100","bg-neutral-000","bg-neutral-600","bg-orange-900","bg-orange-600","border-blue-400","border-neutral-200","border-neutral-600","border-neutral-500","border-orange-600","from-neutral-400","group-hover:bg-neutral-100","text-blue-600","text-blue-200","text-neutral-1300","text-neutral-300","text-neutral-000","text-neutral-1100","text-neutral-1000","text-neutral-800","text-neutral-700","text-neutral-600","text-neutral-500","text-orange-200","text-orange-600"]
|
package/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type AccordionData = {
|
|
|
8
8
|
name: string;
|
|
9
9
|
icon?: IconName;
|
|
10
10
|
content: ReactNode;
|
|
11
|
-
onClick?: () => void;
|
|
11
|
+
onClick?: (index: number) => void;
|
|
12
12
|
};
|
|
13
13
|
export type AccordionIcons = {
|
|
14
14
|
closed: {
|
|
@@ -232,11 +232,12 @@ export default Footer;
|
|
|
232
232
|
declare module '@ably/ui/core/Icon/EncapsulatedIcon' {
|
|
233
233
|
import { IconProps } from ".@ably/ui/core/Icon";
|
|
234
234
|
import { Theme } from ".@ably/ui/core/styles/colors/types";
|
|
235
|
+
import { IconSize } from "@ably/ui/core/types";
|
|
235
236
|
type EncapsulatedIconProps = {
|
|
236
237
|
theme?: Theme;
|
|
237
238
|
className?: string;
|
|
238
239
|
innerClassName?: string;
|
|
239
|
-
iconSize?:
|
|
240
|
+
iconSize?: IconSize;
|
|
240
241
|
} & IconProps;
|
|
241
242
|
const EncapsulatedIcon: ({ theme, size, iconSize, className, innerClassName, ...iconProps }: EncapsulatedIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
242
243
|
export default EncapsulatedIcon;
|
|
@@ -271,15 +272,16 @@ export const iconNames: {
|
|
|
271
272
|
product: readonly ["icon-product-asset-tracking", "icon-product-chat", "icon-product-liveobjects", "icon-product-livesync", "icon-product-pubsub", "icon-product-spaces"];
|
|
272
273
|
};
|
|
273
274
|
export type IconName = (typeof iconNames.gui)[number] | (typeof iconNames.display)[number] | (typeof iconNames.social)[number] | (typeof iconNames.other)[number] | (typeof iconNames.tech)[number] | (typeof iconNames.product)[number];
|
|
275
|
+
export type IconSize = `${number}px` | `${number}em` | `${number}rem` | `calc(${string})`;
|
|
274
276
|
//# sourceMappingURL=types.d.ts.map
|
|
275
277
|
}
|
|
276
278
|
|
|
277
279
|
declare module '@ably/ui/core/Icon' {
|
|
278
|
-
import { IconName } from "@ably/ui/core/Icon/types";
|
|
280
|
+
import { IconName, IconSize } from "@ably/ui/core/Icon/types";
|
|
279
281
|
import { ColorClass } from "@ably/ui/core/styles/colors/types";
|
|
280
282
|
export type IconProps = {
|
|
281
283
|
name: IconName;
|
|
282
|
-
size?:
|
|
284
|
+
size?: IconSize;
|
|
283
285
|
color?: ColorClass;
|
|
284
286
|
secondaryColor?: ColorClass;
|
|
285
287
|
additionalCSS?: string;
|
|
@@ -397,8 +399,9 @@ type MeganavProps = {
|
|
|
397
399
|
urlBase?: string;
|
|
398
400
|
addSearchApiKey: string;
|
|
399
401
|
statusUrl: string;
|
|
402
|
+
searchDataId?: string;
|
|
400
403
|
};
|
|
401
|
-
const Meganav: ({ paths, themeName, notice, loginLink, urlBase, addSearchApiKey, statusUrl, }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
|
|
404
|
+
const Meganav: ({ paths, themeName, notice, loginLink, urlBase, addSearchApiKey, statusUrl, searchDataId, }: MeganavProps) => import("react/jsx-runtime").JSX.Element;
|
|
402
405
|
export default Meganav;
|
|
403
406
|
//# sourceMappingURL=Meganav.d.ts.map
|
|
404
407
|
}
|
|
@@ -569,8 +572,9 @@ type MeganavItemsMobileProps = {
|
|
|
569
572
|
loginLink: string;
|
|
570
573
|
absUrl: AbsUrl;
|
|
571
574
|
statusUrl: string;
|
|
575
|
+
searchDataId?: string;
|
|
572
576
|
};
|
|
573
|
-
const _default: React.MemoExoticComponent<({ panels, paths, sessionState, theme, loginLink, absUrl, statusUrl, }: MeganavItemsMobileProps) => import("react/jsx-runtime").JSX.Element>;
|
|
577
|
+
const _default: React.MemoExoticComponent<({ panels, paths, sessionState, theme, loginLink, absUrl, statusUrl, searchDataId, }: MeganavItemsMobileProps) => import("react/jsx-runtime").JSX.Element>;
|
|
574
578
|
export default _default;
|
|
575
579
|
//# sourceMappingURL=MeganavItemsMobile.d.ts.map
|
|
576
580
|
}
|
|
@@ -581,16 +585,18 @@ type MeganavItemsSignedIn = {
|
|
|
581
585
|
sessionState: MeganavSessionState;
|
|
582
586
|
theme: MeganavTheme;
|
|
583
587
|
absUrl: AbsUrl;
|
|
588
|
+
searchDataId?: string;
|
|
584
589
|
};
|
|
585
|
-
const MeganavItemsSignedIn: ({ sessionState, absUrl, }: MeganavItemsSignedIn) => import("react/jsx-runtime").JSX.Element;
|
|
590
|
+
const MeganavItemsSignedIn: ({ sessionState, absUrl, searchDataId, }: MeganavItemsSignedIn) => import("react/jsx-runtime").JSX.Element;
|
|
586
591
|
export default MeganavItemsSignedIn;
|
|
587
592
|
//# sourceMappingURL=MeganavItemsSignedIn.d.ts.map
|
|
588
593
|
}
|
|
589
594
|
|
|
590
595
|
declare module '@ably/ui/core/MeganavSearch' {
|
|
591
596
|
import { AbsUrl } from "@ably/ui/core/Meganav";
|
|
592
|
-
const MeganavSearch: ({ absUrl }: {
|
|
597
|
+
const MeganavSearch: ({ absUrl, dataId, }: {
|
|
593
598
|
absUrl: AbsUrl;
|
|
599
|
+
dataId?: string;
|
|
594
600
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
595
601
|
export default MeganavSearch;
|
|
596
602
|
//# sourceMappingURL=MeganavSearch.d.ts.map
|
|
@@ -681,6 +687,19 @@ declare module '@ably/ui/core/Pricing/PricingCards' {
|
|
|
681
687
|
import type { PricingDataFeature } from "@ably/ui/core/types";
|
|
682
688
|
import { Theme } from ".@ably/ui/core/styles/colors/types";
|
|
683
689
|
import { IconName } from ".@ably/ui/core/Icon/types";
|
|
690
|
+
/**
|
|
691
|
+
Pricing hack to get all the themes loaded
|
|
692
|
+
|
|
693
|
+
themeColor("text-orange-600")
|
|
694
|
+
themeColor("text-orange-1000")
|
|
695
|
+
themeColor("text-neutral-000")
|
|
696
|
+
themeColor("text-neutral-500")
|
|
697
|
+
themeColor("text-neutral-600")
|
|
698
|
+
themeColor("text-neutral-700")
|
|
699
|
+
themeColor("text-neutral-1000")
|
|
700
|
+
themeColor("text-blue-400")
|
|
701
|
+
themeColor("text-blue-800")
|
|
702
|
+
*/
|
|
684
703
|
export type PricingCardsProps = {
|
|
685
704
|
data: PricingDataFeature[];
|
|
686
705
|
theme?: Theme;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ably/ui",
|
|
3
|
-
"version": "14.7.
|
|
3
|
+
"version": "14.7.9",
|
|
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",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
],
|
|
17
17
|
"types": "index.d.ts",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@storybook/addon-a11y": "^8.
|
|
20
|
-
"@storybook/addon-essentials": "^8.
|
|
21
|
-
"@storybook/addon-interactions": "^8.
|
|
22
|
-
"@storybook/addon-links": "^8.
|
|
23
|
-
"@storybook/blocks": "^8.
|
|
24
|
-
"@storybook/react-vite": "^8.
|
|
25
|
-
"@storybook/test": "^8.
|
|
19
|
+
"@storybook/addon-a11y": "^8.4.0",
|
|
20
|
+
"@storybook/addon-essentials": "^8.4.0",
|
|
21
|
+
"@storybook/addon-interactions": "^8.4.0",
|
|
22
|
+
"@storybook/addon-links": "^8.4.0",
|
|
23
|
+
"@storybook/blocks": "^8.4.0",
|
|
24
|
+
"@storybook/react-vite": "^8.4.0",
|
|
25
|
+
"@storybook/test": "^8.4.0",
|
|
26
26
|
"@storybook/test-runner": "^0.19.1",
|
|
27
|
-
"@swc/cli": "^0.
|
|
27
|
+
"@swc/cli": "^0.5.0",
|
|
28
28
|
"@swc/core": "^1.4.11",
|
|
29
29
|
"@tailwindcss/container-queries": "^0.1.1",
|
|
30
30
|
"@types/dompurify": "^3.0.5",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"eslint": "^8.57.0",
|
|
40
40
|
"eslint-config-prettier": "^9.1.0",
|
|
41
41
|
"eslint-plugin-react": "^7.34.3",
|
|
42
|
-
"eslint-plugin-storybook": "^0.
|
|
42
|
+
"eslint-plugin-storybook": "^0.11.0",
|
|
43
43
|
"http-server": "14.1.1",
|
|
44
|
-
"msw": "2.
|
|
44
|
+
"msw": "2.6.1",
|
|
45
45
|
"msw-storybook-addon": "^2.0.2",
|
|
46
46
|
"prettier": "^3.2.5",
|
|
47
|
-
"storybook": "^8.
|
|
47
|
+
"storybook": "^8.4.0",
|
|
48
48
|
"storybook-dark-mode": "^4.0.2",
|
|
49
49
|
"svg-sprite": "^2.0.4",
|
|
50
50
|
"tailwindcss": "^3.3.6",
|