@aortl/admin-react 0.0.1 → 0.1.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/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 +2787 -248
- package/dist/admin.scoped.css +3252 -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 +1118 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +25 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1093 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +26 -7
package/README.md
CHANGED
|
@@ -31,37 +31,6 @@ export function App() {
|
|
|
31
31
|
}
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
## Components
|
|
35
|
-
|
|
36
|
-
| Component | Parts | Key props |
|
|
37
|
-
| ---------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
38
|
-
| `<Button>` | — | `variant`: `primary` (default) `\|` `secondary` `\|` `ghost` `\|` `danger` <br/> `size`: `sm` `\|` `md` (default) `\|` `lg` <br/> `block`: boolean |
|
|
39
|
-
| `<Input>` | — | `variant`: `bordered` (default) `\|` `ghost` `\|` `danger` <br/> `inputSize`: `sm` `\|` `md` (default) `\|` `lg` |
|
|
40
|
-
| `<Card>` | `Card.Body`, `Card.Title`, `Card.Description`, `Card.Actions` | `bordered`, `compact` (on root) |
|
|
41
|
-
| `<Field>` | `Field.Label`, `Field.Description`, `Field.Error` | `name`, `validate`, `validationMode` (on root) |
|
|
42
|
-
|
|
43
|
-
> `inputSize` is intentionally named instead of `size` because `<input>` has its own native `size` attribute.
|
|
44
|
-
|
|
45
|
-
All components forward `ref`, accept `className` (merged with the design-system classes), and pass through standard HTML attributes.
|
|
46
|
-
|
|
47
|
-
## Accessibility
|
|
48
|
-
|
|
49
|
-
`Button`, `Input`, and `Field` wrap [Base UI](https://base-ui.com) primitives:
|
|
50
|
-
|
|
51
|
-
- `Button` keeps focus when disabled (`focusableWhenDisabled` available), and can render as another element (`render` prop) while preserving keyboard semantics.
|
|
52
|
-
- `Input` auto-wires into `Field` for label/description/error association and validation state — without manual `id` / `aria-describedby` plumbing.
|
|
53
|
-
- `Field` handles HTML validation (`required`, `minLength`, `pattern`, ...) and surfaces matched errors via `<Field.Error match="..." />`.
|
|
54
|
-
|
|
55
|
-
```tsx
|
|
56
|
-
<Field name="email" validationMode="onBlur">
|
|
57
|
-
<Field.Label>Email</Field.Label>
|
|
58
|
-
<Input type="email" required />
|
|
59
|
-
<Field.Description>We'll never share your email.</Field.Description>
|
|
60
|
-
<Field.Error match="valueMissing">Email is required.</Field.Error>
|
|
61
|
-
<Field.Error match="typeMismatch">Enter a valid email.</Field.Error>
|
|
62
|
-
</Field>
|
|
63
|
-
```
|
|
64
|
-
|
|
65
34
|
## Build
|
|
66
35
|
|
|
67
36
|
```fish
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type AccordionProps = ComponentProps<"div">;
|
|
3
|
+
declare function AccordionRoot({ className, ...rest }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export type AccordionItemProps = ComponentProps<"details">;
|
|
5
|
+
declare function AccordionItem({ className, ...rest }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type AccordionSummaryProps = ComponentProps<"summary">;
|
|
7
|
+
declare function AccordionSummary({ className, ...rest }: AccordionSummaryProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type AccordionContentProps = ComponentProps<"div">;
|
|
9
|
+
declare function AccordionContent({ className, ...rest }: AccordionContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Accordion: typeof AccordionRoot & {
|
|
11
|
+
Item: typeof AccordionItem;
|
|
12
|
+
Summary: typeof AccordionSummary;
|
|
13
|
+
Content: typeof AccordionContent;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../src/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAE5D;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE3D,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAEhE;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE9D,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,2CAEtE;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1D,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,2CAEtE;AAED,eAAO,MAAM,SAAS;;;;CAIpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdminRoot.d.ts","sourceRoot":"","sources":["../src/AdminRoot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;CAAG;AAEhE,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAE/D"}
|
package/dist/Alert.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export type AlertVariant = "info" | "success" | "warning" | "danger";
|
|
4
|
+
export interface AlertProps extends Omit<ComponentProps<"div">, "title"> {
|
|
5
|
+
variant?: AlertVariant;
|
|
6
|
+
/** Leading icon. Rendered as the first child so the CSS grid kicks in. */
|
|
7
|
+
icon?: IconProp;
|
|
8
|
+
/** Renders as `<Alert.Title>`. */
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
/** Renders as `<Alert.Description>`. */
|
|
11
|
+
description?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare function AlertRoot({ variant, icon, title, description, className, role, children, ...rest }: AlertProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export type AlertTitleProps = ComponentProps<"strong">;
|
|
15
|
+
declare function AlertTitle({ className, ...rest }: AlertTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export type AlertDescriptionProps = ComponentProps<"p">;
|
|
17
|
+
declare function AlertDescription({ className, ...rest }: AlertDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Alert: typeof AlertRoot & {
|
|
19
|
+
Title: typeof AlertTitle;
|
|
20
|
+
Description: typeof AlertDescription;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../src/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErE,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtE,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,kCAAkC;IAClC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,wCAAwC;IACxC,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,iBAAS,SAAS,CAAC,EACjB,OAAgB,EAChB,IAAI,EACJ,KAAK,EACL,WAAW,EACX,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,2CAcZ;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AACvD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAE1D;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AACxD,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,2CAEtE;AAED,eAAO,MAAM,KAAK;;;CAGhB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
interface AppShellContextValue {
|
|
3
|
+
mobileDrawerOpen: boolean;
|
|
4
|
+
setMobileDrawerOpen: (open: boolean) => void;
|
|
5
|
+
hasSidebar: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function useAppShell(): AppShellContextValue | null;
|
|
8
|
+
export interface AppShellProps extends ComponentProps<"div"> {
|
|
9
|
+
hasSidebar?: boolean;
|
|
10
|
+
hasFooter?: boolean;
|
|
11
|
+
mobileDrawerOpen?: boolean;
|
|
12
|
+
defaultMobileDrawerOpen?: boolean;
|
|
13
|
+
onMobileDrawerOpenChange?: (open: boolean) => void;
|
|
14
|
+
/**
|
|
15
|
+
* CSS color (e.g. `var(--color-purple-600)`) applied as `--color-system-accent`
|
|
16
|
+
* to the shell root. See [Customize › System accent](https://digital-udvikling.github.io/admin-design-system/basics/customize/#system-accent).
|
|
17
|
+
*/
|
|
18
|
+
systemAccent?: string;
|
|
19
|
+
children?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare function AppShellRoot({ hasSidebar, hasFooter, mobileDrawerOpen, defaultMobileDrawerOpen, onMobileDrawerOpenChange, systemAccent, className, style, children, ...rest }: AppShellProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type AppShellMainProps = ComponentProps<"main">;
|
|
23
|
+
declare function AppShellMain({ className, ...rest }: AppShellMainProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const AppShell: typeof AppShellRoot & {
|
|
25
|
+
Main: typeof AppShellMain;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=AppShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../src/AppShell.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAiB,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,UAAU,oBAAoB;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,mBAAmB,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,OAAO,CAAC;CACrB;AAID,wBAAgB,WAAW,IAAI,oBAAoB,GAAG,IAAI,CAEzD;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,wBAAwB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,iBAAS,YAAY,CAAC,EACpB,UAAkB,EAClB,SAAiB,EACjB,gBAAgB,EAChB,uBAA+B,EAC/B,wBAAwB,EACxB,YAAY,EACZ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,aAAa,2CAsCf;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEvD,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,iBAAiB,2CAE9D;AAED,eAAO,MAAM,QAAQ;;CAEnB,CAAC"}
|
package/dist/Badge.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export type BadgeVariant = "neutral" | "info" | "success" | "warning" | "danger" | "primary";
|
|
4
|
+
export type BadgeSize = "sm" | "md" | "lg";
|
|
5
|
+
export interface BadgeProps extends ComponentProps<"span"> {
|
|
6
|
+
variant?: BadgeVariant;
|
|
7
|
+
size?: BadgeSize;
|
|
8
|
+
/** Leading icon. */
|
|
9
|
+
icon?: IconProp;
|
|
10
|
+
}
|
|
11
|
+
export declare function Badge({ variant, size, icon, className, children, ...rest }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../src/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC7F,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,MAAM,CAAC;IACxD,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAmB,EACnB,IAAW,EACX,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,UAAU,2CAUZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export interface BrandTileProps extends ComponentProps<"span"> {
|
|
4
|
+
/** 1–2 letter monogram. Ignored if `icon` is provided. */
|
|
5
|
+
monogram?: string;
|
|
6
|
+
/** Icon component or element. Takes precedence over `monogram`. */
|
|
7
|
+
icon?: IconProp;
|
|
8
|
+
}
|
|
9
|
+
export declare function BrandTile({ monogram, icon, className, children, ...rest }: BrandTileProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=BrandTile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrandTile.d.ts","sourceRoot":"","sources":["../src/BrandTile.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC5D,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAMzF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export interface BreadcrumbsProps extends ComponentProps<"nav"> {
|
|
4
|
+
/** Custom separator between items. Defaults to "/" from CSS. */
|
|
5
|
+
separator?: ReactNode;
|
|
6
|
+
/** Accessible label for the nav landmark. */
|
|
7
|
+
"aria-label"?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function BreadcrumbsRoot({ separator, className, children, "aria-label": ariaLabel, ...rest }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type BreadcrumbItemAsLink = ComponentProps<"a"> & {
|
|
11
|
+
href: string;
|
|
12
|
+
current?: boolean;
|
|
13
|
+
icon?: IconProp;
|
|
14
|
+
};
|
|
15
|
+
type BreadcrumbItemAsSpan = ComponentProps<"span"> & {
|
|
16
|
+
href?: undefined;
|
|
17
|
+
current?: boolean;
|
|
18
|
+
icon?: IconProp;
|
|
19
|
+
};
|
|
20
|
+
export type BreadcrumbItemProps = BreadcrumbItemAsLink | BreadcrumbItemAsSpan;
|
|
21
|
+
declare function BreadcrumbItem(props: BreadcrumbItemProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type BreadcrumbSeparatorProps = ComponentProps<"span">;
|
|
23
|
+
declare function BreadcrumbSeparator({ className, children, ...rest }: BreadcrumbSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const Breadcrumbs: typeof BreadcrumbsRoot & {
|
|
25
|
+
Item: typeof BreadcrumbItem;
|
|
26
|
+
Separator: typeof BreadcrumbSeparator;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=Breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Breadcrumbs.d.ts","sourceRoot":"","sources":["../src/Breadcrumbs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAChG,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,gEAAgE;IAChE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,SAAS,EACT,QAAQ,EACR,YAAY,EAAE,SAAwB,EACtC,GAAG,IAAI,EACR,EAAE,gBAAgB,2CAclB;AAED,KAAK,oBAAoB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AACF,KAAK,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IACnD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAE9E,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CA6BjD;AAED,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE9D,iBAAS,mBAAmB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,wBAAwB,2CAMtF;AAED,eAAO,MAAM,WAAW;;;CAGtB,CAAC"}
|
package/dist/Button.d.ts
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { Button as BaseButton } from '@base-ui/react/button';
|
|
2
2
|
import { ComponentProps } from 'react';
|
|
3
|
+
import { IconProp } from './icon';
|
|
3
4
|
export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger";
|
|
4
5
|
export type ButtonSize = "sm" | "md" | "lg";
|
|
5
6
|
export interface ButtonProps extends ComponentProps<typeof BaseButton> {
|
|
6
7
|
variant?: ButtonVariant;
|
|
7
8
|
size?: ButtonSize;
|
|
8
|
-
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
/** Shows a spinner in place of the leading icon and disables interaction.
|
|
11
|
+
* Sets `aria-busy="true"` and the native `disabled` attribute. */
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
/** Leading icon. Pass a component (`icon={IconPlus}`) or an element. */
|
|
14
|
+
icon?: IconProp;
|
|
15
|
+
/** Trailing icon. Pass a component (`iconTrailing={IconArrowRight}`) or an element. */
|
|
16
|
+
iconTrailing?: IconProp;
|
|
9
17
|
}
|
|
10
|
-
export declare function Button({ variant, size,
|
|
18
|
+
export declare function Button({ variant, size, fullWidth, loading, icon, iconTrailing, className, type, disabled, children, ...rest }: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
19
|
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAC;AACzE,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5C,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,OAAO,UAAU,CAAC;IACpE,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;uEACmE;IACnE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wEAAwE;IACxE,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,uFAAuF;IACvF,YAAY,CAAC,EAAE,QAAQ,CAAC;CACzB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,SAAS,EACT,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,SAAS,EACT,IAAe,EACf,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,WAAW,2CAyBb"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type ButtonGroupOrientation = "horizontal" | "vertical";
|
|
3
|
+
export interface ButtonGroupProps extends ComponentProps<"div"> {
|
|
4
|
+
orientation?: ButtonGroupOrientation;
|
|
5
|
+
}
|
|
6
|
+
export declare function ButtonGroup({ orientation, role, className, ...rest }: ButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ButtonGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonGroup.d.ts","sourceRoot":"","sources":["../src/ButtonGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,sBAAsB,GAAG,YAAY,GAAG,UAAU,CAAC;AAE/D,MAAM,WAAW,gBAAiB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7D,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC;AAED,wBAAgB,WAAW,CAAC,EAC1B,WAA0B,EAC1B,IAAc,EACd,SAAS,EACT,GAAG,IAAI,EACR,EAAE,gBAAgB,2CAQlB"}
|
package/dist/Card.d.ts
CHANGED
|
@@ -1,18 +1,45 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export interface CardContainerProps extends ComponentProps<"div"> {
|
|
3
4
|
bordered?: boolean;
|
|
4
5
|
compact?: boolean;
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The bare `.card` container — no body, no title. Use this when you need to
|
|
9
|
+
* compose the internals yourself (e.g. a media block above the body).
|
|
10
|
+
*/
|
|
11
|
+
declare function CardContainer({ bordered, compact, className, ...rest }: CardContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export interface CardProps extends Omit<ComponentProps<"div">, "title"> {
|
|
13
|
+
bordered?: boolean;
|
|
14
|
+
compact?: boolean;
|
|
15
|
+
/** Leading icon for the title row. */
|
|
16
|
+
icon?: IconProp;
|
|
17
|
+
/** Renders as `<Card.Title>`. */
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
/** Renders as `<Card.Description>`. */
|
|
20
|
+
description?: ReactNode;
|
|
21
|
+
/** Renders as `<Card.Actions>`. */
|
|
22
|
+
actions?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Standard card: a `.card` container with a single `.card-body` that lays out
|
|
26
|
+
* an optional title (with icon), description, children, and actions. For
|
|
27
|
+
* anything outside that shape, use `<Card.Container>` and compose by hand.
|
|
28
|
+
*/
|
|
29
|
+
declare function CardRoot({ bordered, compact, icon, title, description, actions, className, children, ...rest }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
7
30
|
export type CardBodyProps = ComponentProps<"div">;
|
|
8
31
|
declare function CardBody({ className, ...rest }: CardBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
10
|
-
|
|
32
|
+
export interface CardTitleProps extends ComponentProps<"h3"> {
|
|
33
|
+
/** Leading icon. */
|
|
34
|
+
icon?: IconProp;
|
|
35
|
+
}
|
|
36
|
+
declare function CardTitle({ icon, className, children, ...rest }: CardTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
11
37
|
export type CardDescriptionProps = ComponentProps<"p">;
|
|
12
38
|
declare function CardDescription({ className, ...rest }: CardDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
39
|
export type CardActionsProps = ComponentProps<"div">;
|
|
14
40
|
declare function CardActions({ className, ...rest }: CardActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
15
41
|
export declare const Card: typeof CardRoot & {
|
|
42
|
+
Container: typeof CardContainer;
|
|
16
43
|
Body: typeof CardBody;
|
|
17
44
|
Title: typeof CardTitle;
|
|
18
45
|
Description: typeof CardDescription;
|
package/dist/Card.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../src/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,kBAAmB,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC/D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;GAGG;AACH,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAOnF;AAED,MAAM,WAAW,SAAU,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACrE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,iCAAiC;IACjC,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uCAAuC;IACvC,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mCAAmC;IACnC,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED;;;;GAIG;AACH,iBAAS,QAAQ,CAAC,EAChB,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,KAAK,EACL,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,SAAS,2CAYX;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAClD,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAEtD;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC1D,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AACD,iBAAS,SAAS,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAOxE;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AACvD,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,oBAAoB,2CAEpE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACrD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,eAAO,MAAM,IAAI;;;;;;CAMf,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type CheckboxProps = ComponentProps<typeof BaseCheckbox.Root>;
|
|
4
|
+
declare function CheckboxRoot({ className, children, ...rest }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type CheckboxIndicatorProps = ComponentProps<typeof BaseCheckbox.Indicator>;
|
|
6
|
+
declare function CheckboxIndicator({ className, ...rest }: CheckboxIndicatorProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const Checkbox: typeof CheckboxRoot & {
|
|
8
|
+
Indicator: typeof CheckboxIndicator;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../src/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAErE,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,aAAa,2CAUpE;AAED,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,SAAS,CAAC,CAAC;AAEnF,iBAAS,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,sBAAsB,2CAExE;AAoBD,eAAO,MAAM,QAAQ;;CAEnB,CAAC"}
|
package/dist/Field.d.ts
CHANGED
|
@@ -13,8 +13,11 @@ import { ComponentProps } from 'react';
|
|
|
13
13
|
*/
|
|
14
14
|
export type FieldProps = ComponentProps<typeof BaseField.Root>;
|
|
15
15
|
declare function FieldRoot({ className, ...rest }: FieldProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export type FieldLabelProps = ComponentProps<typeof BaseField.Label
|
|
17
|
-
|
|
16
|
+
export type FieldLabelProps = ComponentProps<typeof BaseField.Label> & {
|
|
17
|
+
/** Renders a red asterisk after the label text via `data-required`. */
|
|
18
|
+
required?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare function FieldLabel({ className, required, ...rest }: FieldLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
18
21
|
export type FieldDescriptionProps = ComponentProps<typeof BaseField.Description>;
|
|
19
22
|
declare function FieldDescription({ className, ...rest }: FieldDescriptionProps): import("react/jsx-runtime").JSX.Element;
|
|
20
23
|
export type FieldErrorProps = ComponentProps<typeof BaseField.Error>;
|
package/dist/Field.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../src/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../src/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AAE/D,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,UAAU,2CAEpD;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG;IACrE,uEAAuE;IACvE,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAQpE;AAED,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,WAAW,CAAC,CAAC;AAEjF,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,qBAAqB,2CAEtE;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC;AAErE,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAE1D;AAED,eAAO,MAAM,KAAK;;;;CAIhB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Input as BaseInput } from '@base-ui/react/input';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
export type FileInputVariant = "bordered" | "ghost" | "danger";
|
|
4
|
+
export type FileInputSize = "sm" | "md" | "lg";
|
|
5
|
+
type BaseInputProps = Omit<ComponentProps<typeof BaseInput>, "size" | "type">;
|
|
6
|
+
export interface FileInputProps extends BaseInputProps {
|
|
7
|
+
variant?: FileInputVariant;
|
|
8
|
+
inputSize?: FileInputSize;
|
|
9
|
+
}
|
|
10
|
+
export declare function FileInput({ variant, inputSize, className, ...rest }: FileInputProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=FileInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileInput.d.ts","sourceRoot":"","sources":["../src/FileInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE/C,KAAK,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE9E,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EACxB,OAAoB,EACpB,SAAgB,EAChB,SAAS,EACT,GAAG,IAAI,EACR,EAAE,cAAc,2CAWhB"}
|
package/dist/Footer.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type FooterProps = ComponentProps<"footer">;
|
|
3
|
+
declare function FooterRoot({ className, ...rest }: FooterProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export type FooterLinksProps = ComponentProps<"div">;
|
|
5
|
+
declare function FooterLinks({ className, ...rest }: FooterLinksProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type FooterLinkProps = ComponentProps<"a">;
|
|
7
|
+
declare function FooterLink({ className, children, ...rest }: FooterLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type FooterMetaProps = ComponentProps<"div">;
|
|
9
|
+
declare function FooterMeta({ className, ...rest }: FooterMetaProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const Footer: typeof FooterRoot & {
|
|
11
|
+
Links: typeof FooterLinks;
|
|
12
|
+
Link: typeof FooterLink;
|
|
13
|
+
Meta: typeof FooterMeta;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../src/Footer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAEtD;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAElD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAMpE;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAE1D;AAED,eAAO,MAAM,MAAM;;;;CAIjB,CAAC"}
|
package/dist/Input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../src/Input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,KAAK,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;AAErE,MAAM,WAAW,UAAW,SAAQ,cAAc;IAChD,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,KAAK,CAAC,EACpB,OAAoB,EACpB,SAAgB,EAChB,SAAS,EACT,IAAa,EACb,GAAG,IAAI,EACR,EAAE,UAAU,2CAWZ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
export type InputGroupProps = ComponentProps<"div">;
|
|
3
|
+
declare function InputGroupRoot({ className, ...rest }: InputGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export type InputGroupAddonProps = ComponentProps<"span">;
|
|
5
|
+
declare function InputGroupAddon({ className, ...rest }: InputGroupAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const InputGroup: typeof InputGroupRoot & {
|
|
7
|
+
Addon: typeof InputGroupAddon;
|
|
8
|
+
};
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=InputGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../src/InputGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAE9D;AAED,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE1D,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,oBAAoB,2CAEpE;AAED,eAAO,MAAM,UAAU;;CAErB,CAAC"}
|
package/dist/Menu.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export interface MenuProps extends ComponentProps<"details"> {
|
|
4
|
+
}
|
|
5
|
+
declare function MenuRoot({ className, ...rest }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type MenuTriggerProps = ComponentProps<"summary">;
|
|
7
|
+
declare function MenuTrigger({ className, ...rest }: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export type MenuPopupProps = ComponentProps<"div">;
|
|
9
|
+
declare function MenuPopup({ className, role, ...rest }: MenuPopupProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type MenuItemAsButton = ComponentProps<"button"> & {
|
|
11
|
+
href?: undefined;
|
|
12
|
+
icon?: IconProp;
|
|
13
|
+
};
|
|
14
|
+
type MenuItemAsLink = ComponentProps<"a"> & {
|
|
15
|
+
href: string;
|
|
16
|
+
icon?: IconProp;
|
|
17
|
+
};
|
|
18
|
+
export type MenuItemProps = MenuItemAsButton | MenuItemAsLink;
|
|
19
|
+
declare function MenuItem(props: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export type MenuSeparatorProps = ComponentProps<"hr">;
|
|
21
|
+
declare function MenuSeparator({ className, ...rest }: MenuSeparatorProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export type MenuGroupProps = ComponentProps<"div">;
|
|
23
|
+
declare function MenuGroup({ className, role, ...rest }: MenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export type MenuGroupLabelProps = ComponentProps<"div">;
|
|
25
|
+
declare function MenuGroupLabel({ className, ...rest }: MenuGroupLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export declare const Menu: typeof MenuRoot & {
|
|
27
|
+
Trigger: typeof MenuTrigger;
|
|
28
|
+
Popup: typeof MenuPopup;
|
|
29
|
+
Item: typeof MenuItem;
|
|
30
|
+
Separator: typeof MenuSeparator;
|
|
31
|
+
Group: typeof MenuGroup;
|
|
32
|
+
GroupLabel: typeof MenuGroupLabel;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../src/Menu.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAEnD,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,SAAS,CAAC;CAAG;AAE/D,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,2CAElD;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAEzD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnD,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,IAAa,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAEvE;AAED,KAAK,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AACzF,KAAK,cAAc,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE9E,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAE9D,iBAAS,QAAQ,CAAC,KAAK,EAAE,aAAa,2CAiBrC;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEtD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAEhE;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnD,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,IAAc,EAAE,GAAG,IAAI,EAAE,EAAE,cAAc,2CAExE;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAElE;AAED,eAAO,MAAM,IAAI;;;;;;;CAOf,CAAC"}
|
package/dist/Navbar.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { IconProp } from './icon';
|
|
3
|
+
export type NavbarProps = ComponentProps<"header">;
|
|
4
|
+
declare function NavbarRoot({ className, ...rest }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export type NavbarBrandProps = ComponentProps<"div">;
|
|
6
|
+
declare function NavbarBrand({ className, ...rest }: NavbarBrandProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export type NavbarItemsProps = ComponentProps<"nav">;
|
|
8
|
+
declare function NavbarItems({ className, ...rest }: NavbarItemsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface NavbarItemProps extends ComponentProps<"a"> {
|
|
10
|
+
active?: boolean;
|
|
11
|
+
/** Leading icon. */
|
|
12
|
+
icon?: IconProp;
|
|
13
|
+
}
|
|
14
|
+
declare function NavbarItem({ active, icon, className, children, ...rest }: NavbarItemProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface NavbarDropdownProps extends Omit<ComponentProps<"details">, "title"> {
|
|
16
|
+
/** Text shown in the trigger. */
|
|
17
|
+
label: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
declare function NavbarDropdown({ label, className, children, ...rest }: NavbarDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export type NavbarActionsProps = ComponentProps<"div">;
|
|
21
|
+
declare function NavbarActions({ className, ...rest }: NavbarActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export interface NavbarMobileToggleProps extends Omit<ComponentProps<"button">, "onClick" | "children"> {
|
|
23
|
+
/** Accessible label for the toggle. Default: "Open menu". */
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function NavbarMobileToggle({ label, className, type, ...rest }: NavbarMobileToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const Navbar: typeof NavbarRoot & {
|
|
28
|
+
Brand: typeof NavbarBrand;
|
|
29
|
+
Items: typeof NavbarItems;
|
|
30
|
+
Item: typeof NavbarItem;
|
|
31
|
+
Dropdown: typeof NavbarDropdown;
|
|
32
|
+
Actions: typeof NavbarActions;
|
|
33
|
+
MobileToggle: typeof NavbarMobileToggle;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=Navbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Navbar.d.ts","sourceRoot":"","sources":["../src/Navbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGnD,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEnD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,2CAEtD;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,2CAE5D;AAED,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,GAAG,CAAC;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB;IACpB,IAAI,CAAC,EAAE,QAAQ,CAAC;CACjB;AAED,iBAAS,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,eAAe,2CAWlF;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IACnF,iCAAiC;IACjC,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,iBAAS,cAAc,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,mBAAmB,2CAOnF;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAEhE;AAED,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CACnD,cAAc,CAAC,QAAQ,CAAC,EACxB,SAAS,GAAG,UAAU,CACvB;IACC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,KAAmB,EACnB,SAAS,EACT,IAAe,EACf,GAAG,IAAI,EACR,EAAE,uBAAuB,2CAczB;AAED,eAAO,MAAM,MAAM;;;;;;;CAOjB,CAAC"}
|
|
@@ -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,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,oEAAoE;IACpE,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;4EACwE;IACxE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,SAAS,CAAC;CAClD;AAED;;;;;GAKG;AACH,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,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"}
|