@journ/nude 0.1.1 → 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 +1 -1
package/dist/sidebar.d.ts
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/sidebar.d.ts
|
|
3
|
+
declare const Layout: Styled<"div">;
|
|
4
|
+
declare const Content: Styled<"main">;
|
|
5
|
+
declare const Root: Styled<"aside">;
|
|
6
|
+
declare const Header: Styled<"div">;
|
|
7
|
+
declare const Body: Styled<"nav">;
|
|
8
|
+
declare const Section: Styled<"div">;
|
|
9
|
+
declare const Heading: Styled<"h3">;
|
|
10
|
+
declare const Item: Styled<"a">;
|
|
11
|
+
declare const Footer: Styled<"div">;
|
|
2
12
|
declare const Sidebar: {
|
|
3
|
-
Layout:
|
|
4
|
-
Root:
|
|
5
|
-
Header:
|
|
6
|
-
Body:
|
|
7
|
-
Section:
|
|
8
|
-
Heading:
|
|
9
|
-
Item:
|
|
10
|
-
Footer:
|
|
11
|
-
Content:
|
|
13
|
+
Layout: typeof Layout;
|
|
14
|
+
Root: typeof Root;
|
|
15
|
+
Header: typeof Header;
|
|
16
|
+
Body: typeof Body;
|
|
17
|
+
Section: typeof Section;
|
|
18
|
+
Heading: typeof Heading;
|
|
19
|
+
Item: typeof Item;
|
|
20
|
+
Footer: typeof Footer;
|
|
21
|
+
Content: typeof Content;
|
|
12
22
|
};
|
|
13
23
|
//#endregion
|
|
14
24
|
export { Sidebar };
|
package/dist/skeleton.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/skeleton.d.ts
|
|
2
|
-
declare const Skeleton:
|
|
3
|
+
declare const Skeleton: Styled<"div">;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { Skeleton };
|
package/dist/slider-parts.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixSlider from "@radix-ui/react-slider";
|
|
2
3
|
//#region src/slider-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Track:
|
|
5
|
-
declare const Range:
|
|
4
|
+
declare const Root: Styled<typeof RadixSlider.Root>;
|
|
5
|
+
declare const Track: Styled<typeof RadixSlider.Track>;
|
|
6
|
+
declare const Range: Styled<typeof RadixSlider.Range>;
|
|
6
7
|
/** Render one thumb per value. */
|
|
7
|
-
declare const Thumb:
|
|
8
|
+
declare const Thumb: Styled<typeof RadixSlider.Thumb>;
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Range, Root, Thumb, Track };
|
package/dist/slider.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Range, Root, Thumb, Track } from "./slider-parts.js";
|
|
1
2
|
//#region src/slider.d.ts
|
|
2
3
|
declare const Slider: {
|
|
3
|
-
Root:
|
|
4
|
-
Track:
|
|
5
|
-
Range:
|
|
6
|
-
Thumb:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Track: typeof Track;
|
|
6
|
+
Range: typeof Range;
|
|
7
|
+
Thumb: typeof Thumb;
|
|
7
8
|
};
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Slider };
|
package/dist/spinner.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
2
|
//#region src/spinner.d.ts
|
|
3
3
|
/** Announces itself as "Loading" unless `aria-hidden` says another element already does. */
|
|
4
|
-
declare const Spinner:
|
|
4
|
+
declare const Spinner: Styled<"svg">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { Spinner };
|
package/dist/stack-parts.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
//#region src/stack-parts.d.ts
|
|
3
|
-
type RootProps = Omit<ComponentPropsWithRef<
|
|
4
|
+
type RootProps = Omit<ComponentPropsWithRef<"div">, "defaultValue"> & {
|
|
4
5
|
defaultValue: string;
|
|
5
6
|
onValueChange?: (value: string) => void;
|
|
6
7
|
};
|
|
@@ -9,14 +10,14 @@ type RootProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue'> & {
|
|
|
9
10
|
* remaining items keep their relative order. Positions are animated with a FLIP
|
|
10
11
|
* transition so every item glides to its new place.
|
|
11
12
|
*/
|
|
12
|
-
declare const Root: ({ defaultValue, onValueChange, ...props }: RootProps) =>
|
|
13
|
-
type ItemProps = Omit<ComponentPropsWithRef<
|
|
13
|
+
declare const Root: ({ defaultValue, onValueChange, ...props }: RootProps) => JSX.Element;
|
|
14
|
+
type ItemProps = Omit<ComponentPropsWithRef<"div">, "ref"> & {
|
|
14
15
|
value: string;
|
|
15
16
|
};
|
|
16
17
|
/** Sets `order` and `z-index` inline, so the stack only reorders inside a flex or grid root. */
|
|
17
|
-
declare const Item: ({ value, style, ...props }: ItemProps) =>
|
|
18
|
-
declare const Trigger:
|
|
18
|
+
declare const Item: ({ value, style, ...props }: ItemProps) => JSX.Element;
|
|
19
|
+
declare const Trigger: Styled<"button">;
|
|
19
20
|
/** Inert and hidden while its item is not the active one. */
|
|
20
|
-
declare const Content:
|
|
21
|
+
declare const Content: Styled<"div">;
|
|
21
22
|
//#endregion
|
|
22
23
|
export { Content, Item, type ItemProps, Root, type RootProps, Trigger };
|
package/dist/stat.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/stat.d.ts
|
|
3
|
+
declare const Root: Styled<"div">;
|
|
4
|
+
declare const Label: Styled<"p">;
|
|
5
|
+
declare const Value: Styled<"p">;
|
|
6
|
+
declare const Hint: Styled<"p">;
|
|
2
7
|
declare const Stat: {
|
|
3
|
-
Root:
|
|
4
|
-
Label:
|
|
5
|
-
Value:
|
|
6
|
-
Hint:
|
|
8
|
+
Root: typeof Root;
|
|
9
|
+
Label: typeof Label;
|
|
10
|
+
Value: typeof Value;
|
|
11
|
+
Hint: typeof Hint;
|
|
7
12
|
};
|
|
8
13
|
//#endregion
|
|
9
14
|
export { Stat };
|
package/dist/step-button.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { IconButtonProps } from "./icon-button.js";
|
|
2
|
+
import { JSX } from "react";
|
|
2
3
|
//#region src/step-button.d.ts
|
|
3
|
-
type StepButtonProps = Omit<IconButtonProps,
|
|
4
|
+
type StepButtonProps = Omit<IconButtonProps, "onClick"> & {
|
|
4
5
|
/** Runs after the caller's own `onClick`. */
|
|
5
6
|
onStep: () => void;
|
|
6
|
-
onClick?: IconButtonProps[
|
|
7
|
+
onClick?: IconButtonProps["onClick"];
|
|
7
8
|
};
|
|
8
9
|
/** The icon button behind every previous, next, minus and plus control. */
|
|
9
|
-
declare const StepButton: ({ onStep, onClick, ...props }: StepButtonProps) =>
|
|
10
|
+
declare const StepButton: ({ onStep, onClick, ...props }: StepButtonProps) => JSX.Element;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { StepButton, type StepButtonProps };
|
package/dist/stepper-parts.d.ts
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
3
|
//#region src/stepper-parts.d.ts
|
|
3
|
-
type StepStatus =
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type StepStatus = "complete" | "current" | "upcoming";
|
|
5
|
+
type ItemContextValue = {
|
|
6
|
+
step: number;
|
|
7
|
+
status: StepStatus;
|
|
8
|
+
};
|
|
9
|
+
declare const useStepperItem: () => ItemContextValue;
|
|
10
|
+
type RootProps = ComponentPropsWithRef<"ol"> & {
|
|
6
11
|
/** The step the user is on, starting at 1. */
|
|
7
12
|
value: number;
|
|
8
13
|
};
|
|
9
|
-
declare const Root: ({ value, ...props }: RootProps) =>
|
|
10
|
-
type ItemProps = ComponentPropsWithRef<
|
|
14
|
+
declare const Root: ({ value, ...props }: RootProps) => JSX.Element;
|
|
15
|
+
type ItemProps = ComponentPropsWithRef<"li"> & {
|
|
11
16
|
step: number;
|
|
12
17
|
};
|
|
13
|
-
declare const Item: ({ step, ...props }: ItemProps) =>
|
|
18
|
+
declare const Item: ({ step, ...props }: ItemProps) => JSX.Element;
|
|
14
19
|
/** Shows the step number unless children are given. */
|
|
15
|
-
declare const Indicator:
|
|
16
|
-
declare const Label:
|
|
17
|
-
declare const Description:
|
|
20
|
+
declare const Indicator: Styled<"span">;
|
|
21
|
+
declare const Label: Styled<"span">;
|
|
22
|
+
declare const Description: Styled<"span">;
|
|
18
23
|
//#endregion
|
|
19
24
|
export { Description, Indicator, Item, Label, Root, type StepStatus, useStepperItem };
|
package/dist/stepper-parts.js
CHANGED
|
@@ -4,7 +4,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
import { createRequiredContext } from "@journ/lift";
|
|
5
5
|
//#region src/stepper-parts.tsx
|
|
6
6
|
const [StepperContext, useStepper] = createRequiredContext("Stepper.Root");
|
|
7
|
-
const [ItemContext,
|
|
7
|
+
const [ItemContext, useStepperItemContext] = createRequiredContext("Stepper.Item");
|
|
8
|
+
const useStepperItem = useStepperItemContext;
|
|
8
9
|
const Root = ({ value, ...props }) => /* @__PURE__ */ jsx(StepperContext, {
|
|
9
10
|
value: { value },
|
|
10
11
|
children: /* @__PURE__ */ jsx("ol", {
|
package/dist/stepper.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Indicator, Item, Root } from "./stepper-parts.js";
|
|
1
|
+
import { Description, Indicator, Item, Label, Root } from "./stepper-parts.js";
|
|
2
2
|
//#region src/stepper.d.ts
|
|
3
3
|
declare const Stepper: {
|
|
4
4
|
Root: typeof Root;
|
|
5
5
|
Item: typeof Item;
|
|
6
6
|
Indicator: typeof Indicator;
|
|
7
|
-
Label:
|
|
8
|
-
Description:
|
|
7
|
+
Label: typeof Label;
|
|
8
|
+
Description: typeof Description;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Stepper };
|
package/dist/styled.d.ts
ADDED
package/dist/styled.js
ADDED
|
File without changes
|
package/dist/switch-parts.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixSwitch from "@radix-ui/react-switch";
|
|
2
3
|
//#region src/switch-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Thumb:
|
|
4
|
+
declare const Root: Styled<typeof RadixSwitch.Root>;
|
|
5
|
+
declare const Thumb: Styled<typeof RadixSwitch.Thumb>;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { Root, Thumb };
|
package/dist/switch.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Root, Thumb } from "./switch-parts.js";
|
|
1
2
|
//#region src/switch.d.ts
|
|
2
3
|
declare const Switch: {
|
|
3
|
-
Root:
|
|
4
|
-
Thumb:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Thumb: typeof Thumb;
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
8
|
export { Switch };
|
package/dist/table.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/table.d.ts
|
|
3
|
+
declare const Root: Styled<"table">;
|
|
4
|
+
declare const Caption: Styled<"caption">;
|
|
5
|
+
declare const Head: Styled<"thead">;
|
|
6
|
+
declare const Body: Styled<"tbody">;
|
|
7
|
+
declare const Row: Styled<"tr">;
|
|
8
|
+
declare const Header: Styled<"th">;
|
|
9
|
+
declare const Cell: Styled<"td">;
|
|
2
10
|
declare const Table: {
|
|
3
|
-
Root:
|
|
4
|
-
Caption:
|
|
5
|
-
Head:
|
|
6
|
-
Body:
|
|
7
|
-
Row:
|
|
8
|
-
Header:
|
|
9
|
-
Cell:
|
|
11
|
+
Root: typeof Root;
|
|
12
|
+
Caption: typeof Caption;
|
|
13
|
+
Head: typeof Head;
|
|
14
|
+
Body: typeof Body;
|
|
15
|
+
Row: typeof Row;
|
|
16
|
+
Header: typeof Header;
|
|
17
|
+
Cell: typeof Cell;
|
|
10
18
|
};
|
|
11
19
|
//#endregion
|
|
12
20
|
export { Table };
|
package/dist/tabs-parts.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixTabs from "@radix-ui/react-tabs";
|
|
2
3
|
//#region src/tabs-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const List:
|
|
5
|
-
declare const Trigger:
|
|
6
|
-
declare const Content:
|
|
4
|
+
declare const Root: Styled<typeof RadixTabs.Root>;
|
|
5
|
+
declare const List: Styled<typeof RadixTabs.List>;
|
|
6
|
+
declare const Trigger: Styled<typeof RadixTabs.Trigger>;
|
|
7
|
+
declare const Content: Styled<typeof RadixTabs.Content>;
|
|
7
8
|
//#endregion
|
|
8
9
|
export { Content, List, Root, Trigger };
|
package/dist/tabs.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Content, List, Root, Trigger } from "./tabs-parts.js";
|
|
1
2
|
//#region src/tabs.d.ts
|
|
2
3
|
declare const Tabs: {
|
|
3
|
-
Root:
|
|
4
|
-
List:
|
|
5
|
-
Trigger:
|
|
6
|
-
Content:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
List: typeof List;
|
|
6
|
+
Trigger: typeof Trigger;
|
|
7
|
+
Content: typeof Content;
|
|
7
8
|
};
|
|
8
9
|
//#endregion
|
|
9
10
|
export { Tabs };
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import { ChipTagProps as TagProps$1 } from "./chip.js";
|
|
2
3
|
import { Composer } from "./composer.js";
|
|
3
|
-
import { ComponentPropsWithRef, ElementType, ReactNode } from "react";
|
|
4
|
+
import { ComponentPropsWithRef, ElementType, JSX, ReactNode } from "react";
|
|
4
5
|
//#region src/tag-input-parts.d.ts
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
type TagInputContextValue = {
|
|
7
|
+
tags: string[];
|
|
8
|
+
text: string;
|
|
9
|
+
invalid: boolean;
|
|
10
|
+
setText: (text: string) => void;
|
|
11
|
+
add: (...tags: string[]) => void;
|
|
12
|
+
remove: (tag: string) => void;
|
|
13
|
+
removeLast: () => void;
|
|
14
|
+
};
|
|
15
|
+
declare const useTagInput: () => TagInputContextValue;
|
|
16
|
+
type RootProps = Omit<ComponentPropsWithRef<"div">, "defaultValue" | "onChange"> & {
|
|
7
17
|
value?: string[];
|
|
8
18
|
defaultValue?: string[];
|
|
9
19
|
onValueChange?: (tags: string[]) => void;
|
|
@@ -12,19 +22,19 @@ type RootProps = Omit<ComponentPropsWithRef<'div'>, 'defaultValue' | 'onChange'>
|
|
|
12
22
|
children?: ReactNode;
|
|
13
23
|
};
|
|
14
24
|
/** Tags are trimmed, unique (ignoring case) and never empty. */
|
|
15
|
-
declare const Root: ({ value, defaultValue, onValueChange, validate, children, ...props }: RootProps) =>
|
|
25
|
+
declare const Root: ({ value, defaultValue, onValueChange, validate, children, ...props }: RootProps) => JSX.Element;
|
|
16
26
|
type TagComponents = {
|
|
17
27
|
/** The chip rendered per tag. It receives `removeLabel`, `onRemove` and the tag as children. */
|
|
18
28
|
components?: {
|
|
19
29
|
Tag?: ElementType;
|
|
20
30
|
};
|
|
21
31
|
};
|
|
22
|
-
type TagProps = Omit<TagProps$1,
|
|
32
|
+
type TagProps = Omit<TagProps$1, "children" | "onRemove"> & TagComponents & {
|
|
23
33
|
value: string;
|
|
24
34
|
};
|
|
25
|
-
declare const Tag: ({ value, components, ...props }: TagProps) =>
|
|
35
|
+
declare const Tag: ({ value, components, ...props }: TagProps) => JSX.Element;
|
|
26
36
|
/** One `Tag` per value. Use `useTagInput` and `Tag` yourself for a custom list. */
|
|
27
|
-
declare const Tags: ({ components }: TagComponents) =>
|
|
28
|
-
declare const Field:
|
|
37
|
+
declare const Tags: ({ components }: TagComponents) => ReactNode;
|
|
38
|
+
declare const Field: Styled<typeof Composer.Input>;
|
|
29
39
|
//#endregion
|
|
30
40
|
export { Field, Root, type RootProps, Tag, type TagProps, Tags, useTagInput };
|
package/dist/tag-input-parts.js
CHANGED
|
@@ -5,7 +5,8 @@ import { useState } from "react";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { createRequiredContext, useControllableState } from "@journ/lift";
|
|
7
7
|
//#region src/tag-input-parts.tsx
|
|
8
|
-
const [TagInputContext,
|
|
8
|
+
const [TagInputContext, useTagInputContext] = createRequiredContext("TagInput.Root");
|
|
9
|
+
const useTagInput = useTagInputContext;
|
|
9
10
|
const none = [];
|
|
10
11
|
/** Tags are trimmed, unique (ignoring case) and never empty. */
|
|
11
12
|
const Root = ({ value, defaultValue = none, onValueChange, validate, children, ...props }) => {
|
package/dist/text-morph.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ElementType } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, ElementType, JSX } from "react";
|
|
2
2
|
//#region src/text-morph.d.ts
|
|
3
|
-
type TextMorphProps = Omit<ComponentPropsWithRef<
|
|
3
|
+
type TextMorphProps = Omit<ComponentPropsWithRef<"span">, "children"> & {
|
|
4
4
|
children: string;
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
classNames?: {
|
|
@@ -12,6 +12,6 @@ type TextMorphProps = Omit<ComponentPropsWithRef<'span'>, 'children'> & {
|
|
|
12
12
|
* Plays text one character at a time. When the text changes, only the characters
|
|
13
13
|
* that differ drop in again. Screen readers get the whole string once.
|
|
14
14
|
*/
|
|
15
|
-
declare const TextMorph: ({ children: text, as: Component, classNames, style, ...props }: TextMorphProps) =>
|
|
15
|
+
declare const TextMorph: ({ children: text, as: Component, classNames, style, ...props }: TextMorphProps) => JSX.Element;
|
|
16
16
|
//#endregion
|
|
17
17
|
export { TextMorph, type TextMorphProps };
|
package/dist/text-shimmer.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ElementType } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, ElementType, JSX } from "react";
|
|
2
2
|
//#region src/text-shimmer.d.ts
|
|
3
|
-
type TextShimmerProps = ComponentPropsWithRef<
|
|
3
|
+
type TextShimmerProps = ComponentPropsWithRef<"span"> & {
|
|
4
4
|
/** The element to render, `span` by default. */
|
|
5
5
|
as?: ElementType;
|
|
6
6
|
};
|
|
7
|
-
declare const TextShimmer: ({ as: Component, ...props }: TextShimmerProps) =>
|
|
7
|
+
declare const TextShimmer: ({ as: Component, ...props }: TextShimmerProps) => JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { TextShimmer, type TextShimmerProps };
|
package/dist/text.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/text.d.ts
|
|
2
|
-
declare const Text:
|
|
3
|
+
declare const Text: Styled<"p">;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { Text };
|
package/dist/textarea.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
//#region src/textarea.d.ts
|
|
2
|
-
declare const Textarea:
|
|
3
|
+
declare const Textarea: Styled<"textarea">;
|
|
3
4
|
//#endregion
|
|
4
5
|
export { Textarea };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Input } from "./input.js";
|
|
2
|
-
import { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
import { ComponentPropsWithRef, JSX, ReactNode } from "react";
|
|
3
3
|
//#region src/time-range-parts.d.ts
|
|
4
4
|
type TimeRangeValue = {
|
|
5
5
|
start: string;
|
|
@@ -12,11 +12,11 @@ type RootProps = {
|
|
|
12
12
|
onValueChange?: (value: TimeRangeValue) => void;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
};
|
|
15
|
-
declare const Root: ({ value, defaultValue, onValueChange, children }: RootProps) =>
|
|
16
|
-
type TimeFieldProps = Omit<ComponentPropsWithRef<typeof Input>,
|
|
17
|
-
declare const Start: (props: TimeFieldProps) =>
|
|
18
|
-
declare const Stop: (props: TimeFieldProps) =>
|
|
15
|
+
declare const Root: ({ value, defaultValue, onValueChange, children }: RootProps) => JSX.Element;
|
|
16
|
+
type TimeFieldProps = Omit<ComponentPropsWithRef<typeof Input>, "type" | "value">;
|
|
17
|
+
declare const Start: (props: TimeFieldProps) => JSX.Element;
|
|
18
|
+
declare const Stop: (props: TimeFieldProps) => JSX.Element;
|
|
19
19
|
/** The time between start and stop. A stop before the start means the next day. */
|
|
20
|
-
declare const Duration: (props: Omit<ComponentPropsWithRef<
|
|
20
|
+
declare const Duration: (props: Omit<ComponentPropsWithRef<"output">, "children">) => JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Duration, Root, type RootProps, Start, Stop, type TimeRangeValue };
|
package/dist/toast-parts.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
|
+
import { ComponentProps, JSX } from "react";
|
|
2
3
|
import { Toaster, toast } from "sonner";
|
|
3
4
|
//#region src/toast-parts.d.ts
|
|
4
5
|
/** Unstyled: sonner's own look is turned off. Pass `toastOptions.classNames` to style it. */
|
|
5
|
-
declare const Provider: ({ toastOptions, ...props }: ComponentProps<typeof Toaster>) =>
|
|
6
|
+
declare const Provider: ({ toastOptions, ...props }: ComponentProps<typeof Toaster>) => JSX.Element;
|
|
6
7
|
declare const show: typeof toast;
|
|
7
|
-
declare const Root:
|
|
8
|
-
declare const Title:
|
|
9
|
-
declare const Description:
|
|
10
|
-
declare const Action:
|
|
8
|
+
declare const Root: Styled<"div">;
|
|
9
|
+
declare const Title: Styled<"p">;
|
|
10
|
+
declare const Description: Styled<"p">;
|
|
11
|
+
declare const Action: Styled<"button">;
|
|
11
12
|
//#endregion
|
|
12
13
|
export { Action, Description, Provider, Root, Title, show };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
1
2
|
import * as RadixToggleGroup from "@radix-ui/react-toggle-group";
|
|
2
3
|
//#region src/toggle-group-parts.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Item:
|
|
4
|
+
declare const Root: Styled<typeof RadixToggleGroup.Root>;
|
|
5
|
+
declare const Item: Styled<typeof RadixToggleGroup.Item>;
|
|
5
6
|
//#endregion
|
|
6
7
|
export { Item, Root };
|
package/dist/toggle-group.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { Item, Root } from "./toggle-group-parts.js";
|
|
1
2
|
//#region src/toggle-group.d.ts
|
|
2
3
|
declare const ToggleGroup: {
|
|
3
|
-
Root:
|
|
4
|
-
Item:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Item: typeof Item;
|
|
5
6
|
};
|
|
6
7
|
//#endregion
|
|
7
8
|
export { ToggleGroup };
|
package/dist/tooltip-parts.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
2
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
3
3
|
//#region src/tooltip-parts.d.ts
|
|
4
|
-
declare const Provider:
|
|
4
|
+
declare const Provider: typeof RadixTooltip.Provider;
|
|
5
5
|
/** Includes its own provider so a tooltip works without extra setup. */
|
|
6
|
-
declare const Root:
|
|
7
|
-
declare const Trigger:
|
|
8
|
-
declare const Content:
|
|
6
|
+
declare const Root: Styled<typeof RadixTooltip.Root>;
|
|
7
|
+
declare const Trigger: typeof RadixTooltip.Trigger;
|
|
8
|
+
declare const Content: Styled<typeof RadixTooltip.Content>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Content, Provider, Root, Trigger };
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Content, Root } from "./tooltip-parts.js";
|
|
1
|
+
import { Content, Provider, Root, Trigger } from "./tooltip-parts.js";
|
|
2
2
|
//#region src/tooltip.d.ts
|
|
3
3
|
declare const Tooltip: {
|
|
4
|
-
Provider:
|
|
4
|
+
Provider: typeof Provider;
|
|
5
5
|
Root: typeof Root;
|
|
6
|
-
Trigger:
|
|
6
|
+
Trigger: typeof Trigger;
|
|
7
7
|
Content: typeof Content;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
package/dist/touch-target.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "./styled.js";
|
|
2
2
|
//#region src/touch-target.d.ts
|
|
3
3
|
/** A hit-area element rendered before its children. Style it to grow the touch area without changing layout. */
|
|
4
|
-
declare const TouchTarget:
|
|
4
|
+
declare const TouchTarget: Styled<"span">;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { TouchTarget };
|
package/package.json
CHANGED