@psnext/design-system 2.1.0 → 2.3.0
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 -3
- package/dist/Header.cjs +90 -115
- package/dist/Header.cjs.map +1 -1
- package/dist/Header.js +86 -117
- package/dist/Header.js.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index10.d.cts +6 -6
- package/dist/index10.d.cts.map +1 -1
- package/dist/index10.d.ts +2 -2
- package/dist/index11.d.cts +3 -3
- package/dist/index11.d.cts.map +1 -1
- package/dist/index11.d.ts +3 -3
- package/dist/index12.d.cts +12 -12
- package/dist/index12.d.ts +11 -11
- package/dist/index13.d.cts +6 -6
- package/dist/index13.d.ts +6 -6
- package/dist/index14.d.cts +5 -5
- package/dist/index14.d.ts +5 -5
- package/dist/index15.d.cts +3 -3
- package/dist/index15.d.ts +3 -3
- package/dist/index16.d.cts +2 -2
- package/dist/index16.d.ts +2 -2
- package/dist/index17.d.cts +4 -4
- package/dist/index17.d.ts +4 -4
- package/dist/index18.d.cts +11 -11
- package/dist/index18.d.cts.map +1 -1
- package/dist/index18.d.ts +11 -11
- package/dist/index19.d.cts +10 -10
- package/dist/index19.d.ts +10 -10
- package/dist/index2.d.cts +8 -8
- package/dist/index2.d.ts +8 -8
- package/dist/index20.d.cts +16 -16
- package/dist/index20.d.ts +16 -16
- package/dist/index21.d.cts +4 -4
- package/dist/index21.d.ts +4 -4
- package/dist/index22.d.cts +11 -11
- package/dist/index22.d.ts +11 -11
- package/dist/index23.d.cts +16 -16
- package/dist/index23.d.ts +16 -16
- package/dist/index24.d.cts +10 -10
- package/dist/index24.d.cts.map +1 -1
- package/dist/index24.d.ts +10 -10
- package/dist/index25.d.cts +2 -2
- package/dist/index25.d.ts +2 -2
- package/dist/index26.d.cts +13 -13
- package/dist/index26.d.cts.map +1 -1
- package/dist/index26.d.ts +13 -13
- package/dist/index27.d.cts +7 -7
- package/dist/index27.d.cts.map +1 -1
- package/dist/index27.d.ts +7 -7
- package/dist/index28.d.cts +5 -5
- package/dist/index28.d.cts.map +1 -1
- package/dist/index28.d.ts +4 -4
- package/dist/index29.d.cts +4 -4
- package/dist/index29.d.cts.map +1 -1
- package/dist/index29.d.ts +4 -4
- package/dist/index3.d.cts +13 -13
- package/dist/index3.d.ts +13 -13
- package/dist/index30.d.cts +6 -6
- package/dist/index30.d.cts.map +1 -1
- package/dist/index30.d.ts +5 -5
- package/dist/index31.d.cts +4 -4
- package/dist/index31.d.cts.map +1 -1
- package/dist/index31.d.ts +5 -5
- package/dist/index32.d.cts +5 -5
- package/dist/index32.d.cts.map +1 -1
- package/dist/index32.d.ts +5 -5
- package/dist/index33.d.cts +10 -10
- package/dist/index33.d.cts.map +1 -1
- package/dist/index33.d.ts +10 -10
- package/dist/index34.d.cts +5 -5
- package/dist/index34.d.cts.map +1 -1
- package/dist/index34.d.ts +5 -5
- package/dist/index35.d.cts +16 -16
- package/dist/index35.d.cts.map +1 -1
- package/dist/index35.d.ts +16 -16
- package/dist/index35.d.ts.map +1 -1
- package/dist/index36.d.cts +3 -3
- package/dist/index36.d.cts.map +1 -1
- package/dist/index36.d.ts +3 -3
- package/dist/index37.d.cts +4 -4
- package/dist/index37.d.cts.map +1 -1
- package/dist/index37.d.ts +4 -4
- package/dist/index38.d.cts +2 -2
- package/dist/index38.d.cts.map +1 -1
- package/dist/index38.d.ts +2 -2
- package/dist/index39.d.cts +17 -17
- package/dist/index39.d.ts +17 -17
- package/dist/index4.d.cts +2 -2
- package/dist/index4.d.cts.map +1 -1
- package/dist/index4.d.ts +2 -2
- package/dist/index40.d.cts +5 -5
- package/dist/index40.d.cts.map +1 -1
- package/dist/index40.d.ts +5 -5
- package/dist/index41.d.cts +11 -11
- package/dist/index41.d.cts.map +1 -1
- package/dist/index41.d.ts +11 -11
- package/dist/index41.d.ts.map +1 -1
- package/dist/index42.d.cts +8 -8
- package/dist/index42.d.cts.map +1 -1
- package/dist/index42.d.ts +8 -8
- package/dist/index42.d.ts.map +1 -1
- package/dist/index43.d.cts +9 -9
- package/dist/index43.d.cts.map +1 -1
- package/dist/index43.d.ts +9 -9
- package/dist/index43.d.ts.map +1 -1
- package/dist/index45.d.cts +8 -8
- package/dist/index45.d.cts.map +1 -1
- package/dist/index45.d.ts +8 -8
- package/dist/index45.d.ts.map +1 -1
- package/dist/index46.d.cts +2 -2
- package/dist/index46.d.cts.map +1 -1
- package/dist/index46.d.ts +2 -2
- package/dist/index47.d.cts +4 -4
- package/dist/index47.d.ts +4 -4
- package/dist/index48.d.cts +4 -4
- package/dist/index48.d.cts.map +1 -1
- package/dist/index48.d.ts +4 -4
- package/dist/index49.d.cts +3 -3
- package/dist/index49.d.cts.map +1 -1
- package/dist/index49.d.ts +3 -3
- package/dist/index5.d.cts +7 -7
- package/dist/index5.d.ts +7 -7
- package/dist/index50.d.cts +11 -11
- package/dist/index50.d.cts.map +1 -1
- package/dist/index50.d.ts +11 -11
- package/dist/index51.d.cts +9 -9
- package/dist/index51.d.cts.map +1 -1
- package/dist/index51.d.ts +9 -9
- package/dist/index51.d.ts.map +1 -1
- package/dist/index52.d.cts +5 -5
- package/dist/index52.d.ts +5 -5
- package/dist/index53.d.cts +27 -27
- package/dist/index53.d.cts.map +1 -1
- package/dist/index53.d.ts +27 -27
- package/dist/index53.d.ts.map +1 -1
- package/dist/index54.d.cts +5 -5
- package/dist/index54.d.cts.map +1 -1
- package/dist/index54.d.ts +5 -5
- package/dist/index55.d.cts +2 -2
- package/dist/index55.d.ts +2 -2
- package/dist/index56.d.cts +2 -2
- package/dist/index56.d.ts +2 -2
- package/dist/index57.d.cts +2 -2
- package/dist/index57.d.cts.map +1 -1
- package/dist/index57.d.ts +2 -2
- package/dist/index57.d.ts.map +1 -1
- package/dist/index58.d.cts +4 -4
- package/dist/index58.d.cts.map +1 -1
- package/dist/index58.d.ts +4 -4
- package/dist/index59.d.cts +9 -9
- package/dist/index59.d.ts +9 -9
- package/dist/index6.d.cts +5 -5
- package/dist/index6.d.ts +5 -5
- package/dist/index6.d.ts.map +1 -1
- package/dist/index60.d.cts +9 -9
- package/dist/index60.d.cts.map +1 -1
- package/dist/index60.d.ts +9 -9
- package/dist/index61.d.cts +7 -7
- package/dist/index61.d.cts.map +1 -1
- package/dist/index61.d.ts +4 -4
- package/dist/index62.d.cts +4 -4
- package/dist/index62.d.cts.map +1 -1
- package/dist/index62.d.ts +4 -4
- package/dist/index63.d.cts +2 -2
- package/dist/index63.d.cts.map +1 -1
- package/dist/index63.d.ts +2 -2
- package/dist/index64.d.cts +5 -5
- package/dist/index64.d.cts.map +1 -1
- package/dist/index64.d.ts +5 -5
- package/dist/index65.d.cts +3 -3
- package/dist/index65.d.ts +3 -3
- package/dist/index66.d.cts +4 -4
- package/dist/index66.d.cts.map +1 -1
- package/dist/index66.d.ts +2 -2
- package/dist/index66.d.ts.map +1 -1
- package/dist/index67.d.cts +2 -2
- package/dist/index67.d.cts.map +1 -1
- package/dist/index67.d.ts +2 -2
- package/dist/index67.d.ts.map +1 -1
- package/dist/index68.d.cts +7 -7
- package/dist/index68.d.cts.map +1 -1
- package/dist/index68.d.ts +4 -4
- package/dist/index68.d.ts.map +1 -1
- package/dist/index69.d.cts +7 -7
- package/dist/index69.d.cts.map +1 -1
- package/dist/index69.d.ts +4 -4
- package/dist/index7.d.cts +8 -8
- package/dist/index7.d.ts +8 -8
- package/dist/index71.d.cts +37 -21
- package/dist/index71.d.cts.map +1 -1
- package/dist/index71.d.ts +37 -21
- package/dist/index71.d.ts.map +1 -1
- package/dist/index8.d.cts +4 -4
- package/dist/index8.d.cts.map +1 -1
- package/dist/index8.d.ts +4 -4
- package/dist/index9.d.cts +2 -2
- package/dist/index9.d.cts.map +1 -1
- package/dist/index9.d.ts +2 -2
- package/dist/index9.d.ts.map +1 -1
- package/dist/patterns/DataTable/index.d.cts +3 -3
- package/dist/patterns/DataTable/index.d.cts.map +1 -1
- package/dist/patterns/DataTable/index.d.ts +3 -3
- package/dist/patterns/Footer/index.d.cts +7 -7
- package/dist/patterns/Footer/index.d.cts.map +1 -1
- package/dist/patterns/Footer/index.d.ts +7 -7
- package/dist/patterns/Footer/index.d.ts.map +1 -1
- package/dist/patterns/Header/index.cjs +1 -0
- package/dist/patterns/Header/index.d.cts +2 -2
- package/dist/patterns/Header/index.d.ts +2 -2
- package/dist/patterns/Header/index.js +2 -2
- package/dist/patterns/MediaObject/index.d.cts +12 -12
- package/dist/patterns/MediaObject/index.d.cts.map +1 -1
- package/dist/patterns/MediaObject/index.d.ts +11 -11
- package/dist/patterns/SectionCard/index.d.cts +2 -2
- package/dist/patterns/SectionCard/index.d.cts.map +1 -1
- package/dist/patterns/SectionCard/index.d.ts +2 -2
- package/dist/patterns/SectionCard/index.d.ts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.cts +2 -2
- package/dist/patterns/SectionHeading/index.d.cts.map +1 -1
- package/dist/patterns/SectionHeading/index.d.ts +2 -2
- package/dist/patterns/SectionHeading/index.d.ts.map +1 -1
- package/dist/patterns/index.cjs +1 -0
- package/dist/patterns/index.d.cts +2 -2
- package/dist/patterns/index.d.ts +2 -2
- package/dist/patterns/index.js +2 -2
- package/package.json +1 -1
package/dist/index23.d.ts
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DropdownMenu } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime180 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/DropdownMenu/DropdownMenu.d.ts
|
|
6
6
|
/** Root provider for a dropdown menu; holds open state and wires the trigger to its content. */
|
|
7
7
|
declare function DropdownMenu$1({
|
|
8
8
|
...props
|
|
9
|
-
}: React.ComponentProps<typeof DropdownMenu.Root>):
|
|
9
|
+
}: React.ComponentProps<typeof DropdownMenu.Root>): react_jsx_runtime180.JSX.Element;
|
|
10
10
|
/** Renders the menu into a portal so it escapes overflow/stacking contexts. */
|
|
11
11
|
declare function DropdownMenuPortal({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof DropdownMenu.Portal>):
|
|
13
|
+
}: React.ComponentProps<typeof DropdownMenu.Portal>): react_jsx_runtime180.JSX.Element;
|
|
14
14
|
/** The control (usually a button) that toggles the menu open and closed. */
|
|
15
15
|
declare function DropdownMenuTrigger({
|
|
16
16
|
...props
|
|
17
|
-
}: React.ComponentProps<typeof DropdownMenu.Trigger>):
|
|
17
|
+
}: React.ComponentProps<typeof DropdownMenu.Trigger>): react_jsx_runtime180.JSX.Element;
|
|
18
18
|
/** The floating surface that holds the menu items; portalled and animated on open/close. */
|
|
19
19
|
declare function DropdownMenuContent({
|
|
20
20
|
className,
|
|
21
21
|
/** Gap in pixels between the trigger and the content edge. */
|
|
22
22
|
sideOffset,
|
|
23
23
|
...props
|
|
24
|
-
}: React.ComponentProps<typeof DropdownMenu.Content>):
|
|
24
|
+
}: React.ComponentProps<typeof DropdownMenu.Content>): react_jsx_runtime180.JSX.Element;
|
|
25
25
|
/** Groups related menu items together for labelling and keyboard navigation. */
|
|
26
26
|
declare function DropdownMenuGroup({
|
|
27
27
|
...props
|
|
28
|
-
}: React.ComponentProps<typeof DropdownMenu.Group>):
|
|
28
|
+
}: React.ComponentProps<typeof DropdownMenu.Group>): react_jsx_runtime180.JSX.Element;
|
|
29
29
|
/** A selectable menu row that fires on click/Enter. */
|
|
30
30
|
declare function DropdownMenuItem({
|
|
31
31
|
className,
|
|
@@ -37,7 +37,7 @@ declare function DropdownMenuItem({
|
|
|
37
37
|
}: React.ComponentProps<typeof DropdownMenu.Item> & {
|
|
38
38
|
inset?: boolean;
|
|
39
39
|
variant?: "default" | "destructive";
|
|
40
|
-
}):
|
|
40
|
+
}): react_jsx_runtime180.JSX.Element;
|
|
41
41
|
/** A menu row with a toggleable checkmark indicator for boolean options. */
|
|
42
42
|
declare function DropdownMenuCheckboxItem({
|
|
43
43
|
className,
|
|
@@ -45,17 +45,17 @@ declare function DropdownMenuCheckboxItem({
|
|
|
45
45
|
/** Whether the checkbox indicator is shown as checked. */
|
|
46
46
|
checked,
|
|
47
47
|
...props
|
|
48
|
-
}: React.ComponentProps<typeof DropdownMenu.CheckboxItem>):
|
|
48
|
+
}: React.ComponentProps<typeof DropdownMenu.CheckboxItem>): react_jsx_runtime180.JSX.Element;
|
|
49
49
|
/** Wraps radio items so only one option in the group can be selected at a time. */
|
|
50
50
|
declare function DropdownMenuRadioGroup({
|
|
51
51
|
...props
|
|
52
|
-
}: React.ComponentProps<typeof DropdownMenu.RadioGroup>):
|
|
52
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioGroup>): react_jsx_runtime180.JSX.Element;
|
|
53
53
|
/** A single mutually-exclusive option within a `DropdownMenuRadioGroup`. */
|
|
54
54
|
declare function DropdownMenuRadioItem({
|
|
55
55
|
className,
|
|
56
56
|
children,
|
|
57
57
|
...props
|
|
58
|
-
}: React.ComponentProps<typeof DropdownMenu.RadioItem>):
|
|
58
|
+
}: React.ComponentProps<typeof DropdownMenu.RadioItem>): react_jsx_runtime180.JSX.Element;
|
|
59
59
|
/** A non-interactive heading used to title a group of menu items. */
|
|
60
60
|
declare function DropdownMenuLabel({
|
|
61
61
|
className,
|
|
@@ -64,21 +64,21 @@ declare function DropdownMenuLabel({
|
|
|
64
64
|
...props
|
|
65
65
|
}: React.ComponentProps<typeof DropdownMenu.Label> & {
|
|
66
66
|
inset?: boolean;
|
|
67
|
-
}):
|
|
67
|
+
}): react_jsx_runtime180.JSX.Element;
|
|
68
68
|
/** A thin divider line used to visually separate groups of menu items. */
|
|
69
69
|
declare function DropdownMenuSeparator({
|
|
70
70
|
className,
|
|
71
71
|
...props
|
|
72
|
-
}: React.ComponentProps<typeof DropdownMenu.Separator>):
|
|
72
|
+
}: React.ComponentProps<typeof DropdownMenu.Separator>): react_jsx_runtime180.JSX.Element;
|
|
73
73
|
/** Right-aligned hint for an item's keyboard shortcut (e.g. ⇧⌘P). */
|
|
74
74
|
declare function DropdownMenuShortcut({
|
|
75
75
|
className,
|
|
76
76
|
...props
|
|
77
|
-
}: React.ComponentProps<"span">):
|
|
77
|
+
}: React.ComponentProps<"span">): react_jsx_runtime180.JSX.Element;
|
|
78
78
|
/** Root for a nested submenu; holds the sub-trigger and its sub-content. */
|
|
79
79
|
declare function DropdownMenuSub({
|
|
80
80
|
...props
|
|
81
|
-
}: React.ComponentProps<typeof DropdownMenu.Sub>):
|
|
81
|
+
}: React.ComponentProps<typeof DropdownMenu.Sub>): react_jsx_runtime180.JSX.Element;
|
|
82
82
|
/** The item that opens a nested submenu, shown with a trailing chevron. */
|
|
83
83
|
declare function DropdownMenuSubTrigger({
|
|
84
84
|
className,
|
|
@@ -88,12 +88,12 @@ declare function DropdownMenuSubTrigger({
|
|
|
88
88
|
...props
|
|
89
89
|
}: React.ComponentProps<typeof DropdownMenu.SubTrigger> & {
|
|
90
90
|
inset?: boolean;
|
|
91
|
-
}):
|
|
91
|
+
}): react_jsx_runtime180.JSX.Element;
|
|
92
92
|
/** The floating surface for a nested submenu's items. */
|
|
93
93
|
declare function DropdownMenuSubContent({
|
|
94
94
|
className,
|
|
95
95
|
...props
|
|
96
|
-
}: React.ComponentProps<typeof DropdownMenu.SubContent>):
|
|
96
|
+
}: React.ComponentProps<typeof DropdownMenu.SubContent>): react_jsx_runtime180.JSX.Element;
|
|
97
97
|
//#endregion
|
|
98
98
|
export { DropdownMenuItem as a, DropdownMenuRadioGroup as c, DropdownMenuShortcut as d, DropdownMenuSub as f, DropdownMenuTrigger as h, DropdownMenuGroup as i, DropdownMenuRadioItem as l, DropdownMenuSubTrigger as m, DropdownMenuCheckboxItem as n, DropdownMenuLabel as o, DropdownMenuSubContent as p, DropdownMenuContent as r, DropdownMenuPortal as s, DropdownMenu$1 as t, DropdownMenuSeparator as u };
|
|
99
99
|
//# sourceMappingURL=index23.d.ts.map
|
package/dist/index24.d.cts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Empty/Empty.d.ts
|
|
7
7
|
declare const emptyVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | "background" | "outline-dashed" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
10
10
|
/** Centered empty-state container; compose Header/Media/Title/Description/Content inside it. */
|
|
11
11
|
declare function Empty({
|
|
12
12
|
className,
|
|
13
13
|
/** Container chrome: plain, bordered, muted background, or dashed border. */
|
|
14
14
|
variant,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>):
|
|
16
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>): react_jsx_runtime81.JSX.Element;
|
|
17
17
|
/** Groups the media, title, and description with centered alignment. */
|
|
18
18
|
declare function EmptyHeader({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<"div">):
|
|
21
|
+
}: React.ComponentProps<"div">): react_jsx_runtime81.JSX.Element;
|
|
22
22
|
declare const emptyMediaVariants: (props?: ({
|
|
23
23
|
variant?: "default" | "icon" | null | undefined;
|
|
24
|
-
} &
|
|
24
|
+
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
25
25
|
/** Holds the leading illustration or icon above the title. */
|
|
26
26
|
declare function EmptyMedia({
|
|
27
27
|
className,
|
|
28
28
|
/** Visual treatment: bare media or a rounded muted icon badge. */
|
|
29
29
|
variant,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>):
|
|
31
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime81.JSX.Element;
|
|
32
32
|
/** The primary heading line of the empty state. */
|
|
33
33
|
declare function EmptyTitle({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime81.JSX.Element;
|
|
37
37
|
/** Muted supporting copy explaining the empty state. */
|
|
38
38
|
declare function EmptyDescription({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"p">):
|
|
41
|
+
}: React.ComponentProps<"p">): react_jsx_runtime81.JSX.Element;
|
|
42
42
|
/** Slot for actions or follow-up content below the header. */
|
|
43
43
|
declare function EmptyContent({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<"div">):
|
|
46
|
+
}: React.ComponentProps<"div">): react_jsx_runtime81.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { EmptyMedia as a, EmptyHeader as i, EmptyContent as n, EmptyTitle as o, EmptyDescription as r, emptyVariants as s, Empty as t };
|
|
49
49
|
//# sourceMappingURL=index24.d.cts.map
|
package/dist/index24.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.d.cts","names":[],"sources":["../src/primitives/Empty/Empty.tsx"],"mappings":";;;;;;cAKM;;IAgBL,gCAAA,CAAA;;AApBmC,iBAuB3B,KAAA,CAHR;EAAA,SAAA;;SAGa;EAAA,GAAA;AAAA,CAAA,EAKX,KAAA,CAAM,cALK,CAAA,KAAA,CAAA,GAKmB,YALnB,CAAA,OAKuC,aALvC,CAAA,CAAA,EAKqD,
|
|
1
|
+
{"version":3,"file":"index24.d.cts","names":[],"sources":["../src/primitives/Empty/Empty.tsx"],"mappings":";;;;;;cAKM;;IAgBL,gCAAA,CAAA;;AApBmC,iBAuB3B,KAAA,CAHR;EAAA,SAAA;;SAGa;EAAA,GAAA;AAAA,CAAA,EAKX,KAAA,CAAM,cALK,CAAA,KAAA,CAAA,GAKmB,YALnB,CAAA,OAKuC,aALvC,CAAA,CAAA,EAKqD,mBAAA,CAAA,GAAA,CAAA,OALrD;;iBAiBL,WAAA,CAdP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAc4C,KAAA,CAAM,cAdlD,CAAA,KAAA,CAAA,CAAA,EAcuE,mBAAA,CAAA,GAAA,CAAA,OAdvE;cAwBI,kBAtBG,EAAA,CAAA,KAAwB,CAAxB,EAAA,CAAA;SAA4C,CAAA,EAAA,SAAA,GAAA,MAAA,GAAA,IAAA,GAAA,SAAA;IAmCpD,gCAAA,CAAA,SAnCgC,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;AAAkC,iBAsC1D,UAAA,CAtC0D;EAAA,SAAA;EAAA;SAY/C;EAAA,GAAA;AAAA,CAAA,EA+BjB,KAAA,CAAM,cA/BW,CAAA,KAAA,CAAA,GA+Ba,YA/Bb,CAAA,OA+BiC,kBA/BjC,CAAA,CAAA,EA+BoD,mBAAA,CAAA,GAAA,CAAA,OA/BpD;;iBA2CX,UAAA,CA3C2C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2CP,KAAA,CAAM,cA3CC,CAAA,KAAA,CAAA,CAAA,EA2CoB,mBAAA,CAAA,GAAA,CAAA,OA3CpB;;AAAqB,iBAsDhE,gBAAA,CAtDgE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAsDtB,KAAA,CAAM,cAtDgB,CAAA,GAAA,CAAA,CAAA,EAsDG,mBAAA,CAAA,GAAA,CAAA,OAtDH;AAAA;iBAoEhE,YAAA,CA1CU;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0C4B,KAAA,CAAM,cA1ClC,CAAA,KAAA,CAAA,CAAA,EA0CuD,mBAAA,CAAA,GAAA,CAAA,OA1CvD"}
|
package/dist/index24.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime332 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types27 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Empty/Empty.d.ts
|
|
7
7
|
declare const emptyVariants: (props?: ({
|
|
8
8
|
variant?: "default" | "outline" | "background" | "outline-dashed" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types27.ClassProp) | undefined) => string;
|
|
10
10
|
/** Centered empty-state container; compose Header/Media/Title/Description/Content inside it. */
|
|
11
11
|
declare function Empty({
|
|
12
12
|
className,
|
|
13
13
|
/** Container chrome: plain, bordered, muted background, or dashed border. */
|
|
14
14
|
variant,
|
|
15
15
|
...props
|
|
16
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>):
|
|
16
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyVariants>): react_jsx_runtime332.JSX.Element;
|
|
17
17
|
/** Groups the media, title, and description with centered alignment. */
|
|
18
18
|
declare function EmptyHeader({
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
|
-
}: React.ComponentProps<"div">):
|
|
21
|
+
}: React.ComponentProps<"div">): react_jsx_runtime332.JSX.Element;
|
|
22
22
|
declare const emptyMediaVariants: (props?: ({
|
|
23
23
|
variant?: "default" | "icon" | null | undefined;
|
|
24
|
-
} &
|
|
24
|
+
} & class_variance_authority_types27.ClassProp) | undefined) => string;
|
|
25
25
|
/** Holds the leading illustration or icon above the title. */
|
|
26
26
|
declare function EmptyMedia({
|
|
27
27
|
className,
|
|
28
28
|
/** Visual treatment: bare media or a rounded muted icon badge. */
|
|
29
29
|
variant,
|
|
30
30
|
...props
|
|
31
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>):
|
|
31
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): react_jsx_runtime332.JSX.Element;
|
|
32
32
|
/** The primary heading line of the empty state. */
|
|
33
33
|
declare function EmptyTitle({
|
|
34
34
|
className,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div">):
|
|
36
|
+
}: React.ComponentProps<"div">): react_jsx_runtime332.JSX.Element;
|
|
37
37
|
/** Muted supporting copy explaining the empty state. */
|
|
38
38
|
declare function EmptyDescription({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"p">):
|
|
41
|
+
}: React.ComponentProps<"p">): react_jsx_runtime332.JSX.Element;
|
|
42
42
|
/** Slot for actions or follow-up content below the header. */
|
|
43
43
|
declare function EmptyContent({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<"div">):
|
|
46
|
+
}: React.ComponentProps<"div">): react_jsx_runtime332.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { EmptyMedia as a, EmptyHeader as i, EmptyContent as n, EmptyTitle as o, EmptyDescription as r, emptyVariants as s, Empty as t };
|
|
49
49
|
//# sourceMappingURL=index24.d.ts.map
|
package/dist/index25.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
2
2
|
import { Label } from "radix-ui";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@ declare function Label$1({
|
|
|
11
11
|
}: React.ComponentProps<typeof Label.Root> & {
|
|
12
12
|
/** Layout of the label: `block` (default, left-aligned inline-flex) or `inline` (full-width, centered text). */
|
|
13
13
|
align?: "block" | "inline";
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime107.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Label$1 as t };
|
|
17
17
|
//# sourceMappingURL=index25.d.cts.map
|
package/dist/index25.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Label } from "radix-ui";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/primitives/Label/Label.d.ts
|
|
6
6
|
/** Accessible form label (Radix `Label.Root`) that ties caption text to a control and dims when the associated field is disabled. */
|
|
@@ -11,7 +11,7 @@ declare function Label$1({
|
|
|
11
11
|
}: React.ComponentProps<typeof Label.Root> & {
|
|
12
12
|
/** Layout of the label: `block` (default, left-aligned inline-flex) or `inline` (full-width, centered text). */
|
|
13
13
|
align?: "block" | "inline";
|
|
14
|
-
}):
|
|
14
|
+
}): react_jsx_runtime146.JSX.Element;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { Label$1 as t };
|
|
17
17
|
//# sourceMappingURL=index25.d.ts.map
|
package/dist/index26.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Label } from "./index25.cjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime69 from "react/jsx-runtime";
|
|
3
|
+
import * as class_variance_authority_types12 from "class-variance-authority/types";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as React from "react";
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ import * as React from "react";
|
|
|
9
9
|
declare function FieldSet({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<"fieldset">):
|
|
12
|
+
}: React.ComponentProps<"fieldset">): react_jsx_runtime69.JSX.Element;
|
|
13
13
|
/** The caption for a `FieldSet`, rendered as a `<legend>`. */
|
|
14
14
|
declare function FieldLegend({
|
|
15
15
|
className,
|
|
@@ -18,42 +18,42 @@ declare function FieldLegend({
|
|
|
18
18
|
}: React.ComponentProps<"legend"> & {
|
|
19
19
|
/** Visual scale of the legend: section header (`legend`) or smaller label-sized (`label`). */
|
|
20
20
|
variant?: "legend" | "label";
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime69.JSX.Element;
|
|
22
22
|
/** A container that stacks multiple `Field`s with group-level spacing and a responsive container. */
|
|
23
23
|
declare function FieldGroup({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<"div">):
|
|
26
|
+
}: React.ComponentProps<"div">): react_jsx_runtime69.JSX.Element;
|
|
27
27
|
declare const fieldVariants: (props?: ({
|
|
28
28
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
29
|
-
} &
|
|
29
|
+
} & class_variance_authority_types12.ClassProp) | undefined) => string;
|
|
30
30
|
/** A single labelled form field that lays out a control with its label, description, and error. */
|
|
31
31
|
declare function Field({
|
|
32
32
|
className,
|
|
33
33
|
/** Layout direction of the label/control: stacked (`vertical`), side-by-side (`horizontal`), or `responsive`. */
|
|
34
34
|
orientation,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>):
|
|
36
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime69.JSX.Element;
|
|
37
37
|
/** Stacks a label and description next to a control (used in horizontal checkbox/radio fields). */
|
|
38
38
|
declare function FieldContent({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"div">):
|
|
41
|
+
}: React.ComponentProps<"div">): react_jsx_runtime69.JSX.Element;
|
|
42
42
|
/** The accessible label for a field's control; wraps the `Label` primitive. */
|
|
43
43
|
declare function FieldLabel({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof Label>):
|
|
46
|
+
}: React.ComponentProps<typeof Label>): react_jsx_runtime69.JSX.Element;
|
|
47
47
|
/** A non-`<label>` title for a field group, styled like a label but not bound to a control. */
|
|
48
48
|
declare function FieldTitle({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"div">):
|
|
51
|
+
}: React.ComponentProps<"div">): react_jsx_runtime69.JSX.Element;
|
|
52
52
|
/** Muted helper text shown beneath (or beside) a field's control. */
|
|
53
53
|
declare function FieldDescription({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<"p">):
|
|
56
|
+
}: React.ComponentProps<"p">): react_jsx_runtime69.JSX.Element;
|
|
57
57
|
/** A horizontal divider between groups of fields, optionally with centered label content. */
|
|
58
58
|
declare function FieldSeparator({
|
|
59
59
|
children,
|
|
@@ -62,7 +62,7 @@ declare function FieldSeparator({
|
|
|
62
62
|
}: React.ComponentProps<"div"> & {
|
|
63
63
|
/** Optional label rendered centered over the divider line. */
|
|
64
64
|
children?: React.ReactNode;
|
|
65
|
-
}):
|
|
65
|
+
}): react_jsx_runtime69.JSX.Element;
|
|
66
66
|
/** A destructive `role="alert"` message for a field, rendered from `children` or a list of `errors`. */
|
|
67
67
|
declare function FieldError({
|
|
68
68
|
className,
|
|
@@ -74,7 +74,7 @@ declare function FieldError({
|
|
|
74
74
|
errors?: Array<{
|
|
75
75
|
message?: string;
|
|
76
76
|
} | undefined>;
|
|
77
|
-
}):
|
|
77
|
+
}): react_jsx_runtime69.JSX.Element | null;
|
|
78
78
|
//#endregion
|
|
79
79
|
export { FieldGroup as a, FieldSeparator as c, FieldError as i, FieldSet as l, FieldContent as n, FieldLabel as o, FieldDescription as r, FieldLegend as s, Field as t, FieldTitle as u };
|
|
80
80
|
//# sourceMappingURL=index26.d.cts.map
|
package/dist/index26.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index26.d.cts","names":[],"sources":["../src/primitives/Field/Field.tsx"],"mappings":";;;;;;;;iBAWS,QAAA;;;GAAkC,KAAA,CAAM,6BAA0B,
|
|
1
|
+
{"version":3,"file":"index26.d.cts","names":[],"sources":["../src/primitives/Field/Field.tsx"],"mappings":";;;;;;;;iBAWS,QAAA;;;GAAkC,KAAA,CAAM,6BAA0B,mBAAA,CAAA,GAAA,CAAA;;iBAelE,WAAA;;;;GAIN,KAAA,CAAM;EAnBA;EAAQ,OAAA,CAAA,EAAA,QAAA,GAAA,OAAA;IAsBhB,mBAAA,CAAA,GAAA,CAAA,OAtBmB;;iBAuCX,UAAA,CAvCkE;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuC9B,KAAA,CAAM,cAvCwB,CAAA,KAAA,CAAA,CAAA,EAuCH,mBAAA,CAAA,GAAA,CAAA,OAvCG;AAAA,cAoDrE,aApDqE,EAAA,CAAA,KAevD,CAfuD,EAAA,CAAA;EAelE,WAAA,CAAA,EAAW,YAAA,GAAA,UAAA,GAAA,YAAA,GAAA,IAAA,GAAA,SAAA;CAAA,GAwDlB,gCAAA,CAAA,SAxDkB,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;iBA2DX,KAAA,CAzDP;EAAA,SAAA;;aAKD;EAAA,GAAA;AAAA,CAAA,EAyDE,KAAA,CAAM,cAzDR,CAAA,KAAA,CAAA,GAyDgC,YAzDhC,CAAA,OAyDoD,aAzDpD,CAAA,CAAA,EAyDkE,mBAAA,CAAA,GAAA,CAAA,OAzDlE;AAAA;AAAA,iBAsEQ,YAAA,CArDU;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqD4B,KAAA,CAAM,cArDlC,CAAA,KAAA,CAAA,CAAA,EAqDuD,mBAAA,CAAA,GAAA,CAAA,OArDvD;;iBAgEV,UAAA,CAhEa;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgEuB,KAAA,CAAM,cAhE7B,CAAA,OAgEmD,KAhEnD,CAAA,CAAA,EAgEyD,mBAAA,CAAA,GAAA,CAAA,OAhEzD;;iBAgFb,UAAA,CAhF+D;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgF3B,KAAA,CAAM,cAhFqB,CAAA,KAAA,CAAA,CAAA,EAgFA,mBAAA,CAAA,GAAA,CAAA,OAhFA;AAAA;AAAA,iBA8F/D,gBAAA,CA9DP;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA8DiD,KAAA,CAAM,cA9DvD,CAAA,GAAA,CAAA,CAAA,EA8D0E,mBAAA,CAAA,GAAA,CAAA,OA9D1E;;iBA8EO,cAAA,CA3EK;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;CAAA,EA+EX,KAAA,CAAM,cA/EK,CAAA,KAAA,CAAA,GAAA;;UAGZ,CAAA,EA8EW,KAAA,CAAM,SA9EjB;IA+ED,mBAAA,CAAA,GAAA,CAAA,OA7EQ;;iBAsGA,UAAA,CAtGwB;EAAA,SAAA;EAAA,QAAA;EAAA,MAAA;EAAA,GAAA;CAAA,EA2G9B,KAAA,CAAM,cA3GwB,CAAA,KAAA,CAAA,GAAA;;EAAkC,MAAA,CAAA,EA6GxD,KA7GwD,CAAA;IAa1D,OAAA,CAAA,EAAA,MAAY;EAAA,CAAA,GAAA,SAAA,CAAA;IAiGpB,mBAAA,CAAA,GAAA,CAAA,OAAA,GAjGuB,IAAA"}
|
package/dist/index26.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as Label } from "./index25.js";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime169 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as class_variance_authority_types15 from "class-variance-authority/types";
|
|
6
6
|
|
|
7
7
|
//#region src/primitives/Field/Field.d.ts
|
|
8
8
|
/** A `<fieldset>` wrapper that groups related fields with consistent spacing. */
|
|
9
9
|
declare function FieldSet({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React.ComponentProps<"fieldset">):
|
|
12
|
+
}: React.ComponentProps<"fieldset">): react_jsx_runtime169.JSX.Element;
|
|
13
13
|
/** The caption for a `FieldSet`, rendered as a `<legend>`. */
|
|
14
14
|
declare function FieldLegend({
|
|
15
15
|
className,
|
|
@@ -18,42 +18,42 @@ declare function FieldLegend({
|
|
|
18
18
|
}: React.ComponentProps<"legend"> & {
|
|
19
19
|
/** Visual scale of the legend: section header (`legend`) or smaller label-sized (`label`). */
|
|
20
20
|
variant?: "legend" | "label";
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime169.JSX.Element;
|
|
22
22
|
/** A container that stacks multiple `Field`s with group-level spacing and a responsive container. */
|
|
23
23
|
declare function FieldGroup({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React.ComponentProps<"div">):
|
|
26
|
+
}: React.ComponentProps<"div">): react_jsx_runtime169.JSX.Element;
|
|
27
27
|
declare const fieldVariants: (props?: ({
|
|
28
28
|
orientation?: "vertical" | "horizontal" | "responsive" | null | undefined;
|
|
29
|
-
} &
|
|
29
|
+
} & class_variance_authority_types15.ClassProp) | undefined) => string;
|
|
30
30
|
/** A single labelled form field that lays out a control with its label, description, and error. */
|
|
31
31
|
declare function Field({
|
|
32
32
|
className,
|
|
33
33
|
/** Layout direction of the label/control: stacked (`vertical`), side-by-side (`horizontal`), or `responsive`. */
|
|
34
34
|
orientation,
|
|
35
35
|
...props
|
|
36
|
-
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>):
|
|
36
|
+
}: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): react_jsx_runtime169.JSX.Element;
|
|
37
37
|
/** Stacks a label and description next to a control (used in horizontal checkbox/radio fields). */
|
|
38
38
|
declare function FieldContent({
|
|
39
39
|
className,
|
|
40
40
|
...props
|
|
41
|
-
}: React.ComponentProps<"div">):
|
|
41
|
+
}: React.ComponentProps<"div">): react_jsx_runtime169.JSX.Element;
|
|
42
42
|
/** The accessible label for a field's control; wraps the `Label` primitive. */
|
|
43
43
|
declare function FieldLabel({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React.ComponentProps<typeof Label>):
|
|
46
|
+
}: React.ComponentProps<typeof Label>): react_jsx_runtime169.JSX.Element;
|
|
47
47
|
/** A non-`<label>` title for a field group, styled like a label but not bound to a control. */
|
|
48
48
|
declare function FieldTitle({
|
|
49
49
|
className,
|
|
50
50
|
...props
|
|
51
|
-
}: React.ComponentProps<"div">):
|
|
51
|
+
}: React.ComponentProps<"div">): react_jsx_runtime169.JSX.Element;
|
|
52
52
|
/** Muted helper text shown beneath (or beside) a field's control. */
|
|
53
53
|
declare function FieldDescription({
|
|
54
54
|
className,
|
|
55
55
|
...props
|
|
56
|
-
}: React.ComponentProps<"p">):
|
|
56
|
+
}: React.ComponentProps<"p">): react_jsx_runtime169.JSX.Element;
|
|
57
57
|
/** A horizontal divider between groups of fields, optionally with centered label content. */
|
|
58
58
|
declare function FieldSeparator({
|
|
59
59
|
children,
|
|
@@ -62,7 +62,7 @@ declare function FieldSeparator({
|
|
|
62
62
|
}: React.ComponentProps<"div"> & {
|
|
63
63
|
/** Optional label rendered centered over the divider line. */
|
|
64
64
|
children?: React.ReactNode;
|
|
65
|
-
}):
|
|
65
|
+
}): react_jsx_runtime169.JSX.Element;
|
|
66
66
|
/** A destructive `role="alert"` message for a field, rendered from `children` or a list of `errors`. */
|
|
67
67
|
declare function FieldError({
|
|
68
68
|
className,
|
|
@@ -74,7 +74,7 @@ declare function FieldError({
|
|
|
74
74
|
errors?: Array<{
|
|
75
75
|
message?: string;
|
|
76
76
|
} | undefined>;
|
|
77
|
-
}):
|
|
77
|
+
}): react_jsx_runtime169.JSX.Element | null;
|
|
78
78
|
//#endregion
|
|
79
79
|
export { FieldGroup as a, FieldSeparator as c, FieldError as i, FieldSet as l, FieldContent as n, FieldLabel as o, FieldDescription as r, FieldLegend as s, Field as t, FieldTitle as u };
|
|
80
80
|
//# sourceMappingURL=index26.d.ts.map
|
package/dist/index27.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as FieldError, o as FieldLabel, r as FieldDescription, t as Field } from "./index26.cjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import * as react_hook_form0 from "react-hook-form";
|
|
@@ -30,7 +30,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
|
|
|
30
30
|
/** Connects a single input to the form via RHF's `Controller`, exposing `field` to its render prop. */
|
|
31
31
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
32
32
|
...props
|
|
33
|
-
}: ControllerProps<TFieldValues, TName>) =>
|
|
33
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime87.JSX.Element;
|
|
34
34
|
/** Hook for form pieces to read the current field's id, name, ARIA ids, and validation state. */
|
|
35
35
|
declare const useFormField: () => {
|
|
36
36
|
invalid: boolean;
|
|
@@ -47,25 +47,25 @@ declare const useFormField: () => {
|
|
|
47
47
|
/** Wraps one field, generating an id so its label, control, and messages stay linked. */
|
|
48
48
|
declare function FormItem({
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof Field>):
|
|
50
|
+
}: React.ComponentProps<typeof Field>): react_jsx_runtime87.JSX.Element;
|
|
51
51
|
/** Field label wired to the control's id and tinted destructive when the field is invalid. */
|
|
52
52
|
declare function FormLabel({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<typeof FieldLabel>):
|
|
55
|
+
}: React.ComponentProps<typeof FieldLabel>): react_jsx_runtime87.JSX.Element;
|
|
56
56
|
/** Slots the actual input, applying the field's id, `aria-describedby`, and `aria-invalid`. */
|
|
57
57
|
declare function FormControl({
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<typeof Slot.Root>):
|
|
59
|
+
}: React.ComponentProps<typeof Slot.Root>): react_jsx_runtime87.JSX.Element;
|
|
60
60
|
/** Helper text for a field, linked to its control via `aria-describedby`. */
|
|
61
61
|
declare function FormDescription({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof FieldDescription>):
|
|
63
|
+
}: React.ComponentProps<typeof FieldDescription>): react_jsx_runtime87.JSX.Element;
|
|
64
64
|
/** Renders the field's validation error (or `children`), and nothing when there is no message. */
|
|
65
65
|
declare function FormMessage({
|
|
66
66
|
children,
|
|
67
67
|
...props
|
|
68
|
-
}: React.ComponentProps<typeof FieldError>):
|
|
68
|
+
}: React.ComponentProps<typeof FieldError>): react_jsx_runtime87.JSX.Element | null;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { FormItem as a, useFormField as c, FormField as i, FormControl as n, FormLabel as o, FormDescription as r, FormMessage as s, Form as t };
|
|
71
71
|
//# sourceMappingURL=index27.d.cts.map
|
package/dist/index27.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index27.d.cts","names":[],"sources":["../src/primitives/Form/Form.tsx"],"mappings":";;;;;;;;;cAqBM,4BAAI,kDAAA;;;;;;;;;;;;;;;;;;;GAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,KAAA,CAAA,GAAA,CAAA;;cAaJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;GAGjD,gBAAgB,cAAc,WAAM,
|
|
1
|
+
{"version":3,"file":"index27.d.cts","names":[],"sources":["../src/primitives/Form/Form.tsx"],"mappings":";;;;;;;;;cAqBM,4BAAI,kDAAA;;;;;;;;;;;;;;;;;;;GAAA,gBAAA,CAAA,kBAAA,cAAA,UAAA,wBAAA,KAAA,CAAA,GAAA,CAAA;;cAaJ,iCACiB,cAAc,2BACrB,UAAU,gBAAgB,UAAU;;GAGjD,gBAAgB,cAAc,WAAM,mBAAA,CAAA,GAAA,CAAA;AAzB8C;cAkC/E,YA3BmB,EAAA,GAAA,GAAA;SAAf,EAAA,OAAA;SAAA,EAAA,OAAA;WAAA,EAAA,OAAA;cAAA,EAAA,OAAA;OAAA,CAAA,EAgDT,gBAAA,CAAA,UAhDS;MAAA,MAAA;MAAA,EAAA,MAAA;YAAA,EAAA,MAAA;mBAAA,EAAA,MAAA;eAAA,EAAA,MAAA;;;iBA0DD,QAAA,CA1DC;EAAA,GAAA;AAAA,CAAA,EA0DsB,KAAA,CAAM,cA1D5B,CAAA,OA0DkD,KA1DlD,CAAA,CAAA,EA0DwD,mBAAA,CAAA,GAAA,CAAA,OA1DxD;;iBAqED,SAAA,CArEC;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAqEkC,KAAA,CAAM,cArExC,CAAA,OAqE8D,UArE9D,CAAA,CAAA,EAqEyE,mBAAA,CAAA,GAAA,CAAA,OArEzE;;iBAoFD,WAAA,CApFC;EAAA,GAAA;AAAA,CAAA,EAoFyB,KAAA,CAAM,cApF/B,CAAA,OAoFqD,IAAA,CAAK,IApF1D,CAAA,CAAA,EAoF+D,mBAAA,CAAA,GAAA,CAAA,OApF/D;;iBAmGD,eAAA,CAnGC;EAAA,GAAA;AAAA,CAAA,EAmG6B,KAAA,CAAM,cAnGnC,CAAA,OAmGyD,gBAnGzD,CAAA,CAAA,EAmG0E,mBAAA,CAAA,GAAA,CAAA,OAnG1E;;iBA0GD,WAAA,CA1GC;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EA0GmC,KAAA,CAAM,cA1GzC,CAAA,OA0G+D,UA1G/D,CAAA,CAAA,EA0G0E,mBAAA,CAAA,GAAA,CAAA,OAAA,GA1G1E,IAAA"}
|
package/dist/index27.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as FieldError, o as FieldLabel, r as FieldDescription, t as Field } from "./index26.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Slot } from "radix-ui";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime221 from "react/jsx-runtime";
|
|
5
5
|
import * as react_hook_form0 from "react-hook-form";
|
|
6
6
|
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
|
7
7
|
|
|
@@ -30,7 +30,7 @@ declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransfor
|
|
|
30
30
|
/** Connects a single input to the form via RHF's `Controller`, exposing `field` to its render prop. */
|
|
31
31
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({
|
|
32
32
|
...props
|
|
33
|
-
}: ControllerProps<TFieldValues, TName>) =>
|
|
33
|
+
}: ControllerProps<TFieldValues, TName>) => react_jsx_runtime221.JSX.Element;
|
|
34
34
|
/** Hook for form pieces to read the current field's id, name, ARIA ids, and validation state. */
|
|
35
35
|
declare const useFormField: () => {
|
|
36
36
|
invalid: boolean;
|
|
@@ -47,25 +47,25 @@ declare const useFormField: () => {
|
|
|
47
47
|
/** Wraps one field, generating an id so its label, control, and messages stay linked. */
|
|
48
48
|
declare function FormItem({
|
|
49
49
|
...props
|
|
50
|
-
}: React.ComponentProps<typeof Field>):
|
|
50
|
+
}: React.ComponentProps<typeof Field>): react_jsx_runtime221.JSX.Element;
|
|
51
51
|
/** Field label wired to the control's id and tinted destructive when the field is invalid. */
|
|
52
52
|
declare function FormLabel({
|
|
53
53
|
className,
|
|
54
54
|
...props
|
|
55
|
-
}: React.ComponentProps<typeof FieldLabel>):
|
|
55
|
+
}: React.ComponentProps<typeof FieldLabel>): react_jsx_runtime221.JSX.Element;
|
|
56
56
|
/** Slots the actual input, applying the field's id, `aria-describedby`, and `aria-invalid`. */
|
|
57
57
|
declare function FormControl({
|
|
58
58
|
...props
|
|
59
|
-
}: React.ComponentProps<typeof Slot.Root>):
|
|
59
|
+
}: React.ComponentProps<typeof Slot.Root>): react_jsx_runtime221.JSX.Element;
|
|
60
60
|
/** Helper text for a field, linked to its control via `aria-describedby`. */
|
|
61
61
|
declare function FormDescription({
|
|
62
62
|
...props
|
|
63
|
-
}: React.ComponentProps<typeof FieldDescription>):
|
|
63
|
+
}: React.ComponentProps<typeof FieldDescription>): react_jsx_runtime221.JSX.Element;
|
|
64
64
|
/** Renders the field's validation error (or `children`), and nothing when there is no message. */
|
|
65
65
|
declare function FormMessage({
|
|
66
66
|
children,
|
|
67
67
|
...props
|
|
68
|
-
}: React.ComponentProps<typeof FieldError>):
|
|
68
|
+
}: React.ComponentProps<typeof FieldError>): react_jsx_runtime221.JSX.Element | null;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { FormItem as a, useFormField as c, FormField as i, FormControl as n, FormLabel as o, FormDescription as r, FormMessage as s, Form as t };
|
|
71
71
|
//# sourceMappingURL=index27.d.ts.map
|
package/dist/index28.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime54 from "react/jsx-runtime";
|
|
2
|
+
import * as class_variance_authority_types9 from "class-variance-authority/types";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ import * as React from "react";
|
|
|
7
7
|
declare const headingVariants: (props?: ({
|
|
8
8
|
size?: "1" | "2" | "3" | "4" | "5" | "6" | "7" | null | undefined;
|
|
9
9
|
weight?: "normal" | "medium" | "semibold" | null | undefined;
|
|
10
|
-
align?: "
|
|
10
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
11
11
|
gradient?: boolean | null | undefined;
|
|
12
|
-
} &
|
|
12
|
+
} & class_variance_authority_types9.ClassProp) | undefined) => string;
|
|
13
13
|
type HeadingProps = React.ComponentProps<"h2"> & VariantProps<typeof headingVariants> & {
|
|
14
14
|
/** Semantic heading level/element. Defaults to `h2`. */
|
|
15
15
|
as?: React.ElementType;
|
|
@@ -31,7 +31,7 @@ declare function Heading({
|
|
|
31
31
|
align,
|
|
32
32
|
gradient,
|
|
33
33
|
...props
|
|
34
|
-
}: HeadingProps):
|
|
34
|
+
}: HeadingProps): react_jsx_runtime54.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { HeadingProps as n, headingVariants as r, Heading as t };
|
|
37
37
|
//# sourceMappingURL=index28.d.cts.map
|
package/dist/index28.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index28.d.cts","names":[],"sources":["../src/primitives/Heading/Heading.tsx"],"mappings":";;;;;;cAUM,uBAiCW;;;;EAjCX,QAAA,CAAA,EAAA,OA+BJ,GAAA,IAAA,GAAA,SAAA;IAAA,
|
|
1
|
+
{"version":3,"file":"index28.d.cts","names":[],"sources":["../src/primitives/Heading/Heading.tsx"],"mappings":";;;;;;cAUM,uBAiCW;;;;EAjCX,QAAA,CAAA,EAAA,OA+BJ,GAAA,IAAA,GAAA,SAAA;IAAA,+BAAA,CAAA,SAEe,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;KAAZ,YAAA,GAAe,KAAA,CAAM,cAAT,CAAA,IAAA,CAAA,GACf,YADe,CAAA,OACK,eADL,CAAA,GAAA;;KACK,EAEb,KAAA,CAAM,WAFO;;MAEb,CAAA,EAEE,YAFI,CAAA,OAEgB,eAFhB,CAAA,CAAA,MAAA,CAAA;;QAEJ,CAAA,EAEE,YAFF,CAAA,OAEsB,eAFtB,CAAA,CAAA,QAAA,CAAA;;OAEE,CAAA,EAED,YAFC,CAAA,OAEmB,eAFnB,CAAA,CAAA,OAAA,CAAA;;UAED,CAAA,EAEG,YAFH,CAAA,OAEuB,eAFvB,CAAA,CAAA,UAAA,CAAA;;;AAEe,iBAIlB,OAAA,CAJkB;EAAA,EAAA;EAAA,SAAA;EAAA,IAAA;EAAA,MAAA;EAAA,KAAA;EAAA,QAAA;EAAA,GAAA;AAAA,CAAA,EAIkD,YAJlD,CAAA,EAI8D,mBAAA,CAAA,GAAA,CAAA,OAJ9D"}
|
package/dist/index28.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime220 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
import * as
|
|
4
|
+
import * as class_variance_authority_types19 from "class-variance-authority/types";
|
|
5
5
|
|
|
6
6
|
//#region src/primitives/Heading/Heading.d.ts
|
|
7
7
|
declare const headingVariants: (props?: ({
|
|
@@ -9,7 +9,7 @@ declare const headingVariants: (props?: ({
|
|
|
9
9
|
weight?: "normal" | "medium" | "semibold" | null | undefined;
|
|
10
10
|
align?: "center" | "left" | "right" | null | undefined;
|
|
11
11
|
gradient?: boolean | null | undefined;
|
|
12
|
-
} &
|
|
12
|
+
} & class_variance_authority_types19.ClassProp) | undefined) => string;
|
|
13
13
|
type HeadingProps = React.ComponentProps<"h2"> & VariantProps<typeof headingVariants> & {
|
|
14
14
|
/** Semantic heading level/element. Defaults to `h2`. */
|
|
15
15
|
as?: React.ElementType;
|
|
@@ -31,7 +31,7 @@ declare function Heading({
|
|
|
31
31
|
align,
|
|
32
32
|
gradient,
|
|
33
33
|
...props
|
|
34
|
-
}: HeadingProps):
|
|
34
|
+
}: HeadingProps): react_jsx_runtime220.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { HeadingProps as n, headingVariants as r, Heading as t };
|
|
37
37
|
//# sourceMappingURL=index28.d.ts.map
|