@omerdlw/base-framework 3.4.1 → 4.0.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/dist/ambient/index.js +4 -5
- package/dist/background/index.js +3 -4
- package/dist/{chunk-DC4XZPDK.js → chunk-3FSDBJ7V.js} +4 -4
- package/dist/{chunk-DC4XZPDK.js.map → chunk-3FSDBJ7V.js.map} +1 -1
- package/dist/{chunk-GTJMM32W.js → chunk-5TQSH6KE.js} +6 -7
- package/dist/chunk-5TQSH6KE.js.map +1 -0
- package/dist/{chunk-DGVRHX3C.js → chunk-6P3F4JU3.js} +5 -6
- package/dist/{chunk-DGVRHX3C.js.map → chunk-6P3F4JU3.js.map} +1 -1
- package/dist/{chunk-3JLG24KI.js → chunk-AKPH5CEJ.js} +199 -9
- package/dist/chunk-AKPH5CEJ.js.map +1 -0
- package/dist/{chunk-KRHH3UQ6.js → chunk-AWLK2I56.js} +7 -8
- package/dist/{chunk-KRHH3UQ6.js.map → chunk-AWLK2I56.js.map} +1 -1
- package/dist/{chunk-M36DFIJ6.js → chunk-C527JOJQ.js} +4 -4
- package/dist/{chunk-M36DFIJ6.js.map → chunk-C527JOJQ.js.map} +1 -1
- package/dist/{chunk-E2QQJZYY.js → chunk-EXB7VFD3.js} +4 -4
- package/dist/{chunk-E2QQJZYY.js.map → chunk-EXB7VFD3.js.map} +1 -1
- package/dist/chunk-FG2AKFXP.js +108 -0
- package/dist/chunk-FG2AKFXP.js.map +1 -0
- package/dist/chunk-GA5SZ6E2.js +17 -0
- package/dist/{chunk-2E6OASVV.js.map → chunk-GA5SZ6E2.js.map} +1 -1
- package/dist/chunk-GG2ILNK2.js +44 -0
- package/dist/chunk-GG2ILNK2.js.map +1 -0
- package/dist/{chunk-VMR7ZKIF.js → chunk-JA75E4BG.js} +5 -5
- package/dist/{chunk-VMR7ZKIF.js.map → chunk-JA75E4BG.js.map} +1 -1
- package/dist/{chunk-BLWJZHRL.js → chunk-QZA5AIT6.js} +6 -9
- package/dist/chunk-QZA5AIT6.js.map +1 -0
- package/dist/{chunk-ST7QOM4O.js → chunk-T53WFIZN.js} +3 -3
- package/dist/{chunk-ST7QOM4O.js.map → chunk-T53WFIZN.js.map} +1 -1
- package/dist/{chunk-KN4KOTC7.js → chunk-WVED7PDH.js} +4 -4
- package/dist/{chunk-KN4KOTC7.js.map → chunk-WVED7PDH.js.map} +1 -1
- package/dist/{chunk-HPJWMBUS.js → chunk-XIFQMK2Z.js} +34 -37
- package/dist/chunk-XIFQMK2Z.js.map +1 -0
- package/dist/{chunk-7A47AXKI.js → chunk-YKHAFHB7.js} +4 -5
- package/dist/{chunk-7A47AXKI.js.map → chunk-YKHAFHB7.js.map} +1 -1
- package/dist/context-menu/index.js +7 -10
- package/dist/controls/index.js +3 -3
- package/dist/core/error/boundary.d.ts.map +1 -1
- package/dist/core/provider/index.d.ts +3 -8
- package/dist/core/provider/index.d.ts.map +1 -1
- package/dist/dock/index.js +6 -9
- package/dist/error/index.js +2 -5
- package/dist/foundation/recipes/index.d.ts +0 -7
- package/dist/foundation/recipes/index.d.ts.map +1 -1
- package/dist/index.js +15 -18
- package/dist/loading/index.js +2 -4
- package/dist/modal/index.js +10 -12
- package/dist/modal/index.js.map +1 -1
- package/dist/modules/dock/card/icon.d.ts.map +1 -1
- package/dist/modules/dock/card/use-card.d.ts +38 -38
- package/dist/modules/dock/media/controls.d.ts.map +1 -1
- package/dist/modules/dock/motion.d.ts +24 -24
- package/dist/modules/dock/status/model.d.ts.map +1 -1
- package/dist/modules/dock/surface/controls.d.ts.map +1 -1
- package/dist/modules/dock/surface/header-button.d.ts.map +1 -1
- package/dist/modules/dock/theme.d.ts +14 -14
- package/dist/modules/index.js +13 -16
- package/dist/modules/modal/container.d.ts.map +1 -1
- package/dist/notification/index.js +4 -4
- package/dist/overlay-ZCMQVNYT.js +12 -0
- package/dist/{overlay-YMLS3SAQ.js.map → overlay-ZCMQVNYT.js.map} +1 -1
- package/dist/provider/index.js +3 -8
- package/dist/react/theme/index.d.ts +7 -2
- package/dist/react/theme/index.d.ts.map +1 -1
- package/dist/react/theme/parts.d.ts +89 -0
- package/dist/react/theme/parts.d.ts.map +1 -0
- package/dist/recipes/index.js +1 -115
- package/dist/recipes/index.js.map +1 -1
- package/dist/theme/index.js +1 -1
- package/docs/README.md +11 -12
- package/docs/architecture-and-rules.md +8 -8
- package/docs/core-engine.md +11 -13
- package/docs/custom-modules.md +1 -1
- package/docs/design.md +60 -153
- package/docs/getting-started.md +3 -5
- package/docs/modules/README.md +1 -1
- package/docs/modules/background.md +1 -1
- package/docs/modules/context-menu.md +1 -1
- package/docs/modules/dock.md +23 -23
- package/docs/modules/error-boundary.md +1 -1
- package/docs/modules/loading.md +1 -1
- package/docs/modules/modal.md +1 -1
- package/package.json +1 -7
- package/templates/AGENTS.md +4 -3
- package/MIGRATION.md +0 -99
- package/dist/chunk-2E6OASVV.js +0 -17
- package/dist/chunk-3JLG24KI.js.map +0 -1
- package/dist/chunk-6LWCTP2Y.js +0 -448
- package/dist/chunk-6LWCTP2Y.js.map +0 -1
- package/dist/chunk-BLWJZHRL.js.map +0 -1
- package/dist/chunk-EBNZXYLT.js +0 -704
- package/dist/chunk-EBNZXYLT.js.map +0 -1
- package/dist/chunk-FLYL76ZT.js +0 -139
- package/dist/chunk-FLYL76ZT.js.map +0 -1
- package/dist/chunk-GTJMM32W.js.map +0 -1
- package/dist/chunk-HPJWMBUS.js.map +0 -1
- package/dist/chunk-ICFPSAJZ.js +0 -112
- package/dist/chunk-ICFPSAJZ.js.map +0 -1
- package/dist/chunk-S2ZOLTTS.js +0 -140
- package/dist/chunk-S2ZOLTTS.js.map +0 -1
- package/dist/foundation/recipes/anatomy.d.ts +0 -139
- package/dist/foundation/recipes/anatomy.d.ts.map +0 -1
- package/dist/foundation/recipes/define.d.ts +0 -133
- package/dist/foundation/recipes/define.d.ts.map +0 -1
- package/dist/overlay-YMLS3SAQ.js +0 -14
- package/dist/react/ui/components/avatar.d.ts +0 -10
- package/dist/react/ui/components/avatar.d.ts.map +0 -1
- package/dist/react/ui/components/button.d.ts +0 -6
- package/dist/react/ui/components/button.d.ts.map +0 -1
- package/dist/react/ui/components/carousel.d.ts +0 -27
- package/dist/react/ui/components/carousel.d.ts.map +0 -1
- package/dist/react/ui/components/checkbox.d.ts +0 -10
- package/dist/react/ui/components/checkbox.d.ts.map +0 -1
- package/dist/react/ui/components/icon.d.ts +0 -6
- package/dist/react/ui/components/icon.d.ts.map +0 -1
- package/dist/react/ui/components/image.d.ts +0 -6
- package/dist/react/ui/components/image.d.ts.map +0 -1
- package/dist/react/ui/components/indicator.d.ts +0 -55
- package/dist/react/ui/components/indicator.d.ts.map +0 -1
- package/dist/react/ui/components/input.d.ts +0 -10
- package/dist/react/ui/components/input.d.ts.map +0 -1
- package/dist/react/ui/components/loader.d.ts +0 -10
- package/dist/react/ui/components/loader.d.ts.map +0 -1
- package/dist/react/ui/components/segmented.d.ts +0 -6
- package/dist/react/ui/components/segmented.d.ts.map +0 -1
- package/dist/react/ui/components/select/options.d.ts +0 -22
- package/dist/react/ui/components/select/options.d.ts.map +0 -1
- package/dist/react/ui/components/select/select.d.ts +0 -6
- package/dist/react/ui/components/select/select.d.ts.map +0 -1
- package/dist/react/ui/components/skeleton.d.ts +0 -10
- package/dist/react/ui/components/skeleton.d.ts.map +0 -1
- package/dist/react/ui/components/switch.d.ts +0 -6
- package/dist/react/ui/components/switch.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/group.d.ts +0 -35
- package/dist/react/ui/components/tooltip/group.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/placement.d.ts +0 -42
- package/dist/react/ui/components/tooltip/placement.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/slot.d.ts +0 -23
- package/dist/react/ui/components/tooltip/slot.d.ts.map +0 -1
- package/dist/react/ui/components/tooltip/tooltip.d.ts +0 -13
- package/dist/react/ui/components/tooltip/tooltip.d.ts.map +0 -1
- package/dist/react/ui/index.d.ts +0 -20
- package/dist/react/ui/index.d.ts.map +0 -1
- package/dist/react/ui/provider.d.ts +0 -22
- package/dist/react/ui/provider.d.ts.map +0 -1
- package/dist/react/ui/types.d.ts +0 -341
- package/dist/react/ui/types.d.ts.map +0 -1
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/index.js +0 -2259
- package/dist/ui/index.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { CheckboxIndicatorProps, CheckboxProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* The box and check mark of a checkbox, for use in custom rows.
|
|
4
|
-
*/
|
|
5
|
-
export declare function CheckboxIndicator({ className, icon, pending, ...props }: CheckboxIndicatorProps): import("react").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* A checkbox button that reports changes through `onCheckedChange`.
|
|
8
|
-
*/
|
|
9
|
-
export declare function Checkbox({ checked, children, className, classNames, disabled, icon, onCheckedChange, onClick, pending, ref, type, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/checkbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAM9E;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,SAAS,EACT,IAAI,EACJ,OAAe,EACf,GAAG,KAAK,EACT,EAAE,sBAAsB,+BAkBxB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,QAAQ,EACR,SAAS,EACT,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,eAAe,EACf,OAAO,EACP,OAAO,EACP,GAAG,EACH,IAAe,EACf,GAAG,KAAK,EACT,EAAE,aAAa,+BA8Bf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/icon.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;GAEG;AACH,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,KAAK,EACL,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,GAAG,KAAK,EACT,EAAE,SAAS,+BAgBX"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ImageProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* An image with loading and failure states and an optional fallback node.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Image({ alt, className, crossOrigin, decoding, fallback, fetchPriority, fill, loading, onError, onLoad, priority, src, wrapperClassName, ...rest }: ImageProps): import("react").JSX.Element | null;
|
|
6
|
-
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/image.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAyBnD;;GAEG;AACH,wBAAgB,KAAK,CAAC,EACpB,GAAQ,EACR,SAAS,EACT,WAAW,EACX,QAAkB,EAClB,QAAQ,EACR,aAAa,EACb,IAAI,EACJ,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAgB,EAChB,GAAG,EACH,gBAAgB,EAChB,GAAG,IAAI,EACR,EAAE,UAAU,sCA0FZ"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type FocusEvent, type ReactNode } from "react";
|
|
2
|
-
import type { PillBox } from "../types";
|
|
3
|
-
interface SlidingHighlightProps {
|
|
4
|
-
className?: string;
|
|
5
|
-
layoutId: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* A highlight that slides between items that share its layout id.
|
|
9
|
-
*/
|
|
10
|
-
export declare function SlidingHighlight({ className, layoutId, }: SlidingHighlightProps): import("react").JSX.Element;
|
|
11
|
-
interface HighlightGroupProps {
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Groups items so one hover or focus highlight slides between them.
|
|
17
|
-
*/
|
|
18
|
-
export declare function HighlightGroup({ children, className }: HighlightGroupProps): import("react").JSX.Element;
|
|
19
|
-
/**
|
|
20
|
-
* Returns the highlight node and event props for one item of a `HighlightGroup`.
|
|
21
|
-
*/
|
|
22
|
-
export declare function useHighlight(key: string, className?: string): {
|
|
23
|
-
node: import("react").JSX.Element | null;
|
|
24
|
-
props: {
|
|
25
|
-
onBlur: () => void | undefined;
|
|
26
|
-
onFocus: (event: FocusEvent<HTMLElement>) => void;
|
|
27
|
-
onPointerEnter: () => void | undefined;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Event props that clear the hover highlight when entering a non-item area.
|
|
32
|
-
*/
|
|
33
|
-
export declare function useHighlightReset(): {
|
|
34
|
-
onPointerEnter: () => void | undefined;
|
|
35
|
-
};
|
|
36
|
-
interface SlidingPillProps {
|
|
37
|
-
box: PillBox;
|
|
38
|
-
className: string;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A pill that slides to a measured box.
|
|
42
|
-
*/
|
|
43
|
-
export declare function SlidingPill({ box, className }: SlidingPillProps): import("react").JSX.Element;
|
|
44
|
-
/**
|
|
45
|
-
* Measures the element matching `selector` inside a list so a pill can slide to it.
|
|
46
|
-
* Remeasures when `key` changes.
|
|
47
|
-
*/
|
|
48
|
-
export declare function useSlidingPill<T extends HTMLElement>(selector: string, key: unknown, { wrapping }?: {
|
|
49
|
-
wrapping?: boolean;
|
|
50
|
-
}): {
|
|
51
|
-
box: PillBox | null;
|
|
52
|
-
ref: import("react").RefObject<T | null>;
|
|
53
|
-
};
|
|
54
|
-
export {};
|
|
55
|
-
//# sourceMappingURL=indicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/indicator.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,SAAS,EAMf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,kBAAkB,CAAC;AAsBzD,UAAU,qBAAqB;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,QAAQ,GACT,EAAE,qBAAqB,+BAYvB;AAID,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,+BAoB1E;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;;;;yBAYrC,UAAU,CAAC,WAAW,CAAC;;;EAM7C;AAED;;GAEG;AACH,wBAAgB,iBAAiB;;EAGhC;AAID,UAAU,gBAAgB;IACxB,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,gBAAgB,+BAkB/D;AAmBD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAClD,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,OAAO,EACZ,EAAE,QAAgB,EAAE,GAAE;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO;;;EAuBlD"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { InputProps, TextareaProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* A text input styled by the UI definition.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Input({ className, ref, type, ...props }: InputProps): import("react").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* A textarea styled by the UI definition.
|
|
8
|
-
*/
|
|
9
|
-
export declare function Textarea({ className, maxHeight, minHeight, ref, style, ...props }: TextareaProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/input.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIlE;;GAEG;AACH,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAW5E;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,SAAS,EACT,SAAS,EACT,GAAG,EACH,KAAK,EACL,GAAG,KAAK,EACT,EAAE,aAAa,+BAkBf"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { LoaderProps, SpinnerProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* An animated status indicator; with children it overlays them while loading.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Loader({ children, className, color, size }: LoaderProps): import("react").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* A spinning icon status indicator.
|
|
8
|
-
*/
|
|
9
|
-
export declare function Spinner({ className, icon, size }: SpinnerProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/loader.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AA4BlE;;GAEG;AACH,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,WAAW,+BAqBvE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,YAAY,+BAc9D"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SegmentedControlProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* A tab-like control that picks one of a few items, with a sliding pill.
|
|
4
|
-
*/
|
|
5
|
-
export declare function SegmentedControl<K extends string>({ ariaLabel, className, classNames, iconSize, items, onChange, value, ...props }: SegmentedControlProps<K>): import("react").JSX.Element | null;
|
|
6
|
-
//# sourceMappingURL=segmented.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"segmented.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/segmented.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAiB,MAAM,kBAAkB,CAAC;AAmE7E;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,EACjD,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACT,EAAE,qBAAqB,CAAC,CAAC,CAAC,sCAgD1B"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type Variants } from "motion/react";
|
|
2
|
-
import type { CSSProperties } from "react";
|
|
3
|
-
import type { Anchor, SelectClassNames, SelectOption } from "../../types";
|
|
4
|
-
export type MenuStyle = CSSProperties & Record<string, unknown>;
|
|
5
|
-
/** The index (into `enabled`) the highlight moves to; wraps around both ends. */
|
|
6
|
-
export declare function stepHighlight(enabled: readonly number[], highlighted: number, key: string): number;
|
|
7
|
-
/** Positions the menu with CSS anchor positioning when supported, else from the measured anchor. */
|
|
8
|
-
export declare function menuPlacementStyle(anchor: Anchor, anchored: boolean, anchorName: string, offset: number): MenuStyle;
|
|
9
|
-
interface SelectOptionRowProps<T extends string> {
|
|
10
|
-
classNames: SelectClassNames;
|
|
11
|
-
highlighted: boolean;
|
|
12
|
-
index: number;
|
|
13
|
-
onChoose: (option: SelectOption<T>) => void;
|
|
14
|
-
onHover: (index: number) => void;
|
|
15
|
-
option: SelectOption<T>;
|
|
16
|
-
optionMotion: Variants | undefined;
|
|
17
|
-
selected: boolean;
|
|
18
|
-
variants: Record<string, unknown>;
|
|
19
|
-
}
|
|
20
|
-
export declare function SelectOptionRow<T extends string>({ classNames, highlighted, index, onChoose, onHover, option, optionMotion, selected, variants, }: SelectOptionRowProps<T>): import("react").JSX.Element;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/select/options.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAM/E,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEhE,iFAAiF;AACjF,wBAAgB,aAAa,CAC3B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,WAAW,EAAE,MAAM,EACnB,GAAG,EAAE,MAAM,GACV,MAAM,CAKR;AAED,oGAAoG;AACpG,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,OAAO,EACjB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACb,SAAS,CAuBX;AAED,UAAU,oBAAoB,CAAC,CAAC,SAAS,MAAM;IAC7C,UAAU,EAAE,gBAAgB,CAAC;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACxB,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAED,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,UAAU,EACV,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,YAAY,EACZ,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB,CAAC,CAAC,CAAC,+BA+DzB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SelectProps } from "../../types";
|
|
2
|
-
/**
|
|
3
|
-
* A single-choice dropdown with keyboard support.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Select<T extends string = string>({ ariaLabel, className, classNames, collisionPadding, defaultValue, disabled, empty, floatingProps, name, offset, onChange, options, placeholder, placement, value: valueProp, ...props }: SelectProps<T>): import("react").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/select/select.tsx"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAwB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAqB1E;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,EAChD,SAAS,EACT,SAAS,EACT,UAAe,EACf,gBAAoB,EACpB,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,aAAa,EACb,IAAI,EACJ,MAAU,EACV,QAAQ,EACR,OAAO,EACP,WAAW,EACX,SAAqB,EACrB,KAAK,EAAE,SAAS,EAChB,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,CAAC,CAAC,+BAyPhB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SkeletonBlockProps, SkeletonLinesProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* A placeholder block shown while content loads.
|
|
4
|
-
*/
|
|
5
|
-
export declare function SkeletonBlock({ className, style, ...props }: SkeletonBlockProps): import("react").JSX.Element;
|
|
6
|
-
/**
|
|
7
|
-
* Placeholder text lines of the given widths.
|
|
8
|
-
*/
|
|
9
|
-
export declare function SkeletonLines({ className, height, widths, }: SkeletonLinesProps): import("react").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/skeleton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAI/E;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,kBAAkB,+BASpB;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EACT,MAAM,EACN,MAAM,GACP,EAAE,kBAAkB,+BAcpB"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SwitchProps } from "../types";
|
|
2
|
-
/**
|
|
3
|
-
* A two-state toggle.
|
|
4
|
-
*/
|
|
5
|
-
export declare function Switch({ checked, className, classNames, disabled, onCheckedChange, onClick, ref, type, ...props }: SwitchProps): import("react").JSX.Element;
|
|
6
|
-
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/react/ui/components/switch.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAIpD;;GAEG;AACH,wBAAgB,MAAM,CAAC,EACrB,OAAe,EACf,SAAS,EACT,UAAU,EACV,QAAgB,EAChB,eAAe,EACf,OAAO,EACP,GAAG,EACH,IAAe,EACf,GAAG,KAAK,EACT,EAAE,WAAW,+BAoCb"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { type RefObject } from "react";
|
|
2
|
-
import type { TooltipProviderProps } from "../../types";
|
|
3
|
-
export type OpenKind = "delayed-open" | "instant-open";
|
|
4
|
-
export interface LiveHandlers {
|
|
5
|
-
close: () => void;
|
|
6
|
-
open: (kind: OpenKind) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Shared timing state of the tooltips under one provider. A plain mutable
|
|
10
|
-
* object: opening or closing a tooltip never re-renders the provider's tree.
|
|
11
|
-
*/
|
|
12
|
-
export interface TooltipGroup {
|
|
13
|
-
active: RefObject<LiveHandlers> | null;
|
|
14
|
-
/** True while a tooltip is open or was closed less than the skip delay ago. */
|
|
15
|
-
instant: boolean;
|
|
16
|
-
skipTimer: ReturnType<typeof setTimeout> | null;
|
|
17
|
-
}
|
|
18
|
-
interface TooltipGroupValue {
|
|
19
|
-
delayDuration: number;
|
|
20
|
-
group: TooltipGroup;
|
|
21
|
-
skipDelayDuration: number;
|
|
22
|
-
}
|
|
23
|
-
export declare const TooltipGroupContext: import("react").Context<TooltipGroupValue>;
|
|
24
|
-
/** One open tooltip per group: opening one closes the previous one. */
|
|
25
|
-
export declare function groupOpened(group: TooltipGroup, live: RefObject<LiveHandlers>): void;
|
|
26
|
-
/** Starts the skip window, unless another tooltip already took over. */
|
|
27
|
-
export declare function groupClosed(group: TooltipGroup, live: RefObject<LiveHandlers>, skipDelayMs: number): void;
|
|
28
|
-
/**
|
|
29
|
-
* Provides shared tooltip timing to the tooltips below it: the hover delay,
|
|
30
|
-
* and the window after a tooltip closes during which the next one opens
|
|
31
|
-
* without delay.
|
|
32
|
-
*/
|
|
33
|
-
export declare function TooltipProvider({ children, delayDuration, skipDelayDuration, }: TooltipProviderProps): import("react").JSX.Element;
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"group.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/tooltip/group.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAK7D,MAAM,MAAM,QAAQ,GAAG,cAAc,GAAG,cAAc,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;IACvC,+EAA+E;IAC/E,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,UAAU,CAAC,OAAO,UAAU,CAAC,GAAG,IAAI,CAAC;CACjD;AAED,UAAU,iBAAiB;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAQD,eAAO,MAAM,mBAAmB,4CAO/B,CAAC;AAQF,uEAAuE;AACvE,wBAAgB,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,QAO9B;AAED,wEAAwE;AACxE,wBAAgB,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,EAC7B,WAAW,EAAE,MAAM,QAYpB;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,aAAgC,EAChC,iBAAyC,GAC1C,EAAE,oBAAoB,+BAKtB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tooltip placement: pure geometry, no DOM. Given the trigger's box, the
|
|
3
|
-
* content's size and the viewport, it picks the side (flipping when the
|
|
4
|
-
* preferred one has no room and the opposite has more), aligns the content on
|
|
5
|
-
* the cross axis, shifts it back into the viewport without detaching it from
|
|
6
|
-
* the trigger, and reports the transform origin that points at the trigger.
|
|
7
|
-
*/
|
|
8
|
-
import type { TooltipAlign, TooltipSide } from "../../types";
|
|
9
|
-
export interface PlacementBox {
|
|
10
|
-
height: number;
|
|
11
|
-
left: number;
|
|
12
|
-
top: number;
|
|
13
|
-
width: number;
|
|
14
|
-
}
|
|
15
|
-
export interface PlacementInput {
|
|
16
|
-
align: TooltipAlign;
|
|
17
|
-
collisionPadding: number;
|
|
18
|
-
content: {
|
|
19
|
-
height: number;
|
|
20
|
-
width: number;
|
|
21
|
-
};
|
|
22
|
-
/** Device pixel ratio the coordinates are snapped to (keeps text crisp). */
|
|
23
|
-
pixelRatio?: number;
|
|
24
|
-
side: TooltipSide;
|
|
25
|
-
sideOffset: number;
|
|
26
|
-
trigger: PlacementBox;
|
|
27
|
-
viewport: {
|
|
28
|
-
height: number;
|
|
29
|
-
width: number;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface Placement {
|
|
33
|
-
availableHeight: number;
|
|
34
|
-
availableWidth: number;
|
|
35
|
-
originX: number;
|
|
36
|
-
originY: number;
|
|
37
|
-
side: TooltipSide;
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
}
|
|
41
|
-
export declare function placeTooltip(input: PlacementInput): Placement;
|
|
42
|
-
//# sourceMappingURL=placement.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"placement.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/tooltip/placement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,YAAY,CAAC;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3C,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7C;AAED,MAAM,WAAW,SAAS;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AA8CD,wBAAgB,YAAY,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAkD7D"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type FocusEvent, type MouseEvent, type PointerEvent, type ReactElement, type Ref } from "react";
|
|
2
|
-
export interface TriggerProps {
|
|
3
|
-
"aria-describedby"?: string;
|
|
4
|
-
"data-state"?: string;
|
|
5
|
-
onBlur?: (event: FocusEvent<HTMLElement>) => void;
|
|
6
|
-
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
7
|
-
onFocus?: (event: FocusEvent<HTMLElement>) => void;
|
|
8
|
-
onPointerDown?: (event: PointerEvent<HTMLElement>) => void;
|
|
9
|
-
onPointerLeave?: (event: PointerEvent<HTMLElement>) => void;
|
|
10
|
-
onPointerMove?: (event: PointerEvent<HTMLElement>) => void;
|
|
11
|
-
ref?: Ref<HTMLElement>;
|
|
12
|
-
}
|
|
13
|
-
interface SlotProps extends TriggerProps {
|
|
14
|
-
children: ReactElement<TriggerProps>;
|
|
15
|
-
forwardRef?: Ref<HTMLElement>;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Merges the trigger behaviour into the child element without a wrapper. The
|
|
19
|
-
* child's own handler runs first; ours is skipped if it prevented default.
|
|
20
|
-
*/
|
|
21
|
-
export declare function Slot({ children, forwardRef, ref, ...ours }: SlotProps): ReactElement<TriggerProps, string | import("react").JSXElementConstructor<any>>;
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=slot.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/tooltip/slot.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,YAAY;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAClD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAC3D,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CACxB;AAuBD,UAAU,SAAU,SAAQ,YAAY;IACtC,QAAQ,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,mFAqBrE"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { TooltipProps } from "../../types";
|
|
2
|
-
export { TooltipProvider } from "./group";
|
|
3
|
-
/**
|
|
4
|
-
* Shows a text label next to its trigger on hover or focus. The trigger is
|
|
5
|
-
* the child element itself (no wrapper); the label renders in a portal and is
|
|
6
|
-
* placed against the viewport, flipping and shifting to stay visible.
|
|
7
|
-
*
|
|
8
|
-
* The content carries `data-state` (`delayed-open`, `instant-open`, `closed`)
|
|
9
|
-
* and `data-side`; it stays mounted while a CSS exit animation on
|
|
10
|
-
* `data-state="closed"` runs.
|
|
11
|
-
*/
|
|
12
|
-
export declare function Tooltip({ align, children, className, classNames, collisionPadding, contentProps, defaultOpen, delayMs, onOpenChange, open, position, sideOffset, text, triggerRef, }: TooltipProps): import("react").JSX.Element;
|
|
13
|
-
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../src/react/ui/components/tooltip/tooltip.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAarD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAmC1C;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EACtB,KAAgB,EAChB,QAAQ,EACR,SAAS,EACT,UAAU,EACV,gBAAoB,EACpB,YAAY,EACZ,WAAW,EACX,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,QAAgB,EAChB,UAAc,EACd,IAAI,EACJ,UAAU,GACX,EAAE,YAAY,+BA2Rd"}
|
package/dist/react/ui/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "../../foundation/recipes";
|
|
2
|
-
export type * from "./types";
|
|
3
|
-
export { UiProvider, useUi, useUiMotion } from "./provider";
|
|
4
|
-
export { FRAME_SELECTOR, glideTarget, rackClip, readScroll, useDragScroll, } from "./components/carousel";
|
|
5
|
-
export { useSlidingPill } from "./components/indicator";
|
|
6
|
-
export { Avatar, initialsOf } from "./components/avatar";
|
|
7
|
-
export { Button } from "./components/button";
|
|
8
|
-
export { Carousel } from "./components/carousel";
|
|
9
|
-
export { Checkbox, CheckboxIndicator } from "./components/checkbox";
|
|
10
|
-
export { Icon } from "./components/icon";
|
|
11
|
-
export { Image } from "./components/image";
|
|
12
|
-
export { HighlightGroup, SlidingHighlight, SlidingPill, useHighlight, useHighlightReset, } from "./components/indicator";
|
|
13
|
-
export { Input, Textarea } from "./components/input";
|
|
14
|
-
export { Loader, Spinner } from "./components/loader";
|
|
15
|
-
export { SegmentedControl } from "./components/segmented";
|
|
16
|
-
export { Select } from "./components/select/select";
|
|
17
|
-
export { SkeletonBlock, SkeletonLines } from "./components/skeleton";
|
|
18
|
-
export { Switch } from "./components/switch";
|
|
19
|
-
export { Tooltip, TooltipProvider } from "./components/tooltip/tooltip";
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/ui/index.ts"],"names":[],"mappings":"AAEA,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,SAAS,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EACL,cAAc,EACd,WAAW,EACX,QAAQ,EACR,UAAU,EACV,aAAa,GACd,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from "react";
|
|
2
|
-
import { type RegisteredUi, type Ui, type UiMotion } from "../../foundation/recipes/define";
|
|
3
|
-
interface UiProviderProps {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
ui: RegisteredUi | Ui;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Provides a UI definition (from `defineUi`) to the components below it.
|
|
9
|
-
*/
|
|
10
|
-
export declare function UiProvider({ children, ui }: UiProviderProps): import("react").JSX.Element;
|
|
11
|
-
/**
|
|
12
|
-
* Returns the current UI definition.
|
|
13
|
-
*/
|
|
14
|
-
export declare function useUi(): Ui;
|
|
15
|
-
/**
|
|
16
|
-
* Returns the UI definition's motion retimed to the current tempo, plus whether motion is reduced.
|
|
17
|
-
*/
|
|
18
|
-
export declare function useUiMotion(): UiMotion & {
|
|
19
|
-
readonly reduced: boolean;
|
|
20
|
-
};
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/react/ui/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAO,MAAM,OAAO,CAAC;AAE5C,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,EAAE,EACP,KAAK,QAAQ,EACd,MAAM,6BAA6B,CAAC;AASrC,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,EAAE,EAAE,YAAY,GAAG,EAAE,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,eAAe,+BAI3D;AAED;;GAEG;AACH,wBAAgB,KAAK,IAAI,EAAE,CAE1B;AASD;;GAEG;AACH,wBAAgB,WAAW,IAAI,QAAQ,GAAG;IAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAQtE"}
|