@exponential_app/eui-solid 0.2.0 → 0.3.0
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/README.md +5 -0
- package/dist/exponential-ui-solid.css +1 -1
- package/dist/index.js +159 -52
- package/dist/index.js.map +1 -1
- package/dist/primitives.js +384 -110
- package/dist/primitives.js.map +1 -1
- package/dist/types/primitives/carousel.d.ts +21 -0
- package/dist/types/primitives/index.d.ts +3 -0
- package/dist/types/primitives/mosaic.d.ts +16 -0
- package/dist/types/primitives/outline.d.ts +14 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
export { CAROUSEL_GEOMETRY, carouselCounterText } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
/** EXP-1495: React's `CarouselCounter` (the `i / n` pill; `page` 0-based). */
|
|
4
|
+
export declare function CarouselCounter(props: Omit<ComponentProps<`span`>, `children`> & {
|
|
5
|
+
page: number;
|
|
6
|
+
total: number;
|
|
7
|
+
}): import("solid-js").JSX.Element;
|
|
8
|
+
export type CarouselThumbnailsProps = Omit<ComponentProps<`div`>, `children` | `onChange`> & {
|
|
9
|
+
/** The page count: one thumbnail per page. */
|
|
10
|
+
count: number;
|
|
11
|
+
/** The pictures by page; past `count` ignored, a missing one = the empty square. */
|
|
12
|
+
urls: readonly (string | null | undefined)[];
|
|
13
|
+
/** The current page (0-based). */
|
|
14
|
+
page: number;
|
|
15
|
+
onPageChange?: (page: number) => void;
|
|
16
|
+
/** Each thumbnail's accessible name (default `Page i of n`). */
|
|
17
|
+
pageLabel?: (page: number, total: number) => string;
|
|
18
|
+
};
|
|
19
|
+
/** EXP-1495: React's `CarouselThumbnails` (one button per page, the current
|
|
20
|
+
* one ringed and scrolled into view inside the strip). */
|
|
21
|
+
export declare function CarouselThumbnails(props: CarouselThumbnailsProps): import("solid-js").JSX.Element;
|
|
@@ -7,6 +7,7 @@ export * from "./breadcrumb.js";
|
|
|
7
7
|
export * from "./button.js";
|
|
8
8
|
export * from "./calendar.js";
|
|
9
9
|
export * from "./card.js";
|
|
10
|
+
export * from "./carousel.js";
|
|
10
11
|
export * from "./checkbox.js";
|
|
11
12
|
export * from "./choice-tiles.js";
|
|
12
13
|
export * from "./cn.js";
|
|
@@ -28,6 +29,8 @@ export * from "./kbd.js";
|
|
|
28
29
|
export * from "./label.js";
|
|
29
30
|
export * from "./menu-surface.js";
|
|
30
31
|
export * from "./meter.js";
|
|
32
|
+
export * from "./mosaic.js";
|
|
33
|
+
export * from "./outline.js";
|
|
31
34
|
export * from "./popover.js";
|
|
32
35
|
export * from "./progress.js";
|
|
33
36
|
export * from "./progress-ring.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
export { MOSAIC_GEOMETRY, mosaicTiles } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
export type { MosaicTile, MosaicTileSize } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
export interface MosaicPicture {
|
|
5
|
+
src: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
}
|
|
8
|
+
export type MosaicProps = Omit<ComponentProps<`div`>, `onSelect` | `children`> & {
|
|
9
|
+
pictures: readonly MosaicPicture[];
|
|
10
|
+
/** The group's accessible name. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** A tile press: its picture index (0, 1 or 2; the host opens its lightbox). */
|
|
13
|
+
onSelect?: (index: number) => void;
|
|
14
|
+
};
|
|
15
|
+
/** EXP-1495: React's `Mosaic` (the WIDE picture group on `mosaicTiles`). */
|
|
16
|
+
export declare function Mosaic(props: MosaicProps): import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ComponentProps } from "solid-js";
|
|
2
|
+
import { type OutlineItem } from "@exponential_app/eui/web/primitives";
|
|
3
|
+
export { OUTLINE_GEOMETRY, outlineCountText } from "@exponential_app/eui/web/primitives";
|
|
4
|
+
export type { OutlineItem } from "@exponential_app/eui/web/primitives";
|
|
5
|
+
export type OutlineProps = Omit<ComponentProps<`nav`>, `onSelect` | `children`> & {
|
|
6
|
+
items: readonly OutlineItem[];
|
|
7
|
+
/** The active row's id (the host's scroll-spy binds it); none = no active row. */
|
|
8
|
+
value?: string | null;
|
|
9
|
+
/** The uppercase caption over the rows (and the nav's name). */
|
|
10
|
+
caption?: string;
|
|
11
|
+
onSelect?: (id: string) => void;
|
|
12
|
+
};
|
|
13
|
+
/** EXP-1495: React's `Outline` (an anchor list, ONE active row, a `· n` count). */
|
|
14
|
+
export declare function Outline(props: OutlineProps): import("solid-js").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exponential_app/eui-solid",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Exponential UI for SolidJS: the core A2UI catalog painted on plain elements (floating-ui, aria-hidden) with the same DOM, the same compiled stylesheet and the same runtime themes as the React renderer, run through the conformance suite and the web-parity check.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://exponential.at/ui/",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"*.css"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@exponential_app/eui": "^0.
|
|
45
|
+
"@exponential_app/eui": "^0.3.0",
|
|
46
46
|
"@floating-ui/dom": "^1.7.0",
|
|
47
47
|
"aria-hidden": "^1.2.6",
|
|
48
48
|
"lucide-solid": "0.544.0"
|