@elaraai/east-ui-components 0.0.1-beta.6 → 0.0.1-beta.7
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/dist/index.cjs +9819 -652
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9830 -666
- package/dist/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/buttons/button/index.d.ts +0 -25
- package/dist/buttons/button/index.d.ts.map +0 -1
- package/dist/buttons/icon-button/index.d.ts +0 -22
- package/dist/buttons/icon-button/index.d.ts.map +0 -1
- package/dist/buttons/index.d.ts +0 -10
- package/dist/buttons/index.d.ts.map +0 -1
- package/dist/charts/area/index.d.ts +0 -16
- package/dist/charts/area/index.d.ts.map +0 -1
- package/dist/charts/bar/index.d.ts +0 -16
- package/dist/charts/bar/index.d.ts.map +0 -1
- package/dist/charts/bar-list/index.d.ts +0 -16
- package/dist/charts/bar-list/index.d.ts.map +0 -1
- package/dist/charts/bar-segment/index.d.ts +0 -16
- package/dist/charts/bar-segment/index.d.ts.map +0 -1
- package/dist/charts/index.d.ts +0 -17
- package/dist/charts/index.d.ts.map +0 -1
- package/dist/charts/line/index.d.ts +0 -16
- package/dist/charts/line/index.d.ts.map +0 -1
- package/dist/charts/pie/index.d.ts +0 -16
- package/dist/charts/pie/index.d.ts.map +0 -1
- package/dist/charts/radar/index.d.ts +0 -16
- package/dist/charts/radar/index.d.ts.map +0 -1
- package/dist/charts/scatter/index.d.ts +0 -16
- package/dist/charts/scatter/index.d.ts.map +0 -1
- package/dist/charts/sparkline/index.d.ts +0 -35
- package/dist/charts/sparkline/index.d.ts.map +0 -1
- package/dist/charts/utils.d.ts +0 -151
- package/dist/charts/utils.d.ts.map +0 -1
- package/dist/collections/data-list/index.d.ts +0 -24
- package/dist/collections/data-list/index.d.ts.map +0 -1
- package/dist/collections/gantt/EventAxis.d.ts +0 -14
- package/dist/collections/gantt/EventAxis.d.ts.map +0 -1
- package/dist/collections/gantt/GanttEventRow.d.ts +0 -20
- package/dist/collections/gantt/GanttEventRow.d.ts.map +0 -1
- package/dist/collections/gantt/GanttMilestone.d.ts +0 -16
- package/dist/collections/gantt/GanttMilestone.d.ts.map +0 -1
- package/dist/collections/gantt/GanttTask.d.ts +0 -17
- package/dist/collections/gantt/GanttTask.d.ts.map +0 -1
- package/dist/collections/gantt/index.d.ts +0 -65
- package/dist/collections/gantt/index.d.ts.map +0 -1
- package/dist/collections/index.d.ts +0 -8
- package/dist/collections/index.d.ts.map +0 -1
- package/dist/collections/table/index.d.ts +0 -59
- package/dist/collections/table/index.d.ts.map +0 -1
- package/dist/collections/tree-view/index.d.ts +0 -31
- package/dist/collections/tree-view/index.d.ts.map +0 -1
- package/dist/component.d.ts +0 -15
- package/dist/component.d.ts.map +0 -1
- package/dist/container/card/index.d.ts +0 -22
- package/dist/container/card/index.d.ts.map +0 -1
- package/dist/container/index.d.ts +0 -6
- package/dist/container/index.d.ts.map +0 -1
- package/dist/disclosure/accordion/index.d.ts +0 -36
- package/dist/disclosure/accordion/index.d.ts.map +0 -1
- package/dist/disclosure/carousel/index.d.ts +0 -22
- package/dist/disclosure/carousel/index.d.ts.map +0 -1
- package/dist/disclosure/index.d.ts +0 -8
- package/dist/disclosure/index.d.ts.map +0 -1
- package/dist/disclosure/tabs/index.d.ts +0 -45
- package/dist/disclosure/tabs/index.d.ts.map +0 -1
- package/dist/display/avatar/index.d.ts +0 -22
- package/dist/display/avatar/index.d.ts.map +0 -1
- package/dist/display/badge/index.d.ts +0 -22
- package/dist/display/badge/index.d.ts.map +0 -1
- package/dist/display/icon/index.d.ts +0 -22
- package/dist/display/icon/index.d.ts.map +0 -1
- package/dist/display/index.d.ts +0 -10
- package/dist/display/index.d.ts.map +0 -1
- package/dist/display/stat/index.d.ts +0 -16
- package/dist/display/stat/index.d.ts.map +0 -1
- package/dist/display/tag/index.d.ts +0 -22
- package/dist/display/tag/index.d.ts.map +0 -1
- package/dist/feedback/alert/index.d.ts +0 -22
- package/dist/feedback/alert/index.d.ts.map +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.d.ts.map +0 -1
- package/dist/feedback/progress/index.d.ts +0 -22
- package/dist/feedback/progress/index.d.ts.map +0 -1
- package/dist/forms/checkbox/index.d.ts +0 -22
- package/dist/forms/checkbox/index.d.ts.map +0 -1
- package/dist/forms/field/index.d.ts +0 -22
- package/dist/forms/field/index.d.ts.map +0 -1
- package/dist/forms/fieldset/index.d.ts +0 -76
- package/dist/forms/fieldset/index.d.ts.map +0 -1
- package/dist/forms/file-upload/index.d.ts +0 -22
- package/dist/forms/file-upload/index.d.ts.map +0 -1
- package/dist/forms/index.d.ts +0 -15
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/input/index.d.ts +0 -60
- package/dist/forms/input/index.d.ts.map +0 -1
- package/dist/forms/select/index.d.ts +0 -31
- package/dist/forms/select/index.d.ts.map +0 -1
- package/dist/forms/slider/index.d.ts +0 -22
- package/dist/forms/slider/index.d.ts.map +0 -1
- package/dist/forms/switch/index.d.ts +0 -22
- package/dist/forms/switch/index.d.ts.map +0 -1
- package/dist/forms/tags-input/index.d.ts +0 -22
- package/dist/forms/tags-input/index.d.ts.map +0 -1
- package/dist/forms/textarea/index.d.ts +0 -22
- package/dist/forms/textarea/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/layout/box/index.d.ts +0 -25
- package/dist/layout/box/index.d.ts.map +0 -1
- package/dist/layout/grid/index.d.ts +0 -25
- package/dist/layout/grid/index.d.ts.map +0 -1
- package/dist/layout/index.d.ts +0 -13
- package/dist/layout/index.d.ts.map +0 -1
- package/dist/layout/separator/index.d.ts +0 -25
- package/dist/layout/separator/index.d.ts.map +0 -1
- package/dist/layout/splitter/index.d.ts +0 -33
- package/dist/layout/splitter/index.d.ts.map +0 -1
- package/dist/layout/stack/index.d.ts +0 -25
- package/dist/layout/stack/index.d.ts.map +0 -1
- package/dist/overlays/action-bar/index.d.ts +0 -18
- package/dist/overlays/action-bar/index.d.ts.map +0 -1
- package/dist/overlays/dialog/index.d.ts +0 -16
- package/dist/overlays/dialog/index.d.ts.map +0 -1
- package/dist/overlays/drawer/index.d.ts +0 -16
- package/dist/overlays/drawer/index.d.ts.map +0 -1
- package/dist/overlays/hover-card/index.d.ts +0 -16
- package/dist/overlays/hover-card/index.d.ts.map +0 -1
- package/dist/overlays/index.d.ts +0 -13
- package/dist/overlays/index.d.ts.map +0 -1
- package/dist/overlays/menu/index.d.ts +0 -18
- package/dist/overlays/menu/index.d.ts.map +0 -1
- package/dist/overlays/popover/index.d.ts +0 -16
- package/dist/overlays/popover/index.d.ts.map +0 -1
- package/dist/overlays/toggle-tip/index.d.ts +0 -17
- package/dist/overlays/toggle-tip/index.d.ts.map +0 -1
- package/dist/overlays/tooltip/index.d.ts +0 -16
- package/dist/overlays/tooltip/index.d.ts.map +0 -1
- package/dist/platform/hooks.d.ts +0 -145
- package/dist/platform/hooks.d.ts.map +0 -1
- package/dist/platform/index.d.ts +0 -16
- package/dist/platform/index.d.ts.map +0 -1
- package/dist/platform/store.d.ts +0 -114
- package/dist/platform/store.d.ts.map +0 -1
- package/dist/typography/code/index.d.ts +0 -22
- package/dist/typography/code/index.d.ts.map +0 -1
- package/dist/typography/code-block/index.d.ts +0 -35
- package/dist/typography/code-block/index.d.ts.map +0 -1
- package/dist/typography/heading/index.d.ts +0 -22
- package/dist/typography/heading/index.d.ts.map +0 -1
- package/dist/typography/highlight/index.d.ts +0 -27
- package/dist/typography/highlight/index.d.ts.map +0 -1
- package/dist/typography/index.d.ts +0 -13
- package/dist/typography/index.d.ts.map +0 -1
- package/dist/typography/link/index.d.ts +0 -22
- package/dist/typography/link/index.d.ts.map +0 -1
- package/dist/typography/list/index.d.ts +0 -22
- package/dist/typography/list/index.d.ts.map +0 -1
- package/dist/typography/mark/index.d.ts +0 -22
- package/dist/typography/mark/index.d.ts.map +0 -1
- package/dist/typography/text/index.d.ts +0 -25
- package/dist/typography/text/index.d.ts.map +0 -1
- package/dist/utils/RowSortManager.d.ts +0 -68
- package/dist/utils/RowSortManager.d.ts.map +0 -1
- package/dist/utils/RowStateManager.d.ts +0 -42
- package/dist/utils/RowStateManager.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -7
- package/dist/utils.d.ts.map +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
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 { Dialog } from "@elaraai/east-ui";
|
|
7
|
-
/** East Dialog value type */
|
|
8
|
-
export type DialogValue = ValueTypeOf<typeof Dialog.Types.Dialog>;
|
|
9
|
-
export interface EastChakraDialogProps {
|
|
10
|
-
value: DialogValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI Dialog value using Chakra UI Dialog component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraDialog: import("react").NamedExoticComponent<EastChakraDialogProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/dialog/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAO1C,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,6DAgD0B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { Drawer } from "@elaraai/east-ui";
|
|
7
|
-
/** East Drawer value type */
|
|
8
|
-
export type DrawerValue = ValueTypeOf<typeof Drawer.Types.Drawer>;
|
|
9
|
-
export interface EastChakraDrawerProps {
|
|
10
|
-
value: DrawerValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI Drawer value using Chakra UI Drawer component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraDrawer: import("react").NamedExoticComponent<EastChakraDrawerProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/drawer/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAO1C,6BAA6B;AAC7B,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAElE,MAAM,WAAW,qBAAqB;IAClC,KAAK,EAAE,WAAW,CAAC;CACtB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,6DAsC0B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { HoverCard } from "@elaraai/east-ui";
|
|
7
|
-
/** East HoverCard value type */
|
|
8
|
-
export type HoverCardValue = ValueTypeOf<typeof HoverCard.Types.HoverCard>;
|
|
9
|
-
export interface EastChakraHoverCardProps {
|
|
10
|
-
value: HoverCardValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI HoverCard value using Chakra UI HoverCard component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraHoverCard: import("react").NamedExoticComponent<EastChakraHoverCardProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/hover-card/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,gEAsC0B,CAAC"}
|
package/dist/overlays/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
export { EastChakraTooltip, type TooltipValue, type EastChakraTooltipProps, } from "./tooltip/index.js";
|
|
6
|
-
export { EastChakraMenu, type MenuValue, type MenuItemValue, type EastChakraMenuProps, } from "./menu/index.js";
|
|
7
|
-
export { EastChakraPopover, type PopoverValue, type EastChakraPopoverProps, } from "./popover/index.js";
|
|
8
|
-
export { EastChakraHoverCard, type HoverCardValue, type EastChakraHoverCardProps, } from "./hover-card/index.js";
|
|
9
|
-
export { EastChakraDialog, type DialogValue, type EastChakraDialogProps, } from "./dialog/index.js";
|
|
10
|
-
export { EastChakraDrawer, type DrawerValue, type EastChakraDrawerProps, } from "./drawer/index.js";
|
|
11
|
-
export { EastChakraActionBar, type ActionBarValue, type ActionBarItemValue, type EastChakraActionBarProps, } from "./action-bar/index.js";
|
|
12
|
-
export { EastChakraToggleTip, type ToggleTipValue, type EastChakraToggleTipProps, } from "./toggle-tip/index.js";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/overlays/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACH,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC9B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,cAAc,EACd,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,mBAAmB,GAC3B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACH,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC9B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACH,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,wBAAwB,GAChC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,gBAAgB,EAChB,KAAK,WAAW,EAChB,KAAK,qBAAqB,GAC7B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACH,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,GAChC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACH,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,wBAAwB,GAChC,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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 { Menu } from "@elaraai/east-ui";
|
|
7
|
-
/** East Menu value type */
|
|
8
|
-
export type MenuValue = ValueTypeOf<typeof Menu.Types.Menu>;
|
|
9
|
-
/** East MenuItem value type */
|
|
10
|
-
export type MenuItemValue = ValueTypeOf<typeof Menu.Types.Item>;
|
|
11
|
-
export interface EastChakraMenuProps {
|
|
12
|
-
value: MenuValue;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Renders an East UI Menu value using Chakra UI Menu component.
|
|
16
|
-
*/
|
|
17
|
-
export declare const EastChakraMenu: import("react").NamedExoticComponent<EastChakraMenuProps>;
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/menu/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAOxC,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAE5D,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAEhE,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,SAAS,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,2DAgC0B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { Popover } from "@elaraai/east-ui";
|
|
7
|
-
/** East Popover value type */
|
|
8
|
-
export type PopoverValue = ValueTypeOf<typeof Popover.Types.Popover>;
|
|
9
|
-
export interface EastChakraPopoverProps {
|
|
10
|
-
value: PopoverValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI Popover value using Chakra UI Popover component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraPopover: import("react").NamedExoticComponent<EastChakraPopoverProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/popover/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,8BAA8B;AAC9B,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DA+B0B,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 { ToggleTip } from "@elaraai/east-ui";
|
|
7
|
-
/** East ToggleTip value type */
|
|
8
|
-
export type ToggleTipValue = ValueTypeOf<typeof ToggleTip.Types.ToggleTip>;
|
|
9
|
-
export interface EastChakraToggleTipProps {
|
|
10
|
-
value: ToggleTipValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI ToggleTip value using Chakra UI Popover component.
|
|
14
|
-
* ToggleTip is a click-activated tooltip for better accessibility.
|
|
15
|
-
*/
|
|
16
|
-
export declare const EastChakraToggleTip: import("react").NamedExoticComponent<EastChakraToggleTipProps>;
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/toggle-tip/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAO7C,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACrC,KAAK,EAAE,cAAc,CAAC;CACzB;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,gEAsB0B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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 { Tooltip } from "@elaraai/east-ui";
|
|
7
|
-
/** East Tooltip value type */
|
|
8
|
-
export type TooltipValue = ValueTypeOf<typeof Tooltip.Types.Tooltip>;
|
|
9
|
-
export interface EastChakraTooltipProps {
|
|
10
|
-
value: TooltipValue;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Renders an East UI Tooltip value using Chakra UI Tooltip component.
|
|
14
|
-
*/
|
|
15
|
-
export declare const EastChakraTooltip: import("react").NamedExoticComponent<EastChakraTooltipProps>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/tooltip/index.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAO3C,8BAA8B;AAC9B,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AAErE,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,YAAY,CAAC;CACvB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8DAmB0B,CAAC"}
|
package/dist/platform/hooks.d.ts
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
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 ReactNode } from "react";
|
|
6
|
-
import { type EastIR } from "@elaraai/east";
|
|
7
|
-
import { EastStore } from "./store.js";
|
|
8
|
-
/**
|
|
9
|
-
* Props for the EastStoreProvider component.
|
|
10
|
-
*/
|
|
11
|
-
export interface EastStoreProviderProps {
|
|
12
|
-
/** The EastStore instance to provide */
|
|
13
|
-
store: EastStore;
|
|
14
|
-
/** Child components */
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Provides an EastStore to the component tree.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```tsx
|
|
22
|
-
* const store = createEastStore();
|
|
23
|
-
* store.register("dashboard", dashboardFn.toIR());
|
|
24
|
-
*
|
|
25
|
-
* function App() {
|
|
26
|
-
* return (
|
|
27
|
-
* <EastStoreProvider store={store}>
|
|
28
|
-
* <EastFunction id="dashboard" />
|
|
29
|
-
* </EastStoreProvider>
|
|
30
|
-
* );
|
|
31
|
-
* }
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
export declare function EastStoreProvider({ store, children }: EastStoreProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
-
/**
|
|
36
|
-
* Hook to access the EastStore from context.
|
|
37
|
-
*
|
|
38
|
-
* @returns The EastStore instance
|
|
39
|
-
* @throws Error if used outside of an EastStoreProvider
|
|
40
|
-
*/
|
|
41
|
-
export declare function useEastStore(): EastStore;
|
|
42
|
-
/**
|
|
43
|
-
* Props for the EastFunction component.
|
|
44
|
-
*/
|
|
45
|
-
export interface EastFunctionProps {
|
|
46
|
-
/** The East IR to compile and render */
|
|
47
|
-
ir: EastIR<[Map<string, Uint8Array>], any>;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Renders an East function that takes state and returns a UI component.
|
|
51
|
-
* Automatically registers the function and re-renders when state changes.
|
|
52
|
-
*
|
|
53
|
-
* The function is identified by a content-based hash of its IR,
|
|
54
|
-
* so the same function can be used in multiple places without
|
|
55
|
-
* manual ID management.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```tsx
|
|
59
|
-
* const counter = East.function(
|
|
60
|
-
* [DictType(StringType, BlobType)],
|
|
61
|
-
* UIComponentType,
|
|
62
|
-
* ($, state) => {
|
|
63
|
-
* const count = state.get("count").decodeBeast(IntegerType, "v2");
|
|
64
|
-
* return Text.Root(East.str`Count: ${count}`);
|
|
65
|
-
* }
|
|
66
|
-
* );
|
|
67
|
-
*
|
|
68
|
-
* // Use directly - no manual registration needed
|
|
69
|
-
* <EastFunction ir={counter.toIR()} />
|
|
70
|
-
* ```
|
|
71
|
-
*/
|
|
72
|
-
export declare function EastFunction({ ir }: EastFunctionProps): import("react/jsx-runtime").JSX.Element | null;
|
|
73
|
-
/**
|
|
74
|
-
* Hook to subscribe to all state changes and get the current state.
|
|
75
|
-
*
|
|
76
|
-
* @returns The current state as a Map
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```tsx
|
|
80
|
-
* function StateDebugger() {
|
|
81
|
-
* const state = useEastState();
|
|
82
|
-
* return <pre>{JSON.stringify([...state.entries()], null, 2)}</pre>;
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
export declare function useEastState(): Map<string, Uint8Array>;
|
|
87
|
-
/**
|
|
88
|
-
* Hook to subscribe to a specific key and get its value.
|
|
89
|
-
*
|
|
90
|
-
* @param key - The key to subscribe to
|
|
91
|
-
* @returns The Beast2-encoded blob value, or undefined if not set
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* ```tsx
|
|
95
|
-
* function CountDisplay() {
|
|
96
|
-
* const countBlob = useEastKey("count");
|
|
97
|
-
* // Decode the blob in your component or pass to East code
|
|
98
|
-
* return <div>Count blob: {countBlob?.length ?? 0} bytes</div>;
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
export declare function useEastKey(key: string): Uint8Array | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* Hook to get a function to write to the store from React code.
|
|
105
|
-
*
|
|
106
|
-
* @returns A write function
|
|
107
|
-
*
|
|
108
|
-
* @example
|
|
109
|
-
* ```tsx
|
|
110
|
-
* function ResetButton() {
|
|
111
|
-
* const write = useEastWrite();
|
|
112
|
-
* const handleReset = () => {
|
|
113
|
-
* write("count", encodeBeast2(0n));
|
|
114
|
-
* };
|
|
115
|
-
* return <button onClick={handleReset}>Reset</button>;
|
|
116
|
-
* }
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
export declare function useEastWrite(): (key: string, value: Uint8Array) => void;
|
|
120
|
-
/**
|
|
121
|
-
* Hook to get a batch function for grouping multiple writes.
|
|
122
|
-
*
|
|
123
|
-
* @returns A batch function
|
|
124
|
-
*
|
|
125
|
-
* @example
|
|
126
|
-
* ```tsx
|
|
127
|
-
* function MultiUpdate() {
|
|
128
|
-
* const batch = useEastBatch();
|
|
129
|
-
* const write = useEastWrite();
|
|
130
|
-
*
|
|
131
|
-
* const handleUpdate = () => {
|
|
132
|
-
* batch(() => {
|
|
133
|
-
* write("a", encodeBeast2(1n));
|
|
134
|
-
* write("b", encodeBeast2(2n));
|
|
135
|
-
* write("c", encodeBeast2(3n));
|
|
136
|
-
* });
|
|
137
|
-
* // All writes processed, single re-render
|
|
138
|
-
* };
|
|
139
|
-
*
|
|
140
|
-
* return <button onClick={handleUpdate}>Update All</button>;
|
|
141
|
-
* }
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
export declare function useEastBatch(): <T>(fn: () => T) => T;
|
|
145
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/platform/hooks.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAMH,KAAK,SAAS,EACjB,MAAM,OAAO,CAAC;AACf,OAAO,EAA+C,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAavC;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,wCAAwC;IACxC,KAAK,EAAE,SAAS,CAAC;IACjB,uBAAuB;IACvB,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAM5E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,IAAI,SAAS,CAMxC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAC9B,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,iBAAiB,kDA6BrD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAStD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAU9D;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,CAGvE;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,YAAY,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAGpD"}
|
package/dist/platform/index.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
/**
|
|
6
|
-
* East UI State Management Platform
|
|
7
|
-
*
|
|
8
|
-
* Provides reactive state management for East UI applications.
|
|
9
|
-
* State is stored as Beast2-encoded blobs, allowing any East type to be stored.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
export { State, state_write, state_read } from "@elaraai/east-ui";
|
|
14
|
-
export { EastStore, createEastStore, type EastStoreOptions } from "./store.js";
|
|
15
|
-
export { EastStoreProvider, EastFunction, useEastStore, useEastState, useEastKey, useEastWrite, useEastBatch, type EastStoreProviderProps, type EastFunctionProps, } from "./hooks.js";
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/platform/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAGH,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAG/E,OAAO,EACH,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACzB,MAAM,YAAY,CAAC"}
|
package/dist/platform/store.d.ts
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
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 { PlatformFunction, EastIR } from "@elaraai/east/internal";
|
|
6
|
-
/**
|
|
7
|
-
* Options for creating an EastStore.
|
|
8
|
-
*/
|
|
9
|
-
export interface EastStoreOptions {
|
|
10
|
-
/** Initial state as a Map of string keys to Beast2-encoded blobs */
|
|
11
|
-
initialState?: Map<string, Uint8Array> | undefined;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* A reactive state store for East UI applications.
|
|
15
|
-
*
|
|
16
|
-
* State is stored as Beast2-encoded blobs, allowing any East type to be stored.
|
|
17
|
-
* When state changes, registered functions are re-executed and subscribers notified.
|
|
18
|
-
*/
|
|
19
|
-
export declare class EastStore {
|
|
20
|
-
private state;
|
|
21
|
-
private registrations;
|
|
22
|
-
private keySubscribers;
|
|
23
|
-
private globalSubscribers;
|
|
24
|
-
private batchDepth;
|
|
25
|
-
private changedKeys;
|
|
26
|
-
constructor(options?: EastStoreOptions);
|
|
27
|
-
/**
|
|
28
|
-
* Register an East function for reactive execution.
|
|
29
|
-
* The function will be compiled and executed immediately with current state.
|
|
30
|
-
* When state changes, it will be re-executed automatically.
|
|
31
|
-
*
|
|
32
|
-
* @param id - Unique identifier for this registration
|
|
33
|
-
* @param ir - The East IR to compile and register
|
|
34
|
-
*/
|
|
35
|
-
register(id: string, ir: EastIR<[Map<string, Uint8Array>], any>): void;
|
|
36
|
-
/**
|
|
37
|
-
* Get the last result of a registered function.
|
|
38
|
-
*
|
|
39
|
-
* @param id - The registration identifier
|
|
40
|
-
* @returns The last computed result, or undefined if not registered
|
|
41
|
-
*/
|
|
42
|
-
getResult(id: string): any;
|
|
43
|
-
/**
|
|
44
|
-
* Write a Beast2-encoded value to state.
|
|
45
|
-
* Triggers re-execution of registered functions and notifies subscribers.
|
|
46
|
-
*
|
|
47
|
-
* @param key - The string key to write to
|
|
48
|
-
* @param value - The Beast2-encoded blob value
|
|
49
|
-
*/
|
|
50
|
-
write(key: string, value: Uint8Array): void;
|
|
51
|
-
/**
|
|
52
|
-
* Read a Beast2-encoded value from state.
|
|
53
|
-
* Returns an empty Uint8Array if the key doesn't exist.
|
|
54
|
-
*
|
|
55
|
-
* @param key - The string key to read from
|
|
56
|
-
* @returns The Beast2-encoded blob value
|
|
57
|
-
*/
|
|
58
|
-
read(key: string): Uint8Array;
|
|
59
|
-
/**
|
|
60
|
-
* Get the current state as a Map.
|
|
61
|
-
*
|
|
62
|
-
* @returns The current state
|
|
63
|
-
*/
|
|
64
|
-
getState(): Map<string, Uint8Array>;
|
|
65
|
-
/**
|
|
66
|
-
* Batch multiple writes together.
|
|
67
|
-
* Re-execution and notifications happen only once at the end.
|
|
68
|
-
*
|
|
69
|
-
* @param fn - Function containing multiple write operations
|
|
70
|
-
* @returns The return value of the function
|
|
71
|
-
*/
|
|
72
|
-
batch<T>(fn: () => T): T;
|
|
73
|
-
/**
|
|
74
|
-
* Subscribe to all state changes.
|
|
75
|
-
*
|
|
76
|
-
* @param callback - Function to call when state changes
|
|
77
|
-
* @returns Unsubscribe function
|
|
78
|
-
*/
|
|
79
|
-
subscribe(callback: () => void): () => void;
|
|
80
|
-
/**
|
|
81
|
-
* Subscribe to changes for a specific key.
|
|
82
|
-
*
|
|
83
|
-
* @param key - The key to subscribe to
|
|
84
|
-
* @param callback - Function to call when the key changes
|
|
85
|
-
* @returns Unsubscribe function
|
|
86
|
-
*/
|
|
87
|
-
subscribe(key: string, callback: () => void): () => void;
|
|
88
|
-
/**
|
|
89
|
-
* Create platform function implementations bound to this store.
|
|
90
|
-
*
|
|
91
|
-
* @returns Array of platform functions for use with ir.compile()
|
|
92
|
-
*/
|
|
93
|
-
createPlatform(): PlatformFunction[];
|
|
94
|
-
/**
|
|
95
|
-
* Flush pending changes: re-execute registered functions and notify subscribers.
|
|
96
|
-
*/
|
|
97
|
-
private flush;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Create a new EastStore with optional initial state.
|
|
101
|
-
*
|
|
102
|
-
* @param initialState - Optional initial state as a plain object
|
|
103
|
-
* @returns A new EastStore instance
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```ts
|
|
107
|
-
* const store = createEastStore({
|
|
108
|
-
* count: encodeBeast2(0n),
|
|
109
|
-
* name: encodeBeast2("Alice"),
|
|
110
|
-
* });
|
|
111
|
-
* ```
|
|
112
|
-
*/
|
|
113
|
-
export declare function createEastStore(initialState?: Record<string, Uint8Array>): EastStore;
|
|
114
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../src/platform/store.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAGvE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,oEAAoE;IACpE,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,SAAS,CAAC;CACtD;AAUD;;;;;GAKG;AACH,qBAAa,SAAS;IAClB,OAAO,CAAC,KAAK,CAA0B;IACvC,OAAO,CAAC,aAAa,CAAwC;IAC7D,OAAO,CAAC,cAAc,CAA2C;IACjE,OAAO,CAAC,iBAAiB,CAA8B;IACvD,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,WAAW,CAA0B;gBAEjC,OAAO,CAAC,EAAE,gBAAgB;IAItC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,IAAI;IActE;;;;;OAKG;IACH,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG;IAI1B;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAS3C;;;;;;OAMG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU;IAI7B;;;;OAIG;IACH,QAAQ,IAAI,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC;IAInC;;;;;;OAMG;IACH,KAAK,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAYxB;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAC3C;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI;IAyBxD;;;;OAIG;IACH,cAAc,IAAI,gBAAgB,EAAE;IAWpC;;OAEG;IACH,OAAO,CAAC,KAAK;CAqBhB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,SAAS,CAIpF"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
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";
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|