@journ/bloom 0.1.1 → 0.1.3
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/DESIGN.md +3 -2
- package/dist/accordion-parts.d.ts +5 -5
- package/dist/accordion.d.ts +2 -2
- package/dist/alert-dialog-parts.d.ts +13 -11
- package/dist/alert-dialog.d.ts +5 -5
- package/dist/alert.d.ts +12 -37
- package/dist/animated-size.d.ts +3 -2
- package/dist/avatar-parts.d.ts +5 -4
- package/dist/badge.d.ts +7 -35
- package/dist/breadcrumbs.d.ts +7 -7
- package/dist/bulk-bar.d.ts +4 -4
- package/dist/button.d.ts +11 -36
- package/dist/calendar-parts.d.ts +18 -12
- package/dist/calendar-parts.js +5 -1
- package/dist/calendar.d.ts +3 -3
- package/dist/card.d.ts +13 -38
- package/dist/carousel-parts.d.ts +8 -7
- package/dist/carousel-parts.js +1 -1
- package/dist/checkbox-parts.d.ts +3 -3
- package/dist/chip.d.ts +11 -30
- package/dist/collapsible-parts.d.ts +4 -4
- package/dist/collapsible.d.ts +3 -3
- package/dist/combobox-parts.d.ts +17 -16
- package/dist/combobox-parts.js +7 -2
- package/dist/combobox.d.ts +5 -10
- package/dist/command-palette-parts.d.ts +4 -3
- package/dist/command-palette-parts.js +2 -1
- package/dist/command-palette.d.ts +3 -3
- package/dist/composer.d.ts +3 -3
- package/dist/context-menu-parts.d.ts +9 -12
- package/dist/context-menu-parts.js +5 -1
- package/dist/context-menu.d.ts +8 -15
- package/dist/currency-input-parts.d.ts +3 -3
- package/dist/currency-input.d.ts +2 -2
- package/dist/data-table-parts.d.ts +12 -5
- package/dist/data-table-parts.js +7 -1
- package/dist/data-table.d.ts +5 -5
- package/dist/date-input-parts.d.ts +3 -3
- package/dist/date-input.d.ts +2 -2
- package/dist/date-picker-parts.d.ts +9 -7
- package/dist/date-picker-parts.js +7 -2
- package/dist/date-picker.d.ts +6 -11
- package/dist/date-range-picker-parts.d.ts +9 -7
- package/dist/date-range-picker-parts.js +7 -2
- package/dist/date-range-picker.d.ts +6 -11
- package/dist/description-list.d.ts +4 -4
- package/dist/dialog-parts.d.ts +12 -10
- package/dist/dialog.d.ts +4 -4
- package/dist/divider.d.ts +2 -2
- package/dist/drawer-parts.d.ts +9 -8
- package/dist/drawer.d.ts +4 -4
- package/dist/dropdown-menu-parts.d.ts +9 -12
- package/dist/dropdown-menu-parts.js +5 -1
- package/dist/dropdown-menu.d.ts +8 -15
- package/dist/empty-state.d.ts +6 -6
- package/dist/field-parts.d.ts +6 -6
- package/dist/field.d.ts +2 -2
- package/dist/file-dropzone-parts.d.ts +8 -6
- package/dist/file-dropzone-parts.js +2 -1
- package/dist/heading.d.ts +5 -26
- package/dist/hover-card-parts.d.ts +4 -4
- package/dist/hover-card.d.ts +3 -3
- package/dist/icon-button.d.ts +11 -41
- package/dist/icon.d.ts +6 -26
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/input.d.ts +3 -3
- package/dist/lib/icon-tile.d.ts +5 -28
- package/dist/lib/menu-parts.d.ts +12 -16
- package/dist/lib/modal-content.d.ts +2 -2
- package/dist/lib/modal-parts.d.ts +3 -3
- package/dist/lib/overlay.d.ts +8 -31
- package/dist/lib/picker.d.ts +9 -7
- package/dist/lib/theme.d.ts +8 -8
- package/dist/lib/tones.d.ts +12 -42
- package/dist/lib/tv.d.ts +6 -1
- package/dist/lib/use-enter.d.ts +8 -11
- package/dist/lib/use-enter.js +1 -1
- package/dist/link.d.ts +3 -3
- package/dist/list-row.d.ts +30 -0
- package/dist/list-row.js +73 -0
- package/dist/markdown.d.ts +3 -2
- package/dist/message.d.ts +7 -6
- package/dist/month-picker.d.ts +2 -2
- package/dist/month-stepper-parts.d.ts +6 -5
- package/dist/multiple-selector-parts.d.ts +11 -12
- package/dist/multiple-selector-parts.js +5 -2
- package/dist/multiple-selector.d.ts +4 -9
- package/dist/nav-bar.d.ts +3 -3
- package/dist/navigation-menu-parts.d.ts +8 -7
- package/dist/navigation-menu.d.ts +2 -2
- package/dist/otp-input-parts.d.ts +4 -4
- package/dist/otp-input.d.ts +2 -2
- package/dist/page-header.d.ts +4 -4
- package/dist/page.d.ts +10 -37
- package/dist/pagination.d.ts +7 -7
- package/dist/pill-select.d.ts +2 -2
- package/dist/popover-parts.d.ts +5 -5
- package/dist/popover.d.ts +4 -4
- package/dist/progress-parts.d.ts +7 -33
- package/dist/quantity-input-parts.d.ts +6 -5
- package/dist/radio-parts.d.ts +4 -3
- package/dist/scroll-area-parts.d.ts +6 -5
- package/dist/scroll-area.d.ts +2 -2
- package/dist/select-parts.d.ts +10 -9
- package/dist/select.d.ts +4 -4
- package/dist/sheet-parts.d.ts +5 -26
- package/dist/sheet.d.ts +4 -4
- package/dist/sidebar.d.ts +10 -10
- package/dist/skeleton.d.ts +2 -2
- package/dist/slider-parts.d.ts +5 -5
- package/dist/spinner.d.ts +2 -2
- package/dist/stack-parts.d.ts +10 -35
- package/dist/stat.d.ts +5 -5
- package/dist/step-button.d.ts +5 -3
- package/dist/stepper-parts.d.ts +6 -6
- package/dist/styles.css +1 -1
- package/dist/switch-parts.d.ts +3 -3
- package/dist/table.d.ts +8 -8
- package/dist/tabs-parts.d.ts +5 -5
- package/dist/tag-input-parts.d.ts +8 -7
- package/dist/tag-input-parts.js +1 -1
- package/dist/text-morph.d.ts +3 -2
- package/dist/text-shimmer.d.ts +3 -3
- package/dist/text.d.ts +8 -35
- package/dist/textarea.d.ts +2 -2
- package/dist/time-range-parts.d.ts +5 -5
- package/dist/time-range.d.ts +2 -2
- package/dist/toast-parts.d.ts +6 -6
- package/dist/toggle-group-parts.d.ts +3 -3
- package/dist/tooltip-parts.d.ts +5 -5
- package/dist/tooltip.d.ts +4 -4
- package/dist/touch-target.d.ts +2 -1
- package/package.json +3 -3
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
+
import { Content, Group, Item, Label, Root, Separator, Trigger } from "./dropdown-menu-parts.js";
|
|
1
2
|
//#region src/dropdown-menu.d.ts
|
|
2
3
|
declare const DropdownMenu: {
|
|
3
|
-
Root:
|
|
4
|
-
Trigger:
|
|
5
|
-
Content:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className?: string;
|
|
11
|
-
}) => import("react").JSX.Element;
|
|
12
|
-
Item: ({ className, ...props }: import("react").ComponentPropsWithRef<any> & {
|
|
13
|
-
className?: string;
|
|
14
|
-
}) => import("react").JSX.Element;
|
|
15
|
-
Separator: ({ className, ...props }: import("react").ComponentPropsWithRef<any> & {
|
|
16
|
-
className?: string;
|
|
17
|
-
}) => import("react").JSX.Element;
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Trigger: typeof Trigger;
|
|
6
|
+
Content: typeof Content;
|
|
7
|
+
Group: typeof Group;
|
|
8
|
+
Label: typeof Label;
|
|
9
|
+
Item: typeof Item;
|
|
10
|
+
Separator: typeof Separator;
|
|
18
11
|
};
|
|
19
12
|
//#endregion
|
|
20
13
|
export { DropdownMenu };
|
package/dist/empty-state.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/empty-state.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Icon:
|
|
5
|
-
declare const Title:
|
|
6
|
-
declare const Description:
|
|
7
|
-
declare const Actions:
|
|
3
|
+
declare const Root: Styled<"div">;
|
|
4
|
+
declare const Icon: Styled<"span">;
|
|
5
|
+
declare const Title: Styled<"h3">;
|
|
6
|
+
declare const Description: Styled<"p">;
|
|
7
|
+
declare const Actions: Styled<"div">;
|
|
8
8
|
declare const EmptyState: {
|
|
9
9
|
Root: typeof Root;
|
|
10
10
|
Icon: typeof Icon;
|
package/dist/field-parts.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
1
|
import * as Nude from "@journ/nude/field-parts";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
3
|
//#region src/field-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Label:
|
|
6
|
-
declare const Description:
|
|
7
|
-
declare const FieldError:
|
|
8
|
-
declare const Control:
|
|
4
|
+
declare const Root: Styled<typeof Nude.Root>;
|
|
5
|
+
declare const Label: Styled<typeof Nude.Label>;
|
|
6
|
+
declare const Description: Styled<"p">;
|
|
7
|
+
declare const FieldError: Styled<"p">;
|
|
8
|
+
declare const Control: typeof Nude.Control;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Control, Description, FieldError as Error, Label, Root };
|
package/dist/field.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Description, Error as FieldError, Label, Root } from "./field-parts.js";
|
|
1
|
+
import { Control, Description, Error as FieldError, Label, Root } from "./field-parts.js";
|
|
2
2
|
//#region src/field.d.ts
|
|
3
3
|
declare const Field: {
|
|
4
4
|
Root: typeof Root;
|
|
5
5
|
Label: typeof Label;
|
|
6
6
|
Description: typeof Description;
|
|
7
7
|
Error: typeof FieldError;
|
|
8
|
-
Control:
|
|
8
|
+
Control: typeof Control;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Field };
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSX } from "react";
|
|
2
2
|
import * as Nude from "@journ/nude/file-dropzone-parts";
|
|
3
3
|
import { FileRejection, RejectionReason } from "@journ/nude/file-dropzone-parts";
|
|
4
|
+
import { Styled } from "@journ/nude/styled";
|
|
4
5
|
//#region src/file-dropzone-parts.d.ts
|
|
5
|
-
declare const matchesAccept:
|
|
6
|
+
declare const matchesAccept: typeof Nude.matchesAccept;
|
|
7
|
+
declare const sortFiles: typeof Nude.sortFiles;
|
|
6
8
|
/** A drop target that is also a button: click or press Enter to open the file picker. */
|
|
7
|
-
declare const Root: ({ className, ...props }: Nude.RootProps) =>
|
|
8
|
-
declare const Icon:
|
|
9
|
-
declare const Title:
|
|
10
|
-
declare const Description:
|
|
9
|
+
declare const Root: ({ className, ...props }: Nude.RootProps) => JSX.Element;
|
|
10
|
+
declare const Icon: Styled<"span">;
|
|
11
|
+
declare const Title: Styled<"p">;
|
|
12
|
+
declare const Description: Styled<"p">;
|
|
11
13
|
//#endregion
|
|
12
14
|
export { Description, type FileRejection, Icon, type RejectionReason, Root, Title, matchesAccept, sortFiles };
|
|
@@ -5,7 +5,8 @@ import { iconTile } from "./lib/icon-tile.js";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import * as Nude from "@journ/nude/file-dropzone-parts";
|
|
7
7
|
//#region src/file-dropzone-parts.tsx
|
|
8
|
-
const
|
|
8
|
+
const matchesAccept = Nude.matchesAccept;
|
|
9
|
+
const sortFiles = Nude.sortFiles;
|
|
9
10
|
/** A drop target that is also a button: click or press Enter to open the file picker. */
|
|
10
11
|
const Root = ({ className, ...props }) => /* @__PURE__ */ jsx(Nude.Root, {
|
|
11
12
|
...props,
|
package/dist/heading.d.ts
CHANGED
|
@@ -1,31 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
2
|
//#region src/heading.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
md: "text-2xl/8";
|
|
8
|
-
lg: "text-3xl/9";
|
|
9
|
-
xl: "text-5xl/none";
|
|
10
|
-
};
|
|
11
|
-
}, undefined, "font-medium tracking-tight", {
|
|
12
|
-
size: {
|
|
13
|
-
sm: "text-lg/7";
|
|
14
|
-
md: "text-2xl/8";
|
|
15
|
-
lg: "text-3xl/9";
|
|
16
|
-
xl: "text-5xl/none";
|
|
17
|
-
};
|
|
18
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
19
|
-
size: {
|
|
20
|
-
sm: "text-lg/7";
|
|
21
|
-
md: "text-2xl/8";
|
|
22
|
-
lg: "text-3xl/9";
|
|
23
|
-
xl: "text-5xl/none";
|
|
24
|
-
};
|
|
25
|
-
}, undefined>>;
|
|
26
|
-
type HeadingProps = ComponentPropsWithRef<'h1'> & VariantProps<typeof heading> & {
|
|
3
|
+
type HeadingSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type HeadingProps = ComponentPropsWithRef<"h1"> & {
|
|
5
|
+
size?: HeadingSize;
|
|
27
6
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
28
7
|
};
|
|
29
|
-
declare const Heading: ({ level, size, className, ...props }: HeadingProps) =>
|
|
8
|
+
declare const Heading: ({ level, size, className, ...props }: HeadingProps) => JSX.Element;
|
|
30
9
|
//#endregion
|
|
31
10
|
export { Heading, type HeadingProps };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
1
|
import * as Nude from "@journ/nude/hover-card-parts";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
3
|
//#region src/hover-card-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Trigger:
|
|
6
|
-
declare const Content:
|
|
4
|
+
declare const Root: typeof Nude.Root;
|
|
5
|
+
declare const Trigger: typeof Nude.Trigger;
|
|
6
|
+
declare const Content: Styled<typeof Nude.Content>;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Content, Root, Trigger };
|
package/dist/hover-card.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Content } from "./hover-card-parts.js";
|
|
1
|
+
import { Content, Root, Trigger } from "./hover-card-parts.js";
|
|
2
2
|
//#region src/hover-card.d.ts
|
|
3
3
|
declare const HoverCard: {
|
|
4
|
-
Root:
|
|
5
|
-
Trigger:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Trigger: typeof Trigger;
|
|
6
6
|
Content: typeof Content;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
package/dist/icon-button.d.ts
CHANGED
|
@@ -1,44 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { Recipe } from "./lib/tv.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
3
|
//#region src/icon-button.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
sm: "size-8 [&>svg]:size-4";
|
|
14
|
-
md: "size-9 [&>svg]:size-4";
|
|
15
|
-
};
|
|
16
|
-
}, undefined, string[], {
|
|
17
|
-
tone: {
|
|
18
|
-
neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark text-bloom-canvas dark:text-bloom-canvas-dark";
|
|
19
|
-
ink: "bg-bloom-ink text-bloom-paper";
|
|
20
|
-
coral: "bg-bloom-coral text-bloom-paper";
|
|
21
|
-
ghost: "bg-transparent text-inherit";
|
|
22
|
-
outline: "border border-current/15 bg-transparent text-inherit";
|
|
23
|
-
};
|
|
24
|
-
size: {
|
|
25
|
-
sm: "size-8 [&>svg]:size-4";
|
|
26
|
-
md: "size-9 [&>svg]:size-4";
|
|
27
|
-
};
|
|
28
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
29
|
-
tone: {
|
|
30
|
-
neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark text-bloom-canvas dark:text-bloom-canvas-dark";
|
|
31
|
-
ink: "bg-bloom-ink text-bloom-paper";
|
|
32
|
-
coral: "bg-bloom-coral text-bloom-paper";
|
|
33
|
-
ghost: "bg-transparent text-inherit";
|
|
34
|
-
outline: "border border-current/15 bg-transparent text-inherit";
|
|
35
|
-
};
|
|
36
|
-
size: {
|
|
37
|
-
sm: "size-8 [&>svg]:size-4";
|
|
38
|
-
md: "size-9 [&>svg]:size-4";
|
|
39
|
-
};
|
|
40
|
-
}, undefined>>;
|
|
41
|
-
type IconButtonProps = ComponentPropsWithRef<'button'> & VariantProps<typeof iconButton>;
|
|
42
|
-
declare const IconButton: ({ tone, size, className, children, type, ...props }: IconButtonProps) => import("react").JSX.Element;
|
|
4
|
+
type IconButtonTone = "neutral" | "ink" | "coral" | "ghost" | "outline";
|
|
5
|
+
type IconButtonSize = "sm" | "md";
|
|
6
|
+
type IconButtonVariants = {
|
|
7
|
+
tone?: IconButtonTone;
|
|
8
|
+
size?: IconButtonSize;
|
|
9
|
+
};
|
|
10
|
+
declare const iconButton: Recipe<IconButtonVariants>;
|
|
11
|
+
type IconButtonProps = ComponentPropsWithRef<"button"> & IconButtonVariants;
|
|
12
|
+
declare const IconButton: ({ tone, size, className, children, type, ...props }: IconButtonProps) => JSX.Element;
|
|
43
13
|
//#endregion
|
|
44
14
|
export { IconButton, type IconButtonProps, iconButton };
|
package/dist/icon.d.ts
CHANGED
|
@@ -1,30 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
2
|
//#region src/icon.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
lg: "[&>svg]:size-6";
|
|
9
|
-
xl: "[&>svg]:size-8";
|
|
10
|
-
};
|
|
11
|
-
}, undefined, "inline-flex shrink-0 items-center justify-center", {
|
|
12
|
-
size: {
|
|
13
|
-
sm: "[&>svg]:size-4";
|
|
14
|
-
md: "[&>svg]:size-5";
|
|
15
|
-
lg: "[&>svg]:size-6";
|
|
16
|
-
xl: "[&>svg]:size-8";
|
|
17
|
-
};
|
|
18
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
19
|
-
size: {
|
|
20
|
-
sm: "[&>svg]:size-4";
|
|
21
|
-
md: "[&>svg]:size-5";
|
|
22
|
-
lg: "[&>svg]:size-6";
|
|
23
|
-
xl: "[&>svg]:size-8";
|
|
24
|
-
};
|
|
25
|
-
}, undefined>>;
|
|
26
|
-
type IconProps = ComponentPropsWithRef<'span'> & VariantProps<typeof icon>;
|
|
3
|
+
type IconSize = "sm" | "md" | "lg" | "xl";
|
|
4
|
+
type IconProps = ComponentPropsWithRef<"span"> & {
|
|
5
|
+
size?: IconSize;
|
|
6
|
+
};
|
|
27
7
|
/** Sizes any svg child and hides it from assistive tech unless a label is given. */
|
|
28
|
-
declare const Icon: ({ size, className,
|
|
8
|
+
declare const Icon: ({ size, className, "aria-label": label, ...props }: IconProps) => JSX.Element;
|
|
29
9
|
//#endregion
|
|
30
10
|
export { Icon, type IconProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Accordion } from "./accordion.js";
|
|
2
|
-
import { VariantProps, tv } from "./lib/tv.js";
|
|
3
2
|
import { AlertDialog } from "./alert-dialog.js";
|
|
4
3
|
import { Alert } from "./alert.js";
|
|
5
4
|
import { AnimatedSize, AnimatedSizeProps } from "./animated-size.js";
|
|
@@ -7,6 +6,7 @@ import { Avatar } from "./avatar.js";
|
|
|
7
6
|
import { Badge } from "./badge.js";
|
|
8
7
|
import { Breadcrumbs } from "./breadcrumbs.js";
|
|
9
8
|
import { BulkBar } from "./bulk-bar.js";
|
|
9
|
+
import { VariantProps, tv } from "./lib/tv.js";
|
|
10
10
|
import { Button, ButtonProps } from "./button.js";
|
|
11
11
|
import { IconButton, IconButtonProps } from "./icon-button.js";
|
|
12
12
|
import { CalendarActions, CalendarContextValue, CalendarMeta, CalendarState, CalendarView, RootProps, Weekday, useCalendar } from "./calendar-parts.js";
|
|
@@ -47,6 +47,7 @@ import { Icon } from "./icon.js";
|
|
|
47
47
|
import { Input } from "./input.js";
|
|
48
48
|
import { ClassValue, cn } from "./lib/cn.js";
|
|
49
49
|
import { Link } from "./link.js";
|
|
50
|
+
import { ListRow, ListRowButtonProps, ListRowLinkProps, ListRowProps, ListRowTone } from "./list-row.js";
|
|
50
51
|
import { Markdown, MarkdownProps } from "./markdown.js";
|
|
51
52
|
import { Message } from "./message.js";
|
|
52
53
|
import { RootProps as RootProps$9 } from "./month-picker-parts.js";
|
|
@@ -93,4 +94,4 @@ import { Toast } from "./toast.js";
|
|
|
93
94
|
import { ToggleGroup } from "./toggle-group.js";
|
|
94
95
|
import { Tooltip } from "./tooltip.js";
|
|
95
96
|
import { TouchTarget } from "./touch-target.js";
|
|
96
|
-
export { Accordion, Alert, AlertDialog, AnimatedSize, type AnimatedSizeProps, Avatar, Badge, Breadcrumbs, BulkBar, Button, type ButtonProps, Calendar, type CalendarActions, type CalendarContextValue, type CalendarMeta, type RootProps as CalendarProps, type CalendarState, type CalendarView, Card, type CardProps, Carousel, type RootProps$1 as CarouselProps, Checkbox, Chip, type RootProps$2 as ChipProps, type ClassValue, Collapsible, Combobox, type ComboboxActions, type ComboboxContextValue, type RootProps$3 as ComboboxProps, type ComboboxState, CommandPalette, type RootProps$4 as CommandPaletteProps, Composer, ContextMenu, CurrencyInput, type RootProps$5 as CurrencyInputProps, DataTable, type DataTableColumn, type RootProps$6 as DataTableProps, DateInput, DatePicker, type DatePickerActions, type DatePickerContextValue, type DatePickerMeta, type RootProps$7 as DatePickerProps, type DatePickerState, type DateRange, DateRangePicker, type DateRangePickerActions, type DateRangePickerContextValue, type DateRangePickerMeta, type RootProps$8 as DateRangePickerProps, type DateRangePickerState, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, type FileRejection, Heading, HoverCard, Icon, IconButton, type IconButtonProps, Input, Link, Markdown, type MarkdownProps, Message, MonthPicker, type RootProps$9 as MonthPickerProps, MonthStepper, MultipleSelector, type RootProps$10 as MultipleSelectorProps, NavBar, NavigationMenu, OtpInput, Page, PageHeader, type RootProps$11 as PageProps, Pagination, PillSelect, Popover, Portal, type PortalProps, Progress, QuantityInput, type RootProps$12 as QuantityInputProps, Radio, type RejectionReason, ScrollArea, Select, Sheet, type ContentProps as SheetContentProps, type Side as SheetSide, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, type RootProps$13 as TagInputProps, Text, TextMorph, type TextMorphProps, TextShimmer, type TextShimmerProps, Textarea, TimeRange, type RootProps$14 as TimeRangeProps, type TimeRangeValue, Toast, ToggleGroup, Tooltip, TouchTarget, type VariantProps, type Weekday, cn, dataTableColumns, selectColumn, tv, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
|
|
97
|
+
export { Accordion, Alert, AlertDialog, AnimatedSize, type AnimatedSizeProps, Avatar, Badge, Breadcrumbs, BulkBar, Button, type ButtonProps, Calendar, type CalendarActions, type CalendarContextValue, type CalendarMeta, type RootProps as CalendarProps, type CalendarState, type CalendarView, Card, type CardProps, Carousel, type RootProps$1 as CarouselProps, Checkbox, Chip, type RootProps$2 as ChipProps, type ClassValue, Collapsible, Combobox, type ComboboxActions, type ComboboxContextValue, type RootProps$3 as ComboboxProps, type ComboboxState, CommandPalette, type RootProps$4 as CommandPaletteProps, Composer, ContextMenu, CurrencyInput, type RootProps$5 as CurrencyInputProps, DataTable, type DataTableColumn, type RootProps$6 as DataTableProps, DateInput, DatePicker, type DatePickerActions, type DatePickerContextValue, type DatePickerMeta, type RootProps$7 as DatePickerProps, type DatePickerState, type DateRange, DateRangePicker, type DateRangePickerActions, type DateRangePickerContextValue, type DateRangePickerMeta, type RootProps$8 as DateRangePickerProps, type DateRangePickerState, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, type FileRejection, Heading, HoverCard, Icon, IconButton, type IconButtonProps, Input, Link, ListRow, type ListRowButtonProps, type ListRowLinkProps, type ListRowProps, type ListRowTone, Markdown, type MarkdownProps, Message, MonthPicker, type RootProps$9 as MonthPickerProps, MonthStepper, MultipleSelector, type RootProps$10 as MultipleSelectorProps, NavBar, NavigationMenu, OtpInput, Page, PageHeader, type RootProps$11 as PageProps, Pagination, PillSelect, Popover, Portal, type PortalProps, Progress, QuantityInput, type RootProps$12 as QuantityInputProps, Radio, type RejectionReason, ScrollArea, Select, Sheet, type ContentProps as SheetContentProps, type Side as SheetSide, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, type RootProps$13 as TagInputProps, Text, TextMorph, type TextMorphProps, TextShimmer, type TextShimmerProps, Textarea, TimeRange, type RootProps$14 as TimeRangeProps, type TimeRangeValue, Toast, ToggleGroup, Tooltip, TouchTarget, type VariantProps, type Weekday, cn, dataTableColumns, selectColumn, tv, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import { Heading } from "./heading.js";
|
|
|
48
48
|
import { HoverCard } from "./hover-card.js";
|
|
49
49
|
import { Icon } from "./icon.js";
|
|
50
50
|
import { Link } from "./link.js";
|
|
51
|
+
import { ListRow } from "./list-row.js";
|
|
51
52
|
import { Markdown } from "./markdown.js";
|
|
52
53
|
import { Message } from "./message.js";
|
|
53
54
|
import { MonthPicker } from "./month-picker.js";
|
|
@@ -86,4 +87,4 @@ import { TimeRange } from "./time-range.js";
|
|
|
86
87
|
import { Toast } from "./toast.js";
|
|
87
88
|
import { ToggleGroup } from "./toggle-group.js";
|
|
88
89
|
import { Tooltip } from "./tooltip.js";
|
|
89
|
-
export { Accordion, Alert, AlertDialog, AnimatedSize, Avatar, Badge, Breadcrumbs, BulkBar, Button, Calendar, Card, Carousel, Checkbox, Chip, Collapsible, Combobox, CommandPalette, Composer, ContextMenu, CurrencyInput, DataTable, DateInput, DatePicker, DateRangePicker, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, Heading, HoverCard, Icon, IconButton, Input, Link, Markdown, Message, MonthPicker, MonthStepper, MultipleSelector, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, Progress, QuantityInput, Radio, ScrollArea, Select, Sheet, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, Text, TextMorph, TextShimmer, Textarea, TimeRange, Toast, ToggleGroup, Tooltip, TouchTarget, cn, dataTableColumns, selectColumn, tv, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
|
|
90
|
+
export { Accordion, Alert, AlertDialog, AnimatedSize, Avatar, Badge, Breadcrumbs, BulkBar, Button, Calendar, Card, Carousel, Checkbox, Chip, Collapsible, Combobox, CommandPalette, Composer, ContextMenu, CurrencyInput, DataTable, DateInput, DatePicker, DateRangePicker, DescriptionList, Dialog, Divider, Drawer, DropdownMenu, EmptyState, Field, FileDropzone, Heading, HoverCard, Icon, IconButton, Input, Link, ListRow, Markdown, Message, MonthPicker, MonthStepper, MultipleSelector, NavBar, NavigationMenu, OtpInput, Page, PageHeader, Pagination, PillSelect, Popover, Portal, Progress, QuantityInput, Radio, ScrollArea, Select, Sheet, Sidebar, Skeleton, Slider, Spinner, Stack, Stat, Stepper, Switch, Table, Tabs, TagInput, Text, TextMorph, TextShimmer, Textarea, TimeRange, Toast, ToggleGroup, Tooltip, TouchTarget, cn, dataTableColumns, selectColumn, tv, useCalendar, useCarousel, useCombobox, useDataTable, useDatePicker, useDateRangePicker, useMultipleSelector, useTagInput };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/input.d.ts
|
|
3
|
-
declare const field
|
|
3
|
+
declare const field: string;
|
|
4
4
|
declare const input: (className?: string) => string;
|
|
5
|
-
declare const Input:
|
|
5
|
+
declare const Input: Styled<"input">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Input, field, input };
|
package/dist/lib/icon-tile.d.ts
CHANGED
|
@@ -1,32 +1,9 @@
|
|
|
1
|
+
import { Recipe } from "./tv.js";
|
|
1
2
|
//#region src/lib/icon-tile.d.ts
|
|
2
3
|
/** A bordered square that holds an icon: card icons, empty states, dropzones. */
|
|
3
|
-
declare const iconTile:
|
|
4
|
-
size
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
tone: {
|
|
9
|
-
outline: "border border-bloom-line dark:border-bloom-line-dark";
|
|
10
|
-
soft: "bg-current/8";
|
|
11
|
-
};
|
|
12
|
-
}, undefined, "grid shrink-0 place-items-center", {
|
|
13
|
-
size: {
|
|
14
|
-
md: "size-10 [&>svg]:size-5";
|
|
15
|
-
lg: "size-12 [&>svg]:size-6";
|
|
16
|
-
};
|
|
17
|
-
tone: {
|
|
18
|
-
outline: "border border-bloom-line dark:border-bloom-line-dark";
|
|
19
|
-
soft: "bg-current/8";
|
|
20
|
-
};
|
|
21
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
22
|
-
size: {
|
|
23
|
-
md: "size-10 [&>svg]:size-5";
|
|
24
|
-
lg: "size-12 [&>svg]:size-6";
|
|
25
|
-
};
|
|
26
|
-
tone: {
|
|
27
|
-
outline: "border border-bloom-line dark:border-bloom-line-dark";
|
|
28
|
-
soft: "bg-current/8";
|
|
29
|
-
};
|
|
30
|
-
}, undefined>>;
|
|
4
|
+
declare const iconTile: Recipe<{
|
|
5
|
+
size?: "md" | "lg";
|
|
6
|
+
tone?: "outline" | "soft";
|
|
7
|
+
}>;
|
|
31
8
|
//#endregion
|
|
32
9
|
export { iconTile };
|
package/dist/lib/menu-parts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ElementType } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, ElementType, JSX } from "react";
|
|
2
2
|
//#region src/lib/menu-parts.d.ts
|
|
3
3
|
type MenuParts = {
|
|
4
4
|
Content: ElementType;
|
|
@@ -6,20 +6,16 @@ type MenuParts = {
|
|
|
6
6
|
Label: ElementType;
|
|
7
7
|
Separator: ElementType;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Item:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Label: ({ className, ...props }: ComponentPropsWithRef<P['Label']> & {
|
|
18
|
-
className?: string;
|
|
19
|
-
}) => import("react").JSX.Element;
|
|
20
|
-
Separator: ({ className, ...props }: ComponentPropsWithRef<P['Separator']> & {
|
|
21
|
-
className?: string;
|
|
22
|
-
}) => import("react").JSX.Element;
|
|
9
|
+
type MenuPart<T extends ElementType> = (props: ComponentPropsWithRef<T> & {
|
|
10
|
+
className?: string;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
type StyledMenuParts<P extends MenuParts> = {
|
|
13
|
+
Content: MenuPart<P["Content"]>;
|
|
14
|
+
Item: MenuPart<P["Item"]>;
|
|
15
|
+
Label: MenuPart<P["Label"]>;
|
|
16
|
+
Separator: MenuPart<P["Separator"]>;
|
|
23
17
|
};
|
|
18
|
+
/** Styled Content, Item, Label and Separator over the nude parts of any menu (dropdown menu, context menu). */
|
|
19
|
+
declare const styleMenuParts: <P extends MenuParts>(parts: P) => StyledMenuParts<P>;
|
|
24
20
|
//#endregion
|
|
25
|
-
export { styleMenuParts };
|
|
21
|
+
export { type MenuPart, styleMenuParts };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { animate } from "animejs";
|
|
2
|
-
import { ComponentPropsWithRef, ElementType } from "react";
|
|
2
|
+
import { ComponentPropsWithRef, ElementType, JSX } from "react";
|
|
3
3
|
//#region src/lib/modal-content.d.ts
|
|
4
4
|
/** Styles a nude modal content: a dimmed, fading overlay and a panel that animates in with `enter`. */
|
|
5
5
|
declare const ModalContent: <C extends ElementType>({ content: Content, enter, ...props }: ComponentPropsWithRef<C> & {
|
|
6
6
|
content: C;
|
|
7
7
|
enter: Parameters<typeof animate>[1];
|
|
8
|
-
}) =>
|
|
8
|
+
}) => JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ModalContent };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/lib/modal-parts.d.ts
|
|
3
3
|
/** Shared by Dialog, AlertDialog and Drawer. */
|
|
4
|
-
declare const Body:
|
|
5
|
-
declare const Actions:
|
|
4
|
+
declare const Body: Styled<"div">;
|
|
5
|
+
declare const Actions: Styled<"div">;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Actions, Body };
|
package/dist/lib/overlay.d.ts
CHANGED
|
@@ -1,41 +1,18 @@
|
|
|
1
|
+
import { SurfaceTone } from "./tones.js";
|
|
2
|
+
import { Recipe } from "./tv.js";
|
|
1
3
|
//#region src/lib/overlay.d.ts
|
|
2
4
|
/** Surface and item styles shared by floating menus (select, dropdown menu, popover, hover card). */
|
|
3
|
-
declare const floatingSurface
|
|
5
|
+
declare const floatingSurface: string;
|
|
4
6
|
/** A floating surface that holds free-form content (popover, hover card). */
|
|
5
|
-
declare const floatingCard
|
|
7
|
+
declare const floatingCard: string;
|
|
6
8
|
declare const floatingItem: string;
|
|
7
9
|
declare const floatingLabel = "px-2 py-1.5 text-sm font-medium";
|
|
8
10
|
declare const floatingSeparator = "-mx-1 my-1 h-px bg-current/10";
|
|
9
11
|
/** Backdrop behind dialogs, alert dialogs, sheets and drawers. */
|
|
10
|
-
declare const modalOverlay
|
|
12
|
+
declare const modalOverlay: string;
|
|
11
13
|
/** Centered panel shared by Dialog and AlertDialog. */
|
|
12
|
-
declare const centeredPanel:
|
|
13
|
-
tone
|
|
14
|
-
|
|
15
|
-
readonly coral: string;
|
|
16
|
-
readonly yellow: string;
|
|
17
|
-
readonly indigo: string;
|
|
18
|
-
readonly mint: string;
|
|
19
|
-
readonly sky: string;
|
|
20
|
-
};
|
|
21
|
-
}, undefined, "rounded-bloom fixed top-1/2 left-1/2 flex w-[calc(100%-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 flex-col gap-4 p-6 outline-none", {
|
|
22
|
-
tone: {
|
|
23
|
-
readonly surface: "bg-bloom-surface dark:bg-bloom-surface-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark border border-bloom-line dark:border-bloom-line-dark";
|
|
24
|
-
readonly coral: string;
|
|
25
|
-
readonly yellow: string;
|
|
26
|
-
readonly indigo: string;
|
|
27
|
-
readonly mint: string;
|
|
28
|
-
readonly sky: string;
|
|
29
|
-
};
|
|
30
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
31
|
-
tone: {
|
|
32
|
-
readonly surface: "bg-bloom-surface dark:bg-bloom-surface-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark border border-bloom-line dark:border-bloom-line-dark";
|
|
33
|
-
readonly coral: string;
|
|
34
|
-
readonly yellow: string;
|
|
35
|
-
readonly indigo: string;
|
|
36
|
-
readonly mint: string;
|
|
37
|
-
readonly sky: string;
|
|
38
|
-
};
|
|
39
|
-
}, undefined>>;
|
|
14
|
+
declare const centeredPanel: Recipe<{
|
|
15
|
+
tone?: SurfaceTone;
|
|
16
|
+
}>;
|
|
40
17
|
//#endregion
|
|
41
18
|
export { centeredPanel, floatingCard, floatingItem, floatingLabel, floatingSeparator, floatingSurface, modalOverlay };
|
package/dist/lib/picker.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { ButtonProps } from "../button.js";
|
|
2
|
-
import { ComponentPropsWithRef, ComponentType } from "react";
|
|
2
|
+
import { ComponentPropsWithRef, ComponentType, JSX } from "react";
|
|
3
3
|
//#region src/lib/picker.d.ts
|
|
4
|
-
type TriggerProps = ComponentPropsWithRef<
|
|
5
|
-
tone?: ButtonProps[
|
|
4
|
+
type TriggerProps = ComponentPropsWithRef<"button"> & {
|
|
5
|
+
tone?: ButtonProps["tone"];
|
|
6
6
|
};
|
|
7
|
+
type PickerTrigger = (props: TriggerProps) => JSX.Element;
|
|
8
|
+
type PickerValue<V> = (props: V) => JSX.Element;
|
|
7
9
|
/** Styles a nude picker's trigger as a field button and its value as truncating text. */
|
|
8
10
|
declare const stylePicker: <V extends {
|
|
9
11
|
className?: string;
|
|
10
12
|
}>(parts: {
|
|
11
|
-
Trigger: ComponentType<ComponentPropsWithRef<
|
|
13
|
+
Trigger: ComponentType<ComponentPropsWithRef<"button">>;
|
|
12
14
|
Value: ComponentType<V>;
|
|
13
15
|
}) => {
|
|
14
|
-
Trigger:
|
|
15
|
-
Value:
|
|
16
|
+
Trigger: PickerTrigger;
|
|
17
|
+
Value: PickerValue<V>;
|
|
16
18
|
};
|
|
17
19
|
//#endregion
|
|
18
|
-
export { stylePicker };
|
|
20
|
+
export { type PickerTrigger, type PickerValue, stylePicker };
|
package/dist/lib/theme.d.ts
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
/** Readable text on the canvas and on surfaces. */
|
|
9
9
|
declare const foreground = "text-bloom-foreground dark:text-bloom-foreground-dark";
|
|
10
10
|
/** The page background with its text and native control scheme. */
|
|
11
|
-
declare const canvas
|
|
11
|
+
declare const canvas: string;
|
|
12
12
|
/** A raised block's fill and text, no edge. */
|
|
13
|
-
declare const surfaceFill
|
|
13
|
+
declare const surfaceFill: string;
|
|
14
14
|
/** The color of every hairline: card edges, field outlines, dividers. */
|
|
15
15
|
declare const line = "border-bloom-line dark:border-bloom-line-dark";
|
|
16
16
|
/** Cards and panels: the canvas color by default, set apart by a hairline edge only. */
|
|
17
|
-
declare const surface
|
|
17
|
+
declare const surface: string;
|
|
18
18
|
/** Floating blocks: menus, toasts, the nav bar. Same edge as a card; the shadow is added where they float. */
|
|
19
|
-
declare const raised
|
|
20
|
-
declare const faintBorder
|
|
19
|
+
declare const raised: string;
|
|
20
|
+
declare const faintBorder: string;
|
|
21
21
|
/** The canvas color as a fill, for marks that sit on a solid: the switch thumb. */
|
|
22
22
|
declare const canvasFill = "bg-bloom-canvas dark:bg-bloom-canvas-dark";
|
|
23
23
|
/** A dim layer over a surface: bubbles, hover states, selected items. */
|
|
@@ -29,11 +29,11 @@ declare const mutedFill = "bg-bloom-foreground/30 dark:bg-bloom-foreground-dark/
|
|
|
29
29
|
/** A solid fill that inverts with the theme, for primary buttons and thumbs. */
|
|
30
30
|
declare const neutralFill = "bg-bloom-foreground dark:bg-bloom-foreground-dark";
|
|
31
31
|
declare const neutralText = "text-bloom-canvas dark:text-bloom-canvas-dark";
|
|
32
|
-
declare const neutral
|
|
32
|
+
declare const neutral: string;
|
|
33
33
|
/** Text on a form control that opens something. */
|
|
34
|
-
declare const controlText
|
|
34
|
+
declare const controlText: string;
|
|
35
35
|
/** Text fields, selects and pickers: no fill, a hairline outline. */
|
|
36
|
-
declare const control
|
|
36
|
+
declare const control: string;
|
|
37
37
|
/** The backdrop behind modals: the canvas, mostly opaque. */
|
|
38
38
|
declare const scrim = "bg-bloom-canvas/60 dark:bg-bloom-canvas-dark/80";
|
|
39
39
|
/** A gradient of the text color that the shimmer animation slides across the letters. */
|