@aortl/admin-react 0.0.1 → 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/README.md +0 -31
- package/dist/Accordion.d.ts +16 -0
- package/dist/Accordion.d.ts.map +1 -0
- package/dist/AdminRoot.d.ts +5 -0
- package/dist/AdminRoot.d.ts.map +1 -0
- package/dist/Alert.d.ts +23 -0
- package/dist/Alert.d.ts.map +1 -0
- package/dist/AppShell.d.ts +28 -0
- package/dist/AppShell.d.ts.map +1 -0
- package/dist/Badge.d.ts +12 -0
- package/dist/Badge.d.ts.map +1 -0
- package/dist/BrandTile.d.ts +10 -0
- package/dist/BrandTile.d.ts.map +1 -0
- package/dist/Breadcrumbs.d.ts +29 -0
- package/dist/Breadcrumbs.d.ts.map +1 -0
- package/dist/Button.d.ts +10 -2
- package/dist/Button.d.ts.map +1 -1
- package/dist/ButtonGroup.d.ts +7 -0
- package/dist/ButtonGroup.d.ts.map +1 -0
- package/dist/Card.d.ts +32 -5
- package/dist/Card.d.ts.map +1 -1
- package/dist/Checkbox.d.ts +11 -0
- package/dist/Checkbox.d.ts.map +1 -0
- package/dist/Dialog.d.ts +73 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Field.d.ts +5 -2
- package/dist/Field.d.ts.map +1 -1
- package/dist/FileInput.d.ts +12 -0
- package/dist/FileInput.d.ts.map +1 -0
- package/dist/Footer.d.ts +16 -0
- package/dist/Footer.d.ts.map +1 -0
- package/dist/Input.d.ts.map +1 -1
- package/dist/InputGroup.d.ts +10 -0
- package/dist/InputGroup.d.ts.map +1 -0
- package/dist/Menu.d.ts +35 -0
- package/dist/Menu.d.ts.map +1 -0
- package/dist/Navbar.d.ts +36 -0
- package/dist/Navbar.d.ts.map +1 -0
- package/dist/Pagination.d.ts +51 -0
- package/dist/Pagination.d.ts.map +1 -0
- package/dist/Progress.d.ts +12 -0
- package/dist/Progress.d.ts.map +1 -0
- package/dist/Radio.d.ts +17 -0
- package/dist/Radio.d.ts.map +1 -0
- package/dist/Select.d.ts +43 -0
- package/dist/Select.d.ts.map +1 -0
- package/dist/Sidebar.d.ts +79 -0
- package/dist/Sidebar.d.ts.map +1 -0
- package/dist/Spinner.d.ts +9 -0
- package/dist/Spinner.d.ts.map +1 -0
- package/dist/Switch.d.ts +11 -0
- package/dist/Switch.d.ts.map +1 -0
- package/dist/Table.d.ts +55 -0
- package/dist/Table.d.ts.map +1 -0
- package/dist/Tabs.d.ts +26 -0
- package/dist/Tabs.d.ts.map +1 -0
- package/dist/Textarea.d.ts +9 -0
- package/dist/Textarea.d.ts.map +1 -0
- package/dist/admin.css +2918 -248
- package/dist/admin.scoped.css +3383 -0
- package/dist/cn.d.ts +10 -0
- package/dist/cn.d.ts.map +1 -0
- package/dist/icon.d.ts +26 -0
- package/dist/icon.d.ts.map +1 -0
- package/dist/index.cjs +1244 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1218 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -7
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export type PaginationItem = {
|
|
4
|
+
type: "page";
|
|
5
|
+
page: number;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
} | {
|
|
8
|
+
type: "previous";
|
|
9
|
+
page: number;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
} | {
|
|
12
|
+
type: "next";
|
|
13
|
+
page: number;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
} | {
|
|
16
|
+
type: "ellipsis";
|
|
17
|
+
key: "start" | "end";
|
|
18
|
+
};
|
|
19
|
+
export interface PaginationProps extends Omit<ComponentProps<"nav">, "onChange"> {
|
|
20
|
+
/** Current page, 1-based. */
|
|
21
|
+
page: number;
|
|
22
|
+
/** Total number of pages. */
|
|
23
|
+
total: number;
|
|
24
|
+
/** Called when a page number, prev, or next button is activated. */
|
|
25
|
+
onPageChange: (page: number) => void;
|
|
26
|
+
/** Pages shown either side of `page`. Default 1. */
|
|
27
|
+
siblingCount?: number;
|
|
28
|
+
/** Pages always shown at the start and end. Default 1. */
|
|
29
|
+
boundaryCount?: number;
|
|
30
|
+
/** Icon for the previous-page control. Defaults to a built-in chevron. */
|
|
31
|
+
previousIcon?: IconProp;
|
|
32
|
+
/** Icon for the next-page control. Defaults to a built-in chevron. */
|
|
33
|
+
nextIcon?: IconProp;
|
|
34
|
+
/** Override the renderer for one item — useful for routing libraries that
|
|
35
|
+
* expect their own Link component (Next.js, TanStack Router, etc.). */
|
|
36
|
+
renderItem?: (item: PaginationItem) => ReactNode;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Compute the items to render for a given `page` / `total`. Always returns:
|
|
40
|
+
* previous, ...numbers/ellipses, next
|
|
41
|
+
* with `boundaryCount` items on each end and `siblingCount` items around `page`.
|
|
42
|
+
* Pure: no React state, safe to call during render.
|
|
43
|
+
*/
|
|
44
|
+
export declare function getPaginationItems({ page, total, siblingCount, boundaryCount, }: {
|
|
45
|
+
page: number;
|
|
46
|
+
total: number;
|
|
47
|
+
siblingCount?: number;
|
|
48
|
+
boundaryCount?: number;
|
|
49
|
+
}): PaginationItem[];
|
|
50
|
+
export declare function Pagination({ page, total, onPageChange, siblingCount, boundaryCount, previousIcon, nextIcon, renderItem, className, "aria-label": ariaLabel, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../src/Pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MA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,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,YAAgB,EAChB,aAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EAAE,SAAwB,EACtC,GAAG,IAAI,EACR,EAAE,eAAe,2CAejB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type ProgressVariant = "primary" | "success" | "warning" | "danger";
|
|
3
|
+
export type ProgressSize = "sm" | "md" | "lg";
|
|
4
|
+
export interface ProgressProps extends Omit<ComponentProps<"progress">, "value"> {
|
|
5
|
+
/** Current value in `[0, max]`. Omit (or pass `undefined`) for an indeterminate bar. */
|
|
6
|
+
value?: number;
|
|
7
|
+
max?: number;
|
|
8
|
+
variant?: ProgressVariant;
|
|
9
|
+
size?: ProgressSize;
|
|
10
|
+
}
|
|
11
|
+
export declare function Progress({ value, max, variant, size, className, ...rest }: ProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../src/Progress.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3E,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9E,wFAAwF;IACxF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,GAAS,EACT,OAAmB,EACnB,IAAW,EACX,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,2CAcf"}
|
package/dist/Radio.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Radio as BaseRadio } from '@base-ui/react/radio';
|
|
2
|
+
import { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
export type RadioProps = ComponentProps<typeof BaseRadio.Root>;
|
|
5
|
+
declare function RadioRoot({ className, children, ...rest }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type RadioIndicatorProps = ComponentProps<typeof BaseRadio.Indicator>;
|
|
7
|
+
declare function RadioIndicator({ className, ...rest }: RadioIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare const Radio: typeof RadioRoot & {
|
|
9
|
+
Indicator: typeof RadioIndicator;
|
|
10
|
+
};
|
|
11
|
+
export type RadioGroupOrientation = "horizontal" | "vertical";
|
|
12
|
+
export interface RadioGroupProps extends ComponentProps<typeof BaseRadioGroup> {
|
|
13
|
+
orientation?: RadioGroupOrientation;
|
|
14
|
+
}
|
|
15
|
+
export declare function RadioGroup({ orientation, className, ...rest }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../src/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AAE/D,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,2CAM9D;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;AAE7E,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAElE;AAED,eAAO,MAAM,KAAK;;CAEhB,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE9D,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,OAAO,cAAc,CAAC;IAC5E,WAAW,CAAC,EAAE,qBAAqB,CAAC;CACrC;AAED,wBAAgB,UAAU,CAAC,EAAE,WAA0B,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAU7F"}
|
package/dist/Select.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Select as BaseSelect } from '@base-ui/react/select';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SelectProps = ComponentProps<typeof BaseSelect.Root>;
|
|
4
|
+
declare function SelectRoot(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type SelectTriggerVariant = "bordered" | "ghost" | "danger";
|
|
6
|
+
export type SelectTriggerSize = "sm" | "md" | "lg";
|
|
7
|
+
type BaseSelectTriggerProps = Omit<ComponentProps<typeof BaseSelect.Trigger>, "size">;
|
|
8
|
+
export interface SelectTriggerProps extends BaseSelectTriggerProps {
|
|
9
|
+
variant?: SelectTriggerVariant;
|
|
10
|
+
triggerSize?: SelectTriggerSize;
|
|
11
|
+
}
|
|
12
|
+
declare function SelectTrigger({ variant, triggerSize, className, ...rest }: SelectTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type SelectValueProps = ComponentProps<typeof BaseSelect.Value>;
|
|
14
|
+
declare function SelectValue(props: SelectValueProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type SelectIconProps = ComponentProps<typeof BaseSelect.Icon>;
|
|
16
|
+
declare function SelectIcon({ className, children, ...rest }: SelectIconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface SelectPopupProps extends ComponentProps<typeof BaseSelect.Popup> {
|
|
18
|
+
sideOffset?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function SelectPopup({ className, sideOffset, children, ...rest }: SelectPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export type SelectItemProps = ComponentProps<typeof BaseSelect.Item>;
|
|
22
|
+
declare function SelectItem({ className, ...rest }: SelectItemProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export type SelectItemTextProps = ComponentProps<typeof BaseSelect.ItemText>;
|
|
24
|
+
declare function SelectItemText(props: SelectItemTextProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export type SelectItemIndicatorProps = ComponentProps<typeof BaseSelect.ItemIndicator>;
|
|
26
|
+
declare function SelectItemIndicator({ className, children, ...rest }: SelectItemIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export type SelectGroupProps = ComponentProps<typeof BaseSelect.Group>;
|
|
28
|
+
declare function SelectGroup(props: SelectGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export type SelectGroupLabelProps = ComponentProps<typeof BaseSelect.GroupLabel>;
|
|
30
|
+
declare function SelectGroupLabel({ className, ...rest }: SelectGroupLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const Select: typeof SelectRoot & {
|
|
32
|
+
Trigger: typeof SelectTrigger;
|
|
33
|
+
Value: typeof SelectValue;
|
|
34
|
+
Icon: typeof SelectIcon;
|
|
35
|
+
Popup: typeof SelectPopup;
|
|
36
|
+
Item: typeof SelectItem;
|
|
37
|
+
ItemText: typeof SelectItemText;
|
|
38
|
+
ItemIndicator: typeof SelectItemIndicator;
|
|
39
|
+
Group: typeof SelectGroup;
|
|
40
|
+
GroupLabel: typeof SelectGroupLabel;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
43
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../src/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAEjE,iBAAS,UAAU,CAAC,KAAK,EAAE,WAAW,2CAErC;AAED,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnD,KAAK,sBAAsB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAEtF,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC;AAED,iBAAS,aAAa,CAAC,EACrB,OAAoB,EACpB,WAAkB,EAClB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,kBAAkB,2CAUpB;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAEvE,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,2CAE3C;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAErE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,Q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Props<"aside">, "onChange"> {
|
|
4
|
+
/** Controlled collapsed state. Pair with `onCollapsedChange`. */
|
|
5
|
+
collapsed?: boolean;
|
|
6
|
+
/** Uncontrolled initial state. */
|
|
7
|
+
defaultCollapsed?: boolean;
|
|
8
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
9
|
+
/** Accessible label for the mobile drawer dialog. Default: "Navigation". */
|
|
10
|
+
drawerLabel?: string;
|
|
11
|
+
}
|
|
12
|
+
declare function SidebarRoot({ collapsed, defaultCollapsed, onCollapsedChange, drawerLabel, className, children, ...rest }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type SidebarHeaderProps = ComponentProps<"div">;
|
|
14
|
+
declare function SidebarHeader({ className, ...rest }: SidebarHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type SidebarNavProps = ComponentProps<"nav">;
|
|
16
|
+
declare function SidebarNav({ className, ...rest }: SidebarNavProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export type SidebarGroupProps = ComponentProps<"div">;
|
|
18
|
+
declare function SidebarGroup({ className, ...rest }: SidebarGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export type SidebarGroupLabelProps = ComponentProps<"div">;
|
|
20
|
+
declare function SidebarGroupLabel({ className, ...rest }: SidebarGroupLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface SidebarItemProps extends ComponentProps<"a"> {
|
|
22
|
+
active?: boolean;
|
|
23
|
+
/** Leading icon. Rendered inside `<Sidebar.Icon>`. */
|
|
24
|
+
icon?: IconProp;
|
|
25
|
+
/** Trailing badge. Rendered inside `<Sidebar.Badge>`. */
|
|
26
|
+
badge?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
declare function SidebarItem({ active, icon, badge, className, children, ...rest }: SidebarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export type SidebarIconProps = ComponentProps<"span">;
|
|
30
|
+
declare function SidebarIcon({ className, ...rest }: SidebarIconProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export type SidebarLabelProps = ComponentProps<"span">;
|
|
32
|
+
declare function SidebarLabel({ className, ...rest }: SidebarLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export type SidebarBadgeProps = ComponentProps<"span">;
|
|
34
|
+
declare function SidebarBadge({ className, ...rest }: SidebarBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface SidebarCollapsibleProps extends Omit<ComponentProps<"details">, "onToggle" | "open"> {
|
|
36
|
+
/** Leading icon for the trigger. Rendered inside `<Sidebar.Icon>`. */
|
|
37
|
+
icon?: IconProp;
|
|
38
|
+
/** Label shown next to the icon. Rendered inside `<Sidebar.Label>`. */
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/** Full trigger content. Overrides `icon` + `label`. */
|
|
41
|
+
trigger?: ReactNode;
|
|
42
|
+
/** Controlled open state. */
|
|
43
|
+
open?: boolean;
|
|
44
|
+
/** Uncontrolled initial open state. */
|
|
45
|
+
defaultOpen?: boolean;
|
|
46
|
+
/** Fires when the panel toggles open/closed. */
|
|
47
|
+
onOpenChange?: (open: boolean) => void;
|
|
48
|
+
}
|
|
49
|
+
declare function SidebarCollapsible({ icon, label, trigger, children, className, open, defaultOpen, onOpenChange, ...rest }: SidebarCollapsibleProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export interface SidebarSubItemProps extends ComponentProps<"a"> {
|
|
51
|
+
active?: boolean;
|
|
52
|
+
/** Leading icon. */
|
|
53
|
+
icon?: IconProp;
|
|
54
|
+
badge?: ReactNode;
|
|
55
|
+
}
|
|
56
|
+
declare function SidebarSubItem({ active, icon, badge, className, children, ...rest }: SidebarSubItemProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export type SidebarFooterProps = ComponentProps<"div">;
|
|
58
|
+
declare function SidebarFooter({ className, ...rest }: SidebarFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface SidebarCollapseToggleProps extends Omit<ComponentProps<"label">, "htmlFor"> {
|
|
60
|
+
/** Accessible label for the checkbox. Default: "Toggle sidebar". */
|
|
61
|
+
label?: string;
|
|
62
|
+
}
|
|
63
|
+
declare function SidebarCollapseToggle({ label, className, children, ...rest }: SidebarCollapseToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
export declare const Sidebar: typeof SidebarRoot & {
|
|
65
|
+
Header: typeof SidebarHeader;
|
|
66
|
+
Nav: typeof SidebarNav;
|
|
67
|
+
Group: typeof SidebarGroup;
|
|
68
|
+
GroupLabel: typeof SidebarGroupLabel;
|
|
69
|
+
Item: typeof SidebarItem;
|
|
70
|
+
Icon: typeof SidebarIcon;
|
|
71
|
+
Label: typeof SidebarLabel;
|
|
72
|
+
Badge: typeof SidebarBadge;
|
|
73
|
+
Collapsible: typeof SidebarCollapsible;
|
|
74
|
+
SubItem: typeof SidebarSubItem;
|
|
75
|
+
Footer: typeof SidebarFooter;
|
|
76
|
+
CollapseToggle: typeof SidebarCollapseToggle;
|
|
77
|
+
};
|
|
78
|
+
export {};
|
|
79
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../src/Sidebar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,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,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AAM,kBAAkB,GAAG,cAAc,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;CAChB;AAED,iBAAS,qBAAqB,CAAC,EAC7B,KAAwB,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,0BAA0B,2CAoB5B;AAED,eAAO,MAAM,OAAO;;;;;;;;;;;;;CAalB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type SpinnerSize = "sm" | "md" | "lg";
|
|
3
|
+
export interface SpinnerProps extends ComponentProps<"output"> {
|
|
4
|
+
size?: SpinnerSize;
|
|
5
|
+
/** Accessible label announced by screen readers. Defaults to "Loading". */
|
|
6
|
+
label?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function Spinner({ size, label, className, ...rest }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.d.ts","sourceRoot":"","sources":["../src/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,QAAQ,CAAC;IAC5D,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,KAAiB,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,2CAQ3F"}
|
package/dist/Switch.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Switch as BaseSwitch } from '@base-ui/react/switch';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type SwitchProps = ComponentProps<typeof BaseSwitch.Root>;
|
|
4
|
+
declare function SwitchRoot({ className, children, ...rest }: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type SwitchThumbProps = ComponentProps<typeof BaseSwitch.Thumb>;
|
|
6
|
+
declare function SwitchThumb({ className, ...rest }: SwitchThumbProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Switch: typeof SwitchRoot & {
|
|
8
|
+
Thumb: typeof SwitchThumb;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;AAEjE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAMhE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC;AAEvE,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,eAAO,MAAM,MAAM;;CAEjB,CAAC"}
|
package/dist/Table.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type TableAlign = "left" | "right" | "center";
|
|
3
|
+
export interface TableProps extends ComponentProps<"table"> {
|
|
4
|
+
striped?: boolean;
|
|
5
|
+
bordered?: boolean;
|
|
6
|
+
relaxed?: boolean;
|
|
7
|
+
/** Pins `<thead>` while the surrounding scroll container scrolls.
|
|
8
|
+
* Requires an overflowing ancestor — wrap the table in
|
|
9
|
+
* `<div style="overflow:auto; max-height: …">`. */
|
|
10
|
+
sticky?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function TableRoot({ striped, bordered, relaxed, sticky, className, ...rest }: TableProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type TableHeadProps = ComponentProps<"thead">;
|
|
14
|
+
declare function TableHead({ className, ...rest }: TableHeadProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type TableBodyProps = ComponentProps<"tbody">;
|
|
16
|
+
declare function TableBody({ className, ...rest }: TableBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export type TableFootProps = ComponentProps<"tfoot">;
|
|
18
|
+
declare function TableFoot({ className, ...rest }: TableFootProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export interface TableRowProps extends ComponentProps<"tr"> {
|
|
20
|
+
/** Visually marks the row as selected. Independent of the CSS rule that
|
|
21
|
+
* tints rows containing a checked checkbox — use this for programmatic
|
|
22
|
+
* selection (single-select on row click, server-driven highlight, …). */
|
|
23
|
+
selected?: boolean;
|
|
24
|
+
/** Applies `.table-row-link` so the first `<a>` inside the row expands to
|
|
25
|
+
* fill the row. The consumer still supplies the anchor — this just adds
|
|
26
|
+
* the CSS hook so the hit-area covers the whole row. */
|
|
27
|
+
asLink?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare function TableRow({ selected, asLink, className, ...rest }: TableRowProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface TableHeaderCellProps extends Omit<ComponentProps<"th">, "align"> {
|
|
31
|
+
align?: TableAlign;
|
|
32
|
+
/** Narrow first-column gutter — mirrors the body cell `gutter` modifier so
|
|
33
|
+
* the column lines up. Use for status-icon columns and select-all
|
|
34
|
+
* checkboxes. */
|
|
35
|
+
gutter?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare function TableHeaderCell({ align, gutter, className, scope, ...rest }: TableHeaderCellProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export interface TableCellProps extends Omit<ComponentProps<"td">, "align"> {
|
|
39
|
+
align?: TableAlign;
|
|
40
|
+
/** Narrow first-column gutter for row-level status icons. */
|
|
41
|
+
gutter?: boolean;
|
|
42
|
+
/** `text-right` + `tabular-nums` for currency/totals columns. */
|
|
43
|
+
numeric?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare function TableCell({ align, gutter, numeric, className, ...rest }: TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
+
export declare const Table: typeof TableRoot & {
|
|
47
|
+
Head: typeof TableHead;
|
|
48
|
+
Body: typeof TableBody;
|
|
49
|
+
Foot: typeof TableFoot;
|
|
50
|
+
Row: typeof TableRow;
|
|
51
|
+
HeaderCell: typeof TableHeaderCell;
|
|
52
|
+
Cell: typeof TableCell;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,OAAO,CAAC;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;wDAEoD;IACpD,MAAM,CAAC,EAAE,OAA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,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,2CAahF;AAED,eAAO,MAAM,KAAK;;;;;;;CAOhB,CAAC"}
|
package/dist/Tabs.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Tabs as BaseTabs } from '@base-ui/react/tabs';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type TabsVariant = "bordered" | "boxed";
|
|
4
|
+
export type TabsSize = "sm" | "md" | "lg";
|
|
5
|
+
export interface TabsProps extends ComponentProps<typeof BaseTabs.Root> {
|
|
6
|
+
variant?: TabsVariant;
|
|
7
|
+
size?: TabsSize;
|
|
8
|
+
fullWidth?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare function TabsRoot({ variant, size, fullWidth, className, ...rest }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export type TabsListProps = ComponentProps<typeof BaseTabs.List>;
|
|
12
|
+
declare function TabsList({ className, ...rest }: TabsListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export type TabsTabProps = ComponentProps<typeof BaseTabs.Tab>;
|
|
14
|
+
declare function TabsTab({ className, ...rest }: TabsTabProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export type TabsPanelProps = ComponentProps<typeof BaseTabs.Panel>;
|
|
16
|
+
declare function TabsPanel({ className, ...rest }: TabsPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export type TabsIndicatorProps = ComponentProps<typeof BaseTabs.Indicator>;
|
|
18
|
+
declare function TabsIndicator({ className, ...rest }: TabsIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const Tabs: typeof TabsRoot & {
|
|
20
|
+
List: typeof TabsList;
|
|
21
|
+
Tab: typeof TabsTab;
|
|
22
|
+
Panel: typeof TabsPanel;
|
|
23
|
+
Indicator: typeof TabsIndicator;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../src/Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,OAAO,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE1C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC;IACrE,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,iBAAS,QAAQ,CAAC,EAChB,OAAoB,EACpB,IAAW,EACX,SAAiB,EACjB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,SAAS,2CAeX;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAEjE,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAEtD;AAED,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;AAE/D,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,YAAY,2CAEpD;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AAEnE,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAExD;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC;AAE3E,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAEhE;AAED,eAAO,MAAM,IAAI;;;;;CAKf,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type TextareaVariant = "bordered" | "ghost" | "danger";
|
|
3
|
+
export type TextareaSize = "sm" | "md" | "lg";
|
|
4
|
+
export interface TextareaProps extends Omit<ComponentProps<"textarea">, "size"> {
|
|
5
|
+
variant?: TextareaVariant;
|
|
6
|
+
textareaSize?: TextareaSize;
|
|
7
|
+
}
|
|
8
|
+
export declare function Textarea({ variant, textareaSize, className, ...rest }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../src/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC9D,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,wBAAgB,QAAQ,CAAC,EACvB,OAAoB,EACpB,YAAmB,EACnB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,aAAa,2CAYf"}
|