moduix 0.6.5 → 0.8.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 +99 -22
- package/dist/components/Accordion/Accordion.d.ts +28 -3
- package/dist/components/Accordion/index.d.ts +1 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +18 -5
- package/dist/components/AlertDialog/index.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +25 -1
- package/dist/components/Autocomplete/index.d.ts +1 -1
- package/dist/components/Bleed/Bleed.d.ts +3 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +43 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +12 -3
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +4 -1
- package/dist/components/CheckboxGroup/index.d.ts +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts +26 -3
- package/dist/components/Collapsible/index.d.ts +1 -1
- package/dist/components/Combobox/Combobox.d.ts +28 -1
- package/dist/components/Combobox/index.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +8 -5
- package/dist/components/Dialog/index.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +12 -8
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Field/Field.d.ts +11 -1
- package/dist/components/Field/index.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +3 -1
- package/dist/components/Fieldset/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +4 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts +59 -0
- package/dist/components/Lightbox/index.d.ts +1 -0
- package/dist/components/List/List.d.ts +10 -3
- package/dist/components/Menu/Menu.d.ts +9 -6
- package/dist/components/Menu/index.d.ts +1 -1
- package/dist/components/Menubar/Menubar.d.ts +9 -6
- package/dist/components/Menubar/index.d.ts +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +34 -5
- package/dist/components/NavigationMenu/index.d.ts +1 -1
- package/dist/components/NumberField/NumberField.d.ts +15 -6
- package/dist/components/NumberField/index.d.ts +2 -2
- package/dist/components/OTPField/OTPField.d.ts +15 -1
- package/dist/components/Pagination/Pagination.d.ts +23 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Popover/Popover.d.ts +11 -12
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/PreviewCard/index.d.ts +1 -1
- package/dist/components/Progress/Progress.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +9 -10
- package/dist/components/Radio/index.d.ts +2 -2
- package/dist/components/ScrollArea/ScrollArea.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +10 -7
- package/dist/components/Select/index.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +9 -6
- package/dist/components/Switch/index.d.ts +2 -2
- package/dist/components/Tabs/Tabs.d.ts +6 -2
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +7 -5
- package/dist/components/Toast/Toast.d.ts +1 -4
- package/dist/components/Tooltip/Tooltip.d.ts +9 -6
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2005 -1462
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,18 +1,53 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/moduix)
|
|
4
|
+
[](https://www.typescriptlang.org/)
|
|
5
|
+
[](https://turbo.build/)
|
|
6
|
+
|
|
1
7
|
# moduix
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
Composable React components for product interfaces, built on top of
|
|
10
|
+
[Base UI](https://base-ui.com/) primitives.
|
|
11
|
+
|
|
12
|
+
moduix gives you ready-made components with accessible behavior, native CSS styles, and a
|
|
13
|
+
composition-first API. It is inspired by the clarity of
|
|
14
|
+
[shadcn/ui](https://ui.shadcn.com/), and it is trying to combine two useful workflows: install
|
|
15
|
+
components as a regular npm package when that fits your project, or copy component source when
|
|
16
|
+
you need direct ownership.
|
|
17
|
+
|
|
18
|
+
## Why It Exists
|
|
19
|
+
|
|
20
|
+
moduix started as an internal tool for shared product UI. We needed a component library that
|
|
21
|
+
was practical enough for real application screens, predictable enough to use across teams, and
|
|
22
|
+
small enough to stay easy to understand.
|
|
23
|
+
|
|
24
|
+
The library is now public because it may be useful outside of the original company context. If
|
|
25
|
+
it helps another team build consistent interfaces faster, that is already a good outcome.
|
|
4
26
|
|
|
5
|
-
##
|
|
27
|
+
## Principles
|
|
6
28
|
|
|
7
|
-
|
|
29
|
+
- **Base UI underneath.** Components are built on accessible Base UI primitives instead of
|
|
30
|
+
reimplementing low-level interaction behavior.
|
|
31
|
+
- **Small dependency surface.** Base UI is the only external UI primitive layer. The package
|
|
32
|
+
keeps the runtime stack intentionally small and does not bring a styling framework with it.
|
|
33
|
+
- **Two installation paths.** Use moduix as an npm package, or copy component source into your
|
|
34
|
+
project when direct ownership is more important than package-managed updates.
|
|
35
|
+
- **Composable API.** Components are exposed as named parts, so complex UI can be assembled
|
|
36
|
+
without hiding important structure.
|
|
37
|
+
- **Native CSS.** Styles are distributed as CSS, use CSS custom properties, and are designed to
|
|
38
|
+
work with your existing styling approach.
|
|
39
|
+
- **Not a shadcn/ui competitor.** shadcn/ui is a major inspiration for the developer experience.
|
|
40
|
+
moduix explores whether package-managed components and copy-owned components can coexist in
|
|
41
|
+
one library.
|
|
8
42
|
|
|
9
|
-
##
|
|
43
|
+
## Installation
|
|
10
44
|
|
|
11
45
|
```bash
|
|
12
46
|
npm install moduix @base-ui/react
|
|
13
47
|
```
|
|
14
48
|
|
|
15
|
-
`react`, `react-dom`, and `@base-ui/react` are peer dependencies. They stay in your application
|
|
49
|
+
`react`, `react-dom`, and `@base-ui/react` are peer dependencies. They stay in your application
|
|
50
|
+
bundle, so moduix does not ship duplicate React or Base UI runtimes.
|
|
16
51
|
|
|
17
52
|
## Usage
|
|
18
53
|
|
|
@@ -22,7 +57,7 @@ Import the library styles once in your application entry point:
|
|
|
22
57
|
import 'moduix/style.css';
|
|
23
58
|
```
|
|
24
59
|
|
|
25
|
-
Then import the components you need:
|
|
60
|
+
Then import and compose the components you need:
|
|
26
61
|
|
|
27
62
|
```tsx
|
|
28
63
|
import { Button, Dialog, DialogContent, DialogTitle, DialogTrigger } from 'moduix';
|
|
@@ -39,11 +74,13 @@ export function Example() {
|
|
|
39
74
|
}
|
|
40
75
|
```
|
|
41
76
|
|
|
42
|
-
The
|
|
77
|
+
The distributed stylesheet includes component styles and design tokens. It does not force a
|
|
78
|
+
global application theme or utility CSS runtime.
|
|
43
79
|
|
|
44
80
|
## Styling
|
|
45
81
|
|
|
46
|
-
Components
|
|
82
|
+
Components accept `className` where customization is expected and expose stable `data-slot`
|
|
83
|
+
attributes for targeted styling. Theme values are regular CSS custom properties:
|
|
47
84
|
|
|
48
85
|
```css
|
|
49
86
|
:root {
|
|
@@ -52,17 +89,37 @@ Components expose stable `data-slot` attributes and accept `className` where cus
|
|
|
52
89
|
}
|
|
53
90
|
```
|
|
54
91
|
|
|
55
|
-
|
|
92
|
+
Library CSS is organized with cascade layers:
|
|
56
93
|
|
|
57
94
|
```css
|
|
58
95
|
@layer ui.reset, ui.tokens, ui.components;
|
|
59
96
|
```
|
|
60
97
|
|
|
61
|
-
This keeps
|
|
98
|
+
This keeps defaults predictable while still letting application styles override tokens,
|
|
99
|
+
classes, or component-level variables.
|
|
100
|
+
|
|
101
|
+
## What Is Included
|
|
102
|
+
|
|
103
|
+
The package exports composed components for common product UI needs, including Accordion,
|
|
104
|
+
AlertDialog, Autocomplete, Avatar, Button, Checkbox, Dialog, Drawer, Field, Form, Input,
|
|
105
|
+
Menu, NavigationMenu, Popover, Select, Tabs, Toast, Tooltip, and supporting primitives.
|
|
106
|
+
|
|
107
|
+
## Documentation
|
|
108
|
+
|
|
109
|
+
- Documentation: https://moduix.blinks44.workers.dev/
|
|
110
|
+
- npm package: https://www.npmjs.com/package/moduix
|
|
111
|
+
- UI package README: `packages/ui/README.md`
|
|
112
|
+
- Docs app README: `apps/docs/README.md`
|
|
113
|
+
|
|
114
|
+
## Repository Quick Start
|
|
62
115
|
|
|
63
|
-
|
|
116
|
+
From the monorepo root:
|
|
64
117
|
|
|
65
|
-
|
|
118
|
+
```bash
|
|
119
|
+
npm install
|
|
120
|
+
npm run build:ui
|
|
121
|
+
npm run dev
|
|
122
|
+
```
|
|
66
123
|
|
|
67
124
|
## Acknowledgements
|
|
68
125
|
|
|
@@ -76,16 +133,36 @@ This project could not exist without the work of these teams and communities:
|
|
|
76
133
|
- [TanStack](https://tanstack.com/) for the application tooling used by the docs.
|
|
77
134
|
- [Voidzero](https://voidzero.dev/) for awesome JS tools
|
|
78
135
|
|
|
79
|
-
##
|
|
136
|
+
## Contributing
|
|
80
137
|
|
|
81
|
-
|
|
138
|
+
Contributions are welcome, especially bug reports, accessibility fixes, documentation
|
|
139
|
+
improvements, and focused component improvements.
|
|
82
140
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
npm
|
|
89
|
-
```
|
|
141
|
+
Before opening a pull request:
|
|
142
|
+
|
|
143
|
+
1. Install dependencies from the repository root:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
npm install
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
2. Build the UI package when your change affects `packages/ui` or documentation examples:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
npm run build:ui
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
3. Run the required checks:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
npm run fmt:fix
|
|
159
|
+
npm run lint:check
|
|
160
|
+
npm run tsc:check
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
Keep pull requests small and specific. For component changes, update the related stories,
|
|
164
|
+
exports, and documentation so the package and docs stay in sync.
|
|
90
165
|
|
|
91
|
-
|
|
166
|
+
Feel free to use agents or code generation tools, but
|
|
167
|
+
please review the result before submitting. The components are intentionally small and direct,
|
|
168
|
+
so the goal is to keep the code readable, maintainable, and free from unnecessary abstractions.
|
|
@@ -3,15 +3,40 @@ import * as React from 'react';
|
|
|
3
3
|
declare function Accordion<Value = unknown>({ className, ...props }: AccordionProps<Value>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function AccordionHeader({ className, ...props }: AccordionPrimitive.Header.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function AccordionTrigger({ className, ...props }:
|
|
6
|
+
declare function AccordionTrigger({ className, children, icon, hideIcon, classNames, slotProps, ...props }: AccordionTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare function AccordionTriggerIcon({ className, children, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
declare function AccordionPanel({ className, ...props }: AccordionPrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
type AccordionProps<Value = unknown> = AccordionPrimitive.Root.Props<Value>;
|
|
10
10
|
type AccordionValue<Value = unknown> = AccordionPrimitive.Root.Value<Value>;
|
|
11
11
|
type AccordionItemProps = AccordionPrimitive.Item.Props;
|
|
12
12
|
type AccordionHeaderProps = AccordionPrimitive.Header.Props;
|
|
13
|
-
type AccordionTriggerProps = AccordionPrimitive.Trigger.Props;
|
|
14
13
|
type AccordionTriggerIconProps = React.ComponentProps<'span'>;
|
|
15
14
|
type AccordionPanelProps = AccordionPrimitive.Panel.Props;
|
|
15
|
+
type AccordionTriggerClassNames = {
|
|
16
|
+
header?: AccordionHeaderProps['className'];
|
|
17
|
+
icon?: AccordionTriggerIconProps['className'];
|
|
18
|
+
};
|
|
19
|
+
type AccordionTriggerSlotProps = {
|
|
20
|
+
header?: Omit<AccordionHeaderProps, 'children' | 'className'>;
|
|
21
|
+
icon?: Omit<AccordionTriggerIconProps, 'children' | 'className'>;
|
|
22
|
+
};
|
|
23
|
+
type AccordionTriggerProps = AccordionPrimitive.Trigger.Props & {
|
|
24
|
+
/**
|
|
25
|
+
* Icon rendered at the end of the trigger. Pass `hideIcon` to remove it.
|
|
26
|
+
*/
|
|
27
|
+
icon?: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Removes the default trigger icon.
|
|
30
|
+
*/
|
|
31
|
+
hideIcon?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Classes for internal slots rendered by the trigger.
|
|
34
|
+
*/
|
|
35
|
+
classNames?: AccordionTriggerClassNames;
|
|
36
|
+
/**
|
|
37
|
+
* Props for internal slots rendered by the trigger.
|
|
38
|
+
*/
|
|
39
|
+
slotProps?: AccordionTriggerSlotProps;
|
|
40
|
+
};
|
|
16
41
|
export { Accordion, AccordionItem, AccordionHeader, AccordionTrigger, AccordionTriggerIcon, AccordionPanel, };
|
|
17
|
-
export type { AccordionValue, AccordionProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionTriggerIconProps, AccordionPanelProps, };
|
|
42
|
+
export type { AccordionValue, AccordionProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionTriggerIconProps, AccordionPanelProps, AccordionTriggerClassNames, AccordionTriggerSlotProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Accordion, AccordionItem, AccordionHeader, AccordionTrigger, AccordionTriggerIcon, AccordionPanel, } from './Accordion';
|
|
2
|
-
export type { AccordionValue, AccordionProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionTriggerIconProps, AccordionPanelProps, } from './Accordion';
|
|
2
|
+
export type { AccordionValue, AccordionProps, AccordionItemProps, AccordionHeaderProps, AccordionTriggerProps, AccordionTriggerClassNames, AccordionTriggerSlotProps, AccordionTriggerIconProps, AccordionPanelProps, } from './Accordion';
|
|
@@ -5,14 +5,17 @@ type AlertDialogContentClassNames = {
|
|
|
5
5
|
backdrop?: AlertDialogPrimitive.Backdrop.Props['className'];
|
|
6
6
|
viewport?: AlertDialogPrimitive.Viewport.Props['className'];
|
|
7
7
|
};
|
|
8
|
+
type AlertDialogContentSlotProps = {
|
|
9
|
+
portal?: Omit<AlertDialogPrimitive.Portal.Props, 'className' | 'children'>;
|
|
10
|
+
backdrop?: Omit<AlertDialogPrimitive.Backdrop.Props, 'className'>;
|
|
11
|
+
viewport?: Omit<AlertDialogPrimitive.Viewport.Props, 'className'>;
|
|
12
|
+
};
|
|
8
13
|
type AlertDialogContentProps = Omit<AlertDialogPrimitive.Popup.Props, 'className'> & {
|
|
9
14
|
className?: AlertDialogPrimitive.Popup.Props['className'];
|
|
10
15
|
classNames?: AlertDialogContentClassNames;
|
|
16
|
+
slotProps?: AlertDialogContentSlotProps;
|
|
11
17
|
container?: AlertDialogPrimitive.Portal.Props['container'];
|
|
12
18
|
withBackdrop?: boolean;
|
|
13
|
-
portalProps?: Omit<AlertDialogPrimitive.Portal.Props, 'className' | 'children'>;
|
|
14
|
-
backdropProps?: Omit<AlertDialogPrimitive.Backdrop.Props, 'className'>;
|
|
15
|
-
viewportProps?: Omit<AlertDialogPrimitive.Viewport.Props, 'className'>;
|
|
16
19
|
};
|
|
17
20
|
declare const AlertDialog: typeof AlertDialogPrimitive.Root;
|
|
18
21
|
declare const createAlertDialogHandle: typeof AlertDialogPrimitive.createHandle;
|
|
@@ -21,7 +24,7 @@ declare function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.
|
|
|
21
24
|
declare function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
declare function AlertDialogClose({ className, ...props }: AlertDialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
23
26
|
declare function AlertDialogCloseIcon({ className, children, ...props }: AlertDialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
declare function AlertDialogContent({ className, classNames, container, withBackdrop,
|
|
27
|
+
declare function AlertDialogContent({ className, classNames, slotProps, container, withBackdrop, ...props }: AlertDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
25
28
|
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
26
29
|
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
declare function AlertDialogBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -29,5 +32,15 @@ declare function AlertDialogAction({ className, ...props }: AlertDialogPrimitive
|
|
|
29
32
|
declare function AlertDialogCancel({ className, ...props }: AlertDialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
30
33
|
type AlertDialogProps<Payload = unknown> = AlertDialogPrimitive.Root.Props<Payload>;
|
|
31
34
|
type AlertDialogHandle<Payload = unknown> = AlertDialogPrimitive.Handle<Payload>;
|
|
35
|
+
type AlertDialogTriggerProps = AlertDialogPrimitive.Trigger.Props;
|
|
36
|
+
type AlertDialogTitleProps = AlertDialogPrimitive.Title.Props;
|
|
37
|
+
type AlertDialogDescriptionProps = AlertDialogPrimitive.Description.Props;
|
|
38
|
+
type AlertDialogCloseProps = AlertDialogPrimitive.Close.Props;
|
|
39
|
+
type AlertDialogCloseIconProps = AlertDialogPrimitive.Close.Props;
|
|
40
|
+
type AlertDialogHeaderProps = React.ComponentProps<'div'>;
|
|
41
|
+
type AlertDialogBodyProps = React.ComponentProps<'div'>;
|
|
42
|
+
type AlertDialogFooterProps = React.ComponentProps<'div'>;
|
|
43
|
+
type AlertDialogActionProps = AlertDialogPrimitive.Close.Props;
|
|
44
|
+
type AlertDialogCancelProps = AlertDialogPrimitive.Close.Props;
|
|
32
45
|
export { AlertDialog, createAlertDialogHandle, AlertDialogTrigger, AlertDialogTitle, AlertDialogDescription, AlertDialogClose, AlertDialogCloseIcon, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogAction, AlertDialogCancel, };
|
|
33
|
-
export type { AlertDialogProps, AlertDialogHandle, AlertDialogContentProps, AlertDialogContentClassNames, };
|
|
46
|
+
export type { AlertDialogProps, AlertDialogHandle, AlertDialogTriggerProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, AlertDialogCloseIconProps, AlertDialogContentProps, AlertDialogContentClassNames, AlertDialogContentSlotProps, AlertDialogHeaderProps, AlertDialogBodyProps, AlertDialogFooterProps, AlertDialogActionProps, AlertDialogCancelProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { AlertDialog, createAlertDialogHandle, AlertDialogTrigger, AlertDialogTitle, AlertDialogDescription, AlertDialogClose, AlertDialogCloseIcon, AlertDialogContent, AlertDialogHeader, AlertDialogBody, AlertDialogFooter, AlertDialogAction, AlertDialogCancel, } from './AlertDialog';
|
|
2
|
-
export type { AlertDialogProps, AlertDialogHandle, AlertDialogContentProps, AlertDialogContentClassNames, } from './AlertDialog';
|
|
2
|
+
export type { AlertDialogProps, AlertDialogHandle, AlertDialogTriggerProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogCloseProps, AlertDialogCloseIconProps, AlertDialogContentProps, AlertDialogContentClassNames, AlertDialogContentSlotProps, AlertDialogHeaderProps, AlertDialogBodyProps, AlertDialogFooterProps, AlertDialogActionProps, AlertDialogCancelProps, } from './AlertDialog';
|
|
@@ -48,5 +48,29 @@ declare const useAutocompleteFilter: typeof import('@base-ui/react/internals/fil
|
|
|
48
48
|
declare const useAutocompleteFilteredItems: typeof AutocompletePrimitive.useFilteredItems;
|
|
49
49
|
type AutocompleteProps<Value = unknown> = AutocompletePrimitive.Root.Props<Value>;
|
|
50
50
|
type AutocompleteValueType<Value = unknown> = AutocompleteProps<Value>['value'];
|
|
51
|
+
type AutocompleteFieldProps = React.ComponentProps<'div'>;
|
|
52
|
+
type AutocompleteInlineInputContainerProps = React.ComponentProps<'div'>;
|
|
53
|
+
type AutocompleteFieldLabelProps = React.ComponentProps<'label'>;
|
|
54
|
+
type AutocompleteValueProps = AutocompletePrimitive.Value.Props;
|
|
55
|
+
type AutocompleteInputGroupProps = AutocompletePrimitive.InputGroup.Props;
|
|
56
|
+
type AutocompleteInputProps = AutocompletePrimitive.Input.Props;
|
|
57
|
+
type AutocompleteControlActionsProps = React.ComponentProps<'div'>;
|
|
58
|
+
type AutocompleteTriggerProps = AutocompletePrimitive.Trigger.Props;
|
|
59
|
+
type AutocompleteFieldTriggerProps = AutocompletePrimitive.Trigger.Props;
|
|
60
|
+
type AutocompleteIconProps = AutocompletePrimitive.Icon.Props;
|
|
61
|
+
type AutocompleteClearProps = AutocompletePrimitive.Clear.Props;
|
|
62
|
+
type AutocompleteStatusProps = AutocompletePrimitive.Status.Props;
|
|
63
|
+
type AutocompleteEmptyProps = AutocompletePrimitive.Empty.Props;
|
|
64
|
+
type AutocompleteListProps = AutocompletePrimitive.List.Props;
|
|
65
|
+
type AutocompleteRowProps = AutocompletePrimitive.Row.Props;
|
|
66
|
+
type AutocompleteItemProps = AutocompletePrimitive.Item.Props;
|
|
67
|
+
type AutocompleteItemTextProps = React.ComponentProps<'span'>;
|
|
68
|
+
type AutocompleteItemTextContentProps = React.ComponentProps<'span'>;
|
|
69
|
+
type AutocompleteItemTextIconProps = React.ComponentProps<'span'>;
|
|
70
|
+
type AutocompleteItemTextLabelProps = React.ComponentProps<'span'>;
|
|
71
|
+
type AutocompleteSeparatorProps = AutocompletePrimitive.Separator.Props;
|
|
72
|
+
type AutocompleteGroupProps = AutocompletePrimitive.Group.Props;
|
|
73
|
+
type AutocompleteGroupLabelProps = AutocompletePrimitive.GroupLabel.Props;
|
|
74
|
+
type AutocompleteCollectionProps = AutocompletePrimitive.Collection.Props;
|
|
51
75
|
export { Autocomplete, AutocompleteField, AutocompleteInlineInputContainer, AutocompleteFieldLabel, AutocompleteValue, AutocompleteInputGroup, AutocompleteInput, AutocompleteControlActions, AutocompleteTrigger, AutocompleteFieldTrigger, AutocompleteIcon, AutocompleteClear, AutocompleteContent, AutocompleteStatus, AutocompleteEmpty, AutocompleteList, AutocompleteRow, AutocompleteItem, AutocompleteItemText, AutocompleteItemTextContent, AutocompleteItemTextIcon, AutocompleteItemTextLabel, AutocompleteSeparator, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteCollection, useAutocompleteAnchor, useAutocompleteFilter, useAutocompleteFilteredItems, };
|
|
52
|
-
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, };
|
|
76
|
+
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, AutocompleteFieldProps, AutocompleteInlineInputContainerProps, AutocompleteFieldLabelProps, AutocompleteValueProps, AutocompleteInputGroupProps, AutocompleteInputProps, AutocompleteControlActionsProps, AutocompleteTriggerProps, AutocompleteFieldTriggerProps, AutocompleteIconProps, AutocompleteClearProps, AutocompleteStatusProps, AutocompleteEmptyProps, AutocompleteListProps, AutocompleteRowProps, AutocompleteItemProps, AutocompleteItemTextProps, AutocompleteItemTextContentProps, AutocompleteItemTextIconProps, AutocompleteItemTextLabelProps, AutocompleteSeparatorProps, AutocompleteGroupProps, AutocompleteGroupLabelProps, AutocompleteCollectionProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Autocomplete, AutocompleteField, AutocompleteInlineInputContainer, AutocompleteFieldLabel, AutocompleteValue, AutocompleteInputGroup, AutocompleteInput, AutocompleteControlActions, AutocompleteTrigger, AutocompleteFieldTrigger, AutocompleteIcon, AutocompleteClear, AutocompleteContent, AutocompleteStatus, AutocompleteEmpty, AutocompleteList, AutocompleteRow, AutocompleteItem, AutocompleteItemText, AutocompleteItemTextContent, AutocompleteItemTextIcon, AutocompleteItemTextLabel, AutocompleteSeparator, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteCollection, useAutocompleteAnchor, useAutocompleteFilter, useAutocompleteFilteredItems, } from './Autocomplete';
|
|
2
|
-
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, } from './Autocomplete';
|
|
2
|
+
export type { AutocompleteProps, AutocompleteValueType, AutocompleteContentClassNames, AutocompleteContentProps, AutocompleteFieldProps, AutocompleteInlineInputContainerProps, AutocompleteFieldLabelProps, AutocompleteValueProps, AutocompleteInputGroupProps, AutocompleteInputProps, AutocompleteControlActionsProps, AutocompleteTriggerProps, AutocompleteFieldTriggerProps, AutocompleteIconProps, AutocompleteClearProps, AutocompleteStatusProps, AutocompleteEmptyProps, AutocompleteListProps, AutocompleteRowProps, AutocompleteItemProps, AutocompleteItemTextProps, AutocompleteItemTextContentProps, AutocompleteItemTextIconProps, AutocompleteItemTextLabelProps, AutocompleteSeparatorProps, AutocompleteGroupProps, AutocompleteGroupLabelProps, AutocompleteCollectionProps, } from './Autocomplete';
|
|
@@ -7,7 +7,8 @@ type BleedOwnProps<As extends BleedAs = 'div'> = {
|
|
|
7
7
|
inline?: BleedInline;
|
|
8
8
|
block?: BleedBlock;
|
|
9
9
|
};
|
|
10
|
-
type BleedProps<As extends BleedAs = 'div'> = BleedOwnProps<As> & Omit<React.
|
|
11
|
-
|
|
10
|
+
type BleedProps<As extends BleedAs = 'div'> = BleedOwnProps<As> & Omit<React.ComponentPropsWithRef<As>, keyof BleedOwnProps<As>>;
|
|
11
|
+
type BleedComponent = <As extends BleedAs = 'div'>(props: BleedProps<As>) => React.ReactElement | null;
|
|
12
|
+
declare const Bleed: BleedComponent;
|
|
12
13
|
export { Bleed };
|
|
13
14
|
export type { BleedProps, BleedAs, BleedInline, BleedBlock };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Menu as MenuPrimitive } from '@base-ui/react/menu';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
type BreadcrumbsItemRenderProps = Omit<React.ComponentProps<'a'>, 'children'> & {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
type BreadcrumbsItem = {
|
|
7
|
+
key?: React.Key;
|
|
8
|
+
label: React.ReactNode;
|
|
9
|
+
href?: string;
|
|
10
|
+
target?: React.ComponentProps<'a'>['target'];
|
|
11
|
+
rel?: React.ComponentProps<'a'>['rel'];
|
|
12
|
+
onClick?: React.ComponentProps<'a'>['onClick'];
|
|
13
|
+
render?: (props: BreadcrumbsItemRenderProps) => React.ReactElement;
|
|
14
|
+
};
|
|
15
|
+
type BreadcrumbsClassNames = {
|
|
16
|
+
ellipsisTrigger?: MenuPrimitive.Trigger.Props['className'];
|
|
17
|
+
popup?: MenuPrimitive.Popup.Props['className'];
|
|
18
|
+
popupItem?: MenuPrimitive.Item.Props['className'];
|
|
19
|
+
portal?: MenuPrimitive.Portal.Props['className'];
|
|
20
|
+
positioner?: MenuPrimitive.Positioner.Props['className'];
|
|
21
|
+
};
|
|
22
|
+
type BreadcrumbsSlotProps = {
|
|
23
|
+
ellipsisTrigger?: Omit<MenuPrimitive.Trigger.Props, 'children' | 'className'>;
|
|
24
|
+
popup?: Omit<MenuPrimitive.Popup.Props, 'children' | 'className'>;
|
|
25
|
+
popupItem?: Omit<MenuPrimitive.Item.Props, 'children' | 'className'>;
|
|
26
|
+
popupLinkItem?: Omit<MenuPrimitive.LinkItem.Props, 'children' | 'className' | 'href' | 'render'>;
|
|
27
|
+
portal?: Omit<MenuPrimitive.Portal.Props, 'children' | 'className'>;
|
|
28
|
+
positioner?: Omit<MenuPrimitive.Positioner.Props, 'children' | 'className'>;
|
|
29
|
+
};
|
|
30
|
+
type BreadcrumbsProps = Omit<React.ComponentProps<'nav'>, 'children'> & {
|
|
31
|
+
items: BreadcrumbsItem[];
|
|
32
|
+
separator?: React.ReactNode;
|
|
33
|
+
maxItems?: number;
|
|
34
|
+
itemsBeforeCollapse?: number;
|
|
35
|
+
itemsAfterCollapse?: number;
|
|
36
|
+
ellipsisLabel?: React.ReactNode;
|
|
37
|
+
hiddenItemsMenuLabel?: string;
|
|
38
|
+
classNames?: BreadcrumbsClassNames;
|
|
39
|
+
slotProps?: BreadcrumbsSlotProps;
|
|
40
|
+
};
|
|
41
|
+
declare function Breadcrumbs({ className, items, separator, maxItems, itemsBeforeCollapse, itemsAfterCollapse, ellipsisLabel, hiddenItemsMenuLabel, classNames, slotProps, ...props }: BreadcrumbsProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export { Breadcrumbs };
|
|
43
|
+
export type { BreadcrumbsProps, BreadcrumbsItem, BreadcrumbsItemRenderProps, BreadcrumbsClassNames, BreadcrumbsSlotProps, };
|
|
@@ -2,19 +2,24 @@ import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
type CheckboxSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
type CheckboxClassNames = {
|
|
5
|
-
indicator?:
|
|
5
|
+
indicator?: CheckboxIndicatorProps['className'];
|
|
6
6
|
indicatorIcon?: string;
|
|
7
7
|
checkedIcon?: string;
|
|
8
8
|
indeterminateIcon?: string;
|
|
9
9
|
};
|
|
10
|
+
type CheckboxSlotProps = {
|
|
11
|
+
indicator?: Omit<CheckboxIndicatorProps, 'children' | 'className'>;
|
|
12
|
+
indicatorIcon?: Omit<CheckboxIndicatorIconProps, 'checkedIcon' | 'children' | 'className'>;
|
|
13
|
+
};
|
|
10
14
|
type CheckboxProps = CheckboxPrimitive.Root.Props & {
|
|
11
15
|
size?: CheckboxSize;
|
|
12
16
|
indicator?: React.ReactNode;
|
|
13
17
|
checkedIcon?: React.ReactNode;
|
|
14
18
|
indeterminateIcon?: React.ReactNode;
|
|
15
19
|
classNames?: CheckboxClassNames;
|
|
20
|
+
slotProps?: CheckboxSlotProps;
|
|
16
21
|
};
|
|
17
|
-
declare function Checkbox({ className, size, children, indicator, checkedIcon, indeterminateIcon, classNames, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Checkbox({ className, size, children, indicator, checkedIcon, indeterminateIcon, classNames, slotProps, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
18
23
|
type CheckboxIndicatorProps = CheckboxPrimitive.Indicator.Props & {
|
|
19
24
|
checkedIcon?: React.ReactNode;
|
|
20
25
|
checkedIconClassName?: string;
|
|
@@ -32,6 +37,10 @@ declare function CheckboxIndicatorIcon({ className, checkedIcon, checkedIconClas
|
|
|
32
37
|
type CheckboxFieldProps = React.ComponentProps<'label'>;
|
|
33
38
|
declare function CheckboxField({ className, ...props }: CheckboxFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
34
39
|
type CheckboxLabelProps = React.ComponentProps<'span'>;
|
|
40
|
+
type CheckboxState = CheckboxPrimitive.Root.State;
|
|
41
|
+
type CheckboxIndicatorState = CheckboxPrimitive.Indicator.State;
|
|
42
|
+
type CheckboxChangeEventReason = CheckboxPrimitive.Root.ChangeEventReason;
|
|
43
|
+
type CheckboxChangeEventDetails = CheckboxPrimitive.Root.ChangeEventDetails;
|
|
35
44
|
declare function CheckboxLabel({ className, ...props }: CheckboxLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
36
45
|
export { Checkbox, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxField, CheckboxLabel };
|
|
37
|
-
export type { CheckboxSize, CheckboxClassNames, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, };
|
|
46
|
+
export type { CheckboxSize, CheckboxClassNames, CheckboxSlotProps, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, CheckboxState, CheckboxIndicatorState, CheckboxChangeEventReason, CheckboxChangeEventDetails, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Checkbox, CheckboxIndicator, CheckboxIndicatorIcon, CheckboxField, CheckboxLabel, } from './Checkbox';
|
|
2
|
-
export type { CheckboxSize, CheckboxClassNames, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, } from './Checkbox';
|
|
2
|
+
export type { CheckboxSize, CheckboxClassNames, CheckboxSlotProps, CheckboxProps, CheckboxIndicatorProps, CheckboxIndicatorIconProps, CheckboxFieldProps, CheckboxLabelProps, CheckboxState, CheckboxIndicatorState, CheckboxChangeEventReason, CheckboxChangeEventDetails, } from './Checkbox';
|
|
@@ -9,9 +9,12 @@ type CheckboxGroupItemControlProps = CheckboxProps;
|
|
|
9
9
|
declare function CheckboxGroupItemControl(props: CheckboxGroupItemControlProps): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare function CheckboxGroupItemLabel({ className, ...props }: CheckboxGroupItemLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
type CheckboxGroupProps = CheckboxGroupPrimitive.Props;
|
|
12
|
+
type CheckboxGroupState = CheckboxGroupPrimitive.State;
|
|
13
|
+
type CheckboxGroupChangeEventReason = CheckboxGroupPrimitive.ChangeEventReason;
|
|
14
|
+
type CheckboxGroupChangeEventDetails = CheckboxGroupPrimitive.ChangeEventDetails;
|
|
12
15
|
type CheckboxGroupLabelProps = React.ComponentProps<'div'>;
|
|
13
16
|
type CheckboxGroupListProps = React.ComponentProps<'div'>;
|
|
14
17
|
type CheckboxGroupItemProps = React.ComponentProps<'label'>;
|
|
15
18
|
type CheckboxGroupItemLabelProps = React.ComponentProps<'span'>;
|
|
16
19
|
export { CheckboxGroup, CheckboxGroupLabel, CheckboxGroupList, CheckboxGroupItem, CheckboxGroupItemControl, CheckboxGroupItemLabel, };
|
|
17
|
-
export type { CheckboxGroupProps, CheckboxGroupLabelProps, CheckboxGroupListProps, CheckboxGroupItemProps, CheckboxGroupItemControlProps, CheckboxGroupItemLabelProps, };
|
|
20
|
+
export type { CheckboxGroupProps, CheckboxGroupState, CheckboxGroupChangeEventReason, CheckboxGroupChangeEventDetails, CheckboxGroupLabelProps, CheckboxGroupListProps, CheckboxGroupItemProps, CheckboxGroupItemControlProps, CheckboxGroupItemLabelProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { CheckboxGroup, CheckboxGroupLabel, CheckboxGroupList, CheckboxGroupItem, CheckboxGroupItemControl, CheckboxGroupItemLabel, } from './CheckboxGroup';
|
|
2
|
-
export type { CheckboxGroupProps, CheckboxGroupLabelProps, CheckboxGroupListProps, CheckboxGroupItemProps, CheckboxGroupItemControlProps, CheckboxGroupItemLabelProps, } from './CheckboxGroup';
|
|
2
|
+
export type { CheckboxGroupProps, CheckboxGroupState, CheckboxGroupChangeEventReason, CheckboxGroupChangeEventDetails, CheckboxGroupLabelProps, CheckboxGroupListProps, CheckboxGroupItemProps, CheckboxGroupItemControlProps, CheckboxGroupItemLabelProps, } from './CheckboxGroup';
|
|
@@ -1,12 +1,35 @@
|
|
|
1
1
|
import { Collapsible as CollapsiblePrimitive } from '@base-ui/react/collapsible';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare function Collapsible({ className, ...props }: CollapsiblePrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function CollapsibleTrigger({ className, ...props }:
|
|
4
|
+
declare function CollapsibleTrigger({ className, children, icon, hideIcon, classNames, slotProps, ...props }: CollapsibleTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare function CollapsibleTriggerIcon({ className, children, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function CollapsiblePanel({ className, ...props }: CollapsiblePrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
type CollapsibleProps = CollapsiblePrimitive.Root.Props;
|
|
8
|
-
type CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props;
|
|
9
8
|
type CollapsibleTriggerIconProps = React.ComponentProps<'span'>;
|
|
10
9
|
type CollapsiblePanelProps = CollapsiblePrimitive.Panel.Props;
|
|
10
|
+
type CollapsibleTriggerClassNames = {
|
|
11
|
+
icon?: CollapsibleTriggerIconProps['className'];
|
|
12
|
+
};
|
|
13
|
+
type CollapsibleTriggerSlotProps = {
|
|
14
|
+
icon?: Omit<CollapsibleTriggerIconProps, 'children' | 'className'>;
|
|
15
|
+
};
|
|
16
|
+
type CollapsibleTriggerProps = CollapsiblePrimitive.Trigger.Props & {
|
|
17
|
+
/**
|
|
18
|
+
* Icon rendered at the start of the trigger. Pass `hideIcon` to remove it.
|
|
19
|
+
*/
|
|
20
|
+
icon?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Removes the default trigger icon.
|
|
23
|
+
*/
|
|
24
|
+
hideIcon?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Classes for internal slots rendered by the trigger.
|
|
27
|
+
*/
|
|
28
|
+
classNames?: CollapsibleTriggerClassNames;
|
|
29
|
+
/**
|
|
30
|
+
* Props for internal slots rendered by the trigger.
|
|
31
|
+
*/
|
|
32
|
+
slotProps?: CollapsibleTriggerSlotProps;
|
|
33
|
+
};
|
|
11
34
|
export { Collapsible, CollapsibleTrigger, CollapsibleTriggerIcon, CollapsiblePanel };
|
|
12
|
-
export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleTriggerIconProps, CollapsiblePanelProps, };
|
|
35
|
+
export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleTriggerIconProps, CollapsiblePanelProps, CollapsibleTriggerClassNames, CollapsibleTriggerSlotProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Collapsible, CollapsibleTrigger, CollapsibleTriggerIcon, CollapsiblePanel, } from './Collapsible';
|
|
2
|
-
export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleTriggerIconProps, CollapsiblePanelProps, } from './Collapsible';
|
|
2
|
+
export type { CollapsibleProps, CollapsibleTriggerProps, CollapsibleTriggerIconProps, CollapsiblePanelProps, CollapsibleTriggerClassNames, CollapsibleTriggerSlotProps, } from './Collapsible';
|
|
@@ -58,5 +58,32 @@ declare const useComboboxFilter: typeof ComboboxPrimitive.useFilter;
|
|
|
58
58
|
declare const useComboboxFilteredItems: typeof ComboboxPrimitive.useFilteredItems;
|
|
59
59
|
type ComboboxProps<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxPrimitive.Root.Props<Value, Multiple>;
|
|
60
60
|
type ComboboxValueType<Value = unknown, Multiple extends boolean | undefined = false> = ComboboxProps<Value, Multiple>['value'];
|
|
61
|
+
type ComboboxFieldProps = React.ComponentProps<'div'>;
|
|
62
|
+
type ComboboxValueProps = ComboboxPrimitive.Value.Props;
|
|
63
|
+
type ComboboxInputGroupProps = ComboboxPrimitive.InputGroup.Props;
|
|
64
|
+
type ComboboxInputProps = ComboboxPrimitive.Input.Props;
|
|
65
|
+
type ComboboxControlActionsProps = React.ComponentProps<'div'>;
|
|
66
|
+
type ComboboxTriggerProps = ComboboxPrimitive.Trigger.Props;
|
|
67
|
+
type ComboboxIconProps = ComboboxPrimitive.Icon.Props;
|
|
68
|
+
type ComboboxClearProps = ComboboxPrimitive.Clear.Props;
|
|
69
|
+
type ComboboxStatusProps = ComboboxPrimitive.Status.Props;
|
|
70
|
+
type ComboboxEmptyProps = ComboboxPrimitive.Empty.Props;
|
|
71
|
+
type ComboboxListProps = ComboboxPrimitive.List.Props;
|
|
72
|
+
type ComboboxRowProps = ComboboxPrimitive.Row.Props;
|
|
73
|
+
type ComboboxItemIndicatorProps = ComboboxPrimitive.ItemIndicator.Props;
|
|
74
|
+
type ComboboxItemTextProps = React.ComponentProps<'span'>;
|
|
75
|
+
type ComboboxItemTextContentProps = React.ComponentProps<'span'>;
|
|
76
|
+
type ComboboxItemTextIconProps = React.ComponentProps<'span'>;
|
|
77
|
+
type ComboboxItemTextLabelProps = React.ComponentProps<'span'>;
|
|
78
|
+
type ComboboxSeparatorProps = ComboboxPrimitive.Separator.Props;
|
|
79
|
+
type ComboboxGroupProps = ComboboxPrimitive.Group.Props;
|
|
80
|
+
type ComboboxGroupLabelProps = ComboboxPrimitive.GroupLabel.Props;
|
|
81
|
+
type ComboboxCollectionProps = ComboboxPrimitive.Collection.Props;
|
|
82
|
+
type ComboboxInlineInputContainerProps = React.ComponentProps<'div'>;
|
|
83
|
+
type ComboboxChipsProps = ComboboxPrimitive.Chips.Props;
|
|
84
|
+
type ComboboxChipProps = ComboboxPrimitive.Chip.Props;
|
|
85
|
+
type ComboboxChipRemoveProps = ComboboxPrimitive.ChipRemove.Props;
|
|
86
|
+
type ComboboxChipTextProps = React.ComponentProps<'span'>;
|
|
87
|
+
type ComboboxChipsInputProps = ComboboxPrimitive.Input.Props;
|
|
61
88
|
export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, };
|
|
62
|
-
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldLabelProps, };
|
|
89
|
+
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldProps, ComboboxFieldLabelProps, ComboboxValueProps, ComboboxInputGroupProps, ComboboxInputProps, ComboboxControlActionsProps, ComboboxTriggerProps, ComboboxIconProps, ComboboxClearProps, ComboboxStatusProps, ComboboxEmptyProps, ComboboxListProps, ComboboxRowProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxItemTextContentProps, ComboboxItemTextIconProps, ComboboxItemTextLabelProps, ComboboxSeparatorProps, ComboboxGroupProps, ComboboxGroupLabelProps, ComboboxCollectionProps, ComboboxInlineInputContainerProps, ComboboxChipsProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipTextProps, ComboboxChipsInputProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Combobox, ComboboxField, ComboboxFieldLabel, ComboboxValue, ComboboxInputGroup, ComboboxInput, ComboboxControlActions, ComboboxTrigger, ComboboxIcon, ComboboxClear, ComboboxContent, ComboboxStatus, ComboboxEmpty, ComboboxList, ComboboxRow, ComboboxItem, ComboboxItemIndicator, ComboboxItemText, ComboboxItemTextContent, ComboboxItemTextIcon, ComboboxItemTextLabel, ComboboxSeparator, ComboboxGroup, ComboboxGroupLabel, ComboboxCollection, ComboboxInlineInputContainer, ComboboxChips, ComboboxChip, ComboboxChipRemove, ComboboxChipText, ComboboxChipsInput, useComboboxAnchor, useComboboxFilter, useComboboxFilteredItems, } from './Combobox';
|
|
2
|
-
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldLabelProps, } from './Combobox';
|
|
2
|
+
export type { ComboboxProps, ComboboxValueType, ComboboxContentClassNames, ComboboxContentProps, ComboboxFieldProps, ComboboxFieldLabelProps, ComboboxValueProps, ComboboxInputGroupProps, ComboboxInputProps, ComboboxControlActionsProps, ComboboxTriggerProps, ComboboxIconProps, ComboboxClearProps, ComboboxStatusProps, ComboboxEmptyProps, ComboboxListProps, ComboboxRowProps, ComboboxItemProps, ComboboxItemIndicatorProps, ComboboxItemTextProps, ComboboxItemTextContentProps, ComboboxItemTextIconProps, ComboboxItemTextLabelProps, ComboboxSeparatorProps, ComboboxGroupProps, ComboboxGroupLabelProps, ComboboxCollectionProps, ComboboxInlineInputContainerProps, ComboboxChipsProps, ComboboxChipProps, ComboboxChipRemoveProps, ComboboxChipTextProps, ComboboxChipsInputProps, } from './Combobox';
|
|
@@ -5,14 +5,17 @@ type DialogContentClassNames = {
|
|
|
5
5
|
backdrop?: DialogPrimitive.Backdrop.Props['className'];
|
|
6
6
|
viewport?: DialogPrimitive.Viewport.Props['className'];
|
|
7
7
|
};
|
|
8
|
+
type DialogContentSlotProps = {
|
|
9
|
+
portal?: Omit<DialogPrimitive.Portal.Props, 'className' | 'children'>;
|
|
10
|
+
backdrop?: Omit<DialogPrimitive.Backdrop.Props, 'className'>;
|
|
11
|
+
viewport?: Omit<DialogPrimitive.Viewport.Props, 'className'>;
|
|
12
|
+
};
|
|
8
13
|
type DialogContentProps = Omit<DialogPrimitive.Popup.Props, 'className'> & {
|
|
9
14
|
className?: DialogPrimitive.Popup.Props['className'];
|
|
10
15
|
classNames?: DialogContentClassNames;
|
|
16
|
+
slotProps?: DialogContentSlotProps;
|
|
11
17
|
container?: DialogPrimitive.Portal.Props['container'];
|
|
12
18
|
withBackdrop?: boolean;
|
|
13
|
-
portalProps?: Omit<DialogPrimitive.Portal.Props, 'className' | 'children'>;
|
|
14
|
-
backdropProps?: Omit<DialogPrimitive.Backdrop.Props, 'className'>;
|
|
15
|
-
viewportProps?: Omit<DialogPrimitive.Viewport.Props, 'className'>;
|
|
16
19
|
};
|
|
17
20
|
declare const Dialog: typeof DialogPrimitive.Root;
|
|
18
21
|
declare const createDialogHandle: typeof DialogPrimitive.createHandle;
|
|
@@ -21,7 +24,7 @@ declare function DialogTitle({ className, ...props }: DialogPrimitive.Title.Prop
|
|
|
21
24
|
declare function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
22
25
|
declare function DialogClose({ className, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
23
26
|
declare function DialogCloseIcon({ className, children, ...props }: DialogPrimitive.Close.Props): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
declare function DialogContent({ className, classNames, container, withBackdrop,
|
|
27
|
+
declare function DialogContent({ className, classNames, slotProps, container, withBackdrop, ...props }: DialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
25
28
|
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
26
29
|
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
27
30
|
declare function DialogBody({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -36,4 +39,4 @@ type DialogHeaderProps = React.ComponentProps<'div'>;
|
|
|
36
39
|
type DialogBodyProps = React.ComponentProps<'div'>;
|
|
37
40
|
type DialogFooterProps = React.ComponentProps<'div'>;
|
|
38
41
|
export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, };
|
|
39
|
-
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogHeaderProps, DialogBodyProps, DialogFooterProps, };
|
|
42
|
+
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogContentSlotProps, DialogHeaderProps, DialogBodyProps, DialogFooterProps, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Dialog, createDialogHandle, DialogTrigger, DialogTitle, DialogDescription, DialogClose, DialogCloseIcon, DialogContent, DialogHeader, DialogBody, DialogFooter, } from './Dialog';
|
|
2
|
-
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogHeaderProps, DialogBodyProps, DialogFooterProps, } from './Dialog';
|
|
2
|
+
export type { DialogProps, DialogHandle, DialogTriggerProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, DialogCloseIconProps, DialogContentProps, DialogContentClassNames, DialogContentSlotProps, DialogHeaderProps, DialogBodyProps, DialogFooterProps, } from './Dialog';
|