@elaraai/east-ui-components 0.0.1-beta.4 → 0.0.1-beta.5

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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type CodeProps } from "@chakra-ui/react";
6
+ import { type ValueTypeOf } from "@elaraai/east";
7
+ import { Code } from "@elaraai/east-ui";
8
+ /** East Code value type */
9
+ export type CodeValue = ValueTypeOf<typeof Code.Types.Code>;
10
+ /**
11
+ * Converts an East UI Code value to Chakra UI Code props.
12
+ * Pure function - easy to test independently.
13
+ */
14
+ export declare function toChakraCode(value: CodeValue): CodeProps;
15
+ export interface EastChakraCodeProps {
16
+ value: CodeValue;
17
+ }
18
+ /**
19
+ * Renders an East UI Code value using Chakra UI Code component.
20
+ */
21
+ export declare const EastChakraCode: import("react").NamedExoticComponent<EastChakraCodeProps>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/code/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAMxC,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAMxD;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAI0B,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type ValueTypeOf } from "@elaraai/east";
6
+ import { CodeBlock } from "@elaraai/east-ui";
7
+ /** East CodeBlock value type */
8
+ export type CodeBlockValue = ValueTypeOf<typeof CodeBlock.Types.CodeBlock>;
9
+ export interface CodeBlockProps {
10
+ language?: string | undefined;
11
+ showLineNumbers?: boolean | undefined;
12
+ highlightLines?: number[] | undefined;
13
+ maxHeight?: string | undefined;
14
+ showCopyButton?: boolean | undefined;
15
+ title?: string | undefined;
16
+ }
17
+ /**
18
+ * Converts an East UI CodeBlock value to component props.
19
+ * Pure function - easy to test independently.
20
+ */
21
+ export declare function toCodeBlockProps(value: CodeBlockValue): CodeBlockProps;
22
+ export interface EastChakraCodeBlockProps {
23
+ value: CodeBlockValue;
24
+ }
25
+ /**
26
+ * Renders an East UI CodeBlock value using Chakra UI CodeBlock component
27
+ * with Shiki syntax highlighting.
28
+ *
29
+ * @remarks
30
+ * This component automatically sets up syntax highlighting using Shiki.
31
+ * Supported languages: typescript, javascript, json, html, css, python,
32
+ * rust, go, sql, bash, markdown, yaml, xml.
33
+ */
34
+ export declare const EastChakraCodeBlock: import("react").NamedExoticComponent<EastChakraCodeBlockProps>;
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/code-block/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAuC7C,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAiBtE;AAED,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,gEA6C0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type HeadingProps } from "@chakra-ui/react";
6
+ import { type ValueTypeOf } from "@elaraai/east";
7
+ import { Heading } from "@elaraai/east-ui";
8
+ /** East Heading value type */
9
+ export type HeadingValue = ValueTypeOf<typeof Heading.Types.Heading>;
10
+ /**
11
+ * Converts an East UI Heading value to Chakra UI Heading props.
12
+ * Pure function - easy to test independently.
13
+ */
14
+ export declare function toChakraHeading(value: HeadingValue): HeadingProps;
15
+ export interface EastChakraHeadingProps {
16
+ value: HeadingValue;
17
+ }
18
+ /**
19
+ * Renders an East UI Heading value using Chakra UI Heading component.
20
+ */
21
+ export declare const EastChakraHeading: import("react").NamedExoticComponent<EastChakraHeadingProps>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/heading/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAA4B,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAM3C,8BAA8B;AAC9B,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAErE;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAOjE;AAED,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DAI0B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type ValueTypeOf } from "@elaraai/east";
6
+ import { Highlight } from "@elaraai/east-ui";
7
+ /** East Highlight value type */
8
+ export type HighlightValue = ValueTypeOf<typeof Highlight.Types.Highlight>;
9
+ export interface HighlightStyleProps {
10
+ query: string[];
11
+ styles?: {
12
+ bg: string;
13
+ } | undefined;
14
+ }
15
+ /**
16
+ * Converts an East UI Highlight value to component props.
17
+ * Pure function - easy to test independently.
18
+ */
19
+ export declare function toChakraHighlight(value: HighlightValue): HighlightStyleProps;
20
+ export interface EastChakraHighlightProps {
21
+ value: HighlightValue;
22
+ }
23
+ /**
24
+ * Renders an East UI Highlight value using Chakra UI Highlight component.
25
+ */
26
+ export declare const EastChakraHighlight: import("react").NamedExoticComponent<EastChakraHighlightProps>;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/highlight/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACvC;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,cAAc,GAAG,mBAAmB,CAM5E;AAED,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gEAQ0B,CAAC"}
@@ -3,4 +3,11 @@
3
3
  * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
4
  */
5
5
  export { toChakraText, EastChakraText, type TextValue, type EastChakraTextProps, } from "./text/index.js";
6
+ export { toChakraCode, EastChakraCode, type CodeValue, type EastChakraCodeProps, } from "./code/index.js";
7
+ export { toChakraHeading, EastChakraHeading, type HeadingValue, type EastChakraHeadingProps, } from "./heading/index.js";
8
+ export { toChakraLink, EastChakraLink, type LinkValue, type EastChakraLinkProps, } from "./link/index.js";
9
+ export { toChakraHighlight, EastChakraHighlight, type HighlightValue, type EastChakraHighlightProps, } from "./highlight/index.js";
10
+ export { toChakraMark, EastChakraMark, type MarkValue, type EastChakraMarkProps, } from "./mark/index.js";
11
+ export { toChakraList, EastChakraList, type ListValue, type EastChakraListProps, } from "./list/index.js";
12
+ export { toCodeBlockProps, EastChakraCodeBlock, type CodeBlockValue, type EastChakraCodeBlockProps, } from "./code-block/index.js";
6
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typography/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC9B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,iBAAiB,EACjB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,wBAAwB,GAChC,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,YAAY,EACZ,cAAc,EACd,KAAK,SAAS,EACd,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,wBAAwB,GAChC,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type LinkProps } from "@chakra-ui/react";
6
+ import { type ValueTypeOf } from "@elaraai/east";
7
+ import { Link } from "@elaraai/east-ui";
8
+ /** East Link value type */
9
+ export type LinkValue = ValueTypeOf<typeof Link.Types.Link>;
10
+ /**
11
+ * Converts an East UI Link value to Chakra UI Link props.
12
+ * Pure function - easy to test independently.
13
+ */
14
+ export declare function toChakraLink(value: LinkValue): LinkProps;
15
+ export interface EastChakraLinkProps {
16
+ value: LinkValue;
17
+ }
18
+ /**
19
+ * Renders an East UI Link value using Chakra UI Link component.
20
+ */
21
+ export declare const EastChakraLink: import("react").NamedExoticComponent<EastChakraLinkProps>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/link/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAMxC,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAQxD;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAI0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type ListRootProps } from "@chakra-ui/react";
6
+ import { type ValueTypeOf } from "@elaraai/east";
7
+ import { List } from "@elaraai/east-ui";
8
+ /** East List value type */
9
+ export type ListValue = ValueTypeOf<typeof List.Types.List>;
10
+ /**
11
+ * Converts an East UI List value to Chakra UI List props.
12
+ * Pure function - easy to test independently.
13
+ */
14
+ export declare function toChakraList(value: ListValue): ListRootProps;
15
+ export interface EastChakraListProps {
16
+ value: ListValue;
17
+ }
18
+ /**
19
+ * Renders an East UI List value using Chakra UI List component.
20
+ */
21
+ export declare const EastChakraList: import("react").NamedExoticComponent<EastChakraListProps>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/list/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAMxC,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,aAAa,CAQ5D;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAU0B,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Copyright (c) 2025 Elara AI Pty Ltd
3
+ * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
4
+ */
5
+ import { type MarkProps } from "@chakra-ui/react";
6
+ import { type ValueTypeOf } from "@elaraai/east";
7
+ import { Mark } from "@elaraai/east-ui";
8
+ /** East Mark value type */
9
+ export type MarkValue = ValueTypeOf<typeof Mark.Types.Mark>;
10
+ /**
11
+ * Converts an East UI Mark value to Chakra UI Mark props.
12
+ * Pure function - easy to test independently.
13
+ */
14
+ export declare function toChakraMark(value: MarkValue): MarkProps;
15
+ export interface EastChakraMarkProps {
16
+ value: MarkValue;
17
+ }
18
+ /**
19
+ * Renders an East UI Mark value using Chakra UI Mark component.
20
+ */
21
+ export declare const EastChakraMark: import("react").NamedExoticComponent<EastChakraMarkProps>;
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/typography/mark/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAMxC,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAKxD;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAI0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elaraai/east-ui-components",
3
- "version": "0.0.1-beta.4",
3
+ "version": "0.0.1-beta.5",
4
4
  "description": "React components for rendering East UI types with Chakra UI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -36,7 +36,7 @@
36
36
  "@chakra-ui/charts": "^3.30.0",
37
37
  "@chakra-ui/react": "^3.0.0",
38
38
  "@elaraai/east": "^0.0.1-beta.1",
39
- "@elaraai/east-ui": "^0.0.1-beta.4",
39
+ "@elaraai/east-ui": "^0.0.1-beta.5",
40
40
  "@emotion/react": "^11.14.0",
41
41
  "@fortawesome/fontawesome-svg-core": "^7.1.0",
42
42
  "@fortawesome/free-brands-svg-icons": "^7.1.0",
@@ -46,6 +46,7 @@
46
46
  "@tanstack/react-table": "^8.21.3",
47
47
  "@tanstack/react-virtual": "^3.13.9",
48
48
  "recharts": "^3.5.0",
49
+ "shiki": "^3.19.0",
49
50
  "sorted-btree": "^2.0.0-alpha.0"
50
51
  },
51
52
  "devDependencies": {