@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/lib/tones.d.ts
CHANGED
|
@@ -1,52 +1,22 @@
|
|
|
1
1
|
//#region src/lib/tones.d.ts
|
|
2
|
+
type Fill = "neutral" | "coral" | "yellow" | "indigo" | "mint" | "sky";
|
|
3
|
+
type SolidTone = Fill;
|
|
4
|
+
type LabelTone = Fill;
|
|
5
|
+
type PageTint = "coral" | "yellow" | "indigo" | "mint" | "sky";
|
|
6
|
+
type SurfaceTone = "surface" | "coral" | "yellow" | "indigo" | "mint" | "sky";
|
|
2
7
|
/** Fill colors, the single source for every tone map in the package. */
|
|
3
|
-
declare const fills:
|
|
4
|
-
/** Inverts with the theme: a dark fill in light mode, a light fill in dark mode. */
|
|
5
|
-
readonly neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark";
|
|
6
|
-
readonly coral: 'bg-bloom-coral';
|
|
7
|
-
readonly yellow: 'bg-bloom-yellow';
|
|
8
|
-
readonly indigo: 'bg-bloom-indigo';
|
|
9
|
-
readonly mint: 'bg-bloom-mint';
|
|
10
|
-
readonly sky: 'bg-bloom-sky';
|
|
11
|
-
};
|
|
8
|
+
declare const fills: Record<Fill, string>;
|
|
12
9
|
/** Fill plus readable text, for buttons. */
|
|
13
|
-
declare const solidTones:
|
|
14
|
-
readonly neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark text-bloom-canvas dark:text-bloom-canvas-dark";
|
|
15
|
-
readonly coral: "bg-bloom-coral text-bloom-paper";
|
|
16
|
-
readonly yellow: "bg-bloom-yellow text-bloom-ink";
|
|
17
|
-
readonly indigo: "bg-bloom-indigo text-bloom-paper";
|
|
18
|
-
readonly mint: "bg-bloom-mint text-bloom-ink";
|
|
19
|
-
readonly sky: "bg-bloom-sky text-bloom-ink";
|
|
20
|
-
};
|
|
10
|
+
declare const solidTones: Record<SolidTone, string>;
|
|
21
11
|
/** Status labels: a faint wash of the color, with the color as text in dark and plain text in light. */
|
|
22
|
-
declare const labelTones:
|
|
23
|
-
readonly neutral: "bg-bloom-foreground/8 dark:bg-bloom-foreground-dark/10 text-bloom-foreground dark:text-bloom-foreground-dark";
|
|
24
|
-
readonly coral: 'bg-bloom-coral/15 text-bloom-foreground dark:text-bloom-coral';
|
|
25
|
-
readonly yellow: 'bg-bloom-yellow/25 text-bloom-foreground dark:bg-bloom-yellow/15 dark:text-bloom-yellow';
|
|
26
|
-
readonly indigo: 'bg-bloom-indigo/15 text-bloom-foreground dark:text-bloom-indigo';
|
|
27
|
-
readonly mint: 'bg-bloom-mint/20 text-bloom-foreground dark:bg-bloom-mint/15 dark:text-bloom-mint';
|
|
28
|
-
readonly sky: 'bg-bloom-sky/15 text-bloom-foreground dark:text-bloom-sky';
|
|
29
|
-
};
|
|
12
|
+
declare const labelTones: Record<LabelTone, string>;
|
|
30
13
|
/** The dark canvas color with light text, in both themes. */
|
|
31
14
|
declare const inkTone = "bg-bloom-ink text-bloom-paper";
|
|
32
15
|
/** The page background and its readable text. Follows the theme. */
|
|
33
|
-
declare const canvasTone
|
|
16
|
+
declare const canvasTone: string;
|
|
34
17
|
/** A page washed with a color: the wash is a flat gradient, so the canvas stays opaque under it. */
|
|
35
|
-
declare const pageTints:
|
|
36
|
-
readonly coral: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-coral/10 to-bloom-coral/10";
|
|
37
|
-
readonly yellow: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-yellow/10 to-bloom-yellow/10";
|
|
38
|
-
readonly indigo: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-indigo/10 to-bloom-indigo/10";
|
|
39
|
-
readonly mint: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-mint/10 to-bloom-mint/10";
|
|
40
|
-
readonly sky: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-sky/10 to-bloom-sky/10";
|
|
41
|
-
};
|
|
18
|
+
declare const pageTints: Record<PageTint, string>;
|
|
42
19
|
/** Surface tones shared by every block that paints its own background. */
|
|
43
|
-
declare const surfaceTones:
|
|
44
|
-
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";
|
|
45
|
-
readonly coral: string;
|
|
46
|
-
readonly yellow: string;
|
|
47
|
-
readonly indigo: string;
|
|
48
|
-
readonly mint: string;
|
|
49
|
-
readonly sky: string;
|
|
50
|
-
};
|
|
20
|
+
declare const surfaceTones: Record<SurfaceTone, string>;
|
|
51
21
|
//#endregion
|
|
52
|
-
export { canvasTone, fills, inkTone, labelTones, pageTints, solidTones, surfaceTones };
|
|
22
|
+
export { type Fill, type LabelTone, type PageTint, type SolidTone, type SurfaceTone, canvasTone, fills, inkTone, labelTones, pageTints, solidTones, surfaceTones };
|
package/dist/lib/tv.d.ts
CHANGED
package/dist/lib/use-enter.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { animate } from "animejs";
|
|
2
|
+
import { RefObject } from "react";
|
|
2
3
|
//#region src/lib/use-enter.d.ts
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
declare const
|
|
6
|
-
declare const
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly duration: 100;
|
|
11
|
-
readonly ease: 'outQuad';
|
|
12
|
-
};
|
|
13
|
-
declare const useExpand: <T extends HTMLElement>() => import("react").RefObject<T | null>;
|
|
4
|
+
type Keyframes = Parameters<typeof animate>[1];
|
|
5
|
+
declare const useEnter: <T extends HTMLElement>(keyframes: Keyframes) => RefObject<T | null>;
|
|
6
|
+
declare const usePopEnter: (duration?: number) => RefObject<HTMLDivElement | null>;
|
|
7
|
+
declare const useDropEnter: () => RefObject<HTMLDivElement | null>;
|
|
8
|
+
declare const useOverlayEnter: () => RefObject<HTMLDivElement | null>;
|
|
9
|
+
declare const modalPanelEnter: Keyframes;
|
|
10
|
+
declare const useExpand: <T extends HTMLElement>() => RefObject<T | null>;
|
|
14
11
|
//#endregion
|
|
15
12
|
export { modalPanelEnter, useDropEnter, useEnter, useExpand, useOverlayEnter, usePopEnter };
|
package/dist/lib/use-enter.js
CHANGED
package/dist/link.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
2
|
//#region src/link.d.ts
|
|
3
|
-
type LinkProps = ComponentPropsWithRef<
|
|
3
|
+
type LinkProps = ComponentPropsWithRef<"a"> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const Link: ({ asChild, className, ...props }: LinkProps) =>
|
|
6
|
+
declare const Link: ({ asChild, className, ...props }: LinkProps) => JSX.Element;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Link, type LinkProps };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
|
+
//#region src/list-row.d.ts
|
|
4
|
+
type ListRowTone = "surface" | "soft" | "outline";
|
|
5
|
+
type ToneProps = {
|
|
6
|
+
tone?: ListRowTone;
|
|
7
|
+
};
|
|
8
|
+
type ListRowProps = ToneProps & ComponentPropsWithRef<"div">;
|
|
9
|
+
type ListRowButtonProps = ToneProps & ComponentPropsWithRef<"button">;
|
|
10
|
+
type ListRowLinkProps = ToneProps & ComponentPropsWithRef<"a">;
|
|
11
|
+
declare const Root: ({ tone, className, ...props }: ListRowProps) => JSX.Element;
|
|
12
|
+
declare const Button: ({ tone, className, children, ...props }: ListRowButtonProps) => JSX.Element;
|
|
13
|
+
declare const Link: ({ tone, className, children, ...props }: ListRowLinkProps) => JSX.Element;
|
|
14
|
+
declare const Leading: Styled<"span">;
|
|
15
|
+
declare const Content: Styled<"span">;
|
|
16
|
+
declare const Title: Styled<"span">;
|
|
17
|
+
declare const Subtitle: Styled<"span">;
|
|
18
|
+
declare const Trailing: Styled<"span">;
|
|
19
|
+
declare const ListRow: {
|
|
20
|
+
Root: typeof Root;
|
|
21
|
+
Button: typeof Button;
|
|
22
|
+
Link: typeof Link;
|
|
23
|
+
Leading: typeof Leading;
|
|
24
|
+
Content: typeof Content;
|
|
25
|
+
Title: typeof Title;
|
|
26
|
+
Subtitle: typeof Subtitle;
|
|
27
|
+
Trailing: typeof Trailing;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { ListRow, type ListRowButtonProps, type ListRowLinkProps, type ListRowProps, type ListRowTone };
|
package/dist/list-row.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { tv } from "./lib/tv.js";
|
|
2
|
+
import { cn } from "./lib/cn.js";
|
|
3
|
+
import { interactive } from "./lib/interactive.js";
|
|
4
|
+
import { mutedText } from "./lib/text-styles.js";
|
|
5
|
+
import { dim, line, surface } from "./lib/theme.js";
|
|
6
|
+
import { TouchTarget } from "./touch-target.js";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { ListRow as ListRow$1 } from "@journ/nude/list-row";
|
|
9
|
+
//#region src/list-row.tsx
|
|
10
|
+
const listRow = tv({
|
|
11
|
+
base: "flex w-full items-center text-left",
|
|
12
|
+
variants: { tone: {
|
|
13
|
+
surface: `${surface} rounded-bloom gap-3 px-4 py-3`,
|
|
14
|
+
soft: `${dim} rounded-bloom gap-2 px-3 py-2.5`,
|
|
15
|
+
outline: `${line} rounded-bloom min-h-14 gap-3 border px-4 py-3`
|
|
16
|
+
} },
|
|
17
|
+
defaultVariants: { tone: "surface" }
|
|
18
|
+
});
|
|
19
|
+
const Root = ({ tone, className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Root, {
|
|
20
|
+
...props,
|
|
21
|
+
className: listRow({
|
|
22
|
+
tone,
|
|
23
|
+
class: className
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
const Button = ({ tone, className, children, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Button, {
|
|
27
|
+
...props,
|
|
28
|
+
className: listRow({
|
|
29
|
+
tone,
|
|
30
|
+
class: cn(interactive, className)
|
|
31
|
+
}),
|
|
32
|
+
children: /* @__PURE__ */ jsx(TouchTarget, { children })
|
|
33
|
+
});
|
|
34
|
+
const Link = ({ tone, className, children, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Link, {
|
|
35
|
+
...props,
|
|
36
|
+
className: listRow({
|
|
37
|
+
tone,
|
|
38
|
+
class: cn(interactive, className)
|
|
39
|
+
}),
|
|
40
|
+
children: /* @__PURE__ */ jsx(TouchTarget, { children })
|
|
41
|
+
});
|
|
42
|
+
const Leading = ({ className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Leading, {
|
|
43
|
+
...props,
|
|
44
|
+
className: cn("flex shrink-0 items-center [&>svg]:size-4 [&>svg]:opacity-60", className)
|
|
45
|
+
});
|
|
46
|
+
const Content = ({ className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Content, {
|
|
47
|
+
...props,
|
|
48
|
+
className: cn("flex min-w-0 flex-1 flex-col gap-0.5", className)
|
|
49
|
+
});
|
|
50
|
+
const Title = ({ className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Title, {
|
|
51
|
+
...props,
|
|
52
|
+
className: cn("truncate text-sm/5 font-medium", className)
|
|
53
|
+
});
|
|
54
|
+
const Subtitle = ({ className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Subtitle, {
|
|
55
|
+
...props,
|
|
56
|
+
className: cn(mutedText, "truncate", className)
|
|
57
|
+
});
|
|
58
|
+
const Trailing = ({ className, ...props }) => /* @__PURE__ */ jsx(ListRow$1.Trailing, {
|
|
59
|
+
...props,
|
|
60
|
+
className: cn("flex shrink-0 items-center gap-2 text-sm/5 opacity-60 [&>svg]:size-4", className)
|
|
61
|
+
});
|
|
62
|
+
const ListRow = {
|
|
63
|
+
Root,
|
|
64
|
+
Button,
|
|
65
|
+
Link,
|
|
66
|
+
Leading,
|
|
67
|
+
Content,
|
|
68
|
+
Title,
|
|
69
|
+
Subtitle,
|
|
70
|
+
Trailing
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { ListRow };
|
package/dist/markdown.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { JSX } from "react";
|
|
1
2
|
import { MarkdownComponents, MarkdownProps as MarkdownProps$1 } from "@journ/nude/markdown";
|
|
2
3
|
//#region src/markdown.d.ts
|
|
3
|
-
type MarkdownProps = Omit<MarkdownProps$1,
|
|
4
|
+
type MarkdownProps = Omit<MarkdownProps$1, "components"> & {
|
|
4
5
|
/** Override or add elements. Merged over the bloom defaults. */
|
|
5
6
|
components?: MarkdownComponents;
|
|
6
7
|
};
|
|
7
8
|
/** `className` goes to the wrapper, which keeps the element margins from stacking with a parent's gap. */
|
|
8
|
-
declare const Markdown: ({ components: overrides, className, ...props }: MarkdownProps) =>
|
|
9
|
+
declare const Markdown: ({ components: overrides, className, ...props }: MarkdownProps) => JSX.Element;
|
|
9
10
|
//#endregion
|
|
10
11
|
export { Markdown, type MarkdownProps };
|
package/dist/message.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
3
|
//#region src/message.d.ts
|
|
3
|
-
type RootProps = ComponentPropsWithRef<
|
|
4
|
-
from?:
|
|
4
|
+
type RootProps = ComponentPropsWithRef<"div"> & {
|
|
5
|
+
from?: "agent" | "user";
|
|
5
6
|
};
|
|
6
|
-
declare const Root: ({ from, className, ...props }: RootProps) =>
|
|
7
|
-
declare const Bubble:
|
|
8
|
-
declare const Highlight:
|
|
7
|
+
declare const Root: ({ from, className, ...props }: RootProps) => JSX.Element;
|
|
8
|
+
declare const Bubble: Styled<"div">;
|
|
9
|
+
declare const Highlight: Styled<"span">;
|
|
9
10
|
declare const Message: {
|
|
10
11
|
Root: typeof Root;
|
|
11
12
|
Bubble: typeof Bubble;
|
package/dist/month-picker.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Frame, Header, Heading, Months, Next, Previous, Years } from "./calendar-parts.js";
|
|
2
|
-
import { RootProps } from "./month-picker-parts.js";
|
|
2
|
+
import { Root, RootProps } from "./month-picker-parts.js";
|
|
3
3
|
//#region src/month-picker.d.ts
|
|
4
4
|
declare const MonthPicker: {
|
|
5
|
-
Root:
|
|
5
|
+
Root: typeof Root;
|
|
6
6
|
Frame: typeof Frame;
|
|
7
7
|
Header: typeof Header;
|
|
8
8
|
Heading: typeof Heading;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { IconButtonProps } from "./icon-button.js";
|
|
2
|
-
import {
|
|
2
|
+
import { JSX } from "react";
|
|
3
3
|
import * as Nude from "@journ/nude/month-stepper-parts";
|
|
4
|
+
import { Styled } from "@journ/nude/styled";
|
|
4
5
|
//#region src/month-stepper-parts.d.ts
|
|
5
6
|
/** Always reports the first day of the month. */
|
|
6
|
-
declare const Root: ({ className, ...props }: Nude.RootProps) =>
|
|
7
|
-
declare const Previous: ({ tone, size, className, children, ...props }: IconButtonProps) =>
|
|
8
|
-
declare const Next: ({ tone, size, className, children, ...props }: IconButtonProps) =>
|
|
9
|
-
declare const Label:
|
|
7
|
+
declare const Root: ({ className, ...props }: Nude.RootProps) => JSX.Element;
|
|
8
|
+
declare const Previous: ({ tone, size, className, children, ...props }: IconButtonProps) => JSX.Element;
|
|
9
|
+
declare const Next: ({ tone, size, className, children, ...props }: IconButtonProps) => JSX.Element;
|
|
10
|
+
declare const Label: Styled<"span">;
|
|
10
11
|
//#endregion
|
|
11
12
|
export { Label, Next, Previous, Root };
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PickerTrigger, PickerValue } from "./lib/picker.js";
|
|
2
2
|
import { Empty, Frame, Group, Input as Input$1, ItemIndicator, List } from "./combobox-parts.js";
|
|
3
|
-
import { ComponentPropsWithRef } from "react";
|
|
3
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
4
4
|
import * as Nude from "@journ/nude/multiple-selector-parts";
|
|
5
5
|
import { RootProps } from "@journ/nude/multiple-selector-parts";
|
|
6
|
+
import { Styled } from "@journ/nude/styled";
|
|
6
7
|
//#region src/multiple-selector-parts.d.ts
|
|
7
|
-
declare const Root:
|
|
8
|
-
declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare const
|
|
14
|
-
declare const
|
|
15
|
-
declare const Item: ({ className, ...props }: ComponentPropsWithRef<typeof Nude.Item>) => import("react").JSX.Element;
|
|
16
|
-
declare const Create: ({ className, ...props }: ComponentPropsWithRef<typeof Nude.Create>) => import("react").JSX.Element;
|
|
8
|
+
declare const Root: typeof Nude.Root;
|
|
9
|
+
declare const useMultipleSelector: typeof Nude.useMultipleSelector;
|
|
10
|
+
declare const Trigger: PickerTrigger;
|
|
11
|
+
declare const Value: PickerValue<ComponentPropsWithRef<typeof Nude.Value>>;
|
|
12
|
+
declare const Tags: () => JSX.Element;
|
|
13
|
+
declare const Input: Styled<typeof Input$1>;
|
|
14
|
+
declare const Item: Styled<typeof Nude.Item>;
|
|
15
|
+
declare const Create: Styled<typeof Nude.Create>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { Create, Empty, Frame, Group, Input, Item, ItemIndicator, List, Root, type RootProps, Tags, Trigger, Value, useMultipleSelector };
|
|
@@ -5,8 +5,11 @@ import { Empty, Frame, Group, Input as Input$1, ItemIndicator, List, option } fr
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import * as Nude from "@journ/nude/multiple-selector-parts";
|
|
7
7
|
//#region src/multiple-selector-parts.tsx
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const Root = Nude.Root;
|
|
9
|
+
const useMultipleSelector = Nude.useMultipleSelector;
|
|
10
|
+
const picker = stylePicker(Nude);
|
|
11
|
+
const Trigger = picker.Trigger;
|
|
12
|
+
const Value = picker.Value;
|
|
10
13
|
const Tags = () => /* @__PURE__ */ jsx(Nude.Tags, { components: { Tag: Chip.Tag } });
|
|
11
14
|
const Input = (props) => {
|
|
12
15
|
const { search, setSearch } = useMultipleSelector();
|
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import { ButtonProps } from "./button.js";
|
|
2
1
|
import { Empty, Frame, Group, ItemIndicator, List } from "./combobox-parts.js";
|
|
3
2
|
import { Content, Description, Title } from "./drawer-parts.js";
|
|
4
|
-
import { Create, Input, Item, RootProps, Tags, useMultipleSelector } from "./multiple-selector-parts.js";
|
|
3
|
+
import { Create, Input, Item, Root, RootProps, Tags, Trigger, Value, useMultipleSelector } from "./multiple-selector-parts.js";
|
|
5
4
|
//#region src/multiple-selector.d.ts
|
|
6
5
|
declare const MultipleSelector: {
|
|
7
|
-
Root:
|
|
8
|
-
Trigger:
|
|
9
|
-
|
|
10
|
-
}) => import("react").JSX.Element;
|
|
11
|
-
Value: ({ className, ...props }: {
|
|
12
|
-
className?: string;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
6
|
+
Root: typeof Root;
|
|
7
|
+
Trigger: typeof Trigger;
|
|
8
|
+
Value: typeof Value;
|
|
14
9
|
Tags: typeof Tags;
|
|
15
10
|
Content: typeof Content;
|
|
16
11
|
Title: typeof Title;
|
package/dist/nav-bar.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/nav-bar.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Item:
|
|
3
|
+
declare const Root: Styled<"nav">;
|
|
4
|
+
declare const Item: Styled<"a">;
|
|
5
5
|
declare const NavBar: {
|
|
6
6
|
Root: typeof Root;
|
|
7
7
|
Item: typeof Item;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
2
2
|
import * as Nude from "@journ/nude/navigation-menu-parts";
|
|
3
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
4
|
//#region src/navigation-menu-parts.d.ts
|
|
4
5
|
/** Includes the viewport, the panel that Content opens into. */
|
|
5
|
-
declare const Root: ({ className, ...props }: Omit<ComponentPropsWithRef<typeof Nude.Root>,
|
|
6
|
-
declare const List:
|
|
7
|
-
declare const Item:
|
|
8
|
-
declare const Trigger:
|
|
9
|
-
declare const Content:
|
|
10
|
-
declare const Link:
|
|
6
|
+
declare const Root: ({ className, ...props }: Omit<ComponentPropsWithRef<typeof Nude.Root>, "classNames">) => JSX.Element;
|
|
7
|
+
declare const List: Styled<typeof Nude.List>;
|
|
8
|
+
declare const Item: typeof Nude.Item;
|
|
9
|
+
declare const Trigger: Styled<typeof Nude.Trigger>;
|
|
10
|
+
declare const Content: Styled<typeof Nude.Content>;
|
|
11
|
+
declare const Link: Styled<typeof Nude.Link>;
|
|
11
12
|
//#endregion
|
|
12
13
|
export { Content, Item, Link, List, Root, Trigger };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Content, Link, List, Root, Trigger } from "./navigation-menu-parts.js";
|
|
1
|
+
import { Content, Item, Link, List, Root, Trigger } from "./navigation-menu-parts.js";
|
|
2
2
|
//#region src/navigation-menu.d.ts
|
|
3
3
|
declare const NavigationMenu: {
|
|
4
4
|
Root: typeof Root;
|
|
5
5
|
List: typeof List;
|
|
6
|
-
Item:
|
|
6
|
+
Item: typeof Item;
|
|
7
7
|
Trigger: typeof Trigger;
|
|
8
8
|
Content: typeof Content;
|
|
9
9
|
Link: typeof Link;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
1
|
import * as Nude from "@journ/nude/otp-input-parts";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
3
|
//#region src/otp-input-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Slot:
|
|
6
|
-
declare const Hidden:
|
|
4
|
+
declare const Root: Styled<typeof Nude.Root>;
|
|
5
|
+
declare const Slot: Styled<typeof Nude.Slot>;
|
|
6
|
+
declare const Hidden: typeof Nude.Hidden;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { Hidden, Root, Slot };
|
package/dist/otp-input.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Root, Slot } from "./otp-input-parts.js";
|
|
1
|
+
import { Hidden, Root, Slot } from "./otp-input-parts.js";
|
|
2
2
|
//#region src/otp-input.d.ts
|
|
3
3
|
declare const OtpInput: {
|
|
4
4
|
Root: typeof Root;
|
|
5
5
|
Slot: typeof Slot;
|
|
6
|
-
Hidden:
|
|
6
|
+
Hidden: typeof Hidden;
|
|
7
7
|
};
|
|
8
8
|
//#endregion
|
|
9
9
|
export { OtpInput };
|
package/dist/page-header.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/page-header.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const Title:
|
|
5
|
-
declare const Actions:
|
|
3
|
+
declare const Root: Styled<"header">;
|
|
4
|
+
declare const Title: Styled<"h1">;
|
|
5
|
+
declare const Actions: Styled<"div">;
|
|
6
6
|
declare const PageHeader: {
|
|
7
7
|
Root: typeof Root;
|
|
8
8
|
Title: typeof Title;
|
package/dist/page.d.ts
CHANGED
|
@@ -1,41 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { PageTint } from "./lib/tones.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
4
|
//#region src/page.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
yellow: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-yellow/10 to-bloom-yellow/10";
|
|
12
|
-
coral: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-coral/10 to-bloom-coral/10";
|
|
13
|
-
};
|
|
14
|
-
}, undefined, "min-h-dvh w-full", {
|
|
15
|
-
tone: {
|
|
16
|
-
canvas: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark";
|
|
17
|
-
ink: "bg-bloom-ink text-bloom-paper";
|
|
18
|
-
indigo: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-indigo/10 to-bloom-indigo/10";
|
|
19
|
-
mint: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-mint/10 to-bloom-mint/10";
|
|
20
|
-
sky: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-sky/10 to-bloom-sky/10";
|
|
21
|
-
yellow: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-yellow/10 to-bloom-yellow/10";
|
|
22
|
-
coral: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-coral/10 to-bloom-coral/10";
|
|
23
|
-
};
|
|
24
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
25
|
-
tone: {
|
|
26
|
-
canvas: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark";
|
|
27
|
-
ink: "bg-bloom-ink text-bloom-paper";
|
|
28
|
-
indigo: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-indigo/10 to-bloom-indigo/10";
|
|
29
|
-
mint: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-mint/10 to-bloom-mint/10";
|
|
30
|
-
sky: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-sky/10 to-bloom-sky/10";
|
|
31
|
-
yellow: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-yellow/10 to-bloom-yellow/10";
|
|
32
|
-
coral: "bg-bloom-canvas scheme-light dark:bg-bloom-canvas-dark dark:scheme-dark font-bloom-display text-bloom-foreground dark:text-bloom-foreground-dark bg-linear-to-b from-bloom-coral/10 to-bloom-coral/10";
|
|
33
|
-
};
|
|
34
|
-
}, undefined>>;
|
|
35
|
-
type RootProps = ComponentPropsWithRef<'div'> & VariantProps<typeof pageRoot>;
|
|
36
|
-
declare const Root: ({ tone, className, ...props }: RootProps) => import("react").JSX.Element;
|
|
37
|
-
declare const Content: ({ className, ...props }: ComponentPropsWithRef<'main'>) => import("react").JSX.Element;
|
|
38
|
-
declare const Footer: ({ className, ...props }: ComponentPropsWithRef<'div'>) => import("react").JSX.Element;
|
|
5
|
+
type PageTone = "canvas" | "ink" | PageTint;
|
|
6
|
+
type RootProps = ComponentPropsWithRef<"div"> & {
|
|
7
|
+
tone?: PageTone;
|
|
8
|
+
};
|
|
9
|
+
declare const Root: ({ tone, className, ...props }: RootProps) => JSX.Element;
|
|
10
|
+
declare const Content: Styled<"main">;
|
|
11
|
+
declare const Footer: Styled<"div">;
|
|
39
12
|
declare const Page: {
|
|
40
13
|
Root: typeof Root;
|
|
41
14
|
Content: typeof Content;
|
package/dist/pagination.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/pagination.d.ts
|
|
3
|
-
declare const Root:
|
|
4
|
-
declare const List:
|
|
5
|
-
declare const Previous:
|
|
6
|
-
declare const Next:
|
|
7
|
-
declare const Page:
|
|
8
|
-
declare const Gap:
|
|
3
|
+
declare const Root: Styled<"nav">;
|
|
4
|
+
declare const List: Styled<"div">;
|
|
5
|
+
declare const Previous: Styled<"a">;
|
|
6
|
+
declare const Next: Styled<"a">;
|
|
7
|
+
declare const Page: Styled<"a">;
|
|
8
|
+
declare const Gap: Styled<"span">;
|
|
9
9
|
declare const Pagination: {
|
|
10
10
|
Root: typeof Root;
|
|
11
11
|
Previous: typeof Previous;
|
package/dist/pill-select.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Styled } from "@journ/nude/styled";
|
|
2
2
|
//#region src/pill-select.d.ts
|
|
3
|
-
declare const PillSelect:
|
|
3
|
+
declare const PillSelect: Styled<"select">;
|
|
4
4
|
//#endregion
|
|
5
5
|
export { PillSelect };
|
package/dist/popover-parts.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ComponentPropsWithRef } from "react";
|
|
2
1
|
import * as Nude from "@journ/nude/popover-parts";
|
|
2
|
+
import { Styled } from "@journ/nude/styled";
|
|
3
3
|
//#region src/popover-parts.d.ts
|
|
4
|
-
declare const Root:
|
|
5
|
-
declare const Trigger:
|
|
6
|
-
declare const Close:
|
|
7
|
-
declare const Content:
|
|
4
|
+
declare const Root: typeof Nude.Root;
|
|
5
|
+
declare const Trigger: typeof Nude.Trigger;
|
|
6
|
+
declare const Close: typeof Nude.Close;
|
|
7
|
+
declare const Content: Styled<typeof Nude.Content>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { Close, Content, Root, Trigger };
|
package/dist/popover.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Content } from "./popover-parts.js";
|
|
1
|
+
import { Close, Content, Root, Trigger } from "./popover-parts.js";
|
|
2
2
|
//#region src/popover.d.ts
|
|
3
3
|
declare const Popover: {
|
|
4
|
-
Root:
|
|
5
|
-
Trigger:
|
|
4
|
+
Root: typeof Root;
|
|
5
|
+
Trigger: typeof Trigger;
|
|
6
6
|
Content: typeof Content;
|
|
7
|
-
Close:
|
|
7
|
+
Close: typeof Close;
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
10
10
|
export { Popover };
|
package/dist/progress-parts.d.ts
CHANGED
|
@@ -1,38 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ComponentPropsWithRef } from "react";
|
|
1
|
+
import { Fill } from "./lib/tones.js";
|
|
2
|
+
import { ComponentPropsWithRef, JSX } from "react";
|
|
3
3
|
import * as Nude from "@journ/nude/progress-parts";
|
|
4
4
|
//#region src/progress-parts.d.ts
|
|
5
5
|
type RootProps = Nude.ProgressProps;
|
|
6
|
-
declare const Root: ({ className, ...props }: RootProps) =>
|
|
7
|
-
|
|
8
|
-
tone
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
readonly yellow: 'bg-bloom-yellow';
|
|
12
|
-
readonly indigo: 'bg-bloom-indigo';
|
|
13
|
-
readonly mint: 'bg-bloom-mint';
|
|
14
|
-
readonly sky: 'bg-bloom-sky';
|
|
15
|
-
};
|
|
16
|
-
}, undefined, "size-full transition-transform duration-300 ease-out", {
|
|
17
|
-
tone: {
|
|
18
|
-
readonly neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark";
|
|
19
|
-
readonly coral: 'bg-bloom-coral';
|
|
20
|
-
readonly yellow: 'bg-bloom-yellow';
|
|
21
|
-
readonly indigo: 'bg-bloom-indigo';
|
|
22
|
-
readonly mint: 'bg-bloom-mint';
|
|
23
|
-
readonly sky: 'bg-bloom-sky';
|
|
24
|
-
};
|
|
25
|
-
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
26
|
-
tone: {
|
|
27
|
-
readonly neutral: "bg-bloom-foreground dark:bg-bloom-foreground-dark";
|
|
28
|
-
readonly coral: 'bg-bloom-coral';
|
|
29
|
-
readonly yellow: 'bg-bloom-yellow';
|
|
30
|
-
readonly indigo: 'bg-bloom-indigo';
|
|
31
|
-
readonly mint: 'bg-bloom-mint';
|
|
32
|
-
readonly sky: 'bg-bloom-sky';
|
|
33
|
-
};
|
|
34
|
-
}, undefined>>;
|
|
35
|
-
type IndicatorProps = ComponentPropsWithRef<typeof Nude.Indicator> & VariantProps<typeof indicator>;
|
|
36
|
-
declare const Indicator: ({ tone, className, ...props }: IndicatorProps) => import("react").JSX.Element;
|
|
6
|
+
declare const Root: ({ className, ...props }: RootProps) => JSX.Element;
|
|
7
|
+
type IndicatorProps = ComponentPropsWithRef<typeof Nude.Indicator> & {
|
|
8
|
+
tone?: Fill;
|
|
9
|
+
};
|
|
10
|
+
declare const Indicator: ({ tone, className, ...props }: IndicatorProps) => JSX.Element;
|
|
37
11
|
//#endregion
|
|
38
12
|
export { Indicator, type RootProps as ProgressProps, Root };
|