@pimolu/react 0.1.0-beta.7 → 0.1.0-beta.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/README.fr.md +4 -4
- package/README.md +4 -4
- package/dist/arc-carousel/arc-carousel.d.ts +7 -0
- package/dist/arc-carousel/arc-carousel.d.ts.map +1 -0
- package/dist/arc-carousel/arc-carousel.types.d.ts +21 -0
- package/dist/arc-carousel/arc-carousel.types.d.ts.map +1 -0
- package/dist/code-block/code-block.d.ts.map +1 -1
- package/dist/context-menu/context-menu.d.ts.map +1 -1
- package/dist/coverflow-carousel/coverflow-carousel.d.ts +7 -0
- package/dist/coverflow-carousel/coverflow-carousel.d.ts.map +1 -0
- package/dist/coverflow-carousel/coverflow-carousel.types.d.ts +21 -0
- package/dist/coverflow-carousel/coverflow-carousel.types.d.ts.map +1 -0
- package/dist/customization/customization.types.d.ts +1 -0
- package/dist/customization/customization.types.d.ts.map +1 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/dialog/dialog.types.d.ts +6 -0
- package/dist/dialog/dialog.types.d.ts.map +1 -1
- package/dist/docs-layout/docs-layout.d.ts.map +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer.d.ts.map +1 -1
- package/dist/drawer/drawer.types.d.ts +6 -0
- package/dist/drawer/drawer.types.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.types.d.ts +6 -0
- package/dist/dropdown-menu/dropdown-menu.types.d.ts.map +1 -1
- package/dist/hover-card/hover-card.d.ts.map +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4107 -2818
- package/dist/index.js.map +4 -4
- package/dist/internal/carousel/carousel-engine.d.ts +56 -0
- package/dist/internal/carousel/carousel-engine.d.ts.map +1 -0
- package/dist/internal/carousel/carousel-parts.d.ts +43 -0
- package/dist/internal/carousel/carousel-parts.d.ts.map +1 -0
- package/dist/internal/focusable.d.ts +5 -4
- package/dist/internal/focusable.d.ts.map +1 -1
- package/dist/internal/portal.d.ts +3 -1
- package/dist/internal/portal.d.ts.map +1 -1
- package/dist/internal/trigger-focus.d.ts +8 -0
- package/dist/internal/trigger-focus.d.ts.map +1 -0
- package/dist/internal/use-anchored-position.d.ts +5 -5
- package/dist/internal/use-anchored-position.d.ts.map +1 -1
- package/dist/modal/modal.d.ts +11 -0
- package/dist/modal/modal.d.ts.map +1 -0
- package/dist/modal/modal.types.d.ts +93 -0
- package/dist/modal/modal.types.d.ts.map +1 -0
- package/dist/modal/modal.variants.d.ts +21 -0
- package/dist/modal/modal.variants.d.ts.map +1 -0
- package/dist/multi-carousel/multi-carousel.d.ts +7 -0
- package/dist/multi-carousel/multi-carousel.d.ts.map +1 -0
- package/dist/multi-carousel/multi-carousel.types.d.ts +26 -0
- package/dist/multi-carousel/multi-carousel.types.d.ts.map +1 -0
- package/dist/navigation-menu/navigation-menu.d.ts +2 -2
- package/dist/navigation-menu/navigation-menu.d.ts.map +1 -1
- package/dist/navigation-menu/navigation-menu.types.d.ts +2 -0
- package/dist/navigation-menu/navigation-menu.types.d.ts.map +1 -1
- package/dist/peek-carousel/peek-carousel.d.ts +7 -0
- package/dist/peek-carousel/peek-carousel.d.ts.map +1 -0
- package/dist/peek-carousel/peek-carousel.types.d.ts +21 -0
- package/dist/peek-carousel/peek-carousel.types.d.ts.map +1 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/stack-carousel/stack-carousel.d.ts +7 -0
- package/dist/stack-carousel/stack-carousel.d.ts.map +1 -0
- package/dist/stack-carousel/stack-carousel.types.d.ts +21 -0
- package/dist/stack-carousel/stack-carousel.types.d.ts.map +1 -0
- package/dist/thumbnail-carousel/thumbnail-carousel.d.ts +7 -0
- package/dist/thumbnail-carousel/thumbnail-carousel.d.ts.map +1 -0
- package/dist/thumbnail-carousel/thumbnail-carousel.types.d.ts +21 -0
- package/dist/thumbnail-carousel/thumbnail-carousel.types.d.ts.map +1 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tree-select/tree-select.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type KeyboardEvent, type ReactNode, type RefObject } from "react";
|
|
2
|
+
export type CarouselEffect = "slide" | "thumbnails" | "coverflow" | "peek" | "stack" | "arc" | "multi";
|
|
3
|
+
export type CarouselPartNames = "root" | "viewport" | "slide" | "previous" | "next" | "dots" | "thumbnails" | "thumbnail" | "live";
|
|
4
|
+
/** Additive classes for the stable named parts shared by every carousel family. */
|
|
5
|
+
export type CarouselClassNames = Partial<Record<CarouselPartNames, string>>;
|
|
6
|
+
/** The same map without the thumbnail rail, for the five stage-only families. */
|
|
7
|
+
export type CarouselStageClassNames = Omit<CarouselClassNames, "thumbnail" | "thumbnails">;
|
|
8
|
+
export interface CarouselLabels {
|
|
9
|
+
previous: string;
|
|
10
|
+
next: string;
|
|
11
|
+
pagination: string;
|
|
12
|
+
slide: (index: number, total: number) => string;
|
|
13
|
+
goToSlide: (index: number, total: number) => string;
|
|
14
|
+
}
|
|
15
|
+
export declare const defaultCarouselLabels: CarouselLabels;
|
|
16
|
+
interface CarouselContextValue {
|
|
17
|
+
index: number;
|
|
18
|
+
count: number;
|
|
19
|
+
pageCount: number;
|
|
20
|
+
loop: boolean;
|
|
21
|
+
effect: CarouselEffect;
|
|
22
|
+
align: "start" | "center";
|
|
23
|
+
slidesPerView: number;
|
|
24
|
+
gap: number;
|
|
25
|
+
labels: CarouselLabels;
|
|
26
|
+
label?: string;
|
|
27
|
+
parts: Partial<Record<CarouselPartNames, string>>;
|
|
28
|
+
trackRef: RefObject<HTMLDivElement | null>;
|
|
29
|
+
goTo: (index: number) => void;
|
|
30
|
+
next: () => void;
|
|
31
|
+
previous: () => void;
|
|
32
|
+
registerSlide: (node: HTMLElement | null) => {
|
|
33
|
+
index: number;
|
|
34
|
+
unregister: () => void;
|
|
35
|
+
};
|
|
36
|
+
onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
|
|
37
|
+
onScroll: () => void;
|
|
38
|
+
}
|
|
39
|
+
export declare function useCarousel(component: string): CarouselContextValue;
|
|
40
|
+
export interface CarouselProviderProps {
|
|
41
|
+
effect: CarouselEffect;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
loop?: boolean;
|
|
44
|
+
index?: number;
|
|
45
|
+
defaultIndex?: number;
|
|
46
|
+
onIndexChange?: (index: number) => void;
|
|
47
|
+
align?: "start" | "center";
|
|
48
|
+
slidesPerView?: number;
|
|
49
|
+
gap?: number;
|
|
50
|
+
labels?: Partial<CarouselLabels>;
|
|
51
|
+
label?: string;
|
|
52
|
+
parts?: Partial<Record<CarouselPartNames, string>>;
|
|
53
|
+
}
|
|
54
|
+
export declare function CarouselProvider({ effect, children, loop, index: controlledIndex, defaultIndex, onIndexChange, align, slidesPerView, gap, labels, label, parts, }: CarouselProviderProps): import("react").JSX.Element;
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=carousel-engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-engine.d.ts","sourceRoot":"","sources":["../../../internal/carousel/carousel-engine.tsx"],"names":[],"mappings":"AAEA,OAAO,EAQL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,cAAc,GACtB,OAAO,GACP,YAAY,GACZ,WAAW,GACX,MAAM,GACN,OAAO,GACP,KAAK,GACL,OAAO,CAAC;AAEZ,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,UAAU,GACV,OAAO,GACP,UAAU,GACV,MAAM,GACN,MAAM,GACN,YAAY,GACZ,WAAW,GACX,MAAM,CAAC;AAEX,mFAAmF;AACnF,MAAM,MAAM,kB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,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC;IACvF,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACvD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAID,wBAAgB,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,oBAAoB,CAInE;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,cAAc,CAAC;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,CAAC;CACpD;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,QAAQ,EACR,IAAY,EACZ,KAAK,EAAE,eAAe,EACtB,YAAgB,EAChB,aAAa,EACb,KAAkH,EAClH,aAAiB,EACjB,GAAQ,EACR,MAAM,EACN,KAAK,EACL,KAAU,GACX,EAAE,qBAAqB,+BA0JvB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
import { type CarouselClassNames } from "./carousel-engine";
|
|
3
|
+
export declare function CarouselContent({ children, className, classNames, label, }: {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
classNames?: CarouselClassNames;
|
|
7
|
+
label?: string;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
export declare function CarouselSlide({ children, className, classNames, style, }: {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
classNames?: CarouselClassNames;
|
|
13
|
+
style?: CSSProperties;
|
|
14
|
+
}): import("react").JSX.Element;
|
|
15
|
+
export declare function CarouselPrevious({ className, classNames, }: {
|
|
16
|
+
className?: string;
|
|
17
|
+
classNames?: CarouselClassNames;
|
|
18
|
+
}): import("react").JSX.Element;
|
|
19
|
+
export declare function CarouselNext({ className, classNames, }: {
|
|
20
|
+
className?: string;
|
|
21
|
+
classNames?: CarouselClassNames;
|
|
22
|
+
}): import("react").JSX.Element;
|
|
23
|
+
export declare function CarouselDots({ className, classNames, }: {
|
|
24
|
+
className?: string;
|
|
25
|
+
classNames?: CarouselClassNames;
|
|
26
|
+
}): import("react").JSX.Element;
|
|
27
|
+
export declare function CarouselThumbnails({ children, className, classNames, }: {
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
classNames?: CarouselClassNames;
|
|
31
|
+
}): import("react").JSX.Element;
|
|
32
|
+
export declare function CarouselThumbnail({ index, src, alt, className, classNames, }: {
|
|
33
|
+
index: number;
|
|
34
|
+
src: string;
|
|
35
|
+
alt: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
classNames?: CarouselClassNames;
|
|
38
|
+
}): import("react").JSX.Element;
|
|
39
|
+
export declare function CarouselLiveRegion({ className, classNames, }: {
|
|
40
|
+
className?: string;
|
|
41
|
+
classNames?: CarouselClassNames;
|
|
42
|
+
}): import("react").JSX.Element;
|
|
43
|
+
//# sourceMappingURL=carousel-parts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"carousel-parts.d.ts","sourceRoot":"","sources":["../../../internal/carousel/carousel-parts.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OA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ACL,GAAG,EACH,GAAG,EACH,SAAS,EACT,UAAU,GACX,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC,+BAoBA;AAMD,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,UAAU,GACX,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC,+BAeA"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Elements a keyboard can move through, in DOM order.
|
|
3
|
-
*
|
|
4
|
-
* same list.
|
|
2
|
+
* Elements a keyboard can move through, in DOM order. Use semantic and computed
|
|
3
|
+
* visibility rather than layout dimensions, which are also zero in jsdom.
|
|
5
4
|
*/
|
|
6
5
|
export declare const FOCUSABLE_SELECTOR: string;
|
|
7
|
-
export declare function getFocusable(container: HTMLElement
|
|
6
|
+
export declare function getFocusable(container: HTMLElement, { includeNegativeTabIndex }?: {
|
|
7
|
+
includeNegativeTabIndex?: boolean;
|
|
8
|
+
}): HTMLElement[];
|
|
8
9
|
//# sourceMappingURL=focusable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../../internal/focusable.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"focusable.d.ts","sourceRoot":"","sources":["../../internal/focusable.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAapB,CAAC;AAEZ,wBAAgB,YAAY,CAC1B,SAAS,EAAE,WAAW,EACtB,EAAE,uBAA+B,EAAE,GAAE;IAAE,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9E,WAAW,EAAE,CAgCf"}
|
|
@@ -7,9 +7,11 @@ import { type RefObject, type ReactNode } from "react";
|
|
|
7
7
|
* Nothing is rendered on the server or during the first client render: the
|
|
8
8
|
* host is only known once effects have run.
|
|
9
9
|
*/
|
|
10
|
-
export declare function Portal({ children, container, anchorRef, }: {
|
|
10
|
+
export declare function Portal({ children, container, anchorRef, onMount, }: {
|
|
11
11
|
children: ReactNode;
|
|
12
12
|
container?: HTMLElement | null;
|
|
13
13
|
anchorRef?: RefObject<HTMLElement | null>;
|
|
14
|
+
/** Internal placement notification, after portalled child refs are attached. */
|
|
15
|
+
onMount?: () => void;
|
|
14
16
|
}): import("react").ReactPortal | null;
|
|
15
17
|
//# sourceMappingURL=portal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../internal/portal.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../internal/portal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,GACR,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC1C,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,sCAwBA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clone-based triggers clone whatever element the application passes. When that
|
|
3
|
+
* element is not natively focusable, a keyboard user cannot reach the trigger at
|
|
4
|
+
* all. Add the minimum attributes that make it operable, without overriding an
|
|
5
|
+
* explicit choice from the application.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ensureTriggerFocusable(node: HTMLElement | null): void;
|
|
8
|
+
//# sourceMappingURL=trigger-focus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trigger-focus.d.ts","sourceRoot":"","sources":["../../internal/trigger-focus.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,QAS9D"}
|
|
@@ -24,17 +24,17 @@ export interface AnchoredPosition {
|
|
|
24
24
|
style: CSSProperties | undefined;
|
|
25
25
|
/** Side the surface actually sits on, after flipping. */
|
|
26
26
|
side: AnchoredPlacement;
|
|
27
|
+
/** Measure when a delayed portal commits its floating DOM node. */
|
|
28
|
+
onMount: () => void;
|
|
27
29
|
}
|
|
28
30
|
/**
|
|
29
31
|
* Positions a floating surface against its anchor with fixed coordinates, on
|
|
30
32
|
* any of the four sides, and flips it to the opposite side when the preferred
|
|
31
33
|
* one has less room than the other.
|
|
32
34
|
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* surface is assumed to be as large as the cap, which keeps the flip decision
|
|
37
|
-
* honest.
|
|
35
|
+
* Apply sizing while hidden, then reveal only after measuring the mounted
|
|
36
|
+
* surface at that width. Portals may mount after this hook's first layout
|
|
37
|
+
* effect; observe the actual node once it arrives, not an empty initial ref.
|
|
38
38
|
*/
|
|
39
39
|
export declare function useAnchoredPosition(anchorRef: RefObject<HTMLElement | null>, floatingRef: RefObject<HTMLElement | null>, open: boolean, { gap, padding, maxHeight, maxWidth, placement, matchWidth, align, }?: AnchoredPositionOptions): AnchoredPosition;
|
|
40
40
|
//# sourceMappingURL=use-anchored-position.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-anchored-position.d.ts","sourceRoot":"","sources":["../../internal/use-anchored-position.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"use-anchored-position.d.ts","sourceRoot":"","sources":["../../internal/use-anchored-position.ts"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,QAAQ,GACR,MAAM,GACN,OAAO,CAAC;AAEZ,MAAM,WAAW,uBAAuB;IACtC,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAE9B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CACpC;AAED,MAAM,WAAW,gBAAgB;IAC/B,kEAAkE;IAClE,KAAK,EAAE,aAAa,GAAG,SAAS,CAAC;IAEjC,yDAAyD;IACzD,IAAI,EAAE,iBAAiB,CAAC;IAExB,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAgBD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EACxC,WAAW,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAC1C,IAAI,EAAE,OAAO,EACb,EACE,GAAO,EACP,OAAW,EACX,SAAe,EACf,QAAc,EACd,SAAoB,EACpB,UAAiB,EACjB,KAAgB,GACjB,GAAE,uBAA4B,GAC9B,gBAAgB,CAiRlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
import type { PimoluModalCloseProps, PimoluModalContentProps, PimoluModalDescriptionProps, PimoluModalFooterProps, PimoluModalHeaderProps, PimoluModalProps, PimoluModalTitleProps, PimoluModalTriggerProps } from "./modal.types";
|
|
3
|
+
export declare function Modal({ children, open: controlledOpen, defaultOpen, onOpenChange, }: PimoluModalProps): import("react").JSX.Element;
|
|
4
|
+
export declare function ModalTrigger({ children, tabIndex, }: PimoluModalTriggerProps): ReactElement<Record<string, unknown>, string | import("react").JSXElementConstructor<any>>;
|
|
5
|
+
export declare function ModalContent({ children, size, closeOnOverlayClick, closeOnEscape, showCloseButton, closeLabel, className, classNames, style, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: PimoluModalContentProps): ReactNode;
|
|
6
|
+
export declare function ModalHeader({ classNames, children, className, }: PimoluModalHeaderProps): ReactNode;
|
|
7
|
+
export declare function ModalFooter({ classNames, children, className, }: PimoluModalFooterProps): ReactNode;
|
|
8
|
+
export declare function ModalTitle({ classNames, children, id, className, }: PimoluModalTitleProps): ReactNode;
|
|
9
|
+
export declare function ModalDescription({ classNames, children, id, className, }: PimoluModalDescriptionProps): ReactNode;
|
|
10
|
+
export declare function ModalClose({ children, }: PimoluModalCloseProps): ReactElement<Record<string, unknown>, string | import("react").JSXElementConstructor<any>>;
|
|
11
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../modal/modal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAaL,KAAK,YAAY,EACjB,KAAK,SAAS,EAGf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,sBAAsB,EACtB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,eAAe,CAAC;AAkFvB,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,GACb,EAAE,gBAAgB,+BAoElB;AAWD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,QAAQ,GACT,EAAE,uBAAuB,8FAoDzB;AAyHD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EAER,IAAW,EAEX,mBAA0B,EAC1B,aAAoB,EACpB,eAAsB,EACtB,UAAoB,EAEpB,SAAS,EACT,UAAU,EACV,KAAK,EAEL,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,GACpC,EAAE,uBAAuB,aA8EzB;AAMD,wBAAgB,WAAW,CAAC,EAAE,UAAU,EACtC,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,aAexB;AAED,wBAAgB,WAAW,CAAC,EAAE,UAAU,EACtC,QAAQ,EACR,SAAS,GACV,EAAE,sBAAsB,aAexB;AAMD,wBAAgB,UAAU,CAAC,EAAE,UAAU,EACrC,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,qBAAqB,aAgCvB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,UAAU,EAC3C,QAAQ,EACR,EAAE,EACF,SAAS,GACV,EAAE,2BAA2B,aAiC7B;AAUD,wBAAgB,UAAU,CAAC,EACzB,QAAQ,GACT,EAAE,qBAAqB,8FAoBvB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import type { PimoluClassNames } from "../customization/customization.types";
|
|
2
|
+
import type { CSSProperties, ReactElement, ReactNode } from "react";
|
|
3
|
+
import type { PimoluModalSize } from "./modal.variants";
|
|
4
|
+
export type { PimoluModalSize };
|
|
5
|
+
export interface PimoluModalProps {
|
|
6
|
+
/** Trigger, content, header, footer and close controls. */
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** Controlled open state. Omit to let the component own it. */
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/** Initial open state when uncontrolled. Defaults to false. */
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
/** Called whenever the component asks to open or close. */
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface PimoluModalTriggerProps {
|
|
16
|
+
/**
|
|
17
|
+
* The element that opens the modal: any element, or a component that
|
|
18
|
+
* passes down the props it receives. It gets the ARIA state, the click
|
|
19
|
+
* handler and the ref, and the handlers it already had keep working.
|
|
20
|
+
*/
|
|
21
|
+
children: ReactElement;
|
|
22
|
+
/**
|
|
23
|
+
* Tab index forwarded to the cloned trigger. When the element is not
|
|
24
|
+
* natively focusable and no value is given, Pimolu adds `tabIndex={0}` and
|
|
25
|
+
* `role="button"` so keyboard users can reach it.
|
|
26
|
+
*/
|
|
27
|
+
tabIndex?: number;
|
|
28
|
+
}
|
|
29
|
+
export interface PimoluModalContentProps {
|
|
30
|
+
/** Header, body and footer of the modal. */
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
/** Maximum width of the panel. Defaults to "md". */
|
|
33
|
+
size?: PimoluModalSize;
|
|
34
|
+
/** Close when the overlay is pressed. Defaults to true. */
|
|
35
|
+
closeOnOverlayClick?: boolean;
|
|
36
|
+
/** Close on Escape. Defaults to true. */
|
|
37
|
+
closeOnEscape?: boolean;
|
|
38
|
+
/** Render the close button in the top corner. Defaults to true. */
|
|
39
|
+
showCloseButton?: boolean;
|
|
40
|
+
/** Accessible name of the corner close button. Defaults to "Close". */
|
|
41
|
+
closeLabel?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Accessible name of the modal. Use it only when there is no
|
|
44
|
+
* `ModalTitle`; a title automatically names the modal.
|
|
45
|
+
*/
|
|
46
|
+
"aria-label"?: string;
|
|
47
|
+
/** Overrides the id registered by `ModalTitle`. */
|
|
48
|
+
"aria-labelledby"?: string;
|
|
49
|
+
/** Overrides the id registered by `ModalDescription`. */
|
|
50
|
+
"aria-describedby"?: string;
|
|
51
|
+
/** Class applied to the panel. */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** Inline styles on the panel, including local CSS variables. */
|
|
54
|
+
style?: CSSProperties;
|
|
55
|
+
/** Additive classes on portalled parts; className still targets content. */
|
|
56
|
+
classNames?: PimoluClassNames<"modal">;
|
|
57
|
+
}
|
|
58
|
+
export interface PimoluModalHeaderProps {
|
|
59
|
+
/** Additive classes for stable named parts, including composed descendants. */
|
|
60
|
+
classNames?: PimoluClassNames<"modal">;
|
|
61
|
+
children: ReactNode;
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
export interface PimoluModalTitleProps {
|
|
65
|
+
/** Additive classes for stable named parts, including composed descendants. */
|
|
66
|
+
classNames?: PimoluClassNames<"modal">;
|
|
67
|
+
children: ReactNode;
|
|
68
|
+
/** Explicit id, instead of the generated one. */
|
|
69
|
+
id?: string;
|
|
70
|
+
className?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface PimoluModalDescriptionProps {
|
|
73
|
+
/** Additive classes for stable named parts, including composed descendants. */
|
|
74
|
+
classNames?: PimoluClassNames<"modal">;
|
|
75
|
+
children: ReactNode;
|
|
76
|
+
/** Explicit id, instead of the generated one. */
|
|
77
|
+
id?: string;
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
export interface PimoluModalFooterProps {
|
|
81
|
+
/** Additive classes for stable named parts, including composed descendants. */
|
|
82
|
+
classNames?: PimoluClassNames<"modal">;
|
|
83
|
+
children: ReactNode;
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface PimoluModalCloseProps {
|
|
87
|
+
/**
|
|
88
|
+
* The element that closes the modal: any element, or a component that
|
|
89
|
+
* passes down the props it receives. Its own click handler still runs.
|
|
90
|
+
*/
|
|
91
|
+
children: ReactElement;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=modal.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.types.d.ts","sourceRoot":"","sources":["../../modal/modal.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,O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C;CACxC;AAED,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEvC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEvC,QAAQ,EAAE,SAAS,CAAC;IAEpB,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEvC,QAAQ,EAAE,SAAS,CAAC;IAEpB,iDAAiD;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,sBAAsB;IACrC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAEvC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { VariantProps } from "@pimolu/core";
|
|
2
|
+
/**
|
|
3
|
+
* Single source of truth for the Modal axes.
|
|
4
|
+
*
|
|
5
|
+
* Publicly exported (through the package entry) so consumers can enumerate the
|
|
6
|
+
* options instead of duplicating them, like the other components.
|
|
7
|
+
*/
|
|
8
|
+
export declare const modalVariantMap: {
|
|
9
|
+
readonly size: {
|
|
10
|
+
readonly sm: "pimolu-modal__content--sm";
|
|
11
|
+
readonly md: "pimolu-modal__content--md";
|
|
12
|
+
readonly lg: "pimolu-modal__content--lg";
|
|
13
|
+
readonly xl: "pimolu-modal__content--xl";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const modalVariants: (options?: {
|
|
17
|
+
readonly size?: "md" | "sm" | "lg" | "xl" | undefined;
|
|
18
|
+
} | undefined, className?: string) => string;
|
|
19
|
+
export type ModalVariants = VariantProps<typeof modalVariants>;
|
|
20
|
+
export type PimoluModalSize = keyof typeof modalVariantMap.size;
|
|
21
|
+
//# sourceMappingURL=modal.variants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.variants.d.ts","sourceRoot":"","sources":["../../modal/modal.variants.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;CAOlB,CAAC;AAEX,eAAO,MAAM,aAAa;;4CAOxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,YAAY,CACtC,OAAO,aAAa,CACrB,CAAC;AAEF,MAAM,MAAM,eAAe,GACzB,MAAM,OAAO,eAAe,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MultiCarouselProps } from "./multi-carousel.types";
|
|
2
|
+
/**
|
|
3
|
+
* MultiCarousel shares the Carousel engine: state, keyboard support, live
|
|
4
|
+
* announcements and named parts. Only the layout and slide transforms differ.
|
|
5
|
+
*/
|
|
6
|
+
export declare function MultiCarousel({ children, className, classNames, loop, index, defaultIndex, onIndexChange, labels, slidesPerView, gap, "aria-label": ariaLabel, ...rest }: MultiCarouselProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=multi-carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-carousel.d.ts","sourceRoot":"","sources":["../../multi-carousel/multi-carousel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,aAAa,EACb,MAAM,EACN,aAAa,EACb,GAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,IAAI,EACR,EAAE,kBAAkB,+BA2BpB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { CarouselLabels, CarouselStageClassNames } from "../internal/carousel/carousel-engine";
|
|
3
|
+
export interface MultiCarouselProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "children"> {
|
|
4
|
+
/** Slides: wrap each one in CarouselSlide. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Wraps from the last slide to the first one. Defaults to false. */
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
/** Controlled active index (zero-based). */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** Initial index when uncontrolled. Defaults to 0. */
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
/** Called with the new index when navigation changes it. */
|
|
13
|
+
onIndexChange?: (index: number) => void;
|
|
14
|
+
/** Overrides the built-in accessible labels. */
|
|
15
|
+
labels?: Partial<CarouselLabels>;
|
|
16
|
+
/** Space between slides in pixels. */
|
|
17
|
+
gap?: number;
|
|
18
|
+
/** Additive classes for the stable named parts. */
|
|
19
|
+
classNames?: CarouselStageClassNames;
|
|
20
|
+
/**
|
|
21
|
+
* Preferred number of slides visible at once. Narrow layouts keep a readable
|
|
22
|
+
* card width and may show fewer. Defaults to 3.
|
|
23
|
+
*/
|
|
24
|
+
slidesPerView?: number;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=multi-carousel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi-carousel.types.d.ts","sourceRoot":"","sources":["../../multi-carousel/multi-carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACxB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACrE,8CAA8C;IAC9C,QAAQ,EAAE,SAAS,CAAC;IAEpB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAEjC,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,UAAU,CAAC,EAAE,uBAAuB,CAAC;IAErC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PimoluNavigationMenuContentProps, PimoluNavigationMenuItemProps, PimoluNavigationMenuLinkProps, PimoluNavigationMenuListProps, PimoluNavigationMenuProps, PimoluNavigationMenuTriggerProps } from "./navigation-menu.types";
|
|
2
|
-
export declare function NavigationMenu({ classNames, children, label, "aria-label": ariaLabel, className, ...props }: PimoluNavigationMenuProps): import("react").ReactNode;
|
|
2
|
+
export declare function NavigationMenu({ classNames, children, label, openOnHover, onPointerEnter, onPointerLeave, onBlur, "aria-label": ariaLabel, className, ...props }: PimoluNavigationMenuProps): import("react").ReactNode;
|
|
3
3
|
export declare function NavigationMenuList({ classNames, children, className, ...props }: PimoluNavigationMenuListProps): import("react").ReactNode;
|
|
4
|
-
export declare function NavigationMenuItem({ classNames, value, children, className, ...props }: PimoluNavigationMenuItemProps): import("react").ReactNode;
|
|
4
|
+
export declare function NavigationMenuItem({ classNames, value, children, className, onPointerEnter, ...props }: PimoluNavigationMenuItemProps): import("react").ReactNode;
|
|
5
5
|
export declare function NavigationMenuTrigger({ classNames, children, className, }: PimoluNavigationMenuTriggerProps): import("react").ReactNode;
|
|
6
6
|
export declare function NavigationMenuContent({ classNames, children, className, }: PimoluNavigationMenuContentProps): import("react").ReactNode;
|
|
7
7
|
export declare function NavigationMenuLink({ classNames, active, disabled, children, className, onClick, ...props }: PimoluNavigationMenuLinkProps): import("react").ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../navigation-menu/navigation-menu.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EACzB,gCAAgC,EACjC,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"navigation-menu.d.ts","sourceRoot":"","sources":["../../navigation-menu/navigation-menu.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,6BAA6B,EAC7B,yBAAyB,EACzB,gCAAgC,EACjC,MAAM,yBAAyB,CAAC;AA0FjC,wBAAgB,cAAc,CAAC,EAAE,UAAU,EACzC,QAAQ,EACR,KAAK,EACL,WAAmB,EACnB,cAAc,EACd,cAAc,EACd,MAAM,EACN,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,6BAoG3B;AAMD,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAC7C,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,6BAA6B,6BAc/B;AAED,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAC7C,KAAK,EACL,QAAQ,EACR,SAAS,EACT,cAAc,EACd,GAAG,KAAK,EACT,EAAE,6BAA6B,6BA8B/B;AAMD,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAChD,QAAQ,EACR,SAAS,GACV,EAAE,gCAAgC,6BAyDlC;AAMD,wBAAgB,qBAAqB,CAAC,EAAE,UAAU,EAChD,QAAQ,EACR,SAAS,GACV,EAAE,gCAAgC,6BAsBlC;AAMD,wBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAC7C,MAAc,EACd,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,6BAA6B,6BA2B/B"}
|
|
@@ -5,6 +5,8 @@ export interface PimoluNavigationMenuProps extends HTMLAttributes<HTMLElement> {
|
|
|
5
5
|
classNames?: PimoluClassNames<"navigation-menu">;
|
|
6
6
|
/** Accessible name of the navigation landmark; `aria-label` takes precedence. */
|
|
7
7
|
label?: string;
|
|
8
|
+
/** Open disclosure panels on mouse hover without moving focus. Default: false. */
|
|
9
|
+
openOnHover?: boolean;
|
|
8
10
|
children: ReactNode;
|
|
9
11
|
}
|
|
10
12
|
export interface PimoluNavigationMenuListProps extends HTMLAttributes<HTMLUListElement> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-menu.types.d.ts","sourceRoot":"","sources":["../../navigation-menu/navigation-menu.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,EACV,oBAAoB,EACpB,cAAc,EACd,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,yBACf,SAAQ,cAAc,CAAC,WAAW,CAAC;IACnC,+EAA+E;IAC/E,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;IAEjD,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ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QAAQ,EAAE,SAAS,CAAC;CACrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PeekCarouselProps } from "./peek-carousel.types";
|
|
2
|
+
/**
|
|
3
|
+
* PeekCarousel shares the Carousel engine: state, keyboard support, live
|
|
4
|
+
* announcements and named parts. Only the layout and slide transforms differ.
|
|
5
|
+
*/
|
|
6
|
+
export declare function PeekCarousel({ children, className, classNames, loop, index, defaultIndex, onIndexChange, labels, gap, "aria-label": ariaLabel, ...rest }: PeekCarouselProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=peek-carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peek-carousel.d.ts","sourceRoot":"","sources":["../../peek-carousel/peek-carousel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,aAAa,EACb,MAAM,EACN,GAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,IAAI,EACR,EAAE,iBAAiB,+BA0BnB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { CarouselLabels, CarouselStageClassNames } from "../internal/carousel/carousel-engine";
|
|
3
|
+
export interface PeekCarouselProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "children"> {
|
|
4
|
+
/** Slides: wrap each one in CarouselSlide. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Wraps from the last slide to the first one. Defaults to false. */
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
/** Controlled active index (zero-based). */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** Initial index when uncontrolled. Defaults to 0. */
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
/** Called with the new index when navigation changes it. */
|
|
13
|
+
onIndexChange?: (index: number) => void;
|
|
14
|
+
/** Overrides the built-in accessible labels. */
|
|
15
|
+
labels?: Partial<CarouselLabels>;
|
|
16
|
+
/** Space between slides in pixels. */
|
|
17
|
+
gap?: number;
|
|
18
|
+
/** Additive classes for the stable named parts. */
|
|
19
|
+
classNames?: CarouselStageClassNames;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=peek-carousel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peek-carousel.types.d.ts","sourceRoot":"","sources":["../../peek-carousel/peek-carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACxB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACrE,8CAA8C;IAC9C,QAAQ,EAAE,SAAS,CAAC;IAEpB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAEjC,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../popover/popover.tsx"],"names":[],"mappings":"AAMA,OAAO,EAUL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../popover/popover.tsx"],"names":[],"mappings":"AAMA,OAAO,EAUL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAwGzB,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAClC,OAAO,EACP,QAAQ,EAER,SAAoB,EACpB,MAAU,EACV,UAAkB,EAElB,IAAI,EAAE,cAAc,EACpB,WAAmB,EACnB,YAAY,EAEZ,QAAgB,EAChB,aAAqB,EAErB,KAAK,EACL,UAAU,EACV,OAAc,EACd,SAAS,GACV,EAAE,kBAAkB,aAyOpB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StackCarouselProps } from "./stack-carousel.types";
|
|
2
|
+
/**
|
|
3
|
+
* StackCarousel shares the Carousel engine: state, keyboard support, live
|
|
4
|
+
* announcements and named parts. Only the layout and slide transforms differ.
|
|
5
|
+
*/
|
|
6
|
+
export declare function StackCarousel({ children, className, classNames, loop, index, defaultIndex, onIndexChange, labels, gap, "aria-label": ariaLabel, ...rest }: StackCarouselProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=stack-carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-carousel.d.ts","sourceRoot":"","sources":["../../stack-carousel/stack-carousel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,aAAa,EACb,MAAM,EACN,GAAO,EACP,YAAY,EAAE,SAAS,EACvB,GAAG,IAAI,EACR,EAAE,kBAAkB,+BA0BpB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { CarouselLabels, CarouselStageClassNames } from "../internal/carousel/carousel-engine";
|
|
3
|
+
export interface StackCarouselProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "children"> {
|
|
4
|
+
/** Slides: wrap each one in CarouselSlide. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Wraps from the last slide to the first one. Defaults to false. */
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
/** Controlled active index (zero-based). */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** Initial index when uncontrolled. Defaults to 0. */
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
/** Called with the new index when navigation changes it. */
|
|
13
|
+
onIndexChange?: (index: number) => void;
|
|
14
|
+
/** Overrides the built-in accessible labels. */
|
|
15
|
+
labels?: Partial<CarouselLabels>;
|
|
16
|
+
/** Space between slides in pixels. */
|
|
17
|
+
gap?: number;
|
|
18
|
+
/** Additive classes for the stable named parts. */
|
|
19
|
+
classNames?: CarouselStageClassNames;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=stack-carousel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack-carousel.types.d.ts","sourceRoot":"","sources":["../../stack-carousel/stack-carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,cAAc,EACd,uBAAuB,EACxB,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACrE,8CAA8C;IAC9C,QAAQ,EAAE,SAAS,CAAC;IAEpB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAEjC,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,UAAU,CAAC,EAAE,uBAAuB,CAAC;CACtC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ThumbnailCarouselProps } from "./thumbnail-carousel.types";
|
|
2
|
+
/**
|
|
3
|
+
* ThumbnailCarousel shares the Carousel engine: state, keyboard support, live
|
|
4
|
+
* announcements and named parts. Only the layout and slide transforms differ.
|
|
5
|
+
*/
|
|
6
|
+
export declare function ThumbnailCarousel({ children, className, classNames, loop, index, defaultIndex, onIndexChange, labels, gap, "aria-label": ariaLabel, ...rest }: ThumbnailCarouselProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=thumbnail-carousel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumbnail-carousel.d.ts","sourceRoot":"","sources":["../../thumbnail-carousel/thumbnail-carousel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEzE;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,SAAS,EACT,UAAU,EACV,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,aAAa,EACb,MAAM,EACN,GAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,IAAI,EACR,EAAE,sBAAsB,+BA0BxB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import type { CarouselClassNames, CarouselLabels } from "../internal/carousel/carousel-engine";
|
|
3
|
+
export interface ThumbnailCarouselProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "children"> {
|
|
4
|
+
/** Slides: wrap each one in CarouselSlide. */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Wraps from the last slide to the first one. Defaults to false. */
|
|
7
|
+
loop?: boolean;
|
|
8
|
+
/** Controlled active index (zero-based). */
|
|
9
|
+
index?: number;
|
|
10
|
+
/** Initial index when uncontrolled. Defaults to 0. */
|
|
11
|
+
defaultIndex?: number;
|
|
12
|
+
/** Called with the new index when navigation changes it. */
|
|
13
|
+
onIndexChange?: (index: number) => void;
|
|
14
|
+
/** Overrides the built-in accessible labels. */
|
|
15
|
+
labels?: Partial<CarouselLabels>;
|
|
16
|
+
/** Space between slides in pixels. */
|
|
17
|
+
gap?: number;
|
|
18
|
+
/** Additive classes for the stable named parts. */
|
|
19
|
+
classNames?: CarouselClassNames;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=thumbnail-carousel.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thumbnail-carousel.types.d.ts","sourceRoot":"","sources":["../../thumbnail-carousel/thumbnail-carousel.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EACf,MAAM,sCAAsC,CAAC;AAE9C,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC;IACrE,8CAA8C;IAC9C,QAAQ,EAAE,SAAS,CAAC;IAEpB,qEAAqE;IACrE,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IAEjC,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,mDAAmD;IACnD,UAAU,CAAC,EAAE,kBAAkB,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../tooltip/tooltip.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../tooltip/tooltip.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAqC1D,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAClC,OAAO,EACP,QAAQ,EACR,SAAiB,EACjB,KAAa,EACb,KAAW,EACX,QAAgB,EAChB,SAAS,GACV,EAAE,kBAAkB,6BA4LpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["../../tree-select/tree-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AA0I7B,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"tree-select.d.ts","sourceRoot":"","sources":["../../tree-select/tree-select.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAEV,qBAAqB,EACtB,MAAM,qBAAqB,CAAC;AA0I7B,eAAO,MAAM,UAAU,qHA41BrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pimolu/react",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.9",
|
|
4
4
|
"description": "Pimolu UI React components, hooks and accessible primitives.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"vitest": "^5.0.5"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@pimolu/core": "0.1.0-beta.
|
|
55
|
-
"@pimolu/themes": "0.1.0-beta.
|
|
54
|
+
"@pimolu/core": "0.1.0-beta.9",
|
|
55
|
+
"@pimolu/themes": "0.1.0-beta.9"
|
|
56
56
|
}
|
|
57
57
|
}
|