@aortl/admin-react 0.16.2 → 0.18.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/CHANGELOG.md +37 -1
- package/dist/Alert.d.ts +14 -2
- package/dist/Alert.d.ts.map +1 -1
- package/dist/Avatar.d.ts +26 -0
- package/dist/Avatar.d.ts.map +1 -0
- package/dist/Badge.d.ts +8 -2
- package/dist/Badge.d.ts.map +1 -1
- package/dist/BrandTile.d.ts +16 -3
- package/dist/BrandTile.d.ts.map +1 -1
- package/dist/Card.d.ts +12 -2
- package/dist/Card.d.ts.map +1 -1
- package/dist/Dialog.d.ts +4 -1
- package/dist/Dialog.d.ts.map +1 -1
- package/dist/Drawer.d.ts +51 -0
- package/dist/Drawer.d.ts.map +1 -0
- package/dist/Field.d.ts +4 -1
- package/dist/Field.d.ts.map +1 -1
- package/dist/Indicator.d.ts +3 -1
- package/dist/Indicator.d.ts.map +1 -1
- package/dist/Input.d.ts +24 -2
- package/dist/Input.d.ts.map +1 -1
- package/dist/Item.d.ts +55 -0
- package/dist/Item.d.ts.map +1 -0
- package/dist/Menu.d.ts +7 -5
- package/dist/Menu.d.ts.map +1 -1
- package/dist/NumberInput.d.ts +28 -0
- package/dist/NumberInput.d.ts.map +1 -0
- package/dist/Pagination.d.ts +4 -1
- package/dist/Pagination.d.ts.map +1 -1
- package/dist/PropertyList.d.ts +10 -3
- package/dist/PropertyList.d.ts.map +1 -1
- package/dist/Separator.d.ts +11 -0
- package/dist/Separator.d.ts.map +1 -0
- package/dist/Sidebar.d.ts +16 -5
- package/dist/Sidebar.d.ts.map +1 -1
- package/dist/StatCard.d.ts +16 -1
- package/dist/StatCard.d.ts.map +1 -1
- package/dist/Table.d.ts +15 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Timeline.d.ts +29 -0
- package/dist/Timeline.d.ts.map +1 -0
- package/dist/Tooltip.d.ts +4 -1
- package/dist/Tooltip.d.ts.map +1 -1
- package/dist/admin.scoped.css +1072 -127
- package/dist/cn.d.ts +7 -0
- package/dist/cn.d.ts.map +1 -1
- package/dist/dialog-internal.d.ts +17 -0
- package/dist/dialog-internal.d.ts.map +1 -0
- package/dist/index.cjs +758 -103
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +750 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/Pagination.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { SlotClasses } from './cn';
|
|
2
3
|
import { IconProp } from './icon';
|
|
3
4
|
export type PaginationItem = {
|
|
4
5
|
type: "page";
|
|
@@ -32,6 +33,8 @@ export interface PaginationProps extends Omit<ComponentProps<"nav">, "onChange">
|
|
|
32
33
|
nextIcon?: IconProp;
|
|
33
34
|
/** Override the renderer for one item — for routing libraries that supply their own Link. */
|
|
34
35
|
renderItem?: (item: PaginationItem) => ReactNode;
|
|
36
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
37
|
+
classNames?: SlotClasses<"item" | "link" | "ellipsis">;
|
|
35
38
|
}
|
|
36
39
|
/** Pure (safe during render): previous, numbers/ellipses (`boundaryCount` at each end, `siblingCount` around `page`), next. */
|
|
37
40
|
export declare function getPaginationItems({ page, total, siblingCount, boundaryCount, }: {
|
|
@@ -40,5 +43,5 @@ export declare function getPaginationItems({ page, total, siblingCount, boundary
|
|
|
40
43
|
siblingCount?: number;
|
|
41
44
|
boundaryCount?: number;
|
|
42
45
|
}): PaginationItem[];
|
|
43
|
-
export declare function Pagination({ page, total, onPageChange, siblingCount, boundaryCount, previousIcon, nextIcon, renderItem, className, "aria-label": ariaLabel, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare function Pagination({ page, total, onPageChange, siblingCount, boundaryCount, previousIcon, nextIcon, renderItem, className, classNames, "aria-label": ariaLabel, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
44
47
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../src/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../src/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,OAAO,GAAG,KAAK,CAAA;CAAE,CAAC;AAE/C,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC9E,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0DAA0D;IAC1D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,6FAA6F;IAC7F,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,SAAS,CAAC;IACjD,wFAAwF;IACxF,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,CAAC;CACxD;AAED,+HAA+H;AAC/H,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,KAAK,EACL,YAAgB,EAChB,aAAiB,GAClB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,cAAc,EAAE,CA6DnB;AASD,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,YAAgB,EAChB,aAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,YAAY,EAAE,SAAwB,EACtC,GAAG,IAAI,EACR,EAAE,eAAe,2CAiBjB"}
|
package/dist/PropertyList.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { SlotClasses } from './cn';
|
|
2
3
|
export interface PropertyListProps extends Omit<ComponentProps<"section">, "title"> {
|
|
3
4
|
striped?: boolean;
|
|
4
5
|
/** Tightens row height and padding for very dense panels. */
|
|
@@ -7,8 +8,10 @@ export interface PropertyListProps extends Omit<ComponentProps<"section">, "titl
|
|
|
7
8
|
hideIfAllEmpty?: boolean;
|
|
8
9
|
/** Section heading rendered as `<h3 class="property-list-title">`. */
|
|
9
10
|
title?: ReactNode;
|
|
11
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
12
|
+
classNames?: SlotClasses<"title" | "items">;
|
|
10
13
|
}
|
|
11
|
-
declare function PropertyListRoot({ striped, compact, hideIfAllEmpty, title, className, children, ...rest }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function PropertyListRoot({ striped, compact, hideIfAllEmpty, title, className, classNames, children, ...rest }: PropertyListProps): import("react/jsx-runtime").JSX.Element;
|
|
12
15
|
export interface PropertyListItemProps extends Omit<ComponentProps<"dd">, "title" | "label"> {
|
|
13
16
|
label?: ReactNode;
|
|
14
17
|
value?: ReactNode;
|
|
@@ -17,8 +20,10 @@ export interface PropertyListItemProps extends Omit<ComponentProps<"dd">, "title
|
|
|
17
20
|
copyable?: boolean;
|
|
18
21
|
/** Overrides the text the copy button writes to the clipboard. */
|
|
19
22
|
copyValue?: string;
|
|
23
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
24
|
+
classNames?: SlotClasses<"label" | "copy">;
|
|
20
25
|
}
|
|
21
|
-
declare function PropertyListItem({ label, value, numeric, copyable, copyValue, children, ...rest }: PropertyListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function PropertyListItem({ label, value, numeric, copyable, copyValue, classNames, children, ...rest }: PropertyListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
27
|
export type PropertyListLabelProps = ComponentProps<"dt">;
|
|
23
28
|
declare function PropertyListLabel({ className, ...rest }: PropertyListLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
24
29
|
export interface PropertyListValueProps extends ComponentProps<"dd"> {
|
|
@@ -28,8 +33,10 @@ export interface PropertyListValueProps extends ComponentProps<"dd"> {
|
|
|
28
33
|
empty?: boolean;
|
|
29
34
|
/** Overrides the text the copy button writes to the clipboard. */
|
|
30
35
|
copyValue?: string;
|
|
36
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
37
|
+
classNames?: SlotClasses<"copy">;
|
|
31
38
|
}
|
|
32
|
-
declare function PropertyListValue({ numeric, copyable, empty, copyValue, className, children, ...rest }: PropertyListValueProps): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function PropertyListValue({ numeric, copyable, empty, copyValue, className, classNames, children, ...rest }: PropertyListValueProps): import("react/jsx-runtime").JSX.Element;
|
|
33
40
|
export declare const PropertyList: typeof PropertyListRoot & {
|
|
34
41
|
Item: typeof PropertyListItem;
|
|
35
42
|
Label: typeof PropertyListLabel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../src/PropertyList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PropertyList.d.ts","sourceRoot":"","sources":["../src/PropertyList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9E,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AA4C5C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IACjF,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iFAAiF;IACjF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sEAAsE;IACtE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wFAAwF;IACxF,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC;CAC7C;AAED,iBAAS,gBAAgB,CAAC,EACxB,OAAO,EACP,OAAO,EACP,cAAc,EACd,KAAK,EACL,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,iBAAiB,2CAoBnB;AAED,MAA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ComponentProps } from 'react';
|
|
2
|
+
export interface SeparatorProps extends ComponentProps<"hr"> {
|
|
3
|
+
/** A vertical rule for flex rows. Defaults to a horizontal rule. */
|
|
4
|
+
orientation?: "horizontal" | "vertical";
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* A styled `<hr>` (implicit `role="separator"`). Margins are zeroed — spacing
|
|
8
|
+
* comes from the parent's gap or margin utilities.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Separator({ orientation, className, ...rest }: SeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC1D,oEAAoE;IACpE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EAAE,WAA0B,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAS3F"}
|
package/dist/Sidebar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { SlotClasses } from './cn';
|
|
2
3
|
import { IconProp } from './icon';
|
|
3
4
|
export interface SidebarProps extends Omit<ComponentProps<"aside">, "onChange"> {
|
|
4
5
|
/** Controlled collapsed state. Pair with `onCollapsedChange`. */
|
|
@@ -8,8 +9,10 @@ export interface SidebarProps extends Omit<ComponentProps<"aside">, "onChange">
|
|
|
8
9
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
9
10
|
/** Accessible label for the mobile drawer dialog. Default: "Navigation". */
|
|
10
11
|
drawerLabel?: string;
|
|
12
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
13
|
+
classNames?: SlotClasses<"drawer" | "drawerBackdrop">;
|
|
11
14
|
}
|
|
12
|
-
declare function SidebarRoot({ collapsed, defaultCollapsed, onCollapsedChange, drawerLabel, className, children, ...rest }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function SidebarRoot({ collapsed, defaultCollapsed, onCollapsedChange, drawerLabel, className, classNames, children, ...rest }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
16
|
export type SidebarHeaderProps = ComponentProps<"div">;
|
|
14
17
|
declare function SidebarHeader({ className, ...rest }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
18
|
export type SidebarNavProps = ComponentProps<"nav">;
|
|
@@ -24,8 +27,10 @@ export interface SidebarItemProps extends ComponentProps<"a"> {
|
|
|
24
27
|
icon?: IconProp;
|
|
25
28
|
/** Trailing badge. Rendered inside `<Sidebar.Badge>`. */
|
|
26
29
|
badge?: ReactNode;
|
|
30
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
31
|
+
classNames?: SlotClasses<"icon" | "label" | "badge">;
|
|
27
32
|
}
|
|
28
|
-
declare function SidebarItem({ active, icon, badge, className, children, ...rest }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarItem({ active, icon, badge, className, classNames, children, ...rest }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
29
34
|
export type SidebarIconProps = ComponentProps<"span">;
|
|
30
35
|
declare function SidebarIcon({ className, ...rest }: SidebarIconProps): import("react/jsx-runtime").JSX.Element;
|
|
31
36
|
export type SidebarLabelProps = ComponentProps<"span">;
|
|
@@ -44,21 +49,27 @@ export interface SidebarCollapsibleProps extends Omit<ComponentProps<"details">,
|
|
|
44
49
|
/** Uncontrolled initial open state. */
|
|
45
50
|
defaultOpen?: boolean;
|
|
46
51
|
onOpenChange?: (open: boolean) => void;
|
|
52
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
53
|
+
classNames?: SlotClasses<"icon" | "label" | "trigger" | "panel">;
|
|
47
54
|
}
|
|
48
|
-
declare function SidebarCollapsible({ icon, label, trigger, children, className, open, defaultOpen, onOpenChange, ...rest }: SidebarCollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
declare function SidebarCollapsible({ icon, label, trigger, children, className, classNames, open, defaultOpen, onOpenChange, ...rest }: SidebarCollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
49
56
|
export interface SidebarSubItemProps extends ComponentProps<"a"> {
|
|
50
57
|
active?: boolean;
|
|
51
58
|
icon?: IconProp;
|
|
52
59
|
badge?: ReactNode;
|
|
60
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
61
|
+
classNames?: SlotClasses<"icon" | "badge">;
|
|
53
62
|
}
|
|
54
|
-
declare function SidebarSubItem({ active, icon, badge, className, children, ...rest }: SidebarSubItemProps): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarSubItem({ active, icon, badge, className, classNames, children, ...rest }: SidebarSubItemProps): import("react/jsx-runtime").JSX.Element;
|
|
55
64
|
export type SidebarFooterProps = ComponentProps<"div">;
|
|
56
65
|
declare function SidebarFooter({ className, ...rest }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
57
66
|
export interface SidebarCollapseToggleProps extends Omit<ComponentProps<"label">, "htmlFor"> {
|
|
58
67
|
/** Accessible label for the checkbox. Default: "Toggle sidebar". */
|
|
59
68
|
label?: string;
|
|
69
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
70
|
+
classNames?: SlotClasses<"input">;
|
|
60
71
|
}
|
|
61
|
-
declare function SidebarCollapseToggle({ label, className, children, ...rest }: SidebarCollapseToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
72
|
+
declare function SidebarCollapseToggle({ label, className, classNames, children, ...rest }: SidebarCollapseToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
62
73
|
export declare const Sidebar: typeof SidebarRoot & {
|
|
63
74
|
Header: typeof SidebarHeader;
|
|
64
75
|
Nav: typeof SidebarNav;
|
package/dist/Sidebar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../src/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../src/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAUnD,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IAC7E,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kCAAkC;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,4EAA4E;IAC5E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wFAAwF;IACxF,UAAU,CAAC,EAAE,WAAW,CAAC,QAAQ,GAAG,gBAAgB,CAAC,CAAC;CACvD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,WAA0B,EAC1B,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,YAAY,2CAgCd;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,E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Ac,CAAC,KAAK,CAAC,CAAC;AAEvD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAEhE;AAED,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,SAAS,CAAC;IAC1F,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wFAAwF;IACxF,UAAU,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,iBAAS,qBAAqB,CAAC,EAC7B,KAAwB,EACxB,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,0BAA0B,2CAoB5B;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAalB,CAAC"}
|
package/dist/StatCard.d.ts
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { CardVariant } from './Card';
|
|
3
|
+
import { SlotClasses } from './cn';
|
|
3
4
|
import { IconProp } from './icon';
|
|
5
|
+
export type TrendDirection = "up" | "down" | "flat";
|
|
6
|
+
export type TrendIntent = "positive" | "negative" | "neutral";
|
|
7
|
+
export interface StatCardTrend {
|
|
8
|
+
/** Delta text, e.g. "+12.4%" or "+1,204 this week". */
|
|
9
|
+
value: ReactNode;
|
|
10
|
+
/** Caret direction. Default `"up"`. */
|
|
11
|
+
direction?: TrendDirection;
|
|
12
|
+
/** Tone, independent of direction (a falling error rate is good). Derived from direction when omitted. */
|
|
13
|
+
intent?: TrendIntent;
|
|
14
|
+
}
|
|
4
15
|
export interface StatCardProps extends ComponentProps<"div"> {
|
|
5
16
|
/** Tinted surface + matching border, shared with `<Card>`. The value picks up the accent (except `warning`). Defaults to the neutral surface. */
|
|
6
17
|
variant?: CardVariant;
|
|
@@ -10,6 +21,10 @@ export interface StatCardProps extends ComponentProps<"div"> {
|
|
|
10
21
|
value?: ReactNode;
|
|
11
22
|
/** Subordinate line under the value (e.g. "42 completed / 12 pending"). */
|
|
12
23
|
detail?: ReactNode;
|
|
24
|
+
/** Directional delta line under the value. Tone is independent of direction. */
|
|
25
|
+
trend?: StatCardTrend;
|
|
26
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
27
|
+
classNames?: SlotClasses<"label" | "value" | "trend" | "detail">;
|
|
13
28
|
/** Leading icon in the label row. */
|
|
14
29
|
icon?: IconProp;
|
|
15
30
|
compact?: boolean;
|
|
@@ -20,5 +35,5 @@ export interface StatCardProps extends ComponentProps<"div"> {
|
|
|
20
35
|
* every card modifier — `compact`/`bordered` map to `.card-compact`/`.card-bordered`.
|
|
21
36
|
* Free-form tiles: `<Card>`; label/value tables: `<PropertyList>`.
|
|
22
37
|
*/
|
|
23
|
-
export declare function StatCard({ variant, label, value, detail, icon, compact, bordered, className, children, ...rest }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export declare function StatCard({ variant, label, value, detail, trend, icon, compact, bordered, className, classNames, children, ...rest }: StatCardProps): import("react/jsx-runtime").JSX.Element;
|
|
24
39
|
//# sourceMappingURL=StatCard.d.ts.map
|
package/dist/StatCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../src/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"StatCard.d.ts","sourceRoot":"","sources":["../src/StatCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;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lign = "left" | "right" | "center";
|
|
3
|
+
export type TableDensity = "compact" | "default" | "relaxed";
|
|
3
4
|
export interface TableProps extends ComponentProps<"table"> {
|
|
4
5
|
striped?: boolean;
|
|
5
6
|
bordered?: boolean;
|
|
7
|
+
/** Cell padding. Default `"default"`. */
|
|
8
|
+
density?: TableDensity;
|
|
9
|
+
/** @deprecated Use `density="relaxed"`. Kept for the class-name contract. */
|
|
6
10
|
relaxed?: boolean;
|
|
7
11
|
/** Pins `<thead>`; requires an overflowing ancestor (`overflow: auto` + `max-height` wrapper). */
|
|
8
12
|
sticky?: boolean;
|
|
13
|
+
/** Pins the first column against horizontal scroll; requires an overflow-x ancestor. */
|
|
14
|
+
pinCol?: boolean;
|
|
9
15
|
}
|
|
10
|
-
declare function TableRoot({ striped, bordered, relaxed, sticky, className, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function TableRoot({ striped, bordered, density, relaxed, sticky, pinCol, className, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
11
17
|
export type TableHeadProps = ComponentProps<"thead">;
|
|
12
18
|
declare function TableHead({ className, ...rest }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
13
19
|
export type TableBodyProps = ComponentProps<"tbody">;
|
|
14
20
|
declare function TableBody({ className, ...rest }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
21
|
export type TableFootProps = ComponentProps<"tfoot">;
|
|
22
|
+
/** Footer rows are semibold by default; the first row gets a strong top divider against the body. */
|
|
16
23
|
declare function TableFoot({ className, ...rest }: TableFootProps): import("react/jsx-runtime").JSX.Element;
|
|
17
24
|
export interface TableRowProps extends ComponentProps<"tr"> {
|
|
18
25
|
/** Programmatic selection highlight — independent of the CSS rule tinting rows with a checked checkbox. */
|
|
@@ -35,6 +42,12 @@ export interface TableCellProps extends Omit<ComponentProps<"td">, "align"> {
|
|
|
35
42
|
numeric?: boolean;
|
|
36
43
|
}
|
|
37
44
|
declare function TableCell({ align, gutter, numeric, className, ...rest }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export interface TableEmptyProps extends ComponentProps<"td"> {
|
|
46
|
+
/** Columns to span — set to the table's column count. */
|
|
47
|
+
colSpan?: number;
|
|
48
|
+
}
|
|
49
|
+
/** A centered "no results" row; renders its own `<tr>`, so drop it inside `<Table.Body>`. */
|
|
50
|
+
declare function TableEmpty({ colSpan, className, children, ...rest }: TableEmptyProps): import("react/jsx-runtime").JSX.Element;
|
|
38
51
|
export declare const Table: typeof TableRoot & {
|
|
39
52
|
Head: typeof TableHead;
|
|
40
53
|
Body: typeof TableBody;
|
|
@@ -42,6 +55,7 @@ export declare const Table: typeof TableRoot & {
|
|
|
42
55
|
Row: typeof TableRow;
|
|
43
56
|
HeaderCell: typeof TableHeaderCell;
|
|
44
57
|
Cell: typeof TableCell;
|
|
58
|
+
Empty: typeof TableEmpty;
|
|
45
59
|
};
|
|
46
60
|
export {};
|
|
47
61
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;I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;IAC3F,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,iBAAS,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,oBAAoB,2CAS1F;AAED,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IACzE,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AACD,iBAAS,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAWhF;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC3D,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD,6FAA6F;AAC7F,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAQ7E;AAED,eAAO,MAAM,KAAK;;;;;;;;CAQhB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { SlotClasses } from './cn';
|
|
3
|
+
import { IconProp } from './icon';
|
|
4
|
+
export type TimelineStatus = "default" | "info" | "success" | "warning" | "danger" | "current";
|
|
5
|
+
export interface TimelineProps extends ComponentProps<"ol"> {
|
|
6
|
+
/** Turn the rail into a numbered step list. */
|
|
7
|
+
numbered?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function TimelineRoot({ numbered, className, ...rest }: TimelineProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface TimelineItemProps extends Omit<ComponentProps<"li">, "title"> {
|
|
11
|
+
/** Accent for the indicator. `current` highlights a numbered marker. */
|
|
12
|
+
status?: TimelineStatus;
|
|
13
|
+
/** Indicator icon, replacing the default dot. */
|
|
14
|
+
icon?: IconProp;
|
|
15
|
+
/** Marker content for the numbered variant (number or letter). Takes precedence over `icon`. */
|
|
16
|
+
marker?: ReactNode;
|
|
17
|
+
title?: ReactNode;
|
|
18
|
+
/** Timestamp line. */
|
|
19
|
+
time?: ReactNode;
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
22
|
+
classNames?: SlotClasses<"indicator" | "marker" | "dot" | "content" | "title" | "time" | "description">;
|
|
23
|
+
}
|
|
24
|
+
declare function TimelineItem({ status, icon, marker, title, time, description, className, classNames, children, ...rest }: TimelineItemProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const Timeline: typeof TimelineRoot & {
|
|
26
|
+
Item: typeof TimelineItem;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=Timeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Timeline.d.ts","sourceRoot":"","sources":["../src/Timeline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAE/F,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,IAAI,CAAC;IACzD,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AACD,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAEpE;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAC5E,wEAAwE;IACxE,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iDAAiD;IACjD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,gGAAgG;IAChG,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,sBAAsB;IACtB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,wFAAwF;IACxF,UAAU,CAAC,EAAE,WAAW,CACtB,WAAW,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,aAAa,CAC9E,CAAC;CACH;AACD,iBAAS,YAAY,CAAC,EACpB,MAAkB,EAClB,IAAI,EACJ,MAAM,EACN,KAAK,EACL,IAAI,EACJ,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,iBAAiB,2CAgCnB;AAED,eAAO,MAAM,QAAQ;;CAAsD,CAAC"}
|
package/dist/Tooltip.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';
|
|
2
2
|
import { ComponentProps, ReactElement, ReactNode } from 'react';
|
|
3
|
+
import { SlotClasses } from './cn';
|
|
3
4
|
export type TooltipProviderProps = ComponentProps<typeof BaseTooltip.Provider>;
|
|
4
5
|
declare function TooltipProvider(props: TooltipProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export type TooltipRootProps = ComponentProps<typeof BaseTooltip.Root>;
|
|
@@ -21,10 +22,12 @@ export interface TooltipProps extends Omit<TooltipRootProps, "children"> {
|
|
|
21
22
|
align?: TooltipPopupProps["align"];
|
|
22
23
|
sideOffset?: TooltipPopupProps["sideOffset"];
|
|
23
24
|
size?: TooltipSize;
|
|
25
|
+
/** Per-slot class overrides. `className` targets the root; these target inner slots. */
|
|
26
|
+
classNames?: SlotClasses<"popup">;
|
|
24
27
|
/** The trigger element. Must be a single React element so Base UI can merge trigger props/refs into it. */
|
|
25
28
|
children: ReactElement;
|
|
26
29
|
}
|
|
27
|
-
declare function TooltipShorthand({ content, side, align, sideOffset, size, children, ...rootProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function TooltipShorthand({ content, side, align, sideOffset, size, classNames, children, ...rootProps }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
export declare const Tooltip: typeof TooltipShorthand & {
|
|
29
32
|
Provider: typeof TooltipProvider;
|
|
30
33
|
Root: typeof TooltipRoot;
|
package/dist/Tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../src/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAc,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3F,OAAO,EAAM,KAAK,WAAW,EAAE,MAAM,MAAM,CAAC;AAG5C,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,QAAQ,CAAC,CAAC;AAE/E,iBAAS,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAEnD;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OA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