@gryt/ui 0.1.2 → 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 +90 -5
- package/dist/GrytProvider.d.ts +6 -5
- package/dist/GrytProvider.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts +13 -6
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Alert/Alert.d.ts +6 -3
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +11 -3
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Badge/Badge.d.ts +7 -3
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +10 -5
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +10 -7
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +8 -3
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Chip/Chip.d.ts +9 -3
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Composer/Composer.d.ts +2 -0
- package/dist/components/Composer/Composer.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +18 -7
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Divider/Divider.d.ts +6 -3
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +18 -3
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +8 -5
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Menu/Menu.d.ts +14 -6
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts +13 -4
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Radio/Radio.d.ts +11 -3
- package/dist/components/Radio/Radio.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +9 -6
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +8 -3
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Slider/Slider.d.ts +9 -3
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Surface/Surface.d.ts +3 -3
- package/dist/components/Surface/Surface.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts +8 -3
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +15 -6
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/TextField/TextField.d.ts +14 -3
- package/dist/components/TextField/TextField.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +10 -3
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/utils/styles.d.ts +13 -0
- package/dist/components/utils/styles.d.ts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -15
- package/dist/index.d.ts +18 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1148 -3492
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/createGrytTheme.d.ts +13 -3
- package/dist/theme/createGrytTheme.d.ts.map +1 -1
- package/package.json +3 -7
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
React component library for [Gryt](https://github.com/Gryt-chat/gryt), the open-source WebRTC voice chat platform.
|
|
4
4
|
|
|
5
|
-
Built with
|
|
5
|
+
Built with Base UI, React, Phosphor icons, Tailwind-authored compiled CSS, and the Gryt design palette from [Gryt-chat/code-theme](https://github.com/Gryt-chat/code-theme).
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -10,29 +10,114 @@ Built with MUI v7, React, Tailwind-authored compiled CSS, and the Gryt design pa
|
|
|
10
10
|
bun add @gryt/ui
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
```sh
|
|
14
|
+
npm install @gryt/ui
|
|
15
|
+
pnpm add @gryt/ui
|
|
16
|
+
yarn add @gryt/ui
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Gryt UI includes Base UI, Phosphor icons, and its compiled CSS. Your app should provide React and React DOM. There is no CSS-in-JS runtime.
|
|
14
20
|
|
|
15
21
|
## Usage
|
|
16
22
|
|
|
23
|
+
Import the stylesheet once in your app's global entry file.
|
|
24
|
+
|
|
17
25
|
```tsx
|
|
26
|
+
// main.tsx, app.tsx, layout.tsx, or another global app entry
|
|
18
27
|
import "@gryt/ui/styles.css";
|
|
19
|
-
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
For Next.js, import the stylesheet from `app/layout.tsx` or `pages/_app.tsx`.
|
|
31
|
+
|
|
32
|
+
Wrap your app with `GrytProvider`, then use the components.
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { Button, GrytProvider, TextField } from "@gryt/ui";
|
|
20
36
|
|
|
21
37
|
export function App() {
|
|
22
38
|
return (
|
|
23
39
|
<GrytProvider>
|
|
24
|
-
<
|
|
40
|
+
<form>
|
|
41
|
+
<TextField label="Channel name" placeholder="Design review" />
|
|
42
|
+
<Button tone="primary" size="medium">
|
|
43
|
+
Create channel
|
|
44
|
+
</Button>
|
|
45
|
+
</form>
|
|
25
46
|
</GrytProvider>
|
|
26
47
|
);
|
|
27
48
|
}
|
|
28
49
|
```
|
|
29
50
|
|
|
51
|
+
## Examples
|
|
52
|
+
|
|
53
|
+
Buttons support Gryt tones, variants, and sizes.
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
import { Button } from "@gryt/ui";
|
|
57
|
+
|
|
58
|
+
export function Actions() {
|
|
59
|
+
return (
|
|
60
|
+
<>
|
|
61
|
+
<Button tone="primary">Save</Button>
|
|
62
|
+
<Button tone="secondary" variant="outlined">
|
|
63
|
+
Invite
|
|
64
|
+
</Button>
|
|
65
|
+
<Button tone="danger" variant="contained" size="small">
|
|
66
|
+
Delete
|
|
67
|
+
</Button>
|
|
68
|
+
<Button tone="ghost" variant="text" size="xsmall">
|
|
69
|
+
Dismiss
|
|
70
|
+
</Button>
|
|
71
|
+
</>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Form primitives are Base UI-backed and inherit the Gryt theme.
|
|
77
|
+
|
|
78
|
+
```tsx
|
|
79
|
+
import { Select, Switch, TextField } from "@gryt/ui";
|
|
80
|
+
|
|
81
|
+
export function Preferences() {
|
|
82
|
+
return (
|
|
83
|
+
<>
|
|
84
|
+
<TextField label="Display name" placeholder="Sivert" />
|
|
85
|
+
<Select
|
|
86
|
+
label="Voice activity"
|
|
87
|
+
defaultValue="push-to-talk"
|
|
88
|
+
options={[
|
|
89
|
+
{ label: "Push to talk", value: "push-to-talk" },
|
|
90
|
+
{ label: "Open mic", value: "open-mic" }
|
|
91
|
+
]}
|
|
92
|
+
/>
|
|
93
|
+
<Switch
|
|
94
|
+
defaultChecked
|
|
95
|
+
inputProps={{ "aria-label": "Noise suppression" }}
|
|
96
|
+
/>
|
|
97
|
+
</>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
30
102
|
## Components
|
|
31
103
|
|
|
32
|
-
Includes
|
|
104
|
+
Includes Base UI-backed primitives for buttons, inputs, selects, tabs, menus, dialogs, drawers, cards, feedback, data display, and Gryt chat-specific components like `Composer`, `ConversationItem`, and `MessageBubble`.
|
|
105
|
+
|
|
106
|
+
The package also exports `GrytProvider`, `createGrytTheme`, and `grytTokens` for apps that need a consistent Gryt theme boundary.
|
|
107
|
+
|
|
108
|
+
## Styles
|
|
109
|
+
|
|
110
|
+
`@gryt/ui/styles.css` contains the compiled component styles. Import it once globally; do not import it inside every component.
|
|
111
|
+
|
|
112
|
+
```tsx
|
|
113
|
+
import "@gryt/ui/styles.css";
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
If your bundler supports CSS imports from npm packages, no extra CSS configuration is needed.
|
|
33
117
|
|
|
34
118
|
## Links
|
|
35
119
|
|
|
120
|
+
- Package source: [Gryt-chat/ui](https://github.com/Gryt-chat/ui)
|
|
36
121
|
- Gryt platform: [Gryt-chat/gryt](https://github.com/Gryt-chat/gryt)
|
|
37
122
|
- Gryt client: [Gryt-chat/client](https://github.com/Gryt-chat/client)
|
|
38
123
|
- Gryt docs: [docs.gryt.chat](https://docs.gryt.chat)
|
package/dist/GrytProvider.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { GrytThemeOptions } from './theme/createGrytTheme.js';
|
|
3
3
|
export interface GrytProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
|
-
theme?:
|
|
6
|
-
|
|
5
|
+
theme?: CSSProperties | GrytThemeOptions;
|
|
6
|
+
className?: string;
|
|
7
|
+
tooltipDelay?: number;
|
|
7
8
|
}
|
|
8
|
-
export declare function GrytProvider({ children, theme,
|
|
9
|
+
export declare function GrytProvider({ children, className, theme, tooltipDelay }: GrytProviderProps): import("react").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=GrytProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GrytProvider.d.ts","sourceRoot":"","sources":["../src/GrytProvider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GrytProvider.d.ts","sourceRoot":"","sources":["../src/GrytProvider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IAEpB,KAAK,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAUD,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,KAAK,EACL,YAAkB,EACnB,EAAE,iBAAiB,+BASnB"}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type AccordionProps =
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
import { Accordion as BaseAccordion } from '@base-ui/react/accordion';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
export type AccordionProps = ComponentPropsWithoutRef<typeof BaseAccordion.Root>;
|
|
4
|
+
export type AccordionItemProps = ComponentPropsWithoutRef<typeof BaseAccordion.Item>;
|
|
5
|
+
export type AccordionPanelProps = ComponentPropsWithoutRef<typeof BaseAccordion.Panel>;
|
|
6
|
+
export interface AccordionTriggerProps extends ComponentPropsWithoutRef<typeof BaseAccordion.Trigger> {
|
|
7
|
+
expandIcon?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
export declare const Accordion: import('react').ForwardRefExoticComponent<Omit<BaseAccordion.Root.Props<unknown>, "ref"> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
10
|
+
Item: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AccordionItemProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Trigger: import('react').ForwardRefExoticComponent<AccordionTriggerProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
Panel: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AccordionPanelProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
};
|
|
7
14
|
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjE,MAAM,MAAM,cAAc,GAAG,wBAAwB,CACnD,OAAO,aAAa,CAAC,IAAI,CAC1B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,wBAAwB,CACvD,OAAO,aAAa,CAAC,IAAI,CAC1B,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CACxD,OAAO,aAAa,CAAC,KAAK,CAC3B,CAAC;AA8BF,MAAM,WAAW,qBACf,SAAQ,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC;IAG9D,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB;AAyDD,eAAO,MAAM,SAAS;;;;CAAgD,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
export type AlertSeverity = "info" | "success" | "warning" | "error";
|
|
3
|
+
export interface AlertProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
severity?: AlertSeverity;
|
|
5
|
+
}
|
|
6
|
+
export declare const Alert: import('react').ForwardRefExoticComponent<AlertProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
7
|
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/Alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAYrE,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,cAAc,CAAC;IAChE,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,uGAgBhB,CAAC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Avatar as BaseAvatar } from '@base-ui/react/avatar';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
export type AvatarSize = "small" | "medium" | "large";
|
|
4
|
+
export interface AvatarProps extends Omit<ComponentPropsWithoutRef<typeof BaseAvatar.Root>, "className"> {
|
|
5
|
+
src?: string;
|
|
6
|
+
alt?: string;
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
className?: string;
|
|
9
|
+
fallback?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const Avatar: import('react').ForwardRefExoticComponent<AvatarProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
4
12
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjE,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAQtD,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC3E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,eAAO,MAAM,MAAM,yGA2BjB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
badgeContent?: ReactNode;
|
|
4
|
+
showZero?: boolean;
|
|
5
|
+
max?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const Badge: import('react').ForwardRefExoticComponent<BadgeProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
4
8
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,eAAe,CAAC;IAEjE,YAAY,CAAC,EAAE,SAAS,CAAC;IAGzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,KAAK,wGA8BhB,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Button as BaseButton } from '@base-ui/react/button';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
3
|
+
type ButtonTone = "primary" | "secondary" | "neutral" | "danger" | "ghost";
|
|
4
|
+
type ButtonSize = "xsmall" | "small" | "medium" | "large";
|
|
5
|
+
export interface ButtonProps extends Omit<ComponentPropsWithoutRef<typeof BaseButton>, "className"> {
|
|
6
|
+
tone?: ButtonTone;
|
|
5
7
|
size?: ButtonSize;
|
|
8
|
+
className?: string;
|
|
9
|
+
startIcon?: ReactNode;
|
|
10
|
+
endIcon?: ReactNode;
|
|
6
11
|
}
|
|
7
|
-
export declare const Button: import('react').ForwardRefExoticComponent<
|
|
12
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
13
|
export {};
|
|
9
14
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGjE,KAAK,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3E,KAAK,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAyB1D,MAAM,WAAW,WACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,CAAC;IACtE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,2GA6ClB,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type CardProps = HTMLAttributes<HTMLDivElement>;
|
|
3
|
+
export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export interface CardHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
5
|
+
title?: ReactNode;
|
|
6
|
+
subheader?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function CardHeader({ children, className, subheader, title, ...props }: CardHeaderProps): import("react").JSX.Element;
|
|
9
|
+
export declare function CardContent({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
10
|
+
export declare function CardActions({ className, ...props }: HTMLAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
8
11
|
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/Card/Card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,IAAI,sGAcf,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;IACrD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,SAAS,EACT,KAAK,EACL,GAAG,KAAK,EACT,EAAE,eAAe,+BAejB;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,+BAUhC;AAED,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,cAAc,CAAC,cAAc,CAAC,+BAUhC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Checkbox as BaseCheckbox } from '@base-ui/react/checkbox';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { Tone } from '../utils/styles.js';
|
|
4
|
+
export interface CheckboxProps extends Omit<ComponentPropsWithoutRef<typeof BaseCheckbox.Root>, "className"> {
|
|
5
|
+
tone?: Tone;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
4
9
|
//# sourceMappingURL=Checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/Checkbox/Checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,wBAAwB,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,EAClD,WAAW,CACZ;IACD,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,QAAQ,6GA8CpB,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
3
|
-
export
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
export type ChipTone = "neutral" | "primary" | "secondary" | "success" | "warning" | "danger";
|
|
3
|
+
export interface ChipProps extends Omit<HTMLAttributes<HTMLSpanElement>, "onDelete"> {
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
tone?: ChipTone;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
onDelete?: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const Chip: import('react').ForwardRefExoticComponent<ChipProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
4
10
|
//# sourceMappingURL=Chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CAAC;AAYb,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,UAAU,CAAC;IACzD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,IAAI,uGAgCf,CAAC"}
|
|
@@ -3,6 +3,8 @@ export interface ComposerProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
3
3
|
onSubmit?: FormEventHandler<HTMLFormElement>;
|
|
4
4
|
submitLabel?: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
minRows?: number;
|
|
7
|
+
maxRows?: number;
|
|
6
8
|
}
|
|
7
9
|
export declare const Composer: import('react').ForwardRefExoticComponent<ComposerProps & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
8
10
|
//# sourceMappingURL=Composer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Composer.d.ts","sourceRoot":"","sources":["../../../src/components/Composer/Composer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,OAAO,CAAC;AAKf,MAAM,WAAW,aACf,SAAQ,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACrE,QAAQ,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,QAAQ,+GA6EpB,CAAC"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
import { Dialog as BaseDialog } from '@base-ui/react/dialog';
|
|
2
|
+
import { ComponentPropsWithoutRef, HTMLAttributes } from 'react';
|
|
3
|
+
export type DialogBackdropProps = ComponentPropsWithoutRef<typeof BaseDialog.Backdrop>;
|
|
4
|
+
export type DialogPopupProps = ComponentPropsWithoutRef<typeof BaseDialog.Popup>;
|
|
5
|
+
export type DialogTitleProps = ComponentPropsWithoutRef<typeof BaseDialog.Title>;
|
|
6
|
+
export type DialogDescriptionProps = ComponentPropsWithoutRef<typeof BaseDialog.Description>;
|
|
7
|
+
export type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
+
export declare const Dialog: {
|
|
9
|
+
Root: typeof BaseDialog.Root;
|
|
10
|
+
Trigger: BaseDialog.Trigger;
|
|
11
|
+
Portal: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogPortalProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Close: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogCloseProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Backdrop: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogBackdropProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
+
Popup: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogPopupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Title: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogTitleProps, "ref"> & import('react').RefAttributes<HTMLHeadingElement>, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
Description: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogDescriptionProps, "ref"> & import('react').RefAttributes<HTMLParagraphElement>, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
17
|
+
Footer: import('react').ForwardRefExoticComponent<DialogFooterProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
8
19
|
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAStE,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CACxD,OAAO,UAAU,CAAC,QAAQ,CAC3B,CAAC;AAoBF,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CACrD,OAAO,UAAU,CAAC,KAAK,CACxB,CAAC;AAsBF,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CACrD,OAAO,UAAU,CAAC,KAAK,CACxB,CAAC;AAiBF,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAC3D,OAAO,UAAU,CAAC,WAAW,CAC9B,CAAC;AAiBF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAmB/D,eAAO,MAAM,MAAM;;;;;;;;;;CAUlB,CAAC"}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Separator } from '@base-ui/react/separator';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export interface DividerProps extends Omit<ComponentPropsWithoutRef<typeof Separator>, "className"> {
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Divider: import('react').ForwardRefExoticComponent<DividerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
7
|
//# sourceMappingURL=Divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Divider.d.ts","sourceRoot":"","sources":["../../../src/components/Divider/Divider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,EAAE,WAAW,CAAC;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,OAAO,yGAenB,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { Dialog as BaseDialog } from '@base-ui/react/dialog';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export type DrawerSide = "left" | "right" | "top" | "bottom";
|
|
4
|
+
export type DrawerPopupProps = ComponentPropsWithoutRef<typeof BaseDialog.Popup> & {
|
|
5
|
+
side?: DrawerSide;
|
|
6
|
+
};
|
|
7
|
+
export declare const Drawer: {
|
|
8
|
+
Root: typeof BaseDialog.Root;
|
|
9
|
+
Trigger: BaseDialog.Trigger;
|
|
10
|
+
Portal: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogPortalProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Close: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogCloseProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
12
|
+
Title: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogTitleProps, "ref"> & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
13
|
+
Description: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').AlertDialogDescriptionProps, "ref"> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
14
|
+
Backdrop: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogBackdropProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
|
+
Popup: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogPopupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
16
|
+
side?: DrawerSide;
|
|
17
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
|
+
};
|
|
4
19
|
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAmB7D,MAAM,MAAM,gBAAgB,GAAG,wBAAwB,CACrD,OAAO,UAAU,CAAC,KAAK,CACxB,GAAG;IACF,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB,CAAC;AAuCF,eAAO,MAAM,MAAM;;;;;;;;;eAxCV,UAAU;;CAiDlB,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Button as BaseButton } from '@base-ui/react/button';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
type IconButtonTone = "primary" | "secondary" | "neutral" | "danger" | "ghost";
|
|
4
|
+
type IconButtonSize = "xsmall" | "small" | "medium" | "large";
|
|
5
|
+
export interface IconButtonProps extends Omit<ComponentPropsWithoutRef<typeof BaseButton>, "className"> {
|
|
6
|
+
tone?: IconButtonTone;
|
|
5
7
|
size?: IconButtonSize;
|
|
8
|
+
className?: string;
|
|
6
9
|
}
|
|
7
|
-
export declare const IconButton: import('react').ForwardRefExoticComponent<
|
|
10
|
+
export declare const IconButton: import('react').ForwardRefExoticComponent<IconButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
8
11
|
export {};
|
|
9
12
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/components/IconButton/IconButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,KAAK,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC/E,KAAK,cAAc,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAsB9D,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,CAAC;IACtE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,+GA0BtB,CAAC"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export type
|
|
4
|
-
export type MenuItemProps =
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
1
|
+
import { Menu as BaseMenu } from '@base-ui/react/menu';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export type MenuPopupProps = ComponentPropsWithoutRef<typeof BaseMenu.Popup>;
|
|
4
|
+
export type MenuItemProps = ComponentPropsWithoutRef<typeof BaseMenu.Item>;
|
|
5
|
+
export type MenuPositionerProps = ComponentPropsWithoutRef<typeof BaseMenu.Positioner>;
|
|
6
|
+
export declare const Menu: {
|
|
7
|
+
Root: <Payload>(props: BaseMenu.Root.Props<Payload>) => import("react").JSX.Element;
|
|
8
|
+
Trigger: BaseMenu.Trigger;
|
|
9
|
+
Portal: import('react').ForwardRefExoticComponent<Omit<import('@base-ui/react').ContextMenuPortalProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Positioner: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuPositionerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
Popup: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuPopupProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Item: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').ContextMenuItemProps, "ref"> & import('react').RefAttributes<HTMLElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
Separator: import('react').ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SeparatorProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
|
+
};
|
|
7
15
|
//# sourceMappingURL=Menu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,cAAc,GAAG,wBAAwB,CAAC,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC7E,MAAM,MAAM,aAAa,GAAG,wBAAwB,CAAC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,wBAAwB,CACxD,OAAO,QAAQ,CAAC,UAAU,CAC3B,CAAC;AAmEF,eAAO,MAAM,IAAI;;;;;;;;CAQhB,CAAC"}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
import { Progress as BaseProgress } from '@base-ui/react/progress';
|
|
2
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export interface ProgressProps extends Omit<ComponentPropsWithoutRef<typeof BaseProgress.Root>, "className" | "value"> {
|
|
4
|
+
className?: string;
|
|
5
|
+
value?: number | null;
|
|
6
|
+
}
|
|
7
|
+
export declare function Progress({ className, value, ...props }: ProgressProps): import("react").JSX.Element;
|
|
8
|
+
export interface SpinnerProps {
|
|
9
|
+
size?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function Spinner({ className, size, "aria-label": ariaLabel }: SpinnerProps): import("react").JSX.Element;
|
|
5
14
|
//# sourceMappingURL=Progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,MAAM,WAAW,aACf,SAAQ,IAAI,CACV,wBAAwB,CAAC,OAAO,YAAY,CAAC,IAAI,CAAC,EAClD,WAAW,GAAG,OAAO,CACtB;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,KAAY,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAc5E;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAKD,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,IAAS,EACT,YAAY,EAAE,SAAqB,EACpC,EAAE,YAAY,+BAad"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { Radio as BaseRadio } from '@base-ui/react/radio';
|
|
2
|
+
import { RadioGroup as BaseRadioGroup } from '@base-ui/react/radio-group';
|
|
3
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
4
|
+
import { Tone } from '../utils/styles.js';
|
|
5
|
+
export interface RadioProps extends Omit<ComponentPropsWithoutRef<typeof BaseRadio.Root>, "className"> {
|
|
6
|
+
tone?: Tone;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export type RadioGroupProps = ComponentPropsWithoutRef<typeof BaseRadioGroup>;
|
|
11
|
+
export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<BaseRadioGroup.Props<unknown>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
4
12
|
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAQtD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAC1E,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,KAAK,0GAoChB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC,OAAO,cAAc,CAAC,CAAC;AAE9E,eAAO,MAAM,UAAU,uIAUtB,CAAC"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { TextFieldProps } from '../TextField/TextField.js';
|
|
1
|
+
import { Select as BaseSelect } from '@base-ui/react/select';
|
|
2
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
4
3
|
export interface SelectOption {
|
|
5
4
|
label: ReactNode;
|
|
6
5
|
value: string | number;
|
|
7
6
|
disabled?: boolean;
|
|
8
7
|
}
|
|
9
|
-
export
|
|
8
|
+
export type SelectSize = "small" | "medium";
|
|
9
|
+
export interface SelectProps extends Omit<ComponentPropsWithoutRef<typeof BaseSelect.Root>, "children" | "items"> {
|
|
10
10
|
options?: SelectOption[];
|
|
11
|
+
label?: ReactNode;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
size?: SelectSize;
|
|
14
|
+
className?: string;
|
|
11
15
|
}
|
|
12
|
-
export declare function Select({
|
|
13
|
-
export { MenuItem };
|
|
16
|
+
export declare function Select({ className, label, options, placeholder, size, ...props }: SelectProps): import("react").JSX.Element;
|
|
14
17
|
//# sourceMappingURL=Select.d.ts.map
|