@navecss/base-ui 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +417 -2
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.js +2 -0
- package/dist/accordion/parts.generated.d.ts +31 -0
- package/dist/accordion/parts.generated.js +9 -0
- package/dist/alert-dialog/index.d.ts +2 -0
- package/dist/alert-dialog/index.js +2 -0
- package/dist/alert-dialog/parts.generated.d.ts +55 -0
- package/dist/alert-dialog/parts.generated.js +14 -0
- package/dist/autocomplete/index.d.ts +2 -0
- package/dist/autocomplete/index.js +2 -0
- package/dist/autocomplete/parts.generated.d.ts +116 -0
- package/dist/autocomplete/parts.generated.js +27 -0
- package/dist/avatar/index.d.ts +2 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/parts.generated.d.ts +18 -0
- package/dist/avatar/parts.generated.js +6 -0
- package/dist/button/index.d.ts +2 -0
- package/dist/button/index.js +3 -0
- package/dist/button/parts.generated.d.ts +8 -0
- package/dist/button/parts.generated.js +4 -0
- package/dist/checkbox/index.d.ts +2 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/parts.generated.d.ts +13 -0
- package/dist/checkbox/parts.generated.js +6 -0
- package/dist/checkbox-group/index.d.ts +2 -0
- package/dist/checkbox-group/index.js +3 -0
- package/dist/checkbox-group/parts.generated.d.ts +8 -0
- package/dist/checkbox-group/parts.generated.js +5 -0
- package/dist/collapsible/index.d.ts +2 -0
- package/dist/collapsible/index.js +2 -0
- package/dist/collapsible/parts.generated.d.ts +18 -0
- package/dist/collapsible/parts.generated.js +7 -0
- package/dist/combobox/index.d.ts +2 -0
- package/dist/combobox/index.js +2 -0
- package/dist/combobox/parts.generated.d.ts +140 -0
- package/dist/combobox/parts.generated.js +33 -0
- package/dist/context-menu/index.d.ts +2 -0
- package/dist/context-menu/index.js +2 -0
- package/dist/context-menu/parts.generated.d.ts +104 -0
- package/dist/context-menu/parts.generated.js +23 -0
- package/dist/dialog/index.d.ts +2 -0
- package/dist/dialog/index.js +2 -0
- package/dist/dialog/parts.generated.d.ts +55 -0
- package/dist/dialog/parts.generated.js +14 -0
- package/dist/field/index.d.ts +2 -0
- package/dist/field/index.js +2 -0
- package/dist/field/parts.generated.d.ts +41 -0
- package/dist/field/parts.generated.js +12 -0
- package/dist/fieldset/index.d.ts +2 -0
- package/dist/fieldset/index.js +2 -0
- package/dist/fieldset/parts.generated.d.ts +11 -0
- package/dist/fieldset/parts.generated.js +6 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +3 -0
- package/dist/form/parts.generated.d.ts +11 -0
- package/dist/form/parts.generated.js +4 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +37 -0
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +3 -0
- package/dist/input/parts.generated.d.ts +8 -0
- package/dist/input/parts.generated.js +5 -0
- package/dist/menu/index.d.ts +2 -0
- package/dist/menu/index.js +2 -0
- package/dist/menu/parts.generated.d.ts +117 -0
- package/dist/menu/parts.generated.js +25 -0
- package/dist/menubar/index.d.ts +2 -0
- package/dist/menubar/index.js +3 -0
- package/dist/menubar/parts.generated.d.ts +6 -0
- package/dist/menubar/parts.generated.js +5 -0
- package/dist/meter/index.d.ts +2 -0
- package/dist/meter/index.js +2 -0
- package/dist/meter/parts.generated.d.ts +26 -0
- package/dist/meter/parts.generated.js +9 -0
- package/dist/navigation-menu/index.d.ts +2 -0
- package/dist/navigation-menu/index.js +2 -0
- package/dist/navigation-menu/parts.generated.d.ts +69 -0
- package/dist/navigation-menu/parts.generated.js +17 -0
- package/dist/number-field/index.d.ts +2 -0
- package/dist/number-field/index.js +2 -0
- package/dist/number-field/parts.generated.d.ts +40 -0
- package/dist/number-field/parts.generated.js +11 -0
- package/dist/part.d.ts +39 -0
- package/dist/part.js +66 -0
- package/dist/popover/index.d.ts +2 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/parts.generated.d.ts +65 -0
- package/dist/popover/parts.generated.js +16 -0
- package/dist/preview-card/index.d.ts +2 -0
- package/dist/preview-card/index.js +2 -0
- package/dist/preview-card/parts.generated.d.ts +48 -0
- package/dist/preview-card/parts.generated.js +14 -0
- package/dist/progress/index.d.ts +2 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/parts.generated.d.ts +27 -0
- package/dist/progress/parts.generated.js +9 -0
- package/dist/radio/index.d.ts +2 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/parts.generated.d.ts +11 -0
- package/dist/radio/parts.generated.js +6 -0
- package/dist/radio-group/index.d.ts +2 -0
- package/dist/radio-group/index.js +3 -0
- package/dist/radio-group/parts.generated.d.ts +8 -0
- package/dist/radio-group/parts.generated.js +5 -0
- package/dist/scroll-area/index.d.ts +2 -0
- package/dist/scroll-area/index.js +2 -0
- package/dist/scroll-area/parts.generated.d.ts +31 -0
- package/dist/scroll-area/parts.generated.js +10 -0
- package/dist/select/index.d.ts +2 -0
- package/dist/select/index.js +2 -0
- package/dist/select/parts.generated.d.ts +99 -0
- package/dist/select/parts.generated.js +23 -0
- package/dist/separator/index.d.ts +2 -0
- package/dist/separator/index.js +3 -0
- package/dist/separator/parts.generated.d.ts +6 -0
- package/dist/separator/parts.generated.js +5 -0
- package/dist/slider/index.d.ts +2 -0
- package/dist/slider/index.js +2 -0
- package/dist/slider/parts.generated.d.ts +40 -0
- package/dist/slider/parts.generated.js +11 -0
- package/dist/styles.css +290 -0
- package/dist/switch/index.d.ts +2 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/parts.generated.d.ts +13 -0
- package/dist/switch/parts.generated.js +6 -0
- package/dist/tabs/index.d.ts +2 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/parts.generated.d.ts +35 -0
- package/dist/tabs/parts.generated.js +9 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/parts.generated.d.ts +61 -0
- package/dist/toast/parts.generated.js +16 -0
- package/dist/toggle/index.d.ts +2 -0
- package/dist/toggle/index.js +3 -0
- package/dist/toggle/parts.generated.d.ts +10 -0
- package/dist/toggle/parts.generated.js +4 -0
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.js +3 -0
- package/dist/toggle-group/parts.generated.d.ts +8 -0
- package/dist/toggle-group/parts.generated.js +5 -0
- package/dist/toolbar/index.d.ts +2 -0
- package/dist/toolbar/index.js +2 -0
- package/dist/toolbar/parts.generated.d.ts +36 -0
- package/dist/toolbar/parts.generated.js +9 -0
- package/dist/tooltip/index.d.ts +2 -0
- package/dist/tooltip/index.js +2 -0
- package/dist/tooltip/parts.generated.d.ts +50 -0
- package/dist/tooltip/parts.generated.js +13 -0
- package/package.json +259 -3
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ReactElement, RefAttributes } from 'react';
|
|
2
|
+
import { Dialog as Base } from '@base-ui/react/dialog';
|
|
3
|
+
import { type VariantProps } from '../part.ts';
|
|
4
|
+
export declare const Backdrop: typeof Base.Backdrop;
|
|
5
|
+
export declare namespace Backdrop {
|
|
6
|
+
type Props = Base.Backdrop.Props;
|
|
7
|
+
type State = Base.Backdrop.State;
|
|
8
|
+
}
|
|
9
|
+
export declare const Close: (props: Omit<Base.Close.Props, 'ref'> & RefAttributes<HTMLButtonElement> & VariantProps) => ReactElement;
|
|
10
|
+
export declare namespace Close {
|
|
11
|
+
type Props = Base.Close.Props & VariantProps;
|
|
12
|
+
type State = Base.Close.State;
|
|
13
|
+
}
|
|
14
|
+
export declare const Description: typeof Base.Description;
|
|
15
|
+
export declare namespace Description {
|
|
16
|
+
type Props = Base.Description.Props;
|
|
17
|
+
type State = Base.Description.State;
|
|
18
|
+
}
|
|
19
|
+
export declare const Popup: typeof Base.Popup;
|
|
20
|
+
export declare namespace Popup {
|
|
21
|
+
type Props = Base.Popup.Props;
|
|
22
|
+
type State = Base.Popup.State;
|
|
23
|
+
}
|
|
24
|
+
export declare const Portal: typeof Base.Portal;
|
|
25
|
+
export declare namespace Portal {
|
|
26
|
+
type State = Base.Portal.State;
|
|
27
|
+
type Props = Base.Portal.Props;
|
|
28
|
+
}
|
|
29
|
+
export declare const Root: typeof Base.Root;
|
|
30
|
+
export declare namespace Root {
|
|
31
|
+
type State = Base.Root.State;
|
|
32
|
+
type Props<Payload = unknown> = Base.Root.Props<Payload>;
|
|
33
|
+
type Actions = Base.Root.Actions;
|
|
34
|
+
type ChangeEventReason = Base.Root.ChangeEventReason;
|
|
35
|
+
type ChangeEventDetails = Base.Root.ChangeEventDetails;
|
|
36
|
+
}
|
|
37
|
+
export declare const Viewport: typeof Base.Viewport;
|
|
38
|
+
export declare namespace Viewport {
|
|
39
|
+
type State = Base.Viewport.State;
|
|
40
|
+
type Props = Base.Viewport.Props;
|
|
41
|
+
}
|
|
42
|
+
export declare const Title: typeof Base.Title;
|
|
43
|
+
export declare namespace Title {
|
|
44
|
+
type Props = Base.Title.Props;
|
|
45
|
+
type State = Base.Title.State;
|
|
46
|
+
}
|
|
47
|
+
export declare const Trigger: <Payload>(props: Omit<Base.Trigger.Props<Payload>, 'ref'> & RefAttributes<HTMLElement> & VariantProps) => ReactElement;
|
|
48
|
+
export type Trigger = typeof Trigger;
|
|
49
|
+
export declare namespace Trigger {
|
|
50
|
+
type Props<Payload = unknown> = Base.Trigger.Props<Payload> & VariantProps;
|
|
51
|
+
type State = Base.Trigger.State;
|
|
52
|
+
}
|
|
53
|
+
export declare const createHandle: typeof Base.createHandle;
|
|
54
|
+
export declare const Handle: typeof Base.Handle;
|
|
55
|
+
export type Handle<Payload> = Base.Handle<Payload>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Dialog as Base } from '@base-ui/react/dialog';
|
|
3
|
+
import { wrapPart, wrapVariantPart } from "../part.js";
|
|
4
|
+
export const Backdrop = /*#__PURE__*/ (() => Base.Backdrop)();
|
|
5
|
+
export const Close = /*#__PURE__*/ (() => wrapVariantPart(Base.Close, 'nave-base-ui-button'))();
|
|
6
|
+
export const Description = /*#__PURE__*/ (() => wrapPart(Base.Description, 'nave-base-ui-description'))();
|
|
7
|
+
export const Popup = /*#__PURE__*/ (() => wrapPart(Base.Popup, 'nave-base-ui-dialog-popup nave-base-ui-popup-fade'))();
|
|
8
|
+
export const Portal = /*#__PURE__*/ (() => Base.Portal)();
|
|
9
|
+
export const Root = /*#__PURE__*/ (() => Base.Root)();
|
|
10
|
+
export const Viewport = /*#__PURE__*/ (() => Base.Viewport)();
|
|
11
|
+
export const Title = /*#__PURE__*/ (() => wrapPart(Base.Title, 'nave-base-ui-title'))();
|
|
12
|
+
export const Trigger = /*#__PURE__*/ (() => wrapVariantPart(Base.Trigger, 'nave-base-ui-button'))();
|
|
13
|
+
export const createHandle = /*#__PURE__*/ (() => Base.createHandle)();
|
|
14
|
+
export const Handle = /*#__PURE__*/ (() => Base.Handle)();
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Field as Base } from '@base-ui/react/field';
|
|
2
|
+
export declare const Root: typeof Base.Root;
|
|
3
|
+
export declare namespace Root {
|
|
4
|
+
type State = Base.Root.State;
|
|
5
|
+
type Props = Base.Root.Props;
|
|
6
|
+
type Actions = Base.Root.Actions;
|
|
7
|
+
}
|
|
8
|
+
export declare const Label: typeof Base.Label;
|
|
9
|
+
export declare namespace Label {
|
|
10
|
+
type State = Base.Label.State;
|
|
11
|
+
type Props = Base.Label.Props;
|
|
12
|
+
}
|
|
13
|
+
declare const FieldError: typeof Base.Error;
|
|
14
|
+
declare namespace FieldError {
|
|
15
|
+
type State = Base.Error.State;
|
|
16
|
+
type Props = Base.Error.Props;
|
|
17
|
+
}
|
|
18
|
+
export { FieldError as Error };
|
|
19
|
+
export declare const Description: typeof Base.Description;
|
|
20
|
+
export declare namespace Description {
|
|
21
|
+
type State = Base.Description.State;
|
|
22
|
+
type Props = Base.Description.Props;
|
|
23
|
+
}
|
|
24
|
+
export declare const Control: typeof Base.Control;
|
|
25
|
+
export declare namespace Control {
|
|
26
|
+
type State = Base.Control.State;
|
|
27
|
+
type Props = Base.Control.Props;
|
|
28
|
+
type ChangeEventReason = Base.Control.ChangeEventReason;
|
|
29
|
+
type ChangeEventDetails = Base.Control.ChangeEventDetails;
|
|
30
|
+
}
|
|
31
|
+
export declare const Validity: typeof Base.Validity;
|
|
32
|
+
export declare namespace Validity {
|
|
33
|
+
type State = Base.Validity.State;
|
|
34
|
+
type Props = Base.Validity.Props;
|
|
35
|
+
}
|
|
36
|
+
export declare const Item: typeof Base.Item;
|
|
37
|
+
export declare namespace Item {
|
|
38
|
+
type State = Base.Item.State;
|
|
39
|
+
type Props = Base.Item.Props;
|
|
40
|
+
}
|
|
41
|
+
export type ValidityData = Base.ValidityData;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { Field as Base } from '@base-ui/react/field';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Root = /*#__PURE__*/ (() => wrapPart(Base.Root, 'nave-base-ui-field'))();
|
|
6
|
+
export const Label = /*#__PURE__*/ (() => wrapPart(Base.Label, 'nave-base-ui-label'))();
|
|
7
|
+
const FieldError = /*#__PURE__*/ (() => wrapPart(Base.Error, 'nave-base-ui-field-error'))();
|
|
8
|
+
export { FieldError as Error };
|
|
9
|
+
export const Description = /*#__PURE__*/ (() => wrapPart(Base.Description, 'nave-base-ui-field-description'))();
|
|
10
|
+
export const Control = /*#__PURE__*/ (() => wrapPart(Base.Control, 'nave-base-ui-input'))();
|
|
11
|
+
export const Validity = /*#__PURE__*/ (() => Base.Validity)();
|
|
12
|
+
export const Item = /*#__PURE__*/ (() => Base.Item)();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Fieldset as Base } from '@base-ui/react/fieldset';
|
|
2
|
+
export declare const Root: typeof Base.Root;
|
|
3
|
+
export declare namespace Root {
|
|
4
|
+
type State = Base.Root.State;
|
|
5
|
+
type Props = Base.Root.Props;
|
|
6
|
+
}
|
|
7
|
+
export declare const Legend: typeof Base.Legend;
|
|
8
|
+
export declare namespace Legend {
|
|
9
|
+
type State = Base.Legend.State;
|
|
10
|
+
type Props = Base.Legend.Props;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { Fieldset as Base } from '@base-ui/react/fieldset';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Root = /*#__PURE__*/ (() => wrapPart(Base.Root, 'nave-base-ui-fieldset'))();
|
|
6
|
+
export const Legend = /*#__PURE__*/ (() => wrapPart(Base.Legend, 'nave-base-ui-legend'))();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Form as Base } from '@base-ui/react/form';
|
|
2
|
+
export declare const Form: typeof Base;
|
|
3
|
+
export declare namespace Form {
|
|
4
|
+
type Props<FormValues extends Record<string, any> = Record<string, any>> = Base.Props<FormValues>;
|
|
5
|
+
type State = Base.State;
|
|
6
|
+
type Actions = Base.Actions;
|
|
7
|
+
type ValidationMode = Base.ValidationMode;
|
|
8
|
+
type SubmitEventReason = Base.SubmitEventReason;
|
|
9
|
+
type SubmitEventDetails = Base.SubmitEventDetails;
|
|
10
|
+
type Values<FormValues extends Record<string, any> = Record<string, any>> = Base.Values<FormValues>;
|
|
11
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export * from './accordion/index.ts';
|
|
2
|
+
export * from './alert-dialog/index.ts';
|
|
3
|
+
export * from './autocomplete/index.ts';
|
|
4
|
+
export * from './avatar/index.ts';
|
|
5
|
+
export * from './button/index.ts';
|
|
6
|
+
export * from './checkbox-group/index.ts';
|
|
7
|
+
export * from './checkbox/index.ts';
|
|
8
|
+
export * from './collapsible/index.ts';
|
|
9
|
+
export * from './combobox/index.ts';
|
|
10
|
+
export * from './context-menu/index.ts';
|
|
11
|
+
export * from './dialog/index.ts';
|
|
12
|
+
export * from './field/index.ts';
|
|
13
|
+
export * from './fieldset/index.ts';
|
|
14
|
+
export * from './form/index.ts';
|
|
15
|
+
export * from './input/index.ts';
|
|
16
|
+
export * from './menu/index.ts';
|
|
17
|
+
export * from './menubar/index.ts';
|
|
18
|
+
export * from './meter/index.ts';
|
|
19
|
+
export * from './navigation-menu/index.ts';
|
|
20
|
+
export * from './number-field/index.ts';
|
|
21
|
+
export * from './popover/index.ts';
|
|
22
|
+
export * from './preview-card/index.ts';
|
|
23
|
+
export * from './progress/index.ts';
|
|
24
|
+
export * from './radio-group/index.ts';
|
|
25
|
+
export * from './radio/index.ts';
|
|
26
|
+
export * from './scroll-area/index.ts';
|
|
27
|
+
export * from './select/index.ts';
|
|
28
|
+
export * from './separator/index.ts';
|
|
29
|
+
export * from './slider/index.ts';
|
|
30
|
+
export * from './switch/index.ts';
|
|
31
|
+
export * from './tabs/index.ts';
|
|
32
|
+
export * from './toast/index.ts';
|
|
33
|
+
export * from './toggle-group/index.ts';
|
|
34
|
+
export * from './toggle/index.ts';
|
|
35
|
+
export * from './toolbar/index.ts';
|
|
36
|
+
export * from './tooltip/index.ts';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
export * from "./accordion/index.js";
|
|
3
|
+
export * from "./alert-dialog/index.js";
|
|
4
|
+
export * from "./autocomplete/index.js";
|
|
5
|
+
export * from "./avatar/index.js";
|
|
6
|
+
export * from "./button/index.js";
|
|
7
|
+
export * from "./checkbox-group/index.js";
|
|
8
|
+
export * from "./checkbox/index.js";
|
|
9
|
+
export * from "./collapsible/index.js";
|
|
10
|
+
export * from "./combobox/index.js";
|
|
11
|
+
export * from "./context-menu/index.js";
|
|
12
|
+
export * from "./dialog/index.js";
|
|
13
|
+
export * from "./field/index.js";
|
|
14
|
+
export * from "./fieldset/index.js";
|
|
15
|
+
export * from "./form/index.js";
|
|
16
|
+
export * from "./input/index.js";
|
|
17
|
+
export * from "./menu/index.js";
|
|
18
|
+
export * from "./menubar/index.js";
|
|
19
|
+
export * from "./meter/index.js";
|
|
20
|
+
export * from "./navigation-menu/index.js";
|
|
21
|
+
export * from "./number-field/index.js";
|
|
22
|
+
export * from "./popover/index.js";
|
|
23
|
+
export * from "./preview-card/index.js";
|
|
24
|
+
export * from "./progress/index.js";
|
|
25
|
+
export * from "./radio-group/index.js";
|
|
26
|
+
export * from "./radio/index.js";
|
|
27
|
+
export * from "./scroll-area/index.js";
|
|
28
|
+
export * from "./select/index.js";
|
|
29
|
+
export * from "./separator/index.js";
|
|
30
|
+
export * from "./slider/index.js";
|
|
31
|
+
export * from "./switch/index.js";
|
|
32
|
+
export * from "./tabs/index.js";
|
|
33
|
+
export * from "./toast/index.js";
|
|
34
|
+
export * from "./toggle-group/index.js";
|
|
35
|
+
export * from "./toggle/index.js";
|
|
36
|
+
export * from "./toolbar/index.js";
|
|
37
|
+
export * from "./tooltip/index.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Input as Base } from '@base-ui/react/input';
|
|
2
|
+
export declare const Input: typeof Base;
|
|
3
|
+
export declare namespace Input {
|
|
4
|
+
type Props = Base.Props;
|
|
5
|
+
type State = Base.State;
|
|
6
|
+
type ChangeEventReason = Base.ChangeEventReason;
|
|
7
|
+
type ChangeEventDetails = Base.ChangeEventDetails;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { Input as Base } from '@base-ui/react/input';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Input = /*#__PURE__*/ (() => wrapPart(Base, 'nave-base-ui-input'))();
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { ReactElement, RefAttributes } from 'react';
|
|
2
|
+
import { Menu as Base } from '@base-ui/react/menu';
|
|
3
|
+
import { type VariantProps } from '../part.ts';
|
|
4
|
+
export declare const Arrow: typeof Base.Arrow;
|
|
5
|
+
export declare namespace Arrow {
|
|
6
|
+
type State = Base.Arrow.State;
|
|
7
|
+
type Props = Base.Arrow.Props;
|
|
8
|
+
}
|
|
9
|
+
export declare const Backdrop: typeof Base.Backdrop;
|
|
10
|
+
export declare namespace Backdrop {
|
|
11
|
+
type State = Base.Backdrop.State;
|
|
12
|
+
type Props = Base.Backdrop.Props;
|
|
13
|
+
}
|
|
14
|
+
export declare const CheckboxItem: typeof Base.CheckboxItem;
|
|
15
|
+
export declare namespace CheckboxItem {
|
|
16
|
+
type State = Base.CheckboxItem.State;
|
|
17
|
+
type Props = Base.CheckboxItem.Props;
|
|
18
|
+
type ChangeEventReason = Base.CheckboxItem.ChangeEventReason;
|
|
19
|
+
type ChangeEventDetails = Base.CheckboxItem.ChangeEventDetails;
|
|
20
|
+
}
|
|
21
|
+
export declare const CheckboxItemIndicator: typeof Base.CheckboxItemIndicator;
|
|
22
|
+
export declare namespace CheckboxItemIndicator {
|
|
23
|
+
type Props = Base.CheckboxItemIndicator.Props;
|
|
24
|
+
type State = Base.CheckboxItemIndicator.State;
|
|
25
|
+
}
|
|
26
|
+
export declare const Group: typeof Base.Group;
|
|
27
|
+
export declare namespace Group {
|
|
28
|
+
type Props = Base.Group.Props;
|
|
29
|
+
type State = Base.Group.State;
|
|
30
|
+
}
|
|
31
|
+
export declare const GroupLabel: typeof Base.GroupLabel;
|
|
32
|
+
export declare namespace GroupLabel {
|
|
33
|
+
type Props = Base.GroupLabel.Props;
|
|
34
|
+
type State = Base.GroupLabel.State;
|
|
35
|
+
}
|
|
36
|
+
export declare const Item: typeof Base.Item;
|
|
37
|
+
export declare namespace Item {
|
|
38
|
+
type State = Base.Item.State;
|
|
39
|
+
type Props = Base.Item.Props;
|
|
40
|
+
}
|
|
41
|
+
export declare const LinkItem: typeof Base.LinkItem;
|
|
42
|
+
export declare namespace LinkItem {
|
|
43
|
+
type State = Base.LinkItem.State;
|
|
44
|
+
type Props = Base.LinkItem.Props;
|
|
45
|
+
}
|
|
46
|
+
export declare const Popup: typeof Base.Popup;
|
|
47
|
+
export declare namespace Popup {
|
|
48
|
+
type Props = Base.Popup.Props;
|
|
49
|
+
type State = Base.Popup.State;
|
|
50
|
+
}
|
|
51
|
+
export declare const Portal: typeof Base.Portal;
|
|
52
|
+
export declare namespace Portal {
|
|
53
|
+
type State = Base.Portal.State;
|
|
54
|
+
type Props = Base.Portal.Props;
|
|
55
|
+
}
|
|
56
|
+
export declare const Positioner: typeof Base.Positioner;
|
|
57
|
+
export declare namespace Positioner {
|
|
58
|
+
type State = Base.Positioner.State;
|
|
59
|
+
type Props = Base.Positioner.Props;
|
|
60
|
+
}
|
|
61
|
+
export declare const RadioGroup: typeof Base.RadioGroup;
|
|
62
|
+
export declare namespace RadioGroup {
|
|
63
|
+
type Props = Base.RadioGroup.Props;
|
|
64
|
+
type State = Base.RadioGroup.State;
|
|
65
|
+
type ChangeEventReason = Base.RadioGroup.ChangeEventReason;
|
|
66
|
+
type ChangeEventDetails = Base.RadioGroup.ChangeEventDetails;
|
|
67
|
+
}
|
|
68
|
+
export declare const RadioItem: typeof Base.RadioItem;
|
|
69
|
+
export declare namespace RadioItem {
|
|
70
|
+
type State = Base.RadioItem.State;
|
|
71
|
+
type Props = Base.RadioItem.Props;
|
|
72
|
+
}
|
|
73
|
+
export declare const RadioItemIndicator: typeof Base.RadioItemIndicator;
|
|
74
|
+
export declare namespace RadioItemIndicator {
|
|
75
|
+
type Props = Base.RadioItemIndicator.Props;
|
|
76
|
+
type State = Base.RadioItemIndicator.State;
|
|
77
|
+
}
|
|
78
|
+
export declare const Root: typeof Base.Root;
|
|
79
|
+
export declare namespace Root {
|
|
80
|
+
type State = Base.Root.State;
|
|
81
|
+
type Props<Payload = unknown> = Base.Root.Props<Payload>;
|
|
82
|
+
type Actions = Base.Root.Actions;
|
|
83
|
+
type ChangeEventReason = Base.Root.ChangeEventReason;
|
|
84
|
+
type ChangeEventDetails = Base.Root.ChangeEventDetails;
|
|
85
|
+
type Orientation = Base.Root.Orientation;
|
|
86
|
+
}
|
|
87
|
+
export declare const SubmenuRoot: typeof Base.SubmenuRoot;
|
|
88
|
+
export declare namespace SubmenuRoot {
|
|
89
|
+
type Props = Base.SubmenuRoot.Props;
|
|
90
|
+
type State = Base.SubmenuRoot.State;
|
|
91
|
+
type ChangeEventReason = Base.SubmenuRoot.ChangeEventReason;
|
|
92
|
+
type ChangeEventDetails = Base.SubmenuRoot.ChangeEventDetails;
|
|
93
|
+
}
|
|
94
|
+
export declare const Trigger: <Payload>(props: Omit<Base.Trigger.Props<Payload>, 'ref'> & RefAttributes<HTMLElement> & VariantProps) => ReactElement;
|
|
95
|
+
export type Trigger = typeof Trigger;
|
|
96
|
+
export declare namespace Trigger {
|
|
97
|
+
type Props<Payload = unknown> = Base.Trigger.Props<Payload> & VariantProps;
|
|
98
|
+
type State = Base.Trigger.State;
|
|
99
|
+
}
|
|
100
|
+
export declare const Viewport: typeof Base.Viewport;
|
|
101
|
+
export declare namespace Viewport {
|
|
102
|
+
type Props = Base.Viewport.Props;
|
|
103
|
+
type State = Base.Viewport.State;
|
|
104
|
+
}
|
|
105
|
+
export declare const Separator: typeof Base.Separator;
|
|
106
|
+
export declare namespace Separator {
|
|
107
|
+
type Props = Base.Separator.Props;
|
|
108
|
+
type State = Base.Separator.State;
|
|
109
|
+
}
|
|
110
|
+
export declare const SubmenuTrigger: typeof Base.SubmenuTrigger;
|
|
111
|
+
export declare namespace SubmenuTrigger {
|
|
112
|
+
type Props = Base.SubmenuTrigger.Props;
|
|
113
|
+
type State = Base.SubmenuTrigger.State;
|
|
114
|
+
}
|
|
115
|
+
export declare const Handle: typeof Base.Handle;
|
|
116
|
+
export type Handle<Payload> = Base.Handle<Payload>;
|
|
117
|
+
export declare const createHandle: typeof Base.createHandle;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { Menu as Base } from '@base-ui/react/menu';
|
|
3
|
+
import { wrapPart, wrapVariantPart } from "../part.js";
|
|
4
|
+
export const Arrow = /*#__PURE__*/ (() => wrapPart(Base.Arrow, 'nave-base-ui-arrow nave-base-ui-arrow-inline'))();
|
|
5
|
+
export const Backdrop = /*#__PURE__*/ (() => Base.Backdrop)();
|
|
6
|
+
export const CheckboxItem = /*#__PURE__*/ (() => wrapPart(Base.CheckboxItem, 'nave-base-ui-item nave-base-ui-item-highlight'))();
|
|
7
|
+
export const CheckboxItemIndicator = /*#__PURE__*/ (() => Base.CheckboxItemIndicator)();
|
|
8
|
+
export const Group = /*#__PURE__*/ (() => Base.Group)();
|
|
9
|
+
export const GroupLabel = /*#__PURE__*/ (() => wrapPart(Base.GroupLabel, 'nave-base-ui-group-label'))();
|
|
10
|
+
export const Item = /*#__PURE__*/ (() => wrapPart(Base.Item, 'nave-base-ui-item nave-base-ui-item-highlight'))();
|
|
11
|
+
export const LinkItem = /*#__PURE__*/ (() => wrapPart(Base.LinkItem, 'nave-base-ui-item nave-base-ui-item-highlight'))();
|
|
12
|
+
export const Popup = /*#__PURE__*/ (() => wrapPart(Base.Popup, 'nave-base-ui-list-popup nave-base-ui-popup-motion'))();
|
|
13
|
+
export const Portal = /*#__PURE__*/ (() => Base.Portal)();
|
|
14
|
+
export const Positioner = /*#__PURE__*/ (() => Base.Positioner)();
|
|
15
|
+
export const RadioGroup = /*#__PURE__*/ (() => Base.RadioGroup)();
|
|
16
|
+
export const RadioItem = /*#__PURE__*/ (() => wrapPart(Base.RadioItem, 'nave-base-ui-item nave-base-ui-item-highlight'))();
|
|
17
|
+
export const RadioItemIndicator = /*#__PURE__*/ (() => Base.RadioItemIndicator)();
|
|
18
|
+
export const Root = /*#__PURE__*/ (() => Base.Root)();
|
|
19
|
+
export const SubmenuRoot = /*#__PURE__*/ (() => Base.SubmenuRoot)();
|
|
20
|
+
export const Trigger = /*#__PURE__*/ (() => wrapVariantPart(Base.Trigger, 'nave-base-ui-button'))();
|
|
21
|
+
export const Viewport = /*#__PURE__*/ (() => Base.Viewport)();
|
|
22
|
+
export const Separator = /*#__PURE__*/ (() => wrapPart(Base.Separator, 'nave-base-ui-separator'))();
|
|
23
|
+
export const SubmenuTrigger = /*#__PURE__*/ (() => wrapPart(Base.SubmenuTrigger, 'nave-base-ui-item nave-base-ui-item-highlight'))();
|
|
24
|
+
export const Handle = /*#__PURE__*/ (() => Base.Handle)();
|
|
25
|
+
export const createHandle = /*#__PURE__*/ (() => Base.createHandle)();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { Menubar as Base } from '@base-ui/react/menubar';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Menubar = /*#__PURE__*/ (() => wrapPart(Base, 'nave-base-ui-toolbar'))();
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Meter as Base } from '@base-ui/react/meter';
|
|
2
|
+
export declare const Root: typeof Base.Root;
|
|
3
|
+
export declare namespace Root {
|
|
4
|
+
type State = Base.Root.State;
|
|
5
|
+
type Props = Base.Root.Props;
|
|
6
|
+
}
|
|
7
|
+
export declare const Track: typeof Base.Track;
|
|
8
|
+
export declare namespace Track {
|
|
9
|
+
type State = Base.Track.State;
|
|
10
|
+
type Props = Base.Track.Props;
|
|
11
|
+
}
|
|
12
|
+
export declare const Indicator: typeof Base.Indicator;
|
|
13
|
+
export declare namespace Indicator {
|
|
14
|
+
type State = Base.Indicator.State;
|
|
15
|
+
type Props = Base.Indicator.Props;
|
|
16
|
+
}
|
|
17
|
+
export declare const Value: typeof Base.Value;
|
|
18
|
+
export declare namespace Value {
|
|
19
|
+
type State = Base.Value.State;
|
|
20
|
+
type Props = Base.Value.Props;
|
|
21
|
+
}
|
|
22
|
+
export declare const Label: typeof Base.Label;
|
|
23
|
+
export declare namespace Label {
|
|
24
|
+
type State = Base.Label.State;
|
|
25
|
+
type Props = Base.Label.Props;
|
|
26
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { Meter as Base } from '@base-ui/react/meter';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Root = /*#__PURE__*/ (() => wrapPart(Base.Root, 'nave-base-ui-value-bar'))();
|
|
6
|
+
export const Track = /*#__PURE__*/ (() => wrapPart(Base.Track, 'nave-base-ui-value-bar-track'))();
|
|
7
|
+
export const Indicator = /*#__PURE__*/ (() => wrapPart(Base.Indicator, 'nave-base-ui-value-bar-indicator'))();
|
|
8
|
+
export const Value = /*#__PURE__*/ (() => wrapPart(Base.Value, 'nave-base-ui-slider-value'))();
|
|
9
|
+
export const Label = /*#__PURE__*/ (() => wrapPart(Base.Label, 'nave-base-ui-label'))();
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { NavigationMenu as Base } from '@base-ui/react/navigation-menu';
|
|
2
|
+
export declare const Root: typeof Base.Root;
|
|
3
|
+
export declare namespace Root {
|
|
4
|
+
type State = Base.Root.State;
|
|
5
|
+
type Props = Base.Root.Props;
|
|
6
|
+
type Actions = Base.Root.Actions;
|
|
7
|
+
type ChangeEventReason = Base.Root.ChangeEventReason;
|
|
8
|
+
type ChangeEventDetails = Base.Root.ChangeEventDetails;
|
|
9
|
+
}
|
|
10
|
+
export declare const List: typeof Base.List;
|
|
11
|
+
export declare namespace List {
|
|
12
|
+
type State = Base.List.State;
|
|
13
|
+
type Props = Base.List.Props;
|
|
14
|
+
}
|
|
15
|
+
export declare const Item: typeof Base.Item;
|
|
16
|
+
export declare namespace Item {
|
|
17
|
+
type State = Base.Item.State;
|
|
18
|
+
type Props = Base.Item.Props;
|
|
19
|
+
}
|
|
20
|
+
export declare const Content: typeof Base.Content;
|
|
21
|
+
export declare namespace Content {
|
|
22
|
+
type State = Base.Content.State;
|
|
23
|
+
type Props = Base.Content.Props;
|
|
24
|
+
}
|
|
25
|
+
export declare const Trigger: typeof Base.Trigger;
|
|
26
|
+
export declare namespace Trigger {
|
|
27
|
+
type State = Base.Trigger.State;
|
|
28
|
+
type Props = Base.Trigger.Props;
|
|
29
|
+
}
|
|
30
|
+
export declare const Portal: typeof Base.Portal;
|
|
31
|
+
export declare namespace Portal {
|
|
32
|
+
type State = Base.Portal.State;
|
|
33
|
+
type Props = Base.Portal.Props;
|
|
34
|
+
}
|
|
35
|
+
export declare const Positioner: typeof Base.Positioner;
|
|
36
|
+
export declare namespace Positioner {
|
|
37
|
+
type State = Base.Positioner.State;
|
|
38
|
+
type Props = Base.Positioner.Props;
|
|
39
|
+
}
|
|
40
|
+
export declare const Viewport: typeof Base.Viewport;
|
|
41
|
+
export declare namespace Viewport {
|
|
42
|
+
type State = Base.Viewport.State;
|
|
43
|
+
type Props = Base.Viewport.Props;
|
|
44
|
+
}
|
|
45
|
+
export declare const Backdrop: typeof Base.Backdrop;
|
|
46
|
+
export declare namespace Backdrop {
|
|
47
|
+
type State = Base.Backdrop.State;
|
|
48
|
+
type Props = Base.Backdrop.Props;
|
|
49
|
+
}
|
|
50
|
+
export declare const Popup: typeof Base.Popup;
|
|
51
|
+
export declare namespace Popup {
|
|
52
|
+
type State = Base.Popup.State;
|
|
53
|
+
type Props = Base.Popup.Props;
|
|
54
|
+
}
|
|
55
|
+
export declare const Arrow: typeof Base.Arrow;
|
|
56
|
+
export declare namespace Arrow {
|
|
57
|
+
type State = Base.Arrow.State;
|
|
58
|
+
type Props = Base.Arrow.Props;
|
|
59
|
+
}
|
|
60
|
+
export declare const Link: typeof Base.Link;
|
|
61
|
+
export declare namespace Link {
|
|
62
|
+
type State = Base.Link.State;
|
|
63
|
+
type Props = Base.Link.Props;
|
|
64
|
+
}
|
|
65
|
+
export declare const Icon: typeof Base.Icon;
|
|
66
|
+
export declare namespace Icon {
|
|
67
|
+
type State = Base.Icon.State;
|
|
68
|
+
type Props = Base.Icon.Props;
|
|
69
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
// Generated by scripts/generate-wrappers.ts: change the roster or the generator, not this file.
|
|
3
|
+
import { NavigationMenu as Base } from '@base-ui/react/navigation-menu';
|
|
4
|
+
import { wrapPart } from "../part.js";
|
|
5
|
+
export const Root = /*#__PURE__*/ (() => Base.Root)();
|
|
6
|
+
export const List = /*#__PURE__*/ (() => wrapPart(Base.List, 'nave-base-ui-navigation-menu-list'))();
|
|
7
|
+
export const Item = /*#__PURE__*/ (() => Base.Item)();
|
|
8
|
+
export const Content = /*#__PURE__*/ (() => Base.Content)();
|
|
9
|
+
export const Trigger = /*#__PURE__*/ (() => wrapPart(Base.Trigger, 'nave-base-ui-navigation-menu-trigger'))();
|
|
10
|
+
export const Portal = /*#__PURE__*/ (() => Base.Portal)();
|
|
11
|
+
export const Positioner = /*#__PURE__*/ (() => Base.Positioner)();
|
|
12
|
+
export const Viewport = /*#__PURE__*/ (() => Base.Viewport)();
|
|
13
|
+
export const Backdrop = /*#__PURE__*/ (() => Base.Backdrop)();
|
|
14
|
+
export const Popup = /*#__PURE__*/ (() => wrapPart(Base.Popup, 'nave-base-ui-popover-popup nave-base-ui-navigation-menu-fade'))();
|
|
15
|
+
export const Arrow = /*#__PURE__*/ (() => wrapPart(Base.Arrow, 'nave-base-ui-arrow nave-base-ui-arrow-inline'))();
|
|
16
|
+
export const Link = /*#__PURE__*/ (() => wrapPart(Base.Link, 'nave-base-ui-toolbar-link nave-base-ui-current-link'))();
|
|
17
|
+
export const Icon = /*#__PURE__*/ (() => wrapPart(Base.Icon, 'nave-base-ui-navigation-menu-icon'))();
|