@ox0/ui 0.1.0 → 0.2.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/components/accordion.d.ts +49 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.test.d.ts +2 -0
- package/dist/components/accordion.test.d.ts.map +1 -0
- package/dist/components/badge.d.ts +31 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/banner.d.ts +22 -0
- package/dist/components/banner.d.ts.map +1 -0
- package/dist/components/box.d.ts +12 -0
- package/dist/components/box.d.ts.map +1 -0
- package/dist/components/button-group.d.ts +13 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button.d.ts +58 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/caption.d.ts +14 -0
- package/dist/components/caption.d.ts.map +1 -0
- package/dist/components/card.d.ts +23 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +12 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/code-block.d.ts +8 -0
- package/dist/components/code-block.d.ts.map +1 -0
- package/dist/components/code.d.ts +6 -0
- package/dist/components/code.d.ts.map +1 -0
- package/dist/components/dialog.d.ts +8 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/disclosure-triangle.d.ts +7 -0
- package/dist/components/disclosure-triangle.d.ts.map +1 -0
- package/dist/components/divider.d.ts +9 -0
- package/dist/components/divider.d.ts.map +1 -0
- package/dist/components/heading.d.ts +11 -0
- package/dist/components/heading.d.ts.map +1 -0
- package/dist/components/icon-button.d.ts +19 -0
- package/dist/components/icon-button.d.ts.map +1 -0
- package/dist/components/icon-label.d.ts +23 -0
- package/dist/components/icon-label.d.ts.map +1 -0
- package/dist/components/keyboard.d.ts +6 -0
- package/dist/components/keyboard.d.ts.map +1 -0
- package/dist/components/label.d.ts +16 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/link.d.ts +47 -0
- package/dist/components/link.d.ts.map +1 -0
- package/dist/components/link.test.d.ts +2 -0
- package/dist/components/link.test.d.ts.map +1 -0
- package/dist/components/numeric.d.ts +13 -0
- package/dist/components/numeric.d.ts.map +1 -0
- package/dist/components/popover.d.ts +19 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/select.d.ts +20 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +21 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/surface.d.ts +25 -0
- package/dist/components/surface.d.ts.map +1 -0
- package/dist/components/switch.d.ts +12 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/text-area.d.ts +15 -0
- package/dist/components/text-area.d.ts.map +1 -0
- package/dist/components/text-field.d.ts +11 -0
- package/dist/components/text-field.d.ts.map +1 -0
- package/dist/components/text.d.ts +43 -0
- package/dist/components/text.d.ts.map +1 -0
- package/dist/components/toast.d.ts +28 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/tooltip-manager.d.ts +15 -0
- package/dist/components/tooltip-manager.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2235 -163
- package/dist/layout/grid.d.ts +29 -0
- package/dist/layout/grid.d.ts.map +1 -0
- package/dist/layout/inline.d.ts +19 -0
- package/dist/layout/inline.d.ts.map +1 -0
- package/dist/layout/split.d.ts +12 -0
- package/dist/layout/split.d.ts.map +1 -0
- package/dist/layout/stack.d.ts +15 -0
- package/dist/layout/stack.d.ts.map +1 -0
- package/dist/mixins/aria.d.ts +14 -0
- package/dist/mixins/aria.d.ts.map +1 -0
- package/dist/mixins/borders.d.ts +27 -0
- package/dist/mixins/borders.d.ts.map +1 -0
- package/dist/mixins/flex-item.d.ts +30 -0
- package/dist/mixins/flex-item.d.ts.map +1 -0
- package/dist/mixins/grid-item.d.ts +14 -0
- package/dist/mixins/grid-item.d.ts.map +1 -0
- package/dist/mixins/index.d.ts +9 -0
- package/dist/mixins/index.d.ts.map +1 -0
- package/dist/mixins/placement.d.ts +20 -0
- package/dist/mixins/placement.d.ts.map +1 -0
- package/dist/mixins/sizing.d.ts +30 -0
- package/dist/mixins/sizing.d.ts.map +1 -0
- package/dist/mixins/spacing.d.ts +27 -0
- package/dist/mixins/spacing.d.ts.map +1 -0
- package/dist/mixins/surface.d.ts +16 -0
- package/dist/mixins/surface.d.ts.map +1 -0
- package/dist/providers/ox0-provider.d.ts +47 -0
- package/dist/providers/ox0-provider.d.ts.map +1 -0
- package/dist/providers/router-context.d.ts +6 -0
- package/dist/providers/router-context.d.ts.map +1 -0
- package/package.json +10 -6
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type CSSProperties, type ReactNode } from "react";
|
|
2
|
+
export type AccordionVariant = "bordered" | "plain";
|
|
3
|
+
export interface AccordionProps {
|
|
4
|
+
/** One or more AccordionItem elements. */
|
|
5
|
+
readonly children: ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Visual treatment.
|
|
8
|
+
* `"bordered"` — outer border with radius, dividers between items (standalone use).
|
|
9
|
+
* `"plain"` — dividers only, no outer border (embed in tables or custom containers).
|
|
10
|
+
* @default "bordered"
|
|
11
|
+
*/
|
|
12
|
+
readonly variant?: AccordionVariant;
|
|
13
|
+
/** Allow multiple items open simultaneously. @default false */
|
|
14
|
+
readonly multiple?: boolean;
|
|
15
|
+
/** Uncontrolled initial expanded item values. */
|
|
16
|
+
readonly defaultExpandedKeys?: readonly string[];
|
|
17
|
+
/** Controlled expanded item values. */
|
|
18
|
+
readonly expandedKeys?: readonly string[];
|
|
19
|
+
/** Called when the expanded set changes (controlled mode). */
|
|
20
|
+
readonly onExpandedChange?: (keys: string[]) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function Accordion({ children, variant, multiple, defaultExpandedKeys, expandedKeys, onExpandedChange, }: AccordionProps): ReactNode;
|
|
23
|
+
export interface AccordionItemProps {
|
|
24
|
+
/** AccordionHeader followed by AccordionPanel. */
|
|
25
|
+
readonly children: ReactNode;
|
|
26
|
+
/** Unique key used to track expanded state. Not rendered to the DOM. */
|
|
27
|
+
readonly itemKey: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function AccordionItem({ children, itemKey }: AccordionItemProps): ReactNode;
|
|
30
|
+
export interface AccordionHeaderProps {
|
|
31
|
+
/** Trigger label — text or inline elements. */
|
|
32
|
+
readonly children: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Semantic heading level for the element wrapping the trigger button.
|
|
35
|
+
* Does not affect visual size — the trigger always renders at the same size.
|
|
36
|
+
* Set this to match the document outline of the page embedding the Accordion.
|
|
37
|
+
* @default 3
|
|
38
|
+
*/
|
|
39
|
+
readonly level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
40
|
+
readonly className?: string;
|
|
41
|
+
readonly style?: CSSProperties;
|
|
42
|
+
}
|
|
43
|
+
export declare function AccordionHeader({ children, className, level, style, }: AccordionHeaderProps): ReactNode;
|
|
44
|
+
export interface AccordionPanelProps {
|
|
45
|
+
/** Disclosed content — any ReactNode. */
|
|
46
|
+
readonly children: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export declare function AccordionPanel({ children }: AccordionPanelProps): ReactNode;
|
|
49
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/components/accordion.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAQf,MAAM,OAAO,CAAA;AA4Bd,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,OAAO,CAAA;AAEnD,MAAM,WAAW,cAAc;IAC7B,0CAA0C;IAC1C,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAA;IACnC,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,iDAAiD;IACjD,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IAChD,uCAAuC;IACvC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACzC,8DAA8D;IAC9D,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CACrD;AAED,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,OAAoB,EACpB,QAAgB,EAChB,mBAAwB,EACxB,YAAY,EACZ,gBAAgB,GACjB,EAAE,cAAc,GAAG,SAAS,CAmC5B;AAID,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,wEAAwE;IACxE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,kBAAkB,GAAG,SAAS,CAqBlF;AAID,MAAM,WAAW,oBAAoB;IACnC,+CAA+C;IAC/C,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B;;;;;OAKG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAC/B;AAED,wBAAgB,eAAe,CAAC,EAC9B,QAAQ,EACR,SAAS,EACT,KAAS,EACT,KAAK,GACN,EAAE,oBAAoB,GAAG,SAAS,CAqBlC;AAID,MAAM,WAAW,mBAAmB;IAClC,yCAAyC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,SAAS,CAa3E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.test.d.ts","sourceRoot":"","sources":["../../src/components/accordion.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AriaMixin } from "../mixins/aria";
|
|
3
|
+
import type { PressEvent } from "./button";
|
|
4
|
+
export type BadgeTone = "neutral" | "info" | "success" | "warning" | "danger" | "positive" | "negative";
|
|
5
|
+
export type BadgeVariant = "subtle" | "solid";
|
|
6
|
+
export type BadgeSize = "xs" | "sm" | "md";
|
|
7
|
+
export interface BadgeProps extends AriaMixin {
|
|
8
|
+
readonly children: ReactNode;
|
|
9
|
+
/** Semantic tone — maps to status color tokens. @default "neutral" */
|
|
10
|
+
readonly tone?: BadgeTone;
|
|
11
|
+
/**
|
|
12
|
+
* Visual treatment.
|
|
13
|
+
* `"subtle"` — light background, bordered, for inline status in tables and lists.
|
|
14
|
+
* `"solid"` — saturated background, for counts and active-filter indicators.
|
|
15
|
+
* @default "subtle"
|
|
16
|
+
*/
|
|
17
|
+
readonly variant?: BadgeVariant;
|
|
18
|
+
/** Size scale. @default "sm" */
|
|
19
|
+
readonly size?: BadgeSize;
|
|
20
|
+
/** When provided, the badge renders as a button. */
|
|
21
|
+
readonly onPress?: (e: PressEvent) => void;
|
|
22
|
+
/** When provided, renders an accessible dismiss button. */
|
|
23
|
+
readonly onDismiss?: () => void;
|
|
24
|
+
/** Accessible label for the dismiss button. @default "Dismiss" */
|
|
25
|
+
readonly dismissLabel?: string;
|
|
26
|
+
readonly className?: string;
|
|
27
|
+
readonly [key: `aria-${string}`]: string | boolean | undefined;
|
|
28
|
+
readonly [key: `data-${string}`]: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare const Badge: import("react").ForwardRefExoticComponent<BadgeProps & import("react").RefAttributes<HTMLElement>>;
|
|
31
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/components/badge.tsx"],"names":[],"mappings":"AACA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAI1C,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,UAAU,GACV,UAAU,CAAA;AAEd,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,OAAO,CAAA;AAC7C,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1C,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,sEAAsE;IACtE,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAC/B,gCAAgC;IAChC,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAA;IACzB,oDAAoD;IACpD,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1C,2DAA2D;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAC/B,kEAAkE;IAClE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;IAC9D,QAAQ,EAAE,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,CAAA;CACrD;AAiBD,eAAO,MAAM,KAAK,oGA0DhB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type BannerTone = "neutral" | "info" | "success" | "warning" | "danger";
|
|
3
|
+
export interface BannerProps {
|
|
4
|
+
/** Primary message. */
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
/** Semantic tone. @default "neutral" */
|
|
7
|
+
readonly tone?: BannerTone;
|
|
8
|
+
/** Optional title rendered above the message in semibold. */
|
|
9
|
+
readonly title?: string;
|
|
10
|
+
/** Optional call-to-action rendered after the message. */
|
|
11
|
+
readonly action?: {
|
|
12
|
+
readonly label: string;
|
|
13
|
+
readonly onPress: () => void;
|
|
14
|
+
};
|
|
15
|
+
/** When provided, renders a dismiss button. */
|
|
16
|
+
readonly onDismiss?: () => void;
|
|
17
|
+
/** Accessible label for the dismiss button. @default "Dismiss" */
|
|
18
|
+
readonly dismissLabel?: string;
|
|
19
|
+
readonly className?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const Banner: import("react").ForwardRefExoticComponent<BannerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
22
|
+
//# sourceMappingURL=banner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/components/banner.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAMlD,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE9E,MAAM,WAAW,WAAW;IAC1B,uBAAuB;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,wCAAwC;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAA;IAC1B,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,MAAM,CAAC,EAAE;QAChB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;QACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAC7B,CAAA;IACD,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IAC/B,kEAAkE;IAClE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AA+FD,eAAO,MAAM,MAAM,wGAsCjB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren } from "react";
|
|
2
|
+
import type { BordersProps } from "../mixins/borders";
|
|
3
|
+
import type { GridItemProps } from "../mixins/grid-item";
|
|
4
|
+
import type { SpacingProps } from "../mixins/spacing";
|
|
5
|
+
import type { SurfaceStyleProps } from "../mixins/surface";
|
|
6
|
+
export interface BoxProps extends PropsWithChildren, SpacingProps, BordersProps, SurfaceStyleProps, GridItemProps {
|
|
7
|
+
/** HTML element to render. @default "div" */
|
|
8
|
+
readonly as?: ElementType;
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Box: import("react").ForwardRefExoticComponent<BoxProps & import("react").RefAttributes<HTMLElement>>;
|
|
12
|
+
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../src/components/box.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAG5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAE1D,MAAM,WAAW,QACf,SAAQ,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa;IACvF,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,eAAO,MAAM,GAAG,kGA6Dd,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface ButtonGroupProps {
|
|
3
|
+
/** One or more `<Button>` or `<IconButton>` elements. */
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* When true, buttons touch with no gap and share border edges.
|
|
7
|
+
* Interior border radii are removed so the group reads as a single unit.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
readonly isTouching?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const ButtonGroup: import("react").ForwardRefExoticComponent<ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../src/components/button-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIlD,MAAM,WAAW,gBAAgB;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAC9B;AAED,eAAO,MAAM,WAAW,6GAYtB,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type PressEvent } from "@ox0/hooks";
|
|
2
|
+
import { type ComponentType, type ButtonHTMLAttributes, type PropsWithChildren } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* A component type compatible with Lucide icons and similar SVG icon libraries.
|
|
5
|
+
* Pass the component itself — e.g. `icon={Pencil}`, not `icon={<Pencil />}`.
|
|
6
|
+
*/
|
|
7
|
+
export type IconComponent = ComponentType<{
|
|
8
|
+
size?: number | string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const iconSize: Record<NonNullable<ButtonProps["size"]>, number>;
|
|
12
|
+
export type { PressEvent };
|
|
13
|
+
export interface ButtonProps extends PropsWithChildren, Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onClick" | "onKeyDown" | "onKeyUp" | "onPointerDown" | "onPointerMove" | "onPointerUp" | "onPointerCancel"> {
|
|
14
|
+
/**
|
|
15
|
+
* Visual emphasis. Use `primary` for the single dominant action per view.
|
|
16
|
+
* Use `danger` / `danger-secondary` for destructive confirmation actions.
|
|
17
|
+
* Use `inline` for low-prominence text actions; `hinted` for the same with a dotted underline.
|
|
18
|
+
* @default "secondary"
|
|
19
|
+
*/
|
|
20
|
+
readonly variant?: "primary" | "secondary" | "ghost" | "flat" | "circle" | "danger" | "danger-secondary" | "inline" | "hinted";
|
|
21
|
+
/** Spatial size. @default "md" */
|
|
22
|
+
readonly size?: "sm" | "md" | "lg";
|
|
23
|
+
/**
|
|
24
|
+
* HTML button type. Defaults to `"button"` to prevent accidental form submission —
|
|
25
|
+
* set to `"submit"` explicitly when submitting a form.
|
|
26
|
+
* @default "button"
|
|
27
|
+
*/
|
|
28
|
+
readonly type?: "button" | "submit" | "reset";
|
|
29
|
+
/** Prevents interaction and applies reduced-opacity styling. */
|
|
30
|
+
readonly isDisabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Marks the button as selected — use for toggles and option groups.
|
|
33
|
+
* Sets `aria-pressed` automatically. Pair with `variant="flat"` or `variant="ghost"`.
|
|
34
|
+
*/
|
|
35
|
+
readonly isSelected?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Lucide icon component rendered before the label — e.g. `icon={Download}`, not `icon={<Download />}`.
|
|
38
|
+
* Sized automatically to match the button's size.
|
|
39
|
+
*/
|
|
40
|
+
readonly icon?: IconComponent;
|
|
41
|
+
/**
|
|
42
|
+
* Lucide icon component rendered after the label — e.g. `iconEnd={ChevronRight}`.
|
|
43
|
+
* Sized automatically to match the button's size.
|
|
44
|
+
*/
|
|
45
|
+
readonly iconEnd?: IconComponent;
|
|
46
|
+
/** Fires when the press completes over the target (mouse, touch, keyboard, or virtual). */
|
|
47
|
+
readonly onPress?: (e: PressEvent) => void;
|
|
48
|
+
/** Fires when a press interaction begins. */
|
|
49
|
+
readonly onPressStart?: (e: PressEvent) => void;
|
|
50
|
+
/** Fires when a press interaction ends, whether the pointer was over the target or not. */
|
|
51
|
+
readonly onPressEnd?: (e: PressEvent) => void;
|
|
52
|
+
/** Fires when the pressed state changes. */
|
|
53
|
+
readonly onPressChange?: (isPressed: boolean) => void;
|
|
54
|
+
/** Fires when a press is released over the target, regardless of where it started. */
|
|
55
|
+
readonly onPressUp?: (e: PressEvent) => void;
|
|
56
|
+
}
|
|
57
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/components/button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EACL,KAAK,aAAa,EAMlB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACvB,MAAM,OAAO,CAAA;AAId;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,aAAa,CAAC;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAEzF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAIrE,CAAA;AA8BD,YAAY,EAAE,UAAU,EAAE,CAAA;AAE1B,MAAM,WAAW,WACf,SACE,iBAAiB,EACjB,IAAI,CACF,oBAAoB,CAAC,iBAAiB,CAAC,EACrC,UAAU,GACV,SAAS,GACT,WAAW,GACX,SAAS,GACT,eAAe,GACf,eAAe,GACf,aAAa,GACb,iBAAiB,CACpB;IACH;;;;;OAKG;IACH,QAAQ,CAAC,OAAO,CAAC,EACb,SAAS,GACT,WAAW,GACX,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,kBAAkB,GAClB,QAAQ,GACR,QAAQ,CAAA;IACZ,kCAAkC;IAClC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IAClC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IAC7C,gEAAgE;IAChE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,aAAa,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAA;IAChC,2FAA2F;IAC3F,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC/C,2FAA2F;IAC3F,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC7C,4CAA4C;IAC5C,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACrD,sFAAsF;IACtF,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CAC7C;AAED,eAAO,MAAM,MAAM,2GA2EjB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AriaMixin } from "../mixins/aria";
|
|
3
|
+
import type { TextColor } from "./text";
|
|
4
|
+
export interface CaptionProps extends AriaMixin {
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
readonly as?: "span" | "p";
|
|
7
|
+
readonly color?: TextColor;
|
|
8
|
+
readonly truncate?: boolean;
|
|
9
|
+
readonly lineClamp?: number;
|
|
10
|
+
readonly className?: string;
|
|
11
|
+
readonly [key: `aria-${string}`]: string | boolean | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const Caption: import("react").ForwardRefExoticComponent<CaptionProps & import("react").RefAttributes<HTMLElement>>;
|
|
14
|
+
//# sourceMappingURL=caption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"caption.d.ts","sourceRoot":"","sources":["../../src/components/caption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAErF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAIvC,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAC/D;AAED,eAAO,MAAM,OAAO,sGA+BlB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ElementType, type PropsWithChildren, type ReactNode } from "react";
|
|
2
|
+
import type { RadiusToken, ShadowToken } from "../mixins/borders";
|
|
3
|
+
import type { SpacingToken } from "../mixins/spacing";
|
|
4
|
+
import type { SurfaceToken } from "../mixins/surface";
|
|
5
|
+
export interface CardProps extends PropsWithChildren {
|
|
6
|
+
/** Optional header slot. Rendered above the body with a bottom divider. */
|
|
7
|
+
readonly header?: ReactNode;
|
|
8
|
+
/** Optional footer slot. Rendered below the body with a top divider. */
|
|
9
|
+
readonly footer?: ReactNode;
|
|
10
|
+
/** Padding applied to every section (header, body, footer). @default "lg" */
|
|
11
|
+
readonly padding?: SpacingToken;
|
|
12
|
+
/** Background surface. @default "surface" */
|
|
13
|
+
readonly surface?: SurfaceToken;
|
|
14
|
+
/** Corner rounding. @default "lg" */
|
|
15
|
+
readonly borderRadius?: RadiusToken;
|
|
16
|
+
/** Box shadow depth. @default "sm" */
|
|
17
|
+
readonly shadow?: ShadowToken;
|
|
18
|
+
/** HTML element to render. @default "div" */
|
|
19
|
+
readonly as?: ElementType;
|
|
20
|
+
readonly className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Card: import("react").ForwardRefExoticComponent<CardProps & import("react").RefAttributes<HTMLElement>>;
|
|
23
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKrD,MAAM,WAAW,SAAU,SAAQ,iBAAiB;IAClD,2EAA2E;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,wEAAwE;IACxE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAC/B,6CAA6C;IAC7C,QAAQ,CAAC,OAAO,CAAC,EAAE,YAAY,CAAA;IAC/B,qCAAqC;IACrC,QAAQ,CAAC,YAAY,CAAC,EAAE,WAAW,CAAA;IACnC,sCAAsC;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAA;IAC7B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,CAAC,EAAE,WAAW,CAAA;IACzB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,eAAO,MAAM,IAAI,mGA2Cf,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
2
|
+
export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "disabled" | "onChange" | "checked" | "defaultChecked"> {
|
|
3
|
+
readonly label?: ReactNode;
|
|
4
|
+
readonly isDisabled?: boolean;
|
|
5
|
+
readonly isInvalid?: boolean;
|
|
6
|
+
readonly isSelected?: boolean;
|
|
7
|
+
readonly defaultSelected?: boolean;
|
|
8
|
+
readonly errorMessage?: ReactNode;
|
|
9
|
+
readonly onChange?: (isSelected: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function Checkbox({ label, isDisabled, isInvalid, isSelected, defaultSelected, errorMessage, onChange, id: idProp, ...props }: CheckboxProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../src/components/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIvE,MAAM,WAAW,aAAc,SAAQ,IAAI,CACzC,mBAAmB,CAAC,gBAAgB,CAAC,EACrC,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,gBAAgB,CAChE;IACC,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAA;CAClD;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,EAAE,EAAE,MAAM,EACV,GAAG,KAAK,EACT,EAAE,aAAa,+BA6Bf"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface CodeBlockProps {
|
|
3
|
+
readonly children?: ReactNode;
|
|
4
|
+
/** Language hint — attached as a `data-language` attribute and used to set `class="language-{lang}"` on the inner `<code>` for syntax highlighter compatibility. */
|
|
5
|
+
readonly language?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CodeBlock: import("react").ForwardRefExoticComponent<CodeBlockProps & import("react").RefAttributes<HTMLPreElement>>;
|
|
8
|
+
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/components/code-block.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,oKAAoK;IACpK,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,eAAO,MAAM,SAAS,2GAuBpB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface CodeProps {
|
|
3
|
+
readonly children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const Code: import("react").ForwardRefExoticComponent<CodeProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
//# sourceMappingURL=code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../src/components/code.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,IAAI,mGAkBf,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren, ReactNode } from "react";
|
|
2
|
+
export interface DialogProps extends PropsWithChildren {
|
|
3
|
+
readonly footer?: ReactNode;
|
|
4
|
+
readonly isOpen: boolean;
|
|
5
|
+
readonly title?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function Dialog({ children, footer, isOpen, title }: DialogProps): ReactNode;
|
|
8
|
+
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIzD,MAAM,WAAW,WAAY,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAC3B;AAED,wBAAgB,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,WAAW,GAAG,SAAS,CAYlF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DisclosureTriangleSize = "sm" | "md" | "lg";
|
|
2
|
+
export interface DisclosureTriangleProps {
|
|
3
|
+
readonly isOpen?: boolean;
|
|
4
|
+
readonly size?: DisclosureTriangleSize;
|
|
5
|
+
}
|
|
6
|
+
export declare const DisclosureTriangle: import("react").ForwardRefExoticComponent<DisclosureTriangleProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
//# sourceMappingURL=disclosure-triangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"disclosure-triangle.d.ts","sourceRoot":"","sources":["../../src/components/disclosure-triangle.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,sBAAsB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAEvD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,sBAAsB,CAAA;CACvC;AAQD,eAAO,MAAM,kBAAkB,qHA2B9B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type DividerTone = "subtle" | "default" | "strong";
|
|
2
|
+
export interface DividerProps {
|
|
3
|
+
/** Renders as a vertical rule instead of a horizontal one. @default false */
|
|
4
|
+
readonly isVertical?: boolean;
|
|
5
|
+
/** Border color strength. @default "default" */
|
|
6
|
+
readonly tone?: DividerTone;
|
|
7
|
+
}
|
|
8
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<DividerProps & import("react").RefAttributes<HTMLHRElement>>;
|
|
9
|
+
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../src/components/divider.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;AAEzD,MAAM,WAAW,YAAY;IAC3B,6EAA6E;IAC7E,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;CAC5B;AAED,eAAO,MAAM,OAAO,wGASlB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export type HeadingLevel = 1 | 2 | 3;
|
|
3
|
+
export interface HeadingProps {
|
|
4
|
+
readonly children: ReactNode;
|
|
5
|
+
readonly level?: HeadingLevel;
|
|
6
|
+
/** When set, a bookmarkable `#fragment` anchor appears on hover. */
|
|
7
|
+
readonly id?: string;
|
|
8
|
+
readonly className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Heading: import("react").ForwardRefExoticComponent<HeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
11
|
+
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../src/components/heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjE,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AAEpC,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;IAC5B,QAAQ,CAAC,KAAK,CAAC,EAAE,YAAY,CAAA;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC5B;AAQD,eAAO,MAAM,OAAO,6GAoBlB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ButtonProps, type IconComponent } from "./button";
|
|
2
|
+
import { type TooltipPlacement } from "./tooltip";
|
|
3
|
+
type IconButtonVariant = "circle" | "ghost" | "flat";
|
|
4
|
+
export type { IconComponent };
|
|
5
|
+
export interface IconButtonProps extends Omit<ButtonProps, "children" | "variant" | "aria-label" | "icon" | "iconEnd"> {
|
|
6
|
+
/** Lucide icon component — e.g. `icon={Pencil}`, not `icon={<Pencil />}`. */
|
|
7
|
+
readonly icon: IconComponent;
|
|
8
|
+
/** Accessible label; shown as a tooltip on hover/focus. Required. */
|
|
9
|
+
readonly label: string;
|
|
10
|
+
/**
|
|
11
|
+
* Visual style. Use `circle` for standalone icon actions, `ghost` or `flat` for toolbars.
|
|
12
|
+
* @default "circle"
|
|
13
|
+
*/
|
|
14
|
+
readonly variant?: IconButtonVariant;
|
|
15
|
+
/** Tooltip placement. @default "top" */
|
|
16
|
+
readonly tooltipPlacement?: TooltipPlacement;
|
|
17
|
+
}
|
|
18
|
+
export declare function IconButton({ icon: Icon, label, size, tooltipPlacement, variant, ...props }: IconButtonProps): import("react").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../src/components/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAE,KAAK,aAAa,EAAY,MAAM,UAAU,CAAA;AACjF,OAAO,EAAW,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAA;AAE1D,KAAK,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA;AAE7B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,WAAW,EACX,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,GAAG,SAAS,CAC3D;IACC,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,qEAAqE;IACrE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAA;IACpC,wCAAwC;IACxC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CAC7C;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EAAE,IAAI,EACV,KAAK,EACL,IAAW,EACX,gBAAgB,EAChB,OAAkB,EAClB,GAAG,KAAK,EACT,EAAE,eAAe,+BAQjB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { IconComponent } from "./button";
|
|
3
|
+
export interface IconLabelProps {
|
|
4
|
+
/**
|
|
5
|
+
* Lucide icon component or any `IconComponent` — e.g. `icon={Download}`, `icon={Spinner}`.
|
|
6
|
+
* Rendered at `1em` so it matches the surrounding text size automatically.
|
|
7
|
+
*/
|
|
8
|
+
readonly icon: IconComponent;
|
|
9
|
+
/** Text or inline content to display alongside the icon. */
|
|
10
|
+
readonly children: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Pairs an icon with a text label using the standard icon–text gap (`space-sm`, 8 px).
|
|
14
|
+
*
|
|
15
|
+
* Use this whenever you need an icon next to text outside of a Button — e.g. status
|
|
16
|
+
* indicators, loading states, or annotated values. The icon is always sized to `1em`
|
|
17
|
+
* so it scales with the surrounding font size.
|
|
18
|
+
*
|
|
19
|
+
* For icons inside interactive controls, use the `icon` prop on `Button` or `IconButton`
|
|
20
|
+
* instead — they handle sizing and spacing internally.
|
|
21
|
+
*/
|
|
22
|
+
export declare const IconLabel: import("react").ForwardRefExoticComponent<IconLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
23
|
+
//# sourceMappingURL=icon-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-label.d.ts","sourceRoot":"","sources":["../../src/components/icon-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,4DAA4D;IAC5D,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,4GAapB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface KeyboardProps {
|
|
3
|
+
readonly children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export declare const Keyboard: import("react").ForwardRefExoticComponent<KeyboardProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../src/components/keyboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAC9B;AAED,eAAO,MAAM,QAAQ,uGAyBnB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AriaMixin } from "../mixins/aria";
|
|
3
|
+
import type { TextColor } from "./text";
|
|
4
|
+
export interface LabelProps extends AriaMixin {
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
/** Associates the label with a form control. Renders a `<label>` element. */
|
|
7
|
+
readonly htmlFor?: string;
|
|
8
|
+
/** Use `"span"` when the label is decorative (table header, section label) rather than a form association. */
|
|
9
|
+
readonly as?: "label" | "span";
|
|
10
|
+
readonly color?: TextColor;
|
|
11
|
+
readonly truncate?: boolean;
|
|
12
|
+
readonly className?: string;
|
|
13
|
+
readonly [key: `aria-${string}`]: string | boolean | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare const Label: import("react").ForwardRefExoticComponent<LabelProps & import("react").RefAttributes<HTMLElement>>;
|
|
16
|
+
//# sourceMappingURL=label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/components/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAIvC,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,8GAA8G;IAC9G,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAC/D;AAED,eAAO,MAAM,KAAK,oGAuBhB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type PressEvent } from "@ox0/hooks";
|
|
2
|
+
import { type AnchorHTMLAttributes, type FocusEvent, type MouseEvent, type ReactNode } from "react";
|
|
3
|
+
import type { AriaMixin } from "../mixins/aria";
|
|
4
|
+
export type { PressEvent };
|
|
5
|
+
export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href" | keyof AriaMixin>, AriaMixin {
|
|
6
|
+
/**
|
|
7
|
+
* Navigation target. Accepted forms:
|
|
8
|
+
* - Absolute path: `/path`
|
|
9
|
+
* - Relative path: `./path`, `../path`
|
|
10
|
+
* - Fragment with path: `#section` (bare `#` is not allowed)
|
|
11
|
+
* - External URL: `https://…`, `http://…`
|
|
12
|
+
* - Email: `mailto:…`
|
|
13
|
+
* - Phone: `tel:…`
|
|
14
|
+
*
|
|
15
|
+
* Anything else — `javascript:`, `data:`, `vbscript:`, bare `#`, etc. —
|
|
16
|
+
* is blocked because `<a href>` is a known XSS sink. The component renders
|
|
17
|
+
* as a `<span>` when `to` is invalid.
|
|
18
|
+
*/
|
|
19
|
+
readonly to: string;
|
|
20
|
+
readonly children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Treat as an external link: opens in a new tab and shows the external icon.
|
|
23
|
+
* Auto-detected for `to` values that start with `http://` or `https://`.
|
|
24
|
+
*/
|
|
25
|
+
readonly isExternal?: boolean;
|
|
26
|
+
readonly className?: string;
|
|
27
|
+
/** Fires when the link gains keyboard or pointer focus. */
|
|
28
|
+
readonly onFocus?: (e: FocusEvent<HTMLAnchorElement>) => void;
|
|
29
|
+
/** Fires when the link loses focus. */
|
|
30
|
+
readonly onBlur?: (e: FocusEvent<HTMLAnchorElement>) => void;
|
|
31
|
+
/** Fires when the pointer enters the link area. */
|
|
32
|
+
readonly onMouseEnter?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
|
33
|
+
/** Fires when the pointer leaves the link area. */
|
|
34
|
+
readonly onMouseLeave?: (e: MouseEvent<HTMLAnchorElement>) => void;
|
|
35
|
+
/** Fires when the press completes over the link (mouse, touch, keyboard, or virtual). */
|
|
36
|
+
readonly onPress?: (e: PressEvent) => void;
|
|
37
|
+
/** Fires when a press interaction begins. */
|
|
38
|
+
readonly onPressStart?: (e: PressEvent) => void;
|
|
39
|
+
/** Fires when a press interaction ends, whether the pointer was over the target or not. */
|
|
40
|
+
readonly onPressEnd?: (e: PressEvent) => void;
|
|
41
|
+
/** Fires when the pressed state changes. */
|
|
42
|
+
readonly onPressChange?: (isPressed: boolean) => void;
|
|
43
|
+
/** Fires when a press is released over the target, regardless of where it started. */
|
|
44
|
+
readonly onPressUp?: (e: PressEvent) => void;
|
|
45
|
+
}
|
|
46
|
+
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
47
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,UAAU,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAK/C,YAAY,EAAE,UAAU,EAAE,CAAA;AAE1B,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,SAAS,CAAC,EAAE,SAAS;IAC1F;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B;;;OAGG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,2DAA2D;IAC3D,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC7D,uCAAuC;IACvC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAC5D,mDAAmD;IACnD,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAClE,mDAAmD;IACnD,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAA;IAClE,yFAAyF;IACzF,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC1C,6CAA6C;IAC7C,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC/C,2FAA2F;IAC3F,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;IAC7C,4CAA4C;IAC5C,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IACrD,sFAAsF;IACtF,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CAC7C;AA+BD,eAAO,MAAM,IAAI,yGAiEf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.test.d.ts","sourceRoot":"","sources":["../../src/components/link.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { AriaMixin } from "../mixins/aria";
|
|
3
|
+
import type { TextColor } from "./text";
|
|
4
|
+
export interface NumericProps extends AriaMixin {
|
|
5
|
+
readonly children?: ReactNode;
|
|
6
|
+
readonly color?: TextColor;
|
|
7
|
+
readonly align?: "left" | "right";
|
|
8
|
+
readonly truncate?: boolean;
|
|
9
|
+
readonly className?: string;
|
|
10
|
+
readonly [key: `aria-${string}`]: string | boolean | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare const Numeric: import("react").ForwardRefExoticComponent<NumericProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
//# sourceMappingURL=numeric.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numeric.d.ts","sourceRoot":"","sources":["../../src/components/numeric.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAIvC,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAA;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,EAAE,GAAG,EAAE,QAAQ,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CAC/D;AAED,eAAO,MAAM,OAAO,0GAuBlB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
+
export type PopoverPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
|
|
3
|
+
export interface PopoverProps {
|
|
4
|
+
/** Content rendered inside the popover panel. May include interactive elements. */
|
|
5
|
+
readonly content: ReactNode;
|
|
6
|
+
/** Preferred placement. Flips automatically when space is insufficient. @default "bottom-start" */
|
|
7
|
+
readonly placement?: PopoverPlacement;
|
|
8
|
+
/**
|
|
9
|
+
* The element that toggles the popover on click.
|
|
10
|
+
* Must be a single focusable element that forwards refs.
|
|
11
|
+
*/
|
|
12
|
+
readonly children: ReactElement;
|
|
13
|
+
/** Controlled open state. Omit to use internal state. */
|
|
14
|
+
readonly isOpen?: boolean;
|
|
15
|
+
/** Callback fired when the popover should open or close. */
|
|
16
|
+
readonly onOpenChange?: (open: boolean) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function Popover({ content, placement, children, isOpen: controlledOpen, onOpenChange, }: PopoverProps): ReactElement;
|
|
19
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAoC,MAAM,OAAO,CAAA;AAI3F,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAA;AAEf,MAAM,WAAW,YAAY;IAC3B,mFAAmF;IACnF,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAA;IAC3B,mGAAmG;IACnG,QAAQ,CAAC,SAAS,CAAC,EAAE,gBAAgB,CAAA;IACrC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAA;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,4DAA4D;IAC5D,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;CAChD;AAED,wBAAgB,OAAO,CAAC,EACtB,OAAO,EACP,SAA0B,EAC1B,QAAQ,EACR,MAAM,EAAE,cAAc,EACtB,YAAY,GACb,EAAE,YAAY,GAAG,YAAY,CAoD7B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode, type SelectHTMLAttributes } from "react";
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
readonly value: string;
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, "value" | "defaultValue" | "onChange" | "aria-label" | "disabled"> {
|
|
8
|
+
readonly label?: string;
|
|
9
|
+
readonly ariaLabel?: string;
|
|
10
|
+
readonly isDisabled?: boolean;
|
|
11
|
+
readonly isInvalid?: boolean;
|
|
12
|
+
readonly errorMessage?: ReactNode;
|
|
13
|
+
readonly options: readonly SelectOption[];
|
|
14
|
+
readonly value?: string;
|
|
15
|
+
readonly defaultValue?: string;
|
|
16
|
+
readonly placeholder?: string;
|
|
17
|
+
readonly onChange?: (value: string) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<HTMLSelectElement>>;
|
|
20
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,oBAAoB,EAI1B,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAClE;IACC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAA;IAC7B,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,EAAE,CAAA;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAED,eAAO,MAAM,MAAM,2GA+EjB,CAAA"}
|