@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,15 +1,16 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
3
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
4
|
//#region src/accordion-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Item:
|
|
6
|
-
declare const Content:
|
|
5
|
+
declare const Root: typeof RadixAccordion.Root;
|
|
6
|
+
declare const Item: Styled<typeof RadixAccordion.Item>;
|
|
7
|
+
declare const Content: Styled<typeof RadixAccordion.Content>;
|
|
7
8
|
type TriggerProps = ComponentPropsWithRef<typeof RadixAccordion.Trigger> & {
|
|
8
9
|
classNames?: {
|
|
9
10
|
header?: string;
|
|
10
11
|
};
|
|
11
12
|
};
|
|
12
13
|
/** Wrapped in a heading, as the accordion pattern requires. */
|
|
13
|
-
declare const Trigger: ({ classNames, ...props }: TriggerProps) =>
|
|
14
|
+
declare const Trigger: ({ classNames, ...props }: TriggerProps) => JSX.Element;
|
|
14
15
|
//#endregion
|
|
15
16
|
export { Content, Item, Root, Trigger };
|
package/dist/accordion.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Trigger } from "./accordion-parts.js";
|
|
1
|
+
import { Content, Item, Root, Trigger } from "./accordion-parts.js";
|
|
2
2
|
//#region src/accordion.d.ts
|
|
3
3
|
declare const Accordion: {
|
|
4
|
-
Root:
|
|
5
|
-
Item:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Item: typeof Item;
|
|
6
6
|
Trigger: typeof Trigger;
|
|
7
|
-
Content:
|
|
7
|
+
Content: typeof Content;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Accordion };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ModalContentPart } from "./lib/modal-content.js";
|
|
2
3
|
import { Actions } from "./lib/modal-parts.js";
|
|
3
4
|
import * as RadixAlertDialog from "@radix-ui/react-alert-dialog";
|
|
4
5
|
//#region src/alert-dialog-parts.d.ts
|
|
5
|
-
declare const Root:
|
|
6
|
-
declare const Trigger:
|
|
7
|
-
declare const Cancel:
|
|
8
|
-
declare const Action:
|
|
9
|
-
declare const Content:
|
|
10
|
-
declare const Title:
|
|
11
|
-
declare const Description:
|
|
6
|
+
declare const Root: typeof RadixAlertDialog.Root;
|
|
7
|
+
declare const Trigger: typeof RadixAlertDialog.Trigger;
|
|
8
|
+
declare const Cancel: typeof RadixAlertDialog.Cancel;
|
|
9
|
+
declare const Action: typeof RadixAlertDialog.Action;
|
|
10
|
+
declare const Content: ModalContentPart<typeof RadixAlertDialog>;
|
|
11
|
+
declare const Title: Styled<typeof RadixAlertDialog.Title>;
|
|
12
|
+
declare const Description: Styled<typeof RadixAlertDialog.Description>;
|
|
12
13
|
//#endregion
|
|
13
14
|
export { Action, Actions, Cancel, Content, Description, Root, Title, Trigger };
|
package/dist/alert-dialog.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Actions } from "./lib/modal-parts.js";
|
|
2
|
+
import { Action, Cancel, Content, Description, Root, Title, Trigger } from "./alert-dialog-parts.js";
|
|
2
3
|
//#region src/alert-dialog.d.ts
|
|
3
4
|
declare const AlertDialog: {
|
|
4
|
-
Root:
|
|
5
|
-
Trigger:
|
|
6
|
-
Content:
|
|
7
|
-
Title:
|
|
8
|
-
Description:
|
|
9
|
-
Actions:
|
|
10
|
-
Cancel:
|
|
11
|
-
Action:
|
|
5
|
+
Root: typeof Root;
|
|
6
|
+
Trigger: typeof Trigger;
|
|
7
|
+
Content: typeof Content;
|
|
8
|
+
Title: typeof Title;
|
|
9
|
+
Description: typeof Description;
|
|
10
|
+
Actions: typeof Actions;
|
|
11
|
+
Cancel: typeof Cancel;
|
|
12
|
+
Action: typeof Action;
|
|
12
13
|
};
|
|
13
14
|
//#endregion
|
|
14
15
|
export { AlertDialog };
|
package/dist/alert.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/alert.d.ts
|
|
3
|
+
declare const Root: Styled<"div">;
|
|
4
|
+
declare const Icon: Styled<"span">;
|
|
5
|
+
declare const Body: Styled<"div">;
|
|
6
|
+
declare const Title: Styled<"p">;
|
|
7
|
+
declare const Description: Styled<"p">;
|
|
8
|
+
declare const Actions: Styled<"div">;
|
|
2
9
|
declare const Alert: {
|
|
3
|
-
Root:
|
|
4
|
-
Icon:
|
|
5
|
-
Body:
|
|
6
|
-
Title:
|
|
7
|
-
Description:
|
|
8
|
-
Actions:
|
|
10
|
+
Root: typeof Root;
|
|
11
|
+
Icon: typeof Icon;
|
|
12
|
+
Body: typeof Body;
|
|
13
|
+
Title: typeof Title;
|
|
14
|
+
Description: typeof Description;
|
|
15
|
+
Actions: typeof Actions;
|
|
9
16
|
};
|
|
10
17
|
//#endregion
|
|
11
18
|
export { Alert };
|
package/dist/animated-size.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
2
|
//#region src/animated-size.d.ts
|
|
3
|
-
type AnimatedSizeProps = ComponentPropsWithRef<
|
|
3
|
+
type AnimatedSizeProps = ComponentPropsWithRef<"div"> & {
|
|
4
4
|
/** Animate the width as the content's width changes. */
|
|
5
5
|
width?: boolean;
|
|
6
6
|
/** Animate the height as the content's height changes. */
|
|
@@ -13,6 +13,6 @@ type AnimatedSizeProps = ComponentPropsWithRef<'div'> & {
|
|
|
13
13
|
* Follows the size of its content: when the children grow or shrink, the box
|
|
14
14
|
* glides to the new size. The first measure and reduced motion jump straight there.
|
|
15
15
|
*/
|
|
16
|
-
declare const AnimatedSize: ({ width, height, classNames, style, children, ...props }: AnimatedSizeProps) =>
|
|
16
|
+
declare const AnimatedSize: ({ width, height, classNames, style, children, ...props }: AnimatedSizeProps) => JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { AnimatedSize, type AnimatedSizeProps };
|
package/dist/avatar-parts.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
import * as RadixAvatar from "@radix-ui/react-avatar";
|
|
3
4
|
//#region src/avatar-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Fallback:
|
|
5
|
+
declare const Root: Styled<typeof RadixAvatar.Root>;
|
|
6
|
+
declare const Fallback: Styled<typeof RadixAvatar.Fallback>;
|
|
6
7
|
declare const Image: ({ alt, ...props }: ComponentPropsWithRef<typeof RadixAvatar.Image> & {
|
|
7
8
|
alt: string;
|
|
8
|
-
}) =>
|
|
9
|
+
}) => JSX.Element;
|
|
9
10
|
//#endregion
|
|
10
11
|
export { Fallback, Image, Root };
|
package/dist/avatar.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Image } from "./avatar-parts.js";
|
|
1
|
+
import { Fallback, Image, Root } from "./avatar-parts.js";
|
|
2
2
|
//#region src/avatar.d.ts
|
|
3
3
|
declare const Avatar: {
|
|
4
|
-
Root:
|
|
4
|
+
Root: typeof Root;
|
|
5
5
|
Image: typeof Image;
|
|
6
|
-
Fallback:
|
|
6
|
+
Fallback: typeof Fallback;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Avatar };
|
package/dist/badge.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/badge.d.ts
|
|
2
|
-
declare const Badge:
|
|
3
|
+
declare const Badge: Styled<"span">;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { Badge };
|
package/dist/breadcrumbs.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/breadcrumbs.d.ts
|
|
3
|
+
declare const Root: Styled<"nav">;
|
|
4
|
+
declare const List: Styled<"ol">;
|
|
5
|
+
declare const Item: Styled<"li">;
|
|
6
|
+
declare const Link: Styled<"a">;
|
|
7
|
+
declare const Page: Styled<"span">;
|
|
8
|
+
declare const Separator: Styled<"li">;
|
|
2
9
|
declare const Breadcrumbs: {
|
|
3
|
-
Root:
|
|
4
|
-
List:
|
|
5
|
-
Item:
|
|
6
|
-
Link:
|
|
7
|
-
Page:
|
|
8
|
-
Separator:
|
|
10
|
+
Root: typeof Root;
|
|
11
|
+
List: typeof List;
|
|
12
|
+
Item: typeof Item;
|
|
13
|
+
Link: typeof Link;
|
|
14
|
+
Page: typeof Page;
|
|
15
|
+
Separator: typeof Separator;
|
|
9
16
|
};
|
|
10
17
|
//#endregion
|
|
11
18
|
export { Breadcrumbs };
|
package/dist/bulk-bar.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/bulk-bar.d.ts
|
|
3
|
+
/** Render it while something is selected. */
|
|
4
|
+
declare const Root: Styled<"div">;
|
|
5
|
+
declare const Count: Styled<"p">;
|
|
6
|
+
declare const Actions: Styled<"div">;
|
|
2
7
|
declare const BulkBar: {
|
|
3
|
-
Root:
|
|
4
|
-
Count:
|
|
5
|
-
Actions:
|
|
8
|
+
Root: typeof Root;
|
|
9
|
+
Count: typeof Count;
|
|
10
|
+
Actions: typeof Actions;
|
|
6
11
|
};
|
|
7
12
|
//#endregion
|
|
8
13
|
export { BulkBar };
|
package/dist/button.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
2
|
//#region src/button.d.ts
|
|
3
3
|
type ButtonProps = {
|
|
4
4
|
/** Marks the button busy and ignores presses until the work is done. */
|
|
5
5
|
pending?: boolean;
|
|
6
6
|
} & (({
|
|
7
7
|
href?: never;
|
|
8
|
-
} & ComponentPropsWithRef<
|
|
8
|
+
} & ComponentPropsWithRef<"button">) | ({
|
|
9
9
|
href: string;
|
|
10
|
-
} & ComponentPropsWithRef<
|
|
11
|
-
declare const Button: ({ pending, ...props }: ButtonProps) =>
|
|
10
|
+
} & ComponentPropsWithRef<"a">));
|
|
11
|
+
declare const Button: ({ pending, ...props }: ButtonProps) => JSX.Element;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { Button, type ButtonProps };
|
package/dist/calendar-parts.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import { IconButtonProps } from "./icon-button.js";
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
3
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
3
4
|
//#region src/calendar-parts.d.ts
|
|
4
|
-
type CalendarView =
|
|
5
|
+
type CalendarView = "days" | "months" | "years";
|
|
5
6
|
type Weekday = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
6
7
|
/** A range being picked: `to` stays null until the second click. */
|
|
7
8
|
type CalendarRange = {
|
|
@@ -32,24 +33,20 @@ type CalendarContextValue = {
|
|
|
32
33
|
meta: CalendarMeta;
|
|
33
34
|
};
|
|
34
35
|
/** What a day, month or year cell is right now. Also set as its `data-state`. */
|
|
35
|
-
type CalendarCellState =
|
|
36
|
+
type CalendarCellState = "idle" | "today" | "selected" | "inRange";
|
|
36
37
|
declare const YEAR_PAGE_SIZE = 12;
|
|
37
|
-
declare const useCalendar:
|
|
38
|
+
declare const useCalendar: () => CalendarContextValue;
|
|
38
39
|
type ProviderProps = CalendarContextValue & {
|
|
39
40
|
children?: ReactNode;
|
|
40
41
|
};
|
|
41
|
-
declare const Provider: ({ state, actions, meta, children }: ProviderProps) =>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
month: any;
|
|
42
|
+
declare const Provider: ({ state, actions, meta, children }: ProviderProps) => JSX.Element;
|
|
43
|
+
type CalendarNavigation = {
|
|
44
|
+
month: Date;
|
|
45
45
|
view: CalendarView;
|
|
46
|
-
navigation:
|
|
47
|
-
showMonth: (next: Date) => void;
|
|
48
|
-
showView: import("react").Dispatch<import("react").SetStateAction<CalendarView>>;
|
|
49
|
-
previous: () => void;
|
|
50
|
-
next: () => void;
|
|
51
|
-
};
|
|
46
|
+
navigation: Pick<CalendarActions, "showMonth" | "showView" | "previous" | "next">;
|
|
52
47
|
};
|
|
48
|
+
/** Month, view and paging shared by every calendar-based picker. */
|
|
49
|
+
declare const useCalendarNavigation: (initialMonth: Date, initialView?: CalendarView) => CalendarNavigation;
|
|
53
50
|
type RootProps = {
|
|
54
51
|
value?: Date | null;
|
|
55
52
|
defaultValue?: Date | null;
|
|
@@ -59,23 +56,23 @@ type RootProps = {
|
|
|
59
56
|
weekStartsOn?: Weekday;
|
|
60
57
|
children?: ReactNode;
|
|
61
58
|
};
|
|
62
|
-
declare const Root: ({ value, defaultValue, onValueChange, defaultMonth, locale, weekStartsOn, children }: RootProps) =>
|
|
63
|
-
declare const Frame:
|
|
64
|
-
declare const Header:
|
|
65
|
-
declare const Heading: ({ onClick, ...props }: Omit<ComponentPropsWithRef<
|
|
66
|
-
declare const Previous: (props: IconButtonProps) =>
|
|
67
|
-
declare const Next: (props: IconButtonProps) =>
|
|
68
|
-
type GridProps<Slot extends string> = Omit<ComponentPropsWithRef<
|
|
59
|
+
declare const Root: ({ value, defaultValue, onValueChange, defaultMonth, locale, weekStartsOn, children }: RootProps) => JSX.Element;
|
|
60
|
+
declare const Frame: Styled<"div">;
|
|
61
|
+
declare const Header: Styled<"div">;
|
|
62
|
+
declare const Heading: ({ onClick, ...props }: Omit<ComponentPropsWithRef<"button">, "children">) => JSX.Element;
|
|
63
|
+
declare const Previous: (props: IconButtonProps) => JSX.Element;
|
|
64
|
+
declare const Next: (props: IconButtonProps) => JSX.Element;
|
|
65
|
+
type GridProps<Slot extends string> = Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
69
66
|
classNames?: Partial<Record<Slot, (state: CalendarCellState) => string>>;
|
|
70
67
|
};
|
|
71
|
-
type WeekdaysProps = Omit<ComponentPropsWithRef<
|
|
68
|
+
type WeekdaysProps = Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
72
69
|
classNames?: {
|
|
73
70
|
weekday?: string;
|
|
74
71
|
};
|
|
75
72
|
};
|
|
76
|
-
declare const Weekdays: ({ classNames, ...props }: WeekdaysProps) =>
|
|
77
|
-
declare const Days: ({ classNames, ...props }: GridProps<
|
|
78
|
-
declare const Months: ({ classNames, ...props }: GridProps<
|
|
79
|
-
declare const Years: ({ classNames, ...props }: GridProps<
|
|
73
|
+
declare const Weekdays: ({ classNames, ...props }: WeekdaysProps) => ReactNode;
|
|
74
|
+
declare const Days: ({ classNames, ...props }: GridProps<"day">) => ReactNode;
|
|
75
|
+
declare const Months: ({ classNames, ...props }: GridProps<"month">) => ReactNode;
|
|
76
|
+
declare const Years: ({ classNames, ...props }: GridProps<"year">) => ReactNode;
|
|
80
77
|
//#endregion
|
|
81
78
|
export { type CalendarActions, type CalendarCellState, type CalendarContextValue, type CalendarMeta, type CalendarRange, type CalendarState, type CalendarView, Days, Frame, Header, Heading, Months, Next, Previous, Provider, Root, type RootProps, type Weekday, Weekdays, YEAR_PAGE_SIZE, Years, useCalendar, useCalendarNavigation };
|
package/dist/calendar-parts.js
CHANGED
|
@@ -21,7 +21,8 @@ const useToday = () => {
|
|
|
21
21
|
const [year, month, date] = key.split("-").map(Number);
|
|
22
22
|
return new Date(year ?? 0, month ?? 0, date ?? 1);
|
|
23
23
|
};
|
|
24
|
-
const [CalendarContext,
|
|
24
|
+
const [CalendarContext, useCalendarContext] = createRequiredContext("Calendar.Provider or Calendar.Root");
|
|
25
|
+
const useCalendar = useCalendarContext;
|
|
25
26
|
const Provider = ({ state, actions, meta, children }) => /* @__PURE__ */ jsx(CalendarContext, {
|
|
26
27
|
value: {
|
|
27
28
|
state,
|
package/dist/card.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/card.d.ts
|
|
3
|
+
declare const Root: Styled<"div">;
|
|
4
|
+
declare const Icon: Styled<"span">;
|
|
5
|
+
declare const Header: Styled<"div">;
|
|
6
|
+
declare const Title: Styled<"h3">;
|
|
7
|
+
declare const Description: Styled<"p">;
|
|
8
|
+
declare const Content: Styled<"div">;
|
|
9
|
+
declare const Footer: Styled<"footer">;
|
|
2
10
|
declare const Card: {
|
|
3
|
-
Root:
|
|
4
|
-
Icon:
|
|
5
|
-
Header:
|
|
6
|
-
Title:
|
|
7
|
-
Description:
|
|
8
|
-
Content:
|
|
9
|
-
Footer:
|
|
11
|
+
Root: typeof Root;
|
|
12
|
+
Icon: typeof Icon;
|
|
13
|
+
Header: typeof Header;
|
|
14
|
+
Title: typeof Title;
|
|
15
|
+
Description: typeof Description;
|
|
16
|
+
Content: typeof Content;
|
|
17
|
+
Footer: typeof Footer;
|
|
10
18
|
};
|
|
11
19
|
//#endregion
|
|
12
20
|
export { Card };
|
package/dist/carousel-parts.d.ts
CHANGED
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import { IconButtonProps } from "./icon-button.js";
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
3
|
-
import useEmblaCarousel from "embla-carousel-react";
|
|
3
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
4
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
4
5
|
//#region src/carousel-parts.d.ts
|
|
5
|
-
type Orientation =
|
|
6
|
+
type Orientation = "horizontal" | "vertical";
|
|
6
7
|
type Options = Parameters<typeof useEmblaCarousel>[0];
|
|
7
8
|
type Plugins = Parameters<typeof useEmblaCarousel>[1];
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
type CarouselContextValue = {
|
|
10
|
+
viewport: UseEmblaCarouselType[0];
|
|
11
|
+
orientation: Orientation;
|
|
12
|
+
canPrevious: boolean;
|
|
13
|
+
canNext: boolean;
|
|
14
|
+
previous: () => void;
|
|
15
|
+
next: () => void;
|
|
16
|
+
};
|
|
17
|
+
declare const useCarousel: () => CarouselContextValue;
|
|
18
|
+
type RootProps = Omit<ComponentPropsWithRef<"div">, "children"> & {
|
|
10
19
|
/** Embla options such as `loop` and `align`. */
|
|
11
20
|
opts?: Options;
|
|
12
21
|
plugins?: Plugins;
|
|
@@ -14,16 +23,16 @@ type RootProps = Omit<ComponentPropsWithRef<'div'>, 'children'> & {
|
|
|
14
23
|
children?: ReactNode;
|
|
15
24
|
};
|
|
16
25
|
/** Slides with Embla. Arrow keys move between slides. */
|
|
17
|
-
declare const Root: ({ opts, plugins, orientation, children, onKeyDownCapture, ...props }: RootProps) =>
|
|
18
|
-
type ContentProps = ComponentPropsWithRef<
|
|
26
|
+
declare const Root: ({ opts, plugins, orientation, children, onKeyDownCapture, ...props }: RootProps) => JSX.Element;
|
|
27
|
+
type ContentProps = ComponentPropsWithRef<"div"> & {
|
|
19
28
|
classNames?: {
|
|
20
29
|
viewport?: string;
|
|
21
30
|
};
|
|
22
31
|
};
|
|
23
32
|
/** The track of slides, inside the viewport Embla scrolls. Embla needs the viewport to clip and the track to be a flex row or column. */
|
|
24
|
-
declare const Content: ({ classNames, ...props }: ContentProps) =>
|
|
25
|
-
declare const Item:
|
|
26
|
-
declare const Previous: (props: IconButtonProps) =>
|
|
27
|
-
declare const Next: (props: IconButtonProps) =>
|
|
33
|
+
declare const Content: ({ classNames, ...props }: ContentProps) => JSX.Element;
|
|
34
|
+
declare const Item: Styled<"div">;
|
|
35
|
+
declare const Previous: (props: IconButtonProps) => JSX.Element;
|
|
36
|
+
declare const Next: (props: IconButtonProps) => JSX.Element;
|
|
28
37
|
//#endregion
|
|
29
38
|
export { Content, Item, Next, Previous, Root, type RootProps, useCarousel };
|
package/dist/carousel-parts.js
CHANGED
|
@@ -5,7 +5,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { createRequiredContext } from "@journ/lift";
|
|
6
6
|
import useEmblaCarousel from "embla-carousel-react";
|
|
7
7
|
//#region src/carousel-parts.tsx
|
|
8
|
-
const [CarouselContext,
|
|
8
|
+
const [CarouselContext, useCarouselContext] = createRequiredContext("Carousel.Root");
|
|
9
|
+
const useCarousel = useCarouselContext;
|
|
9
10
|
/** Slides with Embla. Arrow keys move between slides. */
|
|
10
11
|
const Root = ({ opts, plugins, orientation = "horizontal", children, onKeyDownCapture, ...props }) => {
|
|
11
12
|
const [viewport, api] = useEmblaCarousel({
|
package/dist/checkbox-parts.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
2
3
|
//#region src/checkbox-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
+
declare const Root: Styled<typeof RadixCheckbox.Root>;
|
|
4
5
|
/** Shown while the root is checked or indeterminate. */
|
|
5
|
-
declare const Indicator:
|
|
6
|
+
declare const Indicator: Styled<typeof RadixCheckbox.Indicator>;
|
|
6
7
|
//#endregion
|
|
7
8
|
export { Indicator, Root };
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Indicator, Root } from "./checkbox-parts.js";
|
|
1
2
|
//#region src/checkbox.d.ts
|
|
2
3
|
declare const Checkbox: {
|
|
3
|
-
Root:
|
|
4
|
-
Indicator:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Indicator: typeof Indicator;
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
8
|
export { Checkbox };
|
package/dist/chip.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
//#region src/chip.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
+
declare const Root: Styled<"span">;
|
|
5
|
+
declare const Dot: Styled<"span">;
|
|
4
6
|
/** A small close button for chips that can be dismissed. `label` is the accessible name. */
|
|
5
|
-
declare const Remove: ({ label, ...props }: ComponentPropsWithRef<
|
|
7
|
+
declare const Remove: ({ label, ...props }: ComponentPropsWithRef<"button"> & {
|
|
6
8
|
label: string;
|
|
7
|
-
}) =>
|
|
9
|
+
}) => JSX.Element;
|
|
8
10
|
type TagProps = ComponentPropsWithRef<typeof Root> & {
|
|
9
11
|
/** Shows a remove button when given. Leave it out for a chip that cannot be dismissed. */
|
|
10
12
|
onRemove?: () => void;
|
|
11
13
|
removeLabel?: string;
|
|
12
14
|
};
|
|
13
15
|
/** A chip with a remove button: the shape of a selected value. */
|
|
14
|
-
declare const Tag: ({ onRemove, removeLabel, children, ...props }: TagProps) =>
|
|
16
|
+
declare const Tag: ({ onRemove, removeLabel, children, ...props }: TagProps) => JSX.Element;
|
|
15
17
|
declare const Chip: {
|
|
16
|
-
Root:
|
|
17
|
-
Dot:
|
|
18
|
+
Root: typeof Root;
|
|
19
|
+
Dot: typeof Dot;
|
|
18
20
|
Remove: typeof Remove;
|
|
19
21
|
Tag: typeof Tag;
|
|
20
22
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixCollapsible from "@radix-ui/react-collapsible";
|
|
2
3
|
//#region src/collapsible-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Trigger:
|
|
5
|
-
declare const Content:
|
|
4
|
+
declare const Root: typeof RadixCollapsible.Root;
|
|
5
|
+
declare const Trigger: typeof RadixCollapsible.Trigger;
|
|
6
|
+
declare const Content: Styled<typeof RadixCollapsible.Content>;
|
|
6
7
|
//#endregion
|
|
7
8
|
export { Content, Root, Trigger };
|
package/dist/collapsible.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Content, Root, Trigger } from "./collapsible-parts.js";
|
|
1
2
|
//#region src/collapsible.d.ts
|
|
2
3
|
declare const Collapsible: {
|
|
3
|
-
Root:
|
|
4
|
-
Trigger:
|
|
5
|
-
Content:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Trigger: typeof Trigger;
|
|
6
|
+
Content: typeof Content;
|
|
6
7
|
};
|
|
7
8
|
//#endregion
|
|
8
9
|
export { Collapsible };
|
package/dist/combobox-parts.d.ts
CHANGED
|
@@ -1,74 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { Picker, PickerActions, PickerContextValue, PickerState } from "./lib/picker.js";
|
|
3
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
3
4
|
import { Command } from "cmdk";
|
|
4
5
|
//#region src/combobox-parts.d.ts
|
|
5
6
|
type ComboboxState = PickerState<string>;
|
|
6
7
|
type ComboboxActions = PickerActions<string>;
|
|
7
|
-
type ComboboxContextValue = Omit<PickerContextValue<string, object>,
|
|
8
|
-
declare const ContextProvider:
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
type ComboboxContextValue = Omit<PickerContextValue<string, object>, "meta">;
|
|
9
|
+
declare const ContextProvider: Picker<string>["ContextProvider"];
|
|
10
|
+
declare const Provider: Picker<string>["Provider"];
|
|
11
|
+
declare const Trigger: Picker<string>["Trigger"];
|
|
12
|
+
declare const Value: Picker<string>["Value"];
|
|
13
|
+
declare const useCombobox: Picker<string>["usePicker"];
|
|
11
14
|
type RootProps = {
|
|
12
15
|
value?: string | null;
|
|
13
16
|
defaultValue?: string | null;
|
|
14
17
|
onValueChange?: (value: string) => void;
|
|
15
18
|
children?: ReactNode;
|
|
16
19
|
};
|
|
17
|
-
declare const Root: ({ value, defaultValue, onValueChange, children }: RootProps) =>
|
|
20
|
+
declare const Root: ({ value, defaultValue, onValueChange, children }: RootProps) => JSX.Element;
|
|
18
21
|
/** Matches without accents or case, against the item's keywords when it has any. */
|
|
19
|
-
declare const Frame:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, "asChild" | "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
26
|
-
label?: string;
|
|
27
|
-
shouldFilter?: boolean;
|
|
28
|
-
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
29
|
-
defaultValue?: string;
|
|
30
|
-
value?: string;
|
|
31
|
-
onValueChange?: (value: string) => void;
|
|
32
|
-
loop?: boolean;
|
|
33
|
-
disablePointerSelection?: boolean;
|
|
34
|
-
vimBindings?: boolean;
|
|
35
|
-
} & import("react").RefAttributes<HTMLDivElement>) => ReactNode;
|
|
36
|
-
declare const Input: (props: Omit<Pick<Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>> & {
|
|
37
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
38
|
-
} & {
|
|
39
|
-
asChild?: boolean;
|
|
40
|
-
}, "asChild" | "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
41
|
-
value?: string;
|
|
42
|
-
onValueChange?: (search: string) => void;
|
|
43
|
-
} & import("react").RefAttributes<HTMLInputElement>) => ReactNode;
|
|
44
|
-
declare const List: (props: {
|
|
45
|
-
children?: React.ReactNode;
|
|
46
|
-
} & Pick<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
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>) => ReactNode;
|
|
53
|
-
declare const 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>) => ReactNode;
|
|
60
|
-
declare const 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>) => ReactNode;
|
|
71
|
-
type ItemProps = Omit<ComponentPropsWithRef<typeof Command.Item>, 'value'> & {
|
|
22
|
+
declare const Frame: Styled<typeof Command>;
|
|
23
|
+
declare const Input: Styled<typeof Command.Input>;
|
|
24
|
+
declare const List: Styled<typeof Command.List>;
|
|
25
|
+
declare const Empty: Styled<typeof Command.Empty>;
|
|
26
|
+
declare const Group: Styled<typeof Command.Group>;
|
|
27
|
+
type ItemProps = Omit<ComponentPropsWithRef<typeof Command.Item>, "value"> & {
|
|
72
28
|
value: string;
|
|
73
29
|
};
|
|
74
30
|
type OptionProps = ItemProps & {
|
|
@@ -77,9 +33,9 @@ type OptionProps = ItemProps & {
|
|
|
77
33
|
onPick: (value: string) => void;
|
|
78
34
|
};
|
|
79
35
|
/** An option that knows nothing about the picker around it. Combobox, MultipleSelector and others build their items from it. */
|
|
80
|
-
declare const Option: ({ value, checked, onPick, onSelect, ...props }: OptionProps) =>
|
|
81
|
-
declare const Item: (props: ItemProps) =>
|
|
36
|
+
declare const Option: ({ value, checked, onPick, onSelect, ...props }: OptionProps) => JSX.Element;
|
|
37
|
+
declare const Item: (props: ItemProps) => JSX.Element;
|
|
82
38
|
/** Rendered only inside the checked item. */
|
|
83
|
-
declare const ItemIndicator: (props: ComponentPropsWithRef<
|
|
39
|
+
declare const ItemIndicator: (props: ComponentPropsWithRef<"span">) => ReactNode;
|
|
84
40
|
//#endregion
|
|
85
41
|
export { type ComboboxActions, type ComboboxContextValue, type ComboboxState, ContextProvider, Empty, Frame, Group, Input, Item, ItemIndicator, type ItemProps, List, Option, type OptionProps, Provider, Root, type RootProps, Trigger, Value, useCombobox };
|