@journ/nude 0.1.0 → 0.1.2
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/dist/accordion-parts.d.ts +6 -5
- package/dist/accordion.d.ts +4 -4
- package/dist/alert-dialog-parts.d.ts +9 -8
- package/dist/alert-dialog.d.ts +10 -9
- package/dist/alert.d.ts +13 -6
- package/dist/animated-size.d.ts +3 -3
- package/dist/avatar-parts.d.ts +5 -4
- package/dist/avatar.d.ts +3 -3
- package/dist/badge.d.ts +2 -1
- package/dist/breadcrumbs.d.ts +13 -6
- package/dist/bulk-bar.d.ts +8 -3
- package/dist/button.d.ts +4 -4
- package/dist/calendar-parts.d.ts +23 -26
- package/dist/calendar-parts.js +2 -1
- package/dist/card.d.ts +15 -7
- package/dist/carousel-parts.d.ts +20 -11
- package/dist/carousel-parts.js +2 -1
- package/dist/checkbox-parts.d.ts +3 -2
- package/dist/checkbox.d.ts +3 -2
- package/dist/chip.d.ts +9 -7
- package/dist/collapsible-parts.d.ts +4 -3
- package/dist/collapsible.d.ts +4 -3
- package/dist/combobox-parts.d.ts +19 -63
- package/dist/combobox-parts.js +7 -1
- package/dist/combobox.d.ts +13 -76
- package/dist/command-palette-parts.d.ts +3 -3
- package/dist/command-palette.d.ts +8 -54
- package/dist/composer.d.ts +5 -2
- package/dist/context-menu-parts.d.ts +8 -4
- package/dist/context-menu-parts.js +5 -1
- package/dist/context-menu.d.ts +8 -7
- package/dist/currency-input-parts.d.ts +4 -3
- package/dist/data-table-parts.d.ts +18 -25
- package/dist/data-table-parts.js +0 -1
- package/dist/date-input-parts.d.ts +4 -3
- package/dist/date-picker-parts.d.ts +11 -10
- package/dist/date-picker-parts.js +6 -1
- package/dist/date-picker.d.ts +7 -21
- package/dist/date-range-picker-parts.d.ts +11 -10
- package/dist/date-range-picker-parts.js +6 -1
- package/dist/date-range-picker.d.ts +7 -21
- package/dist/description-list.d.ts +7 -3
- package/dist/dialog-parts.d.ts +8 -7
- package/dist/dialog.d.ts +10 -9
- package/dist/divider.d.ts +2 -1
- package/dist/drawer-parts.d.ts +9 -20
- package/dist/drawer.d.ts +10 -22
- package/dist/dropdown-menu-parts.d.ts +8 -4
- package/dist/dropdown-menu-parts.js +5 -1
- package/dist/dropdown-menu.d.ts +8 -7
- package/dist/empty-state.d.ts +11 -5
- package/dist/field-parts.d.ts +8 -7
- package/dist/file-dropzone-parts.d.ts +8 -7
- package/dist/file-dropzone.d.ts +4 -4
- package/dist/heading.d.ts +3 -3
- package/dist/hover-card-parts.d.ts +4 -4
- package/dist/hover-card.d.ts +3 -3
- package/dist/icon-button.d.ts +3 -2
- package/dist/icon.d.ts +3 -3
- package/dist/input.d.ts +2 -1
- package/dist/lib/commit-on.d.ts +6 -5
- package/dist/lib/menu-parts.d.ts +9 -7
- package/dist/lib/modal-content.d.ts +5 -4
- package/dist/lib/modal-parts.d.ts +3 -2
- package/dist/lib/part.d.ts +3 -2
- package/dist/lib/picker.d.ts +18 -15
- package/dist/link.d.ts +3 -3
- package/dist/markdown.d.ts +2 -2
- package/dist/message.d.ts +9 -6
- package/dist/month-picker-parts.d.ts +2 -2
- package/dist/month-stepper-parts.d.ts +7 -6
- package/dist/multiple-selector-parts.d.ts +23 -11
- package/dist/multiple-selector-parts.js +7 -2
- package/dist/multiple-selector.d.ts +11 -64
- package/dist/nav-bar.d.ts +5 -2
- package/dist/navigation-menu-parts.d.ts +8 -7
- package/dist/navigation-menu.d.ts +6 -6
- package/dist/otp-input-parts.d.ts +4 -3
- package/dist/otp-input.d.ts +4 -3
- package/dist/page-header.d.ts +7 -3
- package/dist/page.d.ts +7 -3
- package/dist/pagination.d.ts +12 -7
- package/dist/pill-select.d.ts +2 -1
- package/dist/popover-parts.d.ts +5 -5
- package/dist/popover.d.ts +4 -4
- package/dist/portal.d.ts +1 -1
- package/dist/progress-parts.d.ts +5 -4
- package/dist/quantity-input-parts.d.ts +7 -6
- package/dist/radio-parts.d.ts +4 -3
- package/dist/radio.d.ts +2 -2
- package/dist/scroll-area-parts.d.ts +7 -6
- package/dist/scroll-area.d.ts +4 -4
- package/dist/select-parts.d.ts +10 -9
- package/dist/select.d.ts +6 -6
- package/dist/sheet-parts.d.ts +5 -5
- package/dist/sheet.d.ts +9 -7
- package/dist/sidebar.d.ts +19 -9
- package/dist/skeleton.d.ts +2 -1
- package/dist/slider-parts.d.ts +5 -4
- package/dist/slider.d.ts +5 -4
- package/dist/spinner.d.ts +2 -2
- package/dist/stack-parts.d.ts +8 -7
- package/dist/stat.d.ts +9 -4
- package/dist/step-button.d.ts +4 -3
- package/dist/stepper-parts.d.ts +15 -10
- package/dist/stepper-parts.js +2 -1
- package/dist/stepper.d.ts +3 -3
- package/dist/styled.d.ts +5 -0
- package/dist/styled.js +0 -0
- package/dist/switch-parts.d.ts +3 -2
- package/dist/switch.d.ts +3 -2
- package/dist/table.d.ts +15 -7
- package/dist/tabs-parts.d.ts +5 -4
- package/dist/tabs.d.ts +5 -4
- package/dist/tag-input-parts.d.ts +18 -8
- package/dist/tag-input-parts.js +2 -1
- package/dist/text-morph.d.ts +3 -3
- package/dist/text-shimmer.d.ts +3 -3
- package/dist/text.d.ts +2 -1
- package/dist/textarea.d.ts +2 -1
- package/dist/time-range-parts.d.ts +6 -6
- package/dist/toast-parts.d.ts +7 -6
- package/dist/toggle-group-parts.d.ts +3 -2
- package/dist/toggle-group.d.ts +3 -2
- package/dist/tooltip-parts.d.ts +5 -5
- package/dist/tooltip.d.ts +3 -3
- package/dist/touch-target.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,10 +1,22 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { Picker } from "./lib/picker.js";
|
|
1
3
|
import { Empty, Frame, Group, Input as Input$1, ItemIndicator, List, Option } from "./combobox-parts.js";
|
|
2
|
-
import { ComponentPropsWithRef, ElementType, ReactNode } from "react";
|
|
4
|
+
import { ComponentPropsWithRef, ElementType, JSX, ReactNode } from "react";
|
|
3
5
|
//#region src/multiple-selector-parts.d.ts
|
|
4
|
-
declare const Trigger:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare const Trigger: Picker<string[]>["Trigger"];
|
|
7
|
+
declare const PickerValue: Picker<string[]>["Value"];
|
|
8
|
+
type SelectionContextValue = {
|
|
9
|
+
selected: string[];
|
|
10
|
+
fixed: string[];
|
|
11
|
+
/** True once `max` values are chosen: nothing more can be added. */
|
|
12
|
+
full: boolean;
|
|
13
|
+
search: string;
|
|
14
|
+
setSearch: (search: string) => void;
|
|
15
|
+
toggle: (value: string) => void;
|
|
16
|
+
remove: (value: string) => void;
|
|
17
|
+
create: (text: string) => void;
|
|
18
|
+
};
|
|
19
|
+
declare const useMultipleSelector: () => SelectionContextValue;
|
|
8
20
|
type RootProps = {
|
|
9
21
|
value?: string[];
|
|
10
22
|
defaultValue?: string[];
|
|
@@ -19,9 +31,9 @@ type RootProps = {
|
|
|
19
31
|
* A combobox that keeps its drawer open and collects values. A value is also its
|
|
20
32
|
* label. Build the list from Combobox's parts, plus `Create` to allow new values.
|
|
21
33
|
*/
|
|
22
|
-
declare const Root: ({ value, defaultValue, onValueChange, fixed, max, children }: RootProps) =>
|
|
34
|
+
declare const Root: ({ value, defaultValue, onValueChange, fixed, max, children }: RootProps) => JSX.Element;
|
|
23
35
|
/** The count of chosen values, or `children` when given. */
|
|
24
|
-
declare const Value:
|
|
36
|
+
declare const Value: Styled<typeof PickerValue>;
|
|
25
37
|
type TagsProps = {
|
|
26
38
|
/** The chip rendered per value. It receives `removeLabel`, `onRemove` and the value as children. */
|
|
27
39
|
components?: {
|
|
@@ -29,11 +41,11 @@ type TagsProps = {
|
|
|
29
41
|
};
|
|
30
42
|
};
|
|
31
43
|
/** One chip per chosen value, with a remove button unless the value is fixed. */
|
|
32
|
-
declare const Tags: ({ components }: TagsProps) =>
|
|
33
|
-
declare const Input:
|
|
44
|
+
declare const Tags: ({ components }: TagsProps) => ReactNode;
|
|
45
|
+
declare const Input: Styled<typeof Input$1>;
|
|
34
46
|
/** Toggles its value. Fixed values are locked, and unchosen values lock once `max` is reached. */
|
|
35
|
-
declare const Item: ({ value, disabled, ...props }: Omit<ComponentPropsWithRef<typeof Option>,
|
|
47
|
+
declare const Item: ({ value, disabled, ...props }: Omit<ComponentPropsWithRef<typeof Option>, "checked" | "onPick">) => JSX.Element;
|
|
36
48
|
/** Offers the typed text as a new value. Hidden when empty, already chosen, or the selection is full. */
|
|
37
|
-
declare const Create: ({ children, ...props }: Omit<ComponentPropsWithRef<typeof Option>,
|
|
49
|
+
declare const Create: ({ children, ...props }: Omit<ComponentPropsWithRef<typeof Option>, "value" | "checked" | "onPick">) => ReactNode;
|
|
38
50
|
//#endregion
|
|
39
51
|
export { Create, Empty, Frame, Group, Input, Item, ItemIndicator, List, Root, type RootProps, Tags, Trigger, Value, useMultipleSelector };
|
|
@@ -6,11 +6,16 @@ import { useState } from "react";
|
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { createRequiredContext } from "@journ/lift";
|
|
8
8
|
//#region src/multiple-selector-parts.tsx
|
|
9
|
-
const
|
|
9
|
+
const picker = createPicker("MultipleSelector", "multiple-selector", {
|
|
10
10
|
closeOnSelect: false,
|
|
11
11
|
isEmpty: (value) => !value || value.length === 0
|
|
12
12
|
});
|
|
13
|
-
const
|
|
13
|
+
const Provider = picker.Provider;
|
|
14
|
+
const Trigger = picker.Trigger;
|
|
15
|
+
const PickerValue = picker.Value;
|
|
16
|
+
const usePickerState = picker.usePickerState;
|
|
17
|
+
const [SelectionContext, useMultipleSelectorContext] = createRequiredContext("MultipleSelector.Root");
|
|
18
|
+
const useMultipleSelector = useMultipleSelectorContext;
|
|
14
19
|
const none = [];
|
|
15
20
|
/**
|
|
16
21
|
* A combobox that keeps its drawer open and collects values. A value is also its
|
|
@@ -1,73 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Create, Input, Item, Root, RootProps, Tags, Value, useMultipleSelector } from "./multiple-selector-parts.js";
|
|
1
|
+
import { Empty, Frame, Group, ItemIndicator, List } from "./combobox-parts.js";
|
|
2
|
+
import { Content, Description, Title } from "./drawer-parts.js";
|
|
3
|
+
import { Create, Input, Item, Root, RootProps, Tags, Trigger, Value, useMultipleSelector } from "./multiple-selector-parts.js";
|
|
4
4
|
//#region src/multiple-selector.d.ts
|
|
5
5
|
declare const MultipleSelector: {
|
|
6
6
|
Root: typeof Root;
|
|
7
|
-
Trigger:
|
|
7
|
+
Trigger: typeof Trigger;
|
|
8
8
|
Value: typeof Value;
|
|
9
9
|
Tags: typeof Tags;
|
|
10
|
-
Content:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Overlay: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
Trigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
16
|
-
Portal: typeof import("vaul").Portal;
|
|
17
|
-
Handle: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
18
|
-
preventCycle?: boolean | undefined;
|
|
19
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
Close: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
|
-
Title: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
22
|
-
Description: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
|
-
}>) => import("react").JSX.Element;
|
|
24
|
-
Title: (props: import("@radix-ui/react-dialog").DialogTitleProps & import("react").RefAttributes<HTMLHeadingElement>) => import("react").ReactNode;
|
|
25
|
-
Description: (props: import("@radix-ui/react-dialog").DialogDescriptionProps & import("react").RefAttributes<HTMLParagraphElement>) => import("react").ReactNode;
|
|
26
|
-
Frame: (props: {
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
29
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
-
} & {
|
|
31
|
-
asChild?: boolean;
|
|
32
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
33
|
-
label?: string;
|
|
34
|
-
shouldFilter?: boolean;
|
|
35
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
36
|
-
defaultValue?: string;
|
|
37
|
-
value?: string;
|
|
38
|
-
onValueChange?: (value: string) => void;
|
|
39
|
-
loop?: boolean;
|
|
40
|
-
disablePointerSelection?: boolean;
|
|
41
|
-
vimBindings?: boolean;
|
|
42
|
-
} & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
|
|
10
|
+
Content: typeof Content;
|
|
11
|
+
Title: typeof Title;
|
|
12
|
+
Description: typeof Description;
|
|
13
|
+
Frame: typeof Frame;
|
|
43
14
|
Input: typeof Input;
|
|
44
|
-
List:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
48
|
-
} & {
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
51
|
-
label?: string;
|
|
52
|
-
} & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
|
|
53
|
-
Empty: (props: {
|
|
54
|
-
children?: React.ReactNode;
|
|
55
|
-
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
56
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
57
|
-
} & {
|
|
58
|
-
asChild?: boolean;
|
|
59
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
|
|
60
|
-
Group: (props: {
|
|
61
|
-
children?: React.ReactNode;
|
|
62
|
-
} & Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
63
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
64
|
-
} & {
|
|
65
|
-
asChild?: boolean;
|
|
66
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
67
|
-
heading?: React.ReactNode;
|
|
68
|
-
value?: string;
|
|
69
|
-
forceMount?: boolean;
|
|
70
|
-
} & import("react").RefAttributes<HTMLDivElement>) => import("react").ReactNode;
|
|
15
|
+
List: typeof List;
|
|
16
|
+
Empty: typeof Empty;
|
|
17
|
+
Group: typeof Group;
|
|
71
18
|
Item: typeof Item;
|
|
72
19
|
ItemIndicator: typeof ItemIndicator;
|
|
73
20
|
Create: typeof Create;
|
package/dist/nav-bar.d.ts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/nav-bar.d.ts
|
|
3
|
+
declare const Root: Styled<"nav">;
|
|
4
|
+
declare const Item: Styled<"a">;
|
|
2
5
|
declare const NavBar: {
|
|
3
|
-
Root:
|
|
4
|
-
Item:
|
|
6
|
+
Root: typeof Root;
|
|
7
|
+
Item: typeof Item;
|
|
5
8
|
};
|
|
6
9
|
//#endregion
|
|
7
10
|
export { NavBar };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
import * as RadixNav from "@radix-ui/react-navigation-menu";
|
|
3
4
|
//#region src/navigation-menu-parts.d.ts
|
|
4
5
|
type RootProps = ComponentPropsWithRef<typeof RadixNav.Root> & {
|
|
@@ -8,11 +9,11 @@ type RootProps = ComponentPropsWithRef<typeof RadixNav.Root> & {
|
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
/** Includes the viewport, the panel that Content opens into. */
|
|
11
|
-
declare const Root: ({ classNames, children, ...props }: RootProps) =>
|
|
12
|
-
declare const List:
|
|
13
|
-
declare const Item:
|
|
14
|
-
declare const Trigger:
|
|
15
|
-
declare const Content:
|
|
16
|
-
declare const Link:
|
|
12
|
+
declare const Root: ({ classNames, children, ...props }: RootProps) => JSX.Element;
|
|
13
|
+
declare const List: Styled<typeof RadixNav.List>;
|
|
14
|
+
declare const Item: typeof RadixNav.Item;
|
|
15
|
+
declare const Trigger: Styled<typeof RadixNav.Trigger>;
|
|
16
|
+
declare const Content: Styled<typeof RadixNav.Content>;
|
|
17
|
+
declare const Link: Styled<typeof RadixNav.Link>;
|
|
17
18
|
//#endregion
|
|
18
19
|
export { Content, Item, Link, List, Root, Trigger };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { Root } from "./navigation-menu-parts.js";
|
|
1
|
+
import { Content, Item, Link, List, Root, Trigger } from "./navigation-menu-parts.js";
|
|
2
2
|
//#region src/navigation-menu.d.ts
|
|
3
3
|
declare const NavigationMenu: {
|
|
4
4
|
Root: typeof Root;
|
|
5
|
-
List:
|
|
6
|
-
Item:
|
|
7
|
-
Trigger:
|
|
8
|
-
Content:
|
|
9
|
-
Link:
|
|
5
|
+
List: typeof List;
|
|
6
|
+
Item: typeof Item;
|
|
7
|
+
Trigger: typeof Trigger;
|
|
8
|
+
Content: typeof Content;
|
|
9
|
+
Link: typeof Link;
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { NavigationMenu };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixOtp from "@radix-ui/react-one-time-password-field";
|
|
2
3
|
//#region src/otp-input-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
+
declare const Root: Styled<typeof RadixOtp.Root>;
|
|
4
5
|
/** One box per character. Render as many as the code is long. */
|
|
5
|
-
declare const Slot:
|
|
6
|
+
declare const Slot: Styled<typeof RadixOtp.Input>;
|
|
6
7
|
/** Submits the whole code with a surrounding form. Render it once, after the slots. */
|
|
7
|
-
declare const Hidden:
|
|
8
|
+
declare const Hidden: typeof RadixOtp.HiddenInput;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Hidden, Root, Slot };
|
package/dist/otp-input.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Hidden, Root, Slot } from "./otp-input-parts.js";
|
|
1
2
|
//#region src/otp-input.d.ts
|
|
2
3
|
declare const OtpInput: {
|
|
3
|
-
Root:
|
|
4
|
-
Slot:
|
|
5
|
-
Hidden:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Slot: typeof Slot;
|
|
6
|
+
Hidden: typeof Hidden;
|
|
6
7
|
};
|
|
7
8
|
//#endregion
|
|
8
9
|
export { OtpInput };
|
package/dist/page-header.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/page-header.d.ts
|
|
3
|
+
declare const Root: Styled<"header">;
|
|
4
|
+
declare const Title: Styled<"h1">;
|
|
5
|
+
declare const Actions: Styled<"div">;
|
|
2
6
|
declare const PageHeader: {
|
|
3
|
-
Root:
|
|
4
|
-
Title:
|
|
5
|
-
Actions:
|
|
7
|
+
Root: typeof Root;
|
|
8
|
+
Title: typeof Title;
|
|
9
|
+
Actions: typeof Actions;
|
|
6
10
|
};
|
|
7
11
|
//#endregion
|
|
8
12
|
export { PageHeader };
|
package/dist/page.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/page.d.ts
|
|
3
|
+
declare const Root: Styled<"div">;
|
|
4
|
+
declare const Content: Styled<"main">;
|
|
5
|
+
declare const Footer: Styled<"div">;
|
|
2
6
|
declare const Page: {
|
|
3
|
-
Root:
|
|
4
|
-
Content:
|
|
5
|
-
Footer:
|
|
7
|
+
Root: typeof Root;
|
|
8
|
+
Content: typeof Content;
|
|
9
|
+
Footer: typeof Footer;
|
|
6
10
|
};
|
|
7
11
|
//#endregion
|
|
8
12
|
export { Page };
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
2
|
//#region src/pagination.d.ts
|
|
3
|
-
declare const
|
|
3
|
+
declare const Root: Styled<"nav">;
|
|
4
|
+
declare const List: Styled<"div">;
|
|
5
|
+
declare const Previous: Styled<"a">;
|
|
6
|
+
declare const Next: Styled<"a">;
|
|
7
|
+
declare const Page: Styled<"a">;
|
|
8
|
+
declare const Gap: Styled<"span">;
|
|
4
9
|
declare const Pagination: {
|
|
5
|
-
Root:
|
|
6
|
-
Previous:
|
|
7
|
-
List:
|
|
8
|
-
Page:
|
|
10
|
+
Root: typeof Root;
|
|
11
|
+
Previous: typeof Previous;
|
|
12
|
+
List: typeof List;
|
|
13
|
+
Page: typeof Page;
|
|
9
14
|
Gap: typeof Gap;
|
|
10
|
-
Next:
|
|
15
|
+
Next: typeof Next;
|
|
11
16
|
};
|
|
12
17
|
//#endregion
|
|
13
18
|
export { Pagination };
|
package/dist/pill-select.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/pill-select.d.ts
|
|
2
|
-
declare const PillSelect:
|
|
3
|
+
declare const PillSelect: Styled<"select">;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { PillSelect };
|
package/dist/popover-parts.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
2
|
import * as RadixPopover from "@radix-ui/react-popover";
|
|
3
3
|
//#region src/popover-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Trigger:
|
|
6
|
-
declare const Close:
|
|
7
|
-
declare const Content:
|
|
4
|
+
declare const Root: typeof RadixPopover.Root;
|
|
5
|
+
declare const Trigger: typeof RadixPopover.Trigger;
|
|
6
|
+
declare const Close: typeof RadixPopover.Close;
|
|
7
|
+
declare const Content: Styled<typeof RadixPopover.Content>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Close, Content, Root, Trigger };
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Content } from "./popover-parts.js";
|
|
1
|
+
import { Close, Content, Root, Trigger } from "./popover-parts.js";
|
|
2
2
|
//#region src/popover.d.ts
|
|
3
3
|
declare const Popover: {
|
|
4
|
-
Root:
|
|
5
|
-
Trigger:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Trigger: typeof Trigger;
|
|
6
6
|
Content: typeof Content;
|
|
7
|
-
Close:
|
|
7
|
+
Close: typeof Close;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Popover };
|
package/dist/portal.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ type PortalProps = {
|
|
|
10
10
|
* cannot trap them. Waits for the client, so it renders nothing on the server.
|
|
11
11
|
* Radix overlays already portal themselves; use this for your own floating UI.
|
|
12
12
|
*/
|
|
13
|
-
declare const Portal: ({ children, container }: PortalProps) =>
|
|
13
|
+
declare const Portal: ({ children, container }: PortalProps) => ReactNode;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Portal, type PortalProps };
|
package/dist/progress-parts.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
import * as RadixProgress from "@radix-ui/react-progress";
|
|
3
4
|
//#region src/progress-parts.d.ts
|
|
4
|
-
type RootProps = Omit<ComponentPropsWithRef<typeof RadixProgress.Root>,
|
|
5
|
+
type RootProps = Omit<ComponentPropsWithRef<typeof RadixProgress.Root>, "value"> & {
|
|
5
6
|
value: number;
|
|
6
7
|
};
|
|
7
|
-
declare const Root: ({ value, max, ...props }: RootProps) =>
|
|
8
|
+
declare const Root: ({ value, max, ...props }: RootProps) => JSX.Element;
|
|
8
9
|
/** Slides in from the left as the value grows. */
|
|
9
|
-
declare const Indicator:
|
|
10
|
+
declare const Indicator: Styled<typeof RadixProgress.Indicator>;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Indicator, type RootProps as ProgressProps, Root };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import { IconButtonProps } from "./icon-button.js";
|
|
2
3
|
import { Composer } from "./composer.js";
|
|
3
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
4
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
4
5
|
//#region src/quantity-input-parts.d.ts
|
|
5
|
-
type RootProps = Omit<ComponentPropsWithRef<
|
|
6
|
+
type RootProps = Omit<ComponentPropsWithRef<"div">, "defaultValue" | "onChange"> & {
|
|
6
7
|
value?: number;
|
|
7
8
|
defaultValue?: number;
|
|
8
9
|
onValueChange?: (value: number) => void;
|
|
@@ -13,9 +14,9 @@ type RootProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'>
|
|
|
13
14
|
children?: ReactNode;
|
|
14
15
|
};
|
|
15
16
|
/** A number with minus and plus. Typing is free until blur or Enter, then it snaps to the bounds. */
|
|
16
|
-
declare const Root: ({ value, defaultValue, onValueChange, min, max, step, disabled, children, ...props }: RootProps) =>
|
|
17
|
-
declare const Decrement: (props: IconButtonProps) =>
|
|
18
|
-
declare const Increment: (props: IconButtonProps) =>
|
|
19
|
-
declare const Field:
|
|
17
|
+
declare const Root: ({ value, defaultValue, onValueChange, min, max, step, disabled, children, ...props }: RootProps) => JSX.Element;
|
|
18
|
+
declare const Decrement: (props: IconButtonProps) => JSX.Element;
|
|
19
|
+
declare const Increment: (props: IconButtonProps) => JSX.Element;
|
|
20
|
+
declare const Field: Styled<typeof Composer.Input>;
|
|
20
21
|
//#endregion
|
|
21
22
|
export { Decrement, Field, Increment, Root, type RootProps };
|
package/dist/radio-parts.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
import * as RadixRadio from "@radix-ui/react-radio-group";
|
|
3
4
|
//#region src/radio-parts.d.ts
|
|
4
|
-
declare const Group:
|
|
5
|
+
declare const Group: Styled<typeof RadixRadio.Root>;
|
|
5
6
|
type ItemProps = ComponentPropsWithRef<typeof RadixRadio.Item> & {
|
|
6
7
|
classNames?: {
|
|
7
8
|
indicator?: string;
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
/** Renders its own indicator after any children. */
|
|
11
|
-
declare const Item: ({ classNames, children, ...props }: ItemProps) =>
|
|
12
|
+
declare const Item: ({ classNames, children, ...props }: ItemProps) => JSX.Element;
|
|
12
13
|
//#endregion
|
|
13
14
|
export { Group, Item };
|
package/dist/radio.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Item } from "./radio-parts.js";
|
|
1
|
+
import { Group, Item } from "./radio-parts.js";
|
|
2
2
|
//#region src/radio.d.ts
|
|
3
3
|
declare const Radio: {
|
|
4
|
-
Group:
|
|
4
|
+
Group: typeof Group;
|
|
5
5
|
Item: typeof Item;
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
2
3
|
import * as RadixScrollArea from "@radix-ui/react-scroll-area";
|
|
3
4
|
//#region src/scroll-area-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Viewport:
|
|
6
|
-
type ScrollbarProps = Omit<ComponentPropsWithRef<typeof RadixScrollArea.Scrollbar>,
|
|
5
|
+
declare const Root: Styled<typeof RadixScrollArea.Root>;
|
|
6
|
+
declare const Viewport: Styled<typeof RadixScrollArea.Viewport>;
|
|
7
|
+
type ScrollbarProps = Omit<ComponentPropsWithRef<typeof RadixScrollArea.Scrollbar>, "children"> & {
|
|
7
8
|
classNames?: {
|
|
8
9
|
thumb?: string;
|
|
9
10
|
};
|
|
@@ -11,7 +12,7 @@ type ScrollbarProps = Omit<ComponentPropsWithRef<typeof RadixScrollArea.Scrollba
|
|
|
11
12
|
children?: ReactNode;
|
|
12
13
|
};
|
|
13
14
|
/** Draws its own thumb. */
|
|
14
|
-
declare const Scrollbar: ({ classNames, children, ...props }: ScrollbarProps) =>
|
|
15
|
-
declare const Corner:
|
|
15
|
+
declare const Scrollbar: ({ classNames, children, ...props }: ScrollbarProps) => JSX.Element;
|
|
16
|
+
declare const Corner: typeof RadixScrollArea.Corner;
|
|
16
17
|
//#endregion
|
|
17
18
|
export { Corner, Root, Scrollbar, Viewport };
|
package/dist/scroll-area.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Scrollbar } from "./scroll-area-parts.js";
|
|
1
|
+
import { Corner, Root, Scrollbar, Viewport } from "./scroll-area-parts.js";
|
|
2
2
|
//#region src/scroll-area.d.ts
|
|
3
3
|
declare const ScrollArea: {
|
|
4
|
-
Root:
|
|
5
|
-
Viewport:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Viewport: typeof Viewport;
|
|
6
6
|
Scrollbar: typeof Scrollbar;
|
|
7
|
-
Corner:
|
|
7
|
+
Corner: typeof Corner;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ScrollArea };
|
package/dist/select-parts.d.ts
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
2
3
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
3
4
|
//#region src/select-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Group:
|
|
6
|
-
declare const Value:
|
|
5
|
+
declare const Root: typeof RadixSelect.Root;
|
|
6
|
+
declare const Group: typeof RadixSelect.Group;
|
|
7
|
+
declare const Value: typeof RadixSelect.Value;
|
|
7
8
|
type TriggerProps = ComponentPropsWithRef<typeof RadixSelect.Trigger> & {
|
|
8
9
|
/** Rendered after the value, hidden from assistive tech. */
|
|
9
10
|
icon?: ReactNode;
|
|
10
11
|
};
|
|
11
|
-
declare const Trigger: ({ icon, children, ...props }: TriggerProps) =>
|
|
12
|
+
declare const Trigger: ({ icon, children, ...props }: TriggerProps) => JSX.Element;
|
|
12
13
|
type ContentProps = ComponentPropsWithRef<typeof RadixSelect.Content> & {
|
|
13
14
|
classNames?: {
|
|
14
15
|
viewport?: string;
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
|
-
declare const Content: ({ classNames, children, position, ...props }: ContentProps) =>
|
|
18
|
+
declare const Content: ({ classNames, children, position, ...props }: ContentProps) => JSX.Element;
|
|
18
19
|
type ItemProps = ComponentPropsWithRef<typeof RadixSelect.Item> & {
|
|
19
20
|
/** Shown while the item is the selected one. */
|
|
20
21
|
indicator?: ReactNode;
|
|
21
22
|
};
|
|
22
|
-
declare const Item: ({ indicator, children, ...props }: ItemProps) =>
|
|
23
|
-
declare const Label:
|
|
24
|
-
declare const Separator:
|
|
23
|
+
declare const Item: ({ indicator, children, ...props }: ItemProps) => JSX.Element;
|
|
24
|
+
declare const Label: Styled<typeof RadixSelect.Label>;
|
|
25
|
+
declare const Separator: Styled<typeof RadixSelect.Separator>;
|
|
25
26
|
//#endregion
|
|
26
27
|
export { Content, Group, Item, Label, Root, Separator, Trigger, Value };
|
package/dist/select.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Content, Item, Trigger } from "./select-parts.js";
|
|
1
|
+
import { Content, Group, Item, Label, Root, Separator, Trigger, Value } from "./select-parts.js";
|
|
2
2
|
//#region src/select.d.ts
|
|
3
3
|
declare const Select: {
|
|
4
|
-
Root:
|
|
4
|
+
Root: typeof Root;
|
|
5
5
|
Trigger: typeof Trigger;
|
|
6
|
-
Value:
|
|
6
|
+
Value: typeof Value;
|
|
7
7
|
Content: typeof Content;
|
|
8
|
-
Group:
|
|
9
|
-
Label:
|
|
8
|
+
Group: typeof Group;
|
|
9
|
+
Label: typeof Label;
|
|
10
10
|
Item: typeof Item;
|
|
11
|
-
Separator:
|
|
11
|
+
Separator: typeof Separator;
|
|
12
12
|
};
|
|
13
13
|
//#endregion
|
|
14
14
|
export { Select };
|
package/dist/sheet-parts.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModalContentPart } from "./lib/modal-content.js";
|
|
2
2
|
import { Actions, Body } from "./lib/modal-parts.js";
|
|
3
3
|
import { Close, Description, Root, Title, Trigger } from "./dialog-parts.js";
|
|
4
|
-
import { ComponentPropsWithRef } from "react";
|
|
4
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
5
5
|
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
6
6
|
//#region src/sheet-parts.d.ts
|
|
7
|
-
type Side =
|
|
8
|
-
declare const SheetContent:
|
|
7
|
+
type Side = "top" | "right" | "bottom" | "left";
|
|
8
|
+
declare const SheetContent: ModalContentPart<typeof RadixDialog>;
|
|
9
9
|
type ContentProps = ComponentPropsWithRef<typeof SheetContent> & {
|
|
10
10
|
side?: Side;
|
|
11
11
|
};
|
|
12
12
|
/** A dialog attached to one edge. `data-side` tells the styles which one. */
|
|
13
|
-
declare const Content: ({ side, ...props }: ContentProps) =>
|
|
13
|
+
declare const Content: ({ side, ...props }: ContentProps) => JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Actions, Body, Close, Content, Description, Root, type ContentProps as SheetContentProps, type Side as SheetSide, Title, Trigger };
|
package/dist/sheet.d.ts
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import { Actions, Body } from "./lib/modal-parts.js";
|
|
2
|
+
import { Close, Description, Root, Title, Trigger } from "./dialog-parts.js";
|
|
1
3
|
import { Content, SheetContentProps as ContentProps, SheetSide as Side } from "./sheet-parts.js";
|
|
2
4
|
//#region src/sheet.d.ts
|
|
3
5
|
declare const Sheet: {
|
|
4
|
-
Root:
|
|
5
|
-
Trigger:
|
|
6
|
-
Close:
|
|
6
|
+
Root: typeof Root;
|
|
7
|
+
Trigger: typeof Trigger;
|
|
8
|
+
Close: typeof Close;
|
|
7
9
|
Content: typeof Content;
|
|
8
|
-
Title:
|
|
9
|
-
Description:
|
|
10
|
-
Body:
|
|
11
|
-
Actions:
|
|
10
|
+
Title: typeof Title;
|
|
11
|
+
Description: typeof Description;
|
|
12
|
+
Body: typeof Body;
|
|
13
|
+
Actions: typeof Actions;
|
|
12
14
|
};
|
|
13
15
|
//#endregion
|
|
14
16
|
export { Sheet, type ContentProps as SheetContentProps, type Side as SheetSide };
|